ripple 0.3.84 → 0.3.85

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.
Files changed (53) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/package.json +3 -3
  3. package/src/constants.js +4 -0
  4. package/src/runtime/internal/client/component.js +3 -3
  5. package/src/runtime/internal/client/constants.js +4 -0
  6. package/src/runtime/internal/client/for.js +22 -1
  7. package/src/runtime/internal/client/if.js +18 -2
  8. package/src/runtime/internal/client/index.js +1 -0
  9. package/src/runtime/internal/client/operations.js +25 -0
  10. package/src/runtime/internal/client/runtime.js +62 -10
  11. package/src/runtime/internal/client/switch.js +16 -2
  12. package/src/runtime/internal/client/template.js +10 -2
  13. package/src/runtime/internal/client/try.js +12 -2
  14. package/src/runtime/internal/client/types.d.ts +4 -0
  15. package/tests/client/__snapshots__/for.test.tsrx.snap +0 -2
  16. package/tests/client/compiler/compiler.basic.test.tsrx +5 -2
  17. package/tests/client/composite/__snapshots__/composite.render.test.tsrx.snap +0 -4
  18. package/tests/client/scoped-flush.test.tsrx +105 -0
  19. package/tests/hydration/compiled/client/basic.js +198 -214
  20. package/tests/hydration/compiled/client/composite.js +23 -72
  21. package/tests/hydration/compiled/client/for.js +66 -72
  22. package/tests/hydration/compiled/client/hmr.js +2 -13
  23. package/tests/hydration/compiled/client/html.js +619 -479
  24. package/tests/hydration/compiled/client/if-children.js +72 -84
  25. package/tests/hydration/compiled/client/if.js +87 -92
  26. package/tests/hydration/compiled/client/mixed-control-flow.js +120 -160
  27. package/tests/hydration/compiled/client/nested-control-flow.js +288 -360
  28. package/tests/hydration/compiled/client/portal.js +15 -21
  29. package/tests/hydration/compiled/client/reactivity.js +7 -12
  30. package/tests/hydration/compiled/client/switch.js +113 -115
  31. package/tests/hydration/compiled/client/track-async-serialization.js +71 -122
  32. package/tests/hydration/compiled/client/try.js +26 -41
  33. package/tests/hydration/compiled/server/basic.js +268 -556
  34. package/tests/hydration/compiled/server/composite.js +31 -50
  35. package/tests/hydration/compiled/server/events.js +37 -173
  36. package/tests/hydration/compiled/server/for.js +236 -847
  37. package/tests/hydration/compiled/server/head.js +110 -241
  38. package/tests/hydration/compiled/server/hmr.js +14 -41
  39. package/tests/hydration/compiled/server/html-in-template.js +14 -38
  40. package/tests/hydration/compiled/server/html.js +951 -1176
  41. package/tests/hydration/compiled/server/if-children.js +59 -493
  42. package/tests/hydration/compiled/server/if.js +57 -209
  43. package/tests/hydration/compiled/server/mixed-control-flow.js +144 -250
  44. package/tests/hydration/compiled/server/nested-control-flow.js +309 -559
  45. package/tests/hydration/compiled/server/portal.js +94 -156
  46. package/tests/hydration/compiled/server/reactivity.js +23 -65
  47. package/tests/hydration/compiled/server/return.js +6 -16
  48. package/tests/hydration/compiled/server/switch.js +91 -219
  49. package/tests/hydration/compiled/server/track-async-serialization.js +211 -256
  50. package/tests/hydration/compiled/server/try.js +67 -126
  51. package/tests/hydration/components/html.tsrx +75 -0
  52. package/tests/hydration/html.test.js +50 -0
  53. package/tests/server/compiler.test.tsrx +6 -2
