Skip to content

Commit fe9e76a

Browse files
committed
feat: rename renderBody to content in tags api
1 parent 4bb8ff1 commit fe9e76a

File tree

313 files changed

+2646
-1617
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

313 files changed

+2646
-1617
lines changed

.changeset/olive-rings-cheat.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@marko/translator-interop-class-tags": patch
3+
"marko": patch
4+
"@marko/runtime-tags": patch
5+
---
6+
7+
Rename renderBody to content for tags api.

.sizes.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
{
88
"name": "*",
99
"total": {
10-
"min": 18045,
11-
"brotli": 6518
10+
"min": 18159,
11+
"brotli": 6558
1212
}
1313
},
1414
{
@@ -45,29 +45,29 @@
4545
"name": "comments",
4646
"user": {
4747
"min": 1153,
48-
"brotli": 544
48+
"brotli": 550
4949
},
5050
"runtime": {
51-
"min": 7809,
52-
"brotli": 3166
51+
"min": 7806,
52+
"brotli": 3163
5353
},
5454
"total": {
55-
"min": 8962,
56-
"brotli": 3710
55+
"min": 8959,
56+
"brotli": 3713
5757
}
5858
},
5959
{
6060
"name": "comments 💧",
6161
"user": {
6262
"min": 954,
63-
"brotli": 477
63+
"brotli": 482
6464
},
6565
"runtime": {
66-
"min": 8821,
67-
"brotli": 3573
66+
"min": 8818,
67+
"brotli": 3568
6868
},
6969
"total": {
70-
"min": 9775,
70+
"min": 9772,
7171
"brotli": 4050
7272
}
7373
}

.sizes/comments.csr/entry.js

