vigla 0.0.0 → 0.1.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 +215 -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 +54 -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 +234 -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,190 @@
|
|
|
1
|
+
import { failure, isFailure, warn } from '../../shared/diagnostics.ts';
|
|
2
|
+
import { format as nativeFormat, type Format } from '../../shared/format.ts';
|
|
3
|
+
import { OPEN } from '../../shared/markers.ts';
|
|
4
|
+
import { destroy, detach, detached } from '../reactivity/effects.ts';
|
|
5
|
+
import { setFront } from '../reactivity/front.ts';
|
|
6
|
+
import type { Effect } from '../reactivity/graph.ts';
|
|
7
|
+
import { owner } from '../reactivity/tracking.ts';
|
|
8
|
+
import { introducing, pause } from '../transitions/manager.ts';
|
|
9
|
+
import { boundary, transformAt } from './boundary.ts';
|
|
10
|
+
import { delegateRoot } from './events.ts';
|
|
11
|
+
import {
|
|
12
|
+
claim,
|
|
13
|
+
COMMENT,
|
|
14
|
+
cursor,
|
|
15
|
+
hydrating,
|
|
16
|
+
isClose,
|
|
17
|
+
MISMATCH,
|
|
18
|
+
mismatch,
|
|
19
|
+
setHydrating
|
|
20
|
+
} from './hydration.ts';
|
|
21
|
+
import { withContext } from './context.ts';
|
|
22
|
+
import { entry, mountRoot } from './props.ts';
|
|
23
|
+
import { withHydration } from './data.ts';
|
|
24
|
+
import { build, remove, type Built } from './range.ts';
|
|
25
|
+
|
|
26
|
+
export type Props = Record<string, unknown>;
|
|
27
|
+
|
|
28
|
+
export type Exports = Record<string, unknown>;
|
|
29
|
+
|
|
30
|
+
export type Component<P extends Props = Props, E extends Exports = Exports> = (
|
|
31
|
+
anchor: ChildNode,
|
|
32
|
+
props: P
|
|
33
|
+
) => E | void;
|
|
34
|
+
|
|
35
|
+
export interface MountOptions<P extends Props> {
|
|
36
|
+
readonly target: ParentNode;
|
|
37
|
+
readonly format?: Format;
|
|
38
|
+
readonly props?: P;
|
|
39
|
+
readonly anchor?: ChildNode | null;
|
|
40
|
+
readonly intro?: boolean;
|
|
41
|
+
readonly context?: Map<unknown, unknown>;
|
|
42
|
+
readonly transformError?: (error: unknown) => unknown;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface HydrateOptions<P extends Props> extends MountOptions<P> {
|
|
46
|
+
readonly recover?: boolean;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
interface Mounted {
|
|
50
|
+
readonly effect: Effect;
|
|
51
|
+
readonly dispose: () => void;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface UnmountOptions {
|
|
55
|
+
readonly outro?: boolean;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const mounted = new WeakMap<object, Mounted>();
|
|
59
|
+
|
|
60
|
+
function start<P extends Props, E extends Exports>(
|
|
61
|
+
component: Component<P, E>,
|
|
62
|
+
options: MountOptions<P>,
|
|
63
|
+
open: ChildNode | null = null
|
|
64
|
+
): { instance: E; built: Built } {
|
|
65
|
+
let exports: E | void = undefined;
|
|
66
|
+
const props = options.props ?? ({} as P);
|
|
67
|
+
entry(props);
|
|
68
|
+
const parent = owner;
|
|
69
|
+
const create = (fn: () => void): Effect =>
|
|
70
|
+
detached(() => {
|
|
71
|
+
mountRoot(owner as Effect);
|
|
72
|
+
setFront(owner as Effect, options.format ?? nativeFormat);
|
|
73
|
+
fn();
|
|
74
|
+
}, parent);
|
|
75
|
+
const built = introducing(options.intro ?? true, () =>
|
|
76
|
+
build((anchor) => {
|
|
77
|
+
if (owner !== null) transformAt(owner, options.transformError);
|
|
78
|
+
const node = open ?? document.createTextNode('');
|
|
79
|
+
if (open === null) anchor.before(node);
|
|
80
|
+
boundary(
|
|
81
|
+
node,
|
|
82
|
+
{ pending: () => {} },
|
|
83
|
+
(anchor) => {
|
|
84
|
+
exports = withHydration(options.format ?? nativeFormat, options.target, () =>
|
|
85
|
+
withContext(options.context, () => component(anchor, props))
|
|
86
|
+
);
|
|
87
|
+
if (hydrating && !isClose(cursor)) mismatch();
|
|
88
|
+
},
|
|
89
|
+
options.transformError
|
|
90
|
+
);
|
|
91
|
+
}, create)
|
|
92
|
+
);
|
|
93
|
+
return {
|
|
94
|
+
instance: (exports ?? {}) as E,
|
|
95
|
+
built: open === null ? built : { ...built, first: open, last: cursor }
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
function finish(instance: object, built: Built, target: ParentNode): void {
|
|
100
|
+
if (built.effect.destroyed) {
|
|
101
|
+
remove(built);
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
const release = delegateRoot(target);
|
|
105
|
+
let disposed = false;
|
|
106
|
+
const dispose = (): void => {
|
|
107
|
+
if (disposed) return;
|
|
108
|
+
disposed = true;
|
|
109
|
+
mounted.delete(instance);
|
|
110
|
+
release();
|
|
111
|
+
remove(built);
|
|
112
|
+
};
|
|
113
|
+
mounted.set(instance, { effect: built.effect, dispose });
|
|
114
|
+
detach(built.effect, dispose);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function mount<P extends Props, E extends Exports>(
|
|
118
|
+
component: Component<P, E>,
|
|
119
|
+
options: MountOptions<P>
|
|
120
|
+
): E {
|
|
121
|
+
const { instance, built } = start(component, options);
|
|
122
|
+
if (!built.effect.destroyed) {
|
|
123
|
+
options.target.insertBefore(built.fragment as DocumentFragment, options.anchor ?? null);
|
|
124
|
+
built.fragment = null;
|
|
125
|
+
}
|
|
126
|
+
finish(instance, built, options.target);
|
|
127
|
+
return instance;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function opening(target: ParentNode): ChildNode | null {
|
|
131
|
+
let node = target.firstChild;
|
|
132
|
+
while (node !== null && (node.nodeType !== COMMENT || (node as Comment).data !== OPEN)) {
|
|
133
|
+
node = node.nextSibling;
|
|
134
|
+
}
|
|
135
|
+
return node;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function hydrate<P extends Props, E extends Exports>(
|
|
139
|
+
component: Component<P, E>,
|
|
140
|
+
options: HydrateOptions<P>
|
|
141
|
+
): E {
|
|
142
|
+
const target = options.target;
|
|
143
|
+
const previous = hydrating ? cursor : null;
|
|
144
|
+
const was = setHydrating(true);
|
|
145
|
+
let adopted: Built | null = null;
|
|
146
|
+
try {
|
|
147
|
+
const open = opening(target);
|
|
148
|
+
if (open === null) throw MISMATCH;
|
|
149
|
+
claim(open.nextSibling);
|
|
150
|
+
const { instance, built } = start(component, options, open);
|
|
151
|
+
adopted = built;
|
|
152
|
+
if (!isClose(cursor)) mismatch();
|
|
153
|
+
finish(instance, built, target);
|
|
154
|
+
return instance;
|
|
155
|
+
} catch (error) {
|
|
156
|
+
if (adopted !== null) destroy(adopted.effect);
|
|
157
|
+
if (isFailure(error)) throw error;
|
|
158
|
+
if (error !== MISMATCH) console.warn('Failed to hydrate: ', error);
|
|
159
|
+
if (options.recover === false) {
|
|
160
|
+
throw failure('hydration_failed', 'Failed to hydrate the application');
|
|
161
|
+
}
|
|
162
|
+
setHydrating(false);
|
|
163
|
+
(target as Element).textContent = '';
|
|
164
|
+
return mount(component, options);
|
|
165
|
+
} finally {
|
|
166
|
+
setHydrating(was);
|
|
167
|
+
if (previous !== null) claim(previous);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export function unmount(instance: object, options?: UnmountOptions): Promise<void> {
|
|
172
|
+
const found = mounted.get(instance);
|
|
173
|
+
if (found === undefined) {
|
|
174
|
+
warn('lifecycle_double_unmount', 'Tried to unmount a component that was not mounted');
|
|
175
|
+
return Promise.resolve();
|
|
176
|
+
}
|
|
177
|
+
const { effect, dispose } = found;
|
|
178
|
+
if (options?.outro !== true) {
|
|
179
|
+
destroy(effect);
|
|
180
|
+
return Promise.resolve();
|
|
181
|
+
}
|
|
182
|
+
mounted.delete(instance);
|
|
183
|
+
return new Promise((resolve) => {
|
|
184
|
+
detach(effect, () => {
|
|
185
|
+
dispose();
|
|
186
|
+
resolve();
|
|
187
|
+
});
|
|
188
|
+
pause(effect, () => destroy(effect));
|
|
189
|
+
});
|
|
190
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { DEV } from 'esm-env';
|
|
2
|
+
import { warn } from '../../shared/diagnostics.ts';
|
|
3
|
+
import { original } from '../reactivity/proxy.ts';
|
|
4
|
+
import { callerFile, componentFile } from './meta.ts';
|
|
5
|
+
import { boundProp } from './props.ts';
|
|
6
|
+
|
|
7
|
+
export interface Ownership {
|
|
8
|
+
mutation<T>(
|
|
9
|
+
prop: string,
|
|
10
|
+
path: readonly PropertyKey[],
|
|
11
|
+
result: T,
|
|
12
|
+
line: number,
|
|
13
|
+
column: number
|
|
14
|
+
): T;
|
|
15
|
+
binding(key: string, component: object, value: () => unknown): void;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function ownership(props: Record<PropertyKey, unknown>, file: string): Ownership {
|
|
19
|
+
const parent = callerFile();
|
|
20
|
+
return {
|
|
21
|
+
mutation(prop, path, result, line, column) {
|
|
22
|
+
const name = path[0] as string;
|
|
23
|
+
if (!DEV || parent === null || boundProp(props, name)) return result;
|
|
24
|
+
let value: unknown = props;
|
|
25
|
+
for (let index = 0; index < path.length - 1; index++) {
|
|
26
|
+
value = (value as Record<PropertyKey, unknown>)[path[index] as PropertyKey];
|
|
27
|
+
if (original(value) === value) return result;
|
|
28
|
+
}
|
|
29
|
+
warn(
|
|
30
|
+
'ownership_invalid_mutation',
|
|
31
|
+
`Mutating unbound props (\`${name}\`, at ${file}:${line}:${column}) is strongly discouraged. Consider using \`bind:${prop}={...}\` in ${parent} (or using a callback) instead`
|
|
32
|
+
);
|
|
33
|
+
return result;
|
|
34
|
+
},
|
|
35
|
+
binding(key, component, value) {
|
|
36
|
+
if (!DEV || parent === null || boundProp(props, key)) return;
|
|
37
|
+
const current = value();
|
|
38
|
+
if (original(current) === current) return;
|
|
39
|
+
warn(
|
|
40
|
+
'ownership_invalid_binding',
|
|
41
|
+
`${file} passed property \`${key}\` to ${componentFile(component)} with \`bind:\`, but its parent component ${parent} did not declare \`${key}\` as a binding. Consider creating a binding between ${parent} and ${file} (e.g. \`bind:${key}={...}\` instead of \`${key}={...}\`)`
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { DEV } from 'esm-env';
|
|
2
|
+
import { failure } from '../../shared/diagnostics.ts';
|
|
3
|
+
import type { Effect } from '../reactivity/graph.ts';
|
|
4
|
+
import { original, proxy } from '../reactivity/proxy.ts';
|
|
5
|
+
import { derived, set } from '../reactivity/sources.ts';
|
|
6
|
+
import { get } from '../reactivity/reads.ts';
|
|
7
|
+
import { owner, untrack } from '../reactivity/tracking.ts';
|
|
8
|
+
import { advance, COMMENT, cursor, hydrating } from './hydration.ts';
|
|
9
|
+
|
|
10
|
+
export const BINDABLE = 1;
|
|
11
|
+
|
|
12
|
+
export const LAZY = 2;
|
|
13
|
+
|
|
14
|
+
export const UPDATED = 4;
|
|
15
|
+
|
|
16
|
+
type Props = Record<PropertyKey, unknown>;
|
|
17
|
+
|
|
18
|
+
const entries = new WeakSet<object>();
|
|
19
|
+
const mutableGetters = new WeakSet<object>();
|
|
20
|
+
const mutableAccessors = new WeakSet<object>();
|
|
21
|
+
let mutableRead = false;
|
|
22
|
+
|
|
23
|
+
export function captureMutable<T>(read: () => T): [T, boolean] {
|
|
24
|
+
const previous = mutableRead;
|
|
25
|
+
mutableRead = false;
|
|
26
|
+
try {
|
|
27
|
+
const value = read();
|
|
28
|
+
return [value, mutableRead];
|
|
29
|
+
} finally {
|
|
30
|
+
mutableRead = previous;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function mutableProps<T extends object>(props: T, keys: readonly string[]): T {
|
|
35
|
+
for (const key of keys) {
|
|
36
|
+
const descriptor = Object.getOwnPropertyDescriptor(props, key);
|
|
37
|
+
const getter = descriptor?.get;
|
|
38
|
+
if (getter === undefined) continue;
|
|
39
|
+
if (!DEV) {
|
|
40
|
+
mutableGetters.add(getter);
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
43
|
+
const read = function (this: unknown): unknown {
|
|
44
|
+
mutableRead = true;
|
|
45
|
+
return getter.call(this);
|
|
46
|
+
};
|
|
47
|
+
mutableGetters.add(read);
|
|
48
|
+
Object.defineProperty(props, key, { ...descriptor, get: read });
|
|
49
|
+
}
|
|
50
|
+
return props;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function forwardProps<T extends object, V>(props: T, key: string, accessor: Accessor<V>): T {
|
|
54
|
+
return mutableAccessors.has(accessor) ? mutableProps(props, [key]) : props;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function marked<T>(accessor: Accessor<T>, mutable: boolean): Accessor<T> {
|
|
58
|
+
if (!mutable) return accessor;
|
|
59
|
+
const result: Accessor<T> = DEV
|
|
60
|
+
? function (this: unknown, ...args: [value?: T, mutation?: boolean]): T {
|
|
61
|
+
mutableRead = true;
|
|
62
|
+
return accessor.apply(this, args);
|
|
63
|
+
}
|
|
64
|
+
: accessor;
|
|
65
|
+
mutableAccessors.add(result);
|
|
66
|
+
return result;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function entry(props: object): void {
|
|
70
|
+
entries.add(props);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function boundProp(props: Props, key: PropertyKey): boolean {
|
|
74
|
+
return (
|
|
75
|
+
Object.getOwnPropertyDescriptor(props, key)?.set !== undefined ||
|
|
76
|
+
!(key in props) ||
|
|
77
|
+
((entries.has(props) || original(props) !== props) && key in props)
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type Accessor<T> = (value?: T, mutation?: boolean) => T;
|
|
82
|
+
|
|
83
|
+
export function mutateProp<T, R>(accessor: Accessor<T>, result: R): R {
|
|
84
|
+
accessor(undefined, true);
|
|
85
|
+
return result;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function prop<T>(
|
|
89
|
+
props: Props,
|
|
90
|
+
key: string,
|
|
91
|
+
flags: number,
|
|
92
|
+
fallback?: T | (() => T)
|
|
93
|
+
): Accessor<T> {
|
|
94
|
+
const bindable = (flags & BINDABLE) !== 0;
|
|
95
|
+
const lazy = (flags & LAZY) !== 0;
|
|
96
|
+
const computed = lazy ? derived(fallback as () => T) : null;
|
|
97
|
+
let fallbackValue = lazy ? undefined : (fallback as T | undefined);
|
|
98
|
+
const getFallback = (): T => (computed !== null ? get(computed) : (fallbackValue as T));
|
|
99
|
+
const descriptor = Object.getOwnPropertyDescriptor(props, key);
|
|
100
|
+
const mutable = descriptor?.get !== undefined && mutableGetters.has(descriptor.get);
|
|
101
|
+
let setter: ((value: T) => void) | undefined;
|
|
102
|
+
if (bindable) {
|
|
103
|
+
setter =
|
|
104
|
+
descriptor?.set ??
|
|
105
|
+
(entries.has(props) && key in props
|
|
106
|
+
? (value: T) => {
|
|
107
|
+
props[key] = value;
|
|
108
|
+
}
|
|
109
|
+
: undefined);
|
|
110
|
+
}
|
|
111
|
+
const initial = untrack(() => props[key]);
|
|
112
|
+
if (initial === undefined && fallback !== undefined && setter !== undefined) {
|
|
113
|
+
throw failure(
|
|
114
|
+
'props_invalid_value',
|
|
115
|
+
`Cannot do \`bind:${key}={undefined}\` when \`${key}\` has a fallback value`
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
const getter = (): T => {
|
|
119
|
+
const value = props[key] as T;
|
|
120
|
+
if (value === undefined) return getFallback();
|
|
121
|
+
if (!lazy) fallbackValue = fallback as T;
|
|
122
|
+
return value;
|
|
123
|
+
};
|
|
124
|
+
if ((flags & UPDATED) === 0) return marked(getter, mutable);
|
|
125
|
+
if (setter !== undefined) {
|
|
126
|
+
const write = setter;
|
|
127
|
+
return marked(function (this: unknown, value?: T, mutation = false): T {
|
|
128
|
+
if (arguments.length > 0) {
|
|
129
|
+
if (!mutation) write(value as T);
|
|
130
|
+
else if (mutable) write(getter());
|
|
131
|
+
return value as T;
|
|
132
|
+
}
|
|
133
|
+
return getter();
|
|
134
|
+
}, mutable);
|
|
135
|
+
}
|
|
136
|
+
const local = derived(getter);
|
|
137
|
+
if (bindable) get(local);
|
|
138
|
+
return marked(function (this: unknown, value?: T, mutation = false): T {
|
|
139
|
+
if (arguments.length > 0) {
|
|
140
|
+
if (mutation) return value as T;
|
|
141
|
+
const next = bindable ? proxy(value as T) : (value as T);
|
|
142
|
+
set(local, next);
|
|
143
|
+
if (fallbackValue !== undefined) fallbackValue = next;
|
|
144
|
+
return value as T;
|
|
145
|
+
}
|
|
146
|
+
return get(local);
|
|
147
|
+
}, mutable);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
function step<T>(value: T, delta: number): T {
|
|
151
|
+
return (typeof value === 'bigint' ? value + BigInt(delta) : (value as number) + delta) as T;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export function updateProp<T>(accessor: Accessor<T>, delta = 1): T {
|
|
155
|
+
const value = accessor();
|
|
156
|
+
accessor(step(value, delta));
|
|
157
|
+
return value;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function updatePropPre<T>(accessor: Accessor<T>, delta = 1): T {
|
|
161
|
+
return accessor(step(accessor(), delta));
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export function rest(props: Props, excluded: readonly string[]): Props {
|
|
165
|
+
const hidden = new Set<PropertyKey>(excluded);
|
|
166
|
+
return new Proxy(props, {
|
|
167
|
+
get(target, key) {
|
|
168
|
+
return hidden.has(key) ? undefined : target[key];
|
|
169
|
+
},
|
|
170
|
+
set(target, key, value) {
|
|
171
|
+
if (hidden.has(key)) return false;
|
|
172
|
+
target[key] = value;
|
|
173
|
+
return true;
|
|
174
|
+
},
|
|
175
|
+
has(target, key) {
|
|
176
|
+
return !hidden.has(key) && key in target;
|
|
177
|
+
},
|
|
178
|
+
ownKeys(target) {
|
|
179
|
+
return Reflect.ownKeys(target).filter((key) => !hidden.has(key));
|
|
180
|
+
},
|
|
181
|
+
getOwnPropertyDescriptor(target, key) {
|
|
182
|
+
if (hidden.has(key)) return undefined;
|
|
183
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(target, key);
|
|
184
|
+
if (descriptor !== undefined && 'value' in descriptor) {
|
|
185
|
+
return { ...descriptor, value: target[key] };
|
|
186
|
+
}
|
|
187
|
+
return descriptor;
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
const issued = new WeakMap<Effect, number>();
|
|
193
|
+
const mounts = new WeakSet<Effect>();
|
|
194
|
+
|
|
195
|
+
export function mountRoot(effect: Effect): void {
|
|
196
|
+
mounts.add(effect);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export function propsId(): string {
|
|
200
|
+
if (hydrating && cursor.nodeType === COMMENT) {
|
|
201
|
+
const data = (cursor as Comment).data;
|
|
202
|
+
if (data.charCodeAt(0) === 36) {
|
|
203
|
+
advance();
|
|
204
|
+
return data.slice(1);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
let top = owner as Effect;
|
|
208
|
+
while (top.parent !== null && !mounts.has(top)) top = top.parent;
|
|
209
|
+
const next = (issued.get(top) ?? 0) + 1;
|
|
210
|
+
issued.set(top, next);
|
|
211
|
+
return `c${next}`;
|
|
212
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { branch, destroy } from '../reactivity/effects.ts';
|
|
2
|
+
import type { Effect } from '../reactivity/graph.ts';
|
|
3
|
+
import { isCustomTag } from '../../shared/html.ts';
|
|
4
|
+
import { cursor, hydrating } from './hydration.ts';
|
|
5
|
+
import type { Render } from './template.ts';
|
|
6
|
+
|
|
7
|
+
export interface Built {
|
|
8
|
+
readonly effect: Effect;
|
|
9
|
+
readonly first: ChildNode;
|
|
10
|
+
readonly last: ChildNode;
|
|
11
|
+
fragment: DocumentFragment | null;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const positions = new WeakMap<Effect, ChildNode>();
|
|
15
|
+
|
|
16
|
+
let slotting = false;
|
|
17
|
+
|
|
18
|
+
const offscreen = new WeakMap<ParentNode, boolean>();
|
|
19
|
+
|
|
20
|
+
function slots(at: ChildNode | null): boolean {
|
|
21
|
+
if (at === null) return false;
|
|
22
|
+
const parent = at.parentNode;
|
|
23
|
+
if (parent === null) return slotting;
|
|
24
|
+
if (parent.nodeType !== 1) return offscreen.get(parent) ?? slotting;
|
|
25
|
+
const element = parent as Element;
|
|
26
|
+
return isCustomTag(element.localName) || element.shadowRoot !== null;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function opener(at: ChildNode | null): ChildNode {
|
|
30
|
+
return slots(at) ? document.createComment('') : document.createTextNode('');
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function position(effect: Effect | null): ChildNode | null {
|
|
34
|
+
for (let current = effect; current !== null; current = current.parent) {
|
|
35
|
+
const node = positions.get(current);
|
|
36
|
+
if (node !== undefined) return node;
|
|
37
|
+
}
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function adopt(render: Render, create: (fn: () => void) => Effect): Built {
|
|
42
|
+
const start = cursor;
|
|
43
|
+
const parent = start.parentNode as ParentNode;
|
|
44
|
+
const before = start.previousSibling;
|
|
45
|
+
const effect = create(() => render(start));
|
|
46
|
+
const end = cursor;
|
|
47
|
+
const first = before === null ? parent.firstChild : before.nextSibling;
|
|
48
|
+
if (first === end) {
|
|
49
|
+
const marker = opener(end);
|
|
50
|
+
end.before(marker);
|
|
51
|
+
positions.set(effect, marker);
|
|
52
|
+
return { effect, first: marker, last: marker, fragment: null };
|
|
53
|
+
}
|
|
54
|
+
positions.set(effect, first as ChildNode);
|
|
55
|
+
return {
|
|
56
|
+
effect,
|
|
57
|
+
first: first as ChildNode,
|
|
58
|
+
last: end.previousSibling as ChildNode,
|
|
59
|
+
fragment: null
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function build(
|
|
64
|
+
render: Render,
|
|
65
|
+
create: (fn: () => void) => Effect = branch,
|
|
66
|
+
at: ChildNode | null = null
|
|
67
|
+
): Built {
|
|
68
|
+
if (hydrating) return adopt(render, create);
|
|
69
|
+
const fragment = document.createDocumentFragment();
|
|
70
|
+
const slotted = slots(at);
|
|
71
|
+
const first = slotted ? document.createComment('') : document.createTextNode('');
|
|
72
|
+
const anchor = document.createTextNode('');
|
|
73
|
+
fragment.append(first, anchor);
|
|
74
|
+
offscreen.set(fragment, slotted);
|
|
75
|
+
const outer = slotting;
|
|
76
|
+
slotting = slotted;
|
|
77
|
+
let effect: Effect;
|
|
78
|
+
try {
|
|
79
|
+
effect = create(() => render(anchor));
|
|
80
|
+
} finally {
|
|
81
|
+
slotting = outer;
|
|
82
|
+
}
|
|
83
|
+
anchor.remove();
|
|
84
|
+
positions.set(effect, first);
|
|
85
|
+
return { effect, first, last: fragment.lastChild as ChildNode, fragment };
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function place(built: Built, before: ChildNode): void {
|
|
89
|
+
if (built.fragment !== null) {
|
|
90
|
+
before.before(built.fragment);
|
|
91
|
+
built.fragment = null;
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
if (built.last.nextSibling === before) return;
|
|
95
|
+
let node: ChildNode = built.first;
|
|
96
|
+
for (;;) {
|
|
97
|
+
const next = node.nextSibling;
|
|
98
|
+
before.before(node);
|
|
99
|
+
if (node === built.last || next === null) return;
|
|
100
|
+
node = next;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function stash(built: Built): void {
|
|
105
|
+
if (built.fragment !== null) return;
|
|
106
|
+
const fragment = document.createDocumentFragment();
|
|
107
|
+
offscreen.set(fragment, slots(built.first));
|
|
108
|
+
let node: ChildNode | null = built.first;
|
|
109
|
+
while (node !== null) {
|
|
110
|
+
const next: ChildNode | null = node.nextSibling;
|
|
111
|
+
fragment.append(node);
|
|
112
|
+
if (node === built.last) break;
|
|
113
|
+
node = next;
|
|
114
|
+
}
|
|
115
|
+
built.fragment = fragment;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function remove(built: Built): void {
|
|
119
|
+
if (built.fragment !== null) return;
|
|
120
|
+
let node: ChildNode | null = built.first;
|
|
121
|
+
while (node !== null) {
|
|
122
|
+
const next: ChildNode | null = node.nextSibling;
|
|
123
|
+
node.remove();
|
|
124
|
+
if (node === built.last) break;
|
|
125
|
+
node = next;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function discard(built: Built): void {
|
|
130
|
+
remove(built);
|
|
131
|
+
destroy(built.effect);
|
|
132
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { namespaces } from '../../shared/html.ts';
|
|
2
|
+
import { task } from '../reactivity/tasks.ts';
|
|
3
|
+
import { unowned } from './events.ts';
|
|
4
|
+
|
|
5
|
+
type Reset = () => void;
|
|
6
|
+
|
|
7
|
+
const callbacks = new WeakMap<Element, Set<Reset>>();
|
|
8
|
+
const documents = new WeakSet<Document>();
|
|
9
|
+
|
|
10
|
+
function reset(event: Event): void {
|
|
11
|
+
const form = event.target as HTMLFormElement | null;
|
|
12
|
+
if (form?.namespaceURI !== namespaces.html || form.localName !== 'form') return;
|
|
13
|
+
task(() => {
|
|
14
|
+
if (event.defaultPrevented) return;
|
|
15
|
+
unowned(() => {
|
|
16
|
+
for (const element of form.elements) {
|
|
17
|
+
for (const callback of callbacks.get(element) ?? []) callback();
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function onReset(element: Element, fn: Reset): () => void {
|
|
24
|
+
let handlers = callbacks.get(element);
|
|
25
|
+
if (handlers === undefined) {
|
|
26
|
+
handlers = new Set();
|
|
27
|
+
callbacks.set(element, handlers);
|
|
28
|
+
}
|
|
29
|
+
const callback = (): void => fn();
|
|
30
|
+
handlers.add(callback);
|
|
31
|
+
const document = element.ownerDocument;
|
|
32
|
+
if (!documents.has(document)) {
|
|
33
|
+
documents.add(document);
|
|
34
|
+
document.addEventListener('reset', reset, { capture: true });
|
|
35
|
+
}
|
|
36
|
+
return () => {
|
|
37
|
+
if (handlers.delete(callback) && handlers.size === 0) callbacks.delete(element);
|
|
38
|
+
};
|
|
39
|
+
}
|