@@ -8,72 +8,69 @@ var root_3 = _$_.template(`<div class="outer"><div class="inner"><span>Nested co
8
8
  var root_5 = _$_.template(`<input type="text" placeholder="Enter text" disabled><a href="/link" target="_blank">Link</a>`, 1, 2);
9
9
  var root_4 = _$_.template(`<!>`, 1, 1);
10
10
  var root_6 = _$_.template(`<span class="child">Child content</span>`, 0);
11
- var root_7 = _$_.template(`<div class="parent"><!></div>`, 0);
11
+ var root_7 = _$_.template(`<div class="parent"></div>`, 0);
12
12
  var root_8 = _$_.template(`<div class="first">First</div>`, 0);
13
13
  var root_9 = _$_.template(`<div class="second">Second</div>`, 0);
14
14
  var root_11 = _$_.template(`<!><!>`, 1, 2);
15
15
  var root_10 = _$_.template(`<!>`, 1, 1);
16
16
  var root_12 = _$_.template(`<div> </div>`, 0);
17
+ var root_14 = _$_.template(`<div> </div><span> </span>`, 1, 2);
17
18
  var root_13 = _$_.template(`<!>`, 1, 1);
18
- var root_15 = _$_.template(`<div> </div><span> </span>`, 1, 2);
19
- var root_14 = _$_.template(`<!>`, 1, 1);
20
- var root_16 = _$_.template(`<div class="helper-item"> </div>`, 0);
21
- var root_19 = _$_.template(`<!>`, 1, 1);
22
- var root_18 = _$_.template(`<span class="label"> </span><!>`, 1, 2);
23
- var root_17 = _$_.template(`<!>`, 1, 1);
24
- var root_21 = _$_.template(`<div class="app-item"> </div>`, 0);
25
- var root_20 = _$_.template(`<div class="nested-expression-values"><!><!></div>`, 0);
26
- var root_22 = _$_.template(`<strong class="middle">beta</strong>`, 0);
27
- var root_23 = _$_.template(`<em class="tail">epsilon</em>`, 0);
28
- var root_24 = _$_.template(` `, 1, 1);
29
- var root_25 = _$_.template(`<div class="mixed-collection"><!></div>`, 0);
30
- var root_26 = _$_.template(`<strong class="middle">beta</strong>`, 0);
31
- var root_27 = _$_.template(`<em class="tail">epsilon</em>`, 0);
32
- var root_28 = _$_.template(` `, 1, 1);
33
- var root_29 = _$_.template(`<div class="mixed-collection-split"><!></div>`, 0);
34
- var root_30 = _$_.template(`<strong class="middle">beta</strong>`, 0);
35
- var root_31 = _$_.template(`<em class="tail">epsilon</em>`, 0);
36
- var root_32 = _$_.template(` `, 1, 1);
37
- var root_33 = _$_.template(`<div class="mixed-collection-split"><!></div>`, 0);
38
- var root_34 = _$_.template(`<span class="primitive-tail"> ok</span>`, 0);
39
- var root_35 = _$_.template(` `, 1, 1);
40
- var root_36 = _$_.template(`<div class="mixed-collection-primitive"><!></div>`, 0);
41
- var root_37 = _$_.template(`<span class="primitive-tail"> ok</span>`, 0);
42
- var root_38 = _$_.template(` `, 1, 1);
43
- var root_39 = _$_.template(`<div class="mixed-collection-primitive"><!></div>`, 0);
44
- var root_40 = _$_.template(`<div class="dynamic-array-call"> </div>`, 0);
45
- var root_41 = _$_.template(`<div class="dynamic-array-track"> </div>`, 0);
46
- var root_42 = _$_.template(`<div class="dynamic-array-conditional"> </div>`, 0);
47
- var root_43 = _$_.template(`<div class="dynamic-array-logical"> </div>`, 0);
48
- var root_44 = _$_.template(`<section class="outer"><div class="inner">from tsrx</div></section>`, 0);
19
+ var root_15 = _$_.template(`<div class="helper-item"> </div>`, 0);
20
+ var root_17 = _$_.template(`<span class="label"> </span><!>`, 1, 2);
21
+ var root_16 = _$_.template(`<!>`, 1, 1);
22
+ var root_19 = _$_.template(`<div class="app-item"> </div>`, 0);
23
+ var root_18 = _$_.template(`<div class="nested-expression-values"><!><!></div>`, 0);
24
+ var root_20 = _$_.template(`<strong class="middle">beta</strong>`, 0);
25
+ var root_21 = _$_.template(`<em class="tail">epsilon</em>`, 0);
26
+ var root_22 = _$_.template(` `, 1, 1);
27
+ var root_23 = _$_.template(`<div class="mixed-collection"><!></div>`, 0);
28
+ var root_24 = _$_.template(`<strong class="middle">beta</strong>`, 0);
29
+ var root_25 = _$_.template(`<em class="tail">epsilon</em>`, 0);
30
+ var root_26 = _$_.template(` `, 1, 1);
31
+ var root_27 = _$_.template(`<div class="mixed-collection-split"><!></div>`, 0);
32
+ var root_28 = _$_.template(`<strong class="middle">beta</strong>`, 0);
33
+ var root_29 = _$_.template(`<em class="tail">epsilon</em>`, 0);
34
+ var root_30 = _$_.template(` `, 1, 1);
35
+ var root_31 = _$_.template(`<div class="mixed-collection-split"><!></div>`, 0);
36
+ var root_32 = _$_.template(`<span class="primitive-tail"> ok</span>`, 0);
37
+ var root_33 = _$_.template(` `, 1, 1);
38
+ var root_34 = _$_.template(`<div class="mixed-collection-primitive"><!></div>`, 0);
39
+ var root_35 = _$_.template(`<span class="primitive-tail"> ok</span>`, 0);
40
+ var root_36 = _$_.template(` `, 1, 1);
41
+ var root_37 = _$_.template(`<div class="mixed-collection-primitive"><!></div>`, 0);
42
+ var root_38 = _$_.template(`<div class="dynamic-array-call"> </div>`, 0);
43
+ var root_39 = _$_.template(`<div class="dynamic-array-track"> </div>`, 0);
44
+ var root_40 = _$_.template(`<div class="dynamic-array-conditional"> </div>`, 0);
45
+ var root_41 = _$_.template(`<div class="dynamic-array-logical"> </div>`, 0);
46
+ var root_42 = _$_.template(`<section class="outer"><div class="inner">from tsrx</div></section>`, 0);
47
+ var root_44 = _$_.template(`<!>`, 1, 1);
48
+ var root_43 = _$_.template(`<!>`, 1, 1);
49
+ var root_45 = _$_.template(`<div class="wrapper"><section class="native"><span class="nested-tsrx">inside nested tsrx</span></section></div>`, 0);
50
+ var root_47 = _$_.template(`<!>`, 1, 1);
49
51
  var root_46 = _$_.template(`<!>`, 1, 1);
50
- var root_45 = _$_.template(`<!>`, 1, 1);
51
- var root_47 = _$_.template(`<div class="wrapper"><section class="native"><span class="nested-tsrx">inside nested tsrx</span></section></div>`, 0);
52
- var root_49 = _$_.template(`<!>`, 1, 1);
53
- var root_48 = _$_.template(`<!>`, 1, 1);
54
- var root_50 = _$_.template(`<span class="nested-tsx">inside nested tsx</span>`, 0);
55
- var root_51 = _$_.template(`<div class="native"> </div>`, 0);
52
+ var root_48 = _$_.template(`<span class="nested-tsx">inside nested tsx</span>`, 0);
53
+ var root_49 = _$_.template(`<div class="native"> </div>`, 0);
54
+ var root_51 = _$_.template(`<!>`, 1, 1);
55
+ var root_50 = _$_.template(`<!>`, 1, 1);
56
+ var root_52 = _$_.template(`<div class="text-prop"><!></div>`, 0);
57
+ var root_54 = _$_.template(`<!><button class="show-text">Show</button>`, 1, 2);
56
58
  var root_53 = _$_.template(`<!>`, 1, 1);
57
- var root_52 = _$_.template(`<!>`, 1, 1);
58
- var root_54 = _$_.template(`<div class="text-prop"><!></div>`, 0);
59
- var root_56 = _$_.template(`<!><button class="show-text">Show</button>`, 1, 2);
59
+ var root_56 = _$_.template(`<h1 class="sr-only">heading</h1><p class="subtitle">first paragraph</p><p class="subtitle">second paragraph</p>`, 1, 3);
60
60
  var root_55 = _$_.template(`<!>`, 1, 1);
61
- var root_58 = _$_.template(`<h1 class="sr-only">heading</h1><p class="subtitle">first paragraph</p><p class="subtitle">second paragraph</p>`, 1, 3);
61
+ var root_58 = _$_.template(`<!><span class="sibling1"> </span><span class="sibling2"> </span>`, 1, 3);
62
62
  var root_57 = _$_.template(`<!>`, 1, 1);
63
- var root_60 = _$_.template(`<!><span class="sibling1"> </span><span class="sibling2"> </span>`, 1, 3);
63
+ var root_60 = _$_.template(`<h1 class="sr-only">Ripple</h1><img src="/images/logo.png" alt="Logo" class="logo"><p class="subtitle">the elegant TypeScript UI framework</p>`, 1, 3);
64
64
  var root_59 = _$_.template(`<!>`, 1, 1);
65
- var root_62 = _$_.template(`<h1 class="sr-only">Ripple</h1><img src="/images/logo.png" alt="Logo" class="logo"><p class="subtitle">the elegant TypeScript UI framework</p>`, 1, 3);
66
- var root_61 = _$_.template(`<!>`, 1, 1);
67
- var root_64 = _$_.template(`<a href="/playground" class="playground-link">Playground</a>`, 0);
68
- var root_63 = _$_.template(`<div class="social-links"><a href="https://github.com" class="github-link">GitHub</a><a href="https://discord.com" class="discord-link">Discord</a><!></div>`, 0);
69
- var root_65 = _$_.template(`<main><div class="container"><!></div></main>`, 0);
70
- var root_66 = _$_.template(`<div class="content"><p>Some content here</p></div>`, 0);
71
- var root_68 = _$_.template(`<!><!><!><!>`, 1, 4);
72
- var root_67 = _$_.template(`<!>`, 1, 1);
73
- var root_69 = _$_.template(`<footer class="last-child">I am the last child</footer>`, 0);
74
- var root_70 = _$_.template(`<div class="wrapper"><h1>Header</h1><p>Some content</p><!></div>`, 0);
75
- var root_71 = _$_.template(`<div class="inner"><span>Inner text</span><!></div>`, 0);
76
- var root_72 = _$_.template(`<section class="outer"><h2>Section title</h2><!></section>`, 0);
65
+ var root_62 = _$_.template(`<a href="/playground" class="playground-link">Playground</a>`, 0);
66
+ var root_61 = _$_.template(`<div class="social-links"><a href="https://github.com" class="github-link">GitHub</a><a href="https://discord.com" class="discord-link">Discord</a><!></div>`, 0);
67
+ var root_63 = _$_.template(`<main><div class="container"><!></div></main>`, 0);
68
+ var root_64 = _$_.template(`<div class="content"><p>Some content here</p></div>`, 0);
69
+ var root_65 = _$_.template(`<!><!><!><!>`, 1, 4);
70
+ var root_66 = _$_.template(`<footer class="last-child">I am the last child</footer>`, 0);
71
+ var root_67 = _$_.template(`<div class="wrapper"><h1>Header</h1><p>Some content</p><!></div>`, 0);
72
+ var root_68 = _$_.template(`<div class="inner"><span>Inner text</span><!></div>`, 0);
73
+ var root_69 = _$_.template(`<section class="outer"><h2>Section title</h2><!></section>`, 0);
77
74
 
78
75
  import { track } from 'ripple';
79
76
 
@@ -138,9 +135,9 @@ export function ParentWithChild() {
138
135
  var div_3 = root_7();
139
136
 
140
137
  {
141
- var node_2 = _$_.child(div_3);
138
+ var append_anchor = _$_.append_into(div_3);
142
139
 
143
- _$_.render_component(ChildComponent, node_2, {});
140
+ _$_.render_component(ChildComponent, append_anchor, {});
144
141
  _$_.pop(div_3);
145
142
  }
146
143
 
@@ -167,17 +164,17 @@ export function SecondSibling() {
167
164
  export function SiblingComponents() {
168
165
  return _$_.tsrx_element((__anchor, __block) => {
169
166
  var fragment_4 = root_10();
170
- var node_5 = _$_.first_child_frag(fragment_4);
167
+ var node_4 = _$_.first_child_frag(fragment_4);
171
168
 
172
- _$_.expression(node_5, () => _$_.tsrx_element((__anchor, __block) => {
169
+ _$_.expression(node_4, () => _$_.tsrx_element((__anchor, __block) => {
173
170
  var fragment_5 = root_11();
174
- var node_3 = _$_.first_child_frag(fragment_5);
171
+ var node_2 = _$_.first_child_frag(fragment_5);
175
172
 
176
- _$_.render_component(FirstSibling, node_3, {});
173
+ _$_.render_component(FirstSibling, node_2, {});
177
174
 
178
- var node_4 = _$_.sibling(node_3);
175
+ var node_3 = _$_.sibling(node_2);
179
176
 
180
- _$_.render_component(SecondSibling, node_4, {});
177
+ _$_.render_component(SecondSibling, node_3, {});
181
178
  _$_.append(__anchor, fragment_5);
182
179
  }));
183
180
 
@@ -205,11 +202,7 @@ export function Greeting(props) {
205
202
 
206
203
  export function WithGreeting() {
207
204
  return _$_.tsrx_element((__anchor, __block) => {
208
- var fragment_6 = root_13();
209
- var node_6 = _$_.first_child_frag(fragment_6);
210
-
211
- _$_.render_component(Greeting, node_6, { name: "World" });
212
- _$_.append(__anchor, fragment_6);
205
+ _$_.render_component(Greeting, __anchor, { name: "World" });
213
206
  });
214
207
  }
215
208
 
@@ -217,12 +210,12 @@ export function ExpressionContent() {
217
210
  return _$_.tsrx_element((__anchor, __block) => {
218
211
  const value = 42;
219
212
  const label = 'computed';
220
- var fragment_7 = root_14();
221
- var node_7 = _$_.first_child_frag(fragment_7);
213
+ var fragment_6 = root_13();
214
+ var node_5 = _$_.first_child_frag(fragment_6);
222
215
 
223
- _$_.expression(node_7, () => _$_.tsrx_element((__anchor, __block) => {
224
- var fragment_8 = root_15();
225
- var div_7 = _$_.first_child_frag(fragment_8);
216
+ _$_.expression(node_5, () => _$_.tsrx_element((__anchor, __block) => {
217
+ var fragment_7 = root_14();
218
+ var div_7 = _$_.first_child_frag(fragment_7);
226
219
 
227
220
  {
228
221
  var expression_1 = _$_.child(div_7);
@@ -241,16 +234,16 @@ export function ExpressionContent() {
241
234
  }
242
235
 
243
236
  _$_.next();
244
- _$_.append(__anchor, fragment_8, true);
237
+ _$_.append(__anchor, fragment_7, true);
245
238
  }));
246
239
 
247
- _$_.append(__anchor, fragment_7);
240
+ _$_.append(__anchor, fragment_6);
248
241
  });
249
242
  }
250
243
 
251
244
  function NestedHelperItem({ item }) {
252
245
  return _$_.tsrx_element((__anchor, __block) => {
253
- var div_8 = root_16();
246
+ var div_8 = root_15();
254
247
 
255
248
  {
256
249
  var expression_3 = _$_.child(div_8);
@@ -265,12 +258,12 @@ function NestedHelperItem({ item }) {
265
258
 
266
259
  function NestedTsxTsrxFragment({ label }) {
267
260
  return _$_.tsrx_element((__anchor, __block) => {
268
- var fragment_9 = root_17();
269
- var node_10 = _$_.first_child_frag(fragment_9);
261
+ var fragment_8 = root_16();
262
+ var node_7 = _$_.first_child_frag(fragment_8);
270
263
 
271
- _$_.expression(node_10, () => _$_.tsrx_element((__anchor, __block) => {
272
- var fragment_10 = root_18();
273
- var span_3 = _$_.first_child_frag(fragment_10);
264
+ _$_.expression(node_7, () => _$_.tsrx_element((__anchor, __block) => {
265
+ var fragment_9 = root_17();
266
+ var span_3 = _$_.first_child_frag(fragment_9);
274
267
 
275
268
  {
276
269
  var expression_4 = _$_.child(span_3, true);
@@ -279,40 +272,36 @@ function NestedTsxTsrxFragment({ label }) {
279
272
  _$_.pop(span_3);
280
273
  }
281
274
 
282
- var node_8 = _$_.sibling(span_3);
275
+ var node_6 = _$_.sibling(span_3);
283
276
 
284
277
  _$_.for(
285
- node_8,
278
+ node_6,
286
279
  () => [1, 2, 3, 4],
287
280
  (__anchor, item) => {
288
- var fragment_11 = root_19();
289
- var node_9 = _$_.first_child_frag(fragment_11);
290
-
291
- _$_.render_component(NestedHelperItem, node_9, { item });
292
- _$_.append(__anchor, fragment_11);
281
+ _$_.render_component(NestedHelperItem, __anchor, { item });
293
282
  },
294
283
  0
295
284
  );
296
285
 
297
- _$_.append(__anchor, fragment_10);
286
+ _$_.append(__anchor, fragment_9);
298
287
  }));
299
288
 
300
- _$_.append(__anchor, fragment_9);
289
+ _$_.append(__anchor, fragment_8);
301
290
  });
302
291
  }
303
292
 
304
293
  export function NestedTsxTsrxExpressionValues() {
305
294
  return _$_.tsrx_element((__anchor, __block) => {
306
- var div_9 = root_20();
295
+ var div_9 = root_18();
307
296
 
308
297
  {
309
- var node_11 = _$_.child(div_9);
298
+ var node_8 = _$_.child(div_9);
310
299
 
311
300
  _$_.for(
312
- node_11,
301
+ node_8,
313
302
  () => [1, 2, 3],
314
303
  (__anchor, item) => {
315
- var div_10 = root_21();
304
+ var div_10 = root_19();
316
305
 
317
306
  {
318
307
  var expression_5 = _$_.child(div_10);
@@ -326,9 +315,9 @@ export function NestedTsxTsrxExpressionValues() {
326
315
  0
327
316
  );
328
317
 
329
- var node_12 = _$_.sibling(node_11);
318
+ var node_9 = _$_.sibling(node_8);
330
319
 
331
- _$_.render_component(NestedTsxTsrxFragment, node_12, { label: "from helper" });
320
+ _$_.render_component(NestedTsxTsrxFragment, node_9, { label: "from helper" });
332
321
  _$_.pop(div_9);
333
322
  }
334
323
 
@@ -339,13 +328,13 @@ export function NestedTsxTsrxExpressionValues() {
339
328
  export function MixedTsrxCollectionText() {
340
329
  return _$_.tsrx_element((__anchor, __block) => {
341
330
  const content = _$_.tsrx_element((__anchor, __block) => {
342
- var fragment_12 = root_24();
343
- var expression_6 = _$_.first_child_frag(fragment_12);
331
+ var fragment_10 = root_22();
332
+ var expression_6 = _$_.first_child_frag(fragment_10);
344
333
 
345
334
  _$_.expression(expression_6, () => [
346
335
  'alpha ',
347
336
  _$_.tsrx_element((__anchor, __block) => {
348
- var strong_1 = root_22();
337
+ var strong_1 = root_20();
349
338
 
350
339
  _$_.append(__anchor, strong_1);
351
340
  }),
@@ -353,7 +342,7 @@ export function MixedTsrxCollectionText() {
353
342
  [
354
343
  'delta ',
355
344
  _$_.tsrx_element((__anchor, __block) => {
356
- var em_1 = root_23();
345
+ var em_1 = root_21();
357
346
 
358
347
  _$_.append(__anchor, em_1);
359
348
  }),
@@ -361,10 +350,10 @@ export function MixedTsrxCollectionText() {
361
350
  ]
362
351
  ]);
363
352
 
364
- _$_.append(__anchor, fragment_12);
353
+ _$_.append(__anchor, fragment_10);
365
354
  });
366
355
 
367
- var div_11 = root_25();
356
+ var div_11 = root_23();
368
357
 
369
358
  {
370
359
  var expression_7 = _$_.child(div_11);
@@ -380,13 +369,13 @@ export function MixedTsrxCollectionText() {
380
369
  export function MixedTsrxCollectionSplitServerText() {
381
370
  return _$_.tsrx_element((__anchor, __block) => {
382
371
  const content = _$_.tsrx_element((__anchor, __block) => {
383
- var fragment_13 = root_28();
384
- var expression_8 = _$_.first_child_frag(fragment_13);
372
+ var fragment_11 = root_26();
373
+ var expression_8 = _$_.first_child_frag(fragment_11);
385
374
 
386
375
  _$_.expression(expression_8, () => [
387
376
  'alpha ',
388
377
  _$_.tsrx_element((__anchor, __block) => {
389
- var strong_2 = root_26();
378
+ var strong_2 = root_24();
390
379
 
391
380
  _$_.append(__anchor, strong_2);
392
381
  }),
@@ -394,7 +383,7 @@ export function MixedTsrxCollectionSplitServerText() {
394
383
  [
395
384
  'delta ',
396
385
  _$_.tsrx_element((__anchor, __block) => {
397
- var em_2 = root_27();
386
+ var em_2 = root_25();
398
387
 
399
388
  _$_.append(__anchor, em_2);
400
389
  }),
@@ -402,10 +391,10 @@ export function MixedTsrxCollectionSplitServerText() {
402
391
  ]
403
392
  ]);
404
393
 
405
- _$_.append(__anchor, fragment_13);
394
+ _$_.append(__anchor, fragment_11);
406
395
  });
407
396
 
408
- var div_12 = root_29();
397
+ var div_12 = root_27();
409
398
 
410
399
  {
411
400
  var expression_9 = _$_.child(div_12);
@@ -421,13 +410,13 @@ export function MixedTsrxCollectionSplitServerText() {
421
410
  export function MixedTsrxCollectionSplitClientText() {
422
411
  return _$_.tsrx_element((__anchor, __block) => {
423
412
  const content = _$_.tsrx_element((__anchor, __block) => {
424
- var fragment_14 = root_32();
425
- var expression_10 = _$_.first_child_frag(fragment_14);
413
+ var fragment_12 = root_30();
414
+ var expression_10 = _$_.first_child_frag(fragment_12);
426
415
 
427
416
  _$_.expression(expression_10, () => [
428
417
  'alpha ',
429
418
  _$_.tsrx_element((__anchor, __block) => {
430
- var strong_3 = root_30();
419
+ var strong_3 = root_28();
431
420
 
432
421
  _$_.append(__anchor, strong_3);
433
422
  }),
@@ -435,7 +424,7 @@ export function MixedTsrxCollectionSplitClientText() {
435
424
  [
436
425
  'changed ',
437
426
  _$_.tsrx_element((__anchor, __block) => {
438
- var em_3 = root_31();
427
+ var em_3 = root_29();
439
428
 
440
429
  _$_.append(__anchor, em_3);
441
430
  }),
@@ -443,10 +432,10 @@ export function MixedTsrxCollectionSplitClientText() {
443
432
  ]
444
433
  ]);
445
434
 
446
- _$_.append(__anchor, fragment_14);
435
+ _$_.append(__anchor, fragment_12);
447
436
  });
448
437
 
449
- var div_13 = root_33();
438
+ var div_13 = root_31();
450
439
 
451
440
  {
452
441
  var expression_11 = _$_.child(div_13);
@@ -462,8 +451,8 @@ export function MixedTsrxCollectionSplitClientText() {
462
451
  export function MixedTsrxCollectionPrimitiveServerText() {
463
452
  return _$_.tsrx_element((__anchor, __block) => {
464
453
  const content = _$_.tsrx_element((__anchor, __block) => {
465
- var fragment_15 = root_35();
466
- var expression_12 = _$_.first_child_frag(fragment_15);
454
+ var fragment_13 = root_33();
455
+ var expression_12 = _$_.first_child_frag(fragment_13);
467
456
 
468
457
  _$_.expression(expression_12, () => [
469
458
  'count: ',
@@ -471,16 +460,16 @@ export function MixedTsrxCollectionPrimitiveServerText() {
471
460
  ' / ',
472
461
  true,
473
462
  _$_.tsrx_element((__anchor, __block) => {
474
- var span_4 = root_34();
463
+ var span_4 = root_32();
475
464
 
476
465
  _$_.append(__anchor, span_4);
477
466
  })
478
467
  ]);
479
468
 
480
- _$_.append(__anchor, fragment_15);
469
+ _$_.append(__anchor, fragment_13);
481
470
  });
482
471
 
483
- var div_14 = root_36();
472
+ var div_14 = root_34();
484
473
 
485
474
  {
486
475
  var expression_13 = _$_.child(div_14);
@@ -496,8 +485,8 @@ export function MixedTsrxCollectionPrimitiveServerText() {
496
485
  export function MixedTsrxCollectionPrimitiveClientText() {
497
486
  return _$_.tsrx_element((__anchor, __block) => {
498
487
  const content = _$_.tsrx_element((__anchor, __block) => {
499
- var fragment_16 = root_38();
500
- var expression_14 = _$_.first_child_frag(fragment_16);
488
+ var fragment_14 = root_36();
489
+ var expression_14 = _$_.first_child_frag(fragment_14);
501
490
 
502
491
  _$_.expression(expression_14, () => [
503
492
  'count: ',
@@ -505,16 +494,16 @@ export function MixedTsrxCollectionPrimitiveClientText() {
505
494
  ' / ',
506
495
  false,
507
496
  _$_.tsrx_element((__anchor, __block) => {
508
- var span_5 = root_37();
497
+ var span_5 = root_35();
509
498
 
510
499
  _$_.append(__anchor, span_5);
511
500
  })
512
501
  ]);
513
502
 
514
- _$_.append(__anchor, fragment_16);
503
+ _$_.append(__anchor, fragment_14);
515
504
  });
516
505
 
517
- var div_15 = root_39();
506
+ var div_15 = root_37();
518
507
 
519
508
  {
520
509
  var expression_15 = _$_.child(div_15);
@@ -534,7 +523,7 @@ function createPrimitiveItems() {
534
523
  export function DynamicArrayFromCall() {
535
524
  return _$_.tsrx_element((__anchor, __block) => {
536
525
  const items = _$_.with_scope(__block, createPrimitiveItems);
537
- var div_16 = root_40();
526
+ var div_16 = root_38();
538
527
 
539
528
  {
540
529
  var expression_16 = _$_.child(div_16);
@@ -550,7 +539,7 @@ export function DynamicArrayFromCall() {
550
539
  export function DynamicArrayFromTrack() {
551
540
  return _$_.tsrx_element((__anchor, __block) => {
552
541
  let lazy = _$_.track(['start:', ['one', 2], true, null, false, ':end'], __block, 'b5de6402');
553
- var div_17 = root_41();
542
+ var div_17 = root_39();
554
543
 
555
544
  {
556
545
  var expression_17 = _$_.child(div_17);
@@ -571,7 +560,7 @@ export function DynamicArrayFromConditional() {
571
560
  ? ['start:', ['one', 2], true, null, false, ':end']
572
561
  : ['fallback'];
573
562
 
574
- var div_18 = root_42();
563
+ var div_18 = root_40();
575
564
 
576
565
  {
577
566
  var expression_18 = _$_.child(div_18);
@@ -588,7 +577,7 @@ export function DynamicArrayFromLogical() {
588
577
  return _$_.tsrx_element((__anchor, __block) => {
589
578
  const condition = true;
590
579
  const items = condition && ['start:', ['one', 2], true, null, false, ':end'];
591
- var div_19 = root_43();
580
+ var div_19 = root_41();
592
581
 
593
582
  {
594
583
  var expression_19 = _$_.child(div_19);
@@ -604,59 +593,59 @@ export function DynamicArrayFromLogical() {
604
593
  export function NestedTsrxInsideTopLevelTsxExpression() {
605
594
  return _$_.tsrx_element((__anchor, __block) => {
606
595
  const content = _$_.tsrx_element((__anchor, __block) => {
607
- var section_1 = root_44();
596
+ var section_1 = root_42();
608
597
 
609
598
  _$_.append(__anchor, section_1);
610
599
  });
611
600
 
612
- var fragment_17 = root_45();
613
- var node_13 = _$_.first_child_frag(fragment_17);
601
+ var fragment_15 = root_43();
602
+ var node_10 = _$_.first_child_frag(fragment_15);
614
603
 
615
- _$_.expression(node_13, () => _$_.tsrx_element((__anchor, __block) => {
616
- var fragment_18 = root_46();
617
- var expression_20 = _$_.first_child_frag(fragment_18);
604
+ _$_.expression(node_10, () => _$_.tsrx_element((__anchor, __block) => {
605
+ var fragment_16 = root_44();
606
+ var expression_20 = _$_.first_child_frag(fragment_16);
618
607
 
619
608
  _$_.expression(expression_20, () => content);
620
- _$_.append(__anchor, fragment_18);
609
+ _$_.append(__anchor, fragment_16);
621
610
  }));
622
611
 
623
- _$_.append(__anchor, fragment_17);
612
+ _$_.append(__anchor, fragment_15);
624
613
  });
625
614
  }
626
615
 
627
616
  export function NestedTsrxElementsInsideTopLevelTsxValue() {
628
617
  return _$_.tsrx_element((__anchor, __block) => {
629
618
  const content = _$_.tsrx_element((__anchor, __block) => {
630
- var div_20 = root_47();
619
+ var div_20 = root_45();
631
620
 
632
621
  _$_.append(__anchor, div_20);
633
622
  });
634
623
 
635
- var fragment_19 = root_48();
636
- var node_14 = _$_.first_child_frag(fragment_19);
624
+ var fragment_17 = root_46();
625
+ var node_11 = _$_.first_child_frag(fragment_17);
637
626
 
638
- _$_.expression(node_14, () => _$_.tsrx_element((__anchor, __block) => {
639
- var fragment_20 = root_49();
640
- var expression_21 = _$_.first_child_frag(fragment_20);
627
+ _$_.expression(node_11, () => _$_.tsrx_element((__anchor, __block) => {
628
+ var fragment_18 = root_47();
629
+ var expression_21 = _$_.first_child_frag(fragment_18);
641
630
 
642
631
  _$_.expression(expression_21, () => content);
643
- _$_.append(__anchor, fragment_20);
632
+ _$_.append(__anchor, fragment_18);
644
633
  }));
645
634
 
646
- _$_.append(__anchor, fragment_19);
635
+ _$_.append(__anchor, fragment_17);
647
636
  });
648
637
  }
649
638
 
650
639
  export function TsxDeclaredBeforeTopLevelTsx() {
651
640
  return _$_.tsrx_element((__anchor, __block) => {
652
641
  const nested = _$_.tsrx_element((__anchor, __block) => {
653
- var span_6 = root_50();
642
+ var span_6 = root_48();
654
643
 
655
644
  _$_.append(__anchor, span_6);
656
645
  });
657
646
 
658
647
  const content = _$_.tsrx_element((__anchor, __block) => {
659
- var div_21 = root_51();
648
+ var div_21 = root_49();
660
649
 
661
650
  {
662
651
  var expression_22 = _$_.child(div_21);
@@ -668,24 +657,24 @@ export function TsxDeclaredBeforeTopLevelTsx() {
668
657
  _$_.append(__anchor, div_21);
669
658
  });
670
659
 
671
- var fragment_21 = root_52();
672
- var node_15 = _$_.first_child_frag(fragment_21);
660
+ var fragment_19 = root_50();
661
+ var node_12 = _$_.first_child_frag(fragment_19);
673
662
 
674
- _$_.expression(node_15, () => _$_.tsrx_element((__anchor, __block) => {
675
- var fragment_22 = root_53();
676
- var expression_23 = _$_.first_child_frag(fragment_22);
663
+ _$_.expression(node_12, () => _$_.tsrx_element((__anchor, __block) => {
664
+ var fragment_20 = root_51();
665
+ var expression_23 = _$_.first_child_frag(fragment_20);
677
666
 
678
667
  _$_.expression(expression_23, () => content);
679
- _$_.append(__anchor, fragment_22);
668
+ _$_.append(__anchor, fragment_20);
680
669
  }));
681
670
 
682
- _$_.append(__anchor, fragment_21);
671
+ _$_.append(__anchor, fragment_19);
683
672
  });
684
673
  }
685
674
 
686
675
  function TextProp(__props) {
687
676
  return _$_.tsrx_element((__anchor, __block) => {
688
- var div_22 = root_54();
677
+ var div_22 = root_52();
689
678
 
690
679
  {
691
680
  var expression_24 = _$_.child(div_22);
@@ -701,58 +690,58 @@ function TextProp(__props) {
701
690
  export function TextPropWithToggle() {
702
691
  return _$_.tsrx_element((__anchor, __block) => {
703
692
  let lazy_1 = _$_.track(false, __block, '1ba81c3b');
704
- var fragment_23 = root_55();
705
- var node_17 = _$_.first_child_frag(fragment_23);
693
+ var fragment_21 = root_53();
694
+ var node_14 = _$_.first_child_frag(fragment_21);
706
695
 
707
- _$_.expression(node_17, () => _$_.tsrx_element((__anchor, __block) => {
708
- var fragment_24 = root_56();
709
- var node_16 = _$_.first_child_frag(fragment_24);
696
+ _$_.expression(node_14, () => _$_.tsrx_element((__anchor, __block) => {
697
+ var fragment_22 = root_54();
698
+ var node_13 = _$_.first_child_frag(fragment_22);
710
699
 
711
- _$_.render_component(TextProp, node_16, {
700
+ _$_.render_component(TextProp, node_13, {
712
701
  get children() {
713
702
  return _$_.normalize_children(lazy_1.value ? 'hello' : '');
714
703
  }
715
704
  });
716
705
 
717
- var button_1 = _$_.sibling(node_16);
706
+ var button_1 = _$_.sibling(node_13);
718
707
 
719
708
  button_1.__click = () => _$_.set(lazy_1, true);
720
- _$_.append(__anchor, fragment_24);
709
+ _$_.append(__anchor, fragment_22);
721
710
  }));
722
711
 
723
- _$_.append(__anchor, fragment_23);
712
+ _$_.append(__anchor, fragment_21);
724
713
  });
725
714
  }
726
715
 
727
716
  function StaticHeader() {
728
717
  return _$_.tsrx_element((__anchor, __block) => {
729
- var fragment_25 = root_57();
730
- var node_18 = _$_.first_child_frag(fragment_25);
718
+ var fragment_23 = root_55();
719
+ var node_15 = _$_.first_child_frag(fragment_23);
731
720
 
732
- _$_.expression(node_18, () => _$_.tsrx_element((__anchor, __block) => {
733
- var fragment_26 = root_58();
721
+ _$_.expression(node_15, () => _$_.tsrx_element((__anchor, __block) => {
722
+ var fragment_24 = root_56();
734
723
 
735
724
  _$_.next(2);
736
- _$_.append(__anchor, fragment_26, true);
725
+ _$_.append(__anchor, fragment_24, true);
737
726
  }));
738
727
 
739
- _$_.append(__anchor, fragment_25);
728
+ _$_.append(__anchor, fragment_23);
740
729
  });
741
730
  }
742
731
 
743
732
  export function StaticChildWithSiblings() {
744
733
  return _$_.tsrx_element((__anchor, __block) => {
745
734
  const foo = 'bar';
746
- var fragment_27 = root_59();
747
- var node_20 = _$_.first_child_frag(fragment_27);
735
+ var fragment_25 = root_57();
736
+ var node_17 = _$_.first_child_frag(fragment_25);
748
737
 
749
- _$_.expression(node_20, () => _$_.tsrx_element((__anchor, __block) => {
750
- var fragment_28 = root_60();
751
- var node_19 = _$_.first_child_frag(fragment_28);
738
+ _$_.expression(node_17, () => _$_.tsrx_element((__anchor, __block) => {
739
+ var fragment_26 = root_58();
740
+ var node_16 = _$_.first_child_frag(fragment_26);
752
741
 
753
- _$_.render_component(StaticHeader, node_19, {});
742
+ _$_.render_component(StaticHeader, node_16, {});
754
743
 
755
- var span_7 = _$_.sibling(node_19);
744
+ var span_7 = _$_.sibling(node_16);
756
745
 
757
746
  {
758
747
  var expression_25 = _$_.child(span_7, true);
@@ -771,32 +760,32 @@ export function StaticChildWithSiblings() {
771
760
  }
772
761
 
773
762
  _$_.next();
774
- _$_.append(__anchor, fragment_28, true);
763
+ _$_.append(__anchor, fragment_26, true);
775
764
  }));
776
765
 
777
- _$_.append(__anchor, fragment_27);
766
+ _$_.append(__anchor, fragment_25);
778
767
  });
779
768
  }
780
769
 
781
770
  function Header() {
782
771
  return _$_.tsrx_element((__anchor, __block) => {
783
- var fragment_29 = root_61();
784
- var node_21 = _$_.first_child_frag(fragment_29);
772
+ var fragment_27 = root_59();
773
+ var node_18 = _$_.first_child_frag(fragment_27);
785
774
 
786
- _$_.expression(node_21, () => _$_.tsrx_element((__anchor, __block) => {
787
- var fragment_30 = root_62();
775
+ _$_.expression(node_18, () => _$_.tsrx_element((__anchor, __block) => {
776
+ var fragment_28 = root_60();
788
777
 
789
778
  _$_.next(2);
790
- _$_.append(__anchor, fragment_30, true);
779
+ _$_.append(__anchor, fragment_28, true);
791
780
  }));
792
781
 
793
- _$_.append(__anchor, fragment_29);
782
+ _$_.append(__anchor, fragment_27);
794
783
  });
795
784
  }
796
785
 
797
786
  function Actions({ playgroundVisible = false }) {
798
787
  return _$_.tsrx_element((__anchor, __block) => {
799
- var div_23 = root_63();
788
+ var div_23 = root_61();
800
789
 
801
790
  {
802
791
  var a_3 = _$_.child(div_23);
@@ -805,7 +794,7 @@ function Actions({ playgroundVisible = false }) {
805
794
 
806
795
  _$_.expression(expression_27, () => playgroundVisible
807
796
  ? _$_.tsrx_element((__anchor, __block) => {
808
- var a_1 = root_64();
797
+ var a_1 = root_62();
809
798
 
810
799
  _$_.append(__anchor, a_1);
811
800
  })
@@ -820,7 +809,7 @@ function Actions({ playgroundVisible = false }) {
820
809
 
821
810
  function Layout({ children }) {
822
811
  return _$_.tsrx_element((__anchor, __block) => {
823
- var main_1 = root_65();
812
+ var main_1 = root_63();
824
813
 
825
814
  {
826
815
  var div_24 = _$_.child(main_1);
@@ -839,7 +828,7 @@ function Layout({ children }) {
839
828
 
840
829
  function Content() {
841
830
  return _$_.tsrx_element((__anchor, __block) => {
842
- var div_25 = root_66();
831
+ var div_25 = root_64();
843
832
 
844
833
  _$_.append(__anchor, div_25);
845
834
  });
@@ -847,38 +836,33 @@ function Content() {
847
836
 
848
837
  export function WebsiteIndex() {
849
838
  return _$_.tsrx_element((__anchor, __block) => {
850
- var fragment_31 = root_67();
851
- var node_22 = _$_.first_child_frag(fragment_31);
852
-
853
- _$_.render_component(Layout, node_22, {
839
+ _$_.render_component(Layout, __anchor, {
854
840
  children: _$_.tsrx_element((__anchor, __block) => {
855
- var fragment_32 = root_68();
856
- var node_23 = _$_.first_child_frag(fragment_32);
841
+ var fragment_29 = root_65();
842
+ var node_19 = _$_.first_child_frag(fragment_29);
857
843
 
858
- _$_.render_component(Header, node_23, {});
844
+ _$_.render_component(Header, node_19, {});
859
845
 
860
- var node_24 = _$_.sibling(node_23);
846
+ var node_20 = _$_.sibling(node_19);
861
847
 
862
- _$_.render_component(Actions, node_24, { playgroundVisible: true });
848
+ _$_.render_component(Actions, node_20, { playgroundVisible: true });
863
849
 
864
- var node_25 = _$_.sibling(node_24);
850
+ var node_21 = _$_.sibling(node_20);
865
851
 
866
- _$_.render_component(Content, node_25, {});
852
+ _$_.render_component(Content, node_21, {});
867
853
 
868
- var node_26 = _$_.sibling(node_25);
854
+ var node_22 = _$_.sibling(node_21);
869
855
 
870
- _$_.render_component(Actions, node_26, { playgroundVisible: false });
871
- _$_.append(__anchor, fragment_32);
856
+ _$_.render_component(Actions, node_22, { playgroundVisible: false });
857
+ _$_.append(__anchor, fragment_29);
872
858
  })
873
859
  });
874
-
875
- _$_.append(__anchor, fragment_31);
876
860
  });
877
861
  }
878
862
 
879
863
  function LastChild() {
880
864
  return _$_.tsrx_element((__anchor, __block) => {
881
- var footer_1 = root_69();
865
+ var footer_1 = root_66();
882
866
 
883
867
  _$_.append(__anchor, footer_1);
884
868
  });
@@ -886,14 +870,14 @@ function LastChild() {
886
870
 
887
871
  export function ComponentAsLastSibling() {
888
872
  return _$_.tsrx_element((__anchor, __block) => {
889
- var div_26 = root_70();
873
+ var div_26 = root_67();
890
874
 
891
875
  {
892
876
  var h1_1 = _$_.child(div_26);
893
877
  var p_1 = _$_.sibling(h1_1);
894
- var node_27 = _$_.sibling(p_1);
878
+ var node_23 = _$_.sibling(p_1);
895
879
 
896
- _$_.render_component(LastChild, node_27, {});
880
+ _$_.render_component(LastChild, node_23, {});
897
881
  _$_.pop(div_26);
898
882
  }
899
883
 
@@ -903,13 +887,13 @@ export function ComponentAsLastSibling() {
903
887
 
904
888
  function InnerContent() {
905
889
  return _$_.tsrx_element((__anchor, __block) => {
906
- var div_27 = root_71();
890
+ var div_27 = root_68();
907
891
 
908
892
  {
909
893
  var span_9 = _$_.child(div_27);
910
- var node_28 = _$_.sibling(span_9);
894
+ var node_24 = _$_.sibling(span_9);
911
895
 
912
- _$_.render_component(LastChild, node_28, {});
896
+ _$_.render_component(LastChild, node_24, {});
913
897
  _$_.pop(div_27);
914
898
  }
915
899
 
@@ -919,13 +903,13 @@ function InnerContent() {
919
903
 
920
904
  export function NestedComponentAsLastSibling() {
921
905
  return _$_.tsrx_element((__anchor, __block) => {
922
- var section_2 = root_72();
906
+ var section_2 = root_69();
923
907
 
924
908
  {
925
909
  var h2_1 = _$_.child(section_2);
926
- var node_29 = _$_.sibling(h2_1);
910
+ var node_25 = _$_.sibling(h2_1);
927
911
 
928
- _$_.render_component(InnerContent, node_29, {});
912
+ _$_.render_component(InnerContent, node_25, {});
929
913
  _$_.pop(section_2);
930
914
  }
931
915