diff --git a/packages/site/.svelte-kit/ambient.d.ts b/packages/site/.svelte-kit/ambient.d.ts new file mode 100644 index 00000000..9dc67d18 --- /dev/null +++ b/packages/site/.svelte-kit/ambient.d.ts @@ -0,0 +1,263 @@ + +// this file is generated — do not edit it + + +/// + +/** + * Environment variables [loaded by Vite](https://vitejs.dev/guide/env-and-mode.html#env-files) from `.env` files and `process.env`. Like [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), this module cannot be imported into client-side code. This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://kit.svelte.dev/docs/configuration#env) (if configured). + * + * _Unlike_ [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), the values exported from this module are statically injected into your bundle at build time, enabling optimisations like dead code elimination. + * + * ```ts + * import { API_KEY } from '$env/static/private'; + * ``` + * + * Note that all environment variables referenced in your code should be declared (for example in an `.env` file), even if they don't have a value until the app is deployed: + * + * ``` + * MY_FEATURE_FLAG="" + * ``` + * + * You can override `.env` values from the command line like so: + * + * ```bash + * MY_FEATURE_FLAG="enabled" npm run dev + * ``` + */ +declare module '$env/static/private' { + export const MANPATH: string; + export const _VOLTA_TOOL_RECURSION: string; + export const npm_config_prefer_workspace_packages: string; + export const npm_package_devDependencies_codemirror: string; + export const npm_package_devDependencies_rollup_plugin_svelte: string; + export const npm_package_devDependencies_rollup_plugin_terser: string; + export const TERM_PROGRAM: string; + export const npm_package_scripts_cy_run: string; + export const NODE: string; + export const PYENV_ROOT: string; + export const INIT_CWD: string; + export const SHELL: string; + export const TERM: string; + export const npm_package_devDependencies_unist_util_visit: string; + export const npm_package_devDependencies_vite: string; + export const npm_config_shamefully_hoist: string; + export const HOMEBREW_REPOSITORY: string; + export const TMPDIR: string; + export const npm_package_devDependencies__rollup_plugin_babel: string; + export const TERM_PROGRAM_VERSION: string; + export const npm_package_scripts_dev: string; + export const VOLTA_HOME: string; + export const npm_package_devDependencies__rollup_plugin_replace: string; + export const npm_package_devDependencies__babel_plugin_syntax_dynamic_import: string; + export const npm_package_private: string; + export const npm_package_devDependencies__sveltejs_kit: string; + export const npm_config_registry: string; + export const PNPM_HOME: string; + export const npm_package_devDependencies_rehype_slug: string; + export const USER: string; + export const npm_package_description: string; + export const npm_package_devDependencies__babel_plugin_transform_runtime: string; + export const npm_package_dependencies_mdsvex: string; + export const npm_package_dependencies_yootils: string; + export const COMMAND_MODE: string; + export const npm_package_devDependencies_typeface_catamaran: string; + export const PNPM_SCRIPT_SRC_DIR: string; + export const npm_package_dependencies_refractor: string; + export const npm_package_devDependencies__babel_core: string; + export const SSH_AUTH_SOCK: string; + export const npm_package_devDependencies__rollup_plugin_commonjs: string; + export const WARP_IS_LOCAL_SHELL_SESSION: string; + export const __CF_USER_TEXT_ENCODING: string; + export const npm_package_devDependencies_rehype_autolink_headings: string; + export const npm_package_devDependencies_remark_syntax_highlight: string; + export const npm_execpath: string; + export const WARP_USE_SSH_WRAPPER: string; + export const npm_package_devDependencies_svelte: string; + export const npm_package_devDependencies__rollup_plugin_json: string; + export const npm_package_devDependencies__babel_runtime: string; + export const PATH: string; + export const npm_package_devDependencies_rollup: string; + export const LaunchInstanceID: string; + export const __CFBundleIdentifier: string; + export const PWD: string; + export const npm_package_devDependencies__rollup_plugin_node_resolve: string; + export const npm_package_devDependencies_npm_run_all: string; + export const npm_command: string; + export const npm_package_scripts_preview: string; + export const npm_lifecycle_event: string; + export const LANG: string; + export const npm_package_name: string; + export const npm_package_devDependencies__babel_preset_env: string; + export const npm_package_devDependencies_svelte_json_tree: string; + export const NODE_PATH: string; + export const npm_package_scripts_build: string; + export const XPC_FLAGS: string; + export const npm_config_node_gyp: string; + export const XPC_SERVICE_NAME: string; + export const npm_package_version: string; + export const npm_package_devDependencies__sveltejs_adapter_auto: string; + export const HOME: string; + export const PYENV_SHELL: string; + export const SHLVL: string; + export const npm_package_type: string; + export const npm_package_scripts_cy_open: string; + export const npm_package_scripts_test: string; + export const HOMEBREW_PREFIX: string; + export const LOGNAME: string; + export const npm_lifecycle_script: string; + export const SSH_SOCKET_DIR: string; + export const npm_config_user_agent: string; + export const HOMEBREW_CELLAR: string; + export const INFOPATH: string; + export const npm_package_scripts_generate_workers: string; + export const npm_package_devDependencies_prism_svelte: string; + export const npm_config_link_workspace_packages: string; + export const CONDA_CHANGEPS1: string; + export const SECURITYSESSIONID: string; + export const npm_package_devDependencies_typeface_roboto: string; + export const COLORTERM: string; + export const npm_node_execpath: string; + export const NODE_ENV: string; +} + +/** + * Similar to [`$env/static/private`](https://kit.svelte.dev/docs/modules#$env-static-private), except that it only includes environment variables that begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code. + * + * Values are replaced statically at build time. + * + * ```ts + * import { PUBLIC_BASE_URL } from '$env/static/public'; + * ``` + */ +declare module '$env/static/public' { + +} + +/** + * This module provides access to runtime environment variables, as defined by the platform you're running on. For example if you're using [`adapter-node`](https://github.com/sveltejs/kit/tree/master/packages/adapter-node) (or running [`vite preview`](https://kit.svelte.dev/docs/cli)), this is equivalent to `process.env`. This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://kit.svelte.dev/docs/configuration#env) (if configured). + * + * This module cannot be imported into client-side code. + * + * ```ts + * import { env } from '$env/dynamic/private'; + * console.log(env.DEPLOYMENT_SPECIFIC_VARIABLE); + * ``` + * + * > In `dev`, `$env/dynamic` always includes environment variables from `.env`. In `prod`, this behavior will depend on your adapter. + */ +declare module '$env/dynamic/private' { + export const env: { + MANPATH: string; + _VOLTA_TOOL_RECURSION: string; + npm_config_prefer_workspace_packages: string; + npm_package_devDependencies_codemirror: string; + npm_package_devDependencies_rollup_plugin_svelte: string; + npm_package_devDependencies_rollup_plugin_terser: string; + TERM_PROGRAM: string; + npm_package_scripts_cy_run: string; + NODE: string; + PYENV_ROOT: string; + INIT_CWD: string; + SHELL: string; + TERM: string; + npm_package_devDependencies_unist_util_visit: string; + npm_package_devDependencies_vite: string; + npm_config_shamefully_hoist: string; + HOMEBREW_REPOSITORY: string; + TMPDIR: string; + npm_package_devDependencies__rollup_plugin_babel: string; + TERM_PROGRAM_VERSION: string; + npm_package_scripts_dev: string; + VOLTA_HOME: string; + npm_package_devDependencies__rollup_plugin_replace: string; + npm_package_devDependencies__babel_plugin_syntax_dynamic_import: string; + npm_package_private: string; + npm_package_devDependencies__sveltejs_kit: string; + npm_config_registry: string; + PNPM_HOME: string; + npm_package_devDependencies_rehype_slug: string; + USER: string; + npm_package_description: string; + npm_package_devDependencies__babel_plugin_transform_runtime: string; + npm_package_dependencies_mdsvex: string; + npm_package_dependencies_yootils: string; + COMMAND_MODE: string; + npm_package_devDependencies_typeface_catamaran: string; + PNPM_SCRIPT_SRC_DIR: string; + npm_package_dependencies_refractor: string; + npm_package_devDependencies__babel_core: string; + SSH_AUTH_SOCK: string; + npm_package_devDependencies__rollup_plugin_commonjs: string; + WARP_IS_LOCAL_SHELL_SESSION: string; + __CF_USER_TEXT_ENCODING: string; + npm_package_devDependencies_rehype_autolink_headings: string; + npm_package_devDependencies_remark_syntax_highlight: string; + npm_execpath: string; + WARP_USE_SSH_WRAPPER: string; + npm_package_devDependencies_svelte: string; + npm_package_devDependencies__rollup_plugin_json: string; + npm_package_devDependencies__babel_runtime: string; + PATH: string; + npm_package_devDependencies_rollup: string; + LaunchInstanceID: string; + __CFBundleIdentifier: string; + PWD: string; + npm_package_devDependencies__rollup_plugin_node_resolve: string; + npm_package_devDependencies_npm_run_all: string; + npm_command: string; + npm_package_scripts_preview: string; + npm_lifecycle_event: string; + LANG: string; + npm_package_name: string; + npm_package_devDependencies__babel_preset_env: string; + npm_package_devDependencies_svelte_json_tree: string; + NODE_PATH: string; + npm_package_scripts_build: string; + XPC_FLAGS: string; + npm_config_node_gyp: string; + XPC_SERVICE_NAME: string; + npm_package_version: string; + npm_package_devDependencies__sveltejs_adapter_auto: string; + HOME: string; + PYENV_SHELL: string; + SHLVL: string; + npm_package_type: string; + npm_package_scripts_cy_open: string; + npm_package_scripts_test: string; + HOMEBREW_PREFIX: string; + LOGNAME: string; + npm_lifecycle_script: string; + SSH_SOCKET_DIR: string; + npm_config_user_agent: string; + HOMEBREW_CELLAR: string; + INFOPATH: string; + npm_package_scripts_generate_workers: string; + npm_package_devDependencies_prism_svelte: string; + npm_config_link_workspace_packages: string; + CONDA_CHANGEPS1: string; + SECURITYSESSIONID: string; + npm_package_devDependencies_typeface_roboto: string; + COLORTERM: string; + npm_node_execpath: string; + NODE_ENV: string; + [key: `PUBLIC_${string}`]: undefined; + [key: `${string}`]: string | undefined; + } +} + +/** + * Similar to [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), but only includes variables that begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code. + * + * Note that public dynamic environment variables must all be sent from the server to the client, causing larger network requests — when possible, use `$env/static/public` instead. + * + * ```ts + * import { env } from '$env/dynamic/public'; + * console.log(env.PUBLIC_DEPLOYMENT_SPECIFIC_VARIABLE); + * ``` + */ +declare module '$env/dynamic/public' { + export const env: { + [key: `PUBLIC_${string}`]: string | undefined; + } +} diff --git a/packages/site/.svelte-kit/generated/client/app.js b/packages/site/.svelte-kit/generated/client/app.js new file mode 100644 index 00000000..d11c5156 --- /dev/null +++ b/packages/site/.svelte-kit/generated/client/app.js @@ -0,0 +1,23 @@ +export { matchers } from './matchers.js'; + +export const nodes = [ + () => import('./nodes/0'), + () => import('./nodes/1'), + () => import('./nodes/2'), + () => import('./nodes/3'), + () => import('./nodes/4') +]; + +export const server_loads = []; + +export const dictionary = { + "/": [2], + "/docs": [3], + "/playground": [4] + }; + +export const hooks = { + handleError: (({ error }) => { console.error(error) }), +}; + +export { default as root } from '../root.svelte'; \ No newline at end of file diff --git a/packages/site/.svelte-kit/generated/client/matchers.js b/packages/site/.svelte-kit/generated/client/matchers.js new file mode 100644 index 00000000..f6bd30a4 --- /dev/null +++ b/packages/site/.svelte-kit/generated/client/matchers.js @@ -0,0 +1 @@ +export const matchers = {}; \ No newline at end of file diff --git a/packages/site/.svelte-kit/generated/client/nodes/0.js b/packages/site/.svelte-kit/generated/client/nodes/0.js new file mode 100644 index 00000000..fed1375f --- /dev/null +++ b/packages/site/.svelte-kit/generated/client/nodes/0.js @@ -0,0 +1 @@ +export { default as component } from "../../../../src/routes/+layout.svelte"; \ No newline at end of file diff --git a/packages/site/.svelte-kit/generated/client/nodes/1.js b/packages/site/.svelte-kit/generated/client/nodes/1.js new file mode 100644 index 00000000..ac3c6a53 --- /dev/null +++ b/packages/site/.svelte-kit/generated/client/nodes/1.js @@ -0,0 +1 @@ +export { default as component } from "../../../../src/routes/+error.svelte"; \ No newline at end of file diff --git a/packages/site/.svelte-kit/generated/client/nodes/2.js b/packages/site/.svelte-kit/generated/client/nodes/2.js new file mode 100644 index 00000000..1cb4f855 --- /dev/null +++ b/packages/site/.svelte-kit/generated/client/nodes/2.js @@ -0,0 +1 @@ +export { default as component } from "../../../../src/routes/+page.svelte"; \ No newline at end of file diff --git a/packages/site/.svelte-kit/generated/client/nodes/3.js b/packages/site/.svelte-kit/generated/client/nodes/3.js new file mode 100644 index 00000000..eb269078 --- /dev/null +++ b/packages/site/.svelte-kit/generated/client/nodes/3.js @@ -0,0 +1 @@ +export { default as component } from "../../../../src/routes/docs/+page.svelte"; \ No newline at end of file diff --git a/packages/site/.svelte-kit/generated/client/nodes/4.js b/packages/site/.svelte-kit/generated/client/nodes/4.js new file mode 100644 index 00000000..900d2fed --- /dev/null +++ b/packages/site/.svelte-kit/generated/client/nodes/4.js @@ -0,0 +1 @@ +export { default as component } from "../../../../src/routes/playground/+page.svelte"; \ No newline at end of file diff --git a/packages/site/.svelte-kit/generated/root.svelte b/packages/site/.svelte-kit/generated/root.svelte new file mode 100644 index 00000000..5f25f7fd --- /dev/null +++ b/packages/site/.svelte-kit/generated/root.svelte @@ -0,0 +1,56 @@ + + + +{#if constructors[1]} + + + +{:else} + +{/if} + +{#if mounted} +
+ {#if navigated} + {title} + {/if} +
+{/if} \ No newline at end of file diff --git a/packages/site/.svelte-kit/generated/server/internal.js b/packages/site/.svelte-kit/generated/server/internal.js new file mode 100644 index 00000000..a74aef17 --- /dev/null +++ b/packages/site/.svelte-kit/generated/server/internal.js @@ -0,0 +1,30 @@ + +import root from '../root.svelte'; +import { set_building } from '__sveltekit/environment'; +import { set_assets } from '__sveltekit/paths'; +import { set_private_env, set_public_env } from '../../../../../node_modules/.pnpm/@sveltejs+kit@1.26.0_svelte@4.2.2_vite@4.5.0/node_modules/@sveltejs/kit/src/runtime/shared-server.js'; + +export const options = { + app_template_contains_nonce: false, + csp: {"mode":"auto","directives":{"upgrade-insecure-requests":false,"block-all-mixed-content":false},"reportOnly":{"upgrade-insecure-requests":false,"block-all-mixed-content":false}}, + csrf_check_origin: true, + track_server_fetches: false, + embedded: false, + env_public_prefix: 'PUBLIC_', + env_private_prefix: '', + hooks: null, // added lazily, via `get_hooks` + preload_strategy: "modulepreload", + root, + service_worker: false, + templates: { + app: ({ head, body, assets, nonce, env }) => "\n\n\t\n\t\t\n\t\t\n\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t\t\n\t\t\n\t\t\n\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t\t" + head + "\n\t\n\n\t\n\t\t
" + body + "
\n\n \n\t\n\n", + error: ({ status, message }) => "\n\n\t\n\t\t\n\t\t" + message + "\n\n\t\t\n\t\n\t\n\t\t
\n\t\t\t" + status + "\n\t\t\t
\n\t\t\t\t

" + message + "

\n\t\t\t
\n\t\t
\n\t\n\n" + }, + version_hash: "1avqltl" +}; + +export function get_hooks() { + return {}; +} + +export { set_assets, set_building, set_private_env, set_public_env }; diff --git a/packages/site/.svelte-kit/tsconfig.json b/packages/site/.svelte-kit/tsconfig.json new file mode 100644 index 00000000..82f2c449 --- /dev/null +++ b/packages/site/.svelte-kit/tsconfig.json @@ -0,0 +1,38 @@ +{ + "compilerOptions": { + "paths": {}, + "rootDirs": [ + "..", + "./types" + ], + "importsNotUsedAsValues": "error", + "isolatedModules": true, + "preserveValueImports": true, + "lib": [ + "esnext", + "DOM", + "DOM.Iterable" + ], + "moduleResolution": "node", + "module": "esnext", + "target": "esnext" + }, + "include": [ + "ambient.d.ts", + "./types/**/$types.d.ts", + "../vite.config.ts", + "../src/**/*.js", + "../src/**/*.ts", + "../src/**/*.svelte", + "../tests/**/*.js", + "../tests/**/*.ts", + "../tests/**/*.svelte" + ], + "exclude": [ + "../node_modules/**", + "./[!ambient.d.ts]**", + "../src/service-worker.js", + "../src/service-worker.ts", + "../src/service-worker.d.ts" + ] +} \ No newline at end of file diff --git a/packages/site/.svelte-kit/types/route_meta_data.json b/packages/site/.svelte-kit/types/route_meta_data.json new file mode 100644 index 00000000..00f25c12 --- /dev/null +++ b/packages/site/.svelte-kit/types/route_meta_data.json @@ -0,0 +1,5 @@ +{ + "/": [], + "/docs": [], + "/playground": [] +} \ No newline at end of file diff --git a/packages/site/.svelte-kit/types/src/routes/$types.d.ts b/packages/site/.svelte-kit/types/src/routes/$types.d.ts new file mode 100644 index 00000000..91cbef64 --- /dev/null +++ b/packages/site/.svelte-kit/types/src/routes/$types.d.ts @@ -0,0 +1,22 @@ +import type * as Kit from '@sveltejs/kit'; + +type Expand = T extends infer O ? { [K in keyof O]: O[K] } : never; +// @ts-ignore +type MatcherParam = M extends (param : string) => param is infer U ? U extends string ? U : string : string; +type RouteParams = { }; +type RouteId = '/'; +type MaybeWithVoid = {} extends T ? T | void : T; +export type RequiredKeys = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T]; +type OutputDataShape = MaybeWithVoid> & Partial> & Record> +type EnsureDefined = T extends null | undefined ? {} : T; +type OptionalUnion, A extends keyof U = U extends U ? keyof U : never> = U extends unknown ? { [P in Exclude]?: never } & U : never; +export type Snapshot = Kit.Snapshot; +type PageParentData = EnsureDefined; +type LayoutRouteId = RouteId | "/" | "/docs" | "/playground" | null +type LayoutParams = RouteParams & { } +type LayoutParentData = EnsureDefined<{}>; + +export type PageServerData = null; +export type PageData = Expand; +export type LayoutServerData = null; +export type LayoutData = Expand; \ No newline at end of file diff --git a/packages/site/.svelte-kit/types/src/routes/docs/$types.d.ts b/packages/site/.svelte-kit/types/src/routes/docs/$types.d.ts new file mode 100644 index 00000000..0bc5be2a --- /dev/null +++ b/packages/site/.svelte-kit/types/src/routes/docs/$types.d.ts @@ -0,0 +1,17 @@ +import type * as Kit from '@sveltejs/kit'; + +type Expand = T extends infer O ? { [K in keyof O]: O[K] } : never; +// @ts-ignore +type MatcherParam = M extends (param : string) => param is infer U ? U extends string ? U : string : string; +type RouteParams = { }; +type RouteId = '/docs'; +type MaybeWithVoid = {} extends T ? T | void : T; +export type RequiredKeys = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T]; +type OutputDataShape = MaybeWithVoid> & Partial> & Record> +type EnsureDefined = T extends null | undefined ? {} : T; +type OptionalUnion, A extends keyof U = U extends U ? keyof U : never> = U extends unknown ? { [P in Exclude]?: never } & U : never; +export type Snapshot = Kit.Snapshot; +type PageParentData = EnsureDefined; + +export type PageServerData = null; +export type PageData = Expand; \ No newline at end of file diff --git a/packages/site/.svelte-kit/types/src/routes/playground/$types.d.ts b/packages/site/.svelte-kit/types/src/routes/playground/$types.d.ts new file mode 100644 index 00000000..87b214d2 --- /dev/null +++ b/packages/site/.svelte-kit/types/src/routes/playground/$types.d.ts @@ -0,0 +1,17 @@ +import type * as Kit from '@sveltejs/kit'; + +type Expand = T extends infer O ? { [K in keyof O]: O[K] } : never; +// @ts-ignore +type MatcherParam = M extends (param : string) => param is infer U ? U extends string ? U : string : string; +type RouteParams = { }; +type RouteId = '/playground'; +type MaybeWithVoid = {} extends T ? T | void : T; +export type RequiredKeys = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T]; +type OutputDataShape = MaybeWithVoid> & Partial> & Record> +type EnsureDefined = T extends null | undefined ? {} : T; +type OptionalUnion, A extends keyof U = U extends U ? keyof U : never> = U extends unknown ? { [P in Exclude]?: never } & U : never; +export type Snapshot = Kit.Snapshot; +type PageParentData = EnsureDefined; + +export type PageServerData = null; +export type PageData = Expand; \ No newline at end of file diff --git a/packages/site/package.json b/packages/site/package.json index 3c7c0f51..34d43d14 100644 --- a/packages/site/package.json +++ b/packages/site/package.json @@ -40,10 +40,10 @@ "rehype-slug": "^2.0.3", "remark-syntax-highlight": "^0.1.3", "rollup": "^2.58.0", - "rollup-plugin-svelte": "^7.1.0", + "rollup-plugin-svelte": "^7.1.6", "rollup-plugin-terser": "^7.0.2", "sapper": "^0.29.3", - "svelte": "^3.7.1", + "svelte": "^4.0.0", "svelte-json-tree": "^0.0.7", "typeface-catamaran": "^0.0.72", "typeface-roboto": "^0.0.75", diff --git a/packages/site/src/components/Repl/CodeMirror.svelte b/packages/site/src/components/Repl/CodeMirror.svelte index 13e56003..2795ffbd 100644 --- a/packages/site/src/components/Repl/CodeMirror.svelte +++ b/packages/site/src/components/Repl/CodeMirror.svelte @@ -1,4 +1,4 @@ -[