ripple 0.3.65 → 0.3.66

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 (60) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/package.json +3 -3
  3. package/src/jsx-runtime.d.ts +17 -3
  4. package/src/runtime/index-client.js +47 -8
  5. package/src/runtime/index-server.js +0 -2
  6. package/src/runtime/internal/client/index.js +5 -0
  7. package/src/runtime/internal/client/runtime.js +111 -11
  8. package/src/runtime/internal/client/types.d.ts +5 -0
  9. package/src/runtime/internal/server/blocks.js +1 -0
  10. package/src/runtime/internal/server/index.js +175 -20
  11. package/src/utils/errors.js +13 -0
  12. package/tests/client/async-suspend.test.tsrx +2 -2
  13. package/tests/client/basic/basic.get-set.test.tsrx +26 -26
  14. package/tests/client/compiler/__snapshots__/compiler.assignments.test.rsrx.snap +1 -1
  15. package/tests/client/compiler/__snapshots__/compiler.assignments.test.tsrx.snap +1 -1
  16. package/tests/client/compiler/compiler.assignments.test.tsrx +80 -0
  17. package/tests/client/compiler/compiler.tracked-access.test.tsrx +52 -8
  18. package/tests/client/compiler/compiler.typescript.test.tsrx +23 -0
  19. package/tests/client/lazy-array.test.tsrx +34 -0
  20. package/tests/client/lazy-destructuring.test.tsrx +79 -8
  21. package/tests/client/tracked-index-access.test.tsrx +113 -0
  22. package/tests/hydration/compiled/client/basic.js +2 -2
  23. package/tests/hydration/compiled/client/events.js +9 -9
  24. package/tests/hydration/compiled/client/for.js +50 -54
  25. package/tests/hydration/compiled/client/head.js +9 -9
  26. package/tests/hydration/compiled/client/hmr.js +1 -1
  27. package/tests/hydration/compiled/client/html.js +2 -2
  28. package/tests/hydration/compiled/client/if-children.js +14 -14
  29. package/tests/hydration/compiled/client/if.js +10 -10
  30. package/tests/hydration/compiled/client/mixed-control-flow.js +7 -7
  31. package/tests/hydration/compiled/client/portal.js +2 -2
  32. package/tests/hydration/compiled/client/reactivity.js +7 -7
  33. package/tests/hydration/compiled/client/return.js +37 -37
  34. package/tests/hydration/compiled/client/switch.js +8 -8
  35. package/tests/hydration/compiled/client/track-async-serialization.js +12 -12
  36. package/tests/hydration/compiled/client/try.js +116 -33
  37. package/tests/hydration/compiled/server/basic.js +2 -2
  38. package/tests/hydration/compiled/server/events.js +8 -8
  39. package/tests/hydration/compiled/server/for.js +21 -21
  40. package/tests/hydration/compiled/server/head.js +10 -10
  41. package/tests/hydration/compiled/server/hmr.js +1 -1
  42. package/tests/hydration/compiled/server/html.js +1 -1
  43. package/tests/hydration/compiled/server/if-children.js +9 -9
  44. package/tests/hydration/compiled/server/if.js +6 -6
  45. package/tests/hydration/compiled/server/mixed-control-flow.js +4 -4
  46. package/tests/hydration/compiled/server/portal.js +1 -1
  47. package/tests/hydration/compiled/server/reactivity.js +7 -7
  48. package/tests/hydration/compiled/server/return.js +14 -14
  49. package/tests/hydration/compiled/server/switch.js +4 -4
  50. package/tests/hydration/compiled/server/track-async-serialization.js +12 -12
  51. package/tests/hydration/compiled/server/try.js +116 -4
  52. package/tests/hydration/components/try.tsrx +26 -0
  53. package/tests/hydration/try.test.js +100 -1
  54. package/tests/server/await.test.tsrx +1 -1
  55. package/tests/server/compiler.test.tsrx +109 -0
  56. package/tests/server/lazy-destructuring.test.tsrx +62 -0
  57. package/tests/server/tracked-index-access.test.tsrx +76 -0
  58. package/tests/setup-hydration.js +31 -0
  59. package/types/index.d.ts +11 -9
  60. package/types/server.d.ts +2 -1
