ripple 0.3.128 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +267 -0
- package/package.json +10 -4
- package/src/runtime/element.js +23 -6
- package/src/runtime/index-client.js +81 -41
- package/src/runtime/index-server.js +1 -0
- package/src/runtime/internal/client/blocks.js +173 -91
- package/src/runtime/internal/client/component.js +4 -30
- package/src/runtime/internal/client/composite.js +12 -13
- package/src/runtime/internal/client/constants.js +9 -0
- package/src/runtime/internal/client/context.js +12 -19
- package/src/runtime/internal/client/css.js +7 -9
- package/src/runtime/internal/client/events.js +178 -90
- package/src/runtime/internal/client/expression.js +45 -25
- package/src/runtime/internal/client/for.js +409 -129
- package/src/runtime/internal/client/head.js +10 -5
- package/src/runtime/internal/client/html.js +1 -0
- package/src/runtime/internal/client/hydration.js +152 -10
- package/src/runtime/internal/client/if.js +239 -50
- package/src/runtime/internal/client/index.js +4 -12
- package/src/runtime/internal/client/operations.js +40 -61
- package/src/runtime/internal/client/portal.js +163 -85
- package/src/runtime/internal/client/render.js +39 -39
- package/src/runtime/internal/client/rpc.js +3 -3
- package/src/runtime/internal/client/runtime.js +592 -433
- package/src/runtime/internal/client/selector.js +5 -2
- package/src/runtime/internal/client/template.js +133 -158
- package/src/runtime/internal/client/transport.js +38 -0
- package/src/runtime/internal/client/try.js +465 -426
- package/src/runtime/internal/client/types.d.ts +56 -23
- package/src/runtime/internal/client/utils.js +1 -3
- package/src/runtime/internal/server/dynamic.js +20 -21
- package/src/runtime/internal/server/index.js +325 -275
- package/src/runtime/internal/server/rpc.js +3 -2
- package/src/runtime/internal/server/transport.js +16 -0
- package/src/runtime/transport.js +21 -0
- package/tests/client/__snapshots__/for.test.tsrx.snap +0 -5
- package/tests/client/array/array.copy-within.test.tsrx +12 -12
- package/tests/client/array/array.derived.test.tsrx +46 -46
- package/tests/client/array/array.iteration.test.tsrx +10 -10
- package/tests/client/array/array.mutations.test.tsrx +20 -20
- package/tests/client/array/array.static.test.tsrx +11 -11
- package/tests/client/array/array.to-methods.test.tsrx +6 -6
- package/tests/client/async-suspend.test.tsrx +74 -75
- package/tests/client/basic/basic.attributes.test.tsrx +86 -83
- package/tests/client/basic/basic.collections.test.tsrx +12 -12
- package/tests/client/basic/basic.components.test.tsrx +99 -25
- package/tests/client/basic/basic.errors.test.tsrx +18 -18
- package/tests/client/basic/basic.events.test.tsrx +42 -42
- package/tests/client/basic/basic.get-set.test.tsrx +8 -8
- package/tests/client/basic/basic.reactivity.test.tsrx +73 -38
- package/tests/client/basic/basic.rendering.test.tsrx +25 -25
- package/tests/client/basic/basic.utilities.test.tsrx +3 -3
- package/tests/client/boundaries.test.tsrx +8 -8
- package/tests/client/boxed-locals.test.tsrx +452 -0
- package/tests/client/compiler/__snapshots__/compiler.assignments.test.tsrx.snap +6 -6
- package/tests/client/compiler/compiler.assignments.test.tsrx +9 -73
- package/tests/client/compiler/compiler.attributes.test.tsrx +23 -23
- package/tests/client/compiler/compiler.basic.test.tsrx +15 -60
- package/tests/client/compiler/compiler.tracked-access.test.tsrx +18 -43
- package/tests/client/compiler/compiler.try-in-function.test.tsrx +2 -2
- package/tests/client/composite/__snapshots__/composite.render.test.tsrx.snap +0 -1
- package/tests/client/composite/composite.dynamic-components.test.tsrx +77 -6
- package/tests/client/composite/composite.props.test.tsrx +149 -12
- package/tests/client/composite/composite.reactivity.test.tsrx +51 -52
- package/tests/client/composite/composite.render.test.tsrx +26 -9
- package/tests/client/css/scoped-styles.test.tsrx +8 -8
- package/tests/client/date.test.tsrx +42 -42
- package/tests/client/derived-release.test.tsrx +370 -0
- package/tests/client/dynamic-elements.test.tsrx +45 -45
- package/tests/client/events.test.tsrx +97 -71
- package/tests/client/for-selector.test.tsrx +14 -14
- package/tests/client/for-single-root-items.test.tsrx +118 -3
- package/tests/client/for.test.tsrx +332 -31
- package/tests/client/head.test.tsrx +19 -19
- package/tests/client/html.test.tsrx +11 -9
- package/tests/client/if-block.test.tsrx +80 -0
- package/tests/client/map.test.tsrx +16 -16
- package/tests/client/media-query.test.tsrx +7 -7
- package/tests/client/portal.test.tsrx +224 -26
- package/tests/client/primitive-text.test.tsrx +50 -0
- package/tests/client/prop-kind-switch.test.tsrx +141 -0
- package/tests/client/ref.test.tsrx +17 -17
- package/tests/client/return.test.tsrx +26 -3
- package/tests/client/root-boundary.test.tsrx +42 -0
- package/tests/client/scoped-flush.test.tsrx +8 -8
- package/tests/client/set.test.tsrx +6 -6
- package/tests/client/svg.test.tsrx +11 -11
- package/tests/client/switch.test.tsrx +44 -44
- package/tests/client/track-async-hydration.test.tsrx +4 -4
- package/tests/client/try.test.tsrx +151 -83
- package/tests/client/tsx.test.tsrx +43 -40
- package/tests/client/url/url.derived.test.tsrx +6 -6
- package/tests/client/url-search-params/url-search-params.derived.test.tsrx +8 -8
- package/tests/client/url-search-params/url-search-params.iteration.test.tsrx +10 -10
- package/tests/client/url-search-params/url-search-params.mutation.test.tsrx +10 -10
- package/tests/client/url-search-params/url-search-params.retrieval.test.tsrx +18 -18
- package/tests/client/url-search-params/url-search-params.serialization.test.tsrx +2 -2
- package/tests/hydration/basic.test.js +74 -1
- package/tests/hydration/build-components.js +22 -1
- package/tests/hydration/compiled/client/basic.js +1142 -713
- package/tests/hydration/compiled/client/composite.js +151 -100
- package/tests/hydration/compiled/client/events.js +184 -171
- package/tests/hydration/compiled/client/for.js +1472 -1132
- package/tests/hydration/compiled/client/fragment-cursor.js +2341 -0
- package/tests/hydration/compiled/client/head.js +254 -201
- package/tests/hydration/compiled/client/hmr.js +54 -41
- package/tests/hydration/compiled/client/html-in-template.js +54 -39
- package/tests/hydration/compiled/client/html.js +1633 -1263
- package/tests/hydration/compiled/client/if-children.js +420 -270
- package/tests/hydration/compiled/client/if-fragment-controlflow.js +363 -317
- package/tests/hydration/compiled/client/if.js +229 -219
- package/tests/hydration/compiled/client/mixed-control-flow.js +420 -404
- package/tests/hydration/compiled/client/nested-control-flow.js +1326 -1277
- package/tests/hydration/compiled/client/portal.js +87 -95
- package/tests/hydration/compiled/client/reactivity.js +135 -101
- package/tests/hydration/compiled/client/return.js +28 -19
- package/tests/hydration/compiled/client/streaming.js +390 -306
- package/tests/hydration/compiled/client/switch.js +258 -266
- package/tests/hydration/compiled/client/track-async-serialization.js +448 -280
- package/tests/hydration/compiled/client/try.js +173 -129
- package/tests/hydration/compiled/client/typed-text.js +71 -0
- package/tests/hydration/compiled/fixtures/money.js +10 -0
- package/tests/hydration/compiled/server/basic.js +123 -6
- package/tests/hydration/compiled/server/composite.js +16 -30
- package/tests/hydration/compiled/server/events.js +66 -18
- package/tests/hydration/compiled/server/for.js +117 -41
- package/tests/hydration/compiled/server/fragment-cursor.js +1687 -0
- package/tests/hydration/compiled/server/head.js +20 -20
- package/tests/hydration/compiled/server/hmr.js +2 -2
- package/tests/hydration/compiled/server/html.js +70 -238
- package/tests/hydration/compiled/server/if-children.js +107 -15
- package/tests/hydration/compiled/server/if.js +11 -15
- package/tests/hydration/compiled/server/mixed-control-flow.js +8 -8
- package/tests/hydration/compiled/server/portal.js +14 -22
- package/tests/hydration/compiled/server/reactivity.js +14 -14
- package/tests/hydration/compiled/server/streaming.js +19 -19
- package/tests/hydration/compiled/server/switch.js +8 -8
- package/tests/hydration/compiled/server/track-async-serialization.js +150 -23
- package/tests/hydration/compiled/server/try.js +8 -8
- package/tests/hydration/compiled/server/typed-text.js +17 -0
- package/tests/hydration/components/basic.tsrx +44 -8
- package/tests/hydration/components/composite.tsrx +2 -2
- package/tests/hydration/components/events.tsrx +25 -25
- package/tests/hydration/components/for.tsrx +115 -67
- package/tests/hydration/components/fragment-cursor.tsrx +650 -0
- package/tests/hydration/components/head.tsrx +16 -16
- package/tests/hydration/components/hmr.tsrx +2 -2
- package/tests/hydration/components/html.tsrx +7 -7
- package/tests/hydration/components/if-children.tsrx +72 -25
- package/tests/hydration/components/if.tsrx +18 -18
- package/tests/hydration/components/mixed-control-flow.tsrx +11 -11
- package/tests/hydration/components/portal.tsrx +3 -3
- package/tests/hydration/components/reactivity.tsrx +16 -16
- package/tests/hydration/components/streaming.tsrx +20 -20
- package/tests/hydration/components/switch.tsrx +20 -20
- package/tests/hydration/components/text-types.ts +4 -0
- package/tests/hydration/components/track-async-serialization.tsrx +80 -26
- package/tests/hydration/components/try.tsrx +8 -8
- package/tests/hydration/components/typed-text.tsrx +22 -0
- package/tests/hydration/fixtures/money.js +10 -0
- package/tests/hydration/for.test.js +36 -0
- package/tests/hydration/fragment-cursor.test.js +111 -0
- package/tests/hydration/if-children.test.js +24 -0
- package/tests/hydration/streaming.test.js +19 -0
- package/tests/hydration/track-async-serialization.test.js +87 -2
- package/tests/hydration/tsconfig.text-types.json +10 -0
- package/tests/hydration/typed-text.test.js +34 -0
- package/tests/server/await.test.tsrx +3 -3
- package/tests/server/basic.attributes.test.tsrx +42 -42
- package/tests/server/basic.components.test.tsrx +64 -8
- package/tests/server/basic.test.tsrx +34 -32
- package/tests/server/compiler.test.tsrx +1 -70
- package/tests/server/composite.props.test.tsrx +6 -6
- package/tests/server/dynamic-elements.test.tsrx +31 -8
- package/tests/server/for.test.tsrx +94 -0
- package/tests/server/head.test.tsrx +11 -11
- package/tests/server/scoped-styles.test.tsrx +2 -2
- package/tests/server/streaming-ssr.test.tsrx +48 -43
- package/tests/server/track-async-serialization.test.tsrx +204 -21
- package/tests/server/try.test.tsrx +48 -48
- package/tests/types/transport.ts +40 -0
- package/tests/utils/vite-plugin-config.test.js +23 -0
- package/types/index.d.ts +48 -7
- package/types/server.d.ts +3 -0
- package/types/transport.d.ts +15 -0
- package/src/runtime/internal/client/switch.js +0 -113
- package/src/utils/errors.js +0 -13
- package/tests/client/lazy-array.test.tsrx +0 -31
- package/tests/client/lazy-destructuring.test.tsrx +0 -438
- package/tests/client/tracked-index-access.test.tsrx +0 -113
- package/tests/server/lazy-destructuring.test.tsrx +0 -595
- package/tests/server/tracked-index-access.test.tsrx +0 -76
|
@@ -2,150 +2,201 @@
|
|
|
2
2
|
import * as _$_ from 'ripple/internal/client';
|
|
3
3
|
|
|
4
4
|
var root = _$_.template(`<div class="layout"><!></div>`, 0);
|
|
5
|
+
|
|
6
|
+
function Layout_render(__anchor, __block, { children }) {
|
|
7
|
+
var div = root();
|
|
8
|
+
|
|
9
|
+
{
|
|
10
|
+
var expression = _$_.hydrating ? _$_.hydrate_child() : div.firstChild;
|
|
11
|
+
|
|
12
|
+
_$_.expression(expression, () => children);
|
|
13
|
+
_$_.hydrating && _$_.pop(div);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
_$_.append(__anchor, div);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
Layout[_$_.$r] = Layout_render;
|
|
20
|
+
|
|
5
21
|
var root_1 = _$_.template(`<div class="layout">before<!>after</div>`, 0);
|
|
22
|
+
|
|
23
|
+
function TextWrappedLayout_render(__anchor, __block, { children }) {
|
|
24
|
+
var div_1 = root_1();
|
|
25
|
+
|
|
26
|
+
{
|
|
27
|
+
var expression_2 = _$_.hydrating ? _$_.hydrate_child() : div_1.firstChild;
|
|
28
|
+
var expression_1 = _$_.hydrating ? _$_.hydrate_sibling() : expression_2.nextSibling;
|
|
29
|
+
|
|
30
|
+
_$_.expression(expression_1, () => children);
|
|
31
|
+
_$_.hydrating && _$_.pop(div_1);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
_$_.append(__anchor, div_1);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
TextWrappedLayout[_$_.$r] = TextWrappedLayout_render;
|
|
38
|
+
|
|
6
39
|
var root_2 = _$_.template(`<div class="single">single</div>`, 0);
|
|
40
|
+
|
|
41
|
+
function SingleChild_render(__anchor, __block) {
|
|
42
|
+
var div_2 = root_2();
|
|
43
|
+
|
|
44
|
+
_$_.append(__anchor, div_2);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
SingleChild[_$_.$r] = SingleChild_render;
|
|
48
|
+
|
|
7
49
|
var root_4 = _$_.template(`<h1>title</h1><p>description</p>`, 1, 2);
|
|
8
50
|
var root_3 = _$_.template(`<!>`, 1, 1);
|
|
9
|
-
var root_5 = _$_.template(`<!><div class="extra">extra</div>`, 1, 2);
|
|
10
|
-
var root_6 = _$_.template(`<!>`, 1, 1);
|
|
11
|
-
var root_7 = _$_.template(`<!>`, 1, 1);
|
|
12
51
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
52
|
+
function MultiRootChild_render(__anchor, __block) {
|
|
53
|
+
var fragment = root_3();
|
|
54
|
+
var node = _$_.first_child_frag(fragment);
|
|
55
|
+
|
|
56
|
+
_$_.expression(node, () => _$_.tsrx_element((__anchor, __block) => {
|
|
57
|
+
var fragment_1 = root_4();
|
|
58
|
+
|
|
59
|
+
_$_.next();
|
|
60
|
+
_$_.append(__anchor, fragment_1);
|
|
61
|
+
}));
|
|
62
|
+
|
|
63
|
+
_$_.append(__anchor, fragment);
|
|
64
|
+
}
|
|
16
65
|
|
|
17
|
-
|
|
18
|
-
var expression = _$_.hydrating ? _$_.hydrate_child() : div.firstChild;
|
|
66
|
+
MultiRootChild[_$_.$r] = MultiRootChild_render;
|
|
19
67
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
68
|
+
function EmptyLayout_render(__anchor, __block) {
|
|
69
|
+
_$_.render_component(Layout, __anchor, {});
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
EmptyLayout[_$_.$r] = EmptyLayout_render;
|
|
23
73
|
|
|
24
|
-
|
|
74
|
+
function LayoutWithSingleChild_render(__anchor, __block) {
|
|
75
|
+
_$_.render_component(Layout, __anchor, {
|
|
76
|
+
children: _$_.tsrx_element((__anchor, __block) => {
|
|
77
|
+
_$_.render_component(SingleChild, __anchor, {});
|
|
78
|
+
})
|
|
25
79
|
});
|
|
26
80
|
}
|
|
27
81
|
|
|
28
|
-
|
|
29
|
-
return _$_.tsrx_element((__anchor, __block) => {
|
|
30
|
-
var div_1 = root_1();
|
|
82
|
+
LayoutWithSingleChild[_$_.$r] = LayoutWithSingleChild_render;
|
|
31
83
|
|
|
32
|
-
|
|
33
|
-
var expression_2 = _$_.hydrating ? _$_.hydrate_child() : div_1.firstChild;
|
|
34
|
-
var expression_1 = _$_.hydrating ? _$_.hydrate_sibling() : expression_2.nextSibling;
|
|
84
|
+
var root_5 = _$_.template(`<!><div class="extra">extra</div>`, 1, 2);
|
|
35
85
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
86
|
+
function LayoutWithMultipleChildren_render(__anchor, __block) {
|
|
87
|
+
_$_.render_component(Layout, __anchor, {
|
|
88
|
+
children: _$_.tsrx_element((__anchor, __block) => {
|
|
89
|
+
var fragment_2 = root_5();
|
|
90
|
+
var node_1 = _$_.first_child_frag(fragment_2);
|
|
39
91
|
|
|
40
|
-
|
|
92
|
+
_$_.render_component(SingleChild, node_1, {});
|
|
93
|
+
_$_.next();
|
|
94
|
+
_$_.append(__anchor, fragment_2);
|
|
95
|
+
})
|
|
41
96
|
});
|
|
42
97
|
}
|
|
43
98
|
|
|
44
|
-
|
|
45
|
-
return _$_.tsrx_element((__anchor, __block) => {
|
|
46
|
-
var div_2 = root_2();
|
|
99
|
+
LayoutWithMultipleChildren[_$_.$r] = LayoutWithMultipleChildren_render;
|
|
47
100
|
|
|
48
|
-
|
|
101
|
+
function LayoutWithMultiRootChild_render(__anchor, __block) {
|
|
102
|
+
_$_.render_component(Layout, __anchor, {
|
|
103
|
+
children: _$_.tsrx_element((__anchor, __block) => {
|
|
104
|
+
_$_.render_component(MultiRootChild, __anchor, {});
|
|
105
|
+
})
|
|
49
106
|
});
|
|
50
107
|
}
|
|
51
108
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
109
|
+
LayoutWithMultiRootChild[_$_.$r] = LayoutWithMultiRootChild_render;
|
|
110
|
+
|
|
111
|
+
function LayoutWithTextAroundChildren_render(__anchor, __block) {
|
|
112
|
+
_$_.render_component(TextWrappedLayout, __anchor, {
|
|
113
|
+
children: _$_.tsrx_element((__anchor, __block) => {
|
|
114
|
+
_$_.render_component(SingleChild, __anchor, {});
|
|
115
|
+
})
|
|
116
|
+
});
|
|
117
|
+
}
|
|
56
118
|
|
|
57
|
-
|
|
58
|
-
var fragment_1 = root_4();
|
|
119
|
+
LayoutWithTextAroundChildren[_$_.$r] = LayoutWithTextAroundChildren_render;
|
|
59
120
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
121
|
+
var root_6 = _$_.template(`<!>`, 1, 1);
|
|
122
|
+
|
|
123
|
+
function DynamicTagElement_render(__anchor, __block) {
|
|
124
|
+
const Tag = 'section';
|
|
125
|
+
var fragment_3 = root_6();
|
|
126
|
+
var node_2 = _$_.first_child_frag(fragment_3);
|
|
127
|
+
|
|
128
|
+
_$_.composite(() => Tag, node_2, () => ({
|
|
129
|
+
class: "host",
|
|
130
|
+
children: _$_.tsrx_element((__anchor, __block) => {
|
|
131
|
+
var expression_3 = _$_.text('hello');
|
|
132
|
+
|
|
133
|
+
_$_.append(__anchor, expression_3);
|
|
134
|
+
})
|
|
135
|
+
}));
|
|
136
|
+
|
|
137
|
+
_$_.append(__anchor, fragment_3);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
DynamicTagElement[_$_.$r] = DynamicTagElement_render;
|
|
63
141
|
|
|
64
|
-
|
|
142
|
+
var root_7 = _$_.template(`<!>`, 1, 1);
|
|
143
|
+
|
|
144
|
+
function DynamicTagComponent_render(__anchor, __block) {
|
|
145
|
+
const Comp = SingleChild;
|
|
146
|
+
|
|
147
|
+
_$_.render_component(Layout, __anchor, {
|
|
148
|
+
children: _$_.tsrx_element((__anchor, __block) => {
|
|
149
|
+
var fragment_4 = root_7();
|
|
150
|
+
var node_3 = _$_.first_child_frag(fragment_4);
|
|
151
|
+
|
|
152
|
+
_$_.composite(() => Comp, node_3, () => ({}));
|
|
153
|
+
_$_.append(__anchor, fragment_4);
|
|
154
|
+
})
|
|
65
155
|
});
|
|
66
156
|
}
|
|
67
157
|
|
|
158
|
+
DynamicTagComponent[_$_.$r] = DynamicTagComponent_render;
|
|
159
|
+
|
|
160
|
+
export function Layout(__props) {
|
|
161
|
+
return _$_.tsrx_element(Layout_render, __props);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export function TextWrappedLayout(__props) {
|
|
165
|
+
return _$_.tsrx_element(TextWrappedLayout_render, __props);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export function SingleChild() {
|
|
169
|
+
return _$_.tsrx_element(SingleChild_render);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export function MultiRootChild() {
|
|
173
|
+
return _$_.tsrx_element(MultiRootChild_render);
|
|
174
|
+
}
|
|
175
|
+
|
|
68
176
|
export function EmptyLayout() {
|
|
69
|
-
return _$_.tsrx_element(
|
|
70
|
-
_$_.render_component(Layout, __anchor, {});
|
|
71
|
-
});
|
|
177
|
+
return _$_.tsrx_element(EmptyLayout_render);
|
|
72
178
|
}
|
|
73
179
|
|
|
74
180
|
export function LayoutWithSingleChild() {
|
|
75
|
-
return _$_.tsrx_element(
|
|
76
|
-
_$_.render_component(Layout, __anchor, {
|
|
77
|
-
children: _$_.tsrx_element((__anchor, __block) => {
|
|
78
|
-
_$_.render_component(SingleChild, __anchor, {});
|
|
79
|
-
})
|
|
80
|
-
});
|
|
81
|
-
});
|
|
181
|
+
return _$_.tsrx_element(LayoutWithSingleChild_render);
|
|
82
182
|
}
|
|
83
183
|
|
|
84
184
|
export function LayoutWithMultipleChildren() {
|
|
85
|
-
return _$_.tsrx_element(
|
|
86
|
-
_$_.render_component(Layout, __anchor, {
|
|
87
|
-
children: _$_.tsrx_element((__anchor, __block) => {
|
|
88
|
-
var fragment_2 = root_5();
|
|
89
|
-
var node_1 = _$_.first_child_frag(fragment_2);
|
|
90
|
-
|
|
91
|
-
_$_.render_component(SingleChild, node_1, {});
|
|
92
|
-
_$_.append(__anchor, fragment_2);
|
|
93
|
-
})
|
|
94
|
-
});
|
|
95
|
-
});
|
|
185
|
+
return _$_.tsrx_element(LayoutWithMultipleChildren_render);
|
|
96
186
|
}
|
|
97
187
|
|
|
98
188
|
export function LayoutWithMultiRootChild() {
|
|
99
|
-
return _$_.tsrx_element(
|
|
100
|
-
_$_.render_component(Layout, __anchor, {
|
|
101
|
-
children: _$_.tsrx_element((__anchor, __block) => {
|
|
102
|
-
_$_.render_component(MultiRootChild, __anchor, {});
|
|
103
|
-
})
|
|
104
|
-
});
|
|
105
|
-
});
|
|
189
|
+
return _$_.tsrx_element(LayoutWithMultiRootChild_render);
|
|
106
190
|
}
|
|
107
191
|
|
|
108
192
|
export function LayoutWithTextAroundChildren() {
|
|
109
|
-
return _$_.tsrx_element(
|
|
110
|
-
_$_.render_component(TextWrappedLayout, __anchor, {
|
|
111
|
-
children: _$_.tsrx_element((__anchor, __block) => {
|
|
112
|
-
_$_.render_component(SingleChild, __anchor, {});
|
|
113
|
-
})
|
|
114
|
-
});
|
|
115
|
-
});
|
|
193
|
+
return _$_.tsrx_element(LayoutWithTextAroundChildren_render);
|
|
116
194
|
}
|
|
117
195
|
|
|
118
196
|
export function DynamicTagElement() {
|
|
119
|
-
return _$_.tsrx_element(
|
|
120
|
-
const Tag = 'section';
|
|
121
|
-
var fragment_3 = root_6();
|
|
122
|
-
var node_2 = _$_.first_child_frag(fragment_3);
|
|
123
|
-
|
|
124
|
-
_$_.composite(() => Tag, node_2, {
|
|
125
|
-
class: "host",
|
|
126
|
-
children: _$_.tsrx_element((__anchor, __block) => {
|
|
127
|
-
var expression_3 = _$_.text('hello');
|
|
128
|
-
|
|
129
|
-
_$_.append(__anchor, expression_3);
|
|
130
|
-
})
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
_$_.append(__anchor, fragment_3);
|
|
134
|
-
});
|
|
197
|
+
return _$_.tsrx_element(DynamicTagElement_render);
|
|
135
198
|
}
|
|
136
199
|
|
|
137
200
|
export function DynamicTagComponent() {
|
|
138
|
-
return _$_.tsrx_element(
|
|
139
|
-
const Comp = SingleChild;
|
|
140
|
-
|
|
141
|
-
_$_.render_component(Layout, __anchor, {
|
|
142
|
-
children: _$_.tsrx_element((__anchor, __block) => {
|
|
143
|
-
var fragment_4 = root_7();
|
|
144
|
-
var node_3 = _$_.first_child_frag(fragment_4);
|
|
145
|
-
|
|
146
|
-
_$_.composite(() => Comp, node_3, {});
|
|
147
|
-
_$_.append(__anchor, fragment_4);
|
|
148
|
-
})
|
|
149
|
-
});
|
|
150
|
-
});
|
|
201
|
+
return _$_.tsrx_element(DynamicTagComponent_render);
|
|
151
202
|
}
|