@torpor/view 0.3.3 → 0.4.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/CHANGELOG.md +24 -0
- package/dist/Cleanup-BGQ5zaxE.d.cts +9 -0
- package/dist/Cleanup-BGQ5zaxE.d.cts.map +1 -0
- package/dist/Cleanup-Ca8IspaG.d.ts +9 -0
- package/dist/Cleanup-Ca8IspaG.d.ts.map +1 -0
- package/dist/Component-C-2ML-6s.d.cts +11 -0
- package/dist/Component-C-2ML-6s.d.cts.map +1 -0
- package/dist/Component-ODmDVKFt.d.ts +11 -0
- package/dist/Component-ODmDVKFt.d.ts.map +1 -0
- package/dist/Region-BrsZLZUe.d.ts +201 -0
- package/dist/Region-BrsZLZUe.d.ts.map +1 -0
- package/dist/Region-Cf7OeBIQ.d.cts +201 -0
- package/dist/Region-Cf7OeBIQ.d.cts.map +1 -0
- package/dist/compile.cjs +298 -289
- package/dist/compile.cjs.map +1 -1
- package/dist/compile.d.cts +34 -30
- package/dist/compile.d.cts.map +1 -1
- package/dist/compile.d.ts +34 -30
- package/dist/compile.d.ts.map +1 -1
- package/dist/compile.js +298 -289
- package/dist/compile.js.map +1 -1
- package/dist/dev.cjs +205 -0
- package/dist/dev.cjs.map +1 -0
- package/dist/dev.d.cts +53 -0
- package/dist/dev.d.cts.map +1 -0
- package/dist/dev.d.ts +53 -0
- package/dist/dev.d.ts.map +1 -0
- package/dist/dev.js +202 -0
- package/dist/dev.js.map +1 -0
- package/dist/devContext-CM-9Rx7k.js +25 -0
- package/dist/devContext-CM-9Rx7k.js.map +1 -0
- package/dist/devContext-nomc0xCl.cjs +31 -0
- package/dist/devContext-nomc0xCl.cjs.map +1 -0
- package/dist/formatText-Ck04q8_X.cjs +59 -0
- package/dist/formatText-Ck04q8_X.cjs.map +1 -0
- package/dist/formatText-CsMp2ujg.d.cts +11 -0
- package/dist/formatText-CsMp2ujg.d.cts.map +1 -0
- package/dist/formatText-OyD8MNAM.js +41 -0
- package/dist/formatText-OyD8MNAM.js.map +1 -0
- package/dist/formatText-nmPEE0iI.d.ts +11 -0
- package/dist/formatText-nmPEE0iI.d.ts.map +1 -0
- package/dist/index.cjs +740 -349
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +80 -265
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +80 -265
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +711 -320
- package/dist/index.js.map +1 -1
- package/dist/ssr.cjs +32 -14
- package/dist/ssr.cjs.map +1 -1
- package/dist/ssr.d.cts +30 -8
- package/dist/ssr.d.cts.map +1 -1
- package/dist/ssr.d.ts +30 -8
- package/dist/ssr.d.ts.map +1 -1
- package/dist/ssr.js +30 -12
- package/dist/ssr.js.map +1 -1
- package/package.json +13 -8
- package/src/compile/build/client/BuildStatus.ts +4 -4
- package/src/compile/build/client/addMappedText.ts +5 -5
- package/src/compile/build/client/addPopDevBoundary.ts +10 -0
- package/src/compile/build/client/addPushDevBoundary.ts +25 -0
- package/src/compile/build/client/buildAddFragment.ts +5 -5
- package/src/compile/build/client/buildAwaitNode.ts +33 -24
- package/src/compile/build/client/buildCode.ts +29 -11
- package/src/compile/build/client/buildComponentNode.ts +37 -11
- package/src/compile/build/client/buildElementNode.ts +16 -62
- package/src/compile/build/client/buildForNode.ts +65 -38
- package/src/compile/build/client/buildFragment.ts +5 -5
- package/src/compile/build/client/buildHtmlNode.ts +9 -9
- package/src/compile/build/client/buildIfNode.ts +23 -12
- package/src/compile/build/client/buildReplaceNode.ts +9 -9
- package/src/compile/build/client/buildRun.ts +8 -2
- package/src/compile/build/client/buildScriptNode.ts +1 -1
- package/src/compile/build/client/buildSwitchNode.ts +25 -17
- package/src/compile/build/client/buildTextNode.ts +1 -1
- package/src/compile/build/client/replaceForVarNames.ts +2 -2
- package/src/compile/build/client/stashRun.ts +3 -3
- package/src/compile/build/client/stashRunWithOffsets.ts +3 -3
- package/src/compile/build/server/BuildServerStatus.ts +1 -1
- package/src/compile/build/server/buildServerCode.ts +1 -1
- package/src/compile/build/server/buildServerElementNode.ts +11 -11
- package/src/compile/build.ts +1 -1
- package/src/compile/buildType.ts +1 -1
- package/src/compile/parse/ParseStatus.ts +4 -2
- package/src/compile/parse/addSpaceElement.ts +1 -1
- package/src/compile/parse/parseCode.ts +18 -33
- package/src/compile/parse/parseControl.ts +6 -6
- package/src/compile/parse/parseElement.ts +12 -15
- package/src/compile/parse/parseMarkup.ts +1 -1
- package/src/compile/parse/parseStyles.ts +1 -0
- package/src/compile/parse/parseTag.ts +2 -2
- package/src/compile/parse/parseText.ts +5 -5
- package/src/compile/parse/slottifyChildNodes.ts +1 -1
- package/src/compile/types/BuildOptions.ts +25 -0
- package/src/compile/types/ScriptChunk.ts +2 -2
- package/src/compile/types/SourceMapping.ts +3 -3
- package/src/compile/types/SourceSpan.ts +4 -0
- package/src/compile/types/nodes/Attribute.ts +2 -2
- package/src/compile/types/nodes/ControlNode.ts +2 -2
- package/src/compile/types/nodes/ElementNode.ts +2 -2
- package/src/compile/types/nodes/Fragment.ts +2 -2
- package/src/compile/types/nodes/TextNode.ts +2 -2
- package/src/debug/printRegions.ts +74 -0
- package/src/dev/devContext.ts +31 -0
- package/src/dev/popDevBoundary.ts +5 -0
- package/src/dev/pushDevBoundary.ts +25 -0
- package/src/dev/setDevMode.ts +236 -0
- package/src/dev/types/DevBoundary.ts +7 -0
- package/src/dev/types/DevContext.ts +28 -0
- package/src/dev.ts +6 -0
- package/src/index.ts +15 -16
- package/src/render/addAnimation.ts +1 -1
- package/src/render/addEvent.ts +1 -1
- package/src/render/addFragment.ts +22 -18
- package/src/render/animate.ts +52 -0
- package/src/render/applyProps.ts +1 -1
- package/src/render/clearLayoutSlot.ts +6 -4
- package/src/render/clearRegion.ts +71 -0
- package/src/render/context.ts +3 -3
- package/src/render/fillLayoutSlot.ts +10 -9
- package/src/render/hydrate.ts +9 -7
- package/src/render/mount.ts +9 -6
- package/src/render/moveRegion.ts +14 -0
- package/src/render/newListItem.ts +8 -3
- package/src/render/newRegion.ts +13 -0
- package/src/render/nodeRoot.ts +3 -3
- package/src/render/popRegion.ts +9 -0
- package/src/render/pushRegion.ts +30 -0
- package/src/render/runControl.ts +9 -12
- package/src/render/runControlBranch.ts +15 -14
- package/src/render/runList.ts +10 -14
- package/src/render/runListItems.ts +29 -17
- package/src/ssr.ts +9 -8
- package/src/types/Context.ts +9 -9
- package/src/types/ListItem.ts +2 -2
- package/src/types/Region.ts +19 -0
- package/src/watch/$batch.ts +22 -0
- package/src/watch/$cache.ts +34 -0
- package/src/watch/$mount.ts +11 -0
- package/src/watch/$peek.ts +14 -0
- package/src/watch/$run.ts +33 -0
- package/src/watch/$unwrap.ts +12 -0
- package/src/watch/$watch.ts +49 -0
- package/src/watch/propagateSignal.ts +99 -0
- package/src/watch/proxyGet.ts +9 -9
- package/src/watch/proxySet.ts +9 -5
- package/src/watch/runComputed.ts +2 -2
- package/src/watch/runEffect.ts +4 -0
- package/src/watch/trackProxySignal.ts +21 -0
- package/src/watch/trackSignal.ts +69 -0
- package/src/watch/transferEffects.ts +1 -1
- package/src/wrappers/ReactiveDate.ts +4 -4
- package/test/attributes/attributes.test.ts +22 -14
- package/test/attributes/components/output/Attributes-client.ts +3 -3
- package/test/attributes/components/output/Disappearing-client.ts +38 -0
- package/test/attributes/components/output/Disappearing-server.ts +18 -0
- package/test/attributes/components/output/Disappearing-types.ts +10 -0
- package/test/attributes/components/temp/Attributes-client-3bd2893680ee0c727dc67385478c21caa0316f82.ts +38 -0
- package/test/attributes/components/temp/Disappearing-client-3bd2893680ee0c727dc67385478c21caa0316f82.ts +38 -0
- package/test/attributes/components/temp/Disappearing-server-ff919598a34afdc67888e3fb80a79d1b27170d1c.ts +18 -0
- package/test/attributes/components/temp/Disappearing-types-5892927754ac19a8b3a8560fa1c78ce653e5f318.ts +10 -0
- package/test/attributes/disappearing.test.ts +22 -14
- package/test/await/await.test.ts +37 -10
- package/test/await/components/output/Await-client.ts +10 -9
- package/test/await/components/output/Await-server.ts +1 -1
- package/test/await/components/temp/Await-client-8ad3f252c4550020753eea3c04cde0da435c6aae.ts +112 -0
- package/test/await/components/temp/Await-server-4187f28e62fa1789ccd5e336457f74d158981055.ts +38 -0
- package/test/bench/bench.bench.ts +2 -2
- package/test/bench/components/output/Bench-client.ts +387 -177
- package/test/bench/components/output/Bench-server.ts +18 -6
- package/test/bench/components/temp/Bench-client-49f3ccc588596e2139b3c7911faf6804e77f9c7f.ts +421 -0
- package/test/bench/components/temp/Bench-server-d42ad0e83d431c6ff0f185e964792b04c4b97c06.ts +18 -6
- package/test/bind/bind-component.test.ts +55 -0
- package/test/bind/bind-text.test.ts +65 -0
- package/test/bind/components/output/BindComponent-client.ts +8 -8
- package/test/bind/components/output/BindComponent-server.ts +1 -1
- package/test/bind/components/output/BindText-client.ts +6 -6
- package/test/bind/components/output/BindText-server.ts +1 -1
- package/test/bind/components/temp/BindComponent-client-9da323149e29bbb0d7eaf5a86ed541357f1219f8.ts +82 -0
- package/test/bind/components/temp/BindComponent-server-2e2d1fe69007b6d2b084c3117a5be4a06258872e.ts +46 -0
- package/test/bind/components/temp/BindText-client-eebe53ed8c48b5bbd046621efa6d9b5d3d753f6f.ts +53 -0
- package/test/bind/components/temp/BindText-server-b8c0e4e7e82cf0bfb92f2301b0e444b0cb6b404c.ts +23 -0
- package/test/build-server/components/output/IfNested-client.ts +94 -77
- package/test/build-server/components/temp/IfNested-client-b0df2bb83863455bc0ea0be7612e3bc50765a43e.ts +116 -0
- package/test/buildOutputFiles.ts +49 -22
- package/test/child-component/child-component.test.ts +16 -9
- package/test/child-component/components/output/ChildComponent-client.ts +68 -0
- package/test/child-component/components/temp/ChildComponent-client-6033ce1f59fe1ce3f3dfb3d7845807e7f047b18d.ts +68 -0
- package/test/class/class.test.ts +57 -14
- package/test/class/components/output/Class-client.ts +7 -7
- package/test/class/components/temp/Class-client-a5e3f4dd7b0272d69b856f3ef4aa43b83bc2d849.ts +81 -0
- package/test/component/component.test.ts +16 -9
- package/test/component/components/output/Component-client.ts +33 -6
- package/test/component/components/output/Component-server.ts +17 -2
- package/test/component/components/temp/Component-client-ff200ee2a7a5f08d0473fddffa1f3ba5eb641d2a.ts +68 -0
- package/test/component/components/temp/Component-server-3fcb9457d9f0d0eefc9626801634751a83110f60.ts +42 -0
- package/test/console/components/output/Console-client.ts +1 -1
- package/test/console/components/temp/Console-client-216948ecb8660c46e6614dcfea02114ba9fd84f3.ts +32 -0
- package/test/console/console.test.ts +11 -8
- package/test/const/components/output/Const-client.ts +3 -3
- package/test/const/components/temp/Const-client-e15d20cc9c3e75577a7dee834a421883b18983de.ts +39 -0
- package/test/const/const.test.ts +13 -10
- package/test/context/components/output/Context-client.ts +106 -0
- package/test/context/components/output/Context-server.ts +69 -0
- package/test/context/components/temp/Context-client-b05948865340ce7743af46cb4400dc542e1e7260.ts +106 -0
- package/test/context/components/temp/Context-server-9c25c1e4456e2b24b5afd87ba27e55ca45308ef0.ts +69 -0
- package/test/context/context.test.ts +31 -9
- package/test/effects/components/output/ForEffect-client.ts +79 -0
- package/test/effects/components/output/IfEffect-client.ts +68 -0
- package/test/effects/components/output/NestedIfEffect-client.ts +95 -0
- package/test/effects/components/temp/ForEffect-client-b1cff64d6b44a881a4bcf4b1a3dee3fa64c9ec7b.ts +79 -0
- package/test/effects/components/temp/IfEffect-client-b2eb2a38dec9cad49b7d1103aab0d2c3324e569a.ts +68 -0
- package/test/effects/components/temp/NestedIfEffect-client-a75dd167f3469f4a5f6730445128d3eff956afe2.ts +95 -0
- package/test/effects/for-effect.test.ts +14 -11
- package/test/effects/if-effect.test.ts +16 -11
- package/test/effects/nested-if-effect.test.ts +21 -14
- package/test/events/components/output/Events-client.ts +49 -0
- package/test/events/components/output/Events-server.ts +26 -0
- package/test/events/components/temp/Events-client-af611081aa6cb1567461367daf3068df86c6ff23.ts +49 -0
- package/test/events/components/temp/Events-server-e9b3526168eb4472cc70f4afc89c69d2238defac.ts +26 -0
- package/test/events/events.test.ts +25 -10
- package/test/for/components/output/For-client.ts +25 -25
- package/test/for/components/output/ForAfterFor-client.ts +122 -0
- package/test/for/components/output/ForAfterFor-server.ts +27 -0
- package/test/for/components/output/ForAfterFor-types.ts +10 -0
- package/test/for/components/output/ForContainingFor-client.ts +117 -0
- package/test/for/components/output/ForContainingFor-server.ts +27 -0
- package/test/for/components/output/ForContainingFor-types.ts +10 -0
- package/test/for/components/output/ForContainingFunction-client.ts +89 -0
- package/test/for/components/output/ForContainingFunction-server.ts +29 -0
- package/test/for/components/output/ForContainingFunction-types.ts +10 -0
- package/test/for/components/output/ForContainingIf-client.ts +111 -0
- package/test/for/components/output/ForContainingIf-server.ts +27 -0
- package/test/for/components/output/ForContainingIf-types.ts +10 -0
- package/test/for/components/output/ForEscape-client.ts +35 -35
- package/test/for/components/output/ForIn-client.ts +25 -25
- package/test/for/components/output/ForOf-client.ts +25 -25
- package/test/for/components/temp/For-client-8fd92bf0c26cb8e97006a302104ebb2fdcd2e818.ts +81 -0
- package/test/for/components/temp/ForAfterFor-client-509955ddc13396ede05c9986a6dcc8bbebd00cf3.ts +122 -0
- package/test/for/components/temp/ForAfterFor-server-2e927aa1fb165ed46b798d930a62a9125486c2f1.ts +27 -0
- package/test/for/components/temp/ForAfterFor-types-443c279cbffc1d07b01b09349cfddc6c081be6bb.ts +10 -0
- package/test/for/components/temp/ForContainingFor-client-4f600c73a6583c84d981a82fae42332f983f0b36.ts +117 -0
- package/test/for/components/temp/ForContainingFor-server-5e9e48ef3a3a2f411e4261d8aef8d68ace4f941b.ts +27 -0
- package/test/for/components/temp/ForContainingFor-types-e29bd72e1a1b98bbd196088afb0d6296b8eb9014.ts +10 -0
- package/test/for/components/temp/ForContainingFunction-client-9bacc4a7214f2385d98b358d29443363f8b9e78d.ts +89 -0
- package/test/for/components/temp/ForContainingFunction-server-bce5cf9e382b61c9eee613c6377525c9b0446228.ts +29 -0
- package/test/for/components/temp/ForContainingFunction-types-16613a1611dfc0b949a78fadd771f6737de61703.ts +10 -0
- package/test/for/components/temp/ForContainingIf-client-92b3c13b0fbe3d7900c05dd2e833d8e51d1bc66c.ts +111 -0
- package/test/for/components/temp/ForContainingIf-server-77dc43708cb24365aa0e8e8a3e0249d699511684.ts +27 -0
- package/test/for/components/temp/ForContainingIf-types-16613a1611dfc0b949a78fadd771f6737de61703.ts +10 -0
- package/test/for/components/temp/ForEscape-client-29cdd1ae0528a32f5737295287489e9bbd42889d.ts +100 -0
- package/test/for/components/temp/ForIn-client-fffaa596adb40e4067931af81cc13fc971dd1813.ts +80 -0
- package/test/for/components/temp/ForOf-client-e6d0948fbd00bfbcbc7099f84331bc3d493abc28.ts +80 -0
- package/test/for/for-after-for.test.ts +56 -0
- package/test/for/for-containing-for.test.ts +46 -0
- package/test/for/for-containing-function.test.ts +47 -0
- package/test/for/for-containing-if.test.ts +48 -0
- package/test/for/for-escape.test.ts +20 -10
- package/test/for/for-in.test.ts +18 -11
- package/test/for/for-of.test.ts +18 -11
- package/test/for/for.test.ts +17 -10
- package/test/function/components/output/Function-client.ts +4 -4
- package/test/function/components/output/Function-server.ts +1 -1
- package/test/function/components/temp/Function-client-8ae7f26bcaee6b57251659efc2abcdfd9c0d30e1.ts +49 -0
- package/test/function/components/temp/Function-server-44ab0f134c3da5672c71e6bdabc92295af6afa85.ts +28 -0
- package/test/function/function.test.ts +19 -10
- package/test/helpers.ts +4 -4
- package/test/html/components/output/Html-client.ts +5 -5
- package/test/html/components/temp/Html-client-14bf031fae1c40ea86913ca71aee00b947d88b4d.ts +49 -0
- package/test/html/html.test.ts +17 -14
- package/test/if/components/output/ElseIfTrue-client.ts +78 -0
- package/test/if/components/output/ElseTrue-client.ts +78 -0
- package/test/if/components/output/IfAfterIf-client.ts +14 -12
- package/test/if/components/output/IfCache-client.ts +10 -9
- package/test/if/components/output/IfContainingFor-client.ts +109 -0
- package/test/if/components/output/IfContainingFor-server.ts +26 -0
- package/test/if/components/output/IfContainingFor-types.ts +10 -0
- package/test/if/components/output/IfContainingFunction-client.ts +70 -0
- package/test/if/components/output/IfContainingFunction-server.ts +27 -0
- package/test/if/components/output/IfContainingFunction-types.ts +10 -0
- package/test/if/components/output/IfContainingIf-client.ts +95 -0
- package/test/if/components/output/IfContainingIf-server.ts +28 -0
- package/test/if/components/output/IfContainingIf-types.ts +10 -0
- package/test/if/components/output/IfElseFalse-client.ts +68 -0
- package/test/if/components/output/IfElseTrue-client.ts +68 -0
- package/test/if/components/output/IfFalse-client.ts +9 -8
- package/test/if/components/output/IfNested-client.ts +14 -12
- package/test/if/components/temp/ElseIfTrue-client-e4ab334d09c6eb8190c00102160e5db88c14bef4.ts +78 -0
- package/test/if/components/temp/ElseIfTrue-server-d16c5f90da5cb991243d0ea131e7eb2a717d6515.ts +27 -0
- package/test/if/components/temp/ElseIfTrue-types-a492d2b6e8517f598befca7127cd514244239984.ts +10 -0
- package/test/if/components/temp/ElseTrue-client-e4ab334d09c6eb8190c00102160e5db88c14bef4.ts +78 -0
- package/test/if/components/temp/ElseTrue-server-d16c5f90da5cb991243d0ea131e7eb2a717d6515.ts +27 -0
- package/test/if/components/temp/ElseTrue-types-a492d2b6e8517f598befca7127cd514244239984.ts +10 -0
- package/test/if/components/temp/IfAfterIf-client-b12abbd827f186b231ce7669ce676f612c66220d.ts +89 -0
- package/test/if/components/temp/IfCache-client-d9e7265dbce9b89bf67f4d0eb33967c89a4bec3f.ts +73 -0
- package/test/if/components/temp/IfContainingFor-client-a1246616d908018a77caa27aca6f9fa63e325960.ts +109 -0
- package/test/if/components/temp/IfContainingFor-server-a54062a628b406040428c6a4b9b06067e02fe478.ts +26 -0
- package/test/if/components/temp/IfContainingFor-types-f93572daa0ecf537aabeba1277394d193fe39e9a.ts +10 -0
- package/test/if/components/temp/IfContainingFunction-client-1d8f1ce12f4098b425be18149d9c58ea9c4e8de6.ts +70 -0
- package/test/if/components/temp/IfContainingFunction-server-4666fe29a65d47a998a9357ca34453cf3210f239.ts +27 -0
- package/test/if/components/temp/IfContainingFunction-types-f93572daa0ecf537aabeba1277394d193fe39e9a.ts +10 -0
- package/test/if/components/temp/IfContainingIf-client-c92cd49733d7b28ccbc37ec62936a195020a7a10.ts +95 -0
- package/test/if/components/temp/IfContainingIf-server-ad5fe7a67235cce0e92432a72ceb278d168c9d7f.ts +28 -0
- package/test/if/components/temp/IfContainingIf-types-f93572daa0ecf537aabeba1277394d193fe39e9a.ts +10 -0
- package/test/if/components/temp/IfElseFalse-client-63cb84ef58ec24276372af50e9f213391d4c9d1c.ts +68 -0
- package/test/if/components/temp/IfElseFalse-server-fcb8e3008932399fb4cca53ef09bdd201030d3cb.ts +24 -0
- package/test/if/components/temp/IfElseFalse-types-e81080227f8f69ac1d81141d97a07e0a0e9391c1.ts +10 -0
- package/test/if/components/temp/IfElseTrue-client-63cb84ef58ec24276372af50e9f213391d4c9d1c.ts +68 -0
- package/test/if/components/temp/IfElseTrue-server-fcb8e3008932399fb4cca53ef09bdd201030d3cb.ts +24 -0
- package/test/if/components/temp/IfElseTrue-types-e81080227f8f69ac1d81141d97a07e0a0e9391c1.ts +10 -0
- package/test/if/components/temp/IfFalse-client-b8f2b5b8fe046cfbb48be281edf8a0e11f35db18.ts +62 -0
- package/test/if/components/temp/IfNested-client-c6e1a6f5db2525cfab93214e65ed624e76dfc504.ts +101 -0
- package/test/if/else-if-true.test.ts +27 -14
- package/test/if/else-true.test.ts +27 -14
- package/test/if/if-after-if.test.ts +24 -14
- package/test/if/if-cache.test.ts +23 -14
- package/test/if/if-containing-for.test.ts +65 -0
- package/test/if/if-containing-function.test.ts +57 -0
- package/test/if/if-containing-if.test.ts +67 -0
- package/test/if/if-else-false.test.ts +26 -14
- package/test/if/if-else-true.test.ts +26 -14
- package/test/if/if-false.test.ts +19 -14
- package/test/if/if-nested.test.ts +29 -14
- package/test/importComponent.ts +19 -8
- package/test/importComponentFromFile.ts +19 -0
- package/test/mount/components/output/Mount-client.ts +2 -2
- package/test/mount/components/output/Mount-server.ts +1 -1
- package/test/mount/components/temp/Mount-client-3465b845172e105e5114e495b85925e383711c11.ts +39 -0
- package/test/mount/components/temp/Mount-server-55416a0e5c937354b3777edfe04c3eeb149f843c.ts +25 -0
- package/test/mount/mount.test.ts +16 -9
- package/test/on-mount/components/output/OnMount-client.ts +2 -2
- package/test/on-mount/components/temp/OnMount-client-eae1a7ae40d1b402761ef6452e1da94f3da52209.ts +35 -0
- package/test/on-mount/on-mount.test.ts +11 -10
- package/test/party/1-declare-state.test.ts +14 -9
- package/test/party/10-on-mount.test.ts +18 -9
- package/test/party/12-props.test.ts +29 -9
- package/test/party/13-emit-to-parent.test.ts +31 -9
- package/test/party/14-slot.test.ts +33 -9
- package/test/party/15-slot-fallback.test.ts +33 -9
- package/test/party/16-context.test.ts +33 -9
- package/test/party/17-input-text.test.ts +15 -9
- package/test/party/18-input-checkbox.test.ts +17 -9
- package/test/party/19-input-radio.test.ts +20 -9
- package/test/party/2-update-state.test.ts +15 -9
- package/test/party/20-input-select.test.ts +29 -9
- package/test/party/3-computed-state.test.ts +17 -9
- package/test/party/4-minimal-template.test.ts +11 -10
- package/test/party/5-styling.test.ts +17 -9
- package/test/party/6-loop.test.ts +17 -9
- package/test/party/7-event-click.test.ts +19 -9
- package/test/party/8-dom-ref.test.ts +17 -9
- package/test/party/9-conditional.test.ts +33 -9
- package/test/party/components/output/ComputedState-client.ts +45 -0
- package/test/party/components/output/ComputedState-server.ts +27 -0
- package/test/party/components/output/Conditional-client.ts +105 -0
- package/test/party/components/output/Conditional-server.ts +42 -0
- package/test/party/components/output/Context-client.ts +88 -0
- package/test/party/components/output/Context-server.ts +53 -0
- package/test/party/components/output/DeclareState-client.ts +42 -0
- package/test/party/components/output/DeclareState-server.ts +24 -0
- package/test/party/components/output/DomRef-client.ts +40 -0
- package/test/party/components/output/DomRef-server.ts +26 -0
- package/test/party/components/output/EmitToParent-client.ts +89 -0
- package/test/party/components/output/EmitToParent-server.ts +56 -0
- package/test/party/components/output/EventClick-client.ts +49 -0
- package/test/party/components/output/EventClick-server.ts +28 -0
- package/test/party/components/output/InputCheckbox-client.ts +48 -0
- package/test/party/components/output/InputCheckbox-server.ts +24 -0
- package/test/party/components/output/InputRadio-client.ts +57 -0
- package/test/party/components/output/InputRadio-server.ts +25 -0
- package/test/party/components/output/InputSelect-client.ts +106 -0
- package/test/party/components/output/InputSelect-server.ts +36 -0
- package/test/party/components/output/InputText-client.ts +48 -0
- package/test/party/components/output/InputText-server.ts +25 -0
- package/test/party/components/output/Loop-client.ts +83 -0
- package/test/party/components/output/MinimalTemplate-client.ts +30 -0
- package/test/party/components/output/OnMount-client.ts +46 -0
- package/test/party/components/output/OnMount-server.ts +29 -0
- package/test/party/components/output/Props-client.ts +83 -0
- package/test/party/components/output/Props-server.ts +50 -0
- package/test/party/components/output/Slot-client.ts +89 -0
- package/test/party/components/output/Slot-server.ts +70 -0
- package/test/party/components/output/SlotFallback-client.ts +89 -0
- package/test/party/components/output/SlotFallback-server.ts +70 -0
- package/test/party/components/output/Styling-client.ts +30 -0
- package/test/party/components/output/UpdateState-client.ts +43 -0
- package/test/party/components/output/UpdateState-server.ts +25 -0
- package/test/party/components/temp/ComputedState-client-eef842f02b6aa7abda42221f86c5b973dd9de829.ts +45 -0
- package/test/party/components/temp/ComputedState-server-d8f17812ea8bb9218940e4abcfe49824ab16e8f7.ts +27 -0
- package/test/party/components/temp/Conditional-client-ed1ba6a97d722503560ffbb3dece1d9af5fbadd2.ts +105 -0
- package/test/party/components/temp/Conditional-server-d19a62e18b1e5340c2133d32c4c20d7b03acb275.ts +42 -0
- package/test/party/components/temp/Context-client-fd121c4a2766ee5b41caf79f485f5f11142e43e0.ts +88 -0
- package/test/party/components/temp/Context-server-e4140b5eff2774645270cd83276137f3deb9bf1b.ts +53 -0
- package/test/party/components/temp/DeclareState-client-ac001e93d902207dd1bfc6315be47947a4872212.ts +42 -0
- package/test/party/components/temp/DeclareState-server-6cd408635cfdd584fe908babcca131e1da65cf27.ts +24 -0
- package/test/party/components/temp/DomRef-client-6849a0bf523f0193b369591d543a2b52103e35b0.ts +40 -0
- package/test/party/components/temp/DomRef-server-a1c79cff631364be4aabe8892c08022135ee4fea.ts +26 -0
- package/test/party/components/temp/EmitToParent-client-02c78412e4cacc27cbc857d68d5a064474ccc882.ts +89 -0
- package/test/party/components/temp/EmitToParent-server-f5a5dac8cf1c9e443dd76797435942bf8ec687be.ts +56 -0
- package/test/party/components/temp/EventClick-client-4344b8012e6f6310b25c6b43d9f5991dc93037e8.ts +49 -0
- package/test/party/components/temp/EventClick-server-6caf88d4154969d1d5b502425ce67c07d2e4a79a.ts +28 -0
- package/test/party/components/temp/InputCheckbox-client-1caf209b10b5eaa74bf6eb9b7068b425e294e940.ts +48 -0
- package/test/party/components/temp/InputCheckbox-server-1d56579ca4fcd39e228c9f19fa4602774fcffbc4.ts +24 -0
- package/test/party/components/temp/InputRadio-client-a3d5bfe78006351fb9d1653ac8f24c193e4cf173.ts +57 -0
- package/test/party/components/temp/InputRadio-server-10fda5f41d12f9c23e38d6ea3f9d5c6da64e2d44.ts +25 -0
- package/test/party/components/temp/InputSelect-client-49f9978ab5f32d13ada9d1c3d7522cbafa4c3cc7.ts +106 -0
- package/test/party/components/temp/InputSelect-server-090193bc5786a342e83e566cd6c423478955368a.ts +36 -0
- package/test/party/components/temp/InputText-client-8ae588dfd76e4fd83614100be45513ab77a7357b.ts +48 -0
- package/test/party/components/temp/InputText-server-3a93651aa9f344c68ee65d638fc34f3361690ea9.ts +25 -0
- package/test/party/components/temp/Loop-client-d8be7f7caf99d17b048d915d2dbe1db97c44aecf.ts +83 -0
- package/test/party/components/temp/MinimalTemplate-client-727021df06e846bc9d184dfd7cfa2a3fd92556b1.ts +30 -0
- package/test/party/components/temp/OnMount-client-4725eee82d65a2a9e098a0aa0b04c0eb15617ca6.ts +46 -0
- package/test/party/components/temp/OnMount-server-cb12c3a94e5a15306e2c78aad4aa2ee1f9be3f05.ts +29 -0
- package/test/party/components/temp/Props-client-c126fe2030c202b8371f72d8395d0a210a0d67c2.ts +83 -0
- package/test/party/components/temp/Props-server-945071c89c88628544956a35d7f0cadc47caa955.ts +50 -0
- package/test/party/components/temp/Slot-client-573e4ca6d35aea12306749eb7377f20ac90292dc.ts +89 -0
- package/test/party/components/temp/Slot-server-aaffce53c1d9bac7d24eba6f2400fced2b7a9f7c.ts +70 -0
- package/test/party/components/temp/Slot-types-ea73d641565a4478759166f462206dd97c92cedd.ts +10 -0
- package/test/party/components/temp/SlotFallback-client-573e4ca6d35aea12306749eb7377f20ac90292dc.ts +89 -0
- package/test/party/components/temp/SlotFallback-server-aaffce53c1d9bac7d24eba6f2400fced2b7a9f7c.ts +70 -0
- package/test/party/components/temp/SlotFallback-types-ea73d641565a4478759166f462206dd97c92cedd.ts +10 -0
- package/test/party/components/temp/Styling-client-262de42541af3154966ba60eef7b04572ebbb2a7.ts +30 -0
- package/test/party/components/temp/UpdateState-client-394ff9d0df2e1b8ab85e7f851f4784787f129ed0.ts +43 -0
- package/test/party/components/temp/UpdateState-server-d1f8f1f61ece4bad87d20019006625ca03021226.ts +25 -0
- package/test/preact.test.ts +5 -5
- package/test/props/components/output/Reactive-client.ts +6 -6
- package/test/props/components/output/Reactive-server.ts +1 -1
- package/test/props/components/temp/Reactive-client-626575b72eeb6e7eafe7352f0acda1502b0c3d37.ts +75 -0
- package/test/props/components/temp/Reactive-server-738cf1237188d69c8cfa76ff3a8f3344f3512c78.ts +44 -0
- package/test/props/reactive.test.ts +21 -9
- package/test/replace/components/output/Replace-client.ts +7 -7
- package/test/replace/components/temp/Replace-client-81652c7f64437d91a034e7fe1de7cec08ccacd53.ts +57 -0
- package/test/replace/replace.test.ts +18 -13
- package/test/run/watch-array.test.ts +2 -2
- package/test/run/watch-defined-property.test.ts +2 -2
- package/test/run/watch-effect.test.ts +2 -2
- package/test/run/watch-function.test.ts +2 -2
- package/test/run/watch-getter.test.ts +2 -2
- package/test/run/watch-set-same-value.test.ts +2 -2
- package/test/slots/basic-slot.test.ts +22 -9
- package/test/slots/components/output/BasicSlot-client.ts +83 -0
- package/test/slots/components/output/BasicSlot-server.ts +55 -0
- package/test/slots/components/output/LetSlot-client.ts +133 -0
- package/test/slots/components/output/LetSlot-server.ts +60 -0
- package/test/slots/components/output/NamedSlot-client.ts +101 -0
- package/test/slots/components/output/NamedSlot-server.ts +70 -0
- package/test/slots/components/output/UnusedSlot-client.ts +70 -0
- package/test/slots/components/output/UnusedSlot-server.ts +45 -0
- package/test/slots/components/temp/BasicSlot-client-8a51c7a21638cc96da2b2766e46310d099687f8e.ts +83 -0
- package/test/slots/components/temp/BasicSlot-server-8d3adcd44f4a021022fcc289ce0529946f2d9bab.ts +55 -0
- package/test/slots/components/temp/LetSlot-client-2cd77fd4f84810a55926f0265a9b780516982d5b.ts +133 -0
- package/test/slots/components/temp/LetSlot-server-1c56e0f0ccc3c2bad37f89ed13bcdec58ac58ea7.ts +60 -0
- package/test/slots/components/temp/NamedSlot-client-f0b62a74a30ecb0d0fe715d56eb772a38fe13e87.ts +101 -0
- package/test/slots/components/temp/NamedSlot-server-48c68d96b467ea74ca8f2c87ef27292eaa0b4fbb.ts +70 -0
- package/test/slots/components/temp/UnusedSlot-client-b8794d03a1566ab0a7ec888b907dd94e685fcf52.ts +70 -0
- package/test/slots/components/temp/UnusedSlot-server-bc71b5741d284ecd3036cc177ff00f62002d20fa.ts +45 -0
- package/test/slots/let-slot.test.ts +27 -10
- package/test/slots/named-slot.test.ts +29 -9
- package/test/slots/unused-slot.test.ts +20 -9
- package/test/special-component/components/output/SpecialComponent-client.ts +128 -0
- package/test/special-component/components/output/SpecialComponent-server.ts +82 -0
- package/test/special-component/components/temp/SpecialComponent-client-1955ef6a59b67e29ea076ed28758625922ff7d7b.ts +128 -0
- package/test/special-component/components/temp/SpecialComponent-server-dfed8066f3d6cfc5bc0f13c7a575aa0d20a2fb31.ts +82 -0
- package/test/special-component/special-component.test.ts +37 -13
- package/test/special-element/components/output/SpecialElement-client.ts +39 -0
- package/test/special-element/components/temp/SpecialElement-client-56b2d385272626ac7c75ff7b2b6876ff2280d5db.ts +39 -0
- package/test/special-element/special-element.test.ts +17 -14
- package/test/special-head/components/output/SpecialHead-client.ts +25 -0
- package/test/special-head/components/temp/SpecialHead-client-1aeeecccf0bc9ef671d422cbac5b6e460ae3c18b.ts +25 -0
- package/test/special-head/special-head.test.ts +15 -14
- package/test/special-self/components/output/SpecialSelf-client.ts +77 -0
- package/test/special-self/components/temp/SpecialSelf-client-126d3318d9aee9b2e6309c0ae5b91b2e56e9e647.ts +77 -0
- package/test/special-self/special-self.test.ts +18 -14
- package/test/style/components/output/Style-client.ts +3 -3
- package/test/style/components/temp/Style-client-9fac281c13b602dd3c56709a922987a0a922f289.ts +35 -0
- package/test/style/style.test.ts +17 -14
- package/test/svg/components/output/Svg-client.ts +74 -0
- package/test/svg/components/temp/Svg-client-ce4c8c2bb0954f69797b74f29f97f0caa1f1efca.ts +74 -0
- package/test/svg/svg.test.ts +21 -14
- package/test/switch/components/output/Switch-client.ts +9 -8
- package/test/switch/components/temp/Switch-client-5e9c1cd0d99c95a53136b8647289c95d4475ed19.ts +91 -0
- package/test/switch/switch.test.ts +81 -0
- package/test/text/components/output/Text-client.ts +3 -6
- package/test/text/components/output/Text-server.ts +0 -3
- package/test/text/components/output/Text-types.ts +0 -3
- package/test/text/components/temp/Text-client-e8ac547ff02dd3514e6daaa3f194e955edfe7eb9.ts +41 -0
- package/test/text/components/temp/Text-server-2010bf7bc69e04835349a96f405394d2dc905f74.ts +21 -0
- package/test/text/components/temp/Text-types-8734fa84ea5e6d078b66a771ec48b821c954573f.ts +13 -0
- package/test/text/text.test.ts +21 -13
- package/test/watch/watch-nested-object.test.ts +1 -1
- package/test/watch/watch-null-object.test.ts +1 -1
- package/test/watch/watch-null-property.test.ts +1 -1
- package/test/watch/watch-simple-object.test.ts +1 -1
- package/test/watch/watch-undefined-object.test.ts +1 -1
- package/test/watch/watch-undefined-property.test.ts +1 -1
- package/test/watch-array/array-all-functions-unkeyed.test.ts +20 -11
- package/test/watch-array/array-all-functions.test.ts +21 -11
- package/test/watch-array/array-empty.test.ts +21 -12
- package/test/watch-array/array-entries.test.ts +22 -11
- package/test/watch-array/array-indexes.test.ts +22 -11
- package/test/watch-array/array-pop.test.ts +21 -12
- package/test/watch-array/array-push.test.ts +21 -12
- package/test/watch-array/array-reassign.test.ts +21 -12
- package/test/watch-array/array-reverse.test.ts +21 -12
- package/test/watch-array/array-set-object.test.ts +21 -12
- package/test/watch-array/array-set-property.test.ts +21 -12
- package/test/watch-array/array-shift.test.ts +21 -12
- package/test/watch-array/array-sort.test.ts +21 -12
- package/test/watch-array/array-splice-add.test.ts +21 -12
- package/test/watch-array/array-splice-delete-all.test.ts +21 -12
- package/test/watch-array/array-splice-delete-and-add.test.ts +21 -12
- package/test/watch-array/array-splice-delete-end.test.ts +21 -12
- package/test/watch-array/array-splice-delete.test.ts +21 -12
- package/test/watch-array/array-swap.test.ts +21 -12
- package/test/watch-array/array-unshift.test.ts +21 -12
- package/test/watch-array/array-update-assignment.test.ts +21 -12
- package/test/watch-array/components/output/ArrayAllFunctions-client.ts +80 -0
- package/test/watch-array/components/output/ArrayAllFunctionsUnkeyed-client.ts +80 -0
- package/test/watch-array/components/output/ArrayEmpty-client.ts +80 -0
- package/test/watch-array/components/output/ArrayEntries-client.ts +25 -25
- package/test/watch-array/components/output/ArrayIndexes-client.ts +25 -25
- package/test/watch-array/components/output/ArrayPop-client.ts +80 -0
- package/test/watch-array/components/output/ArrayPop-server.ts +22 -0
- package/test/watch-array/components/output/ArrayPop-types.ts +10 -0
- package/test/watch-array/components/output/ArrayPush-client.ts +80 -0
- package/test/watch-array/components/output/ArrayPush-server.ts +22 -0
- package/test/watch-array/components/output/ArrayPush-types.ts +10 -0
- package/test/watch-array/components/output/ArrayReassign-client.ts +80 -0
- package/test/watch-array/components/output/ArrayReassign-server.ts +22 -0
- package/test/watch-array/components/output/ArrayReassign-types.ts +10 -0
- package/test/watch-array/components/output/ArrayReverse-client.ts +80 -0
- package/test/watch-array/components/output/ArrayReverse-server.ts +22 -0
- package/test/watch-array/components/output/ArrayReverse-types.ts +10 -0
- package/test/watch-array/components/output/ArraySetObject-client.ts +80 -0
- package/test/watch-array/components/output/ArraySetObject-server.ts +22 -0
- package/test/watch-array/components/output/ArraySetObject-types.ts +10 -0
- package/test/watch-array/components/output/ArraySetProperty-client.ts +80 -0
- package/test/watch-array/components/output/ArraySetProperty-server.ts +22 -0
- package/test/watch-array/components/output/ArraySetProperty-types.ts +10 -0
- package/test/watch-array/components/output/ArrayShift-client.ts +80 -0
- package/test/watch-array/components/output/ArrayShift-server.ts +22 -0
- package/test/watch-array/components/output/ArrayShift-types.ts +10 -0
- package/test/watch-array/components/output/ArraySort-client.ts +80 -0
- package/test/watch-array/components/output/ArraySort-server.ts +22 -0
- package/test/watch-array/components/output/ArraySort-types.ts +10 -0
- package/test/watch-array/components/output/ArraySpliceAdd-client.ts +80 -0
- package/test/watch-array/components/output/ArraySpliceAdd-server.ts +22 -0
- package/test/watch-array/components/output/ArraySpliceAdd-types.ts +10 -0
- package/test/watch-array/components/output/ArraySpliceDelete-client.ts +80 -0
- package/test/watch-array/components/output/ArraySpliceDelete-server.ts +22 -0
- package/test/watch-array/components/output/ArraySpliceDelete-types.ts +10 -0
- package/test/watch-array/components/output/ArraySpliceDeleteAll-client.ts +80 -0
- package/test/watch-array/components/output/ArraySpliceDeleteAll-server.ts +22 -0
- package/test/watch-array/components/output/ArraySpliceDeleteAll-types.ts +10 -0
- package/test/watch-array/components/output/ArraySpliceDeleteAndAdd-client.ts +80 -0
- package/test/watch-array/components/output/ArraySpliceDeleteAndAdd-server.ts +22 -0
- package/test/watch-array/components/output/ArraySpliceDeleteAndAdd-types.ts +10 -0
- package/test/watch-array/components/output/ArraySpliceDeleteEnd-client.ts +80 -0
- package/test/watch-array/components/output/ArraySpliceDeleteEnd-server.ts +22 -0
- package/test/watch-array/components/output/ArraySpliceDeleteEnd-types.ts +10 -0
- package/test/watch-array/components/output/ArraySwap-client.ts +80 -0
- package/test/watch-array/components/output/ArraySwap-server.ts +22 -0
- package/test/watch-array/components/output/ArraySwap-types.ts +10 -0
- package/test/watch-array/components/output/ArrayUnshift-client.ts +80 -0
- package/test/watch-array/components/output/ArrayUnshift-server.ts +22 -0
- package/test/watch-array/components/output/ArrayUnshift-types.ts +10 -0
- package/test/watch-array/components/output/ArrayUpdateAssignment-client.ts +80 -0
- package/test/watch-array/components/output/ArrayUpdateAssignment-server.ts +22 -0
- package/test/watch-array/components/output/ArrayUpdateAssignment-types.ts +10 -0
- package/test/watch-array/components/temp/ArrayAllFunctions-client-bf2caf578a29ef32ca77f51ec2402c6034c219db.ts +80 -0
- package/test/watch-array/components/temp/ArrayAllFunctions-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +22 -0
- package/test/watch-array/components/temp/ArrayAllFunctions-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +10 -0
- package/test/watch-array/components/temp/ArrayAllFunctionsUnkeyed-client-9d10d33225715295edde4c036977dfbc57e3fda9.ts +80 -0
- package/test/watch-array/components/temp/ArrayEmpty-client-bf2caf578a29ef32ca77f51ec2402c6034c219db.ts +80 -0
- package/test/watch-array/components/temp/ArrayEmpty-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +22 -0
- package/test/watch-array/components/temp/ArrayEmpty-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +10 -0
- package/test/watch-array/components/temp/ArrayEntries-client-ef539f1f3238595af775cdcdf0fe43608e9e9162.ts +82 -0
- package/test/watch-array/components/temp/ArrayIndexes-client-e57339b7f87549f78154ccbaaf1a9b35d5844a5e.ts +80 -0
- package/test/watch-array/components/temp/ArrayPop-client-bf2caf578a29ef32ca77f51ec2402c6034c219db.ts +80 -0
- package/test/watch-array/components/temp/ArrayPop-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +22 -0
- package/test/watch-array/components/temp/ArrayPop-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +10 -0
- package/test/watch-array/components/temp/ArrayPush-client-bf2caf578a29ef32ca77f51ec2402c6034c219db.ts +80 -0
- package/test/watch-array/components/temp/ArrayPush-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +22 -0
- package/test/watch-array/components/temp/ArrayPush-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +10 -0
- package/test/watch-array/components/temp/ArrayReassign-client-bf2caf578a29ef32ca77f51ec2402c6034c219db.ts +80 -0
- package/test/watch-array/components/temp/ArrayReassign-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +22 -0
- package/test/watch-array/components/temp/ArrayReassign-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +10 -0
- package/test/watch-array/components/temp/ArrayReverse-client-bf2caf578a29ef32ca77f51ec2402c6034c219db.ts +80 -0
- package/test/watch-array/components/temp/ArrayReverse-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +22 -0
- package/test/watch-array/components/temp/ArrayReverse-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +10 -0
- package/test/watch-array/components/temp/ArraySetObject-client-bf2caf578a29ef32ca77f51ec2402c6034c219db.ts +80 -0
- package/test/watch-array/components/temp/ArraySetObject-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +22 -0
- package/test/watch-array/components/temp/ArraySetObject-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +10 -0
- package/test/watch-array/components/temp/ArraySetProperty-client-bf2caf578a29ef32ca77f51ec2402c6034c219db.ts +80 -0
- package/test/watch-array/components/temp/ArraySetProperty-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +22 -0
- package/test/watch-array/components/temp/ArraySetProperty-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +10 -0
- package/test/watch-array/components/temp/ArrayShift-client-bf2caf578a29ef32ca77f51ec2402c6034c219db.ts +80 -0
- package/test/watch-array/components/temp/ArrayShift-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +22 -0
- package/test/watch-array/components/temp/ArrayShift-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +10 -0
- package/test/watch-array/components/temp/ArraySort-client-bf2caf578a29ef32ca77f51ec2402c6034c219db.ts +80 -0
- package/test/watch-array/components/temp/ArraySort-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +22 -0
- package/test/watch-array/components/temp/ArraySort-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +10 -0
- package/test/watch-array/components/temp/ArraySpliceAdd-client-bf2caf578a29ef32ca77f51ec2402c6034c219db.ts +80 -0
- package/test/watch-array/components/temp/ArraySpliceAdd-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +22 -0
- package/test/watch-array/components/temp/ArraySpliceAdd-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +10 -0
- package/test/watch-array/components/temp/ArraySpliceDelete-client-bf2caf578a29ef32ca77f51ec2402c6034c219db.ts +80 -0
- package/test/watch-array/components/temp/ArraySpliceDelete-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +22 -0
- package/test/watch-array/components/temp/ArraySpliceDelete-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +10 -0
- package/test/watch-array/components/temp/ArraySpliceDeleteAll-client-bf2caf578a29ef32ca77f51ec2402c6034c219db.ts +80 -0
- package/test/watch-array/components/temp/ArraySpliceDeleteAll-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +22 -0
- package/test/watch-array/components/temp/ArraySpliceDeleteAll-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +10 -0
- package/test/watch-array/components/temp/ArraySpliceDeleteAndAdd-client-bf2caf578a29ef32ca77f51ec2402c6034c219db.ts +80 -0
- package/test/watch-array/components/temp/ArraySpliceDeleteAndAdd-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +22 -0
- package/test/watch-array/components/temp/ArraySpliceDeleteAndAdd-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +10 -0
- package/test/watch-array/components/temp/ArraySpliceDeleteEnd-client-bf2caf578a29ef32ca77f51ec2402c6034c219db.ts +80 -0
- package/test/watch-array/components/temp/ArraySpliceDeleteEnd-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +22 -0
- package/test/watch-array/components/temp/ArraySpliceDeleteEnd-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +10 -0
- package/test/watch-array/components/temp/ArraySwap-client-bf2caf578a29ef32ca77f51ec2402c6034c219db.ts +80 -0
- package/test/watch-array/components/temp/ArraySwap-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +22 -0
- package/test/watch-array/components/temp/ArraySwap-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +10 -0
- package/test/watch-array/components/temp/ArrayUnshift-client-bf2caf578a29ef32ca77f51ec2402c6034c219db.ts +80 -0
- package/test/watch-array/components/temp/ArrayUnshift-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +22 -0
- package/test/watch-array/components/temp/ArrayUnshift-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +10 -0
- package/test/watch-array/components/temp/ArrayUpdateAssignment-client-bf2caf578a29ef32ca77f51ec2402c6034c219db.ts +80 -0
- package/test/watch-array/components/temp/ArrayUpdateAssignment-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +22 -0
- package/test/watch-array/components/temp/ArrayUpdateAssignment-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +10 -0
- package/test/watch-object/components/output/WatchObject-client.ts +36 -0
- package/test/watch-object/components/temp/WatchObject-client-fa0eda21911b5d8674baa290bfdbd8329cbc7f08.ts +36 -0
- package/test/watch-object/watch-object.test.ts +19 -14
- package/tsdown.config.ts +1 -1
- package/dist/Component-C6Y3UwGs.d.cts +0 -11
- package/dist/Component-C6Y3UwGs.d.cts.map +0 -1
- package/dist/Component-d19HOoEw.d.ts +0 -11
- package/dist/Component-d19HOoEw.d.ts.map +0 -1
- package/dist/ServerSlotRender-BiG4xB8e.d.ts +0 -41
- package/dist/ServerSlotRender-BiG4xB8e.d.ts.map +0 -1
- package/dist/ServerSlotRender-COS6H8Yk.d.cts +0 -41
- package/dist/ServerSlotRender-COS6H8Yk.d.cts.map +0 -1
- package/dist/formatText-B0FXBdFT.js +0 -410
- package/dist/formatText-B0FXBdFT.js.map +0 -1
- package/dist/formatText-DufG5l83.cjs +0 -500
- package/dist/formatText-DufG5l83.cjs.map +0 -1
- package/src/compile/parse/ParseComponentStatus.ts +0 -29
- package/src/compile/types/SourceRange.ts +0 -4
- package/src/debug/printRanges.ts +0 -74
- package/src/motion/animate.ts +0 -54
- package/src/render/$batch.ts +0 -22
- package/src/render/$cache.ts +0 -34
- package/src/render/$mount.ts +0 -11
- package/src/render/$peek.ts +0 -14
- package/src/render/$run.ts +0 -30
- package/src/render/$unwrap.ts +0 -12
- package/src/render/$watch.ts +0 -43
- package/src/render/clearRange.ts +0 -63
- package/src/render/moveRange.ts +0 -14
- package/src/render/newRange.ts +0 -13
- package/src/render/popRange.ts +0 -6
- package/src/render/pushRange.ts +0 -26
- package/src/types/BuildOptions.ts +0 -21
- package/src/types/Range.ts +0 -19
- package/src/watch/trackEffect.ts +0 -71
- package/src/watch/trackProxyEffect.ts +0 -21
- package/src/watch/updateSignal.ts +0 -102
- package/test/attributes/components/Attributes.torp +0 -12
- package/test/attributes/components/temp/Attributes-client-9ed61e9998dac100aac3eb329c0fe7fff28a913d.ts +0 -38
- package/test/await/components/Await.torp +0 -31
- package/test/await/components/temp/Await-client-0d7c687e5e358a56842de5231393c368e3ceec73.ts +0 -111
- package/test/await/components/temp/Await-server-d9b0bd351ee7809f68bd86c8eb82e7f48b4711d5.ts +0 -38
- package/test/bench/components/temp/Bench-client-ccbc27f7bcd97e547fa09bc27f87b483e5fb5162.ts +0 -211
- package/test/bind/bind.test.ts +0 -55
- package/test/bind/component.test.ts +0 -45
- package/test/bind/components/BindComponent.torp +0 -14
- package/test/bind/components/BindText.torp +0 -14
- package/test/bind/components/temp/BindComponent-client-dec2fa31d2f61180b49259084b2cc73608d9dfeb.ts +0 -82
- package/test/bind/components/temp/BindComponent-server-d84c043390f513a6018b4463c9da8fff17197785.ts +0 -46
- package/test/bind/components/temp/BindText-client-4a899bd8a77d46dfa44ea88815cc590990cd1d45.ts +0 -53
- package/test/bind/components/temp/BindText-server-284367fdc908af89815cfb593d4bfc01db30f27a.ts +0 -23
- package/test/build-server/components/temp/IfNested-client-310998120f8c965d3ab916699173e4b44faebe8c.ts +0 -99
- package/test/child-component/components/ParentChild.torp +0 -11
- package/test/child-component/components/output/ParentChild-client.ts +0 -69
- package/test/child-component/components/temp/ParentChild-client-4f54913f71d760332bbc54c09827240bb020b1fa.ts +0 -69
- package/test/class/components/Class.torp +0 -47
- package/test/class/components/temp/Class-client-9e8da6a69f8795af9b180d1db1bd9f16820886ba.ts +0 -81
- package/test/component/components/Component.torp +0 -7
- package/test/component/components/Header.torp +0 -5
- package/test/component/components/output/Header-client.ts +0 -36
- package/test/component/components/output/Header-server.ts +0 -18
- package/test/component/components/output/Header-types.ts +0 -10
- package/test/component/components/temp/Component-client-18e68dd4956aa0a39a64061e21b0d379fe577124.ts +0 -41
- package/test/component/components/temp/Component-server-90896e6b74e2a126f374d067dad8aab30e618a6e.ts +0 -27
- package/test/component/components/temp/Header-client-55270c2ae3edb26dfdd07fcbb06bd5bc3d671cff.ts +0 -36
- package/test/component/components/temp/Header-server-268c10517d0abcb7dc7577acc226df495e0636c7.ts +0 -18
- package/test/component/components/temp/Header-types-c56a108c6fb5a22b8ae156936bc05e58eef199c2.ts +0 -10
- package/test/console/components/Console.torp +0 -7
- package/test/console/components/temp/Console-client-58a51b6842e5ce72a0476e8b45610deb4081567d.ts +0 -32
- package/test/const/components/Const.torp +0 -8
- package/test/const/components/temp/Const-client-d3ad39ce125ecbb4146070dca4271fa317164901.ts +0 -39
- package/test/context/components/ChildA.torp +0 -10
- package/test/context/components/ChildB.torp +0 -8
- package/test/context/components/Parent.torp +0 -11
- package/test/context/components/output/ChildA-client.ts +0 -43
- package/test/context/components/output/ChildA-server.ts +0 -21
- package/test/context/components/output/ChildA-types.ts +0 -10
- package/test/context/components/output/ChildB-client.ts +0 -32
- package/test/context/components/output/ChildB-server.ts +0 -20
- package/test/context/components/output/ChildB-types.ts +0 -10
- package/test/context/components/output/Parent-client.ts +0 -46
- package/test/context/components/output/Parent-server.ts +0 -33
- package/test/context/components/temp/ChildA-client-aff532cbefba57c045b1e46f17ef8d000c8a57e7.ts +0 -43
- package/test/context/components/temp/ChildA-server-7875ecf1de524d64b65442f9551357cb3d8406c8.ts +0 -21
- package/test/context/components/temp/ChildA-types-2ee15b25e68166d1574582f08e2280cbae948e5d.ts +0 -10
- package/test/context/components/temp/ChildB-client-f91667c6809e100f44401f8e4ac92ca2457f955e.ts +0 -32
- package/test/context/components/temp/ChildB-server-4e50197bcac7f277867eb384a9428bd71a1a481d.ts +0 -20
- package/test/context/components/temp/ChildB-types-531f67cfda5bd04468e827c14f9358a431853fc5.ts +0 -10
- package/test/context/components/temp/Parent-client-024253a71ed829c4a4af2a685551f0566ce9c990.ts +0 -46
- package/test/context/components/temp/Parent-server-23bd397e7c1d1abe774a217d2eccdd9794342526.ts +0 -33
- package/test/effects/components/For.torp +0 -7
- package/test/effects/components/If.torp +0 -9
- package/test/effects/components/NestedIf.torp +0 -11
- package/test/effects/components/output/For-client.ts +0 -79
- package/test/effects/components/output/If-client.ts +0 -67
- package/test/effects/components/output/NestedIf-client.ts +0 -93
- package/test/effects/components/temp/For-client-f532f1ee363da143e17a4c03cdfdeb8fb231b471.ts +0 -79
- package/test/effects/components/temp/If-client-55ae315d1e4e8a4beb0141bed27065752a967406.ts +0 -67
- package/test/effects/components/temp/NestedIf-client-6a3aa24e5601821dd884da50dd6f29a014fb4105.ts +0 -93
- package/test/events/components/Increment.torp +0 -19
- package/test/events/components/output/Increment-client.ts +0 -49
- package/test/events/components/output/Increment-server.ts +0 -26
- package/test/events/components/temp/Increment-client-1bcd6590718945f279fbf9ace53397d6cb0c5798.ts +0 -49
- package/test/events/components/temp/Increment-server-5c3613fa3049b61c78afc3421a5f7913f3f1a17d.ts +0 -26
- package/test/for/components/For.torp +0 -11
- package/test/for/components/ForEscape.torp +0 -14
- package/test/for/components/ForIn.torp +0 -11
- package/test/for/components/ForOf.torp +0 -11
- package/test/for/components/temp/For-client-9b3bfe804fafe13b51ef872cd22d05560ff8b534.ts +0 -81
- package/test/for/components/temp/ForEscape-client-a4ca70bc1efbad834b6532599a2709656126dc02.ts +0 -100
- package/test/for/components/temp/ForIn-client-798ce3de40acd8cf41bd768de216a94da368d44e.ts +0 -80
- package/test/for/components/temp/ForOf-client-e2f943a36ad6a3744fbed9a785650980c23dd2b8.ts +0 -80
- package/test/function/components/Function.torp +0 -13
- package/test/function/components/temp/Function-client-52e7497bab8bb30904b5483fb8b7c54889cbc38f.ts +0 -49
- package/test/function/components/temp/Function-server-df776ecd882d3092e095189f6a4993bd035f4dfd.ts +0 -28
- package/test/html/components/Html.torp +0 -7
- package/test/html/components/temp/Html-client-bf657455a7032b6954a27fca8e10c12626bb6cc9.ts +0 -49
- package/test/if/components/IfAfterIf.torp +0 -15
- package/test/if/components/IfCache.torp +0 -14
- package/test/if/components/IfElse.torp +0 -17
- package/test/if/components/IfElseIf.torp +0 -18
- package/test/if/components/IfFalse.torp +0 -10
- package/test/if/components/IfNested.torp +0 -19
- package/test/if/components/output/IfElse-client.ts +0 -67
- package/test/if/components/output/IfElseIf-client.ts +0 -77
- package/test/if/components/temp/IfAfterIf-client-81a15684c43a0fe4e17e3df9318c616631fb8ff8.ts +0 -87
- package/test/if/components/temp/IfCache-client-fe5987ab326c12977fed0b0aefc063ff5de2726a.ts +0 -72
- package/test/if/components/temp/IfElse-client-a24f8d0cc5b4bb3a436710170664865611ad353f.ts +0 -67
- package/test/if/components/temp/IfElseIf-client-82f3475956b6568a57317a403a3e0be561e8889f.ts +0 -77
- package/test/if/components/temp/IfFalse-client-895238468c443109683b1e68ffc90c0d97f3681f.ts +0 -61
- package/test/if/components/temp/IfNested-client-310998120f8c965d3ab916699173e4b44faebe8c.ts +0 -99
- package/test/mount/components/Mount.torp +0 -11
- package/test/mount/components/temp/Mount-client-6fa717b32323386e7bb7ef1c923ac505f1555383.ts +0 -39
- package/test/mount/components/temp/Mount-server-c1712e41936a50bfce050acf010a27fb33715582.ts +0 -25
- package/test/on-mount/components/OnMount.torp +0 -5
- package/test/on-mount/components/temp/OnMount-client-a4e4e0453bb3dc0adfe6a46ec685c44b8a25b47e.ts +0 -35
- package/test/party/components/AnswerButton.torp +0 -6
- package/test/party/components/AnswerButtonApp.torp +0 -21
- package/test/party/components/ColorSelect.torp +0 -24
- package/test/party/components/Colors.torp +0 -12
- package/test/party/components/Counter.torp +0 -14
- package/test/party/components/CssStyle.torp +0 -12
- package/test/party/components/DoubleCount.torp +0 -12
- package/test/party/components/FunnyButton.torp +0 -21
- package/test/party/components/FunnyButtonApp.torp +0 -9
- package/test/party/components/HelloWorld.torp +0 -5
- package/test/party/components/InputFocused.torp +0 -12
- package/test/party/components/InputHello.torp +0 -10
- package/test/party/components/IsAvailable.torp +0 -12
- package/test/party/components/Name.torp +0 -9
- package/test/party/components/NameUpdate.torp +0 -10
- package/test/party/components/PageTitle.torp +0 -13
- package/test/party/components/PickPill.torp +0 -15
- package/test/party/components/Time.torp +0 -17
- package/test/party/components/TrafficLight.torp +0 -28
- package/test/party/components/UserProfile.torp +0 -13
- package/test/party/components/UserProfileApp.torp +0 -12
- package/test/party/components/UserProfileContext.torp +0 -12
- package/test/party/components/UserProfileContextApp.torp +0 -18
- package/test/party/components/output/AnswerButton-client.ts +0 -34
- package/test/party/components/output/AnswerButton-server.ts +0 -17
- package/test/party/components/output/AnswerButton-types.ts +0 -10
- package/test/party/components/output/AnswerButtonApp-client.ts +0 -65
- package/test/party/components/output/AnswerButtonApp-server.ts +0 -42
- package/test/party/components/output/ColorSelect-client.ts +0 -106
- package/test/party/components/output/ColorSelect-server.ts +0 -36
- package/test/party/components/output/Colors-client.ts +0 -83
- package/test/party/components/output/Counter-client.ts +0 -49
- package/test/party/components/output/Counter-server.ts +0 -28
- package/test/party/components/output/CssStyle-client.ts +0 -30
- package/test/party/components/output/DoubleCount-client.ts +0 -45
- package/test/party/components/output/DoubleCount-server.ts +0 -27
- package/test/party/components/output/FunnyButton-client.ts +0 -42
- package/test/party/components/output/FunnyButton-server.ts +0 -33
- package/test/party/components/output/FunnyButton-types.ts +0 -10
- package/test/party/components/output/FunnyButtonApp-client.ts +0 -56
- package/test/party/components/output/FunnyButtonApp-server.ts +0 -40
- package/test/party/components/output/HelloWorld-client.ts +0 -30
- package/test/party/components/output/InputFocused-client.ts +0 -40
- package/test/party/components/output/InputFocused-server.ts +0 -26
- package/test/party/components/output/InputHello-client.ts +0 -48
- package/test/party/components/output/InputHello-server.ts +0 -25
- package/test/party/components/output/IsAvailable-client.ts +0 -48
- package/test/party/components/output/IsAvailable-server.ts +0 -24
- package/test/party/components/output/Name-client.ts +0 -42
- package/test/party/components/output/Name-server.ts +0 -24
- package/test/party/components/output/NameUpdate-client.ts +0 -43
- package/test/party/components/output/NameUpdate-server.ts +0 -25
- package/test/party/components/output/PageTitle-client.ts +0 -46
- package/test/party/components/output/PageTitle-server.ts +0 -29
- package/test/party/components/output/PickPill-client.ts +0 -57
- package/test/party/components/output/PickPill-server.ts +0 -25
- package/test/party/components/output/Time-client.ts +0 -50
- package/test/party/components/output/Time-server.ts +0 -33
- package/test/party/components/output/Time-types.ts +0 -10
- package/test/party/components/output/TrafficLight-client.ts +0 -104
- package/test/party/components/output/TrafficLight-server.ts +0 -42
- package/test/party/components/output/UserProfile-client.ts +0 -47
- package/test/party/components/output/UserProfile-server.ts +0 -23
- package/test/party/components/output/UserProfile-types.ts +0 -15
- package/test/party/components/output/UserProfileApp-client.ts +0 -49
- package/test/party/components/output/UserProfileApp-server.ts +0 -30
- package/test/party/components/output/UserProfileContext-client.ts +0 -45
- package/test/party/components/output/UserProfileContext-server.ts +0 -22
- package/test/party/components/output/UserProfileContext-types.ts +0 -10
- package/test/party/components/output/UserProfileContextApp-client.ts +0 -55
- package/test/party/components/output/UserProfileContextApp-server.ts +0 -36
- package/test/party/components/temp/AnswerButton-client-7177780ae1893d63f157696e8fd69457d2be7dae.ts +0 -34
- package/test/party/components/temp/AnswerButton-server-046732866b73d89e159611fefbe624d46c2b5fab.ts +0 -17
- package/test/party/components/temp/AnswerButton-types-7dc4d046e52be1e6cb46d6235ce7540bd3e7b2a5.ts +0 -10
- package/test/party/components/temp/AnswerButtonApp-client-4e1e446230bf19a6d15351ee85eef6d884cd8ae3.ts +0 -65
- package/test/party/components/temp/AnswerButtonApp-server-62fca6fe2548e137bad23a5eb275a26347487cf8.ts +0 -42
- package/test/party/components/temp/ColorSelect-client-e8b9847a6d173588f12e2edf9bb80b013cad45db.ts +0 -106
- package/test/party/components/temp/ColorSelect-server-70795372721a40a66a7c645a0739e05ebe92ace6.ts +0 -36
- package/test/party/components/temp/Colors-client-02829cd951ddad1017fb8bbc38105f0217a5c948.ts +0 -83
- package/test/party/components/temp/Counter-client-29835651186148b79e45df97a645ad89746539b3.ts +0 -49
- package/test/party/components/temp/Counter-server-44037f4e43afe66c1a2323ab228600c8d0c07034.ts +0 -28
- package/test/party/components/temp/CssStyle-client-ef6bb508854c44e6a2e0b6afe24354e778e16dd5.ts +0 -30
- package/test/party/components/temp/DoubleCount-client-5ff6544f8b35598d946cd79b84832c0fb8ecdad3.ts +0 -45
- package/test/party/components/temp/DoubleCount-server-debf090eddaf376df8779e033bcdb0388277958e.ts +0 -27
- package/test/party/components/temp/FunnyButton-client-e11fe0ccb1e1d8a5cc3494ec703821a87be30b48.ts +0 -42
- package/test/party/components/temp/FunnyButton-server-1a8ec64dfcb4ce3f57d49e93065214bfbcc08332.ts +0 -33
- package/test/party/components/temp/FunnyButton-types-7780d5c5dfe3ff2369f8e3c505616036cfcd3759.ts +0 -10
- package/test/party/components/temp/FunnyButtonApp-client-0ac296ea8c4d64c4cccb16cb60812bba773cae34.ts +0 -56
- package/test/party/components/temp/FunnyButtonApp-server-988d7be123837437c1cd83ec955af912b7f8c0ed.ts +0 -40
- package/test/party/components/temp/HelloWorld-client-bb60ff2a9b3e6be414458f0964428868abcc6c8b.ts +0 -30
- package/test/party/components/temp/InputFocused-client-28e89cbfa55a205bbb67379c7d72c9daa32e2b22.ts +0 -40
- package/test/party/components/temp/InputFocused-server-f2c33f77d036a13a539145aac92e69a13e5c244f.ts +0 -26
- package/test/party/components/temp/InputHello-client-94b5024f8b42ff650b22a8fcab4adabad5954b38.ts +0 -48
- package/test/party/components/temp/InputHello-server-b651f6b1b6d20f8db7f24c9aa2f9c7a6a98d2565.ts +0 -25
- package/test/party/components/temp/IsAvailable-client-2f4341d03fffd034ea6477cf98ac0984c3b48f19.ts +0 -48
- package/test/party/components/temp/IsAvailable-server-755235b8555a1b04422e65f78c2f568dbfbb0f6a.ts +0 -24
- package/test/party/components/temp/Name-client-aa921e496d4553c27489b7a104b369d7c042b10a.ts +0 -42
- package/test/party/components/temp/Name-server-17ed5d5d55f0e8dced9c2318901fa4fa752d3328.ts +0 -24
- package/test/party/components/temp/NameUpdate-client-a644414fb1d115facf07929340288114b47e82a7.ts +0 -43
- package/test/party/components/temp/NameUpdate-server-d5ee008860ddb688406b7c215b362cb6a7ae3dfb.ts +0 -25
- package/test/party/components/temp/PageTitle-client-6ac26df6766da904274c83151b7bea506173b166.ts +0 -46
- package/test/party/components/temp/PageTitle-server-a8756ac6e8d37cd1fddc5e587785188a2ddcad57.ts +0 -29
- package/test/party/components/temp/PickPill-client-d4d8a094e60fba2e2ce4f9b86bce6eecb35c7586.ts +0 -57
- package/test/party/components/temp/PickPill-server-863c275ffa01f0bea59aec7a62617fe3d64de0c4.ts +0 -25
- package/test/party/components/temp/Time-client-4be874ec1b0ba02833eaf8fc91db04ee135c6dc2.ts +0 -50
- package/test/party/components/temp/Time-server-b565c1796597a684c27ceb233fb6ba97c9e68b0c.ts +0 -33
- package/test/party/components/temp/Time-types-2bf6facfbb2d6e7de472d18760029afaefbb93e1.ts +0 -10
- package/test/party/components/temp/TrafficLight-client-fde946ab1dcedf0bc58ad66395ab7353b61ecd88.ts +0 -104
- package/test/party/components/temp/TrafficLight-server-7d314df847fb93f30306336686aebc7d733b7f2a.ts +0 -42
- package/test/party/components/temp/UserProfile-client-918160167576eda57d3f5c10821f121326434fc7.ts +0 -47
- package/test/party/components/temp/UserProfile-server-f2af9259f1673db9764940a79c8376ac6107a9a7.ts +0 -23
- package/test/party/components/temp/UserProfile-types-412089462c8dcc757d2f53e7ff8030296d3100c2.ts +0 -15
- package/test/party/components/temp/UserProfileApp-client-8aec52d853b05b770fe38d86f728704336a725f5.ts +0 -49
- package/test/party/components/temp/UserProfileApp-server-64a42a364541da400567ebd576cbc5f8a39b7b19.ts +0 -30
- package/test/party/components/temp/UserProfileContext-client-6a5b20d54444950be9d9ace5b18ac633a3a940e0.ts +0 -45
- package/test/party/components/temp/UserProfileContext-server-1babc15d4fcaeb42b317dd8b5f658fdb79ad9920.ts +0 -22
- package/test/party/components/temp/UserProfileContext-types-076b9fa0a87d3ca098884a003284050b36172cc6.ts +0 -10
- package/test/party/components/temp/UserProfileContextApp-client-c78122a89df250c38f3cabd9f83092e935d781dc.ts +0 -55
- package/test/party/components/temp/UserProfileContextApp-server-a0e9a8e842f94e587da700e5b0610335dcfa5d83.ts +0 -36
- package/test/props/components/Reactive.torp +0 -16
- package/test/props/components/temp/Reactive-client-ce85ee92aefc3d711232c6ec8b79d0f6c0d7b9be.ts +0 -75
- package/test/props/components/temp/Reactive-server-4f621a48a08889e1b4067f61d63f4dc2ad422560.ts +0 -44
- package/test/replace/components/Replace.torp +0 -9
- package/test/replace/components/temp/Replace-client-33026574cfdd565e54a36a7c335fe8947482f460.ts +0 -57
- package/test/slots/components/Article.torp +0 -11
- package/test/slots/components/Basic.torp +0 -9
- package/test/slots/components/Header.torp +0 -9
- package/test/slots/components/Let.torp +0 -11
- package/test/slots/components/List.torp +0 -11
- package/test/slots/components/Named.torp +0 -14
- package/test/slots/components/Unused.torp +0 -7
- package/test/slots/components/output/Article-client.ts +0 -46
- package/test/slots/components/output/Article-server.ts +0 -29
- package/test/slots/components/output/Article-types.ts +0 -10
- package/test/slots/components/output/Basic-client.ts +0 -51
- package/test/slots/components/output/Basic-server.ts +0 -35
- package/test/slots/components/output/Header-client.ts +0 -41
- package/test/slots/components/output/Header-server.ts +0 -23
- package/test/slots/components/output/Header-types.ts +0 -10
- package/test/slots/components/output/Let-client.ts +0 -60
- package/test/slots/components/output/Let-server.ts +0 -37
- package/test/slots/components/output/List-client.ts +0 -84
- package/test/slots/components/output/List-server.ts +0 -26
- package/test/slots/components/output/List-types.ts +0 -10
- package/test/slots/components/output/Named-client.ts +0 -64
- package/test/slots/components/output/Named-server.ts +0 -44
- package/test/slots/components/output/Unused-client.ts +0 -38
- package/test/slots/components/output/Unused-server.ts +0 -25
- package/test/slots/components/temp/Article-client-939fd695ec9564d416c1680b54ddb3066964cc89.ts +0 -46
- package/test/slots/components/temp/Article-server-a8234a25d52032abc1d1ad48f66b65904a33c82e.ts +0 -29
- package/test/slots/components/temp/Article-types-d3d960fbab7644ec2d90dfe39d908fbb65abaaa2.ts +0 -10
- package/test/slots/components/temp/Basic-client-0f7b10de026a6ae5b691be3814227832162c4ab1.ts +0 -51
- package/test/slots/components/temp/Basic-server-ed282e95697d448477249e4472731e62137a6e2f.ts +0 -35
- package/test/slots/components/temp/Header-client-f6e35c967b5ac01eb4a1a00373a5a2ea793205f2.ts +0 -41
- package/test/slots/components/temp/Header-server-c1b31b919bfe09f1c4b29b9727707552491c610a.ts +0 -23
- package/test/slots/components/temp/Header-types-c56a108c6fb5a22b8ae156936bc05e58eef199c2.ts +0 -10
- package/test/slots/components/temp/Let-client-b143435da62c03adc78abf22ffa77321bfa0064c.ts +0 -60
- package/test/slots/components/temp/Let-server-d6f219ca663f3db1a506054533f6d4ab8f0fd767.ts +0 -37
- package/test/slots/components/temp/List-client-2e2134b3dae44ad784b1da0e55dbc33eb8d3c7f1.ts +0 -84
- package/test/slots/components/temp/List-server-eb833ad2f15347f77193294b1fd6062b3bf64325.ts +0 -26
- package/test/slots/components/temp/List-types-fd59ad7d85c06e67ee766a2cf14a637dd129569e.ts +0 -10
- package/test/slots/components/temp/Named-client-eb1dff9abed47889adc7f63cc93ed6ebdffb51d5.ts +0 -64
- package/test/slots/components/temp/Named-server-624f94c0236240ee7fa369eaa3a2ac89eb790bf7.ts +0 -44
- package/test/slots/components/temp/Unused-client-03b8bd23f61020b9977bd875614b6b0c2c52dc00.ts +0 -38
- package/test/slots/components/temp/Unused-server-8774285a676281e07ff66f99d4235bd20bea10ec.ts +0 -25
- package/test/source-maps/components/Source.torp +0 -19
- package/test/source-maps/components/output/Source-client.ts +0 -71
- package/test/source-maps/components/output/Source-server.ts +0 -28
- package/test/source-maps/components/output/Source-types.ts +0 -10
- package/test/source-maps/components/temp/Source-client-5a64a2dcf1f8e50b0e175d5aef6b2980e46f07bd.ts +0 -71
- package/test/source-maps/components/temp/Source-server-593d42212a4999e0d3c6c0c4ed486950cfd37ffd.ts +0 -28
- package/test/source-maps/components/temp/Source-types-69770c124317e0a0fd6aeb3d4f331b50231452fa.ts +0 -10
- package/test/special-component/components/BigTitle.torp +0 -7
- package/test/special-component/components/Component.torp +0 -15
- package/test/special-component/components/SmallTitle.torp +0 -7
- package/test/special-component/components/output/BigTitle-client.ts +0 -36
- package/test/special-component/components/output/BigTitle-server.ts +0 -21
- package/test/special-component/components/output/BigTitle-types.ts +0 -10
- package/test/special-component/components/output/Component-client.ts +0 -74
- package/test/special-component/components/output/Component-server.ts +0 -45
- package/test/special-component/components/output/SmallTitle-client.ts +0 -36
- package/test/special-component/components/output/SmallTitle-server.ts +0 -21
- package/test/special-component/components/output/SmallTitle-types.ts +0 -10
- package/test/special-component/components/temp/BigTitle-client-3c747affe6dfc07f73232b9f377de47d7e5f8bb5.ts +0 -36
- package/test/special-component/components/temp/BigTitle-server-e400758bfe84a7ffb98aa2d96f6aed387b809241.ts +0 -21
- package/test/special-component/components/temp/BigTitle-types-cb6363da78f853772d3408240f32030d5e826859.ts +0 -10
- package/test/special-component/components/temp/Component-client-0f8b087e7164f683fc1af88b178638f51aa4ad2b.ts +0 -74
- package/test/special-component/components/temp/Component-server-182ab0d2f5120f217e55405e84106afb073a31d4.ts +0 -45
- package/test/special-component/components/temp/SmallTitle-client-f0f3227bab50bebb96a327101961d6496c4b6586.ts +0 -36
- package/test/special-component/components/temp/SmallTitle-server-714ee28840dafde47596814aad7232d2bf3940fe.ts +0 -21
- package/test/special-component/components/temp/SmallTitle-types-629b435eb6f9a402ff576511db3e1d150f8c612b.ts +0 -10
- package/test/special-element/components/Element.torp +0 -7
- package/test/special-element/components/output/Element-client.ts +0 -39
- package/test/special-element/components/temp/Element-client-23fef3e11ab8dc78463d8da4b349d4151a6823a8.ts +0 -39
- package/test/special-head/components/Head.torp +0 -5
- package/test/special-head/components/output/Head-client.ts +0 -25
- package/test/special-head/components/temp/Head-client-cee01a372b59ea6d708fa0a8036658ff586093e2.ts +0 -25
- package/test/special-self/components/Self.torp +0 -9
- package/test/special-self/components/output/Self-client.ts +0 -76
- package/test/special-self/components/temp/Self-client-fb940707018d8f13a018e34c7e032586eab56f97.ts +0 -76
- package/test/style/components/Style.torp +0 -7
- package/test/style/components/temp/Style-client-f321541fd176424a7e8dad3db90d0519ffeba0a9.ts +0 -35
- package/test/svg/components/Shape.torp +0 -12
- package/test/svg/components/output/Shape-client.ts +0 -73
- package/test/svg/components/temp/Shape-client-4194f6d0c068a021093dcaadf7b8b6fc9c189bf8.ts +0 -73
- package/test/switch/components/Switch.torp +0 -29
- package/test/switch/components/temp/Switch-client-96afd31d61d6e10e2e7f7d72873d7094ab6cdd16.ts +0 -90
- package/test/switch/switch-values.test.ts +0 -57
- package/test/text/components/Text.torp +0 -15
- package/test/text/components/temp/Text-client-4e4d536d08e0483bf1054070f48487474086be0f.ts +0 -44
- package/test/text/components/temp/Text-server-baea3dc3200f14f37125d3bba59c5463e220aeaa.ts +0 -24
- package/test/text/components/temp/Text-types-f9e6d77cf5a6def5aff78be41ebca3e8e6a54278.ts +0 -16
- package/test/watch-array/components/Array.torp +0 -14
- package/test/watch-array/components/ArrayEntries.torp +0 -15
- package/test/watch-array/components/ArrayIndexes.torp +0 -15
- package/test/watch-array/components/ArrayUnkeyed.torp +0 -13
- package/test/watch-array/components/output/Array-client.ts +0 -80
- package/test/watch-array/components/output/ArrayUnkeyed-client.ts +0 -80
- package/test/watch-array/components/temp/Array-client-0743e918c3ac7f3277c64809af70cfcb4e603518.ts +0 -80
- package/test/watch-array/components/temp/ArrayEntries-client-1d83a3ae4f02357d53d54daf47ffb12a739c5793.ts +0 -82
- package/test/watch-array/components/temp/ArrayIndexes-client-10f461700a0b52c1f7ef1f15b7818c472e60f7ef.ts +0 -80
- package/test/watch-array/components/temp/ArrayUnkeyed-client-4446d86d01138d783e9de03749386eb19ee16724.ts +0 -80
- package/test/watch-object/components/Watched.torp +0 -9
- package/test/watch-object/components/output/Watched-client.ts +0 -36
- package/test/watch-object/components/temp/Watched-client-7d20fcb742a33f59403d70d68afc9b9d1616a0dd.ts +0 -36
- /package/src/{render → ssr}/$serverBatch.ts +0 -0
- /package/src/{render → ssr}/$serverCache.ts +0 -0
- /package/src/{render → ssr}/$serverMount.ts +0 -0
- /package/src/{render → ssr}/$serverPeek.ts +0 -0
- /package/src/{render → ssr}/$serverRun.ts +0 -0
- /package/src/{render → ssr}/$serverUnwrap.ts +0 -0
- /package/src/{render → ssr}/$serverWatch.ts +0 -0
- /package/src/{render → watch}/$stream.ts +0 -0
- /package/test/child-component/components/output/{ParentChild-server.ts → ChildComponent-server.ts} +0 -0
- /package/test/child-component/components/output/{ParentChild-types.ts → ChildComponent-types.ts} +0 -0
- /package/test/child-component/components/temp/{ParentChild-server-ec2d2faa587fb40711072956f1eb4a4eed9510d3.ts → ChildComponent-server-ec2d2faa587fb40711072956f1eb4a4eed9510d3.ts} +0 -0
- /package/test/child-component/components/temp/{ParentChild-types-4d26850ef18600f398f7aa9c4502071349bf5624.ts → ChildComponent-types-4d26850ef18600f398f7aa9c4502071349bf5624.ts} +0 -0
- /package/test/context/components/output/{Parent-types.ts → Context-types.ts} +0 -0
- /package/test/context/components/temp/{Parent-types-e6be7d1cf118d7a8927af59db780010392966d01.ts → Context-types-e6be7d1cf118d7a8927af59db780010392966d01.ts} +0 -0
- /package/test/effects/components/output/{For-server.ts → ForEffect-server.ts} +0 -0
- /package/test/effects/components/output/{For-types.ts → ForEffect-types.ts} +0 -0
- /package/test/effects/components/output/{If-server.ts → IfEffect-server.ts} +0 -0
- /package/test/effects/components/output/{If-types.ts → IfEffect-types.ts} +0 -0
- /package/test/effects/components/output/{NestedIf-server.ts → NestedIfEffect-server.ts} +0 -0
- /package/test/effects/components/output/{NestedIf-types.ts → NestedIfEffect-types.ts} +0 -0
- /package/test/effects/components/temp/{For-server-3211305e6a2145f78bc3e14d2f26b7db0e192ec1.ts → ForEffect-server-3211305e6a2145f78bc3e14d2f26b7db0e192ec1.ts} +0 -0
- /package/test/effects/components/temp/{For-types-cfec41b41b054674bf8b01ce0e0003c8a6640a82.ts → ForEffect-types-cfec41b41b054674bf8b01ce0e0003c8a6640a82.ts} +0 -0
- /package/test/effects/components/temp/{If-server-81d8f48c6fcb57d99a18b394f8a6320adfb5f864.ts → IfEffect-server-81d8f48c6fcb57d99a18b394f8a6320adfb5f864.ts} +0 -0
- /package/test/effects/components/temp/{If-types-7b245b6e531e122e0d0cfb72903bb88223b98793.ts → IfEffect-types-7b245b6e531e122e0d0cfb72903bb88223b98793.ts} +0 -0
- /package/test/effects/components/temp/{NestedIf-server-78aa084b0f5ff89c543ce3287254bc3269450090.ts → NestedIfEffect-server-78aa084b0f5ff89c543ce3287254bc3269450090.ts} +0 -0
- /package/test/effects/components/temp/{NestedIf-types-0912466d777f52f3616557823a7e47f5901cb755.ts → NestedIfEffect-types-0912466d777f52f3616557823a7e47f5901cb755.ts} +0 -0
- /package/test/events/components/output/{Increment-types.ts → Events-types.ts} +0 -0
- /package/test/events/components/temp/{Increment-types-f259dd221aa967b0426746303f1f2c33aeeaf068.ts → Events-types-f259dd221aa967b0426746303f1f2c33aeeaf068.ts} +0 -0
- /package/test/if/components/output/{IfElseIf-server.ts → ElseIfTrue-server.ts} +0 -0
- /package/test/if/components/output/{IfElseIf-types.ts → ElseIfTrue-types.ts} +0 -0
- /package/test/if/components/{temp/IfElseIf-server-d16c5f90da5cb991243d0ea131e7eb2a717d6515.ts → output/ElseTrue-server.ts} +0 -0
- /package/test/if/components/{temp/IfElseIf-types-a492d2b6e8517f598befca7127cd514244239984.ts → output/ElseTrue-types.ts} +0 -0
- /package/test/if/components/output/{IfElse-server.ts → IfElseFalse-server.ts} +0 -0
- /package/test/if/components/output/{IfElse-types.ts → IfElseFalse-types.ts} +0 -0
- /package/test/if/components/{temp/IfElse-server-fcb8e3008932399fb4cca53ef09bdd201030d3cb.ts → output/IfElseTrue-server.ts} +0 -0
- /package/test/if/components/{temp/IfElse-types-e81080227f8f69ac1d81141d97a07e0a0e9391c1.ts → output/IfElseTrue-types.ts} +0 -0
- /package/test/party/components/output/{DoubleCount-types.ts → ComputedState-types.ts} +0 -0
- /package/test/party/components/output/{TrafficLight-types.ts → Conditional-types.ts} +0 -0
- /package/test/party/components/output/{UserProfileContextApp-types.ts → Context-types.ts} +0 -0
- /package/test/party/components/output/{Name-types.ts → DeclareState-types.ts} +0 -0
- /package/test/party/components/output/{InputFocused-types.ts → DomRef-types.ts} +0 -0
- /package/test/party/components/output/{AnswerButtonApp-types.ts → EmitToParent-types.ts} +0 -0
- /package/test/party/components/output/{Counter-types.ts → EventClick-types.ts} +0 -0
- /package/test/party/components/output/{IsAvailable-types.ts → InputCheckbox-types.ts} +0 -0
- /package/test/party/components/output/{PickPill-types.ts → InputRadio-types.ts} +0 -0
- /package/test/party/components/output/{ColorSelect-types.ts → InputSelect-types.ts} +0 -0
- /package/test/party/components/output/{InputHello-types.ts → InputText-types.ts} +0 -0
- /package/test/party/components/output/{Colors-server.ts → Loop-server.ts} +0 -0
- /package/test/party/components/output/{Colors-types.ts → Loop-types.ts} +0 -0
- /package/test/party/components/output/{HelloWorld-server.ts → MinimalTemplate-server.ts} +0 -0
- /package/test/party/components/output/{HelloWorld-types.ts → MinimalTemplate-types.ts} +0 -0
- /package/test/party/components/output/{PageTitle-types.ts → OnMount-types.ts} +0 -0
- /package/test/party/components/output/{UserProfileApp-types.ts → Props-types.ts} +0 -0
- /package/test/party/components/output/{FunnyButtonApp-types.ts → Slot-types.ts} +0 -0
- /package/test/party/components/{temp/FunnyButtonApp-types-ea73d641565a4478759166f462206dd97c92cedd.ts → output/SlotFallback-types.ts} +0 -0
- /package/test/party/components/output/{CssStyle-server.ts → Styling-server.ts} +0 -0
- /package/test/party/components/output/{CssStyle-types.ts → Styling-types.ts} +0 -0
- /package/test/party/components/output/{NameUpdate-types.ts → UpdateState-types.ts} +0 -0
- /package/test/party/components/temp/{DoubleCount-types-436bd75fe7808c3a30389aeb1740aea361aa8681.ts → ComputedState-types-436bd75fe7808c3a30389aeb1740aea361aa8681.ts} +0 -0
- /package/test/party/components/temp/{TrafficLight-types-d301a2317da01a215fc8e5222dc6ff87226fa250.ts → Conditional-types-d301a2317da01a215fc8e5222dc6ff87226fa250.ts} +0 -0
- /package/test/party/components/temp/{UserProfileContextApp-types-d04199ab7d43ecc12ceccb7a0bef7ff38ac1e8b1.ts → Context-types-d04199ab7d43ecc12ceccb7a0bef7ff38ac1e8b1.ts} +0 -0
- /package/test/party/components/temp/{Name-types-06f89338c785a1fd352ed7de3ebe02b30722760d.ts → DeclareState-types-06f89338c785a1fd352ed7de3ebe02b30722760d.ts} +0 -0
- /package/test/party/components/temp/{InputFocused-types-33da14c13216ca00edaa8f02508db21f5cd32d31.ts → DomRef-types-33da14c13216ca00edaa8f02508db21f5cd32d31.ts} +0 -0
- /package/test/party/components/temp/{AnswerButtonApp-types-10a6f55029e859366f9a3a73cdcdb3f63e89dbeb.ts → EmitToParent-types-10a6f55029e859366f9a3a73cdcdb3f63e89dbeb.ts} +0 -0
- /package/test/party/components/temp/{Counter-types-206b0704ee2e25f5f3198d716fa524295581c075.ts → EventClick-types-206b0704ee2e25f5f3198d716fa524295581c075.ts} +0 -0
- /package/test/party/components/temp/{IsAvailable-types-23d4e196c659901c347a7b3e5c9e4a6668234adb.ts → InputCheckbox-types-23d4e196c659901c347a7b3e5c9e4a6668234adb.ts} +0 -0
- /package/test/party/components/temp/{PickPill-types-526e2bb4c36ec1bed87eaf5722093a0eaefcd9d3.ts → InputRadio-types-526e2bb4c36ec1bed87eaf5722093a0eaefcd9d3.ts} +0 -0
- /package/test/party/components/temp/{ColorSelect-types-e652a36ebdd98e8c23a8de3156c4499023f09301.ts → InputSelect-types-e652a36ebdd98e8c23a8de3156c4499023f09301.ts} +0 -0
- /package/test/party/components/temp/{InputHello-types-ab629048402441fde9a292bc2d376c0deea482a8.ts → InputText-types-ab629048402441fde9a292bc2d376c0deea482a8.ts} +0 -0
- /package/test/party/components/temp/{Colors-server-7a462b2de89d0d49b878c794b874ddc1bc518c50.ts → Loop-server-7a462b2de89d0d49b878c794b874ddc1bc518c50.ts} +0 -0
- /package/test/party/components/temp/{Colors-types-075975e9b9074b49f96f99d660f0ee580546a630.ts → Loop-types-075975e9b9074b49f96f99d660f0ee580546a630.ts} +0 -0
- /package/test/party/components/temp/{HelloWorld-server-8ab84a3653ec59bd140782dcd7aea0d16abf0019.ts → MinimalTemplate-server-8ab84a3653ec59bd140782dcd7aea0d16abf0019.ts} +0 -0
- /package/test/party/components/temp/{HelloWorld-types-3c153ac7af343dbce6cb081f1ae1b4f85d7f0b10.ts → MinimalTemplate-types-3c153ac7af343dbce6cb081f1ae1b4f85d7f0b10.ts} +0 -0
- /package/test/party/components/temp/{PageTitle-types-dfb55ea9b607c89167dbd7538523a484a6eec300.ts → OnMount-types-dfb55ea9b607c89167dbd7538523a484a6eec300.ts} +0 -0
- /package/test/party/components/temp/{UserProfileApp-types-3e70c106e03c68b4aa06c2fe21dfeceffe7cc313.ts → Props-types-3e70c106e03c68b4aa06c2fe21dfeceffe7cc313.ts} +0 -0
- /package/test/party/components/temp/{CssStyle-server-781c357ad52d626180f766a0301a4ee05db4bdf1.ts → Styling-server-781c357ad52d626180f766a0301a4ee05db4bdf1.ts} +0 -0
- /package/test/party/components/temp/{CssStyle-types-f1ce4f0b03d404c70704f271ce9bfc5d5107346c.ts → Styling-types-f1ce4f0b03d404c70704f271ce9bfc5d5107346c.ts} +0 -0
- /package/test/party/components/temp/{NameUpdate-types-9c69805006d2d3bb457c5d4d87db8baeb431aeb6.ts → UpdateState-types-9c69805006d2d3bb457c5d4d87db8baeb431aeb6.ts} +0 -0
- /package/test/slots/components/output/{Basic-types.ts → BasicSlot-types.ts} +0 -0
- /package/test/slots/components/output/{Let-types.ts → LetSlot-types.ts} +0 -0
- /package/test/slots/components/output/{Named-types.ts → NamedSlot-types.ts} +0 -0
- /package/test/slots/components/output/{Unused-types.ts → UnusedSlot-types.ts} +0 -0
- /package/test/slots/components/temp/{Basic-types-709765786c453e34088db3e894a59fb3332d3ed1.ts → BasicSlot-types-709765786c453e34088db3e894a59fb3332d3ed1.ts} +0 -0
- /package/test/slots/components/temp/{Let-types-3d05614de77a23df63a3cc1873b27ce1b0148c58.ts → LetSlot-types-3d05614de77a23df63a3cc1873b27ce1b0148c58.ts} +0 -0
- /package/test/slots/components/temp/{Named-types-ed10fb6338eb9bd67281b9658bd7b10b572d346a.ts → NamedSlot-types-ed10fb6338eb9bd67281b9658bd7b10b572d346a.ts} +0 -0
- /package/test/slots/components/temp/{Unused-types-88f7e38611b4cae1067969cf702cde41422837ae.ts → UnusedSlot-types-88f7e38611b4cae1067969cf702cde41422837ae.ts} +0 -0
- /package/test/special-component/components/output/{Component-types.ts → SpecialComponent-types.ts} +0 -0
- /package/test/special-component/components/temp/{Component-types-196e5e5c55f61a9d24837f8de1fb9e9eeb2dd3f1.ts → SpecialComponent-types-196e5e5c55f61a9d24837f8de1fb9e9eeb2dd3f1.ts} +0 -0
- /package/test/special-element/components/output/{Element-server.ts → SpecialElement-server.ts} +0 -0
- /package/test/special-element/components/output/{Element-types.ts → SpecialElement-types.ts} +0 -0
- /package/test/special-element/components/temp/{Element-server-95a4f433ff0a417556de779629f99b39885c6671.ts → SpecialElement-server-95a4f433ff0a417556de779629f99b39885c6671.ts} +0 -0
- /package/test/special-element/components/temp/{Element-types-478aac6fcc8cc71dc587b534bb45ddcde069e2cb.ts → SpecialElement-types-478aac6fcc8cc71dc587b534bb45ddcde069e2cb.ts} +0 -0
- /package/test/special-head/components/output/{Head-server.ts → SpecialHead-server.ts} +0 -0
- /package/test/special-head/components/output/{Head-types.ts → SpecialHead-types.ts} +0 -0
- /package/test/special-head/components/temp/{Head-server-8a44ede68129efa2ee87425cec6e959e59bdd15b.ts → SpecialHead-server-8a44ede68129efa2ee87425cec6e959e59bdd15b.ts} +0 -0
- /package/test/special-head/components/temp/{Head-types-88772e6c9aefe7f65c342350ad45b29e7fa16604.ts → SpecialHead-types-88772e6c9aefe7f65c342350ad45b29e7fa16604.ts} +0 -0
- /package/test/special-self/components/output/{Self-server.ts → SpecialSelf-server.ts} +0 -0
- /package/test/special-self/components/output/{Self-types.ts → SpecialSelf-types.ts} +0 -0
- /package/test/special-self/components/temp/{Self-server-6693e5b04f32373b538a43e9e2070ce3a8384882.ts → SpecialSelf-server-6693e5b04f32373b538a43e9e2070ce3a8384882.ts} +0 -0
- /package/test/special-self/components/temp/{Self-types-d438955d6f42951942dfa72ec1b79ad4ee95e966.ts → SpecialSelf-types-d438955d6f42951942dfa72ec1b79ad4ee95e966.ts} +0 -0
- /package/test/svg/components/output/{Shape-server.ts → Svg-server.ts} +0 -0
- /package/test/svg/components/output/{Shape-types.ts → Svg-types.ts} +0 -0
- /package/test/svg/components/temp/{Shape-server-b9b60e589502533127c30e89967d9dec0828d1a5.ts → Svg-server-b9b60e589502533127c30e89967d9dec0828d1a5.ts} +0 -0
- /package/test/svg/components/temp/{Shape-types-70f9e311a005452b58286636c0dcb67a73e9fab4.ts → Svg-types-70f9e311a005452b58286636c0dcb67a73e9fab4.ts} +0 -0
- /package/test/watch-array/components/output/{Array-server.ts → ArrayAllFunctions-server.ts} +0 -0
- /package/test/watch-array/components/output/{Array-types.ts → ArrayAllFunctions-types.ts} +0 -0
- /package/test/watch-array/components/output/{ArrayUnkeyed-server.ts → ArrayAllFunctionsUnkeyed-server.ts} +0 -0
- /package/test/watch-array/components/output/{ArrayUnkeyed-types.ts → ArrayAllFunctionsUnkeyed-types.ts} +0 -0
- /package/test/watch-array/components/{temp/Array-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts → output/ArrayEmpty-server.ts} +0 -0
- /package/test/watch-array/components/{temp/Array-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts → output/ArrayEmpty-types.ts} +0 -0
- /package/test/watch-array/components/temp/{ArrayUnkeyed-server-322c441892520db8657a2a9d9d7e85f5c46794f2.ts → ArrayAllFunctionsUnkeyed-server-322c441892520db8657a2a9d9d7e85f5c46794f2.ts} +0 -0
- /package/test/watch-array/components/temp/{ArrayUnkeyed-types-6f544a6b354c46913b9ee0e843d0a6482af2745d.ts → ArrayAllFunctionsUnkeyed-types-6f544a6b354c46913b9ee0e843d0a6482af2745d.ts} +0 -0
- /package/test/watch-object/components/output/{Watched-server.ts → WatchObject-server.ts} +0 -0
- /package/test/watch-object/components/output/{Watched-types.ts → WatchObject-types.ts} +0 -0
- /package/test/watch-object/components/temp/{Watched-server-a31141b2d513f4d7244698e72f3888524fd8e55e.ts → WatchObject-server-a31141b2d513f4d7244698e72f3888524fd8e55e.ts} +0 -0
- /package/test/watch-object/components/temp/{Watched-types-70c7bde732f624bfbb8e353bf9d1be8dbaea63e1.ts → WatchObject-types-70c7bde732f624bfbb8e353bf9d1be8dbaea63e1.ts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formatText-B0FXBdFT.js","names":["context: Context","previousSub: Subscription | null","clearSub: Subscription | null","sourceSub: Subscription | null","context","sub: Subscription | null","lastSub: Subscription | null","nextSub: Subscription | null","context","targetSub: Subscription | null","sourceSub: Subscription | null","context","effectToClean: Effect | null","context","nextEffect: Effect","context","previousSub: Subscription | null","clearSub: Subscription | null","error: any","effect: Effect | null","context","signal: ProxySignal | null","context","context","context","computed: Computed","context","classes: string[]","styles: string[]"],"sources":["../src/render/context.ts","../src/types/constants.ts","../src/watch/clearSources.ts","../src/watch/deactivateSources.ts","../src/watch/trackEffect.ts","../src/watch/runComputed.ts","../src/watch/checkComputed.ts","../src/watch/checkSources.ts","../src/watch/runCleanups.ts","../src/watch/batchStart.ts","../src/watch/runEffect.ts","../src/watch/checkEffect.ts","../src/watch/clearTargets.ts","../src/watch/triggerEffects.ts","../src/watch/batchEnd.ts","../src/render/$batch.ts","../src/render/$cache.ts","../src/render/$peek.ts","../src/render/buildClasses.ts","../src/render/buildStyles.ts","../src/render/formatText.ts"],"sourcesContent":["import type Context from \"../types/Context\";\n\nconst context: Context = {\n\tactiveTarget: null,\n\tpreviousEffect: null,\n\textent: 0,\n\tbatch: 0,\n\tbatchOperation: 0,\n\tregisterComputed: null,\n\n\tfirstEffectToRun: null,\n\tfirstSignalToUpdate: null,\n\n\t// These will definitely be set, in mount or render\n\t// @ts-ignore\n\tactiveRange: null,\n\t// @ts-ignore\n\tpreviousRange: null,\n\t// @ts-ignore\n\trootRange: null,\n\n\tmountEffects: [],\n\tstashedEvents: [],\n\tstashedAnimations: [],\n\n\thydrationNode: null,\n\t//hn: null,\n\t//get hydrationNode() {\n\t//\treturn this.hn;\n\t//},\n\t//set hydrationNode(value) {\n\t//\tconsole.log(`set hydration ${printNode(value)}`);\n\t//\tthis.hn = value;\n\t//},\n};\n\nexport default context;\n","/**\n * The type of a Signal object.\n */\nexport const SIGNAL_TYPE = 0;\n\n/**\n * The type of a Computed object.\n */\nexport const COMPUTED_TYPE = 1;\n\n/**\n * The type of an Effect object.\n */\nexport const EFFECT_TYPE = 2;\n","import type Computed from \"../types/Computed\";\nimport type Effect from \"../types/Effect\";\nimport type Subscription from \"../types/Subscription\";\n\n/**\n * Clear unused source subscriptions after each Computed or Effect has been run.\n */\nexport default function clearSources(target: Computed | Effect): void {\n\tlet previousSub: Subscription | null = null;\n\tfor (\n\t\tlet clearSub: Subscription | null = target.firstSource;\n\t\tclearSub !== null;\n\t\tclearSub = clearSub.nextSource\n\t) {\n\t\tif (target.didError || !clearSub.active) {\n\t\t\t//console.log(\n\t\t\t//\t`clearing source sub ${clearSub.source.name} <-> ${clearSub.target.name} (${clearSub.name})`,\n\t\t\t//);\n\t\t\tif (previousSub === null) {\n\t\t\t\ttarget.firstSource = clearSub.nextSource;\n\t\t\t} else {\n\t\t\t\tpreviousSub.nextSource = clearSub.nextSource;\n\t\t\t}\n\n\t\t\t// Update the targets list too\n\t\t\tif (clearSub.previousTarget === null) {\n\t\t\t\tif (clearSub.source.firstTarget === clearSub) {\n\t\t\t\t\tclearSub.source.firstTarget = clearSub.nextTarget;\n\t\t\t\t}\n\t\t\t\t// TODO: else???\n\t\t\t} else {\n\t\t\t\tclearSub.previousTarget.nextTarget = clearSub.nextTarget;\n\t\t\t}\n\t\t} else {\n\t\t\tclearSub.recalc = false;\n\t\t\tpreviousSub = clearSub;\n\t\t}\n\t}\n}\n","import type Computed from \"../types/Computed\";\nimport type Effect from \"../types/Effect\";\nimport type Subscription from \"../types/Subscription\";\n\n/**\n * Sets source subscriptions to inactive for a Computed or Effect.\n */\nexport default function deactivateSources(target: Computed | Effect): void {\n\tfor (\n\t\tlet sourceSub: Subscription | null = target.firstSource;\n\t\tsourceSub !== null;\n\t\tsourceSub = sourceSub.nextSource\n\t) {\n\t\tsourceSub.active = false;\n\t\t//console.log(\n\t\t//\t`deactivating ${sourceSub.source.name} <-> ${sourceSub.target.name} (${sourceSub.name})`,\n\t\t//);\n\t}\n}\n","import context from \"../render/context\";\nimport type Computed from \"../types/Computed\";\nimport type ProxySignal from \"../types/ProxySignal\";\nimport type Subscription from \"../types/Subscription\";\n\n// TODO: Rename this to `subscribe` because its purpose has changed a bit\n\n/**\n * If there's an active target, subscribe it to this signal, so that it will be\n * run when the signal changes.\n */\nexport default function trackEffect(signal: ProxySignal | Computed): void {\n\tconst target = context.activeTarget;\n\tif (target !== null) {\n\t\tlet sub: Subscription | null = null;\n\t\tlet lastSub: Subscription | null = null;\n\n\t\t// Check if there's a sub we can re-use\n\t\t// TODO: Maybe we could be smarter with this\n\t\t// -- use the target sub instead?\n\t\t// -- do it differently on push vs pull??\n\t\tfor (\n\t\t\tlet nextSub: Subscription | null = signal.firstTarget;\n\t\t\tnextSub !== null;\n\t\t\tnextSub = nextSub.nextTarget\n\t\t) {\n\t\t\tlastSub = nextSub;\n\t\t\tif (nextSub.target === target) {\n\t\t\t\tsub = nextSub;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (sub === null) {\n\t\t\tsub = {\n\t\t\t\tsource: signal,\n\t\t\t\ttarget: target,\n\t\t\t\tpreviousTarget: lastSub,\n\t\t\t\tnextTarget: null,\n\t\t\t\tnextSource: null,\n\t\t\t\tactive: true,\n\t\t\t\trecalc: false,\n\t\t\t\t//name: dev.subName(),\n\t\t\t};\n\t\t\t//console.log(`creating sub '${signal.name}' => '${effect.name}' (${sub.name})`);\n\t\t\tif (lastSub === null) {\n\t\t\t\tsignal.firstTarget = sub;\n\t\t\t} else {\n\t\t\t\tlastSub.nextTarget = sub;\n\t\t\t}\n\n\t\t\tif (target.firstSource === null) {\n\t\t\t\ttarget.firstSource = sub;\n\t\t\t} else {\n\t\t\t\tlet lastEffectSub = target.firstSource;\n\t\t\t\tfor (\n\t\t\t\t\tlet nextSub: Subscription | null = lastEffectSub.nextSource;\n\t\t\t\t\tnextSub !== null;\n\t\t\t\t\tnextSub = nextSub.nextSource\n\t\t\t\t) {\n\t\t\t\t\tlastEffectSub = nextSub;\n\t\t\t\t}\n\t\t\t\tlastEffectSub.nextSource = sub;\n\t\t\t}\n\t\t} else {\n\t\t\t// We can re-use this subscription object\n\t\t\t//console.log(`re-using sub '${signal.name}' => '${effect.name}' (${sub.name})`);\n\t\t\tsub.active = true;\n\t\t}\n\t}\n}\n","import context from \"../render/context\";\nimport type Computed from \"../types/Computed\";\nimport trackEffect from \"./trackEffect\";\n\nexport default function runComputed<T>(computed: Computed<T>): T {\n\t//console.log(`running computed '${computed.name}'`);\n\n\t// Store the active target\n\tconst oldActiveTarget = context.activeTarget;\n\n\tcomputed.running = true;\n\tcomputed.didError = false;\n\n\ttry {\n\t\t// Set the active target, so that any properties accessed while running it\n\t\t// will trigger it in future\n\t\tcontext.activeTarget = computed;\n\n\t\t// Run the computed and gather its dependencies\n\t\tcomputed.value = computed.run();\n\t} catch (err) {\n\t\tcomputed.didError = true;\n\t\t// @ts-ignore\n\t\tcomputed.value = err;\n\t\tthrow err;\n\t} finally {\n\t\t// Set the active target back to what it was previously\n\t\tcontext.activeTarget = oldActiveTarget;\n\n\t\tcomputed.running = false;\n\t}\n\n\ttrackEffect(computed);\n\n\treturn computed.value;\n}\n","import type Computed from \"../types/Computed\";\nimport type Subscription from \"../types/Subscription\";\nimport checkSources from \"./checkSources\";\nimport clearSources from \"./clearSources\";\nimport deactivateSources from \"./deactivateSources\";\nimport runComputed from \"./runComputed\";\n\n/**\n * Checks whether a Computed value should be re-run (which will be true if any\n * of its sources have changed) and re-runs it if necessary.\n */\nexport default function checkComputed(computed: Computed): boolean {\n\tlet rerun = checkSources(computed);\n\n\tlet changed = false;\n\n\tif (rerun) {\n\t\t// Set source subscriptions to inactive\n\t\tdeactivateSources(computed);\n\n\t\t// Run the computed, which will reset subscriptions\n\t\tconst oldValue = computed.value;\n\t\trunComputed(computed);\n\t\tchanged = computed.value !== oldValue;\n\n\t\t// Clear unused source subscriptions\n\t\tclearSources(computed);\n\t}\n\n\tcomputed.recalc = false;\n\n\t// If it hasn't changed, all of its target subscriptions remain active and\n\t// don't need to be recalculated\n\tif (!changed) {\n\t\tfor (\n\t\t\tlet targetSub: Subscription | null = computed.firstTarget;\n\t\t\ttargetSub !== null;\n\t\t\ttargetSub = targetSub.nextTarget\n\t\t) {\n\t\t\ttargetSub.active = true;\n\t\t\ttargetSub.recalc = false;\n\t\t}\n\t}\n\n\treturn changed;\n}\n","import context from \"../render/context\";\nimport type Computed from \"../types/Computed\";\nimport type Effect from \"../types/Effect\";\nimport type Subscription from \"../types/Subscription\";\nimport { COMPUTED_TYPE, SIGNAL_TYPE } from \"../types/constants\";\nimport checkComputed from \"./checkComputed\";\n\n// RECURSIVE\n\n/**\n * Checks whether a Computed or Effect should be re-run (which will be true if\n * any of its sources have changed).\n */\nexport default function checkSources(target: Computed | Effect): boolean {\n\t// NOTE: We bail early if we know the target needs to be re-run; subsequent\n\t// computed values will be computed in the proxy getter\n\n\t// Check signals first as it's cheap, then computed values\n\tlet haveComputed = false;\n\n\tfor (\n\t\tlet sourceSub: Subscription | null = target.firstSource;\n\t\tsourceSub !== null;\n\t\tsourceSub = sourceSub.nextSource\n\t) {\n\t\t//console.log(`checking source sub '${sourceSub.source.name}' (${sourceSub.name})`);\n\t\tif (sourceSub.recalc) {\n\t\t\tif (sourceSub.source.type === SIGNAL_TYPE) {\n\t\t\t\treturn true;\n\t\t\t} /* else if (sourceSub.source.type === COMPUTED_TYPE) */ else {\n\t\t\t\tif (sourceSub.source.recalc) {\n\t\t\t\t\thaveComputed = true;\n\t\t\t\t} else {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tif (haveComputed) {\n\t\tfor (\n\t\t\tlet sourceSub: Subscription | null = target.firstSource;\n\t\t\tsourceSub !== null;\n\t\t\tsourceSub = sourceSub.nextSource\n\t\t) {\n\t\t\t//console.log(`checking source sub '${sourceSub.source.name}' (${sourceSub.name})`);\n\t\t\tif (sourceSub.recalc && sourceSub.source.type === COMPUTED_TYPE && sourceSub.source.recalc) {\n\t\t\t\tconst oldActiveTarget = context.activeTarget;\n\t\t\t\tcontext.activeTarget = target;\n\n\t\t\t\tconst recalc = checkComputed(sourceSub.source);\n\n\t\t\t\tcontext.activeTarget = oldActiveTarget;\n\n\t\t\t\tif (recalc) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn false;\n}\n","import context from \"../render/context\";\nimport type Effect from \"../types/Effect\";\nimport clearSources from \"./clearSources\";\n\n/**\n * Runs cleanup functions for the effect and its children.\n */\nexport default function runCleanups(effect: Effect): void {\n\tlet effectToClean: Effect | null = effect;\n\tfor (let i = 0; i < effect.extent; i++) {\n\t\tif (typeof effectToClean.cleanup === \"function\") {\n\t\t\t//console.log(`cleaning effect '${effectToClean.name}'`);\n\t\t\tconst oldActiveTarget = context.activeTarget;\n\t\t\tcontext.activeTarget = null;\n\n\t\t\ttry {\n\t\t\t\teffectToClean.cleanup();\n\t\t\t} catch (err) {\n\t\t\t\teffectToClean.didError = true;\n\t\t\t\tclearSources(effectToClean);\n\t\t\t\tthrow err;\n\t\t\t} finally {\n\t\t\t\teffectToClean.cleanup = undefined;\n\t\t\t\tcontext.activeTarget = oldActiveTarget;\n\t\t\t}\n\t\t}\n\n\t\tconst nextEffect: Effect = effectToClean.nextEffect!;\n\n\t\t// If it's a child effect that has been triggered, clean it up\n\t\t// and remove it from the list of effects to run (it may get\n\t\t// re-created with the parent)\n\t\tif (i !== 0 && effect.nextEffectToRun === effectToClean) {\n\t\t\teffect.nextEffectToRun = effectToClean.nextEffectToRun;\n\t\t\teffectToClean.nextEffect = effectToClean.nextEffectToRun = null;\n\t\t}\n\n\t\teffectToClean = nextEffect;\n\t}\n}\n","import context from \"../render/context\";\n\nexport default function batchStart(): void {\n\tcontext.batch++;\n}\n","import context from \"../render/context\";\nimport type Effect from \"../types/Effect\";\nimport batchEnd from \"./batchEnd\";\nimport batchStart from \"./batchStart\";\nimport clearSources from \"./clearSources\";\n\nexport default function runEffect(effect: Effect): void {\n\t//console.log(`running effect '${effect.name}'`);\n\n\t// Store the active target\n\tconst oldActiveTarget = context.activeTarget;\n\tconst oldExtent = context.extent;\n\n\teffect.didError = false;\n\n\tbatchStart();\n\n\ttry {\n\t\t// Set the next effect for navigating through\n\t\tif (context.previousEffect !== null) {\n\t\t\tcontext.previousEffect.nextEffect = effect;\n\t\t}\n\n\t\t// Set the active effect, so that any properties accessed while running it\n\t\t// will trigger it in future\n\t\tcontext.activeTarget = effect;\n\t\tcontext.previousEffect = effect;\n\t\tcontext.extent = 1;\n\n\t\t// Run the effect to register its subscriptions and get its (optional)\n\t\t// cleanup function\n\t\teffect.cleanup = effect.run();\n\n\t\teffect.extent = context.extent;\n\t} catch (err) {\n\t\teffect.didError = true;\n\t\tclearSources(effect);\n\t\tthrow err;\n\t} finally {\n\t\t// Set the active target back to what it was previously\n\t\tcontext.activeTarget = oldActiveTarget;\n\t\tcontext.extent += oldExtent - 1;\n\n\t\tbatchEnd();\n\t}\n}\n","import type Effect from \"../types/Effect\";\nimport checkSources from \"./checkSources\";\nimport clearSources from \"./clearSources\";\nimport deactivateSources from \"./deactivateSources\";\nimport runCleanups from \"./runCleanups\";\nimport runEffect from \"./runEffect\";\n\n/**\n * Checks whether an Effect should be re-run (which will be true if any\n * of its sources have changed) and re-runs it if necessary.\n */\nexport default function checkEffect(effect: Effect): void {\n\t//console.log(`checking effect '${effect.name}'`);\n\n\tlet rerun = checkSources(effect);\n\n\tif (rerun) {\n\t\t//console.log(`running effect '${String(effect.run)}'`);\n\n\t\t// Run cleanup functions for the effect and its children\n\t\trunCleanups(effect);\n\n\t\t// Set source subscriptions to inactive\n\t\tdeactivateSources(effect);\n\n\t\t// Run the effect, which will reset subscriptions\n\t\trunEffect(effect);\n\n\t\t// Clear unused source subscriptions\n\t\tclearSources(effect);\n\t}\n}\n","import type Computed from \"../types/Computed\";\nimport type ProxySignal from \"../types/ProxySignal\";\nimport type Subscription from \"../types/Subscription\";\n\n/**\n * Clear unused target subscriptions after all Effects have been run.\n */\nexport default function clearTargets(source: ProxySignal | Computed): void {\n\tlet previousSub: Subscription | null = null;\n\tfor (\n\t\tlet clearSub: Subscription | null = source.firstTarget;\n\t\tclearSub !== null;\n\t\tclearSub = clearSub.nextTarget\n\t) {\n\t\tif (!clearSub.active) {\n\t\t\t//console.log(\n\t\t\t//\t`clearing target sub ${clearSub.source.name} <-> ${clearSub.target.name} (${clearSub.name})`,\n\t\t\t//);\n\t\t\tif (previousSub === null) {\n\t\t\t\tsource.firstTarget = clearSub.nextTarget;\n\t\t\t} else {\n\t\t\t\tpreviousSub.nextTarget = clearSub.nextTarget;\n\t\t\t}\n\t\t} else {\n\t\t\tpreviousSub = clearSub;\n\t\t}\n\t}\n}\n","import context from \"../render/context\";\nimport type Effect from \"../types/Effect\";\nimport type ProxySignal from \"../types/ProxySignal\";\nimport checkEffect from \"./checkEffect\";\nimport clearTargets from \"./clearTargets\";\n\n/**\n * Runs the effects that have been collected during the batch.\n */\nexport default function triggerEffects(): void {\n\t//console.log(`triggering effects for '${String(key)}' on`, proxy);\n\t//console.log(\"===\");\n\t//console.log(`triggering effects for '${String(key)}'`);\n\n\tlet didError = false;\n\tlet error: any;\n\n\t// Run the effects\n\tlet effect: Effect | null = context.firstEffectToRun;\n\twhile (effect !== null) {\n\t\tcontext.batchOperation++;\n\n\t\ttry {\n\t\t\tcheckEffect(effect);\n\t\t} catch (err) {\n\t\t\tif (!didError) {\n\t\t\t\tdidError = true;\n\t\t\t\terror = err;\n\t\t\t}\n\t\t}\n\n\t\teffect = effect.nextEffectToRun;\n\t}\n\n\t// Clear the effects\n\teffect = context.firstEffectToRun;\n\tcontext.firstEffectToRun = null;\n\twhile (effect !== null) {\n\t\tlet nextEffect = effect.nextEffectToRun;\n\t\teffect.nextEffectToRun = null;\n\t\teffect = nextEffect;\n\t}\n\n\t// Clear unused target subscriptions for the signals that were updated\n\t// during the batch\n\tlet signal: ProxySignal | null = context.firstSignalToUpdate;\n\tcontext.firstSignalToUpdate = null;\n\twhile (signal !== null) {\n\t\tclearTargets(signal);\n\n\t\tconst nextSignal = signal.nextSignalToUpdate;\n\t\tsignal.nextSignalToUpdate = null;\n\t\tsignal = nextSignal;\n\t}\n\n\tif (didError) {\n\t\tthrow error;\n\t}\n}\n","import context from \"../render/context\";\nimport triggerEffects from \"./triggerEffects\";\n\nexport default function batchEnd(): void {\n\tif (context.batch > 1) {\n\t\tcontext.batch--;\n\t\treturn;\n\t}\n\n\ttry {\n\t\ttriggerEffects();\n\t} finally {\n\t\tcontext.batch = 0;\n\t\tcontext.batchOperation = 0;\n\t\tcontext.previousEffect = null;\n\t}\n}\n","import batchEnd from \"../watch/batchEnd\";\nimport batchStart from \"../watch/batchStart\";\nimport context from \"./context\";\n\n/**\n * Runs updates to proxy values in a batch, where the updates are stored in\n * context, and dependent effects are run all at once at the end.\n *\n * @param fn The function containing the batched updates to run.\n */\nexport default function $batch<T>(fn: () => T): T {\n\tif (context.batch > 0) {\n\t\treturn fn();\n\t}\n\n\tbatchStart();\n\ttry {\n\t\treturn fn();\n\t} finally {\n\t\tbatchEnd();\n\t}\n}\n","import type Computed from \"../types/Computed\";\nimport { COMPUTED_TYPE } from \"../types/constants\";\nimport runComputed from \"../watch/runComputed\";\nimport context from \"./context\";\n\n/**\n * Caches a computed value from signals accessed in a property getter.\n *\n * @param fn The function containing the signals to compute and cache.\n */\nexport default function $cache<T>(fn: () => T): T {\n\tif (context.registerComputed === null) {\n\t\tthrow new Error(\"$cache must be used in a getter\");\n\t}\n\n\tlet computed: Computed = {\n\t\ttype: COMPUTED_TYPE,\n\t\tvalue: null,\n\t\trun: fn,\n\t\tfirstSource: null,\n\t\tfirstTarget: null,\n\t\trecalc: false,\n\t\trunning: false,\n\t\tdidError: false,\n\t\trollback: null,\n\t\t//name: dev.effectName(fn),\n\t};\n\n\tcontext.registerComputed(computed);\n\n\trunComputed(computed);\n\n\treturn computed.value;\n}\n","import context from \"./context\";\n\n// Not sure if this is a good idea?\n\nexport default function $peek<T>(fn: () => T): T {\n\tconst oldActiveTarget = context.activeTarget;\n\tcontext.activeTarget = null;\n\n\tconst result = fn();\n\n\tcontext.activeTarget = oldActiveTarget;\n\n\treturn result;\n}\n","export default function buildClasses(value: unknown, styleHash?: string): string {\n\tif (typeof value === \"string\") {\n\t\tif (styleHash !== undefined) {\n\t\t\tvalue += \" \" + styleHash;\n\t\t}\n\t\treturn value;\n\t} else {\n\t\tlet classes: string[] = [];\n\t\tgatherNames(\"\", value, classes);\n\t\tif (styleHash !== undefined) {\n\t\t\tclasses.push(styleHash);\n\t\t}\n\t\treturn classes.join(\" \");\n\t}\n}\n\nfunction gatherNames(name: unknown, value: unknown, classes: string[]) {\n\tif (value) {\n\t\tif (Array.isArray(value)) {\n\t\t\tfor (let v of value) {\n\t\t\t\tgatherNames(v, v, classes);\n\t\t\t}\n\t\t} else if (typeof value === \"object\") {\n\t\t\tfor (let [n, v] of Object.entries(value)) {\n\t\t\t\tgatherNames(n, v, classes);\n\t\t\t}\n\t\t} else {\n\t\t\tclasses.push(name as string);\n\t\t}\n\t}\n}\n","export default function buildStyles(value: unknown): string {\n\tif (typeof value === \"string\") {\n\t\treturn value;\n\t} else {\n\t\tlet styles: string[] = [];\n\t\tif (value) {\n\t\t\tif (Array.isArray(value)) {\n\t\t\t\tfor (let v of value) {\n\t\t\t\t\tstyles.push(v);\n\t\t\t\t}\n\t\t\t} else if (typeof value === \"object\") {\n\t\t\t\tfor (let [n, v] of Object.entries(value)) {\n\t\t\t\t\tstyles.push(`${n}: ${v}`);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn styles.join(\"; \");\n\t}\n}\n","export default function formatText(value: any): string {\n\treturn value ?? \"\";\n}\n"],"mappings":";AAEA,MAAMA,UAAmB;CACxB,cAAc;CACd,gBAAgB;CAChB,QAAQ;CACR,OAAO;CACP,gBAAgB;CAChB,kBAAkB;CAElB,kBAAkB;CAClB,qBAAqB;CAIrB,aAAa;CAEb,eAAe;CAEf,WAAW;CAEX,cAAc,EAAE;CAChB,eAAe,EAAE;CACjB,mBAAmB,EAAE;CAErB,eAAe;CASf;AAED,s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
|
7
|
-
batch: 0,
|
|
8
|
-
batchOperation: 0,
|
|
9
|
-
registerComputed: null,
|
|
10
|
-
firstEffectToRun: null,
|
|
11
|
-
firstSignalToUpdate: null,
|
|
12
|
-
activeRange: null,
|
|
13
|
-
previousRange: null,
|
|
14
|
-
rootRange: null,
|
|
15
|
-
mountEffects: [],
|
|
16
|
-
stashedEvents: [],
|
|
17
|
-
stashedAnimations: [],
|
|
18
|
-
hydrationNode: null
|
|
19
|
-
};
|
|
20
|
-
var context_default = context;
|
|
21
|
-
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region src/types/constants.ts
|
|
24
|
-
/**
|
|
25
|
-
* The type of a Signal object.
|
|
26
|
-
*/
|
|
27
|
-
const SIGNAL_TYPE = 0;
|
|
28
|
-
/**
|
|
29
|
-
* The type of a Computed object.
|
|
30
|
-
*/
|
|
31
|
-
const COMPUTED_TYPE = 1;
|
|
32
|
-
/**
|
|
33
|
-
* The type of an Effect object.
|
|
34
|
-
*/
|
|
35
|
-
const EFFECT_TYPE = 2;
|
|
36
|
-
|
|
37
|
-
//#endregion
|
|
38
|
-
//#region src/watch/clearSources.ts
|
|
39
|
-
/**
|
|
40
|
-
* Clear unused source subscriptions after each Computed or Effect has been run.
|
|
41
|
-
*/
|
|
42
|
-
function clearSources(target) {
|
|
43
|
-
let previousSub = null;
|
|
44
|
-
for (let clearSub = target.firstSource; clearSub !== null; clearSub = clearSub.nextSource) if (target.didError || !clearSub.active) {
|
|
45
|
-
if (previousSub === null) target.firstSource = clearSub.nextSource;
|
|
46
|
-
else previousSub.nextSource = clearSub.nextSource;
|
|
47
|
-
if (clearSub.previousTarget === null) {
|
|
48
|
-
if (clearSub.source.firstTarget === clearSub) clearSub.source.firstTarget = clearSub.nextTarget;
|
|
49
|
-
} else clearSub.previousTarget.nextTarget = clearSub.nextTarget;
|
|
50
|
-
} else {
|
|
51
|
-
clearSub.recalc = false;
|
|
52
|
-
previousSub = clearSub;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
//#endregion
|
|
57
|
-
//#region src/watch/deactivateSources.ts
|
|
58
|
-
/**
|
|
59
|
-
* Sets source subscriptions to inactive for a Computed or Effect.
|
|
60
|
-
*/
|
|
61
|
-
function deactivateSources(target) {
|
|
62
|
-
for (let sourceSub = target.firstSource; sourceSub !== null; sourceSub = sourceSub.nextSource) sourceSub.active = false;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
//#endregion
|
|
66
|
-
//#region src/watch/trackEffect.ts
|
|
67
|
-
/**
|
|
68
|
-
* If there's an active target, subscribe it to this signal, so that it will be
|
|
69
|
-
* run when the signal changes.
|
|
70
|
-
*/
|
|
71
|
-
function trackEffect(signal) {
|
|
72
|
-
const target = context_default.activeTarget;
|
|
73
|
-
if (target !== null) {
|
|
74
|
-
let sub = null;
|
|
75
|
-
let lastSub = null;
|
|
76
|
-
for (let nextSub = signal.firstTarget; nextSub !== null; nextSub = nextSub.nextTarget) {
|
|
77
|
-
lastSub = nextSub;
|
|
78
|
-
if (nextSub.target === target) {
|
|
79
|
-
sub = nextSub;
|
|
80
|
-
break;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
if (sub === null) {
|
|
84
|
-
sub = {
|
|
85
|
-
source: signal,
|
|
86
|
-
target,
|
|
87
|
-
previousTarget: lastSub,
|
|
88
|
-
nextTarget: null,
|
|
89
|
-
nextSource: null,
|
|
90
|
-
active: true,
|
|
91
|
-
recalc: false
|
|
92
|
-
};
|
|
93
|
-
if (lastSub === null) signal.firstTarget = sub;
|
|
94
|
-
else lastSub.nextTarget = sub;
|
|
95
|
-
if (target.firstSource === null) target.firstSource = sub;
|
|
96
|
-
else {
|
|
97
|
-
let lastEffectSub = target.firstSource;
|
|
98
|
-
for (let nextSub = lastEffectSub.nextSource; nextSub !== null; nextSub = nextSub.nextSource) lastEffectSub = nextSub;
|
|
99
|
-
lastEffectSub.nextSource = sub;
|
|
100
|
-
}
|
|
101
|
-
} else sub.active = true;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
//#endregion
|
|
106
|
-
//#region src/watch/runComputed.ts
|
|
107
|
-
function runComputed(computed) {
|
|
108
|
-
const oldActiveTarget = context_default.activeTarget;
|
|
109
|
-
computed.running = true;
|
|
110
|
-
computed.didError = false;
|
|
111
|
-
try {
|
|
112
|
-
context_default.activeTarget = computed;
|
|
113
|
-
computed.value = computed.run();
|
|
114
|
-
} catch (err) {
|
|
115
|
-
computed.didError = true;
|
|
116
|
-
computed.value = err;
|
|
117
|
-
throw err;
|
|
118
|
-
} finally {
|
|
119
|
-
context_default.activeTarget = oldActiveTarget;
|
|
120
|
-
computed.running = false;
|
|
121
|
-
}
|
|
122
|
-
trackEffect(computed);
|
|
123
|
-
return computed.value;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
//#endregion
|
|
127
|
-
//#region src/watch/checkComputed.ts
|
|
128
|
-
/**
|
|
129
|
-
* Checks whether a Computed value should be re-run (which will be true if any
|
|
130
|
-
* of its sources have changed) and re-runs it if necessary.
|
|
131
|
-
*/
|
|
132
|
-
function checkComputed(computed) {
|
|
133
|
-
let rerun = checkSources(computed);
|
|
134
|
-
let changed = false;
|
|
135
|
-
if (rerun) {
|
|
136
|
-
deactivateSources(computed);
|
|
137
|
-
const oldValue = computed.value;
|
|
138
|
-
runComputed(computed);
|
|
139
|
-
changed = computed.value !== oldValue;
|
|
140
|
-
clearSources(computed);
|
|
141
|
-
}
|
|
142
|
-
computed.recalc = false;
|
|
143
|
-
if (!changed) for (let targetSub = computed.firstTarget; targetSub !== null; targetSub = targetSub.nextTarget) {
|
|
144
|
-
targetSub.active = true;
|
|
145
|
-
targetSub.recalc = false;
|
|
146
|
-
}
|
|
147
|
-
return changed;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
//#endregion
|
|
151
|
-
//#region src/watch/checkSources.ts
|
|
152
|
-
/**
|
|
153
|
-
* Checks whether a Computed or Effect should be re-run (which will be true if
|
|
154
|
-
* any of its sources have changed).
|
|
155
|
-
*/
|
|
156
|
-
function checkSources(target) {
|
|
157
|
-
let haveComputed = false;
|
|
158
|
-
for (let sourceSub = target.firstSource; sourceSub !== null; sourceSub = sourceSub.nextSource) if (sourceSub.recalc) if (sourceSub.source.type === SIGNAL_TYPE) return true;
|
|
159
|
-
else if (sourceSub.source.recalc) haveComputed = true;
|
|
160
|
-
else return true;
|
|
161
|
-
if (haveComputed) {
|
|
162
|
-
for (let sourceSub = target.firstSource; sourceSub !== null; sourceSub = sourceSub.nextSource) if (sourceSub.recalc && sourceSub.source.type === COMPUTED_TYPE && sourceSub.source.recalc) {
|
|
163
|
-
const oldActiveTarget = context_default.activeTarget;
|
|
164
|
-
context_default.activeTarget = target;
|
|
165
|
-
const recalc = checkComputed(sourceSub.source);
|
|
166
|
-
context_default.activeTarget = oldActiveTarget;
|
|
167
|
-
if (recalc) return true;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
return false;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
//#endregion
|
|
174
|
-
//#region src/watch/runCleanups.ts
|
|
175
|
-
/**
|
|
176
|
-
* Runs cleanup functions for the effect and its children.
|
|
177
|
-
*/
|
|
178
|
-
function runCleanups(effect) {
|
|
179
|
-
let effectToClean = effect;
|
|
180
|
-
for (let i = 0; i < effect.extent; i++) {
|
|
181
|
-
if (typeof effectToClean.cleanup === "function") {
|
|
182
|
-
const oldActiveTarget = context_default.activeTarget;
|
|
183
|
-
context_default.activeTarget = null;
|
|
184
|
-
try {
|
|
185
|
-
effectToClean.cleanup();
|
|
186
|
-
} catch (err) {
|
|
187
|
-
effectToClean.didError = true;
|
|
188
|
-
clearSources(effectToClean);
|
|
189
|
-
throw err;
|
|
190
|
-
} finally {
|
|
191
|
-
effectToClean.cleanup = void 0;
|
|
192
|
-
context_default.activeTarget = oldActiveTarget;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
const nextEffect = effectToClean.nextEffect;
|
|
196
|
-
if (i !== 0 && effect.nextEffectToRun === effectToClean) {
|
|
197
|
-
effect.nextEffectToRun = effectToClean.nextEffectToRun;
|
|
198
|
-
effectToClean.nextEffect = effectToClean.nextEffectToRun = null;
|
|
199
|
-
}
|
|
200
|
-
effectToClean = nextEffect;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
//#endregion
|
|
205
|
-
//#region src/watch/batchStart.ts
|
|
206
|
-
function batchStart() {
|
|
207
|
-
context_default.batch++;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
//#endregion
|
|
211
|
-
//#region src/watch/runEffect.ts
|
|
212
|
-
function runEffect(effect) {
|
|
213
|
-
const oldActiveTarget = context_default.activeTarget;
|
|
214
|
-
const oldExtent = context_default.extent;
|
|
215
|
-
effect.didError = false;
|
|
216
|
-
batchStart();
|
|
217
|
-
try {
|
|
218
|
-
if (context_default.previousEffect !== null) context_default.previousEffect.nextEffect = effect;
|
|
219
|
-
context_default.activeTarget = effect;
|
|
220
|
-
context_default.previousEffect = effect;
|
|
221
|
-
context_default.extent = 1;
|
|
222
|
-
effect.cleanup = effect.run();
|
|
223
|
-
effect.extent = context_default.extent;
|
|
224
|
-
} catch (err) {
|
|
225
|
-
effect.didError = true;
|
|
226
|
-
clearSources(effect);
|
|
227
|
-
throw err;
|
|
228
|
-
} finally {
|
|
229
|
-
context_default.activeTarget = oldActiveTarget;
|
|
230
|
-
context_default.extent += oldExtent - 1;
|
|
231
|
-
batchEnd();
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
//#endregion
|
|
236
|
-
//#region src/watch/checkEffect.ts
|
|
237
|
-
/**
|
|
238
|
-
* Checks whether an Effect should be re-run (which will be true if any
|
|
239
|
-
* of its sources have changed) and re-runs it if necessary.
|
|
240
|
-
*/
|
|
241
|
-
function checkEffect(effect) {
|
|
242
|
-
if (checkSources(effect)) {
|
|
243
|
-
runCleanups(effect);
|
|
244
|
-
deactivateSources(effect);
|
|
245
|
-
runEffect(effect);
|
|
246
|
-
clearSources(effect);
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
//#endregion
|
|
251
|
-
//#region src/watch/clearTargets.ts
|
|
252
|
-
/**
|
|
253
|
-
* Clear unused target subscriptions after all Effects have been run.
|
|
254
|
-
*/
|
|
255
|
-
function clearTargets(source) {
|
|
256
|
-
let previousSub = null;
|
|
257
|
-
for (let clearSub = source.firstTarget; clearSub !== null; clearSub = clearSub.nextTarget) if (!clearSub.active) if (previousSub === null) source.firstTarget = clearSub.nextTarget;
|
|
258
|
-
else previousSub.nextTarget = clearSub.nextTarget;
|
|
259
|
-
else previousSub = clearSub;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
//#endregion
|
|
263
|
-
//#region src/watch/triggerEffects.ts
|
|
264
|
-
/**
|
|
265
|
-
* Runs the effects that have been collected during the batch.
|
|
266
|
-
*/
|
|
267
|
-
function triggerEffects() {
|
|
268
|
-
let didError = false;
|
|
269
|
-
let error;
|
|
270
|
-
let effect = context_default.firstEffectToRun;
|
|
271
|
-
while (effect !== null) {
|
|
272
|
-
context_default.batchOperation++;
|
|
273
|
-
try {
|
|
274
|
-
checkEffect(effect);
|
|
275
|
-
} catch (err) {
|
|
276
|
-
if (!didError) {
|
|
277
|
-
didError = true;
|
|
278
|
-
error = err;
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
effect = effect.nextEffectToRun;
|
|
282
|
-
}
|
|
283
|
-
effect = context_default.firstEffectToRun;
|
|
284
|
-
context_default.firstEffectToRun = null;
|
|
285
|
-
while (effect !== null) {
|
|
286
|
-
let nextEffect = effect.nextEffectToRun;
|
|
287
|
-
effect.nextEffectToRun = null;
|
|
288
|
-
effect = nextEffect;
|
|
289
|
-
}
|
|
290
|
-
let signal = context_default.firstSignalToUpdate;
|
|
291
|
-
context_default.firstSignalToUpdate = null;
|
|
292
|
-
while (signal !== null) {
|
|
293
|
-
clearTargets(signal);
|
|
294
|
-
const nextSignal = signal.nextSignalToUpdate;
|
|
295
|
-
signal.nextSignalToUpdate = null;
|
|
296
|
-
signal = nextSignal;
|
|
297
|
-
}
|
|
298
|
-
if (didError) throw error;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
//#endregion
|
|
302
|
-
//#region src/watch/batchEnd.ts
|
|
303
|
-
function batchEnd() {
|
|
304
|
-
if (context_default.batch > 1) {
|
|
305
|
-
context_default.batch--;
|
|
306
|
-
return;
|
|
307
|
-
}
|
|
308
|
-
try {
|
|
309
|
-
triggerEffects();
|
|
310
|
-
} finally {
|
|
311
|
-
context_default.batch = 0;
|
|
312
|
-
context_default.batchOperation = 0;
|
|
313
|
-
context_default.previousEffect = null;
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
//#endregion
|
|
318
|
-
//#region src/render/$batch.ts
|
|
319
|
-
/**
|
|
320
|
-
* Runs updates to proxy values in a batch, where the updates are stored in
|
|
321
|
-
* context, and dependent effects are run all at once at the end.
|
|
322
|
-
*
|
|
323
|
-
* @param fn The function containing the batched updates to run.
|
|
324
|
-
*/
|
|
325
|
-
function $batch(fn) {
|
|
326
|
-
if (context_default.batch > 0) return fn();
|
|
327
|
-
batchStart();
|
|
328
|
-
try {
|
|
329
|
-
return fn();
|
|
330
|
-
} finally {
|
|
331
|
-
batchEnd();
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
//#endregion
|
|
336
|
-
//#region src/render/$cache.ts
|
|
337
|
-
/**
|
|
338
|
-
* Caches a computed value from signals accessed in a property getter.
|
|
339
|
-
*
|
|
340
|
-
* @param fn The function containing the signals to compute and cache.
|
|
341
|
-
*/
|
|
342
|
-
function $cache(fn) {
|
|
343
|
-
if (context_default.registerComputed === null) throw new Error("$cache must be used in a getter");
|
|
344
|
-
let computed = {
|
|
345
|
-
type: COMPUTED_TYPE,
|
|
346
|
-
value: null,
|
|
347
|
-
run: fn,
|
|
348
|
-
firstSource: null,
|
|
349
|
-
firstTarget: null,
|
|
350
|
-
recalc: false,
|
|
351
|
-
running: false,
|
|
352
|
-
didError: false,
|
|
353
|
-
rollback: null
|
|
354
|
-
};
|
|
355
|
-
context_default.registerComputed(computed);
|
|
356
|
-
runComputed(computed);
|
|
357
|
-
return computed.value;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
//#endregion
|
|
361
|
-
//#region src/render/$peek.ts
|
|
362
|
-
function $peek(fn) {
|
|
363
|
-
const oldActiveTarget = context_default.activeTarget;
|
|
364
|
-
context_default.activeTarget = null;
|
|
365
|
-
const result = fn();
|
|
366
|
-
context_default.activeTarget = oldActiveTarget;
|
|
367
|
-
return result;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
//#endregion
|
|
371
|
-
//#region src/render/buildClasses.ts
|
|
372
|
-
function buildClasses(value, styleHash) {
|
|
373
|
-
if (typeof value === "string") {
|
|
374
|
-
if (styleHash !== void 0) value += " " + styleHash;
|
|
375
|
-
return value;
|
|
376
|
-
} else {
|
|
377
|
-
let classes = [];
|
|
378
|
-
gatherNames("", value, classes);
|
|
379
|
-
if (styleHash !== void 0) classes.push(styleHash);
|
|
380
|
-
return classes.join(" ");
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
function gatherNames(name, value, classes) {
|
|
384
|
-
if (value) if (Array.isArray(value)) for (let v of value) gatherNames(v, v, classes);
|
|
385
|
-
else if (typeof value === "object") for (let [n, v] of Object.entries(value)) gatherNames(n, v, classes);
|
|
386
|
-
else classes.push(name);
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
//#endregion
|
|
390
|
-
//#region src/render/buildStyles.ts
|
|
391
|
-
function buildStyles(value) {
|
|
392
|
-
if (typeof value === "string") return value;
|
|
393
|
-
else {
|
|
394
|
-
let styles = [];
|
|
395
|
-
if (value) {
|
|
396
|
-
if (Array.isArray(value)) for (let v of value) styles.push(v);
|
|
397
|
-
else if (typeof value === "object") for (let [n, v] of Object.entries(value)) styles.push(`${n}: ${v}`);
|
|
398
|
-
}
|
|
399
|
-
return styles.join("; ");
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
//#endregion
|
|
404
|
-
//#region src/render/formatText.ts
|
|
405
|
-
function formatText(value) {
|
|
406
|
-
return value ?? "";
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
//#endregion
|
|
410
|
-
Object.defineProperty(exports, '$batch', {
|
|
411
|
-
enumerable: true,
|
|
412
|
-
get: function () {
|
|
413
|
-
return $batch;
|
|
414
|
-
}
|
|
415
|
-
});
|
|
416
|
-
Object.defineProperty(exports, '$cache', {
|
|
417
|
-
enumerable: true,
|
|
418
|
-
get: function () {
|
|
419
|
-
return $cache;
|
|
420
|
-
}
|
|
421
|
-
});
|
|
422
|
-
Object.defineProperty(exports, '$peek', {
|
|
423
|
-
enumerable: true,
|
|
424
|
-
get: function () {
|
|
425
|
-
return $peek;
|
|
426
|
-
}
|
|
427
|
-
});
|
|
428
|
-
Object.defineProperty(exports, 'COMPUTED_TYPE', {
|
|
429
|
-
enumerable: true,
|
|
430
|
-
get: function () {
|
|
431
|
-
return COMPUTED_TYPE;
|
|
432
|
-
}
|
|
433
|
-
});
|
|
434
|
-
Object.defineProperty(exports, 'EFFECT_TYPE', {
|
|
435
|
-
enumerable: true,
|
|
436
|
-
get: function () {
|
|
437
|
-
return EFFECT_TYPE;
|
|
438
|
-
}
|
|
439
|
-
});
|
|
440
|
-
Object.defineProperty(exports, 'SIGNAL_TYPE', {
|
|
441
|
-
enumerable: true,
|
|
442
|
-
get: function () {
|
|
443
|
-
return SIGNAL_TYPE;
|
|
444
|
-
}
|
|
445
|
-
});
|
|
446
|
-
Object.defineProperty(exports, 'batchEnd', {
|
|
447
|
-
enumerable: true,
|
|
448
|
-
get: function () {
|
|
449
|
-
return batchEnd;
|
|
450
|
-
}
|
|
451
|
-
});
|
|
452
|
-
Object.defineProperty(exports, 'batchStart', {
|
|
453
|
-
enumerable: true,
|
|
454
|
-
get: function () {
|
|
455
|
-
return batchStart;
|
|
456
|
-
}
|
|
457
|
-
});
|
|
458
|
-
Object.defineProperty(exports, 'buildClasses', {
|
|
459
|
-
enumerable: true,
|
|
460
|
-
get: function () {
|
|
461
|
-
return buildClasses;
|
|
462
|
-
}
|
|
463
|
-
});
|
|
464
|
-
Object.defineProperty(exports, 'buildStyles', {
|
|
465
|
-
enumerable: true,
|
|
466
|
-
get: function () {
|
|
467
|
-
return buildStyles;
|
|
468
|
-
}
|
|
469
|
-
});
|
|
470
|
-
Object.defineProperty(exports, 'checkComputed', {
|
|
471
|
-
enumerable: true,
|
|
472
|
-
get: function () {
|
|
473
|
-
return checkComputed;
|
|
474
|
-
}
|
|
475
|
-
});
|
|
476
|
-
Object.defineProperty(exports, 'context_default', {
|
|
477
|
-
enumerable: true,
|
|
478
|
-
get: function () {
|
|
479
|
-
return context_default;
|
|
480
|
-
}
|
|
481
|
-
});
|
|
482
|
-
Object.defineProperty(exports, 'formatText', {
|
|
483
|
-
enumerable: true,
|
|
484
|
-
get: function () {
|
|
485
|
-
return formatText;
|
|
486
|
-
}
|
|
487
|
-
});
|
|
488
|
-
Object.defineProperty(exports, 'runEffect', {
|
|
489
|
-
enumerable: true,
|
|
490
|
-
get: function () {
|
|
491
|
-
return runEffect;
|
|
492
|
-
}
|
|
493
|
-
});
|
|
494
|
-
Object.defineProperty(exports, 'trackEffect', {
|
|
495
|
-
enumerable: true,
|
|
496
|
-
get: function () {
|
|
497
|
-
return trackEffect;
|
|
498
|
-
}
|
|
499
|
-
});
|
|
500
|
-
//# sourceMappingURL=formatText-DufG5l83.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formatText-DufG5l83.cjs","names":["context: Context","previousSub: Subscription | null","clearSub: Subscription | null","sourceSub: Subscription | null","context","sub: Subscription | null","lastSub: Subscription | null","nextSub: Subscription | null","context","targetSub: Subscription | null","sourceSub: Subscription | null","context","effectToClean: Effect | null","context","nextEffect: Effect","context","previousSub: Subscription | null","clearSub: Subscription | null","error: any","effect: Effect | null","context","signal: ProxySignal | null","context","context","context","computed: Computed","context","classes: string[]","styles: string[]"],"sources":["../src/render/context.ts","../src/types/constants.ts","../src/watch/clearSources.ts","../src/watch/deactivateSources.ts","../src/watch/trackEffect.ts","../src/watch/runComputed.ts","../src/watch/checkComputed.ts","../src/watch/checkSources.ts","../src/watch/runCleanups.ts","../src/watch/batchStart.ts","../src/watch/runEffect.ts","../src/watch/checkEffect.ts","../src/watch/clearTargets.ts","../src/watch/triggerEffects.ts","../src/watch/batchEnd.ts","../src/render/$batch.ts","../src/render/$cache.ts","../src/render/$peek.ts","../src/render/buildClasses.ts","../src/render/buildStyles.ts","../src/render/formatText.ts"],"sourcesContent":["import type Context from \"../types/Context\";\n\nconst context: Context = {\n\tactiveTarget: null,\n\tpreviousEffect: null,\n\textent: 0,\n\tbatch: 0,\n\tbatchOperation: 0,\n\tregisterComputed: null,\n\n\tfirstEffectToRun: null,\n\tfirstSignalToUpdate: null,\n\n\t// These will definitely be set, in mount or render\n\t// @ts-ignore\n\tactiveRange: null,\n\t// @ts-ignore\n\tpreviousRange: null,\n\t// @ts-ignore\n\trootRange: null,\n\n\tmountEffects: [],\n\tstashedEvents: [],\n\tstashedAnimations: [],\n\n\thydrationNode: null,\n\t//hn: null,\n\t//get hydrationNode() {\n\t//\treturn this.hn;\n\t//},\n\t//set hydrationNode(value) {\n\t//\tconsole.log(`set hydration ${printNode(value)}`);\n\t//\tthis.hn = value;\n\t//},\n};\n\nexport default context;\n","/**\n * The type of a Signal object.\n */\nexport const SIGNAL_TYPE = 0;\n\n/**\n * The type of a Computed object.\n */\nexport const COMPUTED_TYPE = 1;\n\n/**\n * The type of an Effect object.\n */\nexport const EFFECT_TYPE = 2;\n","import type Computed from \"../types/Computed\";\nimport type Effect from \"../types/Effect\";\nimport type Subscription from \"../types/Subscription\";\n\n/**\n * Clear unused source subscriptions after each Computed or Effect has been run.\n */\nexport default function clearSources(target: Computed | Effect): void {\n\tlet previousSub: Subscription | null = null;\n\tfor (\n\t\tlet clearSub: Subscription | null = target.firstSource;\n\t\tclearSub !== null;\n\t\tclearSub = clearSub.nextSource\n\t) {\n\t\tif (target.didError || !clearSub.active) {\n\t\t\t//console.log(\n\t\t\t//\t`clearing source sub ${clearSub.source.name} <-> ${clearSub.target.name} (${clearSub.name})`,\n\t\t\t//);\n\t\t\tif (previousSub === null) {\n\t\t\t\ttarget.firstSource = clearSub.nextSource;\n\t\t\t} else {\n\t\t\t\tpreviousSub.nextSource = clearSub.nextSource;\n\t\t\t}\n\n\t\t\t// Update the targets list too\n\t\t\tif (clearSub.previousTarget === null) {\n\t\t\t\tif (clearSub.source.firstTarget === clearSub) {\n\t\t\t\t\tclearSub.source.firstTarget = clearSub.nextTarget;\n\t\t\t\t}\n\t\t\t\t// TODO: else???\n\t\t\t} else {\n\t\t\t\tclearSub.previousTarget.nextTarget = clearSub.nextTarget;\n\t\t\t}\n\t\t} else {\n\t\t\tclearSub.recalc = false;\n\t\t\tpreviousSub = clearSub;\n\t\t}\n\t}\n}\n","import type Computed from \"../types/Computed\";\nimport type Effect from \"../types/Effect\";\nimport type Subscription from \"../types/Subscription\";\n\n/**\n * Sets source subscriptions to inactive for a Computed or Effect.\n */\nexport default function deactivateSources(target: Computed | Effect): void {\n\tfor (\n\t\tlet sourceSub: Subscription | null = target.firstSource;\n\t\tsourceSub !== null;\n\t\tsourceSub = sourceSub.nextSource\n\t) {\n\t\tsourceSub.active = false;\n\t\t//console.log(\n\t\t//\t`deactivating ${sourceSub.source.name} <-> ${sourceSub.target.name} (${sourceSub.name})`,\n\t\t//);\n\t}\n}\n","import context from \"../render/context\";\nimport type Computed from \"../types/Computed\";\nimport type ProxySignal from \"../types/ProxySignal\";\nimport type Subscription from \"../types/Subscription\";\n\n// TODO: Rename this to `subscribe` because its purpose has changed a bit\n\n/**\n * If there's an active target, subscribe it to this signal, so that it will be\n * run when the signal changes.\n */\nexport default function trackEffect(signal: ProxySignal | Computed): void {\n\tconst target = context.activeTarget;\n\tif (target !== null) {\n\t\tlet sub: Subscription | null = null;\n\t\tlet lastSub: Subscription | null = null;\n\n\t\t// Check if there's a sub we can re-use\n\t\t// TODO: Maybe we could be smarter with this\n\t\t// -- use the target sub instead?\n\t\t// -- do it differently on push vs pull??\n\t\tfor (\n\t\t\tlet nextSub: Subscription | null = signal.firstTarget;\n\t\t\tnextSub !== null;\n\t\t\tnextSub = nextSub.nextTarget\n\t\t) {\n\t\t\tlastSub = nextSub;\n\t\t\tif (nextSub.target === target) {\n\t\t\t\tsub = nextSub;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (sub === null) {\n\t\t\tsub = {\n\t\t\t\tsource: signal,\n\t\t\t\ttarget: target,\n\t\t\t\tpreviousTarget: lastSub,\n\t\t\t\tnextTarget: null,\n\t\t\t\tnextSource: null,\n\t\t\t\tactive: true,\n\t\t\t\trecalc: false,\n\t\t\t\t//name: dev.subName(),\n\t\t\t};\n\t\t\t//console.log(`creating sub '${signal.name}' => '${effect.name}' (${sub.name})`);\n\t\t\tif (lastSub === null) {\n\t\t\t\tsignal.firstTarget = sub;\n\t\t\t} else {\n\t\t\t\tlastSub.nextTarget = sub;\n\t\t\t}\n\n\t\t\tif (target.firstSource === null) {\n\t\t\t\ttarget.firstSource = sub;\n\t\t\t} else {\n\t\t\t\tlet lastEffectSub = target.firstSource;\n\t\t\t\tfor (\n\t\t\t\t\tlet nextSub: Subscription | null = lastEffectSub.nextSource;\n\t\t\t\t\tnextSub !== null;\n\t\t\t\t\tnextSub = nextSub.nextSource\n\t\t\t\t) {\n\t\t\t\t\tlastEffectSub = nextSub;\n\t\t\t\t}\n\t\t\t\tlastEffectSub.nextSource = sub;\n\t\t\t}\n\t\t} else {\n\t\t\t// We can re-use this subscription object\n\t\t\t//console.log(`re-using sub '${signal.name}' => '${effect.name}' (${sub.name})`);\n\t\t\tsub.active = true;\n\t\t}\n\t}\n}\n","import context from \"../render/context\";\nimport type Computed from \"../types/Computed\";\nimport trackEffect from \"./trackEffect\";\n\nexport default function runComputed<T>(computed: Computed<T>): T {\n\t//console.log(`running computed '${computed.name}'`);\n\n\t// Store the active target\n\tconst oldActiveTarget = context.activeTarget;\n\n\tcomputed.running = true;\n\tcomputed.didError = false;\n\n\ttry {\n\t\t// Set the active target, so that any properties accessed while running it\n\t\t// will trigger it in future\n\t\tcontext.activeTarget = computed;\n\n\t\t// Run the computed and gather its dependencies\n\t\tcomputed.value = computed.run();\n\t} catch (err) {\n\t\tcomputed.didError = true;\n\t\t// @ts-ignore\n\t\tcomputed.value = err;\n\t\tthrow err;\n\t} finally {\n\t\t// Set the active target back to what it was previously\n\t\tcontext.activeTarget = oldActiveTarget;\n\n\t\tcomputed.running = false;\n\t}\n\n\ttrackEffect(computed);\n\n\treturn computed.value;\n}\n","import type Computed from \"../types/Computed\";\nimport type Subscription from \"../types/Subscription\";\nimport checkSources from \"./checkSources\";\nimport clearSources from \"./clearSources\";\nimport deactivateSources from \"./deactivateSources\";\nimport runComputed from \"./runComputed\";\n\n/**\n * Checks whether a Computed value should be re-run (which will be true if any\n * of its sources have changed) and re-runs it if necessary.\n */\nexport default function checkComputed(computed: Computed): boolean {\n\tlet rerun = checkSources(computed);\n\n\tlet changed = false;\n\n\tif (rerun) {\n\t\t// Set source subscriptions to inactive\n\t\tdeactivateSources(computed);\n\n\t\t// Run the computed, which will reset subscriptions\n\t\tconst oldValue = computed.value;\n\t\trunComputed(computed);\n\t\tchanged = computed.value !== oldValue;\n\n\t\t// Clear unused source subscriptions\n\t\tclearSources(computed);\n\t}\n\n\tcomputed.recalc = false;\n\n\t// If it hasn't changed, all of its target subscriptions remain active and\n\t// don't need to be recalculated\n\tif (!changed) {\n\t\tfor (\n\t\t\tlet targetSub: Subscription | null = computed.firstTarget;\n\t\t\ttargetSub !== null;\n\t\t\ttargetSub = targetSub.nextTarget\n\t\t) {\n\t\t\ttargetSub.active = true;\n\t\t\ttargetSub.recalc = false;\n\t\t}\n\t}\n\n\treturn changed;\n}\n","import context from \"../render/context\";\nimport type Computed from \"../types/Computed\";\nimport type Effect from \"../types/Effect\";\nimport type Subscription from \"../types/Subscription\";\nimport { COMPUTED_TYPE, SIGNAL_TYPE } from \"../types/constants\";\nimport checkComputed from \"./checkComputed\";\n\n// RECURSIVE\n\n/**\n * Checks whether a Computed or Effect should be re-run (which will be true if\n * any of its sources have changed).\n */\nexport default function checkSources(target: Computed | Effect): boolean {\n\t// NOTE: We bail early if we know the target needs to be re-run; subsequent\n\t// computed values will be computed in the proxy getter\n\n\t// Check signals first as it's cheap, then computed values\n\tlet haveComputed = false;\n\n\tfor (\n\t\tlet sourceSub: Subscription | null = target.firstSource;\n\t\tsourceSub !== null;\n\t\tsourceSub = sourceSub.nextSource\n\t) {\n\t\t//console.log(`checking source sub '${sourceSub.source.name}' (${sourceSub.name})`);\n\t\tif (sourceSub.recalc) {\n\t\t\tif (sourceSub.source.type === SIGNAL_TYPE) {\n\t\t\t\treturn true;\n\t\t\t} /* else if (sourceSub.source.type === COMPUTED_TYPE) */ else {\n\t\t\t\tif (sourceSub.source.recalc) {\n\t\t\t\t\thaveComputed = true;\n\t\t\t\t} else {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tif (haveComputed) {\n\t\tfor (\n\t\t\tlet sourceSub: Subscription | null = target.firstSource;\n\t\t\tsourceSub !== null;\n\t\t\tsourceSub = sourceSub.nextSource\n\t\t) {\n\t\t\t//console.log(`checking source sub '${sourceSub.source.name}' (${sourceSub.name})`);\n\t\t\tif (sourceSub.recalc && sourceSub.source.type === COMPUTED_TYPE && sourceSub.source.recalc) {\n\t\t\t\tconst oldActiveTarget = context.activeTarget;\n\t\t\t\tcontext.activeTarget = target;\n\n\t\t\t\tconst recalc = checkComputed(sourceSub.source);\n\n\t\t\t\tcontext.activeTarget = oldActiveTarget;\n\n\t\t\t\tif (recalc) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn false;\n}\n","import context from \"../render/context\";\nimport type Effect from \"../types/Effect\";\nimport clearSources from \"./clearSources\";\n\n/**\n * Runs cleanup functions for the effect and its children.\n */\nexport default function runCleanups(effect: Effect): void {\n\tlet effectToClean: Effect | null = effect;\n\tfor (let i = 0; i < effect.extent; i++) {\n\t\tif (typeof effectToClean.cleanup === \"function\") {\n\t\t\t//console.log(`cleaning effect '${effectToClean.name}'`);\n\t\t\tconst oldActiveTarget = context.activeTarget;\n\t\t\tcontext.activeTarget = null;\n\n\t\t\ttry {\n\t\t\t\teffectToClean.cleanup();\n\t\t\t} catch (err) {\n\t\t\t\teffectToClean.didError = true;\n\t\t\t\tclearSources(effectToClean);\n\t\t\t\tthrow err;\n\t\t\t} finally {\n\t\t\t\teffectToClean.cleanup = undefined;\n\t\t\t\tcontext.activeTarget = oldActiveTarget;\n\t\t\t}\n\t\t}\n\n\t\tconst nextEffect: Effect = effectToClean.nextEffect!;\n\n\t\t// If it's a child effect that has been triggered, clean it up\n\t\t// and remove it from the list of effects to run (it may get\n\t\t// re-created with the parent)\n\t\tif (i !== 0 && effect.nextEffectToRun === effectToClean) {\n\t\t\teffect.nextEffectToRun = effectToClean.nextEffectToRun;\n\t\t\teffectToClean.nextEffect = effectToClean.nextEffectToRun = null;\n\t\t}\n\n\t\teffectToClean = nextEffect;\n\t}\n}\n","import context from \"../render/context\";\n\nexport default function batchStart(): void {\n\tcontext.batch++;\n}\n","import context from \"../render/context\";\nimport type Effect from \"../types/Effect\";\nimport batchEnd from \"./batchEnd\";\nimport batchStart from \"./batchStart\";\nimport clearSources from \"./clearSources\";\n\nexport default function runEffect(effect: Effect): void {\n\t//console.log(`running effect '${effect.name}'`);\n\n\t// Store the active target\n\tconst oldActiveTarget = context.activeTarget;\n\tconst oldExtent = context.extent;\n\n\teffect.didError = false;\n\n\tbatchStart();\n\n\ttry {\n\t\t// Set the next effect for navigating through\n\t\tif (context.previousEffect !== null) {\n\t\t\tcontext.previousEffect.nextEffect = effect;\n\t\t}\n\n\t\t// Set the active effect, so that any properties accessed while running it\n\t\t// will trigger it in future\n\t\tcontext.activeTarget = effect;\n\t\tcontext.previousEffect = effect;\n\t\tcontext.extent = 1;\n\n\t\t// Run the effect to register its subscriptions and get its (optional)\n\t\t// cleanup function\n\t\teffect.cleanup = effect.run();\n\n\t\teffect.extent = context.extent;\n\t} catch (err) {\n\t\teffect.didError = true;\n\t\tclearSources(effect);\n\t\tthrow err;\n\t} finally {\n\t\t// Set the active target back to what it was previously\n\t\tcontext.activeTarget = oldActiveTarget;\n\t\tcontext.extent += oldExtent - 1;\n\n\t\tbatchEnd();\n\t}\n}\n","import type Effect from \"../types/Effect\";\nimport checkSources from \"./checkSources\";\nimport clearSources from \"./clearSources\";\nimport deactivateSources from \"./deactivateSources\";\nimport runCleanups from \"./runCleanups\";\nimport runEffect from \"./runEffect\";\n\n/**\n * Checks whether an Effect should be re-run (which will be true if any\n * of its sources have changed) and re-runs it if necessary.\n */\nexport default function checkEffect(effect: Effect): void {\n\t//console.log(`checking effect '${effect.name}'`);\n\n\tlet rerun = checkSources(effect);\n\n\tif (rerun) {\n\t\t//console.log(`running effect '${String(effect.run)}'`);\n\n\t\t// Run cleanup functions for the effect and its children\n\t\trunCleanups(effect);\n\n\t\t// Set source subscriptions to inactive\n\t\tdeactivateSources(effect);\n\n\t\t// Run the effect, which will reset subscriptions\n\t\trunEffect(effect);\n\n\t\t// Clear unused source subscriptions\n\t\tclearSources(effect);\n\t}\n}\n","import type Computed from \"../types/Computed\";\nimport type ProxySignal from \"../types/ProxySignal\";\nimport type Subscription from \"../types/Subscription\";\n\n/**\n * Clear unused target subscriptions after all Effects have been run.\n */\nexport default function clearTargets(source: ProxySignal | Computed): void {\n\tlet previousSub: Subscription | null = null;\n\tfor (\n\t\tlet clearSub: Subscription | null = source.firstTarget;\n\t\tclearSub !== null;\n\t\tclearSub = clearSub.nextTarget\n\t) {\n\t\tif (!clearSub.active) {\n\t\t\t//console.log(\n\t\t\t//\t`clearing target sub ${clearSub.source.name} <-> ${clearSub.target.name} (${clearSub.name})`,\n\t\t\t//);\n\t\t\tif (previousSub === null) {\n\t\t\t\tsource.firstTarget = clearSub.nextTarget;\n\t\t\t} else {\n\t\t\t\tpreviousSub.nextTarget = clearSub.nextTarget;\n\t\t\t}\n\t\t} else {\n\t\t\tpreviousSub = clearSub;\n\t\t}\n\t}\n}\n","import context from \"../render/context\";\nimport type Effect from \"../types/Effect\";\nimport type ProxySignal from \"../types/ProxySignal\";\nimport checkEffect from \"./checkEffect\";\nimport clearTargets from \"./clearTargets\";\n\n/**\n * Runs the effects that have been collected during the batch.\n */\nexport default function triggerEffects(): void {\n\t//console.log(`triggering effects for '${String(key)}' on`, proxy);\n\t//console.log(\"===\");\n\t//console.log(`triggering effects for '${String(key)}'`);\n\n\tlet didError = false;\n\tlet error: any;\n\n\t// Run the effects\n\tlet effect: Effect | null = context.firstEffectToRun;\n\twhile (effect !== null) {\n\t\tcontext.batchOperation++;\n\n\t\ttry {\n\t\t\tcheckEffect(effect);\n\t\t} catch (err) {\n\t\t\tif (!didError) {\n\t\t\t\tdidError = true;\n\t\t\t\terror = err;\n\t\t\t}\n\t\t}\n\n\t\teffect = effect.nextEffectToRun;\n\t}\n\n\t// Clear the effects\n\teffect = context.firstEffectToRun;\n\tcontext.firstEffectToRun = null;\n\twhile (effect !== null) {\n\t\tlet nextEffect = effect.nextEffectToRun;\n\t\teffect.nextEffectToRun = null;\n\t\teffect = nextEffect;\n\t}\n\n\t// Clear unused target subscriptions for the signals that were updated\n\t// during the batch\n\tlet signal: ProxySignal | null = context.firstSignalToUpdate;\n\tcontext.firstSignalToUpdate = null;\n\twhile (signal !== null) {\n\t\tclearTargets(signal);\n\n\t\tconst nextSignal = signal.nextSignalToUpdate;\n\t\tsignal.nextSignalToUpdate = null;\n\t\tsignal = nextSignal;\n\t}\n\n\tif (didError) {\n\t\tthrow error;\n\t}\n}\n","import context from \"../render/context\";\nimport triggerEffects from \"./triggerEffects\";\n\nexport default function batchEnd(): void {\n\tif (context.batch > 1) {\n\t\tcontext.batch--;\n\t\treturn;\n\t}\n\n\ttry {\n\t\ttriggerEffects();\n\t} finally {\n\t\tcontext.batch = 0;\n\t\tcontext.batchOperation = 0;\n\t\tcontext.previousEffect = null;\n\t}\n}\n","import batchEnd from \"../watch/batchEnd\";\nimport batchStart from \"../watch/batchStart\";\nimport context from \"./context\";\n\n/**\n * Runs updates to proxy values in a batch, where the updates are stored in\n * context, and dependent effects are run all at once at the end.\n *\n * @param fn The function containing the batched updates to run.\n */\nexport default function $batch<T>(fn: () => T): T {\n\tif (context.batch > 0) {\n\t\treturn fn();\n\t}\n\n\tbatchStart();\n\ttry {\n\t\treturn fn();\n\t} finally {\n\t\tbatchEnd();\n\t}\n}\n","import type Computed from \"../types/Computed\";\nimport { COMPUTED_TYPE } from \"../types/constants\";\nimport runComputed from \"../watch/runComputed\";\nimport context from \"./context\";\n\n/**\n * Caches a computed value from signals accessed in a property getter.\n *\n * @param fn The function containing the signals to compute and cache.\n */\nexport default function $cache<T>(fn: () => T): T {\n\tif (context.registerComputed === null) {\n\t\tthrow new Error(\"$cache must be used in a getter\");\n\t}\n\n\tlet computed: Computed = {\n\t\ttype: COMPUTED_TYPE,\n\t\tvalue: null,\n\t\trun: fn,\n\t\tfirstSource: null,\n\t\tfirstTarget: null,\n\t\trecalc: false,\n\t\trunning: false,\n\t\tdidError: false,\n\t\trollback: null,\n\t\t//name: dev.effectName(fn),\n\t};\n\n\tcontext.registerComputed(computed);\n\n\trunComputed(computed);\n\n\treturn computed.value;\n}\n","import context from \"./context\";\n\n// Not sure if this is a good idea?\n\nexport default function $peek<T>(fn: () => T): T {\n\tconst oldActiveTarget = context.activeTarget;\n\tcontext.activeTarget = null;\n\n\tconst result = fn();\n\n\tcontext.activeTarget = oldActiveTarget;\n\n\treturn result;\n}\n","export default function buildClasses(value: unknown, styleHash?: string): string {\n\tif (typeof value === \"string\") {\n\t\tif (styleHash !== undefined) {\n\t\t\tvalue += \" \" + styleHash;\n\t\t}\n\t\treturn value;\n\t} else {\n\t\tlet classes: string[] = [];\n\t\tgatherNames(\"\", value, classes);\n\t\tif (styleHash !== undefined) {\n\t\t\tclasses.push(styleHash);\n\t\t}\n\t\treturn classes.join(\" \");\n\t}\n}\n\nfunction gatherNames(name: unknown, value: unknown, classes: string[]) {\n\tif (value) {\n\t\tif (Array.isArray(value)) {\n\t\t\tfor (let v of value) {\n\t\t\t\tgatherNames(v, v, classes);\n\t\t\t}\n\t\t} else if (typeof value === \"object\") {\n\t\t\tfor (let [n, v] of Object.entries(value)) {\n\t\t\t\tgatherNames(n, v, classes);\n\t\t\t}\n\t\t} else {\n\t\t\tclasses.push(name as string);\n\t\t}\n\t}\n}\n","export default function buildStyles(value: unknown): string {\n\tif (typeof value === \"string\") {\n\t\treturn value;\n\t} else {\n\t\tlet styles: string[] = [];\n\t\tif (value) {\n\t\t\tif (Array.isArray(value)) {\n\t\t\t\tfor (let v of value) {\n\t\t\t\t\tstyles.push(v);\n\t\t\t\t}\n\t\t\t} else if (typeof value === \"object\") {\n\t\t\t\tfor (let [n, v] of Object.entries(value)) {\n\t\t\t\t\tstyles.push(`${n}: ${v}`);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn styles.join(\"; \");\n\t}\n}\n","export default function formatText(value: any): string {\n\treturn value ?? \"\";\n}\n"],"mappings":";;AAEA,MAAMA,UAAmB;CACxB,cAAc;CACd,gBAAgB;CAChB,QAAQ;CACR,OAAO;CACP,gBAAgB;CAChB,kBAAkB;CAElB,kBAAkB;CAClB,qBAAqB;CAIrB,aAAa;CAEb,eAAe;CAEf,WAAW;CAEX,cAAc,EAAE;CAChB,eAAe,EAAE;CACjB,mBAAmB,EAAE;CAErB,eAAe;CASf;AAED,sBAAe;;;;;;;ACjCf,MAAa,cAAc;;;;AAK3B,MAAa,gBAAgB;;;;AAK7B,MAAa,cAAc;;;;;;;ACN3B,SAAwB,aAAa,QAAiC;CAC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IAAI;AAEnB,iBAAQ,eAAe;AAEvB,QAAO;;;;;ACZR,SAAwB,aAAa,OAAgB,WAA4B;AAChF,KAAI,OAAO,UAAU,UAAU;AAC9B,MAAI,cAAc,OACjB,UAAS,MAAM;AAEhB,SAAO;QACD;EACN,IAAIC,UAAoB,EAAE;AAC1B,cAAY,IAAI,OAAO,QAAQ;AAC/B,MAAI,cAAc,OACjB,SAAQ,KAAK,UAAU;AAExB,SAAO,QAAQ,KAAK,IAAI;;;AAI1B,SAAS,YAAY,MAAe,OAAgB,SAAmB;AACtE,KAAI,MACH,KAAI,MAAM,QAAQ,MAAM,CACvB,MAAK,IAAI,KAAK,MACb,aAAY,GAAG,GAAG,QAAQ;UAEjB,OAAO,UAAU,SAC3B,MAAK,IAAI,CAAC,GAAG,MAAM,OAAO,QAAQ,MAAM,CACvC,aAAY,GAAG,GAAG,QAAQ;KAG3B,SAAQ,KAAK,KAAe;;;;;AC3B/B,SAAwB,YAAY,OAAwB;AAC3D,KAAI,OAAO,UAAU,SACpB,QAAO;MACD;EACN,IAAIC,SAAmB,EAAE;AACzB,MAAI,OACH;OAAI,MAAM,QAAQ,MAAM,CACvB,MAAK,IAAI,KAAK,MACb,QAAO,KAAK,EAAE;YAEL,OAAO,UAAU,SAC3B,MAAK,IAAI,CAAC,GAAG,MAAM,OAAO,QAAQ,MAAM,CACvC,QAAO,KAAK,GAAG,EAAE,IAAI,IAAI;;AAI5B,SAAO,OAAO,KAAK,KAAK;;;;;;AChB1B,SAAwB,WAAW,OAAoB;AACtD,QAAO,SAAS"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type ElementNode from "../types/nodes/ElementNode";
|
|
2
|
-
import type RootNode from "../types/nodes/RootNode";
|
|
3
|
-
import type Style from "../types/styles/Style";
|
|
4
|
-
|
|
5
|
-
export default interface ParseComponentStatus {
|
|
6
|
-
start?: number;
|
|
7
|
-
/** The component's name */
|
|
8
|
-
name?: string;
|
|
9
|
-
/** Whether the component is exported from the file */
|
|
10
|
-
exported?: boolean;
|
|
11
|
-
/** Whether the component is defined in a default function */
|
|
12
|
-
default?: boolean;
|
|
13
|
-
/** The component's documentation comments */
|
|
14
|
-
documentation?: string;
|
|
15
|
-
/** Params declared by the user in the component's function */
|
|
16
|
-
params?: string;
|
|
17
|
-
markup?: RootNode;
|
|
18
|
-
head?: RootNode;
|
|
19
|
-
stack?: ElementNode[];
|
|
20
|
-
style?: Style;
|
|
21
|
-
/** The type or interface that is used for the $props param */
|
|
22
|
-
propsType?: string;
|
|
23
|
-
/** $props that are used in the component's function */
|
|
24
|
-
props?: string[];
|
|
25
|
-
/** $context props that are used in the component's function */
|
|
26
|
-
contextProps?: string[];
|
|
27
|
-
/** $slot props that are used in the component's function */
|
|
28
|
-
slotProps?: string[];
|
|
29
|
-
}
|