@torpor/view 0.1.7 → 0.1.9
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 +12 -0
- package/dist/compile.cjs +2 -8
- package/dist/compile.cjs.map +1 -1
- package/dist/compile.js +2 -8
- package/dist/compile.js.map +1 -1
- package/dist/index.cjs +0 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -16
- package/dist/index.d.ts +1 -16
- package/dist/index.js +0 -6
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +1 -1
- package/src/compile/build/client/buildCode.ts +0 -1
- package/src/compile/build/client/buildElementNode.ts +0 -1
- package/src/compile/build/client/buildFragment.ts +0 -13
- package/src/compile/build/server/buildServerComponentNode.ts +12 -1
- package/src/index.ts +0 -2
- package/test/await/components/output/Await-client.ts +0 -3
- package/test/await/components/temp/{Await-client-e2fc91352ed24b160650d7851d82375910bd28d6.ts → Await-client-9c30564ea39457e614e60c0cc0a71c431e8a1e76.ts} +0 -3
- package/test/bind/components/output/BindComponent-client.ts +0 -3
- package/test/bind/components/output/BindComponent-server.ts +2 -2
- package/test/bind/components/temp/{BindComponent-client-c4dbd934eda6b8f9a7afc697b9d6dd3edc3a4a48.ts → BindComponent-client-6f650efb818a185ef33e1b071cfd77415a803dd3.ts} +0 -3
- package/test/bind/components/temp/{BindComponent-server-c630dee0bee6cea49d5eb8bea04979a737bb8f5e.ts → BindComponent-server-2e6caf0cbbb2831eb4bfbd7dcd6cf4d5c422d047.ts} +2 -2
- package/test/buildOutputFiles.ts +0 -2
- package/test/child-component/components/output/ParentChild-client.ts +0 -3
- package/test/child-component/components/output/ParentChild-server.ts +2 -2
- package/test/child-component/components/temp/{ParentChild-client-16042a29846dbbeec5905f163bf29b6bb48dfd42.ts → ParentChild-client-50ca7e499599209c9d674f2561413ca14a282c22.ts} +0 -3
- package/test/child-component/components/temp/{ParentChild-server-a34a8b5acf1c00d1990f8ab7433599506265a45a.ts → ParentChild-server-5e4a7fa5f4cd1c7dbe6866819025d2c03bfc62cb.ts} +2 -2
- package/test/class/components/output/Class-client.ts +0 -3
- package/test/class/components/output/Class-server.ts +2 -2
- package/test/class/components/temp/{Class-client-71b655ee0cbda59527269a2fbf0b6d2a1176bbaa.ts → Class-client-de2491c550647203bea08727fa8c88f30654db0a.ts} +0 -3
- package/test/class/components/temp/{Class-server-daf30ffb1bacf9877e3385dc9a3eede61c972329.ts → Class-server-c24c01d0d3a98169172aba453c183c4152705be9.ts} +2 -2
- package/test/component/components/output/Component-client.ts +0 -3
- package/test/component/components/output/Component-server.ts +2 -2
- package/test/component/components/temp/{Component-client-2f4734d1288dc88d1d5aa532791199969351ec1d.ts → Component-client-350d20784712c710929cc3ab34c6828b0ea338d8.ts} +0 -3
- package/test/component/components/temp/{Component-server-81012827b18e82d787d194a0a1a9d4e07311a336.ts → Component-server-57f59c74599572da6322a67cb97848cfbfcf6968.ts} +2 -2
- package/test/effects/components/output/For-client.ts +0 -3
- package/test/effects/components/output/If-client.ts +0 -3
- package/test/effects/components/output/NestedIf-client.ts +0 -5
- package/test/effects/components/temp/{For-client-56df708520a56e3461dd041d5fcf3a6d16d6c653.ts → For-client-35bf9bea43f53d6c0cf807f9e31500765fa0b455.ts} +0 -3
- package/test/effects/components/temp/{If-client-341b189ef35481d477325e09e9b2d3479b7a6dfc.ts → If-client-efb994796596d9d08f59a0ab5ffdacc74bd04545.ts} +0 -3
- package/test/effects/components/temp/{NestedIf-client-4c74efc133b9817ff106e6ffcf4065603030a596.ts → NestedIf-client-845b3789b8a938439bff758bc9b3731d769c8ff6.ts} +0 -5
- package/test/for/components/output/For-client.ts +0 -3
- package/test/for/components/output/ForEscape-client.ts +0 -3
- package/test/for/components/output/ForIn-client.ts +0 -3
- package/test/for/components/output/ForOf-client.ts +0 -3
- package/test/for/components/temp/{For-client-1d8c7995d69e881e0c6e23e17feb4ee73e34f7c3.ts → For-client-8ecb11a2f34c81f837bffdb88598da06d8c19158.ts} +0 -3
- package/test/for/components/temp/{ForEscape-client-c4b46ddf79bcceb3d677baeb57ac85ec6bc5f565.ts → ForEscape-client-14e7648415d967cdc57bf03d176eb6b6dddf0fb2.ts} +0 -3
- package/test/for/components/temp/{ForIn-client-b64e5ecc592f137f08fc6ab9da800732df94976e.ts → ForIn-client-25cd67f246a50fc6d926a8c66aa5e106f19578a8.ts} +0 -3
- package/test/for/components/temp/{ForOf-client-4ef8193b2f0603a8edfcbe6c2d321a240211bdcd.ts → ForOf-client-8f6598ccd9dc7b79aff6167b90ccea94f3029c84.ts} +0 -3
- package/test/html/components/output/Html-client.ts +0 -3
- package/test/html/components/temp/{Html-client-2c3bae5ddb348adb88e332df9bad69714a88ddd1.ts → Html-client-93b0d666142c64cd651dc37f14f12884b2f30612.ts} +0 -3
- package/test/if/components/output/IfAfterIf-client.ts +0 -5
- package/test/if/components/output/IfElse-client.ts +0 -3
- package/test/if/components/output/IfElseIf-client.ts +0 -3
- package/test/if/components/output/IfFalse-client.ts +0 -3
- package/test/if/components/output/IfNested-client.ts +0 -5
- package/test/if/components/temp/{IfAfterIf-client-e092f37a07f06c67501693a2028c3f7a809267a9.ts → IfAfterIf-client-6b4833209a01cdad18d453839e9c8b5dad2a8510.ts} +0 -5
- package/test/if/components/temp/{IfElse-client-9b9b5cd2d58364c2792c6233dcf1a028c343741b.ts → IfElse-client-f7eb8e5fe5e62975a2442c4b0ff3344fa44cef69.ts} +0 -3
- package/test/if/components/temp/{IfElseIf-client-c6e0f7e55b7d2471527f7fbc673cdb1be41a548c.ts → IfElseIf-client-734f1b2d9133294573770c1ffc2b589273498532.ts} +0 -3
- package/test/if/components/temp/{IfFalse-client-84249379a2b7b30baea5eeed2a64d4502763d002.ts → IfFalse-client-8a388cb48b4a5879d491f57d1f2551834de1e72e.ts} +0 -3
- package/test/if/components/temp/{IfNested-client-6a536c2000ef72e8c289ad789b135d4b1e170b6e.ts → IfNested-client-f3045daba052e459add6e7f84e8d21ba7b0d81e4.ts} +0 -5
- package/test/party/components/output/AnswerButtonApp-client.ts +0 -3
- package/test/party/components/output/AnswerButtonApp-server.ts +2 -2
- package/test/party/components/output/ColorSelect-client.ts +0 -3
- package/test/party/components/output/Colors-client.ts +0 -3
- package/test/party/components/output/FunnyButton-client.ts +0 -3
- package/test/party/components/output/FunnyButtonApp-client.ts +0 -5
- package/test/party/components/output/FunnyButtonApp-server.ts +3 -3
- package/test/party/components/output/TrafficLight-client.ts +0 -3
- package/test/party/components/output/UserProfileApp-client.ts +0 -3
- package/test/party/components/output/UserProfileApp-server.ts +2 -2
- package/test/party/components/output/UserProfileContextApp-client.ts +0 -3
- package/test/party/components/output/UserProfileContextApp-server.ts +2 -2
- package/test/party/components/temp/{AnswerButtonApp-client-959a3756a3549b01c5d4c6e7b1dade9dc14ce671.ts → AnswerButtonApp-client-5661f07868550612bcdeee268b82c473af6a2613.ts} +0 -3
- package/test/party/components/temp/{AnswerButtonApp-server-16161f2c9062dd11b8b6b8c898f9f1249ae2400d.ts → AnswerButtonApp-server-e4ea88e0f4d65508950594437e5e34424bd28897.ts} +2 -2
- package/test/party/components/temp/{ColorSelect-client-06e6ef9f285d81975b97d89c8a68a494a32a8e3b.ts → ColorSelect-client-70bf59d6399d63c0eed421b9d370a1e5c97a89ca.ts} +0 -3
- package/test/party/components/temp/{Colors-client-2f3ab581879042904699c9d47ae5001b82edd910.ts → Colors-client-806316cc5e01e8235c0b025cad34b1068addf5a5.ts} +0 -3
- package/test/party/components/temp/{FunnyButton-client-400cff6abc7bdd6dbcd23786070eb0e198800337.ts → FunnyButton-client-6d5662018a5a5529fd52ee82f7c88975b5c3355a.ts} +0 -3
- package/test/party/components/temp/{FunnyButtonApp-client-42c39a8ffb7563c474e6b3ccfc9d4ee064c8fbee.ts → FunnyButtonApp-client-daa929c6d64f67e4a1a387b884317a4bb615b5d4.ts} +0 -5
- package/test/party/components/temp/{FunnyButtonApp-server-48d37de0c755843a2be34d7c7cb5c730689dcc2f.ts → FunnyButtonApp-server-80d85ede7da558154a5aa17cd602d6724bf1c9cb.ts} +3 -3
- package/test/party/components/temp/{TrafficLight-client-b536f07f37c21cd9340db9cef7b95d30c53f9349.ts → TrafficLight-client-4a90675ca6157ed7701aefa0d9141575960a1d47.ts} +0 -3
- package/test/party/components/temp/{UserProfileApp-client-deefee703fc851401cd3a4eec7606d0a228a631d.ts → UserProfileApp-client-e0bfaa4ffed336c8be4b23dd81800501980c9938.ts} +0 -3
- package/test/party/components/temp/{UserProfileApp-server-97397c42aaac0ee3902218d02c0ce6884434cc5b.ts → UserProfileApp-server-86c204098fd0ffbeded50372354488768b255156.ts} +2 -2
- package/test/party/components/temp/{UserProfileContextApp-client-0f5f11a3fd62f7e0e428fec2a260b93fcff61578.ts → UserProfileContextApp-client-05ce216919de6ffde56d1c2c39299173d9b611b3.ts} +0 -3
- package/test/party/components/temp/{UserProfileContextApp-server-95a4b12d30cef621db55d5de102a906ac7286fb2.ts → UserProfileContextApp-server-c970abaa8326db9a5efc3a5c64741743ae0dd1ca.ts} +2 -2
- package/test/props/components/output/Reactive-client.ts +0 -3
- package/test/props/components/output/Reactive-server.ts +2 -2
- package/test/props/components/temp/{Reactive-client-524add56a858b575fda1001bfe4891e6a1d6d751.ts → Reactive-client-cf6e602b2f74fce8e9451b6c41c6f8ff8eab63a3.ts} +0 -3
- package/test/props/components/temp/{Reactive-server-770cd3df7c877c0c99e156b2ba6d1f8b35914027.ts → Reactive-server-206bcc8984bad12c5712661b77d000216cdfe66d.ts} +2 -2
- package/test/replace/components/output/Replace-client.ts +0 -3
- package/test/replace/components/temp/{Replace-client-7f6ae4e645d18c4768ef9a212b2e9626c9abdeb0.ts → Replace-client-2a9ee3430708b469fa31bbc6989eed5b2f22984d.ts} +0 -3
- package/test/slots/components/output/Article-client.ts +0 -7
- package/test/slots/components/output/Basic-client.ts +0 -3
- package/test/slots/components/output/Basic-server.ts +2 -2
- package/test/slots/components/output/Header-client.ts +0 -3
- package/test/slots/components/output/Let-client.ts +0 -3
- package/test/slots/components/output/Let-server.ts +2 -2
- package/test/slots/components/output/List-client.ts +0 -5
- package/test/slots/components/output/Named-client.ts +0 -3
- package/test/slots/components/output/Named-server.ts +2 -2
- package/test/slots/components/output/Unused-client.ts +0 -3
- package/test/slots/components/output/Unused-server.ts +2 -2
- package/test/slots/components/temp/{Article-client-5f243a2540a073d4018bdc93c6a8e285ba965f5c.ts → Article-client-3f2da4b399f94ae8c329489e1ba0ba98196df9c5.ts} +0 -7
- package/test/slots/components/temp/{Basic-client-85377d56d5d37f56ebb10a709e9ffa1a91a2dd91.ts → Basic-client-a2c4bf685d4b75d0395da427b7754c2a58374dd7.ts} +0 -3
- package/test/slots/components/temp/{Basic-server-aed46a5b459cce50e7ddb311c42a76b9e91c2dae.ts → Basic-server-6b37594c9bf74e0c86a05b20213f69651e2cc937.ts} +2 -2
- package/test/slots/components/temp/{Header-client-247a12314f4fc2695e63b576731b9d0c2a73dcac.ts → Header-client-d7418b71df5db36d58a73e909233863a6c03678b.ts} +0 -3
- package/test/slots/components/temp/{Let-client-2625080a2799f5124b1b7083b780958f95539f15.ts → Let-client-913f9dede92b68a3f4a13d1f56f99b3e08e01efe.ts} +0 -3
- package/test/slots/components/temp/{Let-server-62727e5e2db3df405cdbe7a2d339a99113fc7f4a.ts → Let-server-8cad3b1199bec801bc3a1f2f3dbc20f2ef1e9741.ts} +2 -2
- package/test/slots/components/temp/{List-client-2b316860db37180e9bdfabb32f18b391c3994ac4.ts → List-client-6bc2d267a8b2028a14b12b2c70feb7c6a47d6d64.ts} +0 -5
- package/test/slots/components/temp/{Named-client-64e56746d78b308fd788c9b0409d79e4c91756ff.ts → Named-client-f6e7a984759ce8f50bc52dcf56f6f06cab925a80.ts} +0 -3
- package/test/slots/components/temp/{Named-server-829daa82c94fd7142a721cabac1b3402cca8fce6.ts → Named-server-2aac48bb8c7300d1a8858917fe81edc17c6372fa.ts} +2 -2
- package/test/slots/components/temp/{Unused-client-3436f47c322f34378aa240b8ad789048d35b4829.ts → Unused-client-ea0a096aa7a1c958f3bf807f35340b96f8a025ee.ts} +0 -3
- package/test/slots/components/temp/{Unused-server-379b45ff313e82f8b2949385f50d8ea482094520.ts → Unused-server-6e832928d7db6c43c556e7bda8af34ac37c0d4c1.ts} +2 -2
- package/test/special-component/components/output/BigTitle-client.ts +0 -3
- package/test/special-component/components/output/Component-client.ts +0 -5
- package/test/special-component/components/output/Component-server.ts +2 -1
- package/test/special-component/components/output/SmallTitle-client.ts +0 -3
- package/test/special-component/components/temp/{BigTitle-client-aa7930485dfd471094922b7725ab6fd7718817e6.ts → BigTitle-client-c4bd66406d55ce83ab4491c4114d563055e1c275.ts} +0 -3
- package/test/special-component/components/temp/{Component-client-3353f5d7d697fd754f92ea30f751f62efb0635c9.ts → Component-client-c39c66cf5274445bb863fd759e0ef223613a9f3a.ts} +0 -5
- package/test/special-component/components/temp/{Component-server-3564dfcef8d015cab4944a3c75cc6cf329f3fad6.ts → Component-server-14cd9beb57d6e833f75ab8c6624eb9841444ef63.ts} +2 -1
- package/test/special-component/components/temp/{SmallTitle-client-419568c1936f1bb8346db193f0a17848aac61e8e.ts → SmallTitle-client-e4b3e51243ca4f1efca21ac0f957b81e8bc93167.ts} +0 -3
- package/test/special-self/components/output/Self-client.ts +0 -5
- package/test/special-self/components/output/Self-server.ts +2 -2
- package/test/special-self/components/temp/{Self-client-bc1db32c01ceebd8aac04288c4d73431cffb200f.ts → Self-client-43a0a90fac58867c88bf32221883e8da342a0295.ts} +0 -5
- package/test/special-self/components/temp/{Self-server-ee440757ca9772d7b4111451a9ee05a157302e7c.ts → Self-server-b857c30c279a16dd81ad29567fb8abb9b2a0c239.ts} +2 -2
- package/test/svg/components/output/Shape-client.ts +0 -3
- package/test/svg/components/temp/{Shape-client-8e9515d4a360b9f4a945263a485486a557da1075.ts → Shape-client-052ea7838de07222602834de58968a3f89e6ea56.ts} +0 -3
- package/test/switch/components/output/Switch-client.ts +0 -3
- package/test/switch/components/temp/{Switch-client-485db0bdd94941ecad84528054f40ec6330c5e48.ts → Switch-client-30113fadf131c72e7c24160fa62068b651716896.ts} +0 -3
- package/test/watch-array/components/output/Array-client.ts +0 -3
- package/test/watch-array/components/output/ArrayEntries-client.ts +0 -3
- package/test/watch-array/components/output/ArrayIndexes-client.ts +0 -3
- package/test/watch-array/components/output/ArrayUnkeyed-client.ts +0 -3
- package/test/watch-array/components/temp/{Array-client-8b76b82f631c149d12466795ef6b016ebeda5568.ts → Array-client-d048f5c224a3f2e2729878dbb069ce15ca913e12.ts} +0 -3
- package/test/watch-array/components/temp/{ArrayEntries-client-c7b6352485a0d8ebcdb150d3e7f49d60493fde92.ts → ArrayEntries-client-741607b276718f5deb520e3b657dbf6abbb8081c.ts} +0 -3
- package/test/watch-array/components/temp/{ArrayIndexes-client-d8321be46a9572147e7b4bc71d7496985217b4f8.ts → ArrayIndexes-client-8ab14b254ef67dafad5228c9ec1906eb3b3babef.ts} +0 -3
- package/test/watch-array/components/temp/{ArrayUnkeyed-client-e37813da82c6d06de32d77348f23ed29c9c08187.ts → ArrayUnkeyed-client-9684aba82757748815b94c04bf3f8d1f98332535.ts} +0 -3
- package/src/render/nodeReanchor.ts +0 -18
package/package.json
CHANGED
|
@@ -29,7 +29,6 @@ const importsMap: Record<string, string> = {
|
|
|
29
29
|
t_animate: 'import { t_animate } from "${folder}";',
|
|
30
30
|
t_root: 'import { t_root } from "${folder}";',
|
|
31
31
|
t_anchor: 'import { t_anchor } from "${folder}";',
|
|
32
|
-
t_reanchor: 'import { t_reanchor } from "${folder}";',
|
|
33
32
|
t_child: 'import { t_child } from "${folder}";',
|
|
34
33
|
t_next: 'import { t_next } from "${folder}";',
|
|
35
34
|
t_skip: 'import { t_skip } from "${folder}";',
|
|
@@ -679,19 +679,6 @@ function declareParentAndAnchorFragmentVars(
|
|
|
679
679
|
// rather than at the end of the fragment
|
|
680
680
|
buildNode(node, status, b, parentName, anchorName);
|
|
681
681
|
node.handled = true;
|
|
682
|
-
|
|
683
|
-
// Before hydrating, the anchor node actually gets set to the first node
|
|
684
|
-
// After hydrating, we need to reset the anchor node to the end node
|
|
685
|
-
if (declare && node.varName) {
|
|
686
|
-
status.imports.add("t_reanchor");
|
|
687
|
-
b.append(`${node.varName} = t_reanchor(${node.varName}) as HTMLElement;`);
|
|
688
|
-
b.append("");
|
|
689
|
-
|
|
690
|
-
printDebug(node.varName, status, b);
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
// TODO: Due to the above, I think we only need to set the hydration node at
|
|
694
|
-
// the end of a fragment, not in every next() call??
|
|
695
682
|
}
|
|
696
683
|
|
|
697
684
|
function getFragmentVarPath(
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ANCHOR_COMMENT,
|
|
3
|
+
HYDRATION_END_COMMENT,
|
|
4
|
+
HYDRATION_START_COMMENT,
|
|
5
|
+
} from "../../types/comments";
|
|
2
6
|
import { type ElementNode } from "../../types/nodes/ElementNode";
|
|
3
7
|
import isSpecialNode from "../../types/nodes/isSpecialNode";
|
|
4
8
|
import Builder from "../../utils/Builder";
|
|
@@ -15,6 +19,10 @@ export default function buildServerComponentNode(
|
|
|
15
19
|
status: BuildServerStatus,
|
|
16
20
|
b: Builder,
|
|
17
21
|
): void {
|
|
22
|
+
// Surround the entire control statement with bracketed comments, so that we
|
|
23
|
+
// can skip to the end to set the anchor node when hydrating
|
|
24
|
+
status.output += HYDRATION_START_COMMENT;
|
|
25
|
+
|
|
18
26
|
if (status.output) {
|
|
19
27
|
b.append(`$output += \`${status.output}\`;`);
|
|
20
28
|
status.output = "";
|
|
@@ -126,6 +134,9 @@ export default function buildServerComponentNode(
|
|
|
126
134
|
b.append("");
|
|
127
135
|
b.append(`$output += ${componentName}(${renderParams})`);
|
|
128
136
|
|
|
137
|
+
// End the control statement
|
|
138
|
+
status.output += HYDRATION_END_COMMENT;
|
|
139
|
+
|
|
129
140
|
// Add the anchor node
|
|
130
141
|
status.output += ANCHOR_COMMENT;
|
|
131
142
|
}
|
package/src/index.ts
CHANGED
|
@@ -18,7 +18,6 @@ import t_range from "./render/newRange";
|
|
|
18
18
|
import t_anchor from "./render/nodeAnchor";
|
|
19
19
|
import t_child from "./render/nodeChild";
|
|
20
20
|
import t_next from "./render/nodeNext";
|
|
21
|
-
import t_reanchor from "./render/nodeReanchor";
|
|
22
21
|
import t_root from "./render/nodeRoot";
|
|
23
22
|
import t_skip from "./render/nodeSkip";
|
|
24
23
|
import t_pop_range from "./render/popRange";
|
|
@@ -53,7 +52,6 @@ export {
|
|
|
53
52
|
t_style,
|
|
54
53
|
t_range,
|
|
55
54
|
t_anchor,
|
|
56
|
-
t_reanchor,
|
|
57
55
|
t_child,
|
|
58
56
|
t_next,
|
|
59
57
|
t_root,
|
|
@@ -11,7 +11,6 @@ import t_next from "../../../../src/render/nodeNext";
|
|
|
11
11
|
import t_pop_range from "../../../../src/render/popRange";
|
|
12
12
|
import t_push_range from "../../../../src/render/pushRange";
|
|
13
13
|
import t_range from "../../../../src/render/newRange";
|
|
14
|
-
import t_reanchor from "../../../../src/render/nodeReanchor";
|
|
15
14
|
import t_root from "../../../../src/render/nodeRoot";
|
|
16
15
|
import t_run_branch from "../../../../src/render/runControlBranch";
|
|
17
16
|
import t_run_control from "../../../../src/render/runControl";
|
|
@@ -107,8 +106,6 @@ export default function Await(
|
|
|
107
106
|
})(t_await_token_1);
|
|
108
107
|
});
|
|
109
108
|
|
|
110
|
-
t_await_anchor_1 = t_reanchor(t_await_anchor_1) as HTMLElement;
|
|
111
|
-
|
|
112
109
|
const t_button_1 = t_next(t_next(t_await_anchor_1, true)) as HTMLElement;
|
|
113
110
|
// @ts-ignore
|
|
114
111
|
const t_text_5 = t_next(t_await_parent_1, true);
|
|
@@ -11,7 +11,6 @@ import t_next from "../../../../src/render/nodeNext";
|
|
|
11
11
|
import t_pop_range from "../../../../src/render/popRange";
|
|
12
12
|
import t_push_range from "../../../../src/render/pushRange";
|
|
13
13
|
import t_range from "../../../../src/render/newRange";
|
|
14
|
-
import t_reanchor from "../../../../src/render/nodeReanchor";
|
|
15
14
|
import t_root from "../../../../src/render/nodeRoot";
|
|
16
15
|
import t_run_branch from "../../../../src/render/runControlBranch";
|
|
17
16
|
import t_run_control from "../../../../src/render/runControl";
|
|
@@ -107,8 +106,6 @@ export default function Await(
|
|
|
107
106
|
})(t_await_token_1);
|
|
108
107
|
});
|
|
109
108
|
|
|
110
|
-
t_await_anchor_1 = t_reanchor(t_await_anchor_1) as HTMLElement;
|
|
111
|
-
|
|
112
109
|
const t_button_1 = t_next(t_next(t_await_anchor_1, true)) as HTMLElement;
|
|
113
110
|
// @ts-ignore
|
|
114
111
|
const t_text_5 = t_next(t_await_parent_1, true);
|
|
@@ -8,7 +8,6 @@ import t_event from "../../../../src/render/addEvent";
|
|
|
8
8
|
import t_fmt from "../../../../src/render/formatText";
|
|
9
9
|
import t_fragment from "../../../../src/render/getFragment";
|
|
10
10
|
import t_next from "../../../../src/render/nodeNext";
|
|
11
|
-
import t_reanchor from "../../../../src/render/nodeReanchor";
|
|
12
11
|
import t_root from "../../../../src/render/nodeRoot";
|
|
13
12
|
|
|
14
13
|
export default function BindComponent(
|
|
@@ -43,8 +42,6 @@ export default function BindComponent(
|
|
|
43
42
|
});
|
|
44
43
|
BindText(t_comp_parent_1, t_comp_anchor_1, t_props_1, $context);
|
|
45
44
|
|
|
46
|
-
t_comp_anchor_1 = t_reanchor(t_comp_anchor_1) as HTMLElement;
|
|
47
|
-
|
|
48
45
|
const t_text_1 = t_child(t_next(t_next(t_comp_anchor_1, true)));
|
|
49
46
|
// @ts-ignore
|
|
50
47
|
const t_text_2 = t_next(t_comp_parent_1, true);
|
|
@@ -16,12 +16,12 @@ export default function BindComponent(
|
|
|
16
16
|
|
|
17
17
|
/* User interface */
|
|
18
18
|
let $output = "";
|
|
19
|
-
$output += ` <div>
|
|
19
|
+
$output += ` <div> <![>`;
|
|
20
20
|
const t_props_1: any = {};
|
|
21
21
|
t_props_1["&name"] = $state.name;
|
|
22
22
|
|
|
23
23
|
$output += BindText(t_props_1, $context)
|
|
24
|
-
$output +=
|
|
24
|
+
$output += `<!]><!> <p>Hello, ${t_fmt($state.name)}</p> </div> `;
|
|
25
25
|
|
|
26
26
|
return $output;
|
|
27
27
|
}
|
|
@@ -8,7 +8,6 @@ import t_event from "../../../../src/render/addEvent";
|
|
|
8
8
|
import t_fmt from "../../../../src/render/formatText";
|
|
9
9
|
import t_fragment from "../../../../src/render/getFragment";
|
|
10
10
|
import t_next from "../../../../src/render/nodeNext";
|
|
11
|
-
import t_reanchor from "../../../../src/render/nodeReanchor";
|
|
12
11
|
import t_root from "../../../../src/render/nodeRoot";
|
|
13
12
|
|
|
14
13
|
export default function BindComponent(
|
|
@@ -43,8 +42,6 @@ export default function BindComponent(
|
|
|
43
42
|
});
|
|
44
43
|
BindText(t_comp_parent_1, t_comp_anchor_1, t_props_1, $context);
|
|
45
44
|
|
|
46
|
-
t_comp_anchor_1 = t_reanchor(t_comp_anchor_1) as HTMLElement;
|
|
47
|
-
|
|
48
45
|
const t_text_1 = t_child(t_next(t_next(t_comp_anchor_1, true)));
|
|
49
46
|
// @ts-ignore
|
|
50
47
|
const t_text_2 = t_next(t_comp_parent_1, true);
|
|
@@ -16,12 +16,12 @@ export default function BindComponent(
|
|
|
16
16
|
|
|
17
17
|
/* User interface */
|
|
18
18
|
let $output = "";
|
|
19
|
-
$output += ` <div>
|
|
19
|
+
$output += ` <div> <![>`;
|
|
20
20
|
const t_props_1: any = {};
|
|
21
21
|
t_props_1["&name"] = $state.name;
|
|
22
22
|
|
|
23
23
|
$output += BindText(t_props_1, $context)
|
|
24
|
-
$output +=
|
|
24
|
+
$output += `<!]><!> <p>Hello, ${t_fmt($state.name)}</p> </div> `;
|
|
25
25
|
|
|
26
26
|
return $output;
|
|
27
27
|
}
|
package/test/buildOutputFiles.ts
CHANGED
|
@@ -140,8 +140,6 @@ const importsMap: Record<string, string> = {
|
|
|
140
140
|
'import { t_root } from "@torpor/view";': 'import t_root from "../../../../src/render/nodeRoot";',
|
|
141
141
|
'import { t_anchor } from "@torpor/view";':
|
|
142
142
|
'import t_anchor from "../../../../src/render/nodeAnchor";',
|
|
143
|
-
'import { t_reanchor } from "@torpor/view";':
|
|
144
|
-
'import t_reanchor from "../../../../src/render/nodeReanchor";',
|
|
145
143
|
'import { t_child } from "@torpor/view";':
|
|
146
144
|
'import t_child from "../../../../src/render/nodeChild";',
|
|
147
145
|
'import { t_next } from "@torpor/view";': 'import t_next from "../../../../src/render/nodeNext";',
|
|
@@ -7,7 +7,6 @@ import t_child from "../../../../src/render/nodeChild";
|
|
|
7
7
|
import t_fmt from "../../../../src/render/formatText";
|
|
8
8
|
import t_fragment from "../../../../src/render/getFragment";
|
|
9
9
|
import t_next from "../../../../src/render/nodeNext";
|
|
10
|
-
import t_reanchor from "../../../../src/render/nodeReanchor";
|
|
11
10
|
import t_root from "../../../../src/render/nodeRoot";
|
|
12
11
|
|
|
13
12
|
export default function ParentChild(
|
|
@@ -35,8 +34,6 @@ export default function ParentChild(
|
|
|
35
34
|
t_props_1["name"] = "Anna";
|
|
36
35
|
Child(t_comp_parent_1, t_comp_anchor_1, t_props_1, $context);
|
|
37
36
|
|
|
38
|
-
t_comp_anchor_1 = t_reanchor(t_comp_anchor_1) as HTMLElement;
|
|
39
|
-
|
|
40
37
|
// @ts-ignore
|
|
41
38
|
const t_text_1 = t_next(t_comp_parent_1, true);
|
|
42
39
|
t_add_fragment(t_fragment_0, $parent, $anchor, t_text_1);
|
|
@@ -12,12 +12,12 @@ export default function ParentChild(
|
|
|
12
12
|
|
|
13
13
|
/* User interface */
|
|
14
14
|
let $output = "";
|
|
15
|
-
$output += ` <div>
|
|
15
|
+
$output += ` <div> <![>`;
|
|
16
16
|
const t_props_1: any = {};
|
|
17
17
|
t_props_1["name"] = "Anna";
|
|
18
18
|
|
|
19
19
|
$output += Child(t_props_1, $context)
|
|
20
|
-
$output +=
|
|
20
|
+
$output += `<!]><!> </div> `;
|
|
21
21
|
|
|
22
22
|
return $output;
|
|
23
23
|
}
|
|
@@ -7,7 +7,6 @@ import t_child from "../../../../src/render/nodeChild";
|
|
|
7
7
|
import t_fmt from "../../../../src/render/formatText";
|
|
8
8
|
import t_fragment from "../../../../src/render/getFragment";
|
|
9
9
|
import t_next from "../../../../src/render/nodeNext";
|
|
10
|
-
import t_reanchor from "../../../../src/render/nodeReanchor";
|
|
11
10
|
import t_root from "../../../../src/render/nodeRoot";
|
|
12
11
|
|
|
13
12
|
export default function ParentChild(
|
|
@@ -35,8 +34,6 @@ export default function ParentChild(
|
|
|
35
34
|
t_props_1["name"] = "Anna";
|
|
36
35
|
Child(t_comp_parent_1, t_comp_anchor_1, t_props_1, $context);
|
|
37
36
|
|
|
38
|
-
t_comp_anchor_1 = t_reanchor(t_comp_anchor_1) as HTMLElement;
|
|
39
|
-
|
|
40
37
|
// @ts-ignore
|
|
41
38
|
const t_text_1 = t_next(t_comp_parent_1, true);
|
|
42
39
|
t_add_fragment(t_fragment_0, $parent, $anchor, t_text_1);
|
|
@@ -12,12 +12,12 @@ export default function ParentChild(
|
|
|
12
12
|
|
|
13
13
|
/* User interface */
|
|
14
14
|
let $output = "";
|
|
15
|
-
$output += ` <div>
|
|
15
|
+
$output += ` <div> <![>`;
|
|
16
16
|
const t_props_1: any = {};
|
|
17
17
|
t_props_1["name"] = "Anna";
|
|
18
18
|
|
|
19
19
|
$output += Child(t_props_1, $context)
|
|
20
|
-
$output +=
|
|
20
|
+
$output += `<!]><!> </div> `;
|
|
21
21
|
|
|
22
22
|
return $output;
|
|
23
23
|
}
|
|
@@ -7,7 +7,6 @@ import t_child from "../../../../src/render/nodeChild";
|
|
|
7
7
|
import t_class from "../../../../src/render/getClasses";
|
|
8
8
|
import t_fragment from "../../../../src/render/getFragment";
|
|
9
9
|
import t_next from "../../../../src/render/nodeNext";
|
|
10
|
-
import t_reanchor from "../../../../src/render/nodeReanchor";
|
|
11
10
|
import t_root from "../../../../src/render/nodeRoot";
|
|
12
11
|
|
|
13
12
|
export default function Class(
|
|
@@ -42,8 +41,6 @@ export default function Class(
|
|
|
42
41
|
});
|
|
43
42
|
Child(t_comp_parent_1, t_comp_anchor_1, t_props_1, $context);
|
|
44
43
|
|
|
45
|
-
t_comp_anchor_1 = t_reanchor(t_comp_anchor_1) as HTMLElement;
|
|
46
|
-
|
|
47
44
|
// @ts-ignore
|
|
48
45
|
const t_text_1 = t_next(t_comp_parent_1, true);
|
|
49
46
|
$run(function setClasses() {
|
|
@@ -13,12 +13,12 @@ export default function Class(
|
|
|
13
13
|
|
|
14
14
|
/* User interface */
|
|
15
15
|
let $output = "";
|
|
16
|
-
$output += ` <div class="torp-1ljxz83"> <div id="divid" class="torp-1ljxz83"> From id </div> <div class="divclass torp-1ljxz83"> From string </div> <a class="${t_class({ hello: true, red: $props.red, green: $props.green, blue: $props.blue }, "torp-1ljxz83")}"> From state </a> <div class="${t_class({ hello: true, red: $props.red, green: $props.green, blue: $props.blue }, "torp-1ljxz83")}"> From state with scope </div> <div class="${t_class({ foo: true, bar: false, baz: 5, qux: null }, "torp-1ljxz83")}"> Class object </div> <div class="${t_class([ "foo", false, true && "baz", undefined ], "torp-1ljxz83")}"> Class array </div> <div class="${t_class([ "foo", 0, { bar: true }, "", [1 && "baz", ["qux"]] ], "torp-1ljxz83")}"> Class nested </div>
|
|
16
|
+
$output += ` <div class="torp-1ljxz83"> <div id="divid" class="torp-1ljxz83"> From id </div> <div class="divclass torp-1ljxz83"> From string </div> <a class="${t_class({ hello: true, red: $props.red, green: $props.green, blue: $props.blue }, "torp-1ljxz83")}"> From state </a> <div class="${t_class({ hello: true, red: $props.red, green: $props.green, blue: $props.blue }, "torp-1ljxz83")}"> From state with scope </div> <div class="${t_class({ foo: true, bar: false, baz: 5, qux: null }, "torp-1ljxz83")}"> Class object </div> <div class="${t_class([ "foo", false, true && "baz", undefined ], "torp-1ljxz83")}"> Class array </div> <div class="${t_class([ "foo", 0, { bar: true }, "", [1 && "baz", ["qux"]] ], "torp-1ljxz83")}"> Class nested </div> <![>`;
|
|
17
17
|
const t_props_1: any = {};
|
|
18
18
|
t_props_1["class"] = t_class({ "child-class": true }, "torp-1ljxz83");
|
|
19
19
|
|
|
20
20
|
$output += Child(t_props_1, $context)
|
|
21
|
-
$output +=
|
|
21
|
+
$output += `<!]><!> </div> `;
|
|
22
22
|
|
|
23
23
|
return $output;
|
|
24
24
|
}
|
|
@@ -7,7 +7,6 @@ import t_child from "../../../../src/render/nodeChild";
|
|
|
7
7
|
import t_class from "../../../../src/render/getClasses";
|
|
8
8
|
import t_fragment from "../../../../src/render/getFragment";
|
|
9
9
|
import t_next from "../../../../src/render/nodeNext";
|
|
10
|
-
import t_reanchor from "../../../../src/render/nodeReanchor";
|
|
11
10
|
import t_root from "../../../../src/render/nodeRoot";
|
|
12
11
|
|
|
13
12
|
export default function Class(
|
|
@@ -42,8 +41,6 @@ export default function Class(
|
|
|
42
41
|
});
|
|
43
42
|
Child(t_comp_parent_1, t_comp_anchor_1, t_props_1, $context);
|
|
44
43
|
|
|
45
|
-
t_comp_anchor_1 = t_reanchor(t_comp_anchor_1) as HTMLElement;
|
|
46
|
-
|
|
47
44
|
// @ts-ignore
|
|
48
45
|
const t_text_1 = t_next(t_comp_parent_1, true);
|
|
49
46
|
$run(function setClasses() {
|
|
@@ -13,12 +13,12 @@ export default function Class(
|
|
|
13
13
|
|
|
14
14
|
/* User interface */
|
|
15
15
|
let $output = "";
|
|
16
|
-
$output += ` <div class="torp-1ljxz83"> <div id="divid" class="torp-1ljxz83"> From id </div> <div class="divclass torp-1ljxz83"> From string </div> <a class="${t_class({ hello: true, red: $props.red, green: $props.green, blue: $props.blue }, "torp-1ljxz83")}"> From state </a> <div class="${t_class({ hello: true, red: $props.red, green: $props.green, blue: $props.blue }, "torp-1ljxz83")}"> From state with scope </div> <div class="${t_class({ foo: true, bar: false, baz: 5, qux: null }, "torp-1ljxz83")}"> Class object </div> <div class="${t_class([ "foo", false, true && "baz", undefined ], "torp-1ljxz83")}"> Class array </div> <div class="${t_class([ "foo", 0, { bar: true }, "", [1 && "baz", ["qux"]] ], "torp-1ljxz83")}"> Class nested </div>
|
|
16
|
+
$output += ` <div class="torp-1ljxz83"> <div id="divid" class="torp-1ljxz83"> From id </div> <div class="divclass torp-1ljxz83"> From string </div> <a class="${t_class({ hello: true, red: $props.red, green: $props.green, blue: $props.blue }, "torp-1ljxz83")}"> From state </a> <div class="${t_class({ hello: true, red: $props.red, green: $props.green, blue: $props.blue }, "torp-1ljxz83")}"> From state with scope </div> <div class="${t_class({ foo: true, bar: false, baz: 5, qux: null }, "torp-1ljxz83")}"> Class object </div> <div class="${t_class([ "foo", false, true && "baz", undefined ], "torp-1ljxz83")}"> Class array </div> <div class="${t_class([ "foo", 0, { bar: true }, "", [1 && "baz", ["qux"]] ], "torp-1ljxz83")}"> Class nested </div> <![>`;
|
|
17
17
|
const t_props_1: any = {};
|
|
18
18
|
t_props_1["class"] = t_class({ "child-class": true }, "torp-1ljxz83");
|
|
19
19
|
|
|
20
20
|
$output += Child(t_props_1, $context)
|
|
21
|
-
$output +=
|
|
21
|
+
$output += `<!]><!> </div> `;
|
|
22
22
|
|
|
23
23
|
return $output;
|
|
24
24
|
}
|
|
@@ -4,7 +4,6 @@ import t_add_fragment from "../../../../src/render/addFragment";
|
|
|
4
4
|
import t_anchor from "../../../../src/render/nodeAnchor";
|
|
5
5
|
import t_fragment from "../../../../src/render/getFragment";
|
|
6
6
|
import t_next from "../../../../src/render/nodeNext";
|
|
7
|
-
import t_reanchor from "../../../../src/render/nodeReanchor";
|
|
8
7
|
import t_root from "../../../../src/render/nodeRoot";
|
|
9
8
|
|
|
10
9
|
import Header from "../output/./Header-client";
|
|
@@ -33,8 +32,6 @@ export default function Component(
|
|
|
33
32
|
t_props_1["name"] = "Amy";
|
|
34
33
|
Header(t_fragment_0, t_comp_anchor_1, t_props_1, $context);
|
|
35
34
|
|
|
36
|
-
t_comp_anchor_1 = t_reanchor(t_comp_anchor_1) as HTMLElement;
|
|
37
|
-
|
|
38
35
|
// @ts-ignore
|
|
39
36
|
const t_text_1 = t_next(t_comp_anchor_1, true);
|
|
40
37
|
t_add_fragment(t_fragment_0, $parent, $anchor, t_text_1);
|
|
@@ -13,12 +13,12 @@ export default function Component(
|
|
|
13
13
|
|
|
14
14
|
/* User interface */
|
|
15
15
|
let $output = "";
|
|
16
|
-
$output += `
|
|
16
|
+
$output += ` <![>`;
|
|
17
17
|
const t_props_1: any = {};
|
|
18
18
|
t_props_1["name"] = "Amy";
|
|
19
19
|
|
|
20
20
|
$output += Header(t_props_1, $context)
|
|
21
|
-
$output +=
|
|
21
|
+
$output += `<!]><!> `;
|
|
22
22
|
|
|
23
23
|
return $output;
|
|
24
24
|
}
|
|
@@ -4,7 +4,6 @@ import t_add_fragment from "../../../../src/render/addFragment";
|
|
|
4
4
|
import t_anchor from "../../../../src/render/nodeAnchor";
|
|
5
5
|
import t_fragment from "../../../../src/render/getFragment";
|
|
6
6
|
import t_next from "../../../../src/render/nodeNext";
|
|
7
|
-
import t_reanchor from "../../../../src/render/nodeReanchor";
|
|
8
7
|
import t_root from "../../../../src/render/nodeRoot";
|
|
9
8
|
|
|
10
9
|
import Header from "../output/./Header-client";
|
|
@@ -33,8 +32,6 @@ export default function Component(
|
|
|
33
32
|
t_props_1["name"] = "Amy";
|
|
34
33
|
Header(t_fragment_0, t_comp_anchor_1, t_props_1, $context);
|
|
35
34
|
|
|
36
|
-
t_comp_anchor_1 = t_reanchor(t_comp_anchor_1) as HTMLElement;
|
|
37
|
-
|
|
38
35
|
// @ts-ignore
|
|
39
36
|
const t_text_1 = t_next(t_comp_anchor_1, true);
|
|
40
37
|
t_add_fragment(t_fragment_0, $parent, $anchor, t_text_1);
|
|
@@ -13,12 +13,12 @@ export default function Component(
|
|
|
13
13
|
|
|
14
14
|
/* User interface */
|
|
15
15
|
let $output = "";
|
|
16
|
-
$output += `
|
|
16
|
+
$output += ` <![>`;
|
|
17
17
|
const t_props_1: any = {};
|
|
18
18
|
t_props_1["name"] = "Amy";
|
|
19
19
|
|
|
20
20
|
$output += Header(t_props_1, $context)
|
|
21
|
-
$output +=
|
|
21
|
+
$output += `<!]><!> `;
|
|
22
22
|
|
|
23
23
|
return $output;
|
|
24
24
|
}
|
|
@@ -12,7 +12,6 @@ import t_next from "../../../../src/render/nodeNext";
|
|
|
12
12
|
import t_pop_range from "../../../../src/render/popRange";
|
|
13
13
|
import t_push_range from "../../../../src/render/pushRange";
|
|
14
14
|
import t_range from "../../../../src/render/newRange";
|
|
15
|
-
import t_reanchor from "../../../../src/render/nodeReanchor";
|
|
16
15
|
import t_root from "../../../../src/render/nodeRoot";
|
|
17
16
|
import t_run_list from "../../../../src/render/runList";
|
|
18
17
|
|
|
@@ -69,8 +68,6 @@ export default function For(
|
|
|
69
68
|
}
|
|
70
69
|
);
|
|
71
70
|
|
|
72
|
-
t_for_anchor_1 = t_reanchor(t_for_anchor_1) as HTMLElement;
|
|
73
|
-
|
|
74
71
|
// @ts-ignore
|
|
75
72
|
const t_text_3 = t_next(t_for_parent_1, true);
|
|
76
73
|
t_add_fragment(t_fragment_0, $parent, $anchor, t_text_3);
|
|
@@ -6,7 +6,6 @@ import t_child from "../../../../src/render/nodeChild";
|
|
|
6
6
|
import t_fragment from "../../../../src/render/getFragment";
|
|
7
7
|
import t_next from "../../../../src/render/nodeNext";
|
|
8
8
|
import t_range from "../../../../src/render/newRange";
|
|
9
|
-
import t_reanchor from "../../../../src/render/nodeReanchor";
|
|
10
9
|
import t_root from "../../../../src/render/nodeRoot";
|
|
11
10
|
import t_run_branch from "../../../../src/render/runControlBranch";
|
|
12
11
|
import t_run_control from "../../../../src/render/runControl";
|
|
@@ -58,8 +57,6 @@ export default function If(
|
|
|
58
57
|
}
|
|
59
58
|
});
|
|
60
59
|
|
|
61
|
-
t_if_anchor_1 = t_reanchor(t_if_anchor_1) as HTMLElement;
|
|
62
|
-
|
|
63
60
|
// @ts-ignore
|
|
64
61
|
const t_text_3 = t_next(t_if_parent_1, true);
|
|
65
62
|
t_add_fragment(t_fragment_0, $parent, $anchor, t_text_3);
|
|
@@ -6,7 +6,6 @@ import t_child from "../../../../src/render/nodeChild";
|
|
|
6
6
|
import t_fragment from "../../../../src/render/getFragment";
|
|
7
7
|
import t_next from "../../../../src/render/nodeNext";
|
|
8
8
|
import t_range from "../../../../src/render/newRange";
|
|
9
|
-
import t_reanchor from "../../../../src/render/nodeReanchor";
|
|
10
9
|
import t_root from "../../../../src/render/nodeRoot";
|
|
11
10
|
import t_run_branch from "../../../../src/render/runControlBranch";
|
|
12
11
|
import t_run_control from "../../../../src/render/runControl";
|
|
@@ -68,8 +67,6 @@ export default function NestedIf(
|
|
|
68
67
|
}
|
|
69
68
|
});
|
|
70
69
|
|
|
71
|
-
t_if_anchor_2 = t_reanchor(t_if_anchor_2) as HTMLElement;
|
|
72
|
-
|
|
73
70
|
// @ts-ignore
|
|
74
71
|
const t_text_3 = t_next(t_if_anchor_2, true);
|
|
75
72
|
t_add_fragment(t_fragment_1, t_if_parent_1, t_before, t_text_3);
|
|
@@ -82,8 +79,6 @@ export default function NestedIf(
|
|
|
82
79
|
}
|
|
83
80
|
});
|
|
84
81
|
|
|
85
|
-
t_if_anchor_1 = t_reanchor(t_if_anchor_1) as HTMLElement;
|
|
86
|
-
|
|
87
82
|
// @ts-ignore
|
|
88
83
|
const t_text_4 = t_next(t_if_parent_1, true);
|
|
89
84
|
t_add_fragment(t_fragment_0, $parent, $anchor, t_text_4);
|
|
@@ -12,7 +12,6 @@ import t_next from "../../../../src/render/nodeNext";
|
|
|
12
12
|
import t_pop_range from "../../../../src/render/popRange";
|
|
13
13
|
import t_push_range from "../../../../src/render/pushRange";
|
|
14
14
|
import t_range from "../../../../src/render/newRange";
|
|
15
|
-
import t_reanchor from "../../../../src/render/nodeReanchor";
|
|
16
15
|
import t_root from "../../../../src/render/nodeRoot";
|
|
17
16
|
import t_run_list from "../../../../src/render/runList";
|
|
18
17
|
|
|
@@ -69,8 +68,6 @@ export default function For(
|
|
|
69
68
|
}
|
|
70
69
|
);
|
|
71
70
|
|
|
72
|
-
t_for_anchor_1 = t_reanchor(t_for_anchor_1) as HTMLElement;
|
|
73
|
-
|
|
74
71
|
// @ts-ignore
|
|
75
72
|
const t_text_3 = t_next(t_for_parent_1, true);
|
|
76
73
|
t_add_fragment(t_fragment_0, $parent, $anchor, t_text_3);
|
|
@@ -6,7 +6,6 @@ import t_child from "../../../../src/render/nodeChild";
|
|
|
6
6
|
import t_fragment from "../../../../src/render/getFragment";
|
|
7
7
|
import t_next from "../../../../src/render/nodeNext";
|
|
8
8
|
import t_range from "../../../../src/render/newRange";
|
|
9
|
-
import t_reanchor from "../../../../src/render/nodeReanchor";
|
|
10
9
|
import t_root from "../../../../src/render/nodeRoot";
|
|
11
10
|
import t_run_branch from "../../../../src/render/runControlBranch";
|
|
12
11
|
import t_run_control from "../../../../src/render/runControl";
|
|
@@ -58,8 +57,6 @@ export default function If(
|
|
|
58
57
|
}
|
|
59
58
|
});
|
|
60
59
|
|
|
61
|
-
t_if_anchor_1 = t_reanchor(t_if_anchor_1) as HTMLElement;
|
|
62
|
-
|
|
63
60
|
// @ts-ignore
|
|
64
61
|
const t_text_3 = t_next(t_if_parent_1, true);
|
|
65
62
|
t_add_fragment(t_fragment_0, $parent, $anchor, t_text_3);
|
|
@@ -6,7 +6,6 @@ import t_child from "../../../../src/render/nodeChild";
|
|
|
6
6
|
import t_fragment from "../../../../src/render/getFragment";
|
|
7
7
|
import t_next from "../../../../src/render/nodeNext";
|
|
8
8
|
import t_range from "../../../../src/render/newRange";
|
|
9
|
-
import t_reanchor from "../../../../src/render/nodeReanchor";
|
|
10
9
|
import t_root from "../../../../src/render/nodeRoot";
|
|
11
10
|
import t_run_branch from "../../../../src/render/runControlBranch";
|
|
12
11
|
import t_run_control from "../../../../src/render/runControl";
|
|
@@ -68,8 +67,6 @@ export default function NestedIf(
|
|
|
68
67
|
}
|
|
69
68
|
});
|
|
70
69
|
|
|
71
|
-
t_if_anchor_2 = t_reanchor(t_if_anchor_2) as HTMLElement;
|
|
72
|
-
|
|
73
70
|
// @ts-ignore
|
|
74
71
|
const t_text_3 = t_next(t_if_anchor_2, true);
|
|
75
72
|
t_add_fragment(t_fragment_1, t_if_parent_1, t_before, t_text_3);
|
|
@@ -82,8 +79,6 @@ export default function NestedIf(
|
|
|
82
79
|
}
|
|
83
80
|
});
|
|
84
81
|
|
|
85
|
-
t_if_anchor_1 = t_reanchor(t_if_anchor_1) as HTMLElement;
|
|
86
|
-
|
|
87
82
|
// @ts-ignore
|
|
88
83
|
const t_text_4 = t_next(t_if_parent_1, true);
|
|
89
84
|
t_add_fragment(t_fragment_0, $parent, $anchor, t_text_4);
|
|
@@ -11,7 +11,6 @@ import t_next from "../../../../src/render/nodeNext";
|
|
|
11
11
|
import t_pop_range from "../../../../src/render/popRange";
|
|
12
12
|
import t_push_range from "../../../../src/render/pushRange";
|
|
13
13
|
import t_range from "../../../../src/render/newRange";
|
|
14
|
-
import t_reanchor from "../../../../src/render/nodeReanchor";
|
|
15
14
|
import t_root from "../../../../src/render/nodeRoot";
|
|
16
15
|
import t_run_list from "../../../../src/render/runList";
|
|
17
16
|
|
|
@@ -68,8 +67,6 @@ export default function For(
|
|
|
68
67
|
}
|
|
69
68
|
);
|
|
70
69
|
|
|
71
|
-
t_for_anchor_1 = t_reanchor(t_for_anchor_1) as HTMLElement;
|
|
72
|
-
|
|
73
70
|
// @ts-ignore
|
|
74
71
|
const t_text_3 = t_next(t_for_parent_1, true);
|
|
75
72
|
t_add_fragment(t_fragment_0, $parent, $anchor, t_text_3);
|
|
@@ -13,7 +13,6 @@ import t_next from "../../../../src/render/nodeNext";
|
|
|
13
13
|
import t_pop_range from "../../../../src/render/popRange";
|
|
14
14
|
import t_push_range from "../../../../src/render/pushRange";
|
|
15
15
|
import t_range from "../../../../src/render/newRange";
|
|
16
|
-
import t_reanchor from "../../../../src/render/nodeReanchor";
|
|
17
16
|
import t_root from "../../../../src/render/nodeRoot";
|
|
18
17
|
import t_run_list from "../../../../src/render/runList";
|
|
19
18
|
|
|
@@ -101,8 +100,6 @@ export default function ForEscape(
|
|
|
101
100
|
}
|
|
102
101
|
);
|
|
103
102
|
|
|
104
|
-
t_for_anchor_1 = t_reanchor(t_for_anchor_1) as HTMLElement;
|
|
105
|
-
|
|
106
103
|
// @ts-ignore
|
|
107
104
|
const t_text_3 = t_next(t_for_parent_1, true);
|
|
108
105
|
t_add_fragment(t_fragment_0, $parent, $anchor, t_text_3);
|
|
@@ -12,7 +12,6 @@ import t_next from "../../../../src/render/nodeNext";
|
|
|
12
12
|
import t_pop_range from "../../../../src/render/popRange";
|
|
13
13
|
import t_push_range from "../../../../src/render/pushRange";
|
|
14
14
|
import t_range from "../../../../src/render/newRange";
|
|
15
|
-
import t_reanchor from "../../../../src/render/nodeReanchor";
|
|
16
15
|
import t_root from "../../../../src/render/nodeRoot";
|
|
17
16
|
import t_run_list from "../../../../src/render/runList";
|
|
18
17
|
|
|
@@ -69,8 +68,6 @@ export default function ForIn(
|
|
|
69
68
|
}
|
|
70
69
|
);
|
|
71
70
|
|
|
72
|
-
t_for_anchor_1 = t_reanchor(t_for_anchor_1) as HTMLElement;
|
|
73
|
-
|
|
74
71
|
// @ts-ignore
|
|
75
72
|
const t_text_3 = t_next(t_for_parent_1, true);
|
|
76
73
|
t_add_fragment(t_fragment_0, $parent, $anchor, t_text_3);
|
|
@@ -12,7 +12,6 @@ import t_next from "../../../../src/render/nodeNext";
|
|
|
12
12
|
import t_pop_range from "../../../../src/render/popRange";
|
|
13
13
|
import t_push_range from "../../../../src/render/pushRange";
|
|
14
14
|
import t_range from "../../../../src/render/newRange";
|
|
15
|
-
import t_reanchor from "../../../../src/render/nodeReanchor";
|
|
16
15
|
import t_root from "../../../../src/render/nodeRoot";
|
|
17
16
|
import t_run_list from "../../../../src/render/runList";
|
|
18
17
|
|
|
@@ -69,8 +68,6 @@ export default function ForOf(
|
|
|
69
68
|
}
|
|
70
69
|
);
|
|
71
70
|
|
|
72
|
-
t_for_anchor_1 = t_reanchor(t_for_anchor_1) as HTMLElement;
|
|
73
|
-
|
|
74
71
|
// @ts-ignore
|
|
75
72
|
const t_text_3 = t_next(t_for_parent_1, true);
|
|
76
73
|
t_add_fragment(t_fragment_0, $parent, $anchor, t_text_3);
|
|
@@ -11,7 +11,6 @@ import t_next from "../../../../src/render/nodeNext";
|
|
|
11
11
|
import t_pop_range from "../../../../src/render/popRange";
|
|
12
12
|
import t_push_range from "../../../../src/render/pushRange";
|
|
13
13
|
import t_range from "../../../../src/render/newRange";
|
|
14
|
-
import t_reanchor from "../../../../src/render/nodeReanchor";
|
|
15
14
|
import t_root from "../../../../src/render/nodeRoot";
|
|
16
15
|
import t_run_list from "../../../../src/render/runList";
|
|
17
16
|
|
|
@@ -68,8 +67,6 @@ export default function For(
|
|
|
68
67
|
}
|
|
69
68
|
);
|
|
70
69
|
|
|
71
|
-
t_for_anchor_1 = t_reanchor(t_for_anchor_1) as HTMLElement;
|
|
72
|
-
|
|
73
70
|
// @ts-ignore
|
|
74
71
|
const t_text_3 = t_next(t_for_parent_1, true);
|
|
75
72
|
t_add_fragment(t_fragment_0, $parent, $anchor, t_text_3);
|