@@ -52,13 +52,13 @@ export function AsyncWithServerCall(__anchor, _, __block) {
52
52
  _$_.try(
53
53
  node,
54
54
  (__anchor) => {
55
- let lazy_1 = _$_.track_async(() => _$_.with_scope(__block, () => formatValue(_$_.get(lazy))), __block, 'f0c2b41e');
55
+ let lazy_1 = _$_.track_async(() => _$_.with_scope(__block, () => formatValue(lazy.value)), __block, 'f0c2b41e');
56
56
  var p_1 = root_1();
57
57
 
58
58
  {
59
59
  var expression = _$_.child(p_1);
60
60
 
61
- _$_.expression(expression, () => _$_.get(lazy_1));
61
+ _$_.expression(expression, () => lazy_1.value);
62
62
  _$_.pop(p_1);
63
63
  }
64
64
 
@@ -91,7 +91,7 @@ export function AsyncSimpleValue(__anchor, _, __block) {
91
91
  {
92
92
  var expression_1 = _$_.child(p_3);
93
93
 
94
- _$_.expression(expression_1, () => _$_.get(lazy_2));
94
+ _$_.expression(expression_1, () => lazy_2.value);
95
95
  _$_.pop(p_3);
96
96
  }
97
97
 
@@ -124,7 +124,7 @@ export function AsyncNumericValue(__anchor, _, __block) {
124
124
  {
125
125
  var expression_2 = _$_.child(span_1);
126
126
 
127
- _$_.expression(expression_2, () => _$_.get(lazy_3));
127
+ _$_.expression(expression_2, () => lazy_3.value);
128
128
  _$_.pop(span_1);
129
129
  }
130
130
 
@@ -160,7 +160,7 @@ export function AsyncObjectValue(__anchor, _, __block) {
160
160
  {
161
161
  var expression_3 = _$_.child(span_3);
162
162
 
163
- _$_.expression(expression_3, () => _$_.get(lazy_4).name);
163
+ _$_.expression(expression_3, () => lazy_4.value.name);
164
164
  _$_.pop(span_3);
165
165
  }
166
166
 
@@ -169,7 +169,7 @@ export function AsyncObjectValue(__anchor, _, __block) {
169
169
  {
170
170
  var expression_4 = _$_.child(span_4);
171
171
 
172
- _$_.expression(expression_4, () => _$_.get(lazy_4).age);
172
+ _$_.expression(expression_4, () => lazy_4.value.age);
173
173
  _$_.pop(span_4);
174
174
  }
175
175
  }
@@ -207,7 +207,7 @@ export function AsyncMultipleValues(__anchor, _, __block) {
207
207
  {
208
208
  var expression_5 = _$_.child(span_5);
209
209
 
210
- _$_.expression(expression_5, () => _$_.get(lazy_5));
210
+ _$_.expression(expression_5, () => lazy_5.value);
211
211
  _$_.pop(span_5);
212
212
  }
213
213
 
@@ -216,7 +216,7 @@ export function AsyncMultipleValues(__anchor, _, __block) {
216
216
  {
217
217
  var expression_6 = _$_.child(span_6);
218
218
 
219
- _$_.expression(expression_6, () => _$_.get(lazy_6));
219
+ _$_.expression(expression_6, () => lazy_6.value);
220
220
  _$_.pop(span_6);
221
221
  }
222
222
  }
@@ -250,7 +250,7 @@ export function AsyncWithCatch(__anchor, _, __block) {
250
250
  {
251
251
  var expression_7 = _$_.child(p_5);
252
252
 
253
- _$_.expression(expression_7, () => _$_.get(lazy_7));
253
+ _$_.expression(expression_7, () => lazy_7.value);
254
254
  _$_.pop(p_5);
255
255
  }
256
256
 
@@ -294,7 +294,7 @@ export function ChildWithError(__anchor, _, __block) {
294
294
  {
295
295
  var expression_9 = _$_.child(p_8);
296
296
 
297
- _$_.expression(expression_9, () => _$_.get(lazy_8));
297
+ _$_.expression(expression_9, () => lazy_8.value);
298
298
  _$_.pop(p_8);
299
299
  }
300
300
 
@@ -361,13 +361,13 @@ export function AsyncWithReactiveDependency(__anchor, _, __block) {
361
361
  _$_.try(
362
362
  node_9,
363
363
  (__anchor) => {
364
- let lazy_10 = _$_.track_async(() => _$_.with_scope(__block, () => Promise.resolve(`count-${_$_.get(lazy_9)}`)), __block, 'cdd1adb8');
364
+ let lazy_10 = _$_.track_async(() => _$_.with_scope(__block, () => Promise.resolve(`count-${lazy_9.value}`)), __block, 'cdd1adb8');
365
365
  var p_11 = root_26();
366
366
 
367
367
  {
368
368
  var expression_11 = _$_.child(p_11);
369
369
 
370
- _$_.expression(expression_11, () => _$_.get(lazy_10));
370
+ _$_.expression(expression_11, () => lazy_10.value);
371
371
  _$_.pop(p_11);
372
372
  }
373
373
 
@@ -1,62 +1,145 @@
1
1
  // @ts-nocheck
2
2
  import * as _$_ from 'ripple/internal/client';
3
3
 
4
- var root_1 = _$_.template(`<!>`, 1, 1);
5
- var root_2 = _$_.template(`<p class="loading">loading...</p>`, 0);
6
- var root = _$_.template(`<!>`, 1, 1);
7
- var root_4 = _$_.template(`<li> </li>`, 0);
8
- var root_3 = _$_.template(`<ul class="items"></ul>`, 0);
4
+ var root = _$_.template(`<p class="root-pending">root loading...</p>`, 0);
5
+ var root_1 = _$_.template(`<section class="root-catch"><p class="root-error"> </p><button class="root-reset">retry</button></section>`, 0);
6
+ var root_2 = _$_.template(`<p>should not render</p>`, 1, 1);
7
+ var root_3 = _$_.template(`<p class="root-async-value"> </p>`, 0);
8
+ var root_4 = _$_.template(`<p class="root-async-value"> </p>`, 0);
9
9
  var root_6 = _$_.template(`<!>`, 1, 1);
10
- var root_7 = _$_.template(`<div class="loading">loading async content</div>`, 0);
11
- var root_5 = _$_.template(`<div class="before">before</div><!>`, 1, 2);
12
- var root_8 = _$_.template(`<div class="resolved"> </div>`, 0);
10
+ var root_7 = _$_.template(`<p class="loading">loading...</p>`, 0);
11
+ var root_5 = _$_.template(`<!>`, 1, 1);
12
+ var root_9 = _$_.template(`<li> </li>`, 0);
13
+ var root_8 = _$_.template(`<ul class="items"></ul>`, 0);
14
+ var root_11 = _$_.template(`<!>`, 1, 1);
15
+ var root_12 = _$_.template(`<div class="loading">loading async content</div>`, 0);
16
+ var root_10 = _$_.template(`<div class="before">before</div><!>`, 1, 2);
17
+ var root_13 = _$_.template(`<div class="resolved"> </div>`, 0);
13
18
 
14
19
  import { trackAsync } from 'ripple';
15
20
 
21
+ export function RootPending(__anchor, _, __block) {
22
+ _$_.push_component();
23
+
24
+ var p_1 = root();
25
+
26
+ _$_.append(__anchor, p_1);
27
+ _$_.pop_component();
28
+ }
29
+
30
+ export function RootCatch(__anchor, { error, reset }, __block) {
31
+ _$_.push_component();
32
+
33
+ var section_1 = root_1();
34
+
35
+ {
36
+ var p_2 = _$_.child(section_1);
37
+
38
+ {
39
+ var expression = _$_.child(p_2);
40
+
41
+ _$_.expression(expression, () => error.message);
42
+ _$_.pop(p_2);
43
+ }
44
+
45
+ var button_1 = _$_.sibling(p_2);
46
+
47
+ _$_.event('Click', button_1, reset);
48
+ }
49
+
50
+ _$_.append(__anchor, section_1);
51
+ _$_.pop_component();
52
+ }
53
+
54
+ export function RootThrows(__anchor, _, __block) {
55
+ _$_.push_component();
56
+
57
+ throw _$_.with_scope(__block, () => new Error('root exploded'));
58
+
59
+ var fragment = root_2();
60
+
61
+ _$_.append(__anchor, fragment);
62
+ _$_.pop_component();
63
+ }
64
+
65
+ export function RootAsyncDirect(__anchor, _, __block) {
66
+ _$_.push_component();
67
+
68
+ let lazy = _$_.track_async(() => _$_.with_scope(__block, () => Promise.resolve('root async value')), __block, 'd6bf9e33');
69
+ var p_3 = root_3();
70
+
71
+ {
72
+ var expression_1 = _$_.child(p_3);
73
+
74
+ _$_.expression(expression_1, () => lazy.value);
75
+ _$_.pop(p_3);
76
+ }
77
+
78
+ _$_.append(__anchor, p_3);
79
+ _$_.pop_component();
80
+ }
81
+
82
+ export function RootAsyncRejects(__anchor, _, __block) {
83
+ _$_.push_component();
84
+
85
+ let lazy_1 = _$_.track_async(() => _$_.with_scope(__block, () => Promise.reject(new Error('root async failed'))), __block, 'd2fe7b64');
86
+ var p_4 = root_4();
87
+
88
+ {
89
+ var expression_2 = _$_.child(p_4);
90
+
91
+ _$_.expression(expression_2, () => lazy_1.value);
92
+ _$_.pop(p_4);
93
+ }
94
+
95
+ _$_.append(__anchor, p_4);
96
+ _$_.pop_component();
97
+ }
98
+
16
99
  export function AsyncListInTryPending(__anchor, _, __block) {
17
100
  _$_.push_component();
18
101
 
19
- var fragment = root();
20
- var node = _$_.first_child_frag(fragment);
102
+ var fragment_1 = root_5();
103
+ var node = _$_.first_child_frag(fragment_1);
21
104
 
22
105
  _$_.try(
23
106
  node,
24
107
  (__anchor) => {
25
- var fragment_1 = root_1();
26
- var node_1 = _$_.first_child_frag(fragment_1);
108
+ var fragment_2 = root_6();
109
+ var node_1 = _$_.first_child_frag(fragment_2);
27
110
 
28
111
  AsyncList(node_1, {}, _$_.active_block);
29
- _$_.append(__anchor, fragment_1);
112
+ _$_.append(__anchor, fragment_2);
30
113
  },
31
114
  null,
32
115
  (__anchor) => {
33
- var p_1 = root_2();
116
+ var p_5 = root_7();
34
117
 
35
- _$_.append(__anchor, p_1);
118
+ _$_.append(__anchor, p_5);
36
119
  }
37
120
  );
38
121
 
39
- _$_.append(__anchor, fragment);
122
+ _$_.append(__anchor, fragment_1);
40
123
  _$_.pop_component();
41
124
  }
42
125
 
43
126
  function AsyncList(__anchor, _, __block) {
44
127
  _$_.push_component();
45
128
 
46
- let lazy = _$_.track_async(() => _$_.with_scope(__block, () => Promise.resolve(['alpha', 'beta', 'gamma'])), __block, 'd6bf9e33');
47
- var ul_1 = root_3();
129
+ let lazy_2 = _$_.track_async(() => _$_.with_scope(__block, () => Promise.resolve(['alpha', 'beta', 'gamma'])), __block, 'b3d31627');
130
+ var ul_1 = root_8();
48
131
 
49
132
  {
50
133
  _$_.for(
51
134
  ul_1,
52
- () => _$_.get(lazy),
135
+ () => lazy_2.value,
53
136
  (__anchor, item) => {
54
- var li_1 = root_4();
137
+ var li_1 = root_9();
55
138
 
56
139
  {
57
- var expression = _$_.child(li_1);
140
+ var expression_3 = _$_.child(li_1);
58
141
 
59
- _$_.expression(expression, () => item);
142
+ _$_.expression(expression_3, () => item);
60
143
  _$_.pop(li_1);
61
144
  }
62
145
 
@@ -75,41 +158,41 @@ function AsyncList(__anchor, _, __block) {
75
158
  export function AsyncTryWithLeadingSibling(__anchor, _, __block) {
76
159
  _$_.push_component();
77
160
 
78
- var fragment_2 = root_5();
79
- var div_1 = _$_.first_child_frag(fragment_2);
161
+ var fragment_3 = root_10();
162
+ var div_1 = _$_.first_child_frag(fragment_3);
80
163
  var node_2 = _$_.sibling(div_1);
81
164
 
82
165
  _$_.try(
83
166
  node_2,
84
167
  (__anchor) => {
85
- var fragment_3 = root_6();
86
- var node_3 = _$_.first_child_frag(fragment_3);
168
+ var fragment_4 = root_11();
169
+ var node_3 = _$_.first_child_frag(fragment_4);
87
170
 
88
171
  AsyncContent(node_3, {}, _$_.active_block);
89
- _$_.append(__anchor, fragment_3);
172
+ _$_.append(__anchor, fragment_4);
90
173
  },
91
174
  null,
92
175
  (__anchor) => {
93
- var div_2 = root_7();
176
+ var div_2 = root_12();
94
177
 
95
178
  _$_.append(__anchor, div_2);
96
179
  }
97
180
  );
98
181
 
99
- _$_.append(__anchor, fragment_2);
182
+ _$_.append(__anchor, fragment_3);
100
183
  _$_.pop_component();
101
184
  }
102
185
 
103
186
  function AsyncContent(__anchor, _, __block) {
104
187
  _$_.push_component();
105
188
 
106
- let lazy_1 = _$_.track_async(() => _$_.with_scope(__block, () => Promise.resolve('ready')), __block, 'd2fe7b64');
107
- var div_3 = root_8();
189
+ let lazy_3 = _$_.track_async(() => _$_.with_scope(__block, () => Promise.resolve('ready')), __block, '15ea8758');
190
+ var div_3 = root_13();
108
191
 
109
192
  {
110
- var expression_1 = _$_.child(div_3);
193
+ var expression_4 = _$_.child(div_3);
111
194
 
112
- _$_.expression(expression_1, () => _$_.get(lazy_1));
195
+ _$_.expression(expression_4, () => lazy_3.value);
113
196
  _$_.pop(div_3);
114
197
  }
115
198
 
@@ -617,7 +617,7 @@ export function DynamicArrayFromTrack() {
617
617
  _$_.output_push('>');
618
618
 
619
619
  {
620
- _$_.render_expression(_$_.get(lazy));
620
+ _$_.render_expression(lazy.value);
621
621
  }
622
622
 
623
623
  _$_.output_push('</div>');
@@ -814,7 +814,7 @@ export function TextPropWithToggle() {
814
814
 
815
815
  const args = [
816
816
  {
817
- children: _$_.normalize_children(_$_.get(lazy_1) ? 'hello' : '')
817
+ children: _$_.normalize_children(lazy_1.value ? 'hello' : '')
818
818
  }
819
819
  ];
820
820
 
@@ -27,7 +27,7 @@ export function ClickCounter() {
27
27
  _$_.output_push('>');
28
28
 
29
29
  {
30
- _$_.output_push(_$_.escape(_$_.get(lazy)));
30
+ _$_.output_push(_$_.escape(lazy.value));
31
31
  }
32
32
 
33
33
  _$_.output_push('</span>');
@@ -63,7 +63,7 @@ export function IncrementDecrement() {
63
63
  _$_.output_push('>');
64
64
 
65
65
  {
66
- _$_.output_push(_$_.escape(_$_.get(lazy_1)));
66
+ _$_.output_push(_$_.escape(lazy_1.value));
67
67
  }
68
68
 
69
69
  _$_.output_push('</span>');
@@ -109,7 +109,7 @@ export function MultipleEvents() {
109
109
  _$_.output_push('>');
110
110
 
111
111
  {
112
- _$_.output_push(_$_.escape(_$_.get(lazy_2)));
112
+ _$_.output_push(_$_.escape(lazy_2.value));
113
113
  }
114
114
 
115
115
  _$_.output_push('</span>');
@@ -118,7 +118,7 @@ export function MultipleEvents() {
118
118
  _$_.output_push('>');
119
119
 
120
120
  {
121
- _$_.output_push(_$_.escape(_$_.get(lazy_3)));
121
+ _$_.output_push(_$_.escape(lazy_3.value));
122
122
  }
123
123
 
124
124
  _$_.output_push('</span>');
@@ -160,7 +160,7 @@ export function MultiStateUpdate() {
160
160
  _$_.output_push('>');
161
161
 
162
162
  {
163
- _$_.output_push(_$_.escape(_$_.get(lazy_4)));
163
+ _$_.output_push(_$_.escape(lazy_4.value));
164
164
  }
165
165
 
166
166
  _$_.output_push('</span>');
@@ -169,7 +169,7 @@ export function MultiStateUpdate() {
169
169
  _$_.output_push('>');
170
170
 
171
171
  {
172
- _$_.output_push(_$_.escape(_$_.get(lazy_5)));
172
+ _$_.output_push(_$_.escape(lazy_5.value));
173
173
  }
174
174
 
175
175
  _$_.output_push('</span>');
@@ -196,7 +196,7 @@ export function ToggleButton() {
196
196
  _$_.output_push('>');
197
197
 
198
198
  {
199
- _$_.output_push(_$_.escape(_$_.get(lazy_6) ? 'ON' : 'OFF'));
199
+ _$_.output_push(_$_.escape(lazy_6.value ? 'ON' : 'OFF'));
200
200
  }
201
201
 
202
202
  _$_.output_push('</button>');
@@ -256,7 +256,7 @@ export function ParentWithChildButton() {
256
256
  _$_.output_push('>');
257
257
 
258
258
  {
259
- _$_.output_push(_$_.escape(_$_.get(lazy_7)));
259
+ _$_.output_push(_$_.escape(lazy_7.value));
260
260
  }
261
261
 
262
262
  _$_.output_push('</span>');
@@ -130,7 +130,7 @@ export function ReactiveForLoopAdd() {
130
130
  {
131
131
  _$_.output_push('<!--[-->');
132
132
 
133
- for (const item of _$_.get(lazy)) {
133
+ for (const item of lazy.value) {
134
134
  _$_.output_push('<li');
135
135
  _$_.output_push('>');
136
136
 
@@ -174,7 +174,7 @@ export function ReactiveForLoopRemove() {
174
174
  {
175
175
  _$_.output_push('<!--[-->');
176
176
 
177
- for (const item of _$_.get(lazy_1)) {
177
+ for (const item of lazy_1.value) {
178
178
  _$_.output_push('<li');
179
179
  _$_.output_push('>');
180
180
 
@@ -208,7 +208,7 @@ export function ForLoopInteractive() {
208
208
 
209
209
  var i = 0;
210
210
 
211
- for (const count of _$_.get(lazy_2)) {
211
+ for (const count of lazy_2.value) {
212
212
  _$_.output_push('<div');
213
213
  _$_.output_push(_$_.attr('class', `item-${i}`));
214
214
  _$_.output_push('>');
@@ -418,7 +418,7 @@ export function KeyedForLoopReorder() {
418
418
  {
419
419
  _$_.output_push('<!--[-->');
420
420
 
421
- for (const item of _$_.get(lazy_3)) {
421
+ for (const item of lazy_3.value) {
422
422
  _$_.output_push('<li');
423
423
  _$_.output_push(_$_.attr('class', `item-${item.id}`));
424
424
  _$_.output_push('>');
@@ -463,7 +463,7 @@ export function KeyedForLoopUpdate() {
463
463
  {
464
464
  _$_.output_push('<!--[-->');
465
465
 
466
- for (const item of _$_.get(lazy_4)) {
466
+ for (const item of lazy_4.value) {
467
467
  _$_.output_push('<li');
468
468
  _$_.output_push(_$_.attr('class', `item-${item.id}`));
469
469
  _$_.output_push('>');
@@ -508,7 +508,7 @@ export function ForLoopMixedOperations() {
508
508
  {
509
509
  _$_.output_push('<!--[-->');
510
510
 
511
- for (const item of _$_.get(lazy_5)) {
511
+ for (const item of lazy_5.value) {
512
512
  _$_.output_push('<li');
513
513
  _$_.output_push(_$_.attr('class', `item-${item}`));
514
514
  _$_.output_push('>');
@@ -562,7 +562,7 @@ export function ForLoopInsideIf() {
562
562
  _$_.regular_block(() => {
563
563
  _$_.output_push('<!--[-->');
564
564
 
565
- if (_$_.get(lazy_6)) {
565
+ if (lazy_6.value) {
566
566
  _$_.output_push('<ul');
567
567
  _$_.output_push(' class="list"');
568
568
  _$_.output_push('>');
@@ -570,7 +570,7 @@ export function ForLoopInsideIf() {
570
570
  {
571
571
  _$_.output_push('<!--[-->');
572
572
 
573
- for (const item of _$_.get(lazy_7)) {
573
+ for (const item of lazy_7.value) {
574
574
  _$_.output_push('<li');
575
575
  _$_.output_push('>');
576
576
 
@@ -618,7 +618,7 @@ export function ForLoopEmptyToPopulated() {
618
618
  {
619
619
  _$_.output_push('<!--[-->');
620
620
 
621
- for (const item of _$_.get(lazy_8)) {
621
+ for (const item of lazy_8.value) {
622
622
  _$_.output_push('<li');
623
623
  _$_.output_push('>');
624
624
 
@@ -663,7 +663,7 @@ export function ForLoopPopulatedToEmpty() {
663
663
  {
664
664
  _$_.output_push('<!--[-->');
665
665
 
666
- for (const item of _$_.get(lazy_9)) {
666
+ for (const item of lazy_9.value) {
667
667
  _$_.output_push('<li');
668
668
  _$_.output_push('>');
669
669
 
@@ -722,7 +722,7 @@ export function NestedForLoopReactive() {
722
722
 
723
723
  var rowIndex = 0;
724
724
 
725
- for (const row of _$_.get(lazy_10)) {
725
+ for (const row of lazy_10.value) {
726
726
  _$_.output_push('<div');
727
727
  _$_.output_push(_$_.attr('class', `row-${rowIndex}`));
728
728
  _$_.output_push('>');
@@ -889,7 +889,7 @@ export function ForLoopIndexUpdate() {
889
889
 
890
890
  var i = 0;
891
891
 
892
- for (const item of _$_.get(lazy_11)) {
892
+ for (const item of lazy_11.value) {
893
893
  _$_.output_push('<li');
894
894
  _$_.output_push(_$_.attr('class', `item-${i}`));
895
895
  _$_.output_push('>');
@@ -944,7 +944,7 @@ export function KeyedForLoopWithIndex() {
944
944
 
945
945
  var i = 0;
946
946
 
947
- for (const item of _$_.get(lazy_12)) {
947
+ for (const item of lazy_12.value) {
948
948
  _$_.output_push('<li');
949
949
  _$_.output_push(_$_.attr('data-index', i, false));
950
950
  _$_.output_push(_$_.attr('class', `item-${item.id}`));
@@ -989,7 +989,7 @@ export function ForLoopWithSiblings() {
989
989
  _$_.output_push('</header>');
990
990
  _$_.output_push('<!--[-->');
991
991
 
992
- for (const item of _$_.get(lazy_13)) {
992
+ for (const item of lazy_13.value) {
993
993
  _$_.output_push('<div');
994
994
  _$_.output_push(_$_.attr('class', `item-${item}`));
995
995
  _$_.output_push('>');
@@ -1078,11 +1078,11 @@ function TodoItem(props) {
1078
1078
  {
1079
1079
  _$_.output_push('<input');
1080
1080
  _$_.output_push(' type="checkbox"');
1081
- _$_.output_push(_$_.attr('checked', _$_.get(lazy_14), true));
1081
+ _$_.output_push(_$_.attr('checked', lazy_14.value, true));
1082
1082
  _$_.output_push(' class="checkbox"');
1083
1083
  _$_.output_push(' />');
1084
1084
  _$_.output_push('<span');
1085
- _$_.output_push(_$_.attr('class', _$_.get(lazy_14) ? 'completed' : 'pending'));
1085
+ _$_.output_push(_$_.attr('class', lazy_14.value ? 'completed' : 'pending'));
1086
1086
  _$_.output_push('>');
1087
1087
 
1088
1088
  {
@@ -1155,7 +1155,7 @@ export function ForLoopAddAtBeginning() {
1155
1155
  {
1156
1156
  _$_.output_push('<!--[-->');
1157
1157
 
1158
- for (const item of _$_.get(lazy_15)) {
1158
+ for (const item of lazy_15.value) {
1159
1159
  _$_.output_push('<li');
1160
1160
  _$_.output_push(_$_.attr('class', `item-${item}`));
1161
1161
  _$_.output_push('>');
@@ -1200,7 +1200,7 @@ export function ForLoopAddInMiddle() {
1200
1200
  {
1201
1201
  _$_.output_push('<!--[-->');
1202
1202
 
1203
- for (const item of _$_.get(lazy_16)) {
1203
+ for (const item of lazy_16.value) {
1204
1204
  _$_.output_push('<li');
1205
1205
  _$_.output_push(_$_.attr('class', `item-${item}`));
1206
1206
  _$_.output_push('>');
@@ -1245,7 +1245,7 @@ export function ForLoopRemoveFromMiddle() {
1245
1245
  {
1246
1246
  _$_.output_push('<!--[-->');
1247
1247
 
1248
- for (const item of _$_.get(lazy_17)) {
1248
+ for (const item of lazy_17.value) {
1249
1249
  _$_.output_push('<li');
1250
1250
  _$_.output_push(_$_.attr('class', `item-${item}`));
1251
1251
  _$_.output_push('>');
@@ -1327,7 +1327,7 @@ export function ForLoopSwap() {
1327
1327
  {
1328
1328
  _$_.output_push('<!--[-->');
1329
1329
 
1330
- for (const item of _$_.get(lazy_18)) {
1330
+ for (const item of lazy_18.value) {
1331
1331
  _$_.output_push('<li');
1332
1332
  _$_.output_push(_$_.attr('class', `item-${item}`));
1333
1333
  _$_.output_push('>');
@@ -1372,7 +1372,7 @@ export function ForLoopReverse() {
1372
1372
  {
1373
1373
  _$_.output_push('<!--[-->');
1374
1374
 
1375
- for (const item of _$_.get(lazy_19)) {
1375
+ for (const item of lazy_19.value) {
1376
1376
  _$_.output_push('<li');
1377
1377
  _$_.output_push(_$_.attr('class', `item-${item}`));
1378
1378
  _$_.output_push('>');
@@ -45,7 +45,7 @@ export function ReactiveTitle() {
45
45
  _$_.output_push('>');
46
46
 
47
47
  {
48
- _$_.output_push(_$_.escape(_$_.get(lazy)));
48
+ _$_.output_push(_$_.escape(lazy.value));
49
49
  }
50
50
 
51
51
  _$_.output_push('</span>');
@@ -60,7 +60,7 @@ export function ReactiveTitle() {
60
60
  _$_.output_push('>');
61
61
 
62
62
  {
63
- _$_.output_push(_$_.escape(_$_.get(lazy)));
63
+ _$_.output_push(_$_.escape(lazy.value));
64
64
  }
65
65
 
66
66
  _$_.output_push('</title>');
@@ -114,7 +114,7 @@ export function ReactiveMetaTags() {
114
114
  _$_.output_push('>');
115
115
 
116
116
  {
117
- _$_.output_push(_$_.escape(_$_.get(lazy_1)));
117
+ _$_.output_push(_$_.escape(lazy_1.value));
118
118
  }
119
119
 
120
120
  _$_.output_push('</div>');
@@ -132,7 +132,7 @@ export function ReactiveMetaTags() {
132
132
  _$_.output_push('</title>');
133
133
  _$_.output_push('<meta');
134
134
  _$_.output_push(' name="description"');
135
- _$_.output_push(_$_.attr('content', _$_.get(lazy_1), false));
135
+ _$_.output_push(_$_.attr('content', lazy_1.value, false));
136
136
  _$_.output_push(' />');
137
137
  _$_.set_output_target(null);
138
138
  _$_.pop_component();
@@ -148,7 +148,7 @@ export function TitleWithTemplate() {
148
148
  _$_.output_push('>');
149
149
 
150
150
  {
151
- _$_.output_push(_$_.escape(_$_.get(lazy_2)));
151
+ _$_.output_push(_$_.escape(lazy_2.value));
152
152
  }
153
153
 
154
154
  _$_.output_push('</div>');
@@ -160,7 +160,7 @@ export function TitleWithTemplate() {
160
160
  _$_.output_push('>');
161
161
 
162
162
  {
163
- _$_.output_push(_$_.escape(`Hello ${_$_.get(lazy_2)}!`));
163
+ _$_.output_push(_$_.escape(`Hello ${lazy_2.value}!`));
164
164
  }
165
165
 
166
166
  _$_.output_push('</title>');
@@ -207,7 +207,7 @@ export function ConditionalTitle() {
207
207
  _$_.output_push('>');
208
208
 
209
209
  {
210
- _$_.output_push(_$_.escape(_$_.get(lazy_4)));
210
+ _$_.output_push(_$_.escape(lazy_4.value));
211
211
  }
212
212
 
213
213
  _$_.output_push('</div>');
@@ -219,7 +219,7 @@ export function ConditionalTitle() {
219
219
  _$_.output_push('>');
220
220
 
221
221
  {
222
- _$_.output_push(_$_.escape(_$_.get(lazy_3) ? 'App - ' + _$_.get(lazy_4) : _$_.get(lazy_4)));
222
+ _$_.output_push(_$_.escape(lazy_3.value ? 'App - ' + lazy_4.value : lazy_4.value));
223
223
  }
224
224
 
225
225
  _$_.output_push('</title>');
@@ -242,7 +242,7 @@ export function ComputedTitle() {
242
242
  _$_.output_push('>');
243
243
 
244
244
  {
245
- _$_.output_push(_$_.escape(_$_.get(lazy_5)));
245
+ _$_.output_push(_$_.escape(lazy_5.value));
246
246
  }
247
247
 
248
248
  _$_.output_push('</span>');
@@ -257,7 +257,7 @@ export function ComputedTitle() {
257
257
  _$_.output_push('>');
258
258
 
259
259
  {
260
- _$_.output_push(_$_.escape(prefix + _$_.get(lazy_5)));
260
+ _$_.output_push(_$_.escape(prefix + lazy_5.value));
261
261
  }
262
262
 
263
263
  _$_.output_push('</title>');
@@ -51,7 +51,7 @@ export function Content() {
51
51
  {
52
52
  _$_.output_push('<!--[-->');
53
53
 
54
- if (_$_.get(lazy)) {
54
+ if (lazy.value) {
55
55
  _$_.output_push('<p');
56
56
  _$_.output_push(' class="text"');
57
57
  _$_.output_push('>');