diff --git a/packages/www/package.json b/packages/www/package.json
index ee9ca9326..fd71ff6b2 100644
--- a/packages/www/package.json
+++ b/packages/www/package.json
@@ -23,7 +23,7 @@
"@sentry/react": "^6.12.0",
"@sentry/tracing": "^6.12.0",
"@sentry/webpack-plugin": "^1.17.1",
- "@stitches/react": "^1.0.0",
+ "@stitches/react": "^0.2.3",
"@tldraw/tldraw": "^0.0.57",
"browser-fs-access": "^0.20.4",
"gtag": "^1.0.1",
diff --git a/packages/www/pages/_document.tsx b/packages/www/pages/_document.tsx
index 210cdb86e..268def8f5 100644
--- a/packages/www/pages/_document.tsx
+++ b/packages/www/pages/_document.tsx
@@ -1,5 +1,5 @@
import NextDocument, { Html, Head, Main, NextScript, DocumentContext } from 'next/document'
-import { getCssText } from '-styles'
+import { getCssString } from 'styles'
import { GA_TRACKING_ID } from '-utils/gtag'
class MyDocument extends NextDocument {
@@ -11,7 +11,7 @@ class MyDocument extends NextDocument {
styles: (
<>
{initialProps.styles}
-
+
>
),
}
diff --git a/packages/www/pages/api/auth/[...nextauth].ts b/packages/www/pages/api/auth/[...nextauth].ts
index 4be58499b..c5e55cdc8 100644
--- a/packages/www/pages/api/auth/[...nextauth].ts
+++ b/packages/www/pages/api/auth/[...nextauth].ts
@@ -18,18 +18,14 @@ export default function Auth(
async redirect(url, baseUrl) {
return baseUrl
},
- async signIn(user, account, profile) {
- const login = profile?.login as string
+ async signIn(user, account, profile: any) {
+ const canLogin = await isSponsoringMe(profile?.login)
- if (login) {
- const canLogin = await isSponsoringMe(login)
-
- if (canLogin) {
- return canLogin
- }
+ if (canLogin) {
+ return canLogin
+ } else {
+ return '/sponsorware'
}
-
- return '/sponsorware'
},
},
})
diff --git a/packages/www/pages/sponsorware.tsx b/packages/www/pages/sponsorware.tsx
index d058b0034..b6c772d15 100644
--- a/packages/www/pages/sponsorware.tsx
+++ b/packages/www/pages/sponsorware.tsx
@@ -1,7 +1,6 @@
import styled from '-styles'
import { getSession, signin, signout, useSession } from 'next-auth/client'
import type { GetServerSideProps } from 'next'
-import Link from 'next/link'
import React from 'react'
export default function Sponsorware(): JSX.Element {
@@ -16,8 +15,8 @@ export default function Sponsorware(): JSX.Element {
>
tldraw (is sponsorware)
- Hey, thanks for visiting tldraw, a tiny little
- drawing app by steveruizok .
+ Hey, thanks for visiting tldraw , a tiny little drawing
+ app by steveruizok .
e.currentTarget.play()}>
@@ -48,7 +47,7 @@ export default function Sponsorware(): JSX.Element {
Signed in as {session?.user?.name} ({session?.user?.email}), but it looks like
you're not yet a sponsor.
- Something wrong? Try reloading the page or DM me on{' '}
+ Something wrong? Try reloading the page or DM me on{' '}
Twitter .
>
diff --git a/packages/www/public/sw.js b/packages/www/public/sw.js
index 319b19cf8..c76dd4f9a 100644
--- a/packages/www/public/sw.js
+++ b/packages/www/public/sw.js
@@ -1,2 +1,2 @@
-if(!self.define){const e=e=>{"require"!==e&&(e+=".js");let s=Promise.resolve();return n[e]||(s=new Promise((async s=>{if("document"in self){const n=document.createElement("script");n.src=e,document.head.appendChild(n),n.onload=s}else importScripts(e),s()}))),s.then((()=>{if(!n[e])throw new Error(`Module ${e} didn’t register its module`);return n[e]}))},s=(s,n)=>{Promise.all(s.map(e)).then((e=>n(1===e.length?e[0]:e)))},n={require:Promise.resolve(s)};self.define=(s,i,a)=>{n[s]||(n[s]=Promise.resolve().then((()=>{let n={};const c={uri:location.origin+s.slice(1)};return Promise.all(i.map((s=>{switch(s){case"exports":return n;case"module":return c;default:return e(s)}}))).then((e=>{const s=a(...e);return n.default||(n.default=s),n}))})))}}define("./sw.js",["./workbox-e9cae24d"],(function(e){"use strict";importScripts("worker-ZSKPWmeLuzbDpY-pLKFsC.js"),self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"/_next/static/ZSKPWmeLuzbDpY-pLKFsC/_buildManifest.js",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/ZSKPWmeLuzbDpY-pLKFsC/_ssgManifest.js",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/735-ba27aca2225e6314c5f3.js",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/735-ba27aca2225e6314c5f3.js.map",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/946.be8034bb4741e645734d.js",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/946.be8034bb4741e645734d.js.map",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/framework-6904c37ecf5b200e4e2e.js",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/framework-6904c37ecf5b200e4e2e.js.map",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/main-1fd13886f63948e5452c.js",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/main-1fd13886f63948e5452c.js.map",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/pages/_app-1b1c09f4b9b07d988fc8.js",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/pages/_app-1b1c09f4b9b07d988fc8.js.map",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/pages/_error-1cd1e11cd5e9c8211770.js",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/pages/_error-1cd1e11cd5e9c8211770.js.map",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/pages/index-fd827907cbac6dc3cce1.js",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/pages/index-fd827907cbac6dc3cce1.js.map",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/pages/r/%5Bid%5D-22c98f064aaf55fccee2.js",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/pages/r/%5Bid%5D-22c98f064aaf55fccee2.js.map",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/pages/shhh-01c6ea76028167db64d3.js",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/pages/shhh-01c6ea76028167db64d3.js.map",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/pages/signout-bf0779b7caa9ea2189b2.js",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/pages/signout-bf0779b7caa9ea2189b2.js.map",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/pages/sponsorware-baeafb7f62f75b8230cd.js",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/pages/sponsorware-baeafb7f62f75b8230cd.js.map",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/pages/u/%5Bid%5D-3e3c5cc071f0a68d97b4.js",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/pages/u/%5Bid%5D-3e3c5cc071f0a68d97b4.js.map",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/polyfills-7510a95ef9a46fd369c3.js",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/polyfills-7510a95ef9a46fd369c3.js.map",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/webpack-9513ffb94df872a9a6d9.js",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/chunks/webpack-9513ffb94df872a9a6d9.js.map",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/css/2946e48fdf8b8c44ed3f.css",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/_next/static/css/2946e48fdf8b8c44ed3f.css.map",revision:"ZSKPWmeLuzbDpY-pLKFsC"},{url:"/android-chrome-192x192.png",revision:"57c9c4cd91d24d48b7ffdda0768fd225"},{url:"/android-chrome-512x512.png",revision:"8d2454e6cf551f8ca1e1d5670b13a8d1"},{url:"/android-chrome-maskable-192x192.png",revision:"71c93ce0b34d2fbb4c6654a9131a3d9d"},{url:"/android-chrome-maskable-512x512.png",revision:"4265b8c09997b16ac1493500b43f3755"},{url:"/android-chrome-maskable-beta-512x512.png",revision:"145800cf2381faf1c0f4a61c29a88448"},{url:"/apple-touch-icon.png",revision:"8081d08be3673ec33dbeecab06706b2b"},{url:"/favicon-16x16.png",revision:"ac17d75b1ee007781212853a57b88285"},{url:"/favicon-32x32.png",revision:"360bc7cd4706c0657917f3b78fed6b71"},{url:"/favicon.ico",revision:"b2bf6bb7b4d0234f3e6df44fd7d5707e"},{url:"/flat.png",revision:"e0460141713b5c94104ce19b36c4b462"},{url:"/icons/Redo.svg",revision:"6196f61a2053ff606d5746eb3ab380e3"},{url:"/icons/Trash.svg",revision:"5f2c42a17b7d8459f2e556b6209a61c6"},{url:"/icons/Undo.svg",revision:"24de701870630f51132f9bed3f18ee8f"},{url:"/icons/grab.svg",revision:"a1ca9e5c31d1edd2558ab075f72fde4e"},{url:"/icons/pointer.svg",revision:"dff260f896fe23adb83341639fdf93be"},{url:"/icons/resize.svg",revision:"0a3cb701d15731e25919783801d18f95"},{url:"/images/hello.mp4",revision:"b716f249cc6c781c91b0ac9dc23423b3"},{url:"/vercel.svg",revision:"4b4f1876502eb6721764637fe5c41702"}],{ignoreURLParametersMatching:[]}),e.cleanupOutdatedCaches(),e.registerRoute("/",new e.NetworkFirst({cacheName:"start-url",plugins:[{cacheWillUpdate:async({request:e,response:s,event:n,state:i})=>s&&"opaqueredirect"===s.type?new Response(s.body,{status:200,statusText:"OK",headers:s.headers}):s}]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:gstatic)\.com\/.*/i,new e.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:31536e3})]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:googleapis)\.com\/.*/i,new e.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i,new e.StaleWhileRevalidate({cacheName:"static-font-assets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i,new e.StaleWhileRevalidate({cacheName:"static-image-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/image\?url=.+$/i,new e.StaleWhileRevalidate({cacheName:"next-image",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp3|wav|ogg)$/i,new e.CacheFirst({cacheName:"static-audio-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp4)$/i,new e.CacheFirst({cacheName:"static-video-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:js)$/i,new e.StaleWhileRevalidate({cacheName:"static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:css|less)$/i,new e.StaleWhileRevalidate({cacheName:"static-style-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/data\/.+\/.+\.json$/i,new e.StaleWhileRevalidate({cacheName:"next-data",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:json|xml|csv)$/i,new e.NetworkFirst({cacheName:"static-data-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({url:e})=>{if(!(self.origin===e.origin))return!1;const s=e.pathname;return!s.startsWith("/api/auth/")&&!!s.startsWith("/api/")}),new e.NetworkFirst({cacheName:"apis",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:16,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({url:e})=>{if(!(self.origin===e.origin))return!1;return!e.pathname.startsWith("/api/")}),new e.NetworkFirst({cacheName:"others",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({url:e})=>!(self.origin===e.origin)),new e.NetworkFirst({cacheName:"cross-origin",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:3600})]}),"GET")}));
+if(!self.define){const e=e=>{"require"!==e&&(e+=".js");let s=Promise.resolve();return n[e]||(s=new Promise((async s=>{if("document"in self){const n=document.createElement("script");n.src=e,document.head.appendChild(n),n.onload=s}else importScripts(e),s()}))),s.then((()=>{if(!n[e])throw new Error(`Module ${e} didn’t register its module`);return n[e]}))},s=(s,n)=>{Promise.all(s.map(e)).then((e=>n(1===e.length?e[0]:e)))},n={require:Promise.resolve(s)};self.define=(s,r,t)=>{n[s]||(n[s]=Promise.resolve().then((()=>{let n={};const i={uri:location.origin+s.slice(1)};return Promise.all(r.map((s=>{switch(s){case"exports":return n;case"module":return i;default:return e(s)}}))).then((e=>{const s=t(...e);return n.default||(n.default=s),n}))})))}}define("./sw.js",["./workbox-e9cae24d"],(function(e){"use strict";importScripts("worker-9zorZIgg-EzXvsnHBrTO_.js"),self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"/VerveineRegular.woff",revision:"858cc7add1765cbcfb0439e275fd167b"},{url:"/_next/static/9zorZIgg-EzXvsnHBrTO_/_buildManifest.js",revision:"9zorZIgg-EzXvsnHBrTO_"},{url:"/_next/static/9zorZIgg-EzXvsnHBrTO_/_ssgManifest.js",revision:"9zorZIgg-EzXvsnHBrTO_"},{url:"/_next/static/chunks/946.be8034bb4741e645734d.js",revision:"9zorZIgg-EzXvsnHBrTO_"},{url:"/_next/static/chunks/946.be8034bb4741e645734d.js.map",revision:"9zorZIgg-EzXvsnHBrTO_"},{url:"/_next/static/chunks/framework-6904c37ecf5b200e4e2e.js",revision:"9zorZIgg-EzXvsnHBrTO_"},{url:"/_next/static/chunks/framework-6904c37ecf5b200e4e2e.js.map",revision:"9zorZIgg-EzXvsnHBrTO_"},{url:"/_next/static/chunks/main-1fd13886f63948e5452c.js",revision:"9zorZIgg-EzXvsnHBrTO_"},{url:"/_next/static/chunks/main-1fd13886f63948e5452c.js.map",revision:"9zorZIgg-EzXvsnHBrTO_"},{url:"/_next/static/chunks/pages/_app-af6e89c4dda7db409078.js",revision:"9zorZIgg-EzXvsnHBrTO_"},{url:"/_next/static/chunks/pages/_app-af6e89c4dda7db409078.js.map",revision:"9zorZIgg-EzXvsnHBrTO_"},{url:"/_next/static/chunks/pages/_error-1cd1e11cd5e9c8211770.js",revision:"9zorZIgg-EzXvsnHBrTO_"},{url:"/_next/static/chunks/pages/_error-1cd1e11cd5e9c8211770.js.map",revision:"9zorZIgg-EzXvsnHBrTO_"},{url:"/_next/static/chunks/pages/index-00f614c6be4abbf55d66.js",revision:"9zorZIgg-EzXvsnHBrTO_"},{url:"/_next/static/chunks/pages/index-00f614c6be4abbf55d66.js.map",revision:"9zorZIgg-EzXvsnHBrTO_"},{url:"/_next/static/chunks/pages/r/%5Bid%5D-22c98f064aaf55fccee2.js",revision:"9zorZIgg-EzXvsnHBrTO_"},{url:"/_next/static/chunks/pages/r/%5Bid%5D-22c98f064aaf55fccee2.js.map",revision:"9zorZIgg-EzXvsnHBrTO_"},{url:"/_next/static/chunks/pages/u/%5Bid%5D-3e3c5cc071f0a68d97b4.js",revision:"9zorZIgg-EzXvsnHBrTO_"},{url:"/_next/static/chunks/pages/u/%5Bid%5D-3e3c5cc071f0a68d97b4.js.map",revision:"9zorZIgg-EzXvsnHBrTO_"},{url:"/_next/static/chunks/polyfills-7510a95ef9a46fd369c3.js",revision:"9zorZIgg-EzXvsnHBrTO_"},{url:"/_next/static/chunks/polyfills-7510a95ef9a46fd369c3.js.map",revision:"9zorZIgg-EzXvsnHBrTO_"},{url:"/_next/static/chunks/webpack-9513ffb94df872a9a6d9.js",revision:"9zorZIgg-EzXvsnHBrTO_"},{url:"/_next/static/chunks/webpack-9513ffb94df872a9a6d9.js.map",revision:"9zorZIgg-EzXvsnHBrTO_"},{url:"/_next/static/css/2946e48fdf8b8c44ed3f.css",revision:"9zorZIgg-EzXvsnHBrTO_"},{url:"/_next/static/css/2946e48fdf8b8c44ed3f.css.map",revision:"9zorZIgg-EzXvsnHBrTO_"},{url:"/favicon.ico",revision:"c30c7d42707a47a3f4591831641e50dc"},{url:"/vercel.svg",revision:"4b4f1876502eb6721764637fe5c41702"}],{ignoreURLParametersMatching:[]}),e.cleanupOutdatedCaches(),e.registerRoute("/",new e.NetworkFirst({cacheName:"start-url",plugins:[{cacheWillUpdate:async({request:e,response:s,event:n,state:r})=>s&&"opaqueredirect"===s.type?new Response(s.body,{status:200,statusText:"OK",headers:s.headers}):s}]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:gstatic)\.com\/.*/i,new e.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:31536e3})]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:googleapis)\.com\/.*/i,new e.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i,new e.StaleWhileRevalidate({cacheName:"static-font-assets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i,new e.StaleWhileRevalidate({cacheName:"static-image-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/image\?url=.+$/i,new e.StaleWhileRevalidate({cacheName:"next-image",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp3|wav|ogg)$/i,new e.CacheFirst({cacheName:"static-audio-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp4)$/i,new e.CacheFirst({cacheName:"static-video-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:js)$/i,new e.StaleWhileRevalidate({cacheName:"static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:css|less)$/i,new e.StaleWhileRevalidate({cacheName:"static-style-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/data\/.+\/.+\.json$/i,new e.StaleWhileRevalidate({cacheName:"next-data",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:json|xml|csv)$/i,new e.NetworkFirst({cacheName:"static-data-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({url:e})=>{if(!(self.origin===e.origin))return!1;const s=e.pathname;return!s.startsWith("/api/auth/")&&!!s.startsWith("/api/")}),new e.NetworkFirst({cacheName:"apis",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:16,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({url:e})=>{if(!(self.origin===e.origin))return!1;return!e.pathname.startsWith("/api/")}),new e.NetworkFirst({cacheName:"others",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({url:e})=>!(self.origin===e.origin)),new e.NetworkFirst({cacheName:"cross-origin",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:3600})]}),"GET")}));
//# sourceMappingURL=sw.js.map
diff --git a/packages/www/public/sw.js.map b/packages/www/public/sw.js.map
index fa0b2076b..0b10918bb 100644
--- a/packages/www/public/sw.js.map
+++ b/packages/www/public/sw.js.map
@@ -1 +1 @@
-{"version":3,"file":"sw.js","sources":["../../../../../../../private/var/folders/g7/7xq6v0ls5lq_ks1yh3lbgrr00000gn/T/b1eeb0744f41fe654a4e112c7f11c776/sw.js"],"sourcesContent":["import {registerRoute as workbox_routing_registerRoute} from '/Users/steve/Developer/Github/tldraw/node_modules/workbox-routing/registerRoute.mjs';\nimport {NetworkFirst as workbox_strategies_NetworkFirst} from '/Users/steve/Developer/Github/tldraw/node_modules/workbox-strategies/NetworkFirst.mjs';\nimport {ExpirationPlugin as workbox_expiration_ExpirationPlugin} from '/Users/steve/Developer/Github/tldraw/node_modules/workbox-expiration/ExpirationPlugin.mjs';\nimport {CacheFirst as workbox_strategies_CacheFirst} from '/Users/steve/Developer/Github/tldraw/node_modules/workbox-strategies/CacheFirst.mjs';\nimport {StaleWhileRevalidate as workbox_strategies_StaleWhileRevalidate} from '/Users/steve/Developer/Github/tldraw/node_modules/workbox-strategies/StaleWhileRevalidate.mjs';\nimport {RangeRequestsPlugin as workbox_range_requests_RangeRequestsPlugin} from '/Users/steve/Developer/Github/tldraw/node_modules/workbox-range-requests/RangeRequestsPlugin.mjs';\nimport {clientsClaim as workbox_core_clientsClaim} from '/Users/steve/Developer/Github/tldraw/node_modules/workbox-core/clientsClaim.mjs';\nimport {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/Users/steve/Developer/Github/tldraw/node_modules/workbox-precaching/precacheAndRoute.mjs';\nimport {cleanupOutdatedCaches as workbox_precaching_cleanupOutdatedCaches} from '/Users/steve/Developer/Github/tldraw/node_modules/workbox-precaching/cleanupOutdatedCaches.mjs';/**\n * Welcome to your Workbox-powered service worker!\n *\n * You'll need to register this file in your web app.\n * See https://goo.gl/nhQhGp\n *\n * The rest of the code is auto-generated. Please don't update this file\n * directly; instead, make changes to your Workbox build configuration\n * and re-run your build process.\n * See https://goo.gl/2aRDsh\n */\n\n\nimportScripts(\n \"worker-ZSKPWmeLuzbDpY-pLKFsC.js\"\n);\n\n\n\n\n\n\n\nself.skipWaiting();\n\nworkbox_core_clientsClaim();\n\n\n/**\n * The precacheAndRoute() method efficiently caches and responds to\n * requests for URLs in the manifest.\n * See https://goo.gl/S9QRab\n */\nworkbox_precaching_precacheAndRoute([\n {\n \"url\": \"/_next/static/ZSKPWmeLuzbDpY-pLKFsC/_buildManifest.js\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/ZSKPWmeLuzbDpY-pLKFsC/_ssgManifest.js\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/735-ba27aca2225e6314c5f3.js\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/735-ba27aca2225e6314c5f3.js.map\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/946.be8034bb4741e645734d.js\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/946.be8034bb4741e645734d.js.map\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/framework-6904c37ecf5b200e4e2e.js\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/framework-6904c37ecf5b200e4e2e.js.map\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/main-1fd13886f63948e5452c.js\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/main-1fd13886f63948e5452c.js.map\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/pages/_app-1b1c09f4b9b07d988fc8.js\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/pages/_app-1b1c09f4b9b07d988fc8.js.map\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/pages/_error-1cd1e11cd5e9c8211770.js\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/pages/_error-1cd1e11cd5e9c8211770.js.map\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/pages/index-fd827907cbac6dc3cce1.js\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/pages/index-fd827907cbac6dc3cce1.js.map\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/pages/r/%5Bid%5D-22c98f064aaf55fccee2.js\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/pages/r/%5Bid%5D-22c98f064aaf55fccee2.js.map\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/pages/shhh-01c6ea76028167db64d3.js\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/pages/shhh-01c6ea76028167db64d3.js.map\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/pages/signout-bf0779b7caa9ea2189b2.js\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/pages/signout-bf0779b7caa9ea2189b2.js.map\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/pages/sponsorware-baeafb7f62f75b8230cd.js\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/pages/sponsorware-baeafb7f62f75b8230cd.js.map\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/pages/u/%5Bid%5D-3e3c5cc071f0a68d97b4.js\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/pages/u/%5Bid%5D-3e3c5cc071f0a68d97b4.js.map\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/polyfills-7510a95ef9a46fd369c3.js\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/polyfills-7510a95ef9a46fd369c3.js.map\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/webpack-9513ffb94df872a9a6d9.js\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/chunks/webpack-9513ffb94df872a9a6d9.js.map\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/css/2946e48fdf8b8c44ed3f.css\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/_next/static/css/2946e48fdf8b8c44ed3f.css.map\",\n \"revision\": \"ZSKPWmeLuzbDpY-pLKFsC\"\n },\n {\n \"url\": \"/android-chrome-192x192.png\",\n \"revision\": \"57c9c4cd91d24d48b7ffdda0768fd225\"\n },\n {\n \"url\": \"/android-chrome-512x512.png\",\n \"revision\": \"8d2454e6cf551f8ca1e1d5670b13a8d1\"\n },\n {\n \"url\": \"/android-chrome-maskable-192x192.png\",\n \"revision\": \"71c93ce0b34d2fbb4c6654a9131a3d9d\"\n },\n {\n \"url\": \"/android-chrome-maskable-512x512.png\",\n \"revision\": \"4265b8c09997b16ac1493500b43f3755\"\n },\n {\n \"url\": \"/android-chrome-maskable-beta-512x512.png\",\n \"revision\": \"145800cf2381faf1c0f4a61c29a88448\"\n },\n {\n \"url\": \"/apple-touch-icon.png\",\n \"revision\": \"8081d08be3673ec33dbeecab06706b2b\"\n },\n {\n \"url\": \"/favicon-16x16.png\",\n \"revision\": \"ac17d75b1ee007781212853a57b88285\"\n },\n {\n \"url\": \"/favicon-32x32.png\",\n \"revision\": \"360bc7cd4706c0657917f3b78fed6b71\"\n },\n {\n \"url\": \"/favicon.ico\",\n \"revision\": \"b2bf6bb7b4d0234f3e6df44fd7d5707e\"\n },\n {\n \"url\": \"/flat.png\",\n \"revision\": \"e0460141713b5c94104ce19b36c4b462\"\n },\n {\n \"url\": \"/icons/Redo.svg\",\n \"revision\": \"6196f61a2053ff606d5746eb3ab380e3\"\n },\n {\n \"url\": \"/icons/Trash.svg\",\n \"revision\": \"5f2c42a17b7d8459f2e556b6209a61c6\"\n },\n {\n \"url\": \"/icons/Undo.svg\",\n \"revision\": \"24de701870630f51132f9bed3f18ee8f\"\n },\n {\n \"url\": \"/icons/grab.svg\",\n \"revision\": \"a1ca9e5c31d1edd2558ab075f72fde4e\"\n },\n {\n \"url\": \"/icons/pointer.svg\",\n \"revision\": \"dff260f896fe23adb83341639fdf93be\"\n },\n {\n \"url\": \"/icons/resize.svg\",\n \"revision\": \"0a3cb701d15731e25919783801d18f95\"\n },\n {\n \"url\": \"/images/hello.mp4\",\n \"revision\": \"b716f249cc6c781c91b0ac9dc23423b3\"\n },\n {\n \"url\": \"/vercel.svg\",\n \"revision\": \"4b4f1876502eb6721764637fe5c41702\"\n }\n], {\n \"ignoreURLParametersMatching\": []\n});\nworkbox_precaching_cleanupOutdatedCaches();\n\n\n\nworkbox_routing_registerRoute(\"/\", new workbox_strategies_NetworkFirst({ \"cacheName\":\"start-url\", plugins: [{ cacheWillUpdate: async ({request, response, event, state}) => { if (response && response.type === 'opaqueredirect') { return new Response(response.body, {status: 200, statusText: 'OK', headers: response.headers}); } return response; } }] }), 'GET');\nworkbox_routing_registerRoute(/^https:\\/\\/fonts\\.(?:gstatic)\\.com\\/.*/i, new workbox_strategies_CacheFirst({ \"cacheName\":\"google-fonts-webfonts\", plugins: [new workbox_expiration_ExpirationPlugin({ maxEntries: 4, maxAgeSeconds: 31536000 })] }), 'GET');\nworkbox_routing_registerRoute(/^https:\\/\\/fonts\\.(?:googleapis)\\.com\\/.*/i, new workbox_strategies_StaleWhileRevalidate({ \"cacheName\":\"google-fonts-stylesheets\", plugins: [new workbox_expiration_ExpirationPlugin({ maxEntries: 4, maxAgeSeconds: 604800 })] }), 'GET');\nworkbox_routing_registerRoute(/\\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i, new workbox_strategies_StaleWhileRevalidate({ \"cacheName\":\"static-font-assets\", plugins: [new workbox_expiration_ExpirationPlugin({ maxEntries: 4, maxAgeSeconds: 604800 })] }), 'GET');\nworkbox_routing_registerRoute(/\\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i, new workbox_strategies_StaleWhileRevalidate({ \"cacheName\":\"static-image-assets\", plugins: [new workbox_expiration_ExpirationPlugin({ maxEntries: 64, maxAgeSeconds: 86400 })] }), 'GET');\nworkbox_routing_registerRoute(/\\/_next\\/image\\?url=.+$/i, new workbox_strategies_StaleWhileRevalidate({ \"cacheName\":\"next-image\", plugins: [new workbox_expiration_ExpirationPlugin({ maxEntries: 64, maxAgeSeconds: 86400 })] }), 'GET');\nworkbox_routing_registerRoute(/\\.(?:mp3|wav|ogg)$/i, new workbox_strategies_CacheFirst({ \"cacheName\":\"static-audio-assets\", plugins: [new workbox_range_requests_RangeRequestsPlugin(), new workbox_expiration_ExpirationPlugin({ maxEntries: 32, maxAgeSeconds: 86400 })] }), 'GET');\nworkbox_routing_registerRoute(/\\.(?:mp4)$/i, new workbox_strategies_CacheFirst({ \"cacheName\":\"static-video-assets\", plugins: [new workbox_range_requests_RangeRequestsPlugin(), new workbox_expiration_ExpirationPlugin({ maxEntries: 32, maxAgeSeconds: 86400 })] }), 'GET');\nworkbox_routing_registerRoute(/\\.(?:js)$/i, new workbox_strategies_StaleWhileRevalidate({ \"cacheName\":\"static-js-assets\", plugins: [new workbox_expiration_ExpirationPlugin({ maxEntries: 32, maxAgeSeconds: 86400 })] }), 'GET');\nworkbox_routing_registerRoute(/\\.(?:css|less)$/i, new workbox_strategies_StaleWhileRevalidate({ \"cacheName\":\"static-style-assets\", plugins: [new workbox_expiration_ExpirationPlugin({ maxEntries: 32, maxAgeSeconds: 86400 })] }), 'GET');\nworkbox_routing_registerRoute(/\\/_next\\/data\\/.+\\/.+\\.json$/i, new workbox_strategies_StaleWhileRevalidate({ \"cacheName\":\"next-data\", plugins: [new workbox_expiration_ExpirationPlugin({ maxEntries: 32, maxAgeSeconds: 86400 })] }), 'GET');\nworkbox_routing_registerRoute(/\\.(?:json|xml|csv)$/i, new workbox_strategies_NetworkFirst({ \"cacheName\":\"static-data-assets\", plugins: [new workbox_expiration_ExpirationPlugin({ maxEntries: 32, maxAgeSeconds: 86400 })] }), 'GET');\nworkbox_routing_registerRoute(({url}) => {\n const isSameOrigin = self.origin === url.origin\n if (!isSameOrigin) return false\n const pathname = url.pathname\n // Exclude /api/auth/callback/* to fix OAuth workflow in Safari without impact other environment\n // Above route is default for next-auth, you may need to change it if your OAuth workflow has a different callback route\n // Issue: https://github.com/shadowwalker/next-pwa/issues/131#issuecomment-821894809\n if (pathname.startsWith('/api/auth/')) return false\n if (pathname.startsWith('/api/')) return true\n return false\n }, new workbox_strategies_NetworkFirst({ \"cacheName\":\"apis\",\"networkTimeoutSeconds\":10, plugins: [new workbox_expiration_ExpirationPlugin({ maxEntries: 16, maxAgeSeconds: 86400 })] }), 'GET');\nworkbox_routing_registerRoute(({url}) => {\n const isSameOrigin = self.origin === url.origin\n if (!isSameOrigin) return false\n const pathname = url.pathname\n if (pathname.startsWith('/api/')) return false\n return true\n }, new workbox_strategies_NetworkFirst({ \"cacheName\":\"others\",\"networkTimeoutSeconds\":10, plugins: [new workbox_expiration_ExpirationPlugin({ maxEntries: 32, maxAgeSeconds: 86400 })] }), 'GET');\nworkbox_routing_registerRoute(({url}) => {\n const isSameOrigin = self.origin === url.origin\n return !isSameOrigin\n }, new workbox_strategies_NetworkFirst({ \"cacheName\":\"cross-origin\",\"networkTimeoutSeconds\":10, plugins: [new workbox_expiration_ExpirationPlugin({ maxEntries: 32, maxAgeSeconds: 3600 })] }), 'GET');\n\n\n\n\n"],"names":["importScripts","self","skipWaiting","workbox_strategies_NetworkFirst","plugins","cacheWillUpdate","async","request","response","event","state","type","Response","body","status","statusText","headers","workbox_strategies_CacheFirst","workbox_expiration_ExpirationPlugin","maxEntries","maxAgeSeconds","workbox_strategies_StaleWhileRevalidate","workbox_range_requests_RangeRequestsPlugin","url","origin","pathname","startsWith"],"mappings":"0yBAqBAA,cACE,mCASFC,KAAKC,kDAU+B,CAClC,KACS,iEACK,yBAEd,KACS,+DACK,yBAEd,KACS,4DACK,yBAEd,KACS,gEACK,yBAEd,KACS,4DACK,yBAEd,KACS,gEACK,yBAEd,KACS,kEACK,yBAEd,KACS,sEACK,yBAEd,KACS,6DACK,yBAEd,KACS,iEACK,yBAEd,KACS,mEACK,yBAEd,KACS,uEACK,yBAEd,KACS,qEACK,yBAEd,KACS,yEACK,yBAEd,KACS,oEACK,yBAEd,KACS,wEACK,yBAEd,KACS,yEACK,yBAEd,KACS,6EACK,yBAEd,KACS,mEACK,yBAEd,KACS,uEACK,yBAEd,KACS,sEACK,yBAEd,KACS,0EACK,yBAEd,KACS,0EAC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eAAgC,WAAc,qCAAuC,GAAIC,QAAS,CAAC,IAAIc,mBAAoC,CAAEC,WAAY,GAAIC,cAAe,UAAa"}
\ No newline at end of file
+{"version":3,"file":"sw.js","sources":["../../../../../../../private/var/folders/g7/7xq6v0ls5lq_ks1yh3lbgrr00000gn/T/aa88ebb2810660d3cbc67a471b8d98c0/sw.js"],"sourcesContent":["import {registerRoute as workbox_routing_registerRoute} from '/Users/steve/Developer/Github/tldraw/node_modules/workbox-routing/registerRoute.mjs';\nimport {NetworkFirst as workbox_strategies_NetworkFirst} from '/Users/steve/Developer/Github/tldraw/node_modules/workbox-strategies/NetworkFirst.mjs';\nimport {ExpirationPlugin as workbox_expiration_ExpirationPlugin} from '/Users/steve/Developer/Github/tldraw/node_modules/workbox-expiration/ExpirationPlugin.mjs';\nimport {CacheFirst as workbox_strategies_CacheFirst} from '/Users/steve/Developer/Github/tldraw/node_modules/workbox-strategies/CacheFirst.mjs';\nimport {StaleWhileRevalidate as workbox_strategies_StaleWhileRevalidate} from '/Users/steve/Developer/Github/tldraw/node_modules/workbox-strategies/StaleWhileRevalidate.mjs';\nimport {RangeRequestsPlugin as workbox_range_requests_RangeRequestsPlugin} from '/Users/steve/Developer/Github/tldraw/node_modules/workbox-range-requests/RangeRequestsPlugin.mjs';\nimport {clientsClaim as workbox_core_clientsClaim} from '/Users/steve/Developer/Github/tldraw/node_modules/workbox-core/clientsClaim.mjs';\nimport {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/Users/steve/Developer/Github/tldraw/node_modules/workbox-precaching/precacheAndRoute.mjs';\nimport {cleanupOutdatedCaches as workbox_precaching_cleanupOutdatedCaches} from '/Users/steve/Developer/Github/tldraw/node_modules/workbox-precaching/cleanupOutdatedCaches.mjs';/**\n * Welcome to your Workbox-powered service worker!\n *\n * You'll need to register this file in your web app.\n * See https://goo.gl/nhQhGp\n *\n * The rest of the code is auto-generated. Please don't update this file\n * directly; instead, make changes to your Workbox build configuration\n * and re-run your build process.\n * See https://goo.gl/2aRDsh\n */\n\n\nimportScripts(\n \"worker-9zorZIgg-EzXvsnHBrTO_.js\"\n);\n\n\n\n\n\n\n\nself.skipWaiting();\n\nworkbox_core_clientsClaim();\n\n\n/**\n * The precacheAndRoute() method efficiently caches and responds to\n * requests for URLs in the manifest.\n * See https://goo.gl/S9QRab\n */\nworkbox_precaching_precacheAndRoute([\n {\n \"url\": \"/VerveineRegular.woff\",\n \"revision\": \"858cc7add1765cbcfb0439e275fd167b\"\n },\n {\n \"url\": \"/_next/static/9zorZIgg-EzXvsnHBrTO_/_buildManifest.js\",\n \"revision\": \"9zorZIgg-EzXvsnHBrTO_\"\n },\n {\n \"url\": \"/_next/static/9zorZIgg-EzXvsnHBrTO_/_ssgManifest.js\",\n \"revision\": \"9zorZIgg-EzXvsnHBrTO_\"\n },\n {\n \"url\": \"/_next/static/chunks/946.be8034bb4741e645734d.js\",\n \"revision\": \"9zorZIgg-EzXvsnHBrTO_\"\n },\n {\n \"url\": \"/_next/static/chunks/946.be8034bb4741e645734d.js.map\",\n \"revision\": \"9zorZIgg-EzXvsnHBrTO_\"\n },\n {\n \"url\": \"/_next/static/chunks/framework-6904c37ecf5b200e4e2e.js\",\n \"revision\": \"9zorZIgg-EzXvsnHBrTO_\"\n },\n {\n \"url\": \"/_next/static/chunks/framework-6904c37ecf5b200e4e2e.js.map\",\n \"revision\": \"9zorZIgg-EzXvsnHBrTO_\"\n },\n {\n \"url\": \"/_next/static/chunks/main-1fd13886f63948e5452c.js\",\n \"revision\": \"9zorZIgg-EzXvsnHBrTO_\"\n },\n {\n \"url\": \"/_next/static/chunks/main-1fd13886f63948e5452c.js.map\",\n \"revision\": \"9zorZIgg-EzXvsnHBrTO_\"\n },\n {\n \"url\": \"/_next/static/chunks/pages/_app-af6e89c4dda7db409078.js\",\n \"revision\": \"9zorZIgg-EzXvsnHBrTO_\"\n },\n {\n \"url\": \"/_next/static/chunks/pages/_app-af6e89c4dda7db409078.js.map\",\n \"revision\": \"9zorZIgg-EzXvsnHBrTO_\"\n },\n {\n \"url\": \"/_next/static/chunks/pages/_error-1cd1e11cd5e9c8211770.js\",\n \"revision\": \"9zorZIgg-EzXvsnHBrTO_\"\n },\n {\n \"url\": \"/_next/static/chunks/pages/_error-1cd1e11cd5e9c8211770.js.map\",\n \"revision\": \"9zorZIgg-EzXvsnHBrTO_\"\n },\n {\n \"url\": \"/_next/static/chunks/pages/index-00f614c6be4abbf55d66.js\",\n \"revision\": \"9zorZIgg-EzXvsnHBrTO_\"\n },\n {\n \"url\": \"/_next/static/chunks/pages/index-00f614c6be4abbf55d66.js.map\",\n \"revision\": \"9zorZIgg-EzXvsnHBrTO_\"\n },\n {\n \"url\": \"/_next/static/chunks/pages/r/%5Bid%5D-22c98f064aaf55fccee2.js\",\n \"revision\": \"9zorZIgg-EzXvsnHBrTO_\"\n },\n {\n \"url\": \"/_next/static/chunks/pages/r/%5Bid%5D-22c98f064aaf55fccee2.js.map\",\n \"revision\": \"9zorZIgg-EzXvsnHBrTO_\"\n },\n {\n \"url\": \"/_next/static/chunks/pages/u/%5Bid%5D-3e3c5cc071f0a68d97b4.js\",\n \"revision\": \"9zorZIgg-EzXvsnHBrTO_\"\n },\n {\n \"url\": \"/_next/static/chunks/pages/u/%5Bid%5D-3e3c5cc071f0a68d97b4.js.map\",\n \"revision\": \"9zorZIgg-EzXvsnHBrTO_\"\n },\n {\n \"url\": \"/_next/static/chunks/polyfills-7510a95ef9a46fd369c3.js\",\n \"revision\": \"9zorZIgg-EzXvsnHBrTO_\"\n },\n {\n \"url\": \"/_next/static/chunks/polyfills-7510a95ef9a46fd369c3.js.map\",\n \"revision\": \"9zorZIgg-EzXvsnHBrTO_\"\n },\n {\n \"url\": \"/_next/static/chunks/webpack-9513ffb94df872a9a6d9.js\",\n \"revision\": \"9zorZIgg-EzXvsnHBrTO_\"\n },\n {\n \"url\": \"/_next/static/chunks/webpack-9513ffb94df872a9a6d9.js.map\",\n \"revision\": \"9zorZIgg-EzXvsnHBrTO_\"\n },\n {\n \"url\": \"/_next/static/css/2946e48fdf8b8c44ed3f.css\",\n \"revision\": \"9zorZIgg-EzXvsnHBrTO_\"\n },\n {\n \"url\": \"/_next/static/css/2946e48fdf8b8c44ed3f.css.map\",\n \"revision\": \"9zorZIgg-EzXvsnHBrTO_\"\n },\n {\n \"url\": \"/favicon.ico\",\n \"revision\": \"c30c7d42707a47a3f4591831641e50dc\"\n },\n {\n \"url\": \"/vercel.svg\",\n \"revision\": \"4b4f1876502eb6721764637fe5c41702\"\n }\n], {\n \"ignoreURLParametersMatching\": []\n});\nworkbox_precaching_cleanupOutdatedCaches();\n\n\n\nworkbox_routing_registerRoute(\"/\", new workbox_strategies_NetworkFirst({ \"cacheName\":\"start-url\", plugins: [{ cacheWillUpdate: async ({request, response, event, state}) => { if (response && response.type === 'opaqueredirect') { return new Response(response.body, {status: 200, statusText: 'OK', headers: response.headers}); } return response; } }] }), 'GET');\nworkbox_routing_registerRoute(/^https:\\/\\/fonts\\.(?:gstatic)\\.com\\/.*/i, new workbox_strategies_CacheFirst({ \"cacheName\":\"google-fonts-webfonts\", plugins: [new workbox_expiration_ExpirationPlugin({ maxEntries: 4, maxAgeSeconds: 31536000 })] }), 'GET');\nworkbox_routing_registerRoute(/^https:\\/\\/fonts\\.(?:googleapis)\\.com\\/.*/i, new workbox_strategies_StaleWhileRevalidate({ \"cacheName\":\"google-fonts-stylesheets\", plugins: [new workbox_expiration_ExpirationPlugin({ maxEntries: 4, maxAgeSeconds: 604800 })] }), 'GET');\nworkbox_routing_registerRoute(/\\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i, new workbox_strategies_StaleWhileRevalidate({ \"cacheName\":\"static-font-assets\", plugins: [new workbox_expiration_ExpirationPlugin({ maxEntries: 4, maxAgeSeconds: 604800 })] }), 'GET');\nworkbox_routing_registerRoute(/\\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i, new workbox_strategies_StaleWhileRevalidate({ \"cacheName\":\"static-image-assets\", plugins: [new workbox_expiration_ExpirationPlugin({ maxEntries: 64, maxAgeSeconds: 86400 })] }), 'GET');\nworkbox_routing_registerRoute(/\\/_next\\/image\\?url=.+$/i, new workbox_strategies_StaleWhileRevalidate({ \"cacheName\":\"next-image\", plugins: [new workbox_expiration_ExpirationPlugin({ maxEntries: 64, maxAgeSeconds: 86400 })] }), 'GET');\nworkbox_routing_registerRoute(/\\.(?:mp3|wav|ogg)$/i, new workbox_strategies_CacheFirst({ \"cacheName\":\"static-audio-assets\", plugins: [new workbox_range_requests_RangeRequestsPlugin(), new workbox_expiration_ExpirationPlugin({ maxEntries: 32, maxAgeSeconds: 86400 })] }), 'GET');\nworkbox_routing_registerRoute(/\\.(?:mp4)$/i, new workbox_strategies_CacheFirst({ \"cacheName\":\"static-video-assets\", plugins: [new workbox_range_requests_RangeRequestsPlugin(), new workbox_expiration_ExpirationPlugin({ maxEntries: 32, maxAgeSeconds: 86400 })] }), 'GET');\nworkbox_routing_registerRoute(/\\.(?:js)$/i, new workbox_strategies_StaleWhileRevalidate({ \"cacheName\":\"static-js-assets\", plugins: [new workbox_expiration_ExpirationPlugin({ maxEntries: 32, maxAgeSeconds: 86400 })] }), 'GET');\nworkbox_routing_registerRoute(/\\.(?:css|less)$/i, new workbox_strategies_StaleWhileRevalidate({ \"cacheName\":\"static-style-assets\", plugins: [new workbox_expiration_ExpirationPlugin({ maxEntries: 32, maxAgeSeconds: 86400 })] }), 'GET');\nworkbox_routing_registerRoute(/\\/_next\\/data\\/.+\\/.+\\.json$/i, new workbox_strategies_StaleWhileRevalidate({ \"cacheName\":\"next-data\", plugins: [new workbox_expiration_ExpirationPlugin({ maxEntries: 32, maxAgeSeconds: 86400 })] }), 'GET');\nworkbox_routing_registerRoute(/\\.(?:json|xml|csv)$/i, new workbox_strategies_NetworkFirst({ \"cacheName\":\"static-data-assets\", plugins: [new workbox_expiration_ExpirationPlugin({ maxEntries: 32, maxAgeSeconds: 86400 })] }), 'GET');\nworkbox_routing_registerRoute(({url}) => {\n const isSameOrigin = self.origin === url.origin\n if (!isSameOrigin) return false\n const pathname = url.pathname\n // Exclude /api/auth/callback/* to fix OAuth workflow in Safari without impact other environment\n // Above route is default for next-auth, you may need to change it if your OAuth workflow has a different callback route\n // Issue: https://github.com/shadowwalker/next-pwa/issues/131#issuecomment-821894809\n if (pathname.startsWith('/api/auth/')) return false\n if (pathname.startsWith('/api/')) return true\n return false\n }, new workbox_strategies_NetworkFirst({ \"cacheName\":\"apis\",\"networkTimeoutSeconds\":10, plugins: [new workbox_expiration_ExpirationPlugin({ maxEntries: 16, maxAgeSeconds: 86400 })] }), 'GET');\nworkbox_routing_registerRoute(({url}) => {\n const isSameOrigin = self.origin === url.origin\n if (!isSameOrigin) return false\n const pathname = url.pathname\n if (pathname.startsWith('/api/')) return false\n return true\n }, new workbox_strategies_NetworkFirst({ \"cacheName\":\"others\",\"networkTimeoutSeconds\":10, plugins: [new workbox_expiration_ExpirationPlugin({ maxEntries: 32, maxAgeSeconds: 86400 })] }), 'GET');\nworkbox_routing_registerRoute(({url}) => {\n const isSameOrigin = self.origin === url.origin\n return !isSameOrigin\n }, new workbox_strategies_NetworkFirst({ \"cacheName\":\"cross-origin\",\"networkTimeoutSeconds\":10, plugins: [new workbox_expiration_ExpirationPlugin({ maxEntries: 32, maxAgeSeconds: 3600 })] }), 'GET');\n\n\n\n\n"],"names":["importScripts","self","skipWaiting","workbox_strategies_NetworkFirst","plugins","cacheWillUpdate","async","request","response","event","state","type","Response","body","status","statusText","headers","workbox_strategies_CacheFirst","workbox_expiration_ExpirationPlugin","maxEntries","maxAgeSeconds","workbox_strategies_StaleWhileRevalidate","workbox_range_requests_RangeRequestsPlugin","url","origin","pathname","startsWith"],"mappings":"0yBAqBAA,cACE,mCASFC,KAAKC,kDAU+B,CAClC,KACS,iCACK,oCAEd,KACS,iEACK,yBAEd,KACS,+DACK,yBAEd,KACS,4DACK,yBAEd,KACS,gEACK,yBAEd,KACS,kEACK,yBAEd,KACS,sEACK,yBAEd,KACS,6DAC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KFsC.js b/packages/www/public/worker-9zorZIgg-EzXvsnHBrTO_.js
similarity index 100%
rename from packages/www/public/worker-ZSKPWmeLuzbDpY-pLKFsC.js
rename to packages/www/public/worker-9zorZIgg-EzXvsnHBrTO_.js
diff --git a/packages/www/styles/stitches.config.ts b/packages/www/styles/stitches.config.ts
index c6d8f9257..d48dfb840 100644
--- a/packages/www/styles/stitches.config.ts
+++ b/packages/www/styles/stitches.config.ts
@@ -1,6 +1,6 @@
-import { createStitches, defaultThemeMap } from '@stitches/react'
+import { createCss, defaultThemeMap } from '@stitches/react'
-const { styled, css, createTheme, getCssText } = createStitches({
+const { styled, css, theme, getCssString } = createCss({
themeMap: {
...defaultThemeMap,
},
@@ -99,7 +99,7 @@ const { styled, css, createTheme, getCssText } = createStitches({
},
})
-const dark = createTheme({
+const dark = theme({
colors: {
brushFill: 'rgba(180, 180, 180, .05)',
brushStroke: 'rgba(180, 180, 180, .25)',
@@ -136,4 +136,4 @@ const dark = createTheme({
export default styled
-export { css, getCssText, dark }
+export { css, getCssString, dark }
diff --git a/yarn.lock b/yarn.lock
index f3c47b77d..89348ab32 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3196,6 +3196,11 @@
resolved "https://registry.yarnpkg.com/@sqltools/formatter/-/formatter-1.2.3.tgz#1185726610acc37317ddab11c3c7f9066966bd20"
integrity sha512-O3uyB/JbkAEMZaP3YqyHH7TMnex7tWyCbCI4EfJdOCoN6HIhqdJBWTM6aCCiWQ/5f5wxjgU735QAIpJbjDvmzg==
+"@stitches/react@^0.2.3":
+ version "0.2.5"
+ resolved "https://registry.yarnpkg.com/@stitches/react/-/react-0.2.5.tgz#ad15b4e59ac2a0679542ba002d41253244be7dab"
+ integrity sha512-RDVn89kW0R/M4q4TdYvsJ7nckFndzRWGGFJnEHbIH9flOpahtNdPsrxVSsZSjFpxeVqCoOxKujlQjiyRrec1VA==
+
"@stitches/react@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@stitches/react/-/react-1.0.0.tgz#311413630d96a627ca28f44ebcc9179455cdb73a"