vigla 0.0.0 → 0.2.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/dist/compiler/analysis/asynchronous.d.ts +18 -0
- package/dist/compiler/analysis/asynchronous.d.ts.map +1 -0
- package/dist/compiler/analysis/asynchronous.js +195 -0
- package/dist/compiler/analysis/asynchronous.js.map +1 -0
- package/dist/compiler/analysis/classes.d.ts +13 -0
- package/dist/compiler/analysis/classes.d.ts.map +1 -0
- package/dist/compiler/analysis/classes.js +96 -0
- package/dist/compiler/analysis/classes.js.map +1 -0
- package/dist/compiler/analysis/ignoring.d.ts +5 -0
- package/dist/compiler/analysis/ignoring.d.ts.map +1 -0
- package/dist/compiler/analysis/ignoring.js +23 -0
- package/dist/compiler/analysis/ignoring.js.map +1 -0
- package/dist/compiler/analysis/index.d.ts +53 -0
- package/dist/compiler/analysis/index.d.ts.map +1 -0
- package/dist/compiler/analysis/index.js +334 -0
- package/dist/compiler/analysis/index.js.map +1 -0
- package/dist/compiler/analysis/scope.d.ts +59 -0
- package/dist/compiler/analysis/scope.d.ts.map +1 -0
- package/dist/compiler/analysis/scope.js +360 -0
- package/dist/compiler/analysis/scope.js.map +1 -0
- package/dist/compiler/analysis/template.d.ts +40 -0
- package/dist/compiler/analysis/template.d.ts.map +1 -0
- package/dist/compiler/analysis/template.js +504 -0
- package/dist/compiler/analysis/template.js.map +1 -0
- package/dist/compiler/analysis/validate/a11y/attributes.d.ts +12 -0
- package/dist/compiler/analysis/validate/a11y/attributes.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/a11y/attributes.js +197 -0
- package/dist/compiler/analysis/validate/a11y/attributes.js.map +1 -0
- package/dist/compiler/analysis/validate/a11y/axobject-query.d.ts +20 -0
- package/dist/compiler/analysis/validate/a11y/elements.d.ts +3 -0
- package/dist/compiler/analysis/validate/a11y/elements.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/a11y/elements.js +220 -0
- package/dist/compiler/analysis/validate/a11y/elements.js.map +1 -0
- package/dist/compiler/analysis/validate/a11y/facts.d.ts +23 -0
- package/dist/compiler/analysis/validate/a11y/facts.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/a11y/facts.js +91 -0
- package/dist/compiler/analysis/validate/a11y/facts.js.map +1 -0
- package/dist/compiler/analysis/validate/a11y/fuzzy.d.ts +2 -0
- package/dist/compiler/analysis/validate/a11y/fuzzy.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/a11y/fuzzy.js +112 -0
- package/dist/compiler/analysis/validate/a11y/fuzzy.js.map +1 -0
- package/dist/compiler/analysis/validate/a11y/index.d.ts +8 -0
- package/dist/compiler/analysis/validate/a11y/index.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/a11y/index.js +13 -0
- package/dist/compiler/analysis/validate/a11y/index.js.map +1 -0
- package/dist/compiler/analysis/validate/a11y/interactions.d.ts +3 -0
- package/dist/compiler/analysis/validate/a11y/interactions.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/a11y/interactions.js +99 -0
- package/dist/compiler/analysis/validate/a11y/interactions.js.map +1 -0
- package/dist/compiler/analysis/validate/a11y/roles.d.ts +16 -0
- package/dist/compiler/analysis/validate/a11y/roles.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/a11y/roles.js +135 -0
- package/dist/compiler/analysis/validate/a11y/roles.js.map +1 -0
- package/dist/compiler/analysis/validate/a11y/tables.d.ts +22 -0
- package/dist/compiler/analysis/validate/a11y/tables.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/a11y/tables.js +227 -0
- package/dist/compiler/analysis/validate/a11y/tables.js.map +1 -0
- package/dist/compiler/analysis/validate/assignment.d.ts +5 -0
- package/dist/compiler/analysis/validate/assignment.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/assignment.js +64 -0
- package/dist/compiler/analysis/validate/assignment.js.map +1 -0
- package/dist/compiler/analysis/validate/bindings.d.ts +6 -0
- package/dist/compiler/analysis/validate/bindings.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/bindings.js +196 -0
- package/dist/compiler/analysis/validate/bindings.js.map +1 -0
- package/dist/compiler/analysis/validate/classes.d.ts +6 -0
- package/dist/compiler/analysis/validate/classes.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/classes.js +100 -0
- package/dist/compiler/analysis/validate/classes.js.map +1 -0
- package/dist/compiler/analysis/validate/context.d.ts +47 -0
- package/dist/compiler/analysis/validate/context.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/context.js +84 -0
- package/dist/compiler/analysis/validate/context.js.map +1 -0
- package/dist/compiler/analysis/validate/element.d.ts +10 -0
- package/dist/compiler/analysis/validate/element.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/element.js +147 -0
- package/dist/compiler/analysis/validate/element.js.map +1 -0
- package/dist/compiler/analysis/validate/front.d.ts +18 -0
- package/dist/compiler/analysis/validate/front.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/front.js +65 -0
- package/dist/compiler/analysis/validate/front.js.map +1 -0
- package/dist/compiler/analysis/validate/index.d.ts +19 -0
- package/dist/compiler/analysis/validate/index.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/index.js +237 -0
- package/dist/compiler/analysis/validate/index.js.map +1 -0
- package/dist/compiler/analysis/validate/messages.d.ts +3 -0
- package/dist/compiler/analysis/validate/messages.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/messages.js +451 -0
- package/dist/compiler/analysis/validate/messages.js.map +1 -0
- package/dist/compiler/analysis/validate/report.d.ts +29 -0
- package/dist/compiler/analysis/validate/report.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/report.js +79 -0
- package/dist/compiler/analysis/validate/report.js.map +1 -0
- package/dist/compiler/analysis/validate/scope.d.ts +46 -0
- package/dist/compiler/analysis/validate/scope.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/scope.js +187 -0
- package/dist/compiler/analysis/validate/scope.js.map +1 -0
- package/dist/compiler/analysis/validate/scopes.d.ts +23 -0
- package/dist/compiler/analysis/validate/scopes.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/scopes.js +436 -0
- package/dist/compiler/analysis/validate/scopes.js.map +1 -0
- package/dist/compiler/analysis/validate/script.d.ts +5 -0
- package/dist/compiler/analysis/validate/script.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/script.js +502 -0
- package/dist/compiler/analysis/validate/script.js.map +1 -0
- package/dist/compiler/analysis/validate/template.d.ts +13 -0
- package/dist/compiler/analysis/validate/template.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/template.js +316 -0
- package/dist/compiler/analysis/validate/template.js.map +1 -0
- package/dist/compiler/analysis/whitespace.d.ts +8 -0
- package/dist/compiler/analysis/whitespace.d.ts.map +1 -0
- package/dist/compiler/analysis/whitespace.js +71 -0
- package/dist/compiler/analysis/whitespace.js.map +1 -0
- package/dist/compiler/client/asynchronous.d.ts +9 -0
- package/dist/compiler/client/asynchronous.d.ts.map +1 -0
- package/dist/compiler/client/asynchronous.js +38 -0
- package/dist/compiler/client/asynchronous.js.map +1 -0
- package/dist/compiler/client/bindings.d.ts +16 -0
- package/dist/compiler/client/bindings.d.ts.map +1 -0
- package/dist/compiler/client/bindings.js +200 -0
- package/dist/compiler/client/bindings.js.map +1 -0
- package/dist/compiler/client/blocks.d.ts +9 -0
- package/dist/compiler/client/blocks.d.ts.map +1 -0
- package/dist/compiler/client/blocks.js +147 -0
- package/dist/compiler/client/blocks.js.map +1 -0
- package/dist/compiler/client/classes.d.ts +9 -0
- package/dist/compiler/client/classes.d.ts.map +1 -0
- package/dist/compiler/client/classes.js +104 -0
- package/dist/compiler/client/classes.js.map +1 -0
- package/dist/compiler/client/component.d.ts +12 -0
- package/dist/compiler/client/component.d.ts.map +1 -0
- package/dist/compiler/client/component.js +412 -0
- package/dist/compiler/client/component.js.map +1 -0
- package/dist/compiler/client/constants.d.ts +5 -0
- package/dist/compiler/client/constants.d.ts.map +1 -0
- package/dist/compiler/client/constants.js +103 -0
- package/dist/compiler/client/constants.js.map +1 -0
- package/dist/compiler/client/custom-element.d.ts +7 -0
- package/dist/compiler/client/custom-element.d.ts.map +1 -0
- package/dist/compiler/client/custom-element.js +124 -0
- package/dist/compiler/client/custom-element.js.map +1 -0
- package/dist/compiler/client/directives.d.ts +6 -0
- package/dist/compiler/client/directives.d.ts.map +1 -0
- package/dist/compiler/client/directives.js +22 -0
- package/dist/compiler/client/directives.js.map +1 -0
- package/dist/compiler/client/dynamic.d.ts +5 -0
- package/dist/compiler/client/dynamic.d.ts.map +1 -0
- package/dist/compiler/client/dynamic.js +79 -0
- package/dist/compiler/client/dynamic.js.map +1 -0
- package/dist/compiler/client/element.d.ts +6 -0
- package/dist/compiler/client/element.d.ts.map +1 -0
- package/dist/compiler/client/element.js +492 -0
- package/dist/compiler/client/element.js.map +1 -0
- package/dist/compiler/client/events.d.ts +8 -0
- package/dist/compiler/client/events.d.ts.map +1 -0
- package/dist/compiler/client/events.js +116 -0
- package/dist/compiler/client/events.js.map +1 -0
- package/dist/compiler/client/exports.d.ts +9 -0
- package/dist/compiler/client/exports.d.ts.map +1 -0
- package/dist/compiler/client/exports.js +22 -0
- package/dist/compiler/client/exports.js.map +1 -0
- package/dist/compiler/client/external.d.ts +6 -0
- package/dist/compiler/client/external.d.ts.map +1 -0
- package/dist/compiler/client/external.js +133 -0
- package/dist/compiler/client/external.js.map +1 -0
- package/dist/compiler/client/hot.d.ts +3 -0
- package/dist/compiler/client/hot.d.ts.map +1 -0
- package/dist/compiler/client/hot.js +54 -0
- package/dist/compiler/client/hot.js.map +1 -0
- package/dist/compiler/client/index.d.ts +26 -0
- package/dist/compiler/client/index.d.ts.map +1 -0
- package/dist/compiler/client/index.js +241 -0
- package/dist/compiler/client/index.js.map +1 -0
- package/dist/compiler/client/inspect.d.ts +11 -0
- package/dist/compiler/client/inspect.d.ts.map +1 -0
- package/dist/compiler/client/inspect.js +127 -0
- package/dist/compiler/client/inspect.js.map +1 -0
- package/dist/compiler/client/loss.d.ts +14 -0
- package/dist/compiler/client/loss.d.ts.map +1 -0
- package/dist/compiler/client/loss.js +39 -0
- package/dist/compiler/client/loss.js.map +1 -0
- package/dist/compiler/client/markup.d.ts +24 -0
- package/dist/compiler/client/markup.d.ts.map +1 -0
- package/dist/compiler/client/markup.js +82 -0
- package/dist/compiler/client/markup.js.map +1 -0
- package/dist/compiler/client/meta.d.ts +11 -0
- package/dist/compiler/client/meta.d.ts.map +1 -0
- package/dist/compiler/client/meta.js +43 -0
- package/dist/compiler/client/meta.js.map +1 -0
- package/dist/compiler/client/ownership.d.ts +12 -0
- package/dist/compiler/client/ownership.d.ts.map +1 -0
- package/dist/compiler/client/ownership.js +39 -0
- package/dist/compiler/client/ownership.js.map +1 -0
- package/dist/compiler/client/parameters.d.ts +7 -0
- package/dist/compiler/client/parameters.d.ts.map +1 -0
- package/dist/compiler/client/parameters.js +31 -0
- package/dist/compiler/client/parameters.js.map +1 -0
- package/dist/compiler/client/patterns.d.ts +17 -0
- package/dist/compiler/client/patterns.d.ts.map +1 -0
- package/dist/compiler/client/patterns.js +118 -0
- package/dist/compiler/client/patterns.js.map +1 -0
- package/dist/compiler/client/script.d.ts +42 -0
- package/dist/compiler/client/script.d.ts.map +1 -0
- package/dist/compiler/client/script.js +476 -0
- package/dist/compiler/client/script.js.map +1 -0
- package/dist/compiler/client/special.d.ts +7 -0
- package/dist/compiler/client/special.d.ts.map +1 -0
- package/dist/compiler/client/special.js +148 -0
- package/dist/compiler/client/special.js.map +1 -0
- package/dist/compiler/client/template.d.ts +59 -0
- package/dist/compiler/client/template.d.ts.map +1 -0
- package/dist/compiler/client/template.js +380 -0
- package/dist/compiler/client/template.js.map +1 -0
- package/dist/compiler/client/transitions.d.ts +6 -0
- package/dist/compiler/client/transitions.d.ts.map +1 -0
- package/dist/compiler/client/transitions.js +25 -0
- package/dist/compiler/client/transitions.js.map +1 -0
- package/dist/compiler/client/values.d.ts +8 -0
- package/dist/compiler/client/values.d.ts.map +1 -0
- package/dist/compiler/client/values.js +46 -0
- package/dist/compiler/client/values.js.map +1 -0
- package/dist/compiler/css/analyze.d.ts +12 -0
- package/dist/compiler/css/analyze.d.ts.map +1 -0
- package/dist/compiler/css/analyze.js +252 -0
- package/dist/compiler/css/analyze.js.map +1 -0
- package/dist/compiler/css/attributes.d.ts +3 -0
- package/dist/compiler/css/attributes.d.ts.map +1 -0
- package/dist/compiler/css/attributes.js +207 -0
- package/dist/compiler/css/attributes.js.map +1 -0
- package/dist/compiler/css/hash.d.ts +2 -0
- package/dist/compiler/css/hash.d.ts.map +1 -0
- package/dist/compiler/css/hash.js +2 -0
- package/dist/compiler/css/hash.js.map +1 -0
- package/dist/compiler/css/index.d.ts +42 -0
- package/dist/compiler/css/index.d.ts.map +1 -0
- package/dist/compiler/css/index.js +109 -0
- package/dist/compiler/css/index.js.map +1 -0
- package/dist/compiler/css/marks.d.ts +39 -0
- package/dist/compiler/css/marks.d.ts.map +1 -0
- package/dist/compiler/css/marks.js +90 -0
- package/dist/compiler/css/marks.js.map +1 -0
- package/dist/compiler/css/prune.d.ts +10 -0
- package/dist/compiler/css/prune.d.ts.map +1 -0
- package/dist/compiler/css/prune.js +418 -0
- package/dist/compiler/css/prune.js.map +1 -0
- package/dist/compiler/css/relations.d.ts +25 -0
- package/dist/compiler/css/relations.d.ts.map +1 -0
- package/dist/compiler/css/relations.js +262 -0
- package/dist/compiler/css/relations.js.map +1 -0
- package/dist/compiler/css/render.d.ts +22 -0
- package/dist/compiler/css/render.d.ts.map +1 -0
- package/dist/compiler/css/render.js +389 -0
- package/dist/compiler/css/render.js.map +1 -0
- package/dist/compiler/css/template.d.ts +26 -0
- package/dist/compiler/css/template.d.ts.map +1 -0
- package/dist/compiler/css/template.js +271 -0
- package/dist/compiler/css/template.js.map +1 -0
- package/dist/compiler/ir/estree.d.ts +29 -0
- package/dist/compiler/ir/estree.d.ts.map +1 -0
- package/dist/compiler/ir/estree.js +205 -0
- package/dist/compiler/ir/estree.js.map +1 -0
- package/dist/compiler/ir/maps.d.ts +11 -0
- package/dist/compiler/ir/maps.d.ts.map +1 -0
- package/dist/compiler/ir/maps.js +45 -0
- package/dist/compiler/ir/maps.js.map +1 -0
- package/dist/compiler/ir/nodes.d.ts +197 -0
- package/dist/compiler/ir/nodes.d.ts.map +1 -0
- package/dist/compiler/ir/nodes.js +1 -0
- package/dist/compiler/ir/nodes.js.map +1 -0
- package/dist/compiler/ir/port.d.ts +55 -0
- package/dist/compiler/ir/port.d.ts.map +1 -0
- package/dist/compiler/ir/port.js +9 -0
- package/dist/compiler/ir/port.js.map +1 -0
- package/dist/compiler/ir/runtime.d.ts +16 -0
- package/dist/compiler/ir/runtime.d.ts.map +1 -0
- package/dist/compiler/ir/runtime.js +1 -0
- package/dist/compiler/ir/runtime.js.map +1 -0
- package/dist/compiler/ir/script.d.ts +6 -0
- package/dist/compiler/ir/script.d.ts.map +1 -0
- package/dist/compiler/ir/script.js +33 -0
- package/dist/compiler/ir/script.js.map +1 -0
- package/dist/compiler/ir/style.d.ts +92 -0
- package/dist/compiler/ir/style.d.ts.map +1 -0
- package/dist/compiler/ir/style.js +1 -0
- package/dist/compiler/ir/style.js.map +1 -0
- package/dist/compiler/server/asynchronous.d.ts +8 -0
- package/dist/compiler/server/asynchronous.d.ts.map +1 -0
- package/dist/compiler/server/asynchronous.js +44 -0
- package/dist/compiler/server/asynchronous.js.map +1 -0
- package/dist/compiler/server/bindings.d.ts +15 -0
- package/dist/compiler/server/bindings.d.ts.map +1 -0
- package/dist/compiler/server/bindings.js +80 -0
- package/dist/compiler/server/bindings.js.map +1 -0
- package/dist/compiler/server/blocks.d.ts +7 -0
- package/dist/compiler/server/blocks.d.ts.map +1 -0
- package/dist/compiler/server/blocks.js +136 -0
- package/dist/compiler/server/blocks.js.map +1 -0
- package/dist/compiler/server/classes.d.ts +11 -0
- package/dist/compiler/server/classes.d.ts.map +1 -0
- package/dist/compiler/server/classes.js +100 -0
- package/dist/compiler/server/classes.js.map +1 -0
- package/dist/compiler/server/component.d.ts +11 -0
- package/dist/compiler/server/component.d.ts.map +1 -0
- package/dist/compiler/server/component.js +321 -0
- package/dist/compiler/server/component.js.map +1 -0
- package/dist/compiler/server/external.d.ts +6 -0
- package/dist/compiler/server/external.d.ts.map +1 -0
- package/dist/compiler/server/external.js +130 -0
- package/dist/compiler/server/external.js.map +1 -0
- package/dist/compiler/server/index.d.ts +20 -0
- package/dist/compiler/server/index.d.ts.map +1 -0
- package/dist/compiler/server/index.js +161 -0
- package/dist/compiler/server/index.js.map +1 -0
- package/dist/compiler/server/placement.d.ts +5 -0
- package/dist/compiler/server/placement.d.ts.map +1 -0
- package/dist/compiler/server/placement.js +37 -0
- package/dist/compiler/server/placement.js.map +1 -0
- package/dist/compiler/server/script.d.ts +29 -0
- package/dist/compiler/server/script.d.ts.map +1 -0
- package/dist/compiler/server/script.js +404 -0
- package/dist/compiler/server/script.js.map +1 -0
- package/dist/compiler/server/slot.d.ts +5 -0
- package/dist/compiler/server/slot.d.ts.map +1 -0
- package/dist/compiler/server/slot.js +38 -0
- package/dist/compiler/server/slot.js.map +1 -0
- package/dist/compiler/server/special.d.ts +5 -0
- package/dist/compiler/server/special.d.ts.map +1 -0
- package/dist/compiler/server/special.js +60 -0
- package/dist/compiler/server/special.js.map +1 -0
- package/dist/compiler/server/template.d.ts +28 -0
- package/dist/compiler/server/template.d.ts.map +1 -0
- package/dist/compiler/server/template.js +475 -0
- package/dist/compiler/server/template.js.map +1 -0
- package/dist/entries/action.d.ts +9 -0
- package/dist/entries/action.d.ts.map +1 -0
- package/dist/entries/action.js +1 -0
- package/dist/entries/action.js.map +1 -0
- package/dist/entries/animate.d.ts +4 -0
- package/dist/entries/animate.d.ts.map +1 -0
- package/dist/entries/animate.js +2 -0
- package/dist/entries/animate.js.map +1 -0
- package/dist/entries/attachments.d.ts +6 -0
- package/dist/entries/attachments.d.ts.map +1 -0
- package/dist/entries/attachments.js +23 -0
- package/dist/entries/attachments.js.map +1 -0
- package/dist/entries/compiler.d.ts +61 -0
- package/dist/entries/compiler.d.ts.map +1 -0
- package/dist/entries/compiler.js +97 -0
- package/dist/entries/compiler.js.map +1 -0
- package/dist/entries/easing.d.ts +2 -0
- package/dist/entries/easing.d.ts.map +1 -0
- package/dist/entries/easing.js +2 -0
- package/dist/entries/easing.js.map +1 -0
- package/dist/entries/events.d.ts +2 -0
- package/dist/entries/events.d.ts.map +1 -0
- package/dist/entries/events.js +5 -0
- package/dist/entries/events.js.map +1 -0
- package/dist/entries/index-server.d.ts +37 -0
- package/dist/entries/index-server.d.ts.map +1 -0
- package/dist/entries/index-server.js +62 -0
- package/dist/entries/index-server.js.map +1 -0
- package/dist/entries/index.d.ts +29 -0
- package/dist/entries/index.d.ts.map +1 -0
- package/dist/entries/index.js +19 -0
- package/dist/entries/index.js.map +1 -0
- package/dist/entries/internal/client.d.ts +54 -0
- package/dist/entries/internal/client.d.ts.map +1 -0
- package/dist/entries/internal/client.js +50 -0
- package/dist/entries/internal/client.js.map +1 -0
- package/dist/entries/internal/server.d.ts +18 -0
- package/dist/entries/internal/server.d.ts.map +1 -0
- package/dist/entries/internal/server.js +16 -0
- package/dist/entries/internal/server.js.map +1 -0
- package/dist/entries/motion-server.d.ts +6 -0
- package/dist/entries/motion-server.d.ts.map +1 -0
- package/dist/entries/motion-server.js +4 -0
- package/dist/entries/motion-server.js.map +1 -0
- package/dist/entries/motion.d.ts +6 -0
- package/dist/entries/motion.d.ts.map +1 -0
- package/dist/entries/motion.js +4 -0
- package/dist/entries/motion.js.map +1 -0
- package/dist/entries/reactivity-server.d.ts +17 -0
- package/dist/entries/reactivity-server.d.ts.map +1 -0
- package/dist/entries/reactivity-server.js +7 -0
- package/dist/entries/reactivity-server.js.map +1 -0
- package/dist/entries/reactivity.d.ts +8 -0
- package/dist/entries/reactivity.d.ts.map +1 -0
- package/dist/entries/reactivity.js +8 -0
- package/dist/entries/reactivity.js.map +1 -0
- package/dist/entries/server.d.ts +5 -0
- package/dist/entries/server.d.ts.map +1 -0
- package/dist/entries/server.js +2 -0
- package/dist/entries/server.js.map +1 -0
- package/dist/entries/transition.d.ts +5 -0
- package/dist/entries/transition.d.ts.map +1 -0
- package/dist/entries/transition.js +2 -0
- package/dist/entries/transition.js.map +1 -0
- package/dist/entries/window-server.d.ts +2 -0
- package/dist/entries/window-server.d.ts.map +1 -0
- package/dist/entries/window-server.js +2 -0
- package/dist/entries/window-server.js.map +1 -0
- package/dist/entries/window.d.ts +2 -0
- package/dist/entries/window.d.ts.map +1 -0
- package/dist/entries/window.js +2 -0
- package/dist/entries/window.js.map +1 -0
- package/dist/runtime/classes/date.d.ts +5 -0
- package/dist/runtime/classes/date.d.ts.map +1 -0
- package/dist/runtime/classes/date.js +58 -0
- package/dist/runtime/classes/date.js.map +1 -0
- package/dist/runtime/classes/frames.d.ts +6 -0
- package/dist/runtime/classes/frames.d.ts.map +1 -0
- package/dist/runtime/classes/frames.js +28 -0
- package/dist/runtime/classes/frames.js.map +1 -0
- package/dist/runtime/classes/local.d.ts +3 -0
- package/dist/runtime/classes/local.d.ts.map +1 -0
- package/dist/runtime/classes/local.js +6 -0
- package/dist/runtime/classes/local.js.map +1 -0
- package/dist/runtime/classes/map.d.ts +18 -0
- package/dist/runtime/classes/map.d.ts.map +1 -0
- package/dist/runtime/classes/map.js +126 -0
- package/dist/runtime/classes/map.js.map +1 -0
- package/dist/runtime/classes/media.d.ts +6 -0
- package/dist/runtime/classes/media.d.ts.map +1 -0
- package/dist/runtime/classes/media.js +22 -0
- package/dist/runtime/classes/media.js.map +1 -0
- package/dist/runtime/classes/motion.d.ts +3 -0
- package/dist/runtime/classes/motion.d.ts.map +1 -0
- package/dist/runtime/classes/motion.js +3 -0
- package/dist/runtime/classes/motion.js.map +1 -0
- package/dist/runtime/classes/search.d.ts +23 -0
- package/dist/runtime/classes/search.d.ts.map +1 -0
- package/dist/runtime/classes/search.js +115 -0
- package/dist/runtime/classes/search.js.map +1 -0
- package/dist/runtime/classes/server.d.ts +8 -0
- package/dist/runtime/classes/server.d.ts.map +1 -0
- package/dist/runtime/classes/server.js +13 -0
- package/dist/runtime/classes/server.js.map +1 -0
- package/dist/runtime/classes/set.d.ts +28 -0
- package/dist/runtime/classes/set.d.ts.map +1 -0
- package/dist/runtime/classes/set.js +113 -0
- package/dist/runtime/classes/set.js.map +1 -0
- package/dist/runtime/classes/spring.d.ts +25 -0
- package/dist/runtime/classes/spring.d.ts.map +1 -0
- package/dist/runtime/classes/spring.js +154 -0
- package/dist/runtime/classes/spring.js.map +1 -0
- package/dist/runtime/classes/subscriber.d.ts +10 -0
- package/dist/runtime/classes/subscriber.d.ts.map +1 -0
- package/dist/runtime/classes/subscriber.js +46 -0
- package/dist/runtime/classes/subscriber.js.map +1 -0
- package/dist/runtime/classes/tween.d.ts +17 -0
- package/dist/runtime/classes/tween.d.ts.map +1 -0
- package/dist/runtime/classes/tween.js +112 -0
- package/dist/runtime/classes/tween.js.map +1 -0
- package/dist/runtime/classes/url.d.ts +30 -0
- package/dist/runtime/classes/url.d.ts.map +1 -0
- package/dist/runtime/classes/url.js +127 -0
- package/dist/runtime/classes/url.js.map +1 -0
- package/dist/runtime/classes/window-server.d.ts +14 -0
- package/dist/runtime/classes/window-server.d.ts.map +1 -0
- package/dist/runtime/classes/window-server.js +14 -0
- package/dist/runtime/classes/window-server.js.map +1 -0
- package/dist/runtime/classes/window.d.ts +18 -0
- package/dist/runtime/classes/window.d.ts.map +1 -0
- package/dist/runtime/classes/window.js +54 -0
- package/dist/runtime/classes/window.js.map +1 -0
- package/dist/runtime/dom/async.d.ts +21 -0
- package/dist/runtime/dom/async.d.ts.map +1 -0
- package/dist/runtime/dom/async.js +179 -0
- package/dist/runtime/dom/async.js.map +1 -0
- package/dist/runtime/dom/attachments.d.ts +18 -0
- package/dist/runtime/dom/attachments.d.ts.map +1 -0
- package/dist/runtime/dom/attachments.js +134 -0
- package/dist/runtime/dom/attachments.js.map +1 -0
- package/dist/runtime/dom/attributes.d.ts +21 -0
- package/dist/runtime/dom/attributes.d.ts.map +1 -0
- package/dist/runtime/dom/attributes.js +450 -0
- package/dist/runtime/dom/attributes.js.map +1 -0
- package/dist/runtime/dom/await.d.ts +5 -0
- package/dist/runtime/dom/await.d.ts.map +1 -0
- package/dist/runtime/dom/await.js +95 -0
- package/dist/runtime/dom/await.js.map +1 -0
- package/dist/runtime/dom/bindings.d.ts +21 -0
- package/dist/runtime/dom/bindings.d.ts.map +1 -0
- package/dist/runtime/dom/bindings.js +299 -0
- package/dist/runtime/dom/bindings.js.map +1 -0
- package/dist/runtime/dom/blocks.d.ts +4 -0
- package/dist/runtime/dom/blocks.d.ts.map +1 -0
- package/dist/runtime/dom/blocks.js +32 -0
- package/dist/runtime/dom/blocks.js.map +1 -0
- package/dist/runtime/dom/boundary.d.ts +14 -0
- package/dist/runtime/dom/boundary.d.ts.map +1 -0
- package/dist/runtime/dom/boundary.js +313 -0
- package/dist/runtime/dom/boundary.js.map +1 -0
- package/dist/runtime/dom/branches.d.ts +14 -0
- package/dist/runtime/dom/branches.d.ts.map +1 -0
- package/dist/runtime/dom/branches.js +210 -0
- package/dist/runtime/dom/branches.js.map +1 -0
- package/dist/runtime/dom/context.d.ts +9 -0
- package/dist/runtime/dom/context.d.ts.map +1 -0
- package/dist/runtime/dom/context.js +78 -0
- package/dist/runtime/dom/context.js.map +1 -0
- package/dist/runtime/dom/custom-element.d.ts +16 -0
- package/dist/runtime/dom/custom-element.d.ts.map +1 -0
- package/dist/runtime/dom/custom-element.js +198 -0
- package/dist/runtime/dom/custom-element.js.map +1 -0
- package/dist/runtime/dom/data.d.ts +11 -0
- package/dist/runtime/dom/data.d.ts.map +1 -0
- package/dist/runtime/dom/data.js +114 -0
- package/dist/runtime/dom/data.js.map +1 -0
- package/dist/runtime/dom/element.d.ts +3 -0
- package/dist/runtime/dom/element.d.ts.map +1 -0
- package/dist/runtime/dom/element.js +81 -0
- package/dist/runtime/dom/element.js.map +1 -0
- package/dist/runtime/dom/events.d.ts +9 -0
- package/dist/runtime/dom/events.d.ts.map +1 -0
- package/dist/runtime/dom/events.js +211 -0
- package/dist/runtime/dom/events.js.map +1 -0
- package/dist/runtime/dom/head.d.ts +4 -0
- package/dist/runtime/dom/head.d.ts.map +1 -0
- package/dist/runtime/dom/head.js +54 -0
- package/dist/runtime/dom/head.js.map +1 -0
- package/dist/runtime/dom/hot.d.ts +15 -0
- package/dist/runtime/dom/hot.d.ts.map +1 -0
- package/dist/runtime/dom/hot.js +38 -0
- package/dist/runtime/dom/hot.js.map +1 -0
- package/dist/runtime/dom/html.d.ts +7 -0
- package/dist/runtime/dom/html.d.ts.map +1 -0
- package/dist/runtime/dom/html.js +91 -0
- package/dist/runtime/dom/html.js.map +1 -0
- package/dist/runtime/dom/hydration.d.ts +16 -0
- package/dist/runtime/dom/hydration.d.ts.map +1 -0
- package/dist/runtime/dom/hydration.js +92 -0
- package/dist/runtime/dom/hydration.js.map +1 -0
- package/dist/runtime/dom/inspect.d.ts +2 -0
- package/dist/runtime/dom/inspect.d.ts.map +1 -0
- package/dist/runtime/dom/inspect.js +71 -0
- package/dist/runtime/dom/inspect.js.map +1 -0
- package/dist/runtime/dom/list.d.ts +7 -0
- package/dist/runtime/dom/list.d.ts.map +1 -0
- package/dist/runtime/dom/list.js +388 -0
- package/dist/runtime/dom/list.js.map +1 -0
- package/dist/runtime/dom/media.d.ts +26 -0
- package/dist/runtime/dom/media.d.ts.map +1 -0
- package/dist/runtime/dom/media.js +126 -0
- package/dist/runtime/dom/media.js.map +1 -0
- package/dist/runtime/dom/meta.d.ts +16 -0
- package/dist/runtime/dom/meta.d.ts.map +1 -0
- package/dist/runtime/dom/meta.js +48 -0
- package/dist/runtime/dom/meta.js.map +1 -0
- package/dist/runtime/dom/mount.d.ts +23 -0
- package/dist/runtime/dom/mount.d.ts.map +1 -0
- package/dist/runtime/dom/mount.js +134 -0
- package/dist/runtime/dom/mount.js.map +1 -0
- package/dist/runtime/dom/ownership.d.ts +6 -0
- package/dist/runtime/dom/ownership.d.ts.map +1 -0
- package/dist/runtime/dom/ownership.js +32 -0
- package/dist/runtime/dom/ownership.js.map +1 -0
- package/dist/runtime/dom/props.d.ts +20 -0
- package/dist/runtime/dom/props.d.ts.map +1 -0
- package/dist/runtime/dom/props.js +193 -0
- package/dist/runtime/dom/props.js.map +1 -0
- package/dist/runtime/dom/range.d.ts +16 -0
- package/dist/runtime/dom/range.d.ts.map +1 -0
- package/dist/runtime/dom/range.js +120 -0
- package/dist/runtime/dom/range.js.map +1 -0
- package/dist/runtime/dom/reset.d.ts +4 -0
- package/dist/runtime/dom/reset.d.ts.map +1 -0
- package/dist/runtime/dom/reset.js +39 -0
- package/dist/runtime/dom/reset.js.map +1 -0
- package/dist/runtime/dom/select.d.ts +8 -0
- package/dist/runtime/dom/select.d.ts.map +1 -0
- package/dist/runtime/dom/select.js +175 -0
- package/dist/runtime/dom/select.js.map +1 -0
- package/dist/runtime/dom/snippet.d.ts +7 -0
- package/dist/runtime/dom/snippet.d.ts.map +1 -0
- package/dist/runtime/dom/snippet.js +49 -0
- package/dist/runtime/dom/snippet.js.map +1 -0
- package/dist/runtime/dom/styles.d.ts +6 -0
- package/dist/runtime/dom/styles.d.ts.map +1 -0
- package/dist/runtime/dom/styles.js +22 -0
- package/dist/runtime/dom/styles.js.map +1 -0
- package/dist/runtime/dom/swap.d.ts +10 -0
- package/dist/runtime/dom/swap.d.ts.map +1 -0
- package/dist/runtime/dom/swap.js +84 -0
- package/dist/runtime/dom/swap.js.map +1 -0
- package/dist/runtime/dom/targets.d.ts +9 -0
- package/dist/runtime/dom/targets.d.ts.map +1 -0
- package/dist/runtime/dom/targets.js +84 -0
- package/dist/runtime/dom/targets.js.map +1 -0
- package/dist/runtime/dom/template.d.ts +19 -0
- package/dist/runtime/dom/template.d.ts.map +1 -0
- package/dist/runtime/dom/template.js +269 -0
- package/dist/runtime/dom/template.js.map +1 -0
- package/dist/runtime/dom/trusted.d.ts +4 -0
- package/dist/runtime/dom/trusted.d.ts.map +1 -0
- package/dist/runtime/dom/trusted.js +47 -0
- package/dist/runtime/dom/trusted.js.map +1 -0
- package/dist/runtime/dom/values.d.ts +4 -0
- package/dist/runtime/dom/values.d.ts.map +1 -0
- package/dist/runtime/dom/values.js +31 -0
- package/dist/runtime/dom/values.js.map +1 -0
- package/dist/runtime/reactivity/abort.d.ts +8 -0
- package/dist/runtime/reactivity/abort.d.ts.map +1 -0
- package/dist/runtime/reactivity/abort.js +50 -0
- package/dist/runtime/reactivity/abort.js.map +1 -0
- package/dist/runtime/reactivity/async.d.ts +13 -0
- package/dist/runtime/reactivity/async.d.ts.map +1 -0
- package/dist/runtime/reactivity/async.js +285 -0
- package/dist/runtime/reactivity/async.js.map +1 -0
- package/dist/runtime/reactivity/batch.d.ts +84 -0
- package/dist/runtime/reactivity/batch.d.ts.map +1 -0
- package/dist/runtime/reactivity/batch.js +359 -0
- package/dist/runtime/reactivity/batch.js.map +1 -0
- package/dist/runtime/reactivity/carried.d.ts +15 -0
- package/dist/runtime/reactivity/carried.d.ts.map +1 -0
- package/dist/runtime/reactivity/carried.js +49 -0
- package/dist/runtime/reactivity/carried.js.map +1 -0
- package/dist/runtime/reactivity/collector.d.ts +4 -0
- package/dist/runtime/reactivity/collector.d.ts.map +1 -0
- package/dist/runtime/reactivity/collector.js +19 -0
- package/dist/runtime/reactivity/collector.js.map +1 -0
- package/dist/runtime/reactivity/drafts.d.ts +25 -0
- package/dist/runtime/reactivity/drafts.d.ts.map +1 -0
- package/dist/runtime/reactivity/drafts.js +125 -0
- package/dist/runtime/reactivity/drafts.js.map +1 -0
- package/dist/runtime/reactivity/eager.d.ts +5 -0
- package/dist/runtime/reactivity/eager.d.ts.map +1 -0
- package/dist/runtime/reactivity/eager.js +45 -0
- package/dist/runtime/reactivity/eager.js.map +1 -0
- package/dist/runtime/reactivity/edges.d.ts +14 -0
- package/dist/runtime/reactivity/edges.d.ts.map +1 -0
- package/dist/runtime/reactivity/edges.js +207 -0
- package/dist/runtime/reactivity/edges.js.map +1 -0
- package/dist/runtime/reactivity/effects.d.ts +41 -0
- package/dist/runtime/reactivity/effects.d.ts.map +1 -0
- package/dist/runtime/reactivity/effects.js +618 -0
- package/dist/runtime/reactivity/effects.js.map +1 -0
- package/dist/runtime/reactivity/errors.d.ts +12 -0
- package/dist/runtime/reactivity/errors.d.ts.map +1 -0
- package/dist/runtime/reactivity/errors.js +38 -0
- package/dist/runtime/reactivity/errors.js.map +1 -0
- package/dist/runtime/reactivity/external.d.ts +3 -0
- package/dist/runtime/reactivity/external.d.ts.map +1 -0
- package/dist/runtime/reactivity/external.js +48 -0
- package/dist/runtime/reactivity/external.js.map +1 -0
- package/dist/runtime/reactivity/fork.d.ts +6 -0
- package/dist/runtime/reactivity/fork.d.ts.map +1 -0
- package/dist/runtime/reactivity/fork.js +64 -0
- package/dist/runtime/reactivity/fork.js.map +1 -0
- package/dist/runtime/reactivity/front.d.ts +5 -0
- package/dist/runtime/reactivity/front.d.ts.map +1 -0
- package/dist/runtime/reactivity/front.js +16 -0
- package/dist/runtime/reactivity/front.js.map +1 -0
- package/dist/runtime/reactivity/graph.d.ts +86 -0
- package/dist/runtime/reactivity/graph.d.ts.map +1 -0
- package/dist/runtime/reactivity/graph.js +38 -0
- package/dist/runtime/reactivity/graph.js.map +1 -0
- package/dist/runtime/reactivity/handlers.d.ts +6 -0
- package/dist/runtime/reactivity/handlers.d.ts.map +1 -0
- package/dist/runtime/reactivity/handlers.js +48 -0
- package/dist/runtime/reactivity/handlers.js.map +1 -0
- package/dist/runtime/reactivity/held.d.ts +12 -0
- package/dist/runtime/reactivity/held.d.ts.map +1 -0
- package/dist/runtime/reactivity/held.js +343 -0
- package/dist/runtime/reactivity/held.js.map +1 -0
- package/dist/runtime/reactivity/history.d.ts +25 -0
- package/dist/runtime/reactivity/history.d.ts.map +1 -0
- package/dist/runtime/reactivity/history.js +88 -0
- package/dist/runtime/reactivity/history.js.map +1 -0
- package/dist/runtime/reactivity/latest.d.ts +2 -0
- package/dist/runtime/reactivity/latest.d.ts.map +1 -0
- package/dist/runtime/reactivity/latest.js +42 -0
- package/dist/runtime/reactivity/latest.js.map +1 -0
- package/dist/runtime/reactivity/leaving.d.ts +30 -0
- package/dist/runtime/reactivity/leaving.d.ts.map +1 -0
- package/dist/runtime/reactivity/leaving.js +278 -0
- package/dist/runtime/reactivity/leaving.js.map +1 -0
- package/dist/runtime/reactivity/loss.d.ts +5 -0
- package/dist/runtime/reactivity/loss.d.ts.map +1 -0
- package/dist/runtime/reactivity/loss.js +70 -0
- package/dist/runtime/reactivity/loss.js.map +1 -0
- package/dist/runtime/reactivity/outgoing.d.ts +11 -0
- package/dist/runtime/reactivity/outgoing.d.ts.map +1 -0
- package/dist/runtime/reactivity/outgoing.js +37 -0
- package/dist/runtime/reactivity/outgoing.js.map +1 -0
- package/dist/runtime/reactivity/owners.d.ts +33 -0
- package/dist/runtime/reactivity/owners.d.ts.map +1 -0
- package/dist/runtime/reactivity/owners.js +222 -0
- package/dist/runtime/reactivity/owners.js.map +1 -0
- package/dist/runtime/reactivity/past.d.ts +9 -0
- package/dist/runtime/reactivity/past.d.ts.map +1 -0
- package/dist/runtime/reactivity/past.js +57 -0
- package/dist/runtime/reactivity/past.js.map +1 -0
- package/dist/runtime/reactivity/provenance.d.ts +34 -0
- package/dist/runtime/reactivity/provenance.d.ts.map +1 -0
- package/dist/runtime/reactivity/provenance.js +163 -0
- package/dist/runtime/reactivity/provenance.js.map +1 -0
- package/dist/runtime/reactivity/proxy.d.ts +6 -0
- package/dist/runtime/reactivity/proxy.d.ts.map +1 -0
- package/dist/runtime/reactivity/proxy.js +219 -0
- package/dist/runtime/reactivity/proxy.js.map +1 -0
- package/dist/runtime/reactivity/public.d.ts +16 -0
- package/dist/runtime/reactivity/public.d.ts.map +1 -0
- package/dist/runtime/reactivity/public.js +28 -0
- package/dist/runtime/reactivity/public.js.map +1 -0
- package/dist/runtime/reactivity/reads.d.ts +7 -0
- package/dist/runtime/reactivity/reads.d.ts.map +1 -0
- package/dist/runtime/reactivity/reads.js +383 -0
- package/dist/runtime/reactivity/reads.js.map +1 -0
- package/dist/runtime/reactivity/scheduler.d.ts +8 -0
- package/dist/runtime/reactivity/scheduler.d.ts.map +1 -0
- package/dist/runtime/reactivity/scheduler.js +406 -0
- package/dist/runtime/reactivity/scheduler.js.map +1 -0
- package/dist/runtime/reactivity/settle.d.ts +6 -0
- package/dist/runtime/reactivity/settle.d.ts.map +1 -0
- package/dist/runtime/reactivity/settle.js +76 -0
- package/dist/runtime/reactivity/settle.js.map +1 -0
- package/dist/runtime/reactivity/sources.d.ts +17 -0
- package/dist/runtime/reactivity/sources.d.ts.map +1 -0
- package/dist/runtime/reactivity/sources.js +124 -0
- package/dist/runtime/reactivity/sources.js.map +1 -0
- package/dist/runtime/reactivity/tallies.d.ts +12 -0
- package/dist/runtime/reactivity/tallies.d.ts.map +1 -0
- package/dist/runtime/reactivity/tallies.js +25 -0
- package/dist/runtime/reactivity/tallies.js.map +1 -0
- package/dist/runtime/reactivity/tasks.d.ts +3 -0
- package/dist/runtime/reactivity/tasks.d.ts.map +1 -0
- package/dist/runtime/reactivity/tasks.js +35 -0
- package/dist/runtime/reactivity/tasks.js.map +1 -0
- package/dist/runtime/reactivity/trace.d.ts +5 -0
- package/dist/runtime/reactivity/trace.d.ts.map +1 -0
- package/dist/runtime/reactivity/trace.js +109 -0
- package/dist/runtime/reactivity/trace.js.map +1 -0
- package/dist/runtime/reactivity/tracking.d.ts +62 -0
- package/dist/runtime/reactivity/tracking.d.ts.map +1 -0
- package/dist/runtime/reactivity/tracking.js +520 -0
- package/dist/runtime/reactivity/tracking.js.map +1 -0
- package/dist/runtime/reactivity/units.d.ts +12 -0
- package/dist/runtime/reactivity/units.d.ts.map +1 -0
- package/dist/runtime/reactivity/units.js +112 -0
- package/dist/runtime/reactivity/units.js.map +1 -0
- package/dist/runtime/reactivity/views.d.ts +12 -0
- package/dist/runtime/reactivity/views.d.ts.map +1 -0
- package/dist/runtime/reactivity/views.js +105 -0
- package/dist/runtime/reactivity/views.js.map +1 -0
- package/dist/runtime/server/attributes.d.ts +9 -0
- package/dist/runtime/server/attributes.d.ts.map +1 -0
- package/dist/runtime/server/attributes.js +73 -0
- package/dist/runtime/server/attributes.js.map +1 -0
- package/dist/runtime/server/cells.d.ts +9 -0
- package/dist/runtime/server/cells.d.ts.map +1 -0
- package/dist/runtime/server/cells.js +120 -0
- package/dist/runtime/server/cells.js.map +1 -0
- package/dist/runtime/server/context.d.ts +51 -0
- package/dist/runtime/server/context.d.ts.map +1 -0
- package/dist/runtime/server/context.js +260 -0
- package/dist/runtime/server/context.js.map +1 -0
- package/dist/runtime/server/derived.d.ts +5 -0
- package/dist/runtime/server/derived.d.ts.map +1 -0
- package/dist/runtime/server/derived.js +30 -0
- package/dist/runtime/server/derived.js.map +1 -0
- package/dist/runtime/server/external.d.ts +3 -0
- package/dist/runtime/server/external.d.ts.map +1 -0
- package/dist/runtime/server/external.js +53 -0
- package/dist/runtime/server/external.js.map +1 -0
- package/dist/runtime/server/hydration.d.ts +26 -0
- package/dist/runtime/server/hydration.d.ts.map +1 -0
- package/dist/runtime/server/hydration.js +187 -0
- package/dist/runtime/server/hydration.js.map +1 -0
- package/dist/runtime/server/placement.d.ts +9 -0
- package/dist/runtime/server/placement.d.ts.map +1 -0
- package/dist/runtime/server/placement.js +35 -0
- package/dist/runtime/server/placement.js.map +1 -0
- package/dist/runtime/server/render.d.ts +89 -0
- package/dist/runtime/server/render.d.ts.map +1 -0
- package/dist/runtime/server/render.js +470 -0
- package/dist/runtime/server/render.js.map +1 -0
- package/dist/runtime/server/snippet.d.ts +7 -0
- package/dist/runtime/server/snippet.d.ts.map +1 -0
- package/dist/runtime/server/snippet.js +15 -0
- package/dist/runtime/server/snippet.js.map +1 -0
- package/dist/runtime/transitions/animate.d.ts +22 -0
- package/dist/runtime/transitions/animate.d.ts.map +1 -0
- package/dist/runtime/transitions/animate.js +140 -0
- package/dist/runtime/transitions/animate.js.map +1 -0
- package/dist/runtime/transitions/easing.d.ts +33 -0
- package/dist/runtime/transitions/easing.d.ts.map +1 -0
- package/dist/runtime/transitions/easing.js +128 -0
- package/dist/runtime/transitions/easing.js.map +1 -0
- package/dist/runtime/transitions/flip.d.ts +12 -0
- package/dist/runtime/transitions/flip.d.ts.map +1 -0
- package/dist/runtime/transitions/flip.js +51 -0
- package/dist/runtime/transitions/flip.js.map +1 -0
- package/dist/runtime/transitions/frame.d.ts +37 -0
- package/dist/runtime/transitions/frame.d.ts.map +1 -0
- package/dist/runtime/transitions/frame.js +219 -0
- package/dist/runtime/transitions/frame.js.map +1 -0
- package/dist/runtime/transitions/layout.d.ts +37 -0
- package/dist/runtime/transitions/layout.d.ts.map +1 -0
- package/dist/runtime/transitions/layout.js +150 -0
- package/dist/runtime/transitions/layout.js.map +1 -0
- package/dist/runtime/transitions/manager.d.ts +30 -0
- package/dist/runtime/transitions/manager.d.ts.map +1 -0
- package/dist/runtime/transitions/manager.js +278 -0
- package/dist/runtime/transitions/manager.js.map +1 -0
- package/dist/runtime/transitions/placement.d.ts +25 -0
- package/dist/runtime/transitions/placement.d.ts.map +1 -0
- package/dist/runtime/transitions/placement.js +135 -0
- package/dist/runtime/transitions/placement.js.map +1 -0
- package/dist/runtime/transitions/presets.d.ts +53 -0
- package/dist/runtime/transitions/presets.d.ts.map +1 -0
- package/dist/runtime/transitions/presets.js +266 -0
- package/dist/runtime/transitions/presets.js.map +1 -0
- package/dist/shared/abort.d.ts +6 -0
- package/dist/shared/abort.d.ts.map +1 -0
- package/dist/shared/abort.js +8 -0
- package/dist/shared/abort.js.map +1 -0
- package/dist/shared/assignment.d.ts +6 -0
- package/dist/shared/assignment.d.ts.map +1 -0
- package/dist/shared/assignment.js +19 -0
- package/dist/shared/assignment.js.map +1 -0
- package/dist/shared/attributes.d.ts +8 -0
- package/dist/shared/attributes.d.ts.map +1 -0
- package/dist/shared/attributes.js +120 -0
- package/dist/shared/attributes.js.map +1 -0
- package/dist/shared/clone.d.ts +2 -0
- package/dist/shared/clone.d.ts.map +1 -0
- package/dist/shared/clone.js +76 -0
- package/dist/shared/clone.js.map +1 -0
- package/dist/shared/context.d.ts +15 -0
- package/dist/shared/context.d.ts.map +1 -0
- package/dist/shared/context.js +16 -0
- package/dist/shared/context.js.map +1 -0
- package/dist/shared/diagnostics.d.ts +22 -0
- package/dist/shared/diagnostics.d.ts.map +1 -0
- package/dist/shared/diagnostics.js +58 -0
- package/dist/shared/diagnostics.js.map +1 -0
- package/dist/shared/escape.d.ts +3 -0
- package/dist/shared/escape.d.ts.map +1 -0
- package/dist/shared/escape.js +17 -0
- package/dist/shared/escape.js.map +1 -0
- package/dist/shared/external.d.ts +37 -0
- package/dist/shared/external.d.ts.map +1 -0
- package/dist/shared/external.js +76 -0
- package/dist/shared/external.js.map +1 -0
- package/dist/shared/format.d.ts +9 -0
- package/dist/shared/format.d.ts.map +1 -0
- package/dist/shared/format.js +10 -0
- package/dist/shared/format.js.map +1 -0
- package/dist/shared/hash.d.ts +2 -0
- package/dist/shared/hash.d.ts.map +1 -0
- package/dist/shared/hash.js +9 -0
- package/dist/shared/hash.js.map +1 -0
- package/dist/shared/html.d.ts +18 -0
- package/dist/shared/html.d.ts.map +1 -0
- package/dist/shared/html.js +277 -0
- package/dist/shared/html.js.map +1 -0
- package/dist/shared/markers.d.ts +12 -0
- package/dist/shared/markers.d.ts.map +1 -0
- package/dist/shared/markers.js +16 -0
- package/dist/shared/markers.js.map +1 -0
- package/dist/shared/nesting.d.ts +3 -0
- package/dist/shared/nesting.d.ts.map +1 -0
- package/dist/shared/nesting.js +143 -0
- package/dist/shared/nesting.js.map +1 -0
- package/dist/shared/slots.d.ts +8 -0
- package/dist/shared/slots.d.ts.map +1 -0
- package/dist/shared/slots.js +9 -0
- package/dist/shared/slots.js.map +1 -0
- package/dist/shared/snippet.d.ts +11 -0
- package/dist/shared/snippet.d.ts.map +1 -0
- package/dist/shared/snippet.js +11 -0
- package/dist/shared/snippet.js.map +1 -0
- package/package.json +59 -3
- package/src/compiler/analysis/asynchronous.ts +206 -0
- package/src/compiler/analysis/classes.ts +110 -0
- package/src/compiler/analysis/ignoring.ts +25 -0
- package/src/compiler/analysis/index.ts +433 -0
- package/src/compiler/analysis/scope.ts +410 -0
- package/src/compiler/analysis/template.ts +525 -0
- package/src/compiler/analysis/validate/a11y/attributes.ts +252 -0
- package/src/compiler/analysis/validate/a11y/axobject-query.d.ts +20 -0
- package/src/compiler/analysis/validate/a11y/elements.ts +241 -0
- package/src/compiler/analysis/validate/a11y/facts.ts +102 -0
- package/src/compiler/analysis/validate/a11y/fuzzy.ts +123 -0
- package/src/compiler/analysis/validate/a11y/index.ts +24 -0
- package/src/compiler/analysis/validate/a11y/interactions.ts +125 -0
- package/src/compiler/analysis/validate/a11y/roles.ts +182 -0
- package/src/compiler/analysis/validate/a11y/tables.ts +250 -0
- package/src/compiler/analysis/validate/assignment.ts +74 -0
- package/src/compiler/analysis/validate/bindings.ts +210 -0
- package/src/compiler/analysis/validate/classes.ts +102 -0
- package/src/compiler/analysis/validate/context.ts +119 -0
- package/src/compiler/analysis/validate/element.ts +148 -0
- package/src/compiler/analysis/validate/front.ts +75 -0
- package/src/compiler/analysis/validate/index.ts +268 -0
- package/src/compiler/analysis/validate/messages.ts +451 -0
- package/src/compiler/analysis/validate/report.ts +100 -0
- package/src/compiler/analysis/validate/scope.ts +241 -0
- package/src/compiler/analysis/validate/scopes.ts +460 -0
- package/src/compiler/analysis/validate/script.ts +528 -0
- package/src/compiler/analysis/validate/template.ts +326 -0
- package/src/compiler/analysis/whitespace.ts +87 -0
- package/src/compiler/client/asynchronous.ts +68 -0
- package/src/compiler/client/bindings.ts +246 -0
- package/src/compiler/client/blocks.ts +239 -0
- package/src/compiler/client/classes.ts +154 -0
- package/src/compiler/client/component.ts +549 -0
- package/src/compiler/client/constants.ts +107 -0
- package/src/compiler/client/custom-element.ts +173 -0
- package/src/compiler/client/directives.ts +35 -0
- package/src/compiler/client/dynamic.ts +85 -0
- package/src/compiler/client/element.ts +631 -0
- package/src/compiler/client/events.ts +147 -0
- package/src/compiler/client/exports.ts +39 -0
- package/src/compiler/client/external.ts +190 -0
- package/src/compiler/client/hot.ts +62 -0
- package/src/compiler/client/index.ts +307 -0
- package/src/compiler/client/inspect.ts +153 -0
- package/src/compiler/client/loss.ts +53 -0
- package/src/compiler/client/markup.ts +126 -0
- package/src/compiler/client/meta.ts +64 -0
- package/src/compiler/client/ownership.ts +54 -0
- package/src/compiler/client/parameters.ts +38 -0
- package/src/compiler/client/patterns.ts +154 -0
- package/src/compiler/client/script.ts +587 -0
- package/src/compiler/client/special.ts +177 -0
- package/src/compiler/client/template.ts +533 -0
- package/src/compiler/client/transitions.ts +38 -0
- package/src/compiler/client/values.ts +52 -0
- package/src/compiler/css/analyze.ts +281 -0
- package/src/compiler/css/attributes.ts +195 -0
- package/src/compiler/css/hash.ts +1 -0
- package/src/compiler/css/index.ts +152 -0
- package/src/compiler/css/marks.ts +142 -0
- package/src/compiler/css/prune.ts +466 -0
- package/src/compiler/css/relations.ts +264 -0
- package/src/compiler/css/render.ts +422 -0
- package/src/compiler/css/template.ts +297 -0
- package/src/compiler/ir/estree.ts +256 -0
- package/src/compiler/ir/maps.ts +64 -0
- package/src/compiler/ir/nodes.ts +263 -0
- package/src/compiler/ir/port.ts +88 -0
- package/src/compiler/ir/runtime.ts +19 -0
- package/src/compiler/ir/script.ts +34 -0
- package/src/compiler/ir/style.ts +120 -0
- package/src/compiler/server/asynchronous.ts +71 -0
- package/src/compiler/server/bindings.ts +101 -0
- package/src/compiler/server/blocks.ts +165 -0
- package/src/compiler/server/classes.ts +139 -0
- package/src/compiler/server/component.ts +400 -0
- package/src/compiler/server/external.ts +176 -0
- package/src/compiler/server/index.ts +205 -0
- package/src/compiler/server/placement.ts +58 -0
- package/src/compiler/server/script.ts +492 -0
- package/src/compiler/server/slot.ts +51 -0
- package/src/compiler/server/special.ts +60 -0
- package/src/compiler/server/template.ts +620 -0
- package/src/entries/action.ts +20 -0
- package/src/entries/animate.ts +3 -0
- package/src/entries/attachments.ts +30 -0
- package/src/entries/compiler.ts +206 -0
- package/src/entries/easing.ts +1 -0
- package/src/entries/events.ts +10 -0
- package/src/entries/index-server.ts +118 -0
- package/src/entries/index.ts +50 -0
- package/src/entries/internal/client.ts +135 -0
- package/src/entries/internal/server.ts +46 -0
- package/src/entries/motion-server.ts +5 -0
- package/src/entries/motion.ts +5 -0
- package/src/entries/reactivity-server.ts +7 -0
- package/src/entries/reactivity.ts +7 -0
- package/src/entries/server.ts +11 -0
- package/src/entries/transition.ts +12 -0
- package/src/entries/window-server.ts +12 -0
- package/src/entries/window.ts +12 -0
- package/src/runtime/classes/date.ts +65 -0
- package/src/runtime/classes/frames.ts +27 -0
- package/src/runtime/classes/local.ts +7 -0
- package/src/runtime/classes/map.ts +135 -0
- package/src/runtime/classes/media.ts +25 -0
- package/src/runtime/classes/motion.ts +3 -0
- package/src/runtime/classes/search.ts +136 -0
- package/src/runtime/classes/server.ts +17 -0
- package/src/runtime/classes/set.ts +146 -0
- package/src/runtime/classes/spring.ts +199 -0
- package/src/runtime/classes/subscriber.ts +50 -0
- package/src/runtime/classes/tween.ts +128 -0
- package/src/runtime/classes/url.ts +152 -0
- package/src/runtime/classes/window-server.ts +27 -0
- package/src/runtime/classes/window.ts +72 -0
- package/src/runtime/dom/async.ts +208 -0
- package/src/runtime/dom/attachments.ts +139 -0
- package/src/runtime/dom/attributes.ts +526 -0
- package/src/runtime/dom/await.ts +108 -0
- package/src/runtime/dom/bindings.ts +369 -0
- package/src/runtime/dom/blocks.ts +39 -0
- package/src/runtime/dom/boundary.ts +349 -0
- package/src/runtime/dom/branches.ts +219 -0
- package/src/runtime/dom/context.ts +90 -0
- package/src/runtime/dom/custom-element.ts +214 -0
- package/src/runtime/dom/data.ts +131 -0
- package/src/runtime/dom/element.ts +89 -0
- package/src/runtime/dom/events.ts +254 -0
- package/src/runtime/dom/head.ts +56 -0
- package/src/runtime/dom/hot.ts +45 -0
- package/src/runtime/dom/html.ts +92 -0
- package/src/runtime/dom/hydration.ts +108 -0
- package/src/runtime/dom/inspect.ts +70 -0
- package/src/runtime/dom/list.ts +432 -0
- package/src/runtime/dom/media.ts +164 -0
- package/src/runtime/dom/meta.ts +67 -0
- package/src/runtime/dom/mount.ts +190 -0
- package/src/runtime/dom/ownership.ts +45 -0
- package/src/runtime/dom/props.ts +212 -0
- package/src/runtime/dom/range.ts +132 -0
- package/src/runtime/dom/reset.ts +39 -0
- package/src/runtime/dom/select.ts +184 -0
- package/src/runtime/dom/snippet.ts +54 -0
- package/src/runtime/dom/styles.ts +26 -0
- package/src/runtime/dom/swap.ts +117 -0
- package/src/runtime/dom/targets.ts +96 -0
- package/src/runtime/dom/template.ts +319 -0
- package/src/runtime/dom/trusted.ts +81 -0
- package/src/runtime/dom/values.ts +33 -0
- package/src/runtime/reactivity/abort.ts +56 -0
- package/src/runtime/reactivity/async.ts +272 -0
- package/src/runtime/reactivity/batch.ts +382 -0
- package/src/runtime/reactivity/carried.ts +64 -0
- package/src/runtime/reactivity/collector.ts +20 -0
- package/src/runtime/reactivity/drafts.ts +126 -0
- package/src/runtime/reactivity/eager.ts +45 -0
- package/src/runtime/reactivity/edges.ts +210 -0
- package/src/runtime/reactivity/effects.ts +669 -0
- package/src/runtime/reactivity/errors.ts +73 -0
- package/src/runtime/reactivity/external.ts +56 -0
- package/src/runtime/reactivity/fork.ts +60 -0
- package/src/runtime/reactivity/front.ts +20 -0
- package/src/runtime/reactivity/graph.ts +129 -0
- package/src/runtime/reactivity/handlers.ts +55 -0
- package/src/runtime/reactivity/held.ts +337 -0
- package/src/runtime/reactivity/history.ts +108 -0
- package/src/runtime/reactivity/latest.ts +41 -0
- package/src/runtime/reactivity/leaving.ts +303 -0
- package/src/runtime/reactivity/loss.ts +71 -0
- package/src/runtime/reactivity/outgoing.ts +41 -0
- package/src/runtime/reactivity/owners.ts +242 -0
- package/src/runtime/reactivity/past.ts +57 -0
- package/src/runtime/reactivity/provenance.ts +189 -0
- package/src/runtime/reactivity/proxy.ts +212 -0
- package/src/runtime/reactivity/public.ts +51 -0
- package/src/runtime/reactivity/reads.ts +376 -0
- package/src/runtime/reactivity/scheduler.ts +400 -0
- package/src/runtime/reactivity/settle.ts +73 -0
- package/src/runtime/reactivity/sources.ts +150 -0
- package/src/runtime/reactivity/tallies.ts +34 -0
- package/src/runtime/reactivity/tasks.ts +33 -0
- package/src/runtime/reactivity/trace.ts +113 -0
- package/src/runtime/reactivity/tracking.ts +569 -0
- package/src/runtime/reactivity/units.ts +103 -0
- package/src/runtime/reactivity/views.ts +114 -0
- package/src/runtime/server/attributes.ts +80 -0
- package/src/runtime/server/cells.ts +135 -0
- package/src/runtime/server/context.ts +319 -0
- package/src/runtime/server/derived.ts +37 -0
- package/src/runtime/server/external.ts +59 -0
- package/src/runtime/server/hydration.ts +238 -0
- package/src/runtime/server/placement.ts +47 -0
- package/src/runtime/server/render.ts +612 -0
- package/src/runtime/server/snippet.ts +21 -0
- package/src/runtime/transitions/animate.ts +161 -0
- package/src/runtime/transitions/easing.ts +153 -0
- package/src/runtime/transitions/flip.ts +66 -0
- package/src/runtime/transitions/frame.ts +273 -0
- package/src/runtime/transitions/layout.ts +176 -0
- package/src/runtime/transitions/manager.ts +343 -0
- package/src/runtime/transitions/placement.ts +161 -0
- package/src/runtime/transitions/presets.ts +369 -0
- package/src/shared/abort.ts +8 -0
- package/src/shared/assignment.ts +27 -0
- package/src/shared/attributes.ts +123 -0
- package/src/shared/clone.ts +82 -0
- package/src/shared/context.ts +35 -0
- package/src/shared/diagnostics.ts +83 -0
- package/src/shared/escape.ts +20 -0
- package/src/shared/external.ts +113 -0
- package/src/shared/format.ts +17 -0
- package/src/shared/hash.ts +8 -0
- package/src/shared/html.ts +298 -0
- package/src/shared/markers.ts +25 -0
- package/src/shared/nesting.ts +156 -0
- package/src/shared/slots.ts +16 -0
- package/src/shared/snippet.ts +29 -0
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
export const errors: Readonly<Record<string, readonly string[]>> = {
|
|
2
|
+
options_invalid_value: ['Invalid compiler option: %details%'],
|
|
3
|
+
options_removed: ['Invalid compiler option: %details%'],
|
|
4
|
+
options_unrecognised: ['Unrecognised compiler option %keypath%'],
|
|
5
|
+
bindable_invalid_location: ['`$bindable()` can only be used inside a `$props()` declaration'],
|
|
6
|
+
constant_assignment: ['Cannot assign to %thing%'],
|
|
7
|
+
constant_binding: ['Cannot bind to %thing%'],
|
|
8
|
+
declaration_duplicate: ['`%name%` has already been declared'],
|
|
9
|
+
declaration_duplicate_module_import: [
|
|
10
|
+
'Cannot declare a variable with the same name as an import from `<script module>`'
|
|
11
|
+
],
|
|
12
|
+
derived_invalid_export: [
|
|
13
|
+
'Cannot export derived state from a module. To expose the current derived value, export a function returning its value'
|
|
14
|
+
],
|
|
15
|
+
dollar_binding_invalid: ['The $ name is reserved, and cannot be used for variables and imports'],
|
|
16
|
+
dollar_prefix_invalid: ['The $ prefix is reserved, and cannot be used for variables and imports'],
|
|
17
|
+
duplicate_class_field: ['`%name%` has already been declared'],
|
|
18
|
+
each_item_invalid_assignment: [
|
|
19
|
+
'Cannot reassign or bind to each block argument in runes mode. Use the array and index variables instead (e.g. `array[i] = value` instead of `entry = value`, or `bind:value={array[i]}` instead of `bind:value={entry}`)'
|
|
20
|
+
],
|
|
21
|
+
effect_invalid_placement: ['`$effect()` can only be used as an expression statement'],
|
|
22
|
+
experimental_async: [
|
|
23
|
+
'Cannot use `await` in deriveds and template expressions, or at the top level of a component, unless the `experimental.async` compiler option is `true`'
|
|
24
|
+
],
|
|
25
|
+
export_undefined: ['`%name%` is not defined'],
|
|
26
|
+
global_reference_invalid: [
|
|
27
|
+
'`%name%` is an illegal variable name. To reference a global variable called `%name%`, use `globalThis.%name%`'
|
|
28
|
+
],
|
|
29
|
+
host_invalid_placement: ['`$host()` can only be used inside custom element component instances'],
|
|
30
|
+
inspect_trace_generator: ['`$inspect.trace(...)` cannot be used inside a generator function'],
|
|
31
|
+
inspect_trace_invalid_placement: [
|
|
32
|
+
'`$inspect.trace(...)` must be the first statement of a function body'
|
|
33
|
+
],
|
|
34
|
+
invalid_arguments_usage: [
|
|
35
|
+
'The arguments keyword cannot be used within the template or at the top level of a component'
|
|
36
|
+
],
|
|
37
|
+
legacy_await_invalid: [
|
|
38
|
+
'Cannot use `await` in deriveds and template expressions, or at the top level of a component, unless in runes mode'
|
|
39
|
+
],
|
|
40
|
+
legacy_export_invalid: ['Cannot use `export let` in runes mode — use `$props()` instead'],
|
|
41
|
+
legacy_props_invalid: ['Cannot use `$$props` in runes mode'],
|
|
42
|
+
legacy_reactive_statement_invalid: [
|
|
43
|
+
'`$:` is not allowed in runes mode, use `$derived` or `$effect` instead'
|
|
44
|
+
],
|
|
45
|
+
legacy_rest_props_invalid: ['Cannot use `$$restProps` in runes mode'],
|
|
46
|
+
module_illegal_default_export: ['A component cannot have a default export'],
|
|
47
|
+
props_duplicate: ['Cannot use `%rune%()` more than once'],
|
|
48
|
+
props_id_invalid_placement: [
|
|
49
|
+
'`$props.id()` can only be used at the top level of components as a variable declaration initializer'
|
|
50
|
+
],
|
|
51
|
+
props_illegal_name: [
|
|
52
|
+
'Declaring or accessing a prop starting with `$$` is illegal (they are reserved for internal use)'
|
|
53
|
+
],
|
|
54
|
+
props_invalid_identifier: ['`$props()` can only be used with an object destructuring pattern'],
|
|
55
|
+
props_invalid_pattern: [
|
|
56
|
+
'`$props()` assignment must not contain nested properties or computed keys'
|
|
57
|
+
],
|
|
58
|
+
props_invalid_placement: [
|
|
59
|
+
'`$props()` can only be used at the top level of components as a variable declaration initializer'
|
|
60
|
+
],
|
|
61
|
+
reactive_declaration_cycle: ['Cyclical dependency detected: %cycle%'],
|
|
62
|
+
rune_invalid_arguments: ['`%rune%` cannot be called with arguments'],
|
|
63
|
+
rune_invalid_arguments_length: ['`%rune%` must be called with %args%'],
|
|
64
|
+
rune_invalid_computed_property: ['Cannot access a computed property of a rune'],
|
|
65
|
+
rune_invalid_name: ['`%name%` is not a valid rune'],
|
|
66
|
+
rune_invalid_spread: ['`%rune%` cannot be called with a spread argument'],
|
|
67
|
+
rune_invalid_usage: ['Cannot use `%rune%` rune in non-runes mode'],
|
|
68
|
+
rune_missing_parentheses: ['Cannot use rune without parentheses'],
|
|
69
|
+
rune_removed: ['The `%name%` rune has been removed'],
|
|
70
|
+
rune_renamed: ['`%name%` is now `%replacement%`'],
|
|
71
|
+
runes_mode_invalid_import: ['%name% cannot be used in runes mode'],
|
|
72
|
+
snippet_invalid_export: [
|
|
73
|
+
'An exported snippet can only reference things declared in a `<script module>`, or other exportable snippets'
|
|
74
|
+
],
|
|
75
|
+
snippet_parameter_assignment: ['Cannot reassign or bind to snippet parameter'],
|
|
76
|
+
state_field_duplicate: ['`%name%` has already been declared on this class'],
|
|
77
|
+
state_field_invalid_assignment: ['Cannot assign to a state field before its declaration'],
|
|
78
|
+
state_invalid_export: [
|
|
79
|
+
"Cannot export state from a module if it is reassigned. Either export a function returning the state value or only mutate the state value's properties"
|
|
80
|
+
],
|
|
81
|
+
state_invalid_placement: [
|
|
82
|
+
'`%rune%(...)` can only be used as a variable declaration initializer, a class field declaration, or the first assignment to a class field at the top level of the constructor.'
|
|
83
|
+
],
|
|
84
|
+
store_invalid_scoped_subscription: [
|
|
85
|
+
'Cannot subscribe to stores that are not declared at the top level of the component'
|
|
86
|
+
],
|
|
87
|
+
store_invalid_subscription: ['Cannot reference store value inside `<script module>`'],
|
|
88
|
+
store_invalid_subscription_module: ['Cannot reference store value outside a component'],
|
|
89
|
+
css_empty_declaration: ['Declaration cannot be empty'],
|
|
90
|
+
css_expected_identifier: ['Expected a valid CSS identifier'],
|
|
91
|
+
css_global_block_invalid_combinator: ['A `:global` selector cannot follow a `%name%` combinator'],
|
|
92
|
+
css_global_block_invalid_declaration: [
|
|
93
|
+
'A top-level `:global {...}` block can only contain rules, not declarations'
|
|
94
|
+
],
|
|
95
|
+
css_global_block_invalid_list: [
|
|
96
|
+
"A `:global` selector cannot be part of a selector list with entries that don't contain `:global`"
|
|
97
|
+
],
|
|
98
|
+
css_global_block_invalid_modifier: ['A `:global` selector cannot modify an existing selector'],
|
|
99
|
+
css_global_block_invalid_modifier_start: [
|
|
100
|
+
'A `:global` selector can only be modified if it is a descendant of other selectors'
|
|
101
|
+
],
|
|
102
|
+
css_global_block_invalid_placement: ['A `:global` selector cannot be inside a pseudoclass'],
|
|
103
|
+
css_global_invalid_placement: [
|
|
104
|
+
'`:global(...)` can be at the start or end of a selector sequence, but not in the middle'
|
|
105
|
+
],
|
|
106
|
+
css_global_invalid_selector: ['`:global(...)` must contain exactly one selector'],
|
|
107
|
+
css_global_invalid_selector_list: [
|
|
108
|
+
'`:global(...)` must not contain type or universal selectors when used in a compound selector'
|
|
109
|
+
],
|
|
110
|
+
css_nesting_selector_invalid_placement: [
|
|
111
|
+
'Nesting selectors can only be used inside a rule or as the first selector inside a lone `:global(...)`'
|
|
112
|
+
],
|
|
113
|
+
css_selector_invalid: ['Invalid selector'],
|
|
114
|
+
css_type_selector_invalid_placement: ['`:global(...)` must not be followed by a type selector'],
|
|
115
|
+
animation_duplicate: ["An element can only have one 'animate' directive"],
|
|
116
|
+
animation_invalid_placement: [
|
|
117
|
+
'An element that uses the `animate:` directive must be the only child of a keyed `{#each ...}` block'
|
|
118
|
+
],
|
|
119
|
+
animation_missing_key: [
|
|
120
|
+
'An element that uses the `animate:` directive must be the only child of a keyed `{#each ...}` block. Did you forget to add a key to your each block?'
|
|
121
|
+
],
|
|
122
|
+
attribute_contenteditable_dynamic: [
|
|
123
|
+
"'contenteditable' attribute cannot be dynamic if element uses two-way binding"
|
|
124
|
+
],
|
|
125
|
+
attribute_contenteditable_missing: [
|
|
126
|
+
"'contenteditable' attribute is required for textContent, innerHTML and innerText two-way bindings"
|
|
127
|
+
],
|
|
128
|
+
attribute_duplicate: ['Attributes need to be unique'],
|
|
129
|
+
attribute_empty_shorthand: ['Attribute shorthand cannot be empty'],
|
|
130
|
+
attribute_invalid_event_handler: [
|
|
131
|
+
'Event attribute must be a JavaScript expression, not a string'
|
|
132
|
+
],
|
|
133
|
+
attribute_invalid_multiple: [
|
|
134
|
+
"'multiple' attribute must be static if select uses two-way binding"
|
|
135
|
+
],
|
|
136
|
+
attribute_invalid_name: ["'%name%' is not a valid attribute name"],
|
|
137
|
+
attribute_invalid_sequence_expression: [
|
|
138
|
+
'Comma-separated expressions are not allowed as attribute/directive values in runes mode, unless wrapped in parentheses'
|
|
139
|
+
],
|
|
140
|
+
attribute_invalid_type: [
|
|
141
|
+
"'type' attribute must be a static text value if input uses two-way binding"
|
|
142
|
+
],
|
|
143
|
+
attribute_unquoted_sequence: [
|
|
144
|
+
'Attribute values containing `{...}` must be enclosed in quote marks, unless the value only contains the expression'
|
|
145
|
+
],
|
|
146
|
+
bind_group_invalid_expression: [
|
|
147
|
+
'`bind:group` can only bind to an Identifier or MemberExpression'
|
|
148
|
+
],
|
|
149
|
+
bind_group_invalid_snippet_parameter: ['Cannot `bind:group` to a snippet parameter'],
|
|
150
|
+
bind_invalid_expression: [
|
|
151
|
+
'Can only bind to an Identifier or MemberExpression or a `{get, set}` pair'
|
|
152
|
+
],
|
|
153
|
+
bind_invalid_name: [
|
|
154
|
+
'`bind:%name%` is not a valid binding',
|
|
155
|
+
'`bind:%name%` is not a valid binding. %explanation%'
|
|
156
|
+
],
|
|
157
|
+
bind_invalid_parens: ['`bind:%name%={get, set}` must not have surrounding parentheses'],
|
|
158
|
+
bind_invalid_target: ['`bind:%name%` can only be used with %elements%'],
|
|
159
|
+
bind_invalid_value: ['Can only bind to state or props'],
|
|
160
|
+
block_duplicate_clause: ['%name% cannot appear more than once within a block'],
|
|
161
|
+
block_invalid_continuation_placement: [
|
|
162
|
+
'{:...} block is invalid at this position (did you forget to close the preceding element or block?)'
|
|
163
|
+
],
|
|
164
|
+
block_invalid_elseif: ["'elseif' should be 'else if'"],
|
|
165
|
+
block_invalid_placement: ['{#%name% ...} block cannot be %location%'],
|
|
166
|
+
block_unclosed: ['Block was left open'],
|
|
167
|
+
block_unexpected_character: [
|
|
168
|
+
'Expected a `%character%` character immediately following the opening bracket'
|
|
169
|
+
],
|
|
170
|
+
block_unexpected_close: ['Unexpected block closing tag'],
|
|
171
|
+
component_invalid_directive: ['This type of directive is not valid on components'],
|
|
172
|
+
const_tag_cycle: ['Cyclical dependency detected: %cycle%'],
|
|
173
|
+
const_tag_invalid_expression: ['{@const ...} must consist of a single variable declaration'],
|
|
174
|
+
const_tag_invalid_reference: [
|
|
175
|
+
'The `{@const %name% = ...}` declaration is not available in this snippet'
|
|
176
|
+
],
|
|
177
|
+
debug_tag_invalid_arguments: [
|
|
178
|
+
'{@debug ...} arguments must be identifiers, not arbitrary expressions'
|
|
179
|
+
],
|
|
180
|
+
declaration_tag_invalid_type: ['Declaration tags must be `let` or `const` declarations'],
|
|
181
|
+
declaration_tag_no_legacy_mode: ['Declaration tags cannot be used in legacy mode'],
|
|
182
|
+
directive_invalid_value: [
|
|
183
|
+
'Directive value must be a JavaScript expression enclosed in curly braces'
|
|
184
|
+
],
|
|
185
|
+
directive_missing_name: ['`%type%` name cannot be empty'],
|
|
186
|
+
each_key_without_as: ['An `{#each ...}` block without an `as` clause cannot have a key'],
|
|
187
|
+
element_invalid_closing_tag: ['`</%name%>` attempted to close an element that was not open'],
|
|
188
|
+
element_invalid_closing_tag_autoclosed: [
|
|
189
|
+
'`</%name%>` attempted to close element that was already automatically closed by `<%reason%>` (cannot nest `<%reason%>` inside `<%name%>`)'
|
|
190
|
+
],
|
|
191
|
+
element_unclosed: ['`<%name%>` was left open'],
|
|
192
|
+
event_handler_invalid_component_modifier: [
|
|
193
|
+
"Event modifiers other than 'once' can only be used on DOM elements"
|
|
194
|
+
],
|
|
195
|
+
event_handler_invalid_modifier: ['Valid event modifiers are %list%'],
|
|
196
|
+
event_handler_invalid_modifier_combination: [
|
|
197
|
+
"The '%modifier1%' and '%modifier2%' modifiers cannot be used together"
|
|
198
|
+
],
|
|
199
|
+
expected_attribute_value: ['Expected attribute value'],
|
|
200
|
+
expected_block_type: ["Expected 'if', 'each', 'await', 'key' or 'snippet'"],
|
|
201
|
+
expected_identifier: ['Expected an identifier'],
|
|
202
|
+
expected_pattern: ['Expected identifier or destructure pattern'],
|
|
203
|
+
expected_tag: ["Expected 'html', 'render', 'attach', 'const', or 'debug'"],
|
|
204
|
+
expected_token: ['Expected token %token%'],
|
|
205
|
+
expected_whitespace: ['Expected whitespace'],
|
|
206
|
+
illegal_await_expression: [
|
|
207
|
+
'`use:`, `transition:` and `animate:` directives, attachments and bindings do not support await expressions'
|
|
208
|
+
],
|
|
209
|
+
illegal_element_attribute: [
|
|
210
|
+
'`<%name%>` does not support non-event attributes or spread attributes'
|
|
211
|
+
],
|
|
212
|
+
js_parse_error: ['%message%'],
|
|
213
|
+
let_directive_invalid_placement: ['`let:` directive at invalid position'],
|
|
214
|
+
let_directive_snippet_conflict: [
|
|
215
|
+
'Cannot use `let:` directives on a component that has a `children` snippet. Use snippet parameters instead (e.g. `{#snippet children({ %name% })}`)'
|
|
216
|
+
],
|
|
217
|
+
mixed_event_handler_syntaxes: [
|
|
218
|
+
'Mixing old (on:%name%) and new syntaxes for event handling is not allowed. Use only the on%name% syntax'
|
|
219
|
+
],
|
|
220
|
+
node_invalid_placement: [
|
|
221
|
+
"%message%. The browser will 'repair' the HTML (by moving, removing, or inserting elements) which breaks the structure the compiled component expects."
|
|
222
|
+
],
|
|
223
|
+
render_tag_invalid_call_expression: [
|
|
224
|
+
'Calling a snippet function using apply, bind or call is not allowed'
|
|
225
|
+
],
|
|
226
|
+
render_tag_invalid_expression: ['`{@render ...}` tags can only contain call expressions'],
|
|
227
|
+
render_tag_invalid_spread_argument: ['cannot use spread arguments in `{@render ...}` tags'],
|
|
228
|
+
script_duplicate: [
|
|
229
|
+
'A component can have a single top-level `<script>` element and/or a single top-level `<script module>` element'
|
|
230
|
+
],
|
|
231
|
+
script_invalid_attribute_value: [
|
|
232
|
+
'If the `%name%` attribute is supplied, it must be a boolean attribute'
|
|
233
|
+
],
|
|
234
|
+
script_invalid_context: ['If the context attribute is supplied, its value must be "module"'],
|
|
235
|
+
script_reserved_attribute: ['The `%name%` attribute is reserved and cannot be used'],
|
|
236
|
+
slot_attribute_duplicate: ["Duplicate slot name '%name%' in <%component%>"],
|
|
237
|
+
slot_attribute_invalid: ['slot attribute must be a static value'],
|
|
238
|
+
slot_attribute_invalid_placement: [
|
|
239
|
+
"Element with a slot='...' attribute must be a child of a component or a descendant of a custom element"
|
|
240
|
+
],
|
|
241
|
+
slot_default_duplicate: ['Found default slot content alongside an explicit slot="default"'],
|
|
242
|
+
slot_element_invalid_attribute: [
|
|
243
|
+
'`<slot>` can only receive attributes and (optionally) let directives'
|
|
244
|
+
],
|
|
245
|
+
slot_element_invalid_name: ['slot attribute must be a static value'],
|
|
246
|
+
slot_element_invalid_name_default: [
|
|
247
|
+
'`default` is a reserved word — it cannot be used as a slot name'
|
|
248
|
+
],
|
|
249
|
+
slot_snippet_conflict: [
|
|
250
|
+
'Cannot use `<slot>` syntax and `{@render ...}` tags in the same component. Migrate towards `{@render ...}` tags completely'
|
|
251
|
+
],
|
|
252
|
+
snippet_conflict: [
|
|
253
|
+
'Cannot use explicit children snippet at the same time as implicit children content. Remove either the non-whitespace content or the children snippet block'
|
|
254
|
+
],
|
|
255
|
+
snippet_invalid_rest_parameter: ['Snippets do not support rest parameters; use an array instead'],
|
|
256
|
+
snippet_shadowing_prop: ['This snippet is shadowing the prop `%prop%` with the same name'],
|
|
257
|
+
style_directive_invalid_modifier: ['`style:` directive can only use the `important` modifier'],
|
|
258
|
+
style_duplicate: ['A component can have a single top-level `<style>` element'],
|
|
259
|
+
tag_invalid_name: [
|
|
260
|
+
'Expected a valid element or component name. Components must have a valid variable name or dot notation expression'
|
|
261
|
+
],
|
|
262
|
+
tag_invalid_placement: ['{@%name% ...} tag cannot be %location%'],
|
|
263
|
+
textarea_invalid_content: [
|
|
264
|
+
'A `<textarea>` can have either a value attribute or (equivalently) child content, but not both'
|
|
265
|
+
],
|
|
266
|
+
title_illegal_attribute: ['`<title>` cannot have attributes nor directives'],
|
|
267
|
+
title_invalid_content: ['`<title>` can only contain text and {tags}'],
|
|
268
|
+
transition_conflict: ['Cannot use `%type%:` alongside existing `%existing%:` directive'],
|
|
269
|
+
transition_duplicate: ['Cannot use multiple `%type%:` directives on a single element'],
|
|
270
|
+
unexpected_eof: ['Unexpected end of input'],
|
|
271
|
+
unexpected_reserved_word: ["'%word%' is a reserved word in JavaScript and cannot be used here"],
|
|
272
|
+
unterminated_string_constant: ['Unterminated string constant'],
|
|
273
|
+
void_element_invalid_content: ['Void elements cannot have children or closing tags']
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
export const warnings: Readonly<Record<string, readonly string[]>> = {
|
|
277
|
+
a11y_accesskey: ['Avoid using accesskey'],
|
|
278
|
+
a11y_aria_activedescendant_has_tabindex: [
|
|
279
|
+
'An element with an aria-activedescendant attribute should have a tabindex value'
|
|
280
|
+
],
|
|
281
|
+
a11y_aria_attributes: ['`<%name%>` should not have aria-* attributes'],
|
|
282
|
+
a11y_autocomplete_valid: [
|
|
283
|
+
"'%value%' is an invalid value for 'autocomplete' on `<input type=\"%type%\">`"
|
|
284
|
+
],
|
|
285
|
+
a11y_autofocus: ['Avoid using autofocus'],
|
|
286
|
+
a11y_click_events_have_key_events: [
|
|
287
|
+
'Visible, non-interactive element `<%element%>` with a click event must be accompanied by a keyboard event handler. Consider whether an interactive element such as `<button type="button">` or `<a>` might be more appropriate'
|
|
288
|
+
],
|
|
289
|
+
a11y_consider_explicit_label: [
|
|
290
|
+
'Buttons and links should either contain text or have an `aria-label`, `aria-labelledby` or `title` attribute'
|
|
291
|
+
],
|
|
292
|
+
a11y_distracting_elements: ['Avoid `<%name%>` elements'],
|
|
293
|
+
a11y_figcaption_index: ['`<figcaption>` must be first or last child of `<figure>`'],
|
|
294
|
+
a11y_figcaption_parent: ['`<figcaption>` must be an immediate child of `<figure>`'],
|
|
295
|
+
a11y_hidden: ['`<%name%>` element should not be hidden'],
|
|
296
|
+
a11y_img_redundant_alt: ['Screenreaders already announce `<img>` elements as an image'],
|
|
297
|
+
a11y_incorrect_aria_attribute_type: ["The value of '%attribute%' must be a %type%"],
|
|
298
|
+
a11y_incorrect_aria_attribute_type_boolean: [
|
|
299
|
+
"The value of '%attribute%' must be either 'true' or 'false'. It cannot be empty"
|
|
300
|
+
],
|
|
301
|
+
a11y_incorrect_aria_attribute_type_id: [
|
|
302
|
+
"The value of '%attribute%' must be a string that represents a DOM element ID"
|
|
303
|
+
],
|
|
304
|
+
a11y_incorrect_aria_attribute_type_idlist: [
|
|
305
|
+
"The value of '%attribute%' must be a space-separated list of strings that represent DOM element IDs"
|
|
306
|
+
],
|
|
307
|
+
a11y_incorrect_aria_attribute_type_integer: ["The value of '%attribute%' must be an integer"],
|
|
308
|
+
a11y_incorrect_aria_attribute_type_token: [
|
|
309
|
+
"The value of '%attribute%' must be exactly one of %values%"
|
|
310
|
+
],
|
|
311
|
+
a11y_incorrect_aria_attribute_type_tokenlist: [
|
|
312
|
+
"The value of '%attribute%' must be a space-separated list of one or more of %values%"
|
|
313
|
+
],
|
|
314
|
+
a11y_incorrect_aria_attribute_type_tristate: [
|
|
315
|
+
"The value of '%attribute%' must be exactly one of true, false, or mixed"
|
|
316
|
+
],
|
|
317
|
+
a11y_interactive_supports_focus: [
|
|
318
|
+
"Elements with the '%role%' interactive role must have a tabindex value"
|
|
319
|
+
],
|
|
320
|
+
a11y_invalid_attribute: ["'%href_value%' is not a valid %href_attribute% attribute"],
|
|
321
|
+
a11y_label_has_associated_control: ['A form label must be associated with a control'],
|
|
322
|
+
a11y_media_has_caption: ['`<video>` elements must have a `<track kind="captions">`'],
|
|
323
|
+
a11y_misplaced_role: ['`<%name%>` should not have role attribute'],
|
|
324
|
+
a11y_misplaced_scope: ['The scope attribute should only be used with `<th>` elements'],
|
|
325
|
+
a11y_missing_attribute: ['`<%name%>` element should have %article% %sequence% attribute'],
|
|
326
|
+
a11y_missing_content: ['`<%name%>` element should contain text'],
|
|
327
|
+
a11y_mouse_events_have_key_events: [
|
|
328
|
+
"'%event%' event must be accompanied by '%accompanied_by%' event"
|
|
329
|
+
],
|
|
330
|
+
a11y_no_abstract_role: ["Abstract role '%role%' is forbidden"],
|
|
331
|
+
a11y_no_interactive_element_to_noninteractive_role: ["`<%element%>` cannot have role '%role%'"],
|
|
332
|
+
a11y_no_noninteractive_element_interactions: [
|
|
333
|
+
'Non-interactive element `<%element%>` should not be assigned mouse or keyboard event listeners'
|
|
334
|
+
],
|
|
335
|
+
a11y_no_noninteractive_element_to_interactive_role: [
|
|
336
|
+
"Non-interactive element `<%element%>` cannot have interactive role '%role%'"
|
|
337
|
+
],
|
|
338
|
+
a11y_no_noninteractive_tabindex: [
|
|
339
|
+
'noninteractive element cannot have nonnegative tabIndex value'
|
|
340
|
+
],
|
|
341
|
+
a11y_no_redundant_roles: ["Redundant role '%role%'"],
|
|
342
|
+
a11y_no_static_element_interactions: [
|
|
343
|
+
'`<%element%>` with a %handler% handler must have an ARIA role'
|
|
344
|
+
],
|
|
345
|
+
a11y_positive_tabindex: ['Avoid tabindex values above zero'],
|
|
346
|
+
a11y_role_has_required_aria_props: [
|
|
347
|
+
'Elements with the ARIA role "%role%" must have the following attributes defined: %props%'
|
|
348
|
+
],
|
|
349
|
+
a11y_role_supports_aria_props: [
|
|
350
|
+
"The attribute '%attribute%' is not supported by the role '%role%'"
|
|
351
|
+
],
|
|
352
|
+
a11y_role_supports_aria_props_implicit: [
|
|
353
|
+
"The attribute '%attribute%' is not supported by the role '%role%'. This role is implicit on the element `<%name%>`"
|
|
354
|
+
],
|
|
355
|
+
a11y_unknown_aria_attribute: [
|
|
356
|
+
"Unknown aria attribute 'aria-%attribute%'",
|
|
357
|
+
"Unknown aria attribute 'aria-%attribute%'. Did you mean '%suggestion%'?"
|
|
358
|
+
],
|
|
359
|
+
a11y_unknown_role: [
|
|
360
|
+
"Unknown role '%role%'",
|
|
361
|
+
"Unknown role '%role%'. Did you mean '%suggestion%'?"
|
|
362
|
+
],
|
|
363
|
+
bidirectional_control_characters: [
|
|
364
|
+
'A bidirectional control character was detected in your code. These characters can be used to alter the visual direction of your code and could have unintended consequences'
|
|
365
|
+
],
|
|
366
|
+
legacy_code: ['`%code%` is no longer valid — please use `%suggestion%` instead'],
|
|
367
|
+
unknown_code: [
|
|
368
|
+
'`%code%` is not a recognised code',
|
|
369
|
+
'`%code%` is not a recognised code (did you mean `%suggestion%`?)'
|
|
370
|
+
],
|
|
371
|
+
options_deprecated_accessors: [
|
|
372
|
+
'The `accessors` option has been deprecated. It will have no effect in runes mode'
|
|
373
|
+
],
|
|
374
|
+
options_deprecated_immutable: [
|
|
375
|
+
'The `immutable` option has been deprecated. It will have no effect in runes mode'
|
|
376
|
+
],
|
|
377
|
+
options_missing_custom_element: [
|
|
378
|
+
'The `customElement` option is used when generating a custom element. Did you forget the `customElement: true` compile option?'
|
|
379
|
+
],
|
|
380
|
+
options_removed_enable_sourcemap: [
|
|
381
|
+
'The `enableSourcemap` option has been removed. Source maps are always generated now, and tooling can choose to ignore them'
|
|
382
|
+
],
|
|
383
|
+
options_removed_loop_guard_timeout: ['The `loopGuardTimeout` option has been removed'],
|
|
384
|
+
options_renamed_ssr_dom: [
|
|
385
|
+
'`generate: "dom"` and `generate: "ssr"` options have been renamed to "client" and "server" respectively'
|
|
386
|
+
],
|
|
387
|
+
custom_element_props_identifier: [
|
|
388
|
+
"Using a rest element or a non-destructured declaration with `$props()` means that the compiler can't infer what properties to expose when creating a custom element. Consider destructuring all the props or explicitly specifying the `customElement.props` option."
|
|
389
|
+
],
|
|
390
|
+
export_let_unused: [
|
|
391
|
+
"Component has unused export property '%name%'. If it is for external reference only, please consider using `export const %name%`"
|
|
392
|
+
],
|
|
393
|
+
legacy_component_creation: [
|
|
394
|
+
'Components are no longer classes. Instantiate them using `mount` or `hydrate` instead.'
|
|
395
|
+
],
|
|
396
|
+
non_reactive_update: [
|
|
397
|
+
'`%name%` is updated, but is not declared with `$state(...)`. Changing its value will not correctly trigger updates'
|
|
398
|
+
],
|
|
399
|
+
perf_avoid_inline_class: [
|
|
400
|
+
"Avoid 'new class' — instead, declare the class at the top level scope"
|
|
401
|
+
],
|
|
402
|
+
perf_avoid_nested_class: ['Avoid declaring classes below the top level scope'],
|
|
403
|
+
reactive_declaration_invalid_placement: [
|
|
404
|
+
'Reactive declarations only exist at the top level of the instance script'
|
|
405
|
+
],
|
|
406
|
+
reactive_declaration_module_script_dependency: [
|
|
407
|
+
'Reassignments of module-level declarations will not cause reactive statements to update'
|
|
408
|
+
],
|
|
409
|
+
state_referenced_locally: [
|
|
410
|
+
'This reference only captures the initial value of `%name%`. Did you mean to reference it inside a %type% instead?'
|
|
411
|
+
],
|
|
412
|
+
store_rune_conflict: [
|
|
413
|
+
"It looks like you're using the `$%name%` rune, but there is a local binding called `%name%`. Referencing a local variable with a `$` prefix will create a store subscription. Please rename `%name%` to avoid the ambiguity"
|
|
414
|
+
],
|
|
415
|
+
css_unused_selector: ['Unused CSS selector "%name%"'],
|
|
416
|
+
attribute_avoid_is: ['The "is" attribute is not supported cross-browser and should be avoided'],
|
|
417
|
+
attribute_global_event_reference: [
|
|
418
|
+
'You are referencing `globalThis.%name%`. Did you forget to declare a variable with that name?'
|
|
419
|
+
],
|
|
420
|
+
attribute_invalid_property_name: [
|
|
421
|
+
"'%wrong%' is not a valid HTML attribute. Did you mean '%right%'?"
|
|
422
|
+
],
|
|
423
|
+
bind_invalid_each_rest: [
|
|
424
|
+
"The rest operator (...) will create a new object and binding '%name%' with the original object will not work"
|
|
425
|
+
],
|
|
426
|
+
block_empty: ['Empty block'],
|
|
427
|
+
component_name_lowercase: [
|
|
428
|
+
'`<%name%>` will be treated as an HTML element unless it begins with a capital letter'
|
|
429
|
+
],
|
|
430
|
+
element_implicitly_closed: [
|
|
431
|
+
'This element is implicitly closed by the following `%tag%`, which can cause an unexpected DOM structure. Add an explicit `%closing%` to avoid surprises.'
|
|
432
|
+
],
|
|
433
|
+
element_invalid_self_closing_tag: [
|
|
434
|
+
'Self-closing HTML tags for non-void elements are ambiguous — use `<%name% ...></%name%>` rather than `<%name% ... />`'
|
|
435
|
+
],
|
|
436
|
+
event_directive_deprecated: [
|
|
437
|
+
'Using `on:%name%` to listen to the %name% event is deprecated. Use the event attribute `on%name%` instead'
|
|
438
|
+
],
|
|
439
|
+
node_invalid_placement_ssr: [
|
|
440
|
+
'%message%. When rendering this component on the server, the resulting HTML will be modified by the browser (by moving, removing, or inserting elements), likely resulting in a `hydration_mismatch` warning'
|
|
441
|
+
],
|
|
442
|
+
script_context_deprecated: [
|
|
443
|
+
'`context="module"` is deprecated, use the `module` attribute instead'
|
|
444
|
+
],
|
|
445
|
+
script_unknown_attribute: [
|
|
446
|
+
'Unrecognised attribute — should be one of `generics`, `lang` or `module`. If this exists for a preprocessor, ensure that the preprocessor removes it'
|
|
447
|
+
],
|
|
448
|
+
slot_element_deprecated: [
|
|
449
|
+
'Using `<slot>` to render parent content is deprecated. Use `{@render ...}` tags instead'
|
|
450
|
+
]
|
|
451
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { CompileError, type Diagnostic, type Ignores } from '../../ir/port.ts';
|
|
2
|
+
import { errors, warnings } from './messages.ts';
|
|
3
|
+
|
|
4
|
+
export type At = number | { readonly start?: number | null; readonly end?: number | null } | object;
|
|
5
|
+
|
|
6
|
+
export type Args = Readonly<Record<string, string | null | undefined>>;
|
|
7
|
+
|
|
8
|
+
export type Catalog = Readonly<Record<string, readonly string[]>>;
|
|
9
|
+
|
|
10
|
+
export interface Wording {
|
|
11
|
+
readonly errors?: Catalog;
|
|
12
|
+
readonly warnings?: Catalog;
|
|
13
|
+
readonly name?: (host: string) => string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
let spoken: Wording | undefined;
|
|
17
|
+
|
|
18
|
+
export function speaking<T>(wording: Wording | undefined, fn: () => T): T {
|
|
19
|
+
const previous = spoken;
|
|
20
|
+
spoken = wording;
|
|
21
|
+
try {
|
|
22
|
+
return fn();
|
|
23
|
+
} finally {
|
|
24
|
+
spoken = previous;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export function nameOf(host: string): string {
|
|
29
|
+
return spoken?.name?.(host) ?? (host === 'element' ? 'dynamic element' : `${host} target`);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const placeholder = /%(\w+)%/g;
|
|
33
|
+
|
|
34
|
+
function format(templates: readonly string[] | undefined, code: string, args: Args): string {
|
|
35
|
+
if (templates === undefined) throw new Error(`Unknown diagnostic code ${code}`);
|
|
36
|
+
let chosen = templates[0] ?? '';
|
|
37
|
+
for (const template of templates) {
|
|
38
|
+
const names = [...template.matchAll(placeholder)].map((match) => match[1] ?? '');
|
|
39
|
+
if (names.every((name) => Boolean(args[name]))) chosen = template;
|
|
40
|
+
}
|
|
41
|
+
return chosen.replace(placeholder, (_, name: string) => args[name] ?? '');
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function span(at: At): { start: number; end: number } {
|
|
45
|
+
if (typeof at === 'number') return { start: at, end: at };
|
|
46
|
+
const located = at as { readonly start?: number | null; readonly end?: number | null };
|
|
47
|
+
const start = located.start ?? 0;
|
|
48
|
+
return { start, end: located.end ?? start };
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export const warningCodes: readonly string[] = Object.keys(warnings);
|
|
52
|
+
|
|
53
|
+
export function errorMessage(code: string, args: Args = {}, wording = spoken): string {
|
|
54
|
+
return format(wording?.errors?.[code] ?? errors[code], code, args);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function warningMessage(code: string, args: Args = {}, wording = spoken): string {
|
|
58
|
+
return format(wording?.warnings?.[code] ?? warnings[code], code, args);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function fail(code: string, at: At, args: Args = {}): never {
|
|
62
|
+
throw new CompileError({ code, message: errorMessage(code, args), ...span(at) });
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export class Report {
|
|
66
|
+
readonly warnings: Diagnostic[] = [];
|
|
67
|
+
readonly ignores: Ignores;
|
|
68
|
+
readonly #stack: ReadonlySet<string>[] = [];
|
|
69
|
+
readonly #snapshots = new Map<object, ReadonlySet<string> | undefined>();
|
|
70
|
+
|
|
71
|
+
constructor(ignores: Ignores) {
|
|
72
|
+
this.ignores = ignores;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
enter(node: object): boolean {
|
|
76
|
+
const codes = this.ignores.get(node);
|
|
77
|
+
this.#snapshots.set(node, this.#stack.at(-1));
|
|
78
|
+
if (codes === undefined || codes.size === 0) return false;
|
|
79
|
+
const inherited = this.#stack.at(-1);
|
|
80
|
+
const merged = new Set([...(inherited ?? []), ...codes]);
|
|
81
|
+
this.#stack.push(merged);
|
|
82
|
+
this.#snapshots.set(node, merged);
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
leave(entered: boolean): void {
|
|
87
|
+
if (entered) this.#stack.pop();
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
ignored(code: string, at?: object): boolean {
|
|
91
|
+
const codes =
|
|
92
|
+
at !== undefined && this.#snapshots.has(at) ? this.#snapshots.get(at) : this.#stack.at(-1);
|
|
93
|
+
return codes?.has(code) ?? false;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
warn(code: string, at: At, args: Args = {}): void {
|
|
97
|
+
if (this.ignored(code, typeof at === 'object' ? at : undefined)) return;
|
|
98
|
+
this.warnings.push({ code, message: warningMessage(code, args), ...span(at) });
|
|
99
|
+
}
|
|
100
|
+
}
|