@kayjs/kay 1.105.0 → 1.107.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/eslint.js +777 -210
- package/editors/zed/extension.toml +2 -2
- package/llms/action-protection.md +2 -2
- package/llms/actions-from-islands.md +2 -2
- package/llms/actions-refused-fields.md +22 -0
- package/llms/actions.md +24 -41
- package/llms/analytics.md +1 -1
- package/llms/api-from-islands.md +1 -1
- package/llms/api-routes.md +6 -6
- package/llms/browser-only.md +1 -1
- package/llms/check-and-tools.md +1 -1
- package/llms/code-lints.md +2 -2
- package/llms/compiler-api.md +1 -1
- package/llms/component-libraries.md +1 -0
- package/llms/components.md +1 -1
- package/llms/content-cms.md +1 -1
- package/llms/content-markdown-to-caching.md +1 -1
- package/llms/content-preview.md +2 -2
- package/llms/content.md +21 -21
- package/llms/deprecated-lints-1-105-libraries.md +2 -0
- package/llms/deprecated-lints-1-105.md +3 -3
- package/llms/deprecated-lints.md +4 -4
- package/llms/dev-tool.md +2 -2
- package/llms/environment.md +22 -22
- package/llms/files.md +5 -5
- package/llms/island-and-form-lints.md +1 -0
- package/llms/islands-state-to-ids.md +2 -1
- package/llms/islands.md +10 -1
- package/llms/local-collections.md +2 -2
- package/llms/mcp.md +2 -1
- package/llms/navigation-from-code.md +1 -1
- package/llms/notifications.md +4 -2
- package/llms/project-new-and-add.md +1 -1
- package/llms/project.md +3 -3
- package/llms/rate-limits.md +1 -1
- package/llms/recipes.md +16 -16
- package/llms/rooms.md +4 -4
- package/llms/routing-endpoints-and-base.md +1 -1
- package/llms/routing.md +5 -5
- package/llms/schemas.md +14 -7
- package/llms/server.md +7 -7
- package/llms/site.md +9 -9
- package/llms/sitemap-search-fonts.md +2 -0
- package/llms/styles-and-assets.md +2 -1
- package/llms/templates-elements-slots-snippets.md +2 -2
- package/llms/testing-browser.md +20 -0
- package/llms/testing.md +1 -1
- package/llms/upgrading-1-105-config.md +2 -2
- package/llms/upgrading.md +37 -4
- package/llms/whats-new-archive.md +35 -66
- package/llms/whats-new.md +47 -28
- package/llms.txt +1 -1
- package/package.json +24 -11
- package/src/add.ts +1 -1
- package/src/build/class-table.ts +2 -2
- package/src/build/client.ts +27 -30
- package/src/build/entry-files.ts +19 -0
- package/src/build/lazy-components.ts +130 -0
- package/src/build/lazy-manifest.ts +56 -0
- package/src/build/lazy-stubs.ts +31 -0
- package/src/build/plugin.ts +16 -11
- package/src/build/runtime-chunk.ts +1 -1
- package/src/build/styles.ts +3 -3
- package/src/build/transform.ts +19 -7
- package/src/build/ui-layers.ts +30 -0
- package/src/build/ui.ts +108 -11
- package/src/build/variants.ts +125 -46
- package/src/build/worker-bundle.ts +6 -0
- package/src/check/action-options.ts +56 -0
- package/src/check/boot.ts +22 -1
- package/src/check/call-result.ts +242 -0
- package/src/check/config-objects.ts +17 -2
- package/src/check/diagnose.ts +22 -0
- package/src/check/handler-events.ts +149 -0
- package/src/check/index.ts +6 -2
- package/src/check/link-flag-tests.ts +130 -0
- package/src/check/project.ts +4 -3
- package/src/check/refusal-calls.ts +2 -2
- package/src/check/regroup.ts +5 -3
- package/src/check/renamed-packages.ts +58 -14
- package/src/check/schema-builders.ts +256 -0
- package/src/check/schema-json.ts +226 -0
- package/src/check/secret-keys.ts +15 -2
- package/src/check/shadow-types.ts +13 -9
- package/src/check/template-hints.ts +1 -1
- package/src/check/tool-labels.ts +11 -9
- package/src/check/ui-types.ts +4 -3
- package/src/check/ui.ts +14 -11
- package/src/commands/env-declare.ts +18 -6
- package/src/commands/routes.ts +1 -1
- package/src/compiler/a11y.ts +8 -1
- package/src/compiler/ast.ts +1 -1
- package/src/compiler/bound-props.ts +1 -1
- package/src/compiler/codegen.ts +13 -23
- package/src/compiler/deprecated-lints-1-105.ts +41 -0
- package/src/compiler/deprecated-lints-1-106.ts +14 -0
- package/src/compiler/deprecated-lints-1-107.ts +14 -0
- package/src/compiler/deprecated-lints.ts +17 -60
- package/src/compiler/deprecated-typed-lints.ts +23 -0
- package/src/compiler/dom-here.ts +72 -0
- package/src/compiler/dom.ts +23 -23
- package/src/compiler/fence-checks.ts +12 -11
- package/src/compiler/field-described.ts +2 -2
- package/src/compiler/helper-imports.ts +1 -1
- package/src/compiler/html-fields.ts +92 -0
- package/src/compiler/html-initial.ts +5 -3
- package/src/compiler/html.ts +14 -31
- package/src/compiler/import-edits.ts +15 -0
- package/src/compiler/index.ts +10 -3
- package/src/compiler/island-declaration.ts +15 -0
- package/src/compiler/items.ts +5 -5
- package/src/compiler/kay-exports.ts +1 -0
- package/src/compiler/lazy-imports.ts +357 -0
- package/src/compiler/link-flags.ts +6 -5
- package/src/compiler/lints.ts +12 -12
- package/src/compiler/parser.ts +2 -2
- package/src/compiler/rest-omits.ts +15 -0
- package/src/compiler/route-lints.ts +2 -0
- package/src/compiler/schema-lints.ts +13 -0
- package/src/compiler/script-server.ts +6 -3
- package/src/config-loader.ts +10 -2
- package/src/config-resolve.ts +3 -1
- package/src/config-shape.ts +2 -2
- package/src/config.ts +20 -4
- package/src/content/markdown.ts +2 -3
- package/src/content/validate.ts +1 -1
- package/src/generate-resource.ts +9 -9
- package/src/generate.ts +1 -1
- package/src/mcp/guards.ts +1 -1
- package/src/mcp/tools.ts +1 -1
- package/src/migrate/content.ts +61 -55
- package/src/new.ts +6 -2
- package/src/runtime/action-shared.ts +2 -2
- package/src/runtime/action.ts +51 -4
- package/src/runtime/client.ts +10 -0
- package/src/runtime/dom-lazy.ts +276 -0
- package/src/runtime/field-errors.ts +58 -0
- package/src/runtime/field-refusal.ts +179 -0
- package/src/runtime/form-types.ts +99 -0
- package/src/runtime/form.ts +25 -9
- package/src/runtime/html.ts +42 -6
- package/src/runtime/index.ts +2 -0
- package/src/runtime/island.server.ts +36 -2
- package/src/runtime/markdown-autolink.ts +69 -0
- package/src/runtime/markdown-render.client.ts +39 -3
- package/src/runtime/markdown.client.ts +6 -3
- package/src/runtime/markdown.server.ts +6 -3
- package/src/runtime/markdown.ts +125 -1
- package/src/runtime/navigate-api.ts +10 -5
- package/src/runtime/persist.ts +7 -7
- package/src/runtime/query-param.ts +1 -1
- package/src/runtime/reactive.ts +14 -0
- package/src/runtime/sanitize.ts +3 -1
- package/src/runtime/schema-record.ts +32 -0
- package/src/runtime/schema.client.ts +101 -14
- package/src/runtime/schema.ts +328 -26
- package/src/runtime/standard-schema.ts +32 -0
- package/src/runtime/swap-focus.ts +59 -11
- package/src/runtime/validate-run.client.ts +179 -0
- package/src/runtime/validate.client.ts +11 -0
- package/src/runtime/validate.ts +4 -137
- package/src/server/action-module.ts +16 -0
- package/src/server/actions.ts +54 -57
- package/src/server/answer.ts +102 -0
- package/src/server/api-input.ts +166 -0
- package/src/server/api-modules.ts +1 -1
- package/src/server/api.ts +12 -32
- package/src/server/app-stages.ts +38 -26
- package/src/server/app.ts +5 -2
- package/src/server/client.ts +2 -0
- package/src/server/dev-ui.ts +2 -2
- package/src/server/dev.ts +7 -9
- package/src/server/env-state.ts +1 -1
- package/src/server/env.ts +11 -3
- package/src/server/favicon.ts +47 -1
- package/src/server/file-limit.ts +7 -1
- package/src/server/forms.ts +1 -1
- package/src/server/host-allowlist.ts +7 -7
- package/src/server/image-metadata-bmff.ts +1 -1
- package/src/server/index.ts +2 -0
- package/src/server/kay-routes.ts +221 -0
- package/src/server/kay-server.ts +228 -0
- package/src/server/kept-exports.ts +1 -0
- package/src/server/kept-pages.ts +3 -3
- package/src/server/library.ts +2 -2
- package/src/server/mcp.ts +14 -13
- package/src/server/notifications.ts +4 -2
- package/src/server/offline.ts +24 -7
- package/src/server/openapi.ts +12 -3
- package/src/server/phases.ts +249 -0
- package/src/server/protection.ts +6 -6
- package/src/server/proxy-key.ts +8 -8
- package/src/server/push-settings.ts +16 -2
- package/src/server/push.ts +12 -4
- package/src/server/query.ts +17 -31
- package/src/server/receive.ts +43 -0
- package/src/server/render-document.ts +13 -3
- package/src/server/render.ts +1 -1
- package/src/server/request-context.ts +137 -0
- package/src/server/schema-check.ts +1 -1
- package/src/server/scope.ts +20 -13
- package/src/server/signals.ts +4 -4
- package/src/server/socket.ts +19 -47
- package/src/server/stream.ts +1 -1
- package/src/server/validate.ts +346 -0
- package/src/template-ws.ts +1 -1
- package/src/test/a11y-dom.ts +70 -0
- package/src/test/html-snapshot.ts +103 -0
- package/src/test/index.ts +2 -1
- package/src/test/mount.ts +14 -3
- package/src/test/page-checks.ts +12 -0
- package/src/test/screenshot-match.ts +2 -2
- package/src/test/shared-modules.ts +27 -5
- package/src/test/site-types.ts +5 -1
- package/types/build/class-table.d.ts +1 -1
- package/types/build/class-table.d.ts.map +1 -1
- package/types/build/client.d.ts +3 -2
- package/types/build/client.d.ts.map +1 -1
- package/types/build/entry-files.d.ts +4 -0
- package/types/build/entry-files.d.ts.map +1 -0
- package/types/build/lazy-components.d.ts +6 -0
- package/types/build/lazy-components.d.ts.map +1 -0
- package/types/build/lazy-manifest.d.ts +19 -0
- package/types/build/lazy-manifest.d.ts.map +1 -0
- package/types/build/lazy-stubs.d.ts +5 -0
- package/types/build/lazy-stubs.d.ts.map +1 -0
- package/types/build/plugin.d.ts +1 -0
- package/types/build/plugin.d.ts.map +1 -1
- package/types/build/transform.d.ts +4 -1
- package/types/build/transform.d.ts.map +1 -1
- package/types/build/ui-layers.d.ts +5 -0
- package/types/build/ui-layers.d.ts.map +1 -0
- package/types/build/ui.d.ts +7 -0
- package/types/build/ui.d.ts.map +1 -1
- package/types/build/variants.d.ts +1 -1
- package/types/build/variants.d.ts.map +1 -1
- package/types/build/worker-bundle.d.ts +1 -0
- package/types/build/worker-bundle.d.ts.map +1 -1
- package/types/check/action-options.d.ts +3 -0
- package/types/check/action-options.d.ts.map +1 -0
- package/types/check/boot.d.ts.map +1 -1
- package/types/check/call-result.d.ts +7 -0
- package/types/check/call-result.d.ts.map +1 -0
- package/types/check/config-objects.d.ts.map +1 -1
- package/types/check/diagnose.d.ts.map +1 -1
- package/types/check/handler-events.d.ts +9 -0
- package/types/check/handler-events.d.ts.map +1 -0
- package/types/check/index.d.ts +1 -0
- package/types/check/index.d.ts.map +1 -1
- package/types/check/link-flag-tests.d.ts +4 -0
- package/types/check/link-flag-tests.d.ts.map +1 -0
- package/types/check/project.d.ts.map +1 -1
- package/types/check/regroup.d.ts +1 -1
- package/types/check/regroup.d.ts.map +1 -1
- package/types/check/renamed-packages.d.ts +1 -0
- package/types/check/renamed-packages.d.ts.map +1 -1
- package/types/check/schema-builders.d.ts +3 -0
- package/types/check/schema-builders.d.ts.map +1 -0
- package/types/check/schema-json.d.ts +3 -0
- package/types/check/schema-json.d.ts.map +1 -0
- package/types/check/secret-keys.d.ts.map +1 -1
- package/types/check/shadow-types.d.ts.map +1 -1
- package/types/check/template-hints.d.ts +1 -0
- package/types/check/template-hints.d.ts.map +1 -1
- package/types/check/tool-labels.d.ts.map +1 -1
- package/types/check/ui-types.d.ts.map +1 -1
- package/types/check/ui.d.ts.map +1 -1
- package/types/commands/env-declare.d.ts.map +1 -1
- package/types/compiler/a11y.d.ts.map +1 -1
- package/types/compiler/bound-props.d.ts +1 -0
- package/types/compiler/bound-props.d.ts.map +1 -1
- package/types/compiler/codegen.d.ts +3 -0
- package/types/compiler/codegen.d.ts.map +1 -1
- package/types/compiler/deprecated-lints-1-105.d.ts +39 -0
- package/types/compiler/deprecated-lints-1-105.d.ts.map +1 -0
- package/types/compiler/deprecated-lints-1-106.d.ts +12 -0
- package/types/compiler/deprecated-lints-1-106.d.ts.map +1 -0
- package/types/compiler/deprecated-lints-1-107.d.ts +12 -0
- package/types/compiler/deprecated-lints-1-107.d.ts.map +1 -0
- package/types/compiler/deprecated-lints.d.ts +41 -22
- package/types/compiler/deprecated-lints.d.ts.map +1 -1
- package/types/compiler/deprecated-typed-lints.d.ts +21 -0
- package/types/compiler/deprecated-typed-lints.d.ts.map +1 -0
- package/types/compiler/dom-here.d.ts +14 -0
- package/types/compiler/dom-here.d.ts.map +1 -0
- package/types/compiler/dom.d.ts +1 -0
- package/types/compiler/dom.d.ts.map +1 -1
- package/types/compiler/fence-checks.d.ts.map +1 -1
- package/types/compiler/field-described.d.ts +1 -1
- package/types/compiler/field-described.d.ts.map +1 -1
- package/types/compiler/html-fields.d.ts +19 -0
- package/types/compiler/html-fields.d.ts.map +1 -0
- package/types/compiler/html-initial.d.ts +3 -2
- package/types/compiler/html-initial.d.ts.map +1 -1
- package/types/compiler/html.d.ts.map +1 -1
- package/types/compiler/import-edits.d.ts +1 -0
- package/types/compiler/import-edits.d.ts.map +1 -1
- package/types/compiler/index.d.ts +3 -0
- package/types/compiler/index.d.ts.map +1 -1
- package/types/compiler/island-declaration.d.ts +5 -0
- package/types/compiler/island-declaration.d.ts.map +1 -1
- package/types/compiler/items.d.ts +4 -1
- package/types/compiler/items.d.ts.map +1 -1
- package/types/compiler/kay-exports.d.ts.map +1 -1
- package/types/compiler/lazy-imports.d.ts +33 -0
- package/types/compiler/lazy-imports.d.ts.map +1 -0
- package/types/compiler/link-flags.d.ts +6 -0
- package/types/compiler/link-flags.d.ts.map +1 -1
- package/types/compiler/lints.d.ts +61 -34
- package/types/compiler/lints.d.ts.map +1 -1
- package/types/compiler/rest-omits.d.ts +4 -0
- package/types/compiler/rest-omits.d.ts.map +1 -0
- package/types/compiler/route-lints.d.ts +8 -0
- package/types/compiler/route-lints.d.ts.map +1 -1
- package/types/compiler/schema-lints.d.ts +11 -0
- package/types/compiler/schema-lints.d.ts.map +1 -0
- package/types/compiler/script-server.d.ts.map +1 -1
- package/types/config-loader.d.ts.map +1 -1
- package/types/config-resolve.d.ts.map +1 -1
- package/types/config.d.ts +15 -2
- package/types/config.d.ts.map +1 -1
- package/types/content/markdown.d.ts.map +1 -1
- package/types/migrate/content.d.ts.map +1 -1
- package/types/new.d.ts +1 -0
- package/types/new.d.ts.map +1 -1
- package/types/runtime/action-shared.d.ts +1 -1
- package/types/runtime/action-shared.d.ts.map +1 -1
- package/types/runtime/action.d.ts +29 -1
- package/types/runtime/action.d.ts.map +1 -1
- package/types/runtime/client.d.ts.map +1 -1
- package/types/runtime/dom-lazy.d.ts +6 -0
- package/types/runtime/dom-lazy.d.ts.map +1 -0
- package/types/runtime/field-errors.d.ts +4 -0
- package/types/runtime/field-errors.d.ts.map +1 -0
- package/types/runtime/field-refusal.d.ts +37 -0
- package/types/runtime/field-refusal.d.ts.map +1 -0
- package/types/runtime/form-types.d.ts +6 -0
- package/types/runtime/form-types.d.ts.map +1 -0
- package/types/runtime/form.d.ts +4 -2
- package/types/runtime/form.d.ts.map +1 -1
- package/types/runtime/html.d.ts +3 -0
- package/types/runtime/html.d.ts.map +1 -1
- package/types/runtime/index.d.ts +2 -0
- package/types/runtime/index.d.ts.map +1 -1
- package/types/runtime/island.server.d.ts +2 -0
- package/types/runtime/island.server.d.ts.map +1 -1
- package/types/runtime/markdown-autolink.d.ts +11 -0
- package/types/runtime/markdown-autolink.d.ts.map +1 -0
- package/types/runtime/markdown-render.client.d.ts +2 -1
- package/types/runtime/markdown-render.client.d.ts.map +1 -1
- package/types/runtime/markdown.client.d.ts +3 -1
- package/types/runtime/markdown.client.d.ts.map +1 -1
- package/types/runtime/markdown.d.ts +11 -0
- package/types/runtime/markdown.d.ts.map +1 -1
- package/types/runtime/markdown.server.d.ts +3 -1
- package/types/runtime/markdown.server.d.ts.map +1 -1
- package/types/runtime/navigate-api.d.ts +1 -1
- package/types/runtime/navigate-api.d.ts.map +1 -1
- package/types/runtime/persist.d.ts +2 -2
- package/types/runtime/persist.d.ts.map +1 -1
- package/types/runtime/reactive.d.ts +3 -0
- package/types/runtime/reactive.d.ts.map +1 -1
- package/types/runtime/sanitize.d.ts.map +1 -1
- package/types/runtime/schema-record.d.ts +9 -0
- package/types/runtime/schema-record.d.ts.map +1 -0
- package/types/runtime/schema.client.d.ts.map +1 -1
- package/types/runtime/schema.d.ts +99 -10
- package/types/runtime/schema.d.ts.map +1 -1
- package/types/runtime/standard-schema.d.ts +37 -0
- package/types/runtime/standard-schema.d.ts.map +1 -0
- package/types/runtime/swap-focus.d.ts.map +1 -1
- package/types/runtime/validate-run.client.d.ts +4 -0
- package/types/runtime/validate-run.client.d.ts.map +1 -0
- package/types/runtime/validate.client.d.ts +4 -0
- package/types/runtime/validate.client.d.ts.map +1 -0
- package/types/runtime/validate.d.ts +1 -21
- package/types/runtime/validate.d.ts.map +1 -1
- package/types/server/action-module.d.ts +2 -0
- package/types/server/action-module.d.ts.map +1 -0
- package/types/server/actions.d.ts +1 -0
- package/types/server/actions.d.ts.map +1 -1
- package/types/server/answer.d.ts +6 -0
- package/types/server/answer.d.ts.map +1 -0
- package/types/server/api-input.d.ts +19 -0
- package/types/server/api-input.d.ts.map +1 -0
- package/types/server/api.d.ts.map +1 -1
- package/types/server/app-stages.d.ts +7 -3
- package/types/server/app-stages.d.ts.map +1 -1
- package/types/server/app.d.ts +2 -0
- package/types/server/app.d.ts.map +1 -1
- package/types/server/client.d.ts +1 -0
- package/types/server/client.d.ts.map +1 -1
- package/types/server/dev.d.ts +1 -1
- package/types/server/dev.d.ts.map +1 -1
- package/types/server/env-state.d.ts.map +1 -1
- package/types/server/env.d.ts +5 -1
- package/types/server/env.d.ts.map +1 -1
- package/types/server/favicon.d.ts +3 -1
- package/types/server/favicon.d.ts.map +1 -1
- package/types/server/file-limit.d.ts.map +1 -1
- package/types/server/host-allowlist.d.ts +3 -3
- package/types/server/host-allowlist.d.ts.map +1 -1
- package/types/server/index.d.ts +2 -0
- package/types/server/index.d.ts.map +1 -1
- package/types/server/kay-routes.d.ts +47 -0
- package/types/server/kay-routes.d.ts.map +1 -0
- package/types/server/kay-server.d.ts +25 -0
- package/types/server/kay-server.d.ts.map +1 -0
- package/types/server/kept-exports.d.ts.map +1 -1
- package/types/server/kept-pages.d.ts +1 -1
- package/types/server/kept-pages.d.ts.map +1 -1
- package/types/server/library.d.ts +2 -1
- package/types/server/library.d.ts.map +1 -1
- package/types/server/mcp.d.ts +1 -1
- package/types/server/mcp.d.ts.map +1 -1
- package/types/server/notifications.d.ts +2 -1
- package/types/server/notifications.d.ts.map +1 -1
- package/types/server/offline.d.ts.map +1 -1
- package/types/server/openapi.d.ts.map +1 -1
- package/types/server/phases.d.ts +36 -0
- package/types/server/phases.d.ts.map +1 -0
- package/types/server/protection.d.ts +3 -2
- package/types/server/protection.d.ts.map +1 -1
- package/types/server/proxy-key.d.ts +3 -3
- package/types/server/proxy-key.d.ts.map +1 -1
- package/types/server/push-settings.d.ts +1 -1
- package/types/server/push-settings.d.ts.map +1 -1
- package/types/server/push.d.ts +1 -0
- package/types/server/push.d.ts.map +1 -1
- package/types/server/query.d.ts.map +1 -1
- package/types/server/receive.d.ts +9 -0
- package/types/server/receive.d.ts.map +1 -0
- package/types/server/render-document.d.ts.map +1 -1
- package/types/server/request-context.d.ts +29 -0
- package/types/server/request-context.d.ts.map +1 -0
- package/types/server/schema-check.d.ts +1 -0
- package/types/server/schema-check.d.ts.map +1 -1
- package/types/server/scope.d.ts +1 -1
- package/types/server/scope.d.ts.map +1 -1
- package/types/server/socket.d.ts +3 -5
- package/types/server/socket.d.ts.map +1 -1
- package/types/server/validate.d.ts +26 -0
- package/types/server/validate.d.ts.map +1 -0
- package/types/test/a11y-dom.d.ts +20 -0
- package/types/test/a11y-dom.d.ts.map +1 -0
- package/types/test/html-snapshot.d.ts +4 -0
- package/types/test/html-snapshot.d.ts.map +1 -0
- package/types/test/index.d.ts.map +1 -1
- package/types/test/mount.d.ts +3 -0
- package/types/test/mount.d.ts.map +1 -1
- package/types/test/page-checks.d.ts +6 -0
- package/types/test/page-checks.d.ts.map +1 -0
- package/types/test/screenshot-match.d.ts +1 -1
- package/types/test/screenshot-match.d.ts.map +1 -1
- package/types/test/shared-modules.d.ts.map +1 -1
- package/types/test/site-types.d.ts +3 -1
- package/types/test/site-types.d.ts.map +1 -1
- package/src/check/schema-type.ts +0 -9
- package/src/compiler/deprecated-script-fence.ts +0 -26
- package/src/server/field-errors.ts +0 -136
- package/types/check/schema-type.d.ts +0 -3
- package/types/check/schema-type.d.ts.map +0 -1
- package/types/compiler/deprecated-script-fence.d.ts +0 -3
- package/types/compiler/deprecated-script-fence.d.ts.map +0 -1
- package/types/server/field-errors.d.ts +0 -6
- package/types/server/field-errors.d.ts.map +0 -1
|
@@ -2,6 +2,7 @@ import type { ClassTable } from '../runtime/class-table';
|
|
|
2
2
|
import type { UiEntry } from '../runtime/ui';
|
|
3
3
|
import type { KayFile } from './ast';
|
|
4
4
|
import type { IslandCause } from './island-cause';
|
|
5
|
+
import type { LazyImport } from './lazy-imports';
|
|
5
6
|
import type { Rewrite } from './mapping';
|
|
6
7
|
import type { AwaitAlert, WRITE_HELPERS } from './names';
|
|
7
8
|
import type { Sites } from './rewrite-types';
|
|
@@ -47,6 +48,8 @@ export interface GenerateOptions {
|
|
|
47
48
|
contextModule?: string | undefined;
|
|
48
49
|
ui?: UiEntry | undefined;
|
|
49
50
|
uiAdded?: UiEntry | undefined;
|
|
51
|
+
lazy?: ReadonlyMap<string, LazyImport> | undefined;
|
|
52
|
+
writtenProps?: ReadonlySet<string> | undefined;
|
|
50
53
|
rewrites?: ReadonlyMap<number, Rewrite & {
|
|
51
54
|
end: number;
|
|
52
55
|
}> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../../src/compiler/codegen.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,EAAyC,OAAO,EAAuD,MAAM,OAAO,CAAA;AAChI,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../../src/compiler/codegen.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAC5C,OAA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C7B,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,SAAS,CAAA;IAElD,YAAY,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,CAAA;IAE9C,QAAQ,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,SAAS,CAAA;IAErE,MAAM,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAA;CACjD;AAED,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,WAAW,CAAA;IACpB,KAAK,EAAE,KAAK,CAAA;CACb;AA6DD,wBAAgB,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,cAAc,GAAG,SAAS,EAAE,OAAO,EAAE,eAAe,GAAG,SAAS,CAEvI;AAozBD,wBAAgB,aAAa,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,GAAG,OAAO,CAE5E;AAGD,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,GAAG,WAAW,GAAG,SAAS,CAqC1F;AAOD,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAO7D"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const SOURCE_READERS: {
|
|
2
|
+
readonly 'deprecated-source-readers': {
|
|
3
|
+
readonly level: 'warn';
|
|
4
|
+
readonly group: 'deprecated';
|
|
5
|
+
readonly since: '1.105';
|
|
6
|
+
readonly site: true;
|
|
7
|
+
readonly summary: 'The readers and hooks of an island\'s sources before 1.105, which every source reads alike since: `data()` in place of `value()` (a `resource`), `last()` (a `stream` or `socket`) and `rows()` (a `local` collection), `onData` in place of `onSuccess` (a `track()` handle) and `onSync` (a collection), whose event hands `value` where they handed `data` and `rows`, an action\'s `data()` and `status()` in place of `succeeded()`, and a collection\'s `sync.queued()` and `sync.status()` in place of `unsynced()` and `syncStatus()`. The old names work until 1.108. Found in the TypeScript files and `.kay` files of the project, templates included, on a name bound once to a call of `resource`, `stream`, `socket` or `local` from `kay` or to a `.track()` call, as `kay check` reads no types: a source reached through a property, a prop or another file is not found; `succeeded()` is found on any receiver. The fix renames the member, and the `data` or `rows` of a hook\'s inline handler to `value`; `succeeded()?.data` becomes `data()` and `succeeded() !== undefined` becomes `status() === \'ready\'`. A `succeeded()` read in any other way, a handler that is no inline function and a shorthand hook are reported with no fix.';
|
|
8
|
+
readonly wrong: '---\nimport { local, resource } from \'kay\'\nimport notesApi from \'../api/notes\'\nimport { save } from \'./notes\'\n\nconst list = resource(notesApi, \'/\')\nconst notes = local({ key: \'id\', read: () => [], put: save })\n---\np {list.value()?.length} on the server, {notes.rows().length} here, {notes.unsynced()} waiting';
|
|
9
|
+
readonly right: '---\nimport { local, resource } from \'kay\'\nimport notesApi from \'../api/notes\'\nimport { save } from \'./notes\'\n\nconst list = resource(notesApi, \'/\')\nconst notes = local({ key: \'id\', read: () => [], put: save })\n---\np {list.data()?.length} on the server, {notes.data().length} here, {notes.sync.queued()} waiting';
|
|
10
|
+
};
|
|
11
|
+
readonly 'deprecated-live-api': {
|
|
12
|
+
readonly level: 'warn';
|
|
13
|
+
readonly group: 'deprecated';
|
|
14
|
+
readonly since: '1.105';
|
|
15
|
+
readonly site: true;
|
|
16
|
+
readonly summary: 'The forms of `set` and `presence` before 1.105, which write every live value and every room alike since: `set(next, { key })` of a value per key and `set(next, { user })` of a value per user in place of `set(key, next)` and `set(user, next)`, and `presence({ room, member })` in place of `presence(room, member)`. The old forms work until 1.108. Found in the TypeScript files and `.kay` files of the project, on a name bound once to a `live()` call from `kay`, or imported under the name of a declaration every file of the project agrees on (a value per key is one declared with a function of the key or `key: true`, per user with `user: true`), as `kay check` reads no types: a value reached through a namespace import or a property is not found. `presence` is the one imported from `kay`. The fix reorders the arguments of `set`, and writes the arguments of `presence` as one object, its options object spread into it; a `presence` given options that are no object written there is reported with no fix.';
|
|
17
|
+
readonly wrong: '// src/live.ts\nimport { live } from \'kay\'\n\nexport const room = live((id: string) => ({ id, users: 0 }))\n\nroom.set(\'lobby\', { id: \'lobby\', users: 3 })';
|
|
18
|
+
readonly right: '// src/live.ts\nimport { live } from \'kay\'\n\nexport const room = live((id: string) => ({ id, users: 0 }))\n\nroom.set({ id: \'lobby\', users: 3 }, { key: \'lobby\' })';
|
|
19
|
+
};
|
|
20
|
+
readonly 'deprecated-action-type': {
|
|
21
|
+
readonly level: 'warn';
|
|
22
|
+
readonly group: 'deprecated';
|
|
23
|
+
readonly since: '1.105';
|
|
24
|
+
readonly site: true;
|
|
25
|
+
readonly summary: '`Action<never, unknown>` before 1.105, the type a prop takes to accept any action: `Action` since, whose two parameters default to it. `Action<{ name: string }, string>` keeps its input and output types, and a `.with()` action crosses into an island as any other does. The old form works until 1.108. Found on the `Action` a file imports from `kay`, under any local name, in the TypeScript files and the fences of `.kay` files. The fix drops the type arguments.';
|
|
26
|
+
readonly wrong: '---\nimport type { Action } from \'kay\'\n\nconst { run } = props<{ run: Action<never, unknown> }>()\n---\nform(action={run})\n button Go';
|
|
27
|
+
readonly right: '---\nimport type { Action } from \'kay\'\n\nconst { run } = props<{ run: Action }>()\n---\nform(action={run})\n button Go';
|
|
28
|
+
};
|
|
29
|
+
readonly 'deprecated-action-readers': {
|
|
30
|
+
readonly level: 'warn';
|
|
31
|
+
readonly group: 'deprecated';
|
|
32
|
+
readonly since: '1.105';
|
|
33
|
+
readonly site: true;
|
|
34
|
+
readonly summary: 'An action\'s `failed()`, `error(field)` and `validate(form, field)` before 1.105, which a form shows and now reads from `form`: `form.failed()`, `form.error(field)` and `form.validate(form, field)`, the call state (`pending()`, `status()`, `data()`) staying on the action. The old names work until 1.108. Found in the TypeScript files and `.kay` files of the project, templates included, on a name bound once to a call of `action` from `kay`, to the `.with()` of one, or imported in lowercase from a `.kay` file, as `kay check` reads no types: an action reached through a property or a prop is not found. The fix writes `form.` before the name.';
|
|
35
|
+
readonly wrong: '---\nimport { add } from \'./notes.kay\'\n---\nform(action={add})\n input(name="title" aria-invalid={add.error(\'title\') ? \'true\' : undefined})\n if add.failed()\n p Not saved';
|
|
36
|
+
readonly right: '---\nimport { add } from \'./notes.kay\'\n---\nform(action={add})\n input(name="title" aria-invalid={add.form.error(\'title\') ? \'true\' : undefined})\n if add.form.failed()\n p Not saved';
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=deprecated-lints-1-105.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deprecated-lints-1-105.d.ts","sourceRoot":"","sources":["../../src/compiler/deprecated-lints-1-105.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc;;iBAEvB,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,IAAI;iBACJ,OAAO,EAAE,msCAAmsC;iBAC5sC,KAAK,EAAE,uUAAuU;iBAC9U,KAAK,EAAE,yUAAyU;;;iBAGhV,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,IAAI;iBACJ,OAAO,EAAE,++BAA++B;iBACx/B,KAAK,EAAE,kKAAkK;iBACzK,KAAK,EAAE,2KAA2K;;;iBAGlL,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,IAAI;iBACJ,OAAO,EAAE,+cAA+c;iBACxd,KAAK,EAAE,4IAA4I;iBACnJ,KAAK,EAAE,4HAA4H;;;iBAGnI,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,IAAI;iBACJ,OAAO,EAAE,soBAAsoB;iBAC/oB,KAAK,EAAE,yLAAyL;iBAChM,KAAK,EAAE,mMAAmM;;CAErK,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const SCHEMA_BUILDERS: {
|
|
2
|
+
readonly 'deprecated-schema-builders': {
|
|
3
|
+
readonly level: 'warn';
|
|
4
|
+
readonly group: 'deprecated';
|
|
5
|
+
readonly since: '1.106';
|
|
6
|
+
readonly site: true;
|
|
7
|
+
readonly summary: 'The PascalCase builders of `s` before 1.106, which kay\'s own lowercase builders replace, each taking the same field options (`optional`, `default`, `error`, `label`, `description`, `example`) and short names for the rest: `s.String` is `s.string` (`min`, `max`), `s.Integer` `s.int`, `s.Number` and `s.Numeric` `s.number`, `s.Boolean` and `s.BooleanString` `s.boolean`, `s.Array` `s.list`, `s.UnionEnum` and `s.UnionKeys` `s.enum`, and `s.Date`, `s.Literal`, `s.Union`, `s.Object`, `s.File`, `s.Files`, `s.Secret` and `s.Public` their lowercase names; `s.Optional(field)` is `optional: true` in the options of the field; an `s.Object({ ... })` that is the schema of an `action` or a `defineEnv` is the record of fields alone; and a file size written `\'2m\'` is `\'2mb\'`. The old names work until 2.0. Found on the `s` a file imports from `kay`, in the TypeScript files and the fences of `.kay` files. The fix renames the builder and the options that changed; an `s.Optional` around anything but one of these builders, such as a helper of `kay/content`, is left as it is. A lowercase `s.object` refuses a key its shape lacks where kay reads the schema itself (an action\'s input, an API route\'s body, `defineEnv`, collection frontmatter), where `s.Object` let it by: write `{ extra: \'strip\' }` where the old way is wanted. A query, the headers and the cookies of a request carry keys no schema names, so their unknown keys are dropped whatever the schema says.';
|
|
8
|
+
readonly wrong: '--- server\nimport { action, s } from \'kay\'\n\nexport const add = action(s.Object({ title: s.String({ maxLength: 200 }), note: s.Optional(s.String()) }), ({ title }) => title)\n---\np x';
|
|
9
|
+
readonly right: '--- server\nimport { action, s } from \'kay\'\n\nexport const add = action({ title: s.string({ max: 200 }), note: s.string({ optional: true }) }, ({ title }) => title)\n---\np x';
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=deprecated-lints-1-106.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deprecated-lints-1-106.d.ts","sourceRoot":"","sources":["../../src/compiler/deprecated-lints-1-106.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe;;iBAExB,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,IAAI;iBACJ,OAAO,EAAE,27CAA27C;iBACp8C,KAAK,EAAE,6LAA6L;iBACpM,KAAK,EAAE,mLAAmL;;CAErJ,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const ACTION_OPTIONS: {
|
|
2
|
+
readonly 'deprecated-action-options': {
|
|
3
|
+
readonly level: 'warn';
|
|
4
|
+
readonly group: 'deprecated';
|
|
5
|
+
readonly since: '1.107';
|
|
6
|
+
readonly site: true;
|
|
7
|
+
readonly summary: 'The arguments of `action` before 1.107, `action(schema, handler, options)` and `action(handler, options)`: the options come first, with the input in them, as an API route\'s do, `action({ input: schema, ...options }, handler)` and `action(options, handler)`. `input` is a plain record of fields or any schema. The old forms work until 2.0. Found on the `action` a file imports from `kay`, in the TypeScript files and the fences of `.kay` files; the fix moves the arguments and keeps their text.';
|
|
8
|
+
readonly wrong: '--- server\nimport { action, s } from \'kay\'\n\nexport const add = action({ title: s.string() }, ({ title }) => title, { maxSize: \'1mb\' })\n---\np x';
|
|
9
|
+
readonly right: '--- server\nimport { action, s } from \'kay\'\n\nexport const add = action({ input: { title: s.string() }, maxSize: \'1mb\' }, ({ title }) => title)\n---\np x';
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=deprecated-lints-1-107.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deprecated-lints-1-107.d.ts","sourceRoot":"","sources":["../../src/compiler/deprecated-lints-1-107.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc;;iBAEvB,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,IAAI;iBACJ,OAAO,EAAE,gfAAgf;iBACzf,KAAK,EAAE,yJAAyJ;iBAChK,KAAK,EAAE,gKAAgK;;CAElI,CAAA"}
|
|
@@ -44,6 +44,42 @@ export declare const DEPRECATED_LINTS: {
|
|
|
44
44
|
readonly wrong: '---\nimport { add } from \'./notes.kay\'\n---\nform(action={add})\n input(name="title" aria-invalid={add.error(\'title\') ? \'true\' : undefined})\n if add.failed()\n p Not saved';
|
|
45
45
|
readonly right: '---\nimport { add } from \'./notes.kay\'\n---\nform(action={add})\n input(name="title" aria-invalid={add.form.error(\'title\') ? \'true\' : undefined})\n if add.form.failed()\n p Not saved';
|
|
46
46
|
};
|
|
47
|
+
readonly 'deprecated-schema-builders': {
|
|
48
|
+
readonly level: 'warn';
|
|
49
|
+
readonly group: 'deprecated';
|
|
50
|
+
readonly since: '1.106';
|
|
51
|
+
readonly site: true;
|
|
52
|
+
readonly summary: 'The PascalCase builders of `s` before 1.106, which kay\'s own lowercase builders replace, each taking the same field options (`optional`, `default`, `error`, `label`, `description`, `example`) and short names for the rest: `s.String` is `s.string` (`min`, `max`), `s.Integer` `s.int`, `s.Number` and `s.Numeric` `s.number`, `s.Boolean` and `s.BooleanString` `s.boolean`, `s.Array` `s.list`, `s.UnionEnum` and `s.UnionKeys` `s.enum`, and `s.Date`, `s.Literal`, `s.Union`, `s.Object`, `s.File`, `s.Files`, `s.Secret` and `s.Public` their lowercase names; `s.Optional(field)` is `optional: true` in the options of the field; an `s.Object({ ... })` that is the schema of an `action` or a `defineEnv` is the record of fields alone; and a file size written `\'2m\'` is `\'2mb\'`. The old names work until 2.0. Found on the `s` a file imports from `kay`, in the TypeScript files and the fences of `.kay` files. The fix renames the builder and the options that changed; an `s.Optional` around anything but one of these builders, such as a helper of `kay/content`, is left as it is. A lowercase `s.object` refuses a key its shape lacks where kay reads the schema itself (an action\'s input, an API route\'s body, `defineEnv`, collection frontmatter), where `s.Object` let it by: write `{ extra: \'strip\' }` where the old way is wanted. A query, the headers and the cookies of a request carry keys no schema names, so their unknown keys are dropped whatever the schema says.';
|
|
53
|
+
readonly wrong: '--- server\nimport { action, s } from \'kay\'\n\nexport const add = action(s.Object({ title: s.String({ maxLength: 200 }), note: s.Optional(s.String()) }), ({ title }) => title)\n---\np x';
|
|
54
|
+
readonly right: '--- server\nimport { action, s } from \'kay\'\n\nexport const add = action({ title: s.string({ max: 200 }), note: s.string({ optional: true }) }, ({ title }) => title)\n---\np x';
|
|
55
|
+
};
|
|
56
|
+
readonly 'deprecated-action-options': {
|
|
57
|
+
readonly level: 'warn';
|
|
58
|
+
readonly group: 'deprecated';
|
|
59
|
+
readonly since: '1.107';
|
|
60
|
+
readonly site: true;
|
|
61
|
+
readonly summary: 'The arguments of `action` before 1.107, `action(schema, handler, options)` and `action(handler, options)`: the options come first, with the input in them, as an API route\'s do, `action({ input: schema, ...options }, handler)` and `action(options, handler)`. `input` is a plain record of fields or any schema. The old forms work until 2.0. Found on the `action` a file imports from `kay`, in the TypeScript files and the fences of `.kay` files; the fix moves the arguments and keeps their text.';
|
|
62
|
+
readonly wrong: '--- server\nimport { action, s } from \'kay\'\n\nexport const add = action({ title: s.string() }, ({ title }) => title, { maxSize: \'1mb\' })\n---\np x';
|
|
63
|
+
readonly right: '--- server\nimport { action, s } from \'kay\'\n\nexport const add = action({ input: { title: s.string() }, maxSize: \'1mb\' }, ({ title }) => title)\n---\np x';
|
|
64
|
+
};
|
|
65
|
+
readonly 'deprecated-callback-handler': {
|
|
66
|
+
readonly level: 'deny';
|
|
67
|
+
readonly group: 'deprecated';
|
|
68
|
+
readonly since: '1.105';
|
|
69
|
+
readonly typed: true;
|
|
70
|
+
readonly summary: 'A function written for the arguments a kayjs-ui, kayjs-ai or kayjs-cms callback took before 1.105, given to a callback that takes one event object since: `onValueChange={query.set}`, `onCheckedChange={toggle}` with `toggle(on: boolean)` or `onFiles={upload}` with `upload(files: File[])`. Found where the type check refuses the function and the component comes from a `@kayjs` library; the fix writes `event => query.set(event.value)`, passing the fields the handler took, first ones first, and is applied where its parameter is no object (a parameter typed as an object may be written for the event already, so that fix is offered). A handler that is not a plain name, such as an arrow function, is reported with no fix. The old form fails the type check, and would receive the event where it took the value, so the level is `deny` until it is rewritten.';
|
|
71
|
+
readonly wrong: '---\nimport { signal } from \'kay\'\nimport Checkbox from \'@kayjs/ui/checkbox.kay\'\n\nconst on = signal(false)\n\nfunction toggle(next: boolean) {\n on.set(next)\n}\n---\nCheckbox(label="Notify" checked={on()} onChange={toggle})';
|
|
72
|
+
readonly right: '---\nimport { signal } from \'kay\'\nimport Checkbox from \'@kayjs/ui/checkbox.kay\'\n\nconst on = signal(false)\n\nfunction toggle(next: boolean) {\n on.set(next)\n}\n---\nCheckbox(label="Notify" checked={on()} onChange={event => toggle(event.checked)})';
|
|
73
|
+
};
|
|
74
|
+
readonly 'deprecated-call-result': {
|
|
75
|
+
readonly level: 'deny';
|
|
76
|
+
readonly group: 'deprecated';
|
|
77
|
+
readonly since: '1.105';
|
|
78
|
+
readonly typed: true;
|
|
79
|
+
readonly summary: 'An island\'s call read as its data, `const list = await call(notes, \'/\')` then `list.items`, or `await add(input)` then `.id`, which resolved with the data before 1.105 and answers a `CallResult`, `{ ok: true, data }` or `{ ok: false, error }`, since. Found where the type check refuses a field of a `CallResult`, in a `.kay` script or a module. The fix writes `.orThrow()` after the call, which resolves with the data and throws a refusal as the call did; it is applied where the call is written on an imported name and nothing reads `ok`, `data` or `error` of the answer, and offered otherwise. The old form fails the type check, so the level is `deny`.';
|
|
80
|
+
readonly wrong: '---\nimport { call, signal } from \'kay\'\nimport notes from \'../api/notes\'\n\nconst names = signal(\'\')\n\nasync function load() {\n const list = await call(notes, \'/\')\n\n names = list.items.join(\', \')\n}\n---\nbutton(onClick={load}) Load\np {names()}';
|
|
81
|
+
readonly right: '---\nimport { call, signal } from \'kay\'\nimport notes from \'../api/notes\'\n\nconst names = signal(\'\')\n\nasync function load() {\n const list = await call(notes, \'/\').orThrow()\n\n names = list.items.join(\', \')\n}\n---\nbutton(onClick={load}) Load\np {names()}';
|
|
82
|
+
};
|
|
47
83
|
readonly 'deprecated-ui-props': {
|
|
48
84
|
readonly level: 'warn';
|
|
49
85
|
readonly group: 'deprecated';
|
|
@@ -68,29 +104,12 @@ export declare const DEPRECATED_LINTS: {
|
|
|
68
104
|
readonly wrong: '---\nimport Card from \'./card.kay\'\n---\nCard(class={{ head: \'p-6\' }})';
|
|
69
105
|
readonly right: '---\nimport Card from \'./card.kay\'\n---\nCard(parts={{ head: \'p-6\' }})';
|
|
70
106
|
};
|
|
71
|
-
readonly 'deprecated-script-fence': {
|
|
72
|
-
readonly level: 'warn';
|
|
73
|
-
readonly group: 'deprecated';
|
|
74
|
-
readonly since: '1.102';
|
|
75
|
-
readonly summary: '`--- script` as the first fence of a file, `---` since 1.102: the bare line opens the component script wherever no named fence comes before it, so one fence had two spellings. `--- script` stays for a script that follows a `--- server`, `--- module` or `--- style` fence, where a bare `---` would close that fence instead, and `--- client` still replaces `---` rather than modifying it. The old form still works. The fix drops the word, keeping the type parameters of `--- script <T>` as `--- <T>`.';
|
|
76
|
-
readonly wrong: '--- script\nconst { title } = props<{ title: string }>()\n---\nh1 {title}';
|
|
77
|
-
readonly right: '---\nconst { title } = props<{ title: string }>()\n---\nh1 {title}';
|
|
78
|
-
};
|
|
79
|
-
readonly 'deprecated-schema-type': {
|
|
80
|
-
readonly level: 'warn';
|
|
81
|
-
readonly group: 'deprecated';
|
|
82
|
-
readonly since: '1.103';
|
|
83
|
-
readonly site: true;
|
|
84
|
-
readonly summary: '`TSchema` imported from `kay/library`, `Schema` since 1.103: kay\'s own name for what `s` builds and every schema option takes, so a signature of the app does not name TypeBox, whose type follows the Elysia kay is built on. The old name works until 1.106. Found on an import from `kay/library` in the TypeScript files and `.kay` files of the project. The fix renames the import and each use of it; a file that already has a `Schema` of its own is reported with no fix, and one that imports it aliased with only the import renamed.';
|
|
85
|
-
readonly wrong: '---\nimport type { TSchema } from \'kay/library\'\n\nexport function check<Fields extends TSchema>(fields: Fields) {\n return fields\n}\n---\np x';
|
|
86
|
-
readonly right: '---\nimport type { Schema } from \'kay/library\'\n\nexport function check<Fields extends Schema>(fields: Fields) {\n return fields\n}\n---\np x';
|
|
87
|
-
};
|
|
88
107
|
readonly 'deprecated-package-names': {
|
|
89
108
|
readonly level: 'warn';
|
|
90
109
|
readonly group: 'deprecated';
|
|
91
110
|
readonly since: '1.104';
|
|
92
111
|
readonly site: true;
|
|
93
|
-
readonly summary: 'A package of kay under the `@kaynooo` scope, `@kayjs` since 1.104: `@kaynooo/kayjs` is `@kayjs/kay`, and `@kaynooo/kayjs-ui`, `-auth`, `-mail`, `-cms` and `-ai` are `@kayjs/ui`, `@kayjs/auth`, `@kayjs/mail`, `@kayjs/cms` and `@kayjs/ai`. The old names stop at 1.103, which stays installable, so an app on them installs and checks as before until it moves; this lint goes in 1.107. Found
|
|
112
|
+
readonly summary: 'A package of kay under the `@kaynooo` scope, `@kayjs` since 1.104: `@kaynooo/kayjs` is `@kayjs/kay`, and `@kaynooo/kayjs-ui`, `-auth`, `-mail`, `-cms` and `-ai` are `@kayjs/ui`, `@kayjs/auth`, `@kayjs/mail`, `@kayjs/cms` and `@kayjs/ai`. The old names stop at 1.103, which stays installable, so an app on them installs and checks as before until it moves; this lint goes in 1.107. Found where a name is an `import` or `export ... from` specifier, a `require()`, `import()` or `mock.module()` argument or a config key (a quoted name keyed to anything but a package name or a version, as `librarySettings`) of the project\'s TypeScript and `.kay` files, in the `@import` and `@plugin` paths of its CSS, and in its package.json and tsconfig files; a name in a comment or any other string, as data a tool reads or a table of renames, is left alone. The fix writes the new name; a package.json that lists the new name already is reported with a fix that is not safe, and `kay upgrade` does the whole move, package.json and install included.';
|
|
94
113
|
readonly wrong: '---\nimport Button from \'@kaynooo/kayjs-ui/button.kay\'\n---\nButton Save';
|
|
95
114
|
readonly right: '---\nimport Button from \'@kayjs/ui/button.kay\'\n---\nButton Save';
|
|
96
115
|
};
|
|
@@ -131,7 +150,7 @@ export declare const DEPRECATED_LINTS: {
|
|
|
131
150
|
readonly level: 'warn';
|
|
132
151
|
readonly group: 'deprecated';
|
|
133
152
|
readonly since: '1.105';
|
|
134
|
-
readonly summary: '`data-keep-scroll`, `data-no-transition` and `data-no-prefetch`, named as the options of `navigate()` since 1.105: `data-scroll="keep"` (`"top"` for a plain scroll), `data-transition="false"` and `data-prefetch="false"`, typed on every element. The old names work until 1.108. Found on any element and on a component call that forwards them to its link. The fix writes the new attribute, a static `data-keep-scroll="false"` becoming `data-scroll="top"` and a dynamic `data-keep-scroll` being renamed with its value; a dynamic `data-no-transition` or `data-no-prefetch` is reported with no fix, as the old name was set by being present.';
|
|
153
|
+
readonly summary: '`data-keep-scroll`, `data-no-transition` and `data-no-prefetch`, named as the options of `navigate()` since 1.105: `data-scroll="keep"` (`"top"` for a plain scroll), `data-transition="false"` and `data-prefetch="false"`, typed on every element. The old names work until 1.108. Found on any element and on a component call that forwards them to its link. The fix writes the new attribute, a static `data-keep-scroll="false"` becoming `data-scroll="top"` and a dynamic `data-keep-scroll` being renamed with its value; a dynamic `data-no-transition` or `data-no-prefetch` is reported with no fix, as the old name was set by being present. The app\'s test files (`*.test.*`, `*.spec.*`) are checked too: a selector `[data-keep-scroll]` is written `[data-scroll=keep]` by the fix, an attribute read by name (`getAttribute(\'data-keep-scroll\')`) has a fix that is not safe, a read of `dataset.keepScroll` (and `noTransition`, `noPrefetch`) has one too, and a write of it and any other string naming an old flag have none.';
|
|
135
154
|
readonly wrong: 'nav(data-keep-scroll)\n a(href="/tabs/a" data-no-prefetch) A';
|
|
136
155
|
readonly right: 'nav(data-scroll="keep")\n a(href="/tabs/a" data-prefetch="false") A';
|
|
137
156
|
};
|
|
@@ -409,7 +428,7 @@ export declare const DEPRECATED_LINTS: {
|
|
|
409
428
|
readonly group: 'deprecated';
|
|
410
429
|
readonly since: '1.105';
|
|
411
430
|
readonly site: true;
|
|
412
|
-
readonly summary: 'The keys `images`, `fonts`, `favicon`, `manifest` and `publicCache` of kay.config.ts, written in `assets` since 1.105, and `observe`, `health`, `metrics` and `jobs`, written in `ops`: `assets: { images, fonts, favicon, manifest, publicCache }`, `ops: { observe, health, metrics, jobs }`. They work until 1.108. Found in the object kay.config.ts exports
|
|
431
|
+
readonly summary: 'The keys `images`, `fonts`, `favicon`, `manifest` and `publicCache` of kay.config.ts, written in `assets` since 1.105, and `observe`, `health`, `metrics` and `jobs`, written in `ops`: `assets: { images, fonts, favicon, manifest, publicCache }`, `ops: { observe, health, metrics, jobs }`. They work until 1.108. Found in the object kay.config.ts exports, in the `config` of `pages()` and `testSite()` and in the `config` of an extension a file types `KayExtension`, which takes the same keys. The fix moves the keys into their group as written, unless the object spreads, holds a computed key or has the group already.';
|
|
413
432
|
readonly wrong: '// kay.config.ts\nexport default { images: { widths: [640] }, health: false }';
|
|
414
433
|
readonly right: '// kay.config.ts\nexport default { assets: { images: { widths: [640] } }, ops: { health: false } }';
|
|
415
434
|
};
|
|
@@ -436,7 +455,7 @@ export declare const DEPRECATED_LINTS: {
|
|
|
436
455
|
readonly group: 'deprecated';
|
|
437
456
|
readonly since: '1.105';
|
|
438
457
|
readonly site: true;
|
|
439
|
-
readonly summary: 'The secrets of kay.config.ts in one shape since 1.105, each `string | { env } | { file }`: `mcp.key` is `mcp.token`, and `proxy.key`, a header name, is `{ header, secret? }`, so `proxy: { key: { header: \'x-upstream-key\' } }`; the `mcpKey` and `proxyKey` options of `testSite()` are the `token` and the `secret` of its `config`. They work until 1.108. Found in the object kay.config.ts exports and in the `config` of `pages()` and `testSite()`. The fix renames `mcp.key` (a `key: false` and an `mcp` that spreads or has a `token` are reported with no fix) and wraps the header of `proxy.key`; the options of `testSite()` are reported with no fix.';
|
|
458
|
+
readonly summary: 'The secrets of kay.config.ts in one shape since 1.105, each `string | { env } | { file }`: `mcp.key` is `mcp.token`, and `proxy.key`, a header name, is `{ header, secret? }`, so `proxy: { key: { header: \'x-upstream-key\' } }`; the `mcpKey` and `proxyKey` options of `testSite()` are the `token` and the `secret` of its `config`. They work until 1.108. Found in the object kay.config.ts exports and in the `config` of `pages()` and `testSite()`. The fix renames `mcp.key` (a `key: false` and an `mcp` that spreads or has a `token` are reported with no fix) and wraps the header of `proxy.key`; the options of `testSite()` move into its `config`, `mcpKey` always and `proxyKey` where the app\'s config names the header, and are reported with no fix beside a `config` already written.';
|
|
440
459
|
readonly wrong: '// kay.config.ts\nexport default { mcp: { key: true }, proxy: { key: \'x-upstream-key\' } }';
|
|
441
460
|
readonly right: '// kay.config.ts\nexport default { mcp: { token: true }, proxy: { key: { header: \'x-upstream-key\' } } }';
|
|
442
461
|
};
|
|
@@ -508,7 +527,7 @@ export declare const DEPRECATED_LINTS: {
|
|
|
508
527
|
readonly group: 'deprecated';
|
|
509
528
|
readonly since: '1.105';
|
|
510
529
|
readonly site: true;
|
|
511
|
-
readonly summary: '`deny(status, \'message\', data)` of a guard, a page, an action and an endpoint, `deny(status, { message, errors, data })` since 1.105: a refusal takes one object in every place, as `refuse(status, { message, errors, data })` does, so `errors` puts a message on a field and the text is no longer an argument beside the data. An action answers `deny(status, { data, errors })` as `ctx.fail
|
|
530
|
+
readonly summary: '`deny(status, \'message\', data)` of a guard, a page, an action and an endpoint, `deny(status, { message, errors, data })` since 1.105: a refusal takes one object in every place, as `refuse(status, { message, errors, data })` does, so `errors` puts a message on a field and the text is no longer an argument beside the data. An action answers `deny(status, { message, data, errors })` as `ctx.fail` did, the page again or an `ActionError`, so its text form, which stopped with plain text, becomes the form\'s message after the fix. The text form works until 1.108. Found on a call of `deny`, bare or read off a name, with a literal status from 400 to 599 and a text second argument, in the TypeScript files and `.kay` files of the project. The fix writes the object, unless a comment sits between the arguments or a `data` is given, which an action answers as a failure, not plain text.';
|
|
512
531
|
readonly wrong: '// src/routes/_guard.ts\nimport { guard } from \'kay\'\n\nexport default guard(({ deny }) => {\n deny(403, \'Members only\')\n})';
|
|
513
532
|
readonly right: '// src/routes/_guard.ts\nimport { guard } from \'kay\'\n\nexport default guard(({ deny }) => {\n deny(403, { message: \'Members only\' })\n})';
|
|
514
533
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deprecated-lints.d.ts","sourceRoot":"","sources":["../../src/compiler/deprecated-lints.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deprecated-lints.d.ts","sourceRoot":"","sources":["../../src/compiler/deprecated-lints.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKzB,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,MAAM;iBACb,OAAO,EAAE,0gBAA0gB;iBACnhB,KAAK,EAAE,kGAAkG;iBACzG,KAAK,EAAE,iGAAiG;;;iBAGxG,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,OAAO,EAAE,4bAA4b;iBACrc,KAAK,EAAE,mFAAmF;iBAC1F,KAAK,EAAE,sDAAsD;;;iBAG7D,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,OAAO,EAAE,2tBAA2tB;iBACpuB,KAAK,EAAE,4EAA4E;iBACnF,KAAK,EAAE,4EAA4E;;;iBAGnF,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,IAAI;iBACJ,OAAO,EAAE,6gCAA6gC;iBACthC,KAAK,EAAE,4EAA4E;iBACnF,KAAK,EAAE,oEAAoE;;;iBAG3E,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,IAAI;iBACJ,OAAO,EAAE,wzBAAw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,IAAI;iBACJ,OAAO,EAAE,64BAA64B;iBACt5B,KAAK,EAAE,wLAAwL;iBAC/L,KAAK,EAAE,0LAA0L;;;iBAGjM,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,IAAI;iBACJ,OAAO,EAAE,qnBAAqnB;iBAC9nB,KAAK,EAAE,gJAAgJ;iBACvJ,KAAK,EAAE,6JAA6J;;;iBAGpK,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,IAAI;iBACJ,OAAO,EAAE,kiBAAkiB;iBAC3iB,KAAK,EAAE,6GAA6G;iBACpH,KAAK,EAAE,sHAAsH;;;iBAG7H,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,IAAI;iBACJ,OAAO,EAAE,4oBAA4oB;iBACrpB,KAAK,EAAE,yJAAyJ;iBAChK,KAAK,EAAE,qKAAqK;;CAEvI,CAAA;AAGzC,eAAO,MAAM,kBAAkB,EAAE,SAAS;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,EAgC9E,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const TYPED_DEPRECATIONS: {
|
|
2
|
+
readonly 'deprecated-callback-handler': {
|
|
3
|
+
readonly level: 'deny';
|
|
4
|
+
readonly group: 'deprecated';
|
|
5
|
+
readonly since: '1.105';
|
|
6
|
+
readonly typed: true;
|
|
7
|
+
readonly summary: 'A function written for the arguments a kayjs-ui, kayjs-ai or kayjs-cms callback took before 1.105, given to a callback that takes one event object since: `onValueChange={query.set}`, `onCheckedChange={toggle}` with `toggle(on: boolean)` or `onFiles={upload}` with `upload(files: File[])`. Found where the type check refuses the function and the component comes from a `@kayjs` library; the fix writes `event => query.set(event.value)`, passing the fields the handler took, first ones first, and is applied where its parameter is no object (a parameter typed as an object may be written for the event already, so that fix is offered). A handler that is not a plain name, such as an arrow function, is reported with no fix. The old form fails the type check, and would receive the event where it took the value, so the level is `deny` until it is rewritten.';
|
|
8
|
+
readonly wrong: '---\nimport { signal } from \'kay\'\nimport Checkbox from \'@kayjs/ui/checkbox.kay\'\n\nconst on = signal(false)\n\nfunction toggle(next: boolean) {\n on.set(next)\n}\n---\nCheckbox(label="Notify" checked={on()} onChange={toggle})';
|
|
9
|
+
readonly right: '---\nimport { signal } from \'kay\'\nimport Checkbox from \'@kayjs/ui/checkbox.kay\'\n\nconst on = signal(false)\n\nfunction toggle(next: boolean) {\n on.set(next)\n}\n---\nCheckbox(label="Notify" checked={on()} onChange={event => toggle(event.checked)})';
|
|
10
|
+
};
|
|
11
|
+
readonly 'deprecated-call-result': {
|
|
12
|
+
readonly level: 'deny';
|
|
13
|
+
readonly group: 'deprecated';
|
|
14
|
+
readonly since: '1.105';
|
|
15
|
+
readonly typed: true;
|
|
16
|
+
readonly summary: 'An island\'s call read as its data, `const list = await call(notes, \'/\')` then `list.items`, or `await add(input)` then `.id`, which resolved with the data before 1.105 and answers a `CallResult`, `{ ok: true, data }` or `{ ok: false, error }`, since. Found where the type check refuses a field of a `CallResult`, in a `.kay` script or a module. The fix writes `.orThrow()` after the call, which resolves with the data and throws a refusal as the call did; it is applied where the call is written on an imported name and nothing reads `ok`, `data` or `error` of the answer, and offered otherwise. The old form fails the type check, so the level is `deny`.';
|
|
17
|
+
readonly wrong: '---\nimport { call, signal } from \'kay\'\nimport notes from \'../api/notes\'\n\nconst names = signal(\'\')\n\nasync function load() {\n const list = await call(notes, \'/\')\n\n names = list.items.join(\', \')\n}\n---\nbutton(onClick={load}) Load\np {names()}';
|
|
18
|
+
readonly right: '---\nimport { call, signal } from \'kay\'\nimport notes from \'../api/notes\'\n\nconst names = signal(\'\')\n\nasync function load() {\n const list = await call(notes, \'/\').orThrow()\n\n names = list.items.join(\', \')\n}\n---\nbutton(onClick={load}) Load\np {names()}';
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=deprecated-typed-lints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deprecated-typed-lints.d.ts","sourceRoot":"","sources":["../../src/compiler/deprecated-typed-lints.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB;;iBAE3B,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,KAAK;iBACL,OAAO,EAAE,y1BAAy1B;iBACl2B,KAAK,EAAE,yOAAyO;iBAChP,KAAK,EAAE,iQAAiQ;;;iBAGxQ,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,KAAK;iBACL,OAAO,EAAE,mpBAAmpB;iBAC5pB,KAAK,EAAE,wQAAwQ;iBAC/Q,KAAK,EAAE,kRAAkR;;CAEpP,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Node, SnippetNode, Span } from './ast';
|
|
2
|
+
import type { CodeBuilder } from './mapping';
|
|
3
|
+
export declare class FormHere {
|
|
4
|
+
private readonly names;
|
|
5
|
+
private readonly snippets;
|
|
6
|
+
private count;
|
|
7
|
+
get current(): string;
|
|
8
|
+
declared(snippet: SnippetNode, src: string): SnippetNode;
|
|
9
|
+
target(b: CodeBuilder, form: Span | undefined): void;
|
|
10
|
+
scope(b: CodeBuilder, form: Span | undefined): boolean;
|
|
11
|
+
expression(b: CodeBuilder, expression: Span, src: string, form: Span | undefined): void;
|
|
12
|
+
within(b: CodeBuilder, nodes: Node[], forms: ReadonlyMap<Node, Span>, children: () => void): void;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=dom-here.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom-here.d.ts","sourceRoot":"","sources":["../../src/compiler/dom-here.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAO5C,qBAAa,QAAQ;IACnB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAc;IACpC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAoB;IAC7C,OAAO,CAAC,KAAK,CAAI;IAGjB,IAAI,OAAO,IAAI,MAAM,CAEpB;IAGD,QAAQ,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,GAAG,WAAW,CAIvD;IAGD,MAAM,CAAC,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,IAAI,CAKnD;IAGD,KAAK,CAAC,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,OAAO,CASrD;IAGD,UAAU,CAAC,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,IAAI,CAOtF;IAGD,MAAM,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAchG;CACF"}
|
package/types/compiler/dom.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare class DomTemplate extends TemplateWriter {
|
|
|
15
15
|
private constBlocks;
|
|
16
16
|
private readonly catches;
|
|
17
17
|
private writesLinks;
|
|
18
|
+
private readonly here;
|
|
18
19
|
constructor(b: CodeBuilder, src: string, facts: TemplateFacts, ownMarkup: (name: string, at: number) => boolean, errors?: ErrorMessages | undefined, located?: ((element: ElementNode) => string | undefined) | undefined, classTable?: ClassTable, awaitAlert?: string);
|
|
19
20
|
block(nodes: Node[]): void;
|
|
20
21
|
declarations(navigates: boolean): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/compiler/dom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,KAAK,EAAa,WAAW,EAAa,aAAa,EAA8B,IAAI,EAAqB,aAAa,EAAW,MAAM,OAAO,CAAA;AAE1J,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/compiler/dom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,KAAK,EAAa,WAAW,EAAa,aAAa,EAA8B,IAAI,EAAqB,aAAa,EAAW,MAAM,OAAO,CAAA;AAE1J,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAS5C,OAAO,EAAiH,cAAc,EAAiB,MAAM,UAAU,CAAA;AAMvK,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAelD,qBAAa,WAAY,SAAQ,cAAc;IAkBoE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC;IAAiB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;IAAyE,OAAO,CAAC,QAAQ,CAAC,UAAU;IAjBvR,mBAA4B,OAAO,gBAAe;IAElD,mBAA4B,UAAU,SAAQ;IAE9C,mBAA4B,SAAS,QAAO;IAC5C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,OAAO,CAAI;IAEnB,OAAO,CAAC,WAAW,CAAI;IAEvB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAe;IAEvC,OAAO,CAAC,WAAW,CAAQ;IAC3B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAiB;IAItC,YAAY,CAAC,EAAE,WAAW,EAAE,GAAG,EAAE,MAA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K,EAAE,WAAW,GAAG,UAAU,EAAE,CAqChE;AAID,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,UAAQ,GAAG,UAAU,EAAE,CAiB1E"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CodeBuilder } from './mapping';
|
|
2
2
|
import type { PlannedAttribute } from './markup';
|
|
3
3
|
import type { FieldAria } from './plan';
|
|
4
|
-
export declare function addFieldDescribed(b: CodeBuilder, own: (() => void) | undefined, type: PlannedAttribute | undefined, aria: FieldAria | undefined, refusing?: () => void): void;
|
|
4
|
+
export declare function addFieldDescribed(b: CodeBuilder, own: (() => void) | undefined, type: PlannedAttribute | undefined, aria: FieldAria | undefined, refusing?: () => void, schemaType?: () => void): void;
|
|
5
5
|
export declare function addInvalidAttribute(b: CodeBuilder, check: () => void): void;
|
|
6
6
|
//# sourceMappingURL=field-described.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-described.d.ts","sourceRoot":"","sources":["../../src/compiler/field-described.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAKvC,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,EAAE,IAAI,EAAE,gBAAgB,GAAG,SAAS,EAAE,IAAI,EAAE,SAAS,GAAG,SAAS,EAAE,QAAQ,CAAC,EAAE,MAAM,IAAI,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"field-described.d.ts","sourceRoot":"","sources":["../../src/compiler/field-described.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAKvC,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,EAAE,IAAI,EAAE,gBAAgB,GAAG,SAAS,EAAE,IAAI,EAAE,SAAS,GAAG,SAAS,EAAE,QAAQ,CAAC,EAAE,MAAM,IAAI,EAAE,UAAU,CAAC,EAAE,MAAM,IAAI,GAAG,IAAI,CA8BtM;AAGD,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,IAAI,GAAG,IAAI,CAI3E"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ElementNode, FormField, Node, Span } from './ast';
|
|
2
|
+
import type { Markup } from './html-parts';
|
|
3
|
+
import type { CodeBuilder } from './mapping';
|
|
4
|
+
import type { ElementPlan } from './markup';
|
|
5
|
+
export declare function addClassAttribute(b: CodeBuilder, markup: Markup, classes: ElementPlan['classes'], classList: (classes: NonNullable<ElementPlan['classes']>) => void): void;
|
|
6
|
+
interface Fill {
|
|
7
|
+
filled: 'value' | 'checked';
|
|
8
|
+
fieldArguments: () => void;
|
|
9
|
+
own: (() => void) | undefined;
|
|
10
|
+
box: (() => void) | undefined;
|
|
11
|
+
values: Span | undefined;
|
|
12
|
+
name: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function addFieldFill(b: CodeBuilder, src: string, element: ElementNode, markup: Markup, fill: Fill, field: FormField, typed: boolean): void;
|
|
15
|
+
export declare function schemaTypeCall(b: CodeBuilder, element: string, type: unknown, field: FormField | undefined, target: Span | undefined): (() => void) | undefined;
|
|
16
|
+
export declare function listsFromSchema(element: string, children: Node[], field: FormField | undefined): boolean;
|
|
17
|
+
export declare function addSchemaOptions(b: CodeBuilder, target: Span, name: string): void;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=html-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,SAAS,EAAE,MAAM,EAAE,IAAI,GAAG,SAAS,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAK/J;AAGD,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,CAExG;AAGD,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAEjF"}
|
|
@@ -4,13 +4,14 @@ export interface InitialBox {
|
|
|
4
4
|
value: (() => void) | undefined;
|
|
5
5
|
}
|
|
6
6
|
export declare function dateTypeOf(element: ElementNode, src: string): string | undefined;
|
|
7
|
-
export declare function addInitial(b: CodeBuilder, src: string, element: ElementNode, values: Span | undefined, name: string, box?: InitialBox, separator?: string): void;
|
|
8
|
-
export declare function addFilled(b: CodeBuilder, src: string, element: ElementNode, { filled, fieldArguments, own, box, values, name }: {
|
|
7
|
+
export declare function addInitial(b: CodeBuilder, src: string, element: ElementNode, values: Span | undefined, name: string, box?: InitialBox, separator?: string, typeVariable?: string): void;
|
|
8
|
+
export declare function addFilled(b: CodeBuilder, src: string, element: ElementNode, { filled, fieldArguments, own, box, values, name, schemaType }: {
|
|
9
9
|
filled: 'value' | 'checked';
|
|
10
10
|
fieldArguments: () => void;
|
|
11
11
|
own: (() => void) | undefined;
|
|
12
12
|
box: (() => void) | undefined;
|
|
13
13
|
values: Span | undefined;
|
|
14
14
|
name: string;
|
|
15
|
+
schemaType?: boolean;
|
|
15
16
|
}): void;
|
|
16
17
|
//# sourceMappingURL=html-initial.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"html-initial.d.ts","sourceRoot":"","sources":["../../src/compiler/html-initial.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO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,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE;IAAE,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;IAAC,cAAc,EAAE,MAAM,IAAI,CAAC;IAAC,GAAG,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IAAC,GAAG,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IAAC,MAAM,EAAE,IAAI,GAAG,SAAS,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,IAAI,CAmB1U"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../src/compiler/html.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,WAAW,EAAa,aAAa,EAAyD,IAAI,EAAQ,aAAa,EAAW,MAAM,OAAO,CAAA;AAExK,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../src/compiler/html.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,WAAW,EAAa,aAAa,EAAyD,IAAI,EAAQ,aAAa,EAAW,MAAM,OAAO,CAAA;AAExK,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAa5C,OAAO,EAAmG,cAAc,EAAiB,MAAM,UAAU,CAAA;AAoCzJ,MAAM,WAAW,WAAW;IAE1B,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAChC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAE/B,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAEhC,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAEnC,MAAM,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;IAElC,OAAO,CAAC,EAAE,CAAC,CAAC,O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AKhB,OAAO,CAAC,aAAa;IAKrB,OAAO,CAAC,aAAa;IA+BrB,OAAO,CAAC,SAAS;IA6CjB,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,CAEtC;IAGD,SAAS,CAAC,KAAK,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAE3D;CACF"}
|
|
@@ -2,4 +2,5 @@ import type { Fix, KayFile, Span } from './ast';
|
|
|
2
2
|
import type { ImportBinding } from './script-shared';
|
|
3
3
|
export declare function prologueLength(text: string): number;
|
|
4
4
|
export declare function importEdits(file: KayFile, fence: Span | undefined, imports: readonly ImportBinding[], wanted: ReadonlyMap<string, string[]>): Fix['edits'];
|
|
5
|
+
export declare function withoutComma(src: string, specifier: Span, declaration: Span): Span;
|
|
5
6
|
//# sourceMappingURL=import-edits.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-edits.d.ts","sourceRoot":"","sources":["../../src/compiler/import-edits.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAOpD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAOnD;AAGD,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,GAAG,SAAS,EAAE,OAAO,EAAE,SAAS,aAAa,EAAE,EAAE,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,GAAG,CAAC,OAAO,CAAC,CA4B1J"}
|
|
1
|
+
{"version":3,"file":"import-edits.d.ts","sourceRoot":"","sources":["../../src/compiler/import-edits.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAOpD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAOnD;AAGD,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,GAAG,SAAS,EAAE,OAAO,EAAE,SAAS,aAAa,EAAE,EAAE,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,GAAG,CAAC,OAAO,CAAC,CA4B1J;AAMD,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,GAAG,IAAI,CASlF"}
|
|
@@ -2,6 +2,7 @@ import type { ClassTable } from '../runtime/class-table';
|
|
|
2
2
|
import type { UiEntry } from '../runtime/ui';
|
|
3
3
|
import type { Diagnostic } from './ast';
|
|
4
4
|
import type { IslandCause } from './island-cause';
|
|
5
|
+
import type { ImportedComponents } from './lazy-imports';
|
|
5
6
|
import type { LintLevels } from './lints';
|
|
6
7
|
import type { ImportedSignals } from './module-signals';
|
|
7
8
|
import type { AwaitAlert } from './names';
|
|
@@ -27,6 +28,7 @@ export interface CompileOptions {
|
|
|
27
28
|
hydratable?: boolean | undefined;
|
|
28
29
|
namedRefresh?: boolean | undefined;
|
|
29
30
|
twinBuild?: boolean | undefined;
|
|
31
|
+
writtenProps?: ReadonlySet<string> | undefined;
|
|
30
32
|
page?: boolean | undefined;
|
|
31
33
|
component?: boolean | undefined;
|
|
32
34
|
lints?: LintLevels | undefined;
|
|
@@ -34,6 +36,7 @@ export interface CompileOptions {
|
|
|
34
36
|
clientOnly?: boolean | undefined;
|
|
35
37
|
insideIsland?: boolean | undefined;
|
|
36
38
|
importedSignals?: ImportedSignals | undefined;
|
|
39
|
+
components?: ImportedComponents | undefined;
|
|
37
40
|
classTable?: ClassTable | undefined;
|
|
38
41
|
classMerge?: boolean | undef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E,OAAO,CAAA;IACnB,WAAW,EAAE,UAAU,EAAE,CAAA;CAC1B;AAWD,eAAO,MAAM,WAAW,aAA6F,CAAA;AA4FrH,wBAAsB,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAE1E;AA8BD,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,eAAe,EAAE,IAAI,UAAQ,GAAG,OAAO,CAInG;AAID,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,eAAe,EAAE,IAAI,UAAQ,GAAG,QAAQ,GAAG,SAAS,CAK9H;AAQD,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,EAAE,CAO7D;AAKD,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAE,cAAmB,GAAG,aAAa,CAqI1G;AAsLD,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,SAAQ,GAAG,MAAM,CAE/D;AAGD,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAKtD"}
|
|
@@ -27,4 +27,9 @@ export declare function rolesOf(source: string, script: Span | undefined, fence:
|
|
|
27
27
|
kind: 'island' | 'static';
|
|
28
28
|
}) | undefined;
|
|
29
29
|
};
|
|
30
|
+
export declare function spelledOutFirstFence(source: string, line: Span | undefined, word: {
|
|
31
|
+
start: number;
|
|
32
|
+
end: number;
|
|
33
|
+
word: string;
|
|
34
|
+
} | undefined): Diagnostic[];
|
|
30
35
|
//# sourceMappingURL=island-declaration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"island-declaration.d.ts","sourceRoot":"","sources":["../../src/compiler/island-declaration.ts"],"names":[],"mappings":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K,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,EAAE,QAAQ,GAAE,UAAU,EAAO,GAAG,iBAAiB,GAAG,SAAS,CAmF3I;AAqBD,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAIlD;AAGD,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,GAAG,iBAAiB,GAAG,SAAS,CAc1F;AAGD,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,GAAG,SAAS,EAAE,KAAK,EAAE,CAAA,IAAI,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,IAAG,SAAS,GAAG;IAAE,MAAM,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAAC,MAAM,EAAE,IAAI,GAAG,SAAS,CAAC;IAAC,GAAG,EAAE,CAAC,IAAI,GAAG;QAAE,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAAA;KAAE,CAAC,GAAG,SAAS,CAAA;CAAE,CAa1O;AAGD,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAG,SAAS,EAAE,IAAI,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,GAAG,UAAU,EAAE,CAYzJ"}
|
|
@@ -9,6 +9,7 @@ export type Item = {
|
|
|
9
9
|
} | {
|
|
10
10
|
kind: 'expression';
|
|
11
11
|
node: TextExpression;
|
|
12
|
+
line: Node;
|
|
12
13
|
} | {
|
|
13
14
|
kind: 'component';
|
|
14
15
|
node: ElementNode;
|
|
@@ -71,5 +72,7 @@ export declare function addRowItem(b: CodeBuilder, node: ForNode): void;
|
|
|
71
72
|
export declare function fixedSource(element: ElementNode): string;
|
|
72
73
|
export declare function ambientHelpers(facts: {
|
|
73
74
|
ambientForm: boolean;
|
|
74
|
-
|
|
75
|
+
snippet: boolean;
|
|
76
|
+
forms: ReadonlyMap<unknown, unknown>;
|
|
77
|
+
}, mode: string): ('formHere' | 'formError' | 'issueScope')[];
|
|
75
78
|
//# sourceMappingURL=items.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../src/compiler/items.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAe,WAAW,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AACpK,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAO5C,MAAM,MAAM,IAAI,GACV;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC9B;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,WAAW,CAAA;CAAE,GACtC;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,IAAI,EAAE,cAAc,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../src/compiler/items.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAe,WAAW,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AACpK,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAO5C,MAAM,MAAM,IAAI,GACV;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC9B;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,WAAW,CAAA;CAAE,G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AE,OAAO,GAAG,IAAI,CAK9D;AAGD,wBAAgB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,CAIxD;AAGD,wBAAgB,cAAc,CAAC,KAAK,EAAE;IAAE,WAAW,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;CAAE,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,UAAU,GAAG,WAAW,GAAG,YAAY,CAAC,EAAE,CAEjL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kay-exports.d.ts","sourceRoot":"","sources":["../../src/compiler/kay-exports.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAA;AAE1C,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"kay-exports.d.ts","sourceRoot":"","sources":["../../src/compiler/kay-exports.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAA;AAE1C,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA6FvD,CAAA;AAGD,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAExD,CAAA;AAGD,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAKtE"}
|