+46-35
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// size: 1153 (min) 544 (brotli)
2-
const _expr_comment_comments_id$ifBody = intersection(
1+
// size: 1153 (min) 550 (brotli)
2+
const _expr_comment_comments_id$if_content = intersection(
33
2,
44
(_scope) => {
55
const {
@@ -9,81 +9,92 @@ const _expr_comment_comments_id$ifBody = intersection(
99
},
1010
() => inChild(0, _input_$1),
1111
),
12-
_id$ifBody = closure(10, 0, void 0, () => _expr_comment_comments_id$ifBody),
13-
_comment_comments$ifBody = closure(
12+
_id$if_content = closure(
13+
10,
14+
0,
15+
void 0,
16+
() => _expr_comment_comments_id$if_content,
17+
),
18+
_comment_comments$if_content = closure(
1419
8,
1520
0,
1621
void 0,
17-
() => _expr_comment_comments_id$ifBody,
22+
() => _expr_comment_comments_id$if_content,
1823
),
19-
_ifBody = register(
24+
_if_content = register(
2025
"a0",
2126
createRenderer(
2227
"<ul></ul>",
2328
"/ b&",
2429
(_scope) => {
2530
_scope[0];
2631
},
27-
() => [_id$ifBody, _comment_comments$ifBody],
32+
() => [_id$if_content, _comment_comments$if_content],
2833
),
2934
),
30-
_expr_input_path_i$forBody = intersection(
35+
_expr_input_path_i$for_content = intersection(
3136
2,
3237
(_scope) => {
3338
const {
3439
_: { 4: input_path },
3540
9: i,
3641
} = _scope;
37-
_id$forBody(_scope, `${input_path || "c"}-${i}`);
42+
_id$for_content(_scope, `${input_path || "c"}-${i}`);
3843
},
39-
() => _id$forBody,
44+
() => _id$for_content,
4045
),
41-
_if$forBody = conditional(4),
42-
_open$forBody_effect = effect("a1", (_scope, { 11: open }) =>
46+
_if$for_content = conditional(4),
47+
_open$for_content_effect = effect("a1", (_scope, { 11: open }) =>
4348
on(_scope[2], "click", function () {
44-
_open$forBody(_scope, !open);
49+
_open$for_content(_scope, !open);
4550
}),
4651
),
47-
_open$forBody = state(11, (_scope, open) => {
52+
_open$for_content = state(11, (_scope, open) => {
4853
attr(_scope[0], "hidden", !open),
4954
data(_scope[3], open ? "[-]" : "[+]"),
50-
_open$forBody_effect(_scope);
55+
_open$for_content_effect(_scope);
5156
}),
52-
_id$forBody = value(
57+
_id$for_content = value(
5358
10,
5459
(_scope, id) => attr(_scope[0], "id", id),
55-
() => inConditionalScope(_id$ifBody, 4),
60+
() => inConditionalScope(_id$if_content, 4),
5661
),
57-
_i$forBody = value(9, 0, () => _expr_input_path_i$forBody),
58-
_comment_comments$forBody = value(
62+
_i$for_content = value(9, 0, () => _expr_input_path_i$for_content),
63+
_comment_comments$for_content = value(
5964
8,
6065
(_scope, comment_comments) =>
61-
_if$forBody(_scope, comment_comments ? _ifBody : null),
66+
_if$for_content(_scope, comment_comments ? _if_content : null),
6267
() =>
6368
intersections([
64-
_if$forBody,
65-
inConditionalScope(_comment_comments$ifBody, 4),
69+
_if$for_content,
70+
inConditionalScope(_comment_comments$if_content, 4),
6671
]),
6772
),
68-
_comment_text$forBody = value(7, (_scope, comment_text) =>
73+
_comment_text$for_content = value(7, (_scope, comment_text) =>
6974
data(_scope[1], comment_text),
7075
),
71-
_comment$forBody = value(
76+
_comment$for_content = value(
7277
6,
7378
(_scope, comment) => {
74-
_comment_text$forBody(_scope, comment?.text),
75-
_comment_comments$forBody(_scope, comment?.comments);
79+
_comment_text$for_content(_scope, comment?.text),
80+
_comment_comments$for_content(_scope, comment?.comments);
7681
},
77-
() => _comment_comments$forBody,
82+
() => _comment_comments$for_content,
7883
),
79-
_params_2$forBody = value(
84+
_params_2$for_content = value(
8085
5,
8186
(_scope, _params_2) => {
82-
_comment$forBody(_scope, _params_2[0]), _i$forBody(_scope, _params_2[1]);
87+
_comment$for_content(_scope, _params_2[0]),
88+
_i$for_content(_scope, _params_2[1]);
8389
},
84-
() => intersections([_comment$forBody, _i$forBody]),
90+
() => intersections([_comment$for_content, _i$for_content]),
91+
),
92+
_input_path$for_content = closure(
93+
4,
94+
0,
95+
void 0,
96+
() => _expr_input_path_i$for_content,
8597
),
86-
_input_path$forBody = closure(4, 0, void 0, () => _expr_input_path_i$forBody),
8798
_for = loopOf(
8899
0,
89100
register(
@@ -92,14 +103,14 @@ const _expr_comment_comments_id$ifBody = intersection(
92103
"<li><span> </span><button> </button><!></li>",
93104
" E l D l%",
94105
(_scope) => {
95-
_open$forBody(_scope, !0);
106+
_open$for_content(_scope, !0);
96107
},
97-
() => [_input_path$forBody],
98-
() => _params_2$forBody,
108+
() => [_input_path$for_content],
109+
() => _params_2$for_content,
99110
),
100111
),
101112
),
102-
_input_path_ = value(4, 0, () => inLoopScope(_input_path$forBody, 0)),
113+
_input_path_ = value(4, 0, () => inLoopScope(_input_path$for_content, 0)),
103114
_input_comments_ = value(
104115
3,
105116
(_scope, input_comments) => _for(_scope, [input_comments]),

.sizes/comments.ssr/entry.js

+46-35
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// size: 954 (min) 477 (brotli)
2-
const _expr_comment_comments_id$ifBody = intersection(
1+
// size: 954 (min) 482 (brotli)
2+
const _expr_comment_comments_id$if_content = intersection(
33
2,
44
(_scope) => {
55
const {
@@ -9,81 +9,92 @@ const _expr_comment_comments_id$ifBody = intersection(
99
},
1010
() => inChild(0, _input_),
1111
),
12-
_id$ifBody = closure(10, 0, void 0, () => _expr_comment_comments_id$ifBody),
13-
_comment_comments$ifBody = closure(
12+
_id$if_content = closure(
13+
10,
14+
0,
15+
void 0,
16+
() => _expr_comment_comments_id$if_content,
17+
),
18+
_comment_comments$if_content = closure(
1419
8,
1520
0,
1621
void 0,
17-
() => _expr_comment_comments_id$ifBody,
22+
() => _expr_comment_comments_id$if_content,
1823
),
19-
_ifBody = register(
24+
_if_content = register(
2025
"a0",
2126
createRenderer(
2227
"<ul></ul>",
2328
"/ b&",
2429
(_scope) => {
2530
_scope[0];
2631
},
27-
() => [_id$ifBody, _comment_comments$ifBody],
32+
() => [_id$if_content, _comment_comments$if_content],
2833
),
2934
),
30-
_expr_input_path_i$forBody = intersection(
35+
_expr_input_path_i$for_content = intersection(
3136
2,
3237
(_scope) => {
3338
const {
3439
_: { 4: input_path },
3540
9: i,
3641
} = _scope;
37-
_id$forBody(_scope, `${input_path || "c"}-${i}`);
42+
_id$for_content(_scope, `${input_path || "c"}-${i}`);
3843
},
39-
() => _id$forBody,
44+
() => _id$for_content,
4045
),
41-
_if$forBody = conditional(4),
42-
_open$forBody_effect = effect("a1", (_scope, { 11: open }) =>
46+
_if$for_content = conditional(4),
47+
_open$for_content_effect = effect("a1", (_scope, { 11: open }) =>
4348
on(_scope[2], "click", function () {
44-
_open$forBody(_scope, !open);
49+
_open$for_content(_scope, !open);
4550
}),
4651
),
47-
_open$forBody = state(11, (_scope, open) => {
52+
_open$for_content = state(11, (_scope, open) => {
4853
attr(_scope[0], "hidden", !open),
4954
data(_scope[3], open ? "[-]" : "[+]"),
50-
_open$forBody_effect(_scope);
55+
_open$for_content_effect(_scope);
5156
}),
52-
_id$forBody = value(
57+
_id$for_content = value(
5358
10,
5459
(_scope, id) => attr(_scope[0], "id", id),
55-
() => inConditionalScope(_id$ifBody, 4),
60+
() => inConditionalScope(_id$if_content, 4),
5661
),
57-
_i$forBody = value(9, 0, () => _expr_input_path_i$forBody),
58-
_comment_comments$forBody = value(
62+
_i$for_content = value(9, 0, () => _expr_input_path_i$for_content),
63+
_comment_comments$for_content = value(
5964
8,
6065
(_scope, comment_comments) =>
61-
_if$forBody(_scope, comment_comments ? _ifBody : null),
66+
_if$for_content(_scope, comment_comments ? _if_content : null),
6267
() =>
6368
intersections([
64-
_if$forBody,
65-
inConditionalScope(_comment_comments$ifBody, 4),
69+
_if$for_content,
70+
inConditionalScope(_comment_comments$if_content, 4),
6671
]),
6772
),
68-
_comment_text$forBody = value(7, (_scope, comment_text) =>
73+
_comment_text$for_content = value(7, (_scope, comment_text) =>
6974
data(_scope[1], comment_text),
7075
),
71-
_comment$forBody = value(
76+
_comment$for_content = value(
7277
6,
7378
(_scope, comment) => {
74-
_comment_text$forBody(_scope, comment?.text),
75-
_comment_comments$forBody(_scope, comment?.comments);
79+
_comment_text$for_content(_scope, comment?.text),
80+
_comment_comments$for_content(_scope, comment?.comments);
7681
},
77-
() => _comment_comments$forBody,
82+
() => _comment_comments$for_content,
7883
),
79-
_params_2$forBody = value(
84+
_params_2$for_content = value(
8085
5,
8186
(_scope, _params_2) => {
82-
_comment$forBody(_scope, _params_2[0]), _i$forBody(_scope, _params_2[1]);
87+
_comment$for_content(_scope, _params_2[0]),
88+
_i$for_content(_scope, _params_2[1]);
8389
},
84-
() => intersections([_comment$forBody, _i$forBody]),
90+
() => intersections([_comment$for_content, _i$for_content]),
91+
),
92+
_input_path$for_content = closure(
93+
4,
94+
0,
95+
void 0,
96+
() => _expr_input_path_i$for_content,
8597
),
86-
_input_path$forBody = closure(4, 0, void 0, () => _expr_input_path_i$forBody),
8798
_for = loopOf(
8899
0,
89100
register(
@@ -92,14 +103,14 @@ const _expr_comment_comments_id$ifBody = intersection(
92103
"<li><span> </span><button> </button><!></li>",
93104
" E l D l%",
94105
(_scope) => {
95-
_open$forBody(_scope, !0);
106+
_open$for_content(_scope, !0);
96107
},
97-
() => [_input_path$forBody],
98-
() => _params_2$forBody,
108+
() => [_input_path$for_content],
109+
() => _params_2$for_content,
99110
),
100111
),
101112
),
102-
_input_path_ = value(4, 0, () => inLoopScope(_input_path$forBody, 0)),
113+
_input_path_ = value(4, 0, () => inLoopScope(_input_path$for_content, 0)),
103114
_input_comments_ = value(
104115
3,
105116
(_scope, input_comments) => _for(_scope, [input_comments]),

0 commit comments

Comments
 (0)