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,113 @@
|
|
|
1
|
+
import { DEV } from 'esm-env';
|
|
2
|
+
import { snapshot } from '../../shared/clone.ts';
|
|
3
|
+
import { isDerived, type Derived, type Reaction, type Source } from './graph.ts';
|
|
4
|
+
import { ABSENT } from './proxy.ts';
|
|
5
|
+
import {
|
|
6
|
+
labelOf,
|
|
7
|
+
ranAt,
|
|
8
|
+
relabelled,
|
|
9
|
+
setTracing,
|
|
10
|
+
tracing,
|
|
11
|
+
untrace,
|
|
12
|
+
updateOf,
|
|
13
|
+
type Tracing
|
|
14
|
+
} from './provenance.ts';
|
|
15
|
+
import { get } from './reads.ts';
|
|
16
|
+
import { running, untrack, view } from './tracking.ts';
|
|
17
|
+
|
|
18
|
+
const origins = new WeakMap<Source, () => unknown>();
|
|
19
|
+
let indirect = false;
|
|
20
|
+
|
|
21
|
+
class Session implements Tracing {
|
|
22
|
+
readonly reaction: Reaction | null;
|
|
23
|
+
readonly entries = new Map<Source, Error[]>();
|
|
24
|
+
|
|
25
|
+
constructor(reaction: Reaction | null) {
|
|
26
|
+
this.reaction = reaction;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
traced(source: Source, reaction: Reaction | null): void {
|
|
30
|
+
if (this.reaction === null) return;
|
|
31
|
+
if (reaction !== this.reaction && !(indirect && reaction === null)) return;
|
|
32
|
+
const origin = origins.get(source);
|
|
33
|
+
if (origin !== undefined) {
|
|
34
|
+
const previous = indirect;
|
|
35
|
+
indirect = true;
|
|
36
|
+
try {
|
|
37
|
+
untrack(origin);
|
|
38
|
+
} finally {
|
|
39
|
+
indirect = previous;
|
|
40
|
+
}
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
const trace = new Error('traced at');
|
|
44
|
+
let found = this.entries.get(source);
|
|
45
|
+
if (found === undefined) this.entries.set(source, (found = []));
|
|
46
|
+
if (trace.stack !== found[found.length - 1]?.stack) found.push(trace);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function traceSource(source: Source, read: () => unknown): void {
|
|
51
|
+
if (DEV) origins.set(source, read);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function traceInputs<T>(source: Derived<T>): T {
|
|
55
|
+
const value = untrace(() => untrack(() => get(source)));
|
|
56
|
+
const at = tracing;
|
|
57
|
+
if (at !== null && at.reaction !== null)
|
|
58
|
+
for (const dep of source.deps ?? []) at.traced(dep, at.reaction);
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function log(source: Source, reaction: Reaction, traces: readonly Error[]): void {
|
|
63
|
+
const value = get(source);
|
|
64
|
+
if (value === ABSENT) return;
|
|
65
|
+
const label = labelOf(source);
|
|
66
|
+
const derived = isDerived(source);
|
|
67
|
+
const type = derived ? '$derived' : label?.startsWith('$') ? 'store' : '$state';
|
|
68
|
+
const update = updateOf(source, view);
|
|
69
|
+
const since = ranAt(reaction);
|
|
70
|
+
const version = update?.version ?? (view?.hidden.has(source) ? 0 : source.wv);
|
|
71
|
+
const dirty = since === undefined || version > since;
|
|
72
|
+
const style = dirty
|
|
73
|
+
? 'color: CornflowerBlue; font-weight: bold'
|
|
74
|
+
: 'color: grey; font-weight: normal';
|
|
75
|
+
console.groupCollapsed(
|
|
76
|
+
label === undefined ? `%c${type}%c` : `%c${type}%c ${label}`,
|
|
77
|
+
style,
|
|
78
|
+
dirty ? 'font-weight: normal' : style,
|
|
79
|
+
typeof value === 'object' && value !== null && relabelled(value) ? snapshot(value, true) : value
|
|
80
|
+
);
|
|
81
|
+
if (derived) for (const dep of new Set(source.deps ?? [])) log(dep, reaction, []);
|
|
82
|
+
if (dirty && update?.stack !== null && update?.stack !== undefined) console.log(update.stack);
|
|
83
|
+
for (const trace of traces) console.log(trace);
|
|
84
|
+
console.groupEnd();
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function trace<T>(label: () => string, fn: () => T): T {
|
|
88
|
+
if (!DEV) return fn();
|
|
89
|
+
const reaction = running();
|
|
90
|
+
const current = new Session(reaction);
|
|
91
|
+
const previous = setTracing(current);
|
|
92
|
+
try {
|
|
93
|
+
const start = performance.now();
|
|
94
|
+
const value = fn();
|
|
95
|
+
const time = (performance.now() - start).toFixed(2);
|
|
96
|
+
const prefix = untrack(label);
|
|
97
|
+
if (reaction === null) {
|
|
98
|
+
console.log(`${prefix} %cran outside of an effect (${time}ms)`, 'color: grey');
|
|
99
|
+
} else if (current.entries.size === 0) {
|
|
100
|
+
console.log(`${prefix} %cno reactive dependencies (${time}ms)`, 'color: grey');
|
|
101
|
+
} else {
|
|
102
|
+
console.group(`${prefix} %c(${time}ms)`, 'color: grey');
|
|
103
|
+
untrack(() => {
|
|
104
|
+
for (const [source, traces] of current.entries) log(source, reaction, traces);
|
|
105
|
+
});
|
|
106
|
+
setTracing(null);
|
|
107
|
+
console.groupEnd();
|
|
108
|
+
}
|
|
109
|
+
return value;
|
|
110
|
+
} finally {
|
|
111
|
+
setTracing(previous);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -0,0 +1,569 @@
|
|
|
1
|
+
import { DEV } from 'esm-env';
|
|
2
|
+
import { processed, revisit, type Batch } from './batch.ts';
|
|
3
|
+
import { swapCollector } from './collector.ts';
|
|
4
|
+
import { add, depsOf, extend, rebuild, retainDeps, truncate, unsubscribe } from './edges.ts';
|
|
5
|
+
import { unsafeMutation } from './errors.ts';
|
|
6
|
+
import {
|
|
7
|
+
BLOCK,
|
|
8
|
+
CLEAN,
|
|
9
|
+
DERIVED,
|
|
10
|
+
DIRTY,
|
|
11
|
+
EAGER,
|
|
12
|
+
MAYBE,
|
|
13
|
+
isDerived,
|
|
14
|
+
now,
|
|
15
|
+
type Derived,
|
|
16
|
+
type Effect,
|
|
17
|
+
type Reaction,
|
|
18
|
+
type Source,
|
|
19
|
+
type Status
|
|
20
|
+
} from './graph.ts';
|
|
21
|
+
import type { Prior } from './history.ts';
|
|
22
|
+
import { localLeaving, withoutLeaving } from './outgoing.ts';
|
|
23
|
+
import { computed, tracedRun, tracing } from './provenance.ts';
|
|
24
|
+
|
|
25
|
+
interface Frame {
|
|
26
|
+
target: Reaction | null;
|
|
27
|
+
started: number;
|
|
28
|
+
version: number;
|
|
29
|
+
old: Source[] | null;
|
|
30
|
+
matched: number;
|
|
31
|
+
extra: Source[] | null;
|
|
32
|
+
marks: number;
|
|
33
|
+
invalidated: boolean;
|
|
34
|
+
hidden: Set<Batch> | null;
|
|
35
|
+
local: Set<Source> | null;
|
|
36
|
+
keep: boolean;
|
|
37
|
+
run: Resumption | null;
|
|
38
|
+
captured: Map<Source, unknown> | null;
|
|
39
|
+
writes: Source[] | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface Resumption {
|
|
43
|
+
readonly reaction: Reaction;
|
|
44
|
+
readonly reads: Set<Source>;
|
|
45
|
+
readonly values: Map<Source, unknown>;
|
|
46
|
+
ended: boolean;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface View {
|
|
50
|
+
readonly batch: Batch;
|
|
51
|
+
readonly values: Map<Source, unknown>;
|
|
52
|
+
readonly hidden: Map<Source, Batch>;
|
|
53
|
+
readonly checked: Map<Derived, boolean>;
|
|
54
|
+
readonly reached: Map<Derived, Set<Batch>>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface Past {
|
|
58
|
+
readonly before: Prior;
|
|
59
|
+
readonly later: Prior | null;
|
|
60
|
+
written: Set<Source> | null;
|
|
61
|
+
derived: Map<Derived, unknown> | null;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
let versions = 0;
|
|
65
|
+
let depth = 0;
|
|
66
|
+
let floor = 0;
|
|
67
|
+
let marks = 0;
|
|
68
|
+
|
|
69
|
+
let frame: Frame | null = null;
|
|
70
|
+
let late: Frame | null = null;
|
|
71
|
+
let resumption: Resumption | null = null;
|
|
72
|
+
let awaited: Resumption | null = null;
|
|
73
|
+
let executing: Reaction | null = null;
|
|
74
|
+
let evaluating: object | null = null;
|
|
75
|
+
const frames: Frame[] = [];
|
|
76
|
+
let hiddenByLast: Set<Batch> | null = null;
|
|
77
|
+
|
|
78
|
+
export let view: View | null = null;
|
|
79
|
+
export let past: Past | null = null;
|
|
80
|
+
export let lost: Resumption | null = null;
|
|
81
|
+
export let owner: Effect | null = null;
|
|
82
|
+
|
|
83
|
+
export function marked(): void {
|
|
84
|
+
marks++;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function setOwner(effect: Effect | null): Effect | null {
|
|
88
|
+
const previous = owner;
|
|
89
|
+
owner = effect;
|
|
90
|
+
return previous;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function setView(next: View | null): View | null {
|
|
94
|
+
const previous = view;
|
|
95
|
+
view = next;
|
|
96
|
+
return previous;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function setPast(next: Past | null): Past | null {
|
|
100
|
+
const previous = past;
|
|
101
|
+
past = next;
|
|
102
|
+
return previous;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function setLost(next: Resumption | null): void {
|
|
106
|
+
lost = next;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function opened(target: Reaction): Frame {
|
|
110
|
+
let current = frames[depth];
|
|
111
|
+
if (current === undefined) {
|
|
112
|
+
current = {
|
|
113
|
+
target: null,
|
|
114
|
+
started: 0,
|
|
115
|
+
version: 0,
|
|
116
|
+
old: null,
|
|
117
|
+
matched: 0,
|
|
118
|
+
extra: null,
|
|
119
|
+
marks: 0,
|
|
120
|
+
invalidated: false,
|
|
121
|
+
hidden: null,
|
|
122
|
+
local: null,
|
|
123
|
+
keep: false,
|
|
124
|
+
run: null,
|
|
125
|
+
captured: null,
|
|
126
|
+
writes: null
|
|
127
|
+
};
|
|
128
|
+
frames.push(current);
|
|
129
|
+
}
|
|
130
|
+
current.target = target;
|
|
131
|
+
if (DEV) current.started = now();
|
|
132
|
+
current.version = versions += 3;
|
|
133
|
+
current.old = target.deps;
|
|
134
|
+
current.matched = 0;
|
|
135
|
+
current.extra = null;
|
|
136
|
+
current.marks = marks;
|
|
137
|
+
current.invalidated = false;
|
|
138
|
+
current.hidden = null;
|
|
139
|
+
current.local = null;
|
|
140
|
+
current.keep = false;
|
|
141
|
+
current.writes = null;
|
|
142
|
+
depth++;
|
|
143
|
+
frame = current;
|
|
144
|
+
return current;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
function closed(previous: Frame | null): void {
|
|
148
|
+
depth--;
|
|
149
|
+
(frames[depth] as Frame).target = null;
|
|
150
|
+
frame = previous;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
function finished(current: Frame): void {
|
|
154
|
+
current.captured = null;
|
|
155
|
+
current.old = current.extra = null;
|
|
156
|
+
current.hidden = null;
|
|
157
|
+
current.local = null;
|
|
158
|
+
current.writes = null;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
function top(): Frame | null {
|
|
162
|
+
return depth === floor ? null : (frames[depth - 1] as Frame);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
function kindOf(at: Frame): number {
|
|
166
|
+
return (at.target as Effect | Derived).kind;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export function deriving(): Derived | null {
|
|
170
|
+
const at = frame ?? top();
|
|
171
|
+
return at !== null && kindOf(at) === DERIVED ? (at.target as Derived) : null;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export function localize(source: Source): void {
|
|
175
|
+
const at = top();
|
|
176
|
+
if (at !== null && kindOf(at) === DERIVED) {
|
|
177
|
+
(at.local ??= new Set()).add(source);
|
|
178
|
+
localLeaving(source, at.target as Reaction);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export function local(source: Source): boolean {
|
|
183
|
+
const at = top();
|
|
184
|
+
return at !== null && at.local !== null && at.local.has(source);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export function guard(source: Source): void {
|
|
188
|
+
const at = frame ?? top();
|
|
189
|
+
if (at === null) return;
|
|
190
|
+
const kind = kindOf(at);
|
|
191
|
+
if (kind !== EAGER && (frame === null || (kind !== DERIVED && kind !== BLOCK))) return;
|
|
192
|
+
if (at.local === null || !at.local.has(source)) unsafeMutation();
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
function record(at: Frame, source: Source): void {
|
|
196
|
+
source.read = at.version;
|
|
197
|
+
const old = at.old;
|
|
198
|
+
if (at.extra === null && old !== null && at.matched < old.length && old[at.matched] === source)
|
|
199
|
+
at.matched++;
|
|
200
|
+
else if (at === late) adopt(at.run as Resumption, source);
|
|
201
|
+
else if (at.extra === null) at.extra = [source];
|
|
202
|
+
else at.extra.push(source);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
function adopt(run: Resumption, source: Source): void {
|
|
206
|
+
run.reads.add(source);
|
|
207
|
+
add(run.reaction, source);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export function depend(source: Source): void {
|
|
211
|
+
const at = frame;
|
|
212
|
+
if (DEV && tracing !== null) tracing.traced(source, at?.target ?? null);
|
|
213
|
+
if (at !== null && source.read !== at.version && (at.local === null || !at.local.has(source)))
|
|
214
|
+
record(at, source);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export function capture(source: Source, value: unknown): void {
|
|
218
|
+
const at = frame;
|
|
219
|
+
if (view !== null && at !== null) (at.captured ??= new Map()).set(source, value);
|
|
220
|
+
const run = at === late ? late?.run : awaited;
|
|
221
|
+
if (run !== null && run !== undefined && at?.target === run.reaction)
|
|
222
|
+
run.values.set(source, value);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
function retain(target: Reaction, current: Frame): void {
|
|
226
|
+
const reads = current.captured;
|
|
227
|
+
if (reads === null) {
|
|
228
|
+
target.captured = null;
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
target.captured = { values: reads, viewed: view !== null };
|
|
232
|
+
const effect = target as Effect;
|
|
233
|
+
if (effect.kind !== BLOCK || effect.async) return;
|
|
234
|
+
const batch = view?.batch ?? processed();
|
|
235
|
+
if (batch !== null && (batch.after !== null || batch.work > 0 || batch.fork))
|
|
236
|
+
(batch.reads ??= new Map()).set(effect, reads);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export function observedReads(target: Reaction): ReadonlyMap<Source, unknown> | undefined {
|
|
240
|
+
return target.captured?.values;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export function viewedReads(target: Reaction): ReadonlyMap<Source, unknown> | undefined {
|
|
244
|
+
const captured = target.captured;
|
|
245
|
+
return captured !== null && captured.viewed ? captured.values : undefined;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export function settleReads(run: Resumption): void {
|
|
249
|
+
if (run.reaction.deps === null || (run.reaction as Effect).destroyed === true) return;
|
|
250
|
+
retainDeps(run.reaction, run.reads);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
function readBy(at: Frame, source: Source): boolean {
|
|
254
|
+
if (source.read === at.version) return true;
|
|
255
|
+
const old = at.old;
|
|
256
|
+
if (old !== null)
|
|
257
|
+
for (let index = 0; index < at.matched; index++) if (old[index] === source) return true;
|
|
258
|
+
return at.extra !== null && at.extra.includes(source);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
function reads(at: Frame): Source[] {
|
|
262
|
+
const found = at.old === null ? [] : at.old.slice(0, at.matched);
|
|
263
|
+
if (at.extra !== null) found.push(...at.extra);
|
|
264
|
+
return found;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export function reading(): boolean {
|
|
268
|
+
return frame !== null;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export function running(): Reaction | null {
|
|
272
|
+
return executing;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export function resuming(): Resumption | null {
|
|
276
|
+
return executing === null ? resumption : null;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export function evaluation(): object | null {
|
|
280
|
+
if (executing === null) return resumption;
|
|
281
|
+
if (evaluating !== null) return evaluating;
|
|
282
|
+
return awaited !== null && executing === awaited.reaction ? awaited : executing;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export function withoutReaction<T>(fn: () => T): T {
|
|
286
|
+
const previous = executing;
|
|
287
|
+
const previousFloor = floor;
|
|
288
|
+
const previousResumption = resumption;
|
|
289
|
+
executing = null;
|
|
290
|
+
floor = depth;
|
|
291
|
+
resumption = null;
|
|
292
|
+
try {
|
|
293
|
+
return untrack(fn);
|
|
294
|
+
} finally {
|
|
295
|
+
executing = previous;
|
|
296
|
+
floor = previousFloor;
|
|
297
|
+
resumption = previousResumption;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export function unowned<T>(fn: () => T): T {
|
|
302
|
+
const previous = setOwner(null);
|
|
303
|
+
try {
|
|
304
|
+
return withoutReaction(fn);
|
|
305
|
+
} finally {
|
|
306
|
+
setOwner(previous);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
export function untrack<T>(fn: () => T): T {
|
|
311
|
+
const previous = frame;
|
|
312
|
+
const collecting = swapCollector(null);
|
|
313
|
+
const paused = DEV ? lost : null;
|
|
314
|
+
if (DEV) lost = null;
|
|
315
|
+
frame = null;
|
|
316
|
+
try {
|
|
317
|
+
return fn();
|
|
318
|
+
} finally {
|
|
319
|
+
frame = previous;
|
|
320
|
+
swapCollector(collecting);
|
|
321
|
+
if (DEV) lost = paused;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
export function asyncRun(): Resumption | null {
|
|
326
|
+
return awaited !== null && executing === awaited.reaction ? awaited : null;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export function awaiting<T>(run: Resumption, fn: () => T): T {
|
|
330
|
+
const previous = awaited;
|
|
331
|
+
awaited = run;
|
|
332
|
+
try {
|
|
333
|
+
return fn();
|
|
334
|
+
} finally {
|
|
335
|
+
awaited = previous;
|
|
336
|
+
const at = frame;
|
|
337
|
+
if (at !== null && at.target === run.reaction) {
|
|
338
|
+
at.keep = true;
|
|
339
|
+
for (const source of reads(at)) run.reads.add(source);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
export function suspendReading(): Resumption | null {
|
|
345
|
+
if (late !== null && frame === late) return late.run;
|
|
346
|
+
if (late === null && executing === null) return resumption;
|
|
347
|
+
return awaited !== null && executing === awaited.reaction ? awaited : null;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export function resumeReading(run: Resumption | null, discarded: boolean): void {
|
|
351
|
+
endReading();
|
|
352
|
+
if (run === null) return;
|
|
353
|
+
if (discarded) run.ended = true;
|
|
354
|
+
resumption = run;
|
|
355
|
+
if (frame !== null || (run.reaction as Effect).destroyed === true) return;
|
|
356
|
+
late = {
|
|
357
|
+
target: run.reaction,
|
|
358
|
+
started: 0,
|
|
359
|
+
version: (versions += 3),
|
|
360
|
+
old: null,
|
|
361
|
+
matched: 0,
|
|
362
|
+
extra: null,
|
|
363
|
+
marks,
|
|
364
|
+
invalidated: false,
|
|
365
|
+
hidden: null,
|
|
366
|
+
local: null,
|
|
367
|
+
keep: false,
|
|
368
|
+
run,
|
|
369
|
+
captured: null,
|
|
370
|
+
writes: null
|
|
371
|
+
};
|
|
372
|
+
frame = late;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
export function endReading(): void {
|
|
376
|
+
resumption = null;
|
|
377
|
+
if (late === null) return;
|
|
378
|
+
if (frame === late) frame = null;
|
|
379
|
+
late = null;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
export function note(hidden: Iterable<Batch>): void {
|
|
383
|
+
if (frame === null) return;
|
|
384
|
+
for (const batch of hidden) (frame.hidden ??= new Set()).add(batch);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
export function compute(derived: Derived, given: View): unknown {
|
|
388
|
+
const previous = frame;
|
|
389
|
+
const previousReaction = executing;
|
|
390
|
+
const previousEvaluation = evaluating;
|
|
391
|
+
executing = derived;
|
|
392
|
+
evaluating = null;
|
|
393
|
+
const current = opened(derived);
|
|
394
|
+
const previousOwner = setOwner(derived.owner);
|
|
395
|
+
try {
|
|
396
|
+
const value = derived.fn();
|
|
397
|
+
if (DEV) computed(derived, value, given.batch);
|
|
398
|
+
return value;
|
|
399
|
+
} finally {
|
|
400
|
+
if (DEV) tracedRun(derived, now());
|
|
401
|
+
closed(previous);
|
|
402
|
+
executing = previousReaction;
|
|
403
|
+
evaluating = previousEvaluation;
|
|
404
|
+
setOwner(previousOwner);
|
|
405
|
+
const extra = current.extra ?? [];
|
|
406
|
+
if (depsOf(derived).length === 0 && extra.length > 0) own(derived);
|
|
407
|
+
for (const dep of extra) add(derived, dep);
|
|
408
|
+
if (current.hidden !== null) {
|
|
409
|
+
given.reached.set(derived, current.hidden);
|
|
410
|
+
note(current.hidden);
|
|
411
|
+
}
|
|
412
|
+
finished(current);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
export function conceal(source: Source, value: unknown, batch: Batch): void {
|
|
417
|
+
if (view === null || view.values.has(source)) return;
|
|
418
|
+
view.values.set(source, value);
|
|
419
|
+
view.hidden.set(source, batch);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
export function present<T>(fn: () => T): T {
|
|
423
|
+
const previousPast = setPast(null);
|
|
424
|
+
const previousView = view;
|
|
425
|
+
view = null;
|
|
426
|
+
try {
|
|
427
|
+
return withoutLeaving(fn);
|
|
428
|
+
} finally {
|
|
429
|
+
setPast(previousPast);
|
|
430
|
+
view = previousView;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
export function readDuringRun(source: Source): void {
|
|
435
|
+
const read = source.read;
|
|
436
|
+
if (depth === 0 || read < (frames[0] as Frame).version) return;
|
|
437
|
+
for (let index = depth - 1; index >= 0; index--) {
|
|
438
|
+
const current = frames[index] as Frame;
|
|
439
|
+
if (current.version <= read && !current.invalidated && readBy(current, source))
|
|
440
|
+
current.invalidated = true;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
export function writtenDuringRun(source: Source): void {
|
|
445
|
+
const at = frame ?? top();
|
|
446
|
+
if (at === null || at === late || kindOf(at) === DERIVED) return;
|
|
447
|
+
(at.writes ??= []).push(source);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
function feeds(derived: Derived, written: Set<Source>, seen: Set<Derived>): boolean {
|
|
451
|
+
if (seen.has(derived)) return false;
|
|
452
|
+
seen.add(derived);
|
|
453
|
+
const deps = derived.deps;
|
|
454
|
+
if (deps === null) return false;
|
|
455
|
+
for (let index = 0; index < deps.length; index++) {
|
|
456
|
+
const dep = deps[index] as Source;
|
|
457
|
+
if (written.has(dep)) return true;
|
|
458
|
+
if (dep.kind === DERIVED && feeds(dep as Derived, written, seen)) return true;
|
|
459
|
+
}
|
|
460
|
+
return false;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
function rereads(current: Frame, writes: readonly Source[]): Status {
|
|
464
|
+
for (const source of writes) if (readBy(current, source)) return DIRTY;
|
|
465
|
+
let written: Set<Source> | null = null;
|
|
466
|
+
let seen: Set<Derived> | null = null;
|
|
467
|
+
for (const dep of reads(current)) {
|
|
468
|
+
if (dep.kind !== DERIVED) continue;
|
|
469
|
+
if (feeds(dep as Derived, (written ??= new Set(writes)), (seen ??= new Set()))) return MAYBE;
|
|
470
|
+
}
|
|
471
|
+
return CLEAN;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
function own(derived: Derived): void {
|
|
475
|
+
const holder = derived.owner;
|
|
476
|
+
if (holder !== null) (holder.owned ??= []).push(derived);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
function reconcile(target: Reaction, current: Frame, keep: boolean): void {
|
|
480
|
+
const previous = target.deps;
|
|
481
|
+
const old = current.old;
|
|
482
|
+
const extra = current.extra;
|
|
483
|
+
const matched = current.matched;
|
|
484
|
+
if (old === previous && extra === null) {
|
|
485
|
+
if (old === null) depsOf(target);
|
|
486
|
+
else if (!keep && matched < old.length) truncate(target, matched);
|
|
487
|
+
return;
|
|
488
|
+
}
|
|
489
|
+
if (old === previous && extra !== null) {
|
|
490
|
+
const empty = old === null || old.length === 0;
|
|
491
|
+
const count = extend(target, matched, extra, keep, current.version);
|
|
492
|
+
if (empty && count > 0 && isDerived(target)) own(target);
|
|
493
|
+
return;
|
|
494
|
+
}
|
|
495
|
+
const kept = new Set(reads(current));
|
|
496
|
+
rebuild(target, kept, keep);
|
|
497
|
+
if ((previous === null || previous.length === 0) && kept.size > 0 && isDerived(target))
|
|
498
|
+
own(target);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
function dirtyRead(dep: Source): boolean {
|
|
502
|
+
return isDerived(dep) && dep.status !== CLEAN && (view === null || !view.values.has(dep));
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
export function track<T>(target: Reaction, fn: () => T, isolated = false): T {
|
|
506
|
+
const previous = frame;
|
|
507
|
+
const previousReaction = executing;
|
|
508
|
+
const previousEvaluation = evaluating;
|
|
509
|
+
executing = target;
|
|
510
|
+
evaluating = isolated ? {} : null;
|
|
511
|
+
const current = opened(target);
|
|
512
|
+
try {
|
|
513
|
+
return fn();
|
|
514
|
+
} finally {
|
|
515
|
+
closed(previous);
|
|
516
|
+
executing = previousReaction;
|
|
517
|
+
evaluating = previousEvaluation;
|
|
518
|
+
if (!isolated) {
|
|
519
|
+
hiddenByLast = current.hidden;
|
|
520
|
+
if ((target as Effect).destroyed === true) unsubscribe(target);
|
|
521
|
+
else {
|
|
522
|
+
const invalidated =
|
|
523
|
+
current.invalidated || ((view !== null || marks !== current.marks) && readDirty(current));
|
|
524
|
+
const status = invalidated
|
|
525
|
+
? DIRTY
|
|
526
|
+
: current.writes === null
|
|
527
|
+
? CLEAN
|
|
528
|
+
: rereads(current, current.writes);
|
|
529
|
+
reconcile(
|
|
530
|
+
target,
|
|
531
|
+
current,
|
|
532
|
+
current.keep || (view !== null && (view.batch.fork || current.hidden !== null))
|
|
533
|
+
);
|
|
534
|
+
retain(target, current);
|
|
535
|
+
target.rv = now();
|
|
536
|
+
target.status = status;
|
|
537
|
+
}
|
|
538
|
+
if (DEV) tracedRun(target, target.status === DIRTY ? current.started : now());
|
|
539
|
+
}
|
|
540
|
+
finished(current);
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
function readDirty(current: Frame): boolean {
|
|
545
|
+
const old = current.old;
|
|
546
|
+
if (old !== null)
|
|
547
|
+
for (let index = 0; index < current.matched; index++)
|
|
548
|
+
if (dirtyRead(old[index] as Source)) return true;
|
|
549
|
+
if (current.extra !== null) for (const dep of current.extra) if (dirtyRead(dep)) return true;
|
|
550
|
+
return false;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
export function validate<T>(target: Reaction, fn: () => T): T {
|
|
554
|
+
const previous = frame;
|
|
555
|
+
const current = opened(target);
|
|
556
|
+
try {
|
|
557
|
+
return fn();
|
|
558
|
+
} finally {
|
|
559
|
+
closed(previous);
|
|
560
|
+
if (!isDerived(target)) revisit(target as Effect, current.hidden);
|
|
561
|
+
finished(current);
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
export function takeHidden(): Set<Batch> | null {
|
|
566
|
+
const found = hiddenByLast;
|
|
567
|
+
hiddenByLast = null;
|
|
568
|
+
return found;
|
|
569
|
+
}
|