@barefootjs/jsx 0.5.0 → 0.5.1
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/dist/adapters/test-adapter.d.ts.map +1 -1
- package/dist/index.js +179 -37
- package/dist/ir-to-client-js/collect-elements.d.ts.map +1 -1
- package/dist/ir-to-client-js/control-flow/plan/build-loop.d.ts.map +1 -1
- package/dist/ir-to-client-js/control-flow/plan/loop.d.ts +14 -0
- package/dist/ir-to-client-js/control-flow/plan/loop.d.ts.map +1 -1
- package/dist/ir-to-client-js/control-flow/stringify/loop.d.ts.map +1 -1
- package/dist/ir-to-client-js/emit-reactive.d.ts.map +1 -1
- package/dist/ir-to-client-js/html-template.d.ts +0 -14
- package/dist/ir-to-client-js/html-template.d.ts.map +1 -1
- package/dist/ir-to-client-js/imports.d.ts +2 -2
- package/dist/ir-to-client-js/imports.d.ts.map +1 -1
- package/dist/ir-to-client-js/reactivity.d.ts.map +1 -1
- package/dist/ir-to-client-js/types.d.ts +7 -0
- package/dist/ir-to-client-js/types.d.ts.map +1 -1
- package/dist/ir-to-client-js/utils.d.ts +2 -2
- package/dist/ir-to-client-js/utils.d.ts.map +1 -1
- package/dist/types.d.ts +11 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/__tests__/__snapshots__/doc-examples.test.ts.snap +310 -188
- package/src/__tests__/adapter-output.test.ts +49 -0
- package/src/__tests__/client-js-generation.test.ts +5 -2
- package/src/__tests__/inline-jsx-callback.test.ts +95 -0
- package/src/__tests__/ir-jsx-props.test.ts +5 -2
- package/src/__tests__/loop-item-conditional-codegen.test.ts +81 -0
- package/src/__tests__/map-logical-jsx-helper.test.ts +159 -0
- package/src/__tests__/missing-key-in-list.test.ts +49 -0
- package/src/__tests__/reactive-attrs-in-map.test.ts +41 -0
- package/src/adapters/test-adapter.ts +16 -1
- package/src/ir-to-client-js/collect-elements.ts +3 -0
- package/src/ir-to-client-js/control-flow/plan/build-loop.ts +17 -0
- package/src/ir-to-client-js/control-flow/plan/loop.ts +14 -0
- package/src/ir-to-client-js/control-flow/stringify/insert.ts +7 -2
- package/src/ir-to-client-js/control-flow/stringify/loop.ts +60 -0
- package/src/ir-to-client-js/emit-reactive.ts +12 -3
- package/src/ir-to-client-js/html-template.ts +29 -3
- package/src/ir-to-client-js/imports.ts +2 -2
- package/src/ir-to-client-js/reactivity.ts +17 -1
- package/src/ir-to-client-js/types.ts +7 -0
- package/src/ir-to-client-js/utils.ts +2 -1
- package/src/jsx-to-ir.ts +161 -12
- package/src/preprocess-inline-jsx-callbacks.ts +28 -10
- package/src/types.ts +12 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Bun Snapshot v1, https://bun.sh/docs/test/snapshots
|
|
2
2
|
|
|
3
3
|
exports[`docs/core/rendering/jsx-compatibility.md doc-examples L15 — Ternary 1`] = `
|
|
4
|
-
"import { $, $t, __bfSlot, createComponent, createDisposableEffect, createEffect, createSignal, hydrate, insert } from '@barefootjs/client/runtime'
|
|
4
|
+
"import { $, $t, __bfSlot, __bfText, createComponent, createDisposableEffect, createEffect, createSignal, hydrate, insert } from '@barefootjs/client/runtime'
|
|
5
5
|
|
|
6
6
|
export function initTodoItem(__scope, _p = {}) {
|
|
7
7
|
if (!__scope) return
|
|
@@ -9,9 +9,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
9
9
|
|
|
10
10
|
const [_s0] = $t(__scope, 's0')
|
|
11
11
|
|
|
12
|
+
let __anchor_s0 = _s0
|
|
12
13
|
createEffect(() => {
|
|
13
14
|
const __val = String(_p.todo)
|
|
14
|
-
|
|
15
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
15
16
|
})
|
|
16
17
|
|
|
17
18
|
}
|
|
@@ -24,9 +25,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
24
25
|
|
|
25
26
|
const [_s0] = $t(__scope, 's0')
|
|
26
27
|
|
|
28
|
+
let __anchor_s0 = _s0
|
|
27
29
|
createEffect(() => {
|
|
28
30
|
const __val = String(_p.item)
|
|
29
|
-
|
|
31
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
30
32
|
})
|
|
31
33
|
|
|
32
34
|
}
|
|
@@ -56,10 +58,10 @@ export function initExample(__scope, _p = {}) {
|
|
|
56
58
|
template: () => { const __slots = []; return { html: \`<p bf-c="s0" bf="s2"><!--bf:s1-->\${__bfSlot(count(), __slots)}<!--/--> items</p>\`, slots: __slots } },
|
|
57
59
|
bindEvents: (__branchScope, { isFirstRun: __bfFirstRun = false } = {}) => {
|
|
58
60
|
const __disposers = []
|
|
59
|
-
|
|
61
|
+
let __anchor_s1 = $t(__branchScope, 's1')[0]
|
|
60
62
|
__disposers.push(createDisposableEffect(() => {
|
|
61
63
|
const __val = count()
|
|
62
|
-
|
|
64
|
+
__anchor_s1 = __bfText(__anchor_s1, __val)
|
|
63
65
|
}))
|
|
64
66
|
return () => __disposers.forEach(d => d())
|
|
65
67
|
}
|
|
@@ -76,7 +78,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
76
78
|
`;
|
|
77
79
|
|
|
78
80
|
exports[`docs/core/rendering/jsx-compatibility.md doc-examples L18 — Logical AND 1`] = `
|
|
79
|
-
"import { $, $c, $t, createComponent, createEffect, createSignal, hydrate, initChild, insert, renderChild } from '@barefootjs/client/runtime'
|
|
81
|
+
"import { $, $c, $t, __bfText, createComponent, createEffect, createSignal, hydrate, initChild, insert, renderChild } from '@barefootjs/client/runtime'
|
|
80
82
|
|
|
81
83
|
export function initTodoItem(__scope, _p = {}) {
|
|
82
84
|
if (!__scope) return
|
|
@@ -84,9 +86,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
84
86
|
|
|
85
87
|
const [_s0] = $t(__scope, 's0')
|
|
86
88
|
|
|
89
|
+
let __anchor_s0 = _s0
|
|
87
90
|
createEffect(() => {
|
|
88
91
|
const __val = String(_p.todo)
|
|
89
|
-
|
|
92
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
90
93
|
})
|
|
91
94
|
|
|
92
95
|
}
|
|
@@ -99,9 +102,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
99
102
|
|
|
100
103
|
const [_s0] = $t(__scope, 's0')
|
|
101
104
|
|
|
105
|
+
let __anchor_s0 = _s0
|
|
102
106
|
createEffect(() => {
|
|
103
107
|
const __val = String(_p.item)
|
|
104
|
-
|
|
108
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
105
109
|
})
|
|
106
110
|
|
|
107
111
|
}
|
|
@@ -150,7 +154,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
150
154
|
`;
|
|
151
155
|
|
|
152
156
|
exports[`docs/core/rendering/jsx-compatibility.md doc-examples L31 — (no label) 1`] = `
|
|
153
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate, initChild, mapArray, renderChild } from '@barefootjs/client/runtime'
|
|
157
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate, initChild, mapArray, renderChild } from '@barefootjs/client/runtime'
|
|
154
158
|
|
|
155
159
|
export function initTodoItem(__scope, _p = {}) {
|
|
156
160
|
if (!__scope) return
|
|
@@ -158,9 +162,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
158
162
|
|
|
159
163
|
const [_s0] = $t(__scope, 's0')
|
|
160
164
|
|
|
165
|
+
let __anchor_s0 = _s0
|
|
161
166
|
createEffect(() => {
|
|
162
167
|
const __val = String(_p.todo)
|
|
163
|
-
|
|
168
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
164
169
|
})
|
|
165
170
|
|
|
166
171
|
}
|
|
@@ -173,9 +178,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
173
178
|
|
|
174
179
|
const [_s0] = $t(__scope, 's0')
|
|
175
180
|
|
|
181
|
+
let __anchor_s0 = _s0
|
|
176
182
|
createEffect(() => {
|
|
177
183
|
const __val = String(_p.item)
|
|
178
|
-
|
|
184
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
179
185
|
})
|
|
180
186
|
|
|
181
187
|
}
|
|
@@ -213,7 +219,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
213
219
|
`;
|
|
214
220
|
|
|
215
221
|
exports[`docs/core/rendering/jsx-compatibility.md doc-examples L40 — ✅ Simple predicate 1`] = `
|
|
216
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate, initChild, mapArray, renderChild } from '@barefootjs/client/runtime'
|
|
222
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate, initChild, mapArray, renderChild } from '@barefootjs/client/runtime'
|
|
217
223
|
|
|
218
224
|
export function initTodoItem(__scope, _p = {}) {
|
|
219
225
|
if (!__scope) return
|
|
@@ -221,9 +227,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
221
227
|
|
|
222
228
|
const [_s0] = $t(__scope, 's0')
|
|
223
229
|
|
|
230
|
+
let __anchor_s0 = _s0
|
|
224
231
|
createEffect(() => {
|
|
225
232
|
const __val = String(_p.todo)
|
|
226
|
-
|
|
233
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
227
234
|
})
|
|
228
235
|
|
|
229
236
|
}
|
|
@@ -236,9 +243,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
236
243
|
|
|
237
244
|
const [_s0] = $t(__scope, 's0')
|
|
238
245
|
|
|
246
|
+
let __anchor_s0 = _s0
|
|
239
247
|
createEffect(() => {
|
|
240
248
|
const __val = String(_p.item)
|
|
241
|
-
|
|
249
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
242
250
|
})
|
|
243
251
|
|
|
244
252
|
}
|
|
@@ -276,7 +284,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
276
284
|
`;
|
|
277
285
|
|
|
278
286
|
exports[`docs/core/rendering/jsx-compatibility.md doc-examples L45 — ✅ Block body with simple statements — also works 1`] = `
|
|
279
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate, initChild, mapArray, renderChild } from '@barefootjs/client/runtime'
|
|
287
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate, initChild, mapArray, renderChild } from '@barefootjs/client/runtime'
|
|
280
288
|
|
|
281
289
|
export function initTodoItem(__scope, _p = {}) {
|
|
282
290
|
if (!__scope) return
|
|
@@ -284,9 +292,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
284
292
|
|
|
285
293
|
const [_s0] = $t(__scope, 's0')
|
|
286
294
|
|
|
295
|
+
let __anchor_s0 = _s0
|
|
287
296
|
createEffect(() => {
|
|
288
297
|
const __val = String(_p.todo)
|
|
289
|
-
|
|
298
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
290
299
|
})
|
|
291
300
|
|
|
292
301
|
}
|
|
@@ -299,9 +308,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
299
308
|
|
|
300
309
|
const [_s0] = $t(__scope, 's0')
|
|
301
310
|
|
|
311
|
+
let __anchor_s0 = _s0
|
|
302
312
|
createEffect(() => {
|
|
303
313
|
const __val = String(_p.item)
|
|
304
|
-
|
|
314
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
305
315
|
})
|
|
306
316
|
|
|
307
317
|
}
|
|
@@ -349,7 +359,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
349
359
|
`;
|
|
350
360
|
|
|
351
361
|
exports[`docs/core/rendering/jsx-compatibility.md doc-examples L59 — ✅ Sort then render 1`] = `
|
|
352
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate, initChild, mapArray, renderChild } from '@barefootjs/client/runtime'
|
|
362
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate, initChild, mapArray, renderChild } from '@barefootjs/client/runtime'
|
|
353
363
|
|
|
354
364
|
export function initTodoItem(__scope, _p = {}) {
|
|
355
365
|
if (!__scope) return
|
|
@@ -357,9 +367,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
357
367
|
|
|
358
368
|
const [_s0] = $t(__scope, 's0')
|
|
359
369
|
|
|
370
|
+
let __anchor_s0 = _s0
|
|
360
371
|
createEffect(() => {
|
|
361
372
|
const __val = String(_p.todo)
|
|
362
|
-
|
|
373
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
363
374
|
})
|
|
364
375
|
|
|
365
376
|
}
|
|
@@ -372,9 +383,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
372
383
|
|
|
373
384
|
const [_s0] = $t(__scope, 's0')
|
|
374
385
|
|
|
386
|
+
let __anchor_s0 = _s0
|
|
375
387
|
createEffect(() => {
|
|
376
388
|
const __val = String(_p.item)
|
|
377
|
-
|
|
389
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
378
390
|
})
|
|
379
391
|
|
|
380
392
|
}
|
|
@@ -412,7 +424,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
412
424
|
`;
|
|
413
425
|
|
|
414
426
|
exports[`docs/core/rendering/jsx-compatibility.md doc-examples L64 — ✅ Filter, sort, then render 1`] = `
|
|
415
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate, initChild, mapArray, renderChild } from '@barefootjs/client/runtime'
|
|
427
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate, initChild, mapArray, renderChild } from '@barefootjs/client/runtime'
|
|
416
428
|
|
|
417
429
|
export function initTodoItem(__scope, _p = {}) {
|
|
418
430
|
if (!__scope) return
|
|
@@ -420,9 +432,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
420
432
|
|
|
421
433
|
const [_s0] = $t(__scope, 's0')
|
|
422
434
|
|
|
435
|
+
let __anchor_s0 = _s0
|
|
423
436
|
createEffect(() => {
|
|
424
437
|
const __val = String(_p.todo)
|
|
425
|
-
|
|
438
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
426
439
|
})
|
|
427
440
|
|
|
428
441
|
}
|
|
@@ -435,9 +448,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
435
448
|
|
|
436
449
|
const [_s0] = $t(__scope, 's0')
|
|
437
450
|
|
|
451
|
+
let __anchor_s0 = _s0
|
|
438
452
|
createEffect(() => {
|
|
439
453
|
const __val = String(_p.item)
|
|
440
|
-
|
|
454
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
441
455
|
})
|
|
442
456
|
|
|
443
457
|
}
|
|
@@ -475,7 +489,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
475
489
|
`;
|
|
476
490
|
|
|
477
491
|
exports[`docs/core/rendering/jsx-compatibility.md doc-examples L69 — ✅ Multi-key: sort by price, break ties by name 1`] = `
|
|
478
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate, initChild, mapArray, renderChild } from '@barefootjs/client/runtime'
|
|
492
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate, initChild, mapArray, renderChild } from '@barefootjs/client/runtime'
|
|
479
493
|
|
|
480
494
|
export function initTodoItem(__scope, _p = {}) {
|
|
481
495
|
if (!__scope) return
|
|
@@ -483,9 +497,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
483
497
|
|
|
484
498
|
const [_s0] = $t(__scope, 's0')
|
|
485
499
|
|
|
500
|
+
let __anchor_s0 = _s0
|
|
486
501
|
createEffect(() => {
|
|
487
502
|
const __val = String(_p.todo)
|
|
488
|
-
|
|
503
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
489
504
|
})
|
|
490
505
|
|
|
491
506
|
}
|
|
@@ -498,9 +513,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
498
513
|
|
|
499
514
|
const [_s0] = $t(__scope, 's0')
|
|
500
515
|
|
|
516
|
+
let __anchor_s0 = _s0
|
|
501
517
|
createEffect(() => {
|
|
502
518
|
const __val = String(_p.item)
|
|
503
|
-
|
|
519
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
504
520
|
})
|
|
505
521
|
|
|
506
522
|
}
|
|
@@ -538,7 +554,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
538
554
|
`;
|
|
539
555
|
|
|
540
556
|
exports[`docs/core/rendering/jsx-compatibility.md doc-examples L74 — ✅ Relational ternary 1`] = `
|
|
541
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate, initChild, mapArray, renderChild } from '@barefootjs/client/runtime'
|
|
557
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate, initChild, mapArray, renderChild } from '@barefootjs/client/runtime'
|
|
542
558
|
|
|
543
559
|
export function initTodoItem(__scope, _p = {}) {
|
|
544
560
|
if (!__scope) return
|
|
@@ -546,9 +562,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
546
562
|
|
|
547
563
|
const [_s0] = $t(__scope, 's0')
|
|
548
564
|
|
|
565
|
+
let __anchor_s0 = _s0
|
|
549
566
|
createEffect(() => {
|
|
550
567
|
const __val = String(_p.todo)
|
|
551
|
-
|
|
568
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
552
569
|
})
|
|
553
570
|
|
|
554
571
|
}
|
|
@@ -561,9 +578,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
561
578
|
|
|
562
579
|
const [_s0] = $t(__scope, 's0')
|
|
563
580
|
|
|
581
|
+
let __anchor_s0 = _s0
|
|
564
582
|
createEffect(() => {
|
|
565
583
|
const __val = String(_p.item)
|
|
566
|
-
|
|
584
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
567
585
|
})
|
|
568
586
|
|
|
569
587
|
}
|
|
@@ -601,7 +619,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
601
619
|
`;
|
|
602
620
|
|
|
603
621
|
exports[`docs/core/rendering/jsx-compatibility.md doc-examples L85 — (no label) 1`] = `
|
|
604
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
622
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
605
623
|
|
|
606
624
|
export function initTodoItem(__scope, _p = {}) {
|
|
607
625
|
if (!__scope) return
|
|
@@ -609,9 +627,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
609
627
|
|
|
610
628
|
const [_s0] = $t(__scope, 's0')
|
|
611
629
|
|
|
630
|
+
let __anchor_s0 = _s0
|
|
612
631
|
createEffect(() => {
|
|
613
632
|
const __val = String(_p.todo)
|
|
614
|
-
|
|
633
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
615
634
|
})
|
|
616
635
|
|
|
617
636
|
}
|
|
@@ -624,9 +643,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
624
643
|
|
|
625
644
|
const [_s0] = $t(__scope, 's0')
|
|
626
645
|
|
|
646
|
+
let __anchor_s0 = _s0
|
|
627
647
|
createEffect(() => {
|
|
628
648
|
const __val = String(_p.item)
|
|
629
|
-
|
|
649
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
630
650
|
})
|
|
631
651
|
|
|
632
652
|
}
|
|
@@ -663,7 +683,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
663
683
|
`;
|
|
664
684
|
|
|
665
685
|
exports[`docs/core/rendering/jsx-compatibility.md doc-examples L131 — ❌ BF101 on Go/Mojo; works on Hono 1`] = `
|
|
666
|
-
"import { $t, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
686
|
+
"import { $t, __bfText, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
667
687
|
|
|
668
688
|
export function initTodoItem(__scope, _p = {}) {
|
|
669
689
|
if (!__scope) return
|
|
@@ -671,9 +691,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
671
691
|
|
|
672
692
|
const [_s0] = $t(__scope, 's0')
|
|
673
693
|
|
|
694
|
+
let __anchor_s0 = _s0
|
|
674
695
|
createEffect(() => {
|
|
675
696
|
const __val = String(_p.todo)
|
|
676
|
-
|
|
697
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
677
698
|
})
|
|
678
699
|
|
|
679
700
|
}
|
|
@@ -686,9 +707,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
686
707
|
|
|
687
708
|
const [_s0] = $t(__scope, 's0')
|
|
688
709
|
|
|
710
|
+
let __anchor_s0 = _s0
|
|
689
711
|
createEffect(() => {
|
|
690
712
|
const __val = String(_p.item)
|
|
691
|
-
|
|
713
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
692
714
|
})
|
|
693
715
|
|
|
694
716
|
}
|
|
@@ -714,9 +736,10 @@ export function initExample(__scope, _p = {}) {
|
|
|
714
736
|
|
|
715
737
|
const [_s0] = $t(__scope, 's0')
|
|
716
738
|
|
|
739
|
+
let __anchor_s0 = _s0
|
|
717
740
|
createEffect(() => {
|
|
718
741
|
const __val = items().reduce((sum, x) => sum + x.price, 0)
|
|
719
|
-
|
|
742
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
720
743
|
})
|
|
721
744
|
|
|
722
745
|
}
|
|
@@ -726,7 +749,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
726
749
|
`;
|
|
727
750
|
|
|
728
751
|
exports[`docs/core/rendering/jsx-compatibility.md doc-examples L134 — ✅ Use /* @client */ 1`] = `
|
|
729
|
-
"import { $t, createComponent, createEffect, createSignal, hydrate, updateClientMarker } from '@barefootjs/client/runtime'
|
|
752
|
+
"import { $t, __bfText, createComponent, createEffect, createSignal, hydrate, updateClientMarker } from '@barefootjs/client/runtime'
|
|
730
753
|
|
|
731
754
|
export function initTodoItem(__scope, _p = {}) {
|
|
732
755
|
if (!__scope) return
|
|
@@ -734,9 +757,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
734
757
|
|
|
735
758
|
const [_s0] = $t(__scope, 's0')
|
|
736
759
|
|
|
760
|
+
let __anchor_s0 = _s0
|
|
737
761
|
createEffect(() => {
|
|
738
762
|
const __val = String(_p.todo)
|
|
739
|
-
|
|
763
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
740
764
|
})
|
|
741
765
|
|
|
742
766
|
}
|
|
@@ -749,9 +773,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
749
773
|
|
|
750
774
|
const [_s0] = $t(__scope, 's0')
|
|
751
775
|
|
|
776
|
+
let __anchor_s0 = _s0
|
|
752
777
|
createEffect(() => {
|
|
753
778
|
const __val = String(_p.item)
|
|
754
|
-
|
|
779
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
755
780
|
})
|
|
756
781
|
|
|
757
782
|
}
|
|
@@ -787,7 +812,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
787
812
|
`;
|
|
788
813
|
|
|
789
814
|
exports[`docs/core/rendering/jsx-compatibility.md doc-examples L151 — ❌ BF101 on Go/Mojo; works on Hono 1`] = `
|
|
790
|
-
"import { $t, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
815
|
+
"import { $t, __bfText, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
791
816
|
|
|
792
817
|
export function initTodoItem(__scope, _p = {}) {
|
|
793
818
|
if (!__scope) return
|
|
@@ -795,9 +820,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
795
820
|
|
|
796
821
|
const [_s0] = $t(__scope, 's0')
|
|
797
822
|
|
|
823
|
+
let __anchor_s0 = _s0
|
|
798
824
|
createEffect(() => {
|
|
799
825
|
const __val = String(_p.todo)
|
|
800
|
-
|
|
826
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
801
827
|
})
|
|
802
828
|
|
|
803
829
|
}
|
|
@@ -810,9 +836,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
810
836
|
|
|
811
837
|
const [_s0] = $t(__scope, 's0')
|
|
812
838
|
|
|
839
|
+
let __anchor_s0 = _s0
|
|
813
840
|
createEffect(() => {
|
|
814
841
|
const __val = String(_p.item)
|
|
815
|
-
|
|
842
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
816
843
|
})
|
|
817
844
|
|
|
818
845
|
}
|
|
@@ -838,9 +865,10 @@ export function initExample(__scope, _p = {}) {
|
|
|
838
865
|
|
|
839
866
|
const [_s0] = $t(__scope, 's0')
|
|
840
867
|
|
|
868
|
+
let __anchor_s0 = _s0
|
|
841
869
|
createEffect(() => {
|
|
842
870
|
const __val = items().filter(function(x) { return x.done })
|
|
843
|
-
|
|
871
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
844
872
|
})
|
|
845
873
|
|
|
846
874
|
}
|
|
@@ -850,7 +878,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
850
878
|
`;
|
|
851
879
|
|
|
852
880
|
exports[`docs/core/rendering/jsx-compatibility.md doc-examples L154 — ✅ Use arrow functions for adapter portability 1`] = `
|
|
853
|
-
"import { $t, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
881
|
+
"import { $t, __bfText, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
854
882
|
|
|
855
883
|
export function initTodoItem(__scope, _p = {}) {
|
|
856
884
|
if (!__scope) return
|
|
@@ -858,9 +886,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
858
886
|
|
|
859
887
|
const [_s0] = $t(__scope, 's0')
|
|
860
888
|
|
|
889
|
+
let __anchor_s0 = _s0
|
|
861
890
|
createEffect(() => {
|
|
862
891
|
const __val = String(_p.todo)
|
|
863
|
-
|
|
892
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
864
893
|
})
|
|
865
894
|
|
|
866
895
|
}
|
|
@@ -873,9 +902,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
873
902
|
|
|
874
903
|
const [_s0] = $t(__scope, 's0')
|
|
875
904
|
|
|
905
|
+
let __anchor_s0 = _s0
|
|
876
906
|
createEffect(() => {
|
|
877
907
|
const __val = String(_p.item)
|
|
878
|
-
|
|
908
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
879
909
|
})
|
|
880
910
|
|
|
881
911
|
}
|
|
@@ -901,9 +931,10 @@ export function initExample(__scope, _p = {}) {
|
|
|
901
931
|
|
|
902
932
|
const [_s0] = $t(__scope, 's0')
|
|
903
933
|
|
|
934
|
+
let __anchor_s0 = _s0
|
|
904
935
|
createEffect(() => {
|
|
905
936
|
const __val = items().filter(x => x.done)
|
|
906
|
-
|
|
937
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
907
938
|
})
|
|
908
939
|
|
|
909
940
|
}
|
|
@@ -913,7 +944,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
913
944
|
`;
|
|
914
945
|
|
|
915
946
|
exports[`docs/core/rendering/jsx-compatibility.md doc-examples L168 — ✅ Use /* @client */ 1`] = `
|
|
916
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate, initChild, mapArray, renderChild } from '@barefootjs/client/runtime'
|
|
947
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate, initChild, mapArray, renderChild } from '@barefootjs/client/runtime'
|
|
917
948
|
|
|
918
949
|
export function initTodoItem(__scope, _p = {}) {
|
|
919
950
|
if (!__scope) return
|
|
@@ -921,9 +952,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
921
952
|
|
|
922
953
|
const [_s0] = $t(__scope, 's0')
|
|
923
954
|
|
|
955
|
+
let __anchor_s0 = _s0
|
|
924
956
|
createEffect(() => {
|
|
925
957
|
const __val = String(_p.todo)
|
|
926
|
-
|
|
958
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
927
959
|
})
|
|
928
960
|
|
|
929
961
|
}
|
|
@@ -936,9 +968,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
936
968
|
|
|
937
969
|
const [_s0] = $t(__scope, 's0')
|
|
938
970
|
|
|
971
|
+
let __anchor_s0 = _s0
|
|
939
972
|
createEffect(() => {
|
|
940
973
|
const __val = String(_p.item)
|
|
941
|
-
|
|
974
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
942
975
|
})
|
|
943
976
|
|
|
944
977
|
}
|
|
@@ -976,7 +1009,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
976
1009
|
`;
|
|
977
1010
|
|
|
978
1011
|
exports[`docs/core/rendering/client-directive.md doc-examples L59 — Nested higher-order methods 1`] = `
|
|
979
|
-
"import { $t, createComponent, createEffect, createSignal, hydrate, updateClientMarker } from '@barefootjs/client/runtime'
|
|
1012
|
+
"import { $t, __bfText, createComponent, createEffect, createSignal, hydrate, updateClientMarker } from '@barefootjs/client/runtime'
|
|
980
1013
|
|
|
981
1014
|
export function initTodoItem(__scope, _p = {}) {
|
|
982
1015
|
if (!__scope) return
|
|
@@ -984,9 +1017,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
984
1017
|
|
|
985
1018
|
const [_s0] = $t(__scope, 's0')
|
|
986
1019
|
|
|
1020
|
+
let __anchor_s0 = _s0
|
|
987
1021
|
createEffect(() => {
|
|
988
1022
|
const __val = String(_p.todo)
|
|
989
|
-
|
|
1023
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
990
1024
|
})
|
|
991
1025
|
|
|
992
1026
|
}
|
|
@@ -999,9 +1033,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
999
1033
|
|
|
1000
1034
|
const [_s0] = $t(__scope, 's0')
|
|
1001
1035
|
|
|
1036
|
+
let __anchor_s0 = _s0
|
|
1002
1037
|
createEffect(() => {
|
|
1003
1038
|
const __val = String(_p.item)
|
|
1004
|
-
|
|
1039
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
1005
1040
|
})
|
|
1006
1041
|
|
|
1007
1042
|
}
|
|
@@ -1037,7 +1072,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
1037
1072
|
`;
|
|
1038
1073
|
|
|
1039
1074
|
exports[`docs/core/rendering/client-directive.md doc-examples L62 — Unsupported array methods 1`] = `
|
|
1040
|
-
"import { $t, createComponent, createEffect, createSignal, hydrate, updateClientMarker } from '@barefootjs/client/runtime'
|
|
1075
|
+
"import { $t, __bfText, createComponent, createEffect, createSignal, hydrate, updateClientMarker } from '@barefootjs/client/runtime'
|
|
1041
1076
|
|
|
1042
1077
|
export function initTodoItem(__scope, _p = {}) {
|
|
1043
1078
|
if (!__scope) return
|
|
@@ -1045,9 +1080,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
1045
1080
|
|
|
1046
1081
|
const [_s0] = $t(__scope, 's0')
|
|
1047
1082
|
|
|
1083
|
+
let __anchor_s0 = _s0
|
|
1048
1084
|
createEffect(() => {
|
|
1049
1085
|
const __val = String(_p.todo)
|
|
1050
|
-
|
|
1086
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
1051
1087
|
})
|
|
1052
1088
|
|
|
1053
1089
|
}
|
|
@@ -1060,9 +1096,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
1060
1096
|
|
|
1061
1097
|
const [_s0] = $t(__scope, 's0')
|
|
1062
1098
|
|
|
1099
|
+
let __anchor_s0 = _s0
|
|
1063
1100
|
createEffect(() => {
|
|
1064
1101
|
const __val = String(_p.item)
|
|
1065
|
-
|
|
1102
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
1066
1103
|
})
|
|
1067
1104
|
|
|
1068
1105
|
}
|
|
@@ -1098,7 +1135,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
1098
1135
|
`;
|
|
1099
1136
|
|
|
1100
1137
|
exports[`docs/core/rendering/client-directive.md doc-examples L74 — (no label) 1`] = `
|
|
1101
|
-
"import { $t, createComponent, createEffect, createSignal, hydrate, updateClientMarker } from '@barefootjs/client/runtime'
|
|
1138
|
+
"import { $t, __bfText, createComponent, createEffect, createSignal, hydrate, updateClientMarker } from '@barefootjs/client/runtime'
|
|
1102
1139
|
|
|
1103
1140
|
export function initTodoItem(__scope, _p = {}) {
|
|
1104
1141
|
if (!__scope) return
|
|
@@ -1106,9 +1143,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
1106
1143
|
|
|
1107
1144
|
const [_s0] = $t(__scope, 's0')
|
|
1108
1145
|
|
|
1146
|
+
let __anchor_s0 = _s0
|
|
1109
1147
|
createEffect(() => {
|
|
1110
1148
|
const __val = String(_p.todo)
|
|
1111
|
-
|
|
1149
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
1112
1150
|
})
|
|
1113
1151
|
|
|
1114
1152
|
}
|
|
@@ -1121,9 +1159,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
1121
1159
|
|
|
1122
1160
|
const [_s0] = $t(__scope, 's0')
|
|
1123
1161
|
|
|
1162
|
+
let __anchor_s0 = _s0
|
|
1124
1163
|
createEffect(() => {
|
|
1125
1164
|
const __val = String(_p.item)
|
|
1126
|
-
|
|
1165
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
1127
1166
|
})
|
|
1128
1167
|
|
|
1129
1168
|
}
|
|
@@ -1159,7 +1198,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
1159
1198
|
`;
|
|
1160
1199
|
|
|
1161
1200
|
exports[`docs/core/rendering/fragment.md doc-examples L11 — (no label) 1`] = `
|
|
1162
|
-
"import { $t, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
1201
|
+
"import { $t, __bfText, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
1163
1202
|
|
|
1164
1203
|
export function initTodoItem(__scope, _p = {}) {
|
|
1165
1204
|
if (!__scope) return
|
|
@@ -1167,9 +1206,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
1167
1206
|
|
|
1168
1207
|
const [_s0] = $t(__scope, 's0')
|
|
1169
1208
|
|
|
1209
|
+
let __anchor_s0 = _s0
|
|
1170
1210
|
createEffect(() => {
|
|
1171
1211
|
const __val = String(_p.todo)
|
|
1172
|
-
|
|
1212
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
1173
1213
|
})
|
|
1174
1214
|
|
|
1175
1215
|
}
|
|
@@ -1182,9 +1222,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
1182
1222
|
|
|
1183
1223
|
const [_s0] = $t(__scope, 's0')
|
|
1184
1224
|
|
|
1225
|
+
let __anchor_s0 = _s0
|
|
1185
1226
|
createEffect(() => {
|
|
1186
1227
|
const __val = String(_p.item)
|
|
1187
|
-
|
|
1228
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
1188
1229
|
})
|
|
1189
1230
|
|
|
1190
1231
|
}
|
|
@@ -1215,7 +1256,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
1215
1256
|
`;
|
|
1216
1257
|
|
|
1217
1258
|
exports[`docs/core/rendering/fragment.md doc-examples L23 — (no label) 1`] = `
|
|
1218
|
-
"import { $t, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
1259
|
+
"import { $t, __bfText, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
1219
1260
|
|
|
1220
1261
|
export function initTodoItem(__scope, _p = {}) {
|
|
1221
1262
|
if (!__scope) return
|
|
@@ -1223,9 +1264,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
1223
1264
|
|
|
1224
1265
|
const [_s0] = $t(__scope, 's0')
|
|
1225
1266
|
|
|
1267
|
+
let __anchor_s0 = _s0
|
|
1226
1268
|
createEffect(() => {
|
|
1227
1269
|
const __val = String(_p.todo)
|
|
1228
|
-
|
|
1270
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
1229
1271
|
})
|
|
1230
1272
|
|
|
1231
1273
|
}
|
|
@@ -1238,9 +1280,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
1238
1280
|
|
|
1239
1281
|
const [_s0] = $t(__scope, 's0')
|
|
1240
1282
|
|
|
1283
|
+
let __anchor_s0 = _s0
|
|
1241
1284
|
createEffect(() => {
|
|
1242
1285
|
const __val = String(_p.item)
|
|
1243
|
-
|
|
1286
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
1244
1287
|
})
|
|
1245
1288
|
|
|
1246
1289
|
}
|
|
@@ -1428,7 +1471,7 @@ export function StatementExample(_p, __bfKey) { return createComponent('Statemen
|
|
|
1428
1471
|
`;
|
|
1429
1472
|
|
|
1430
1473
|
exports[`docs/core/reactivity/create-signal.md doc-examples L95 — (no label) 1`] = `
|
|
1431
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
1474
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
1432
1475
|
|
|
1433
1476
|
|
|
1434
1477
|
export function initCounter(__scope, _p = {}) {
|
|
@@ -1440,9 +1483,10 @@ export function initCounter(__scope, _p = {}) {
|
|
|
1440
1483
|
const [_s2] = $(__scope, 's2')
|
|
1441
1484
|
const [_s0] = $t(__scope, 's0')
|
|
1442
1485
|
|
|
1486
|
+
let __anchor_s0 = _s0
|
|
1443
1487
|
createEffect(() => {
|
|
1444
1488
|
const __val = count()
|
|
1445
|
-
|
|
1489
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
1446
1490
|
})
|
|
1447
1491
|
|
|
1448
1492
|
if (_s2) _s2.addEventListener('click', () => { setCount(n => n + 1) })
|
|
@@ -1616,7 +1660,7 @@ export function StatementExample(_p, __bfKey) { return createComponent('Statemen
|
|
|
1616
1660
|
`;
|
|
1617
1661
|
|
|
1618
1662
|
exports[`docs/core/reactivity/create-effect.md doc-examples L115 — (no label) 1`] = `
|
|
1619
|
-
"import { $t, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
1663
|
+
"import { $t, __bfText, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
1620
1664
|
|
|
1621
1665
|
export function initTodoItem(__scope, _p = {}) {
|
|
1622
1666
|
if (!__scope) return
|
|
@@ -1624,9 +1668,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
1624
1668
|
|
|
1625
1669
|
const [_s0] = $t(__scope, 's0')
|
|
1626
1670
|
|
|
1671
|
+
let __anchor_s0 = _s0
|
|
1627
1672
|
createEffect(() => {
|
|
1628
1673
|
const __val = String(_p.todo)
|
|
1629
|
-
|
|
1674
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
1630
1675
|
})
|
|
1631
1676
|
|
|
1632
1677
|
}
|
|
@@ -1639,9 +1684,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
1639
1684
|
|
|
1640
1685
|
const [_s0] = $t(__scope, 's0')
|
|
1641
1686
|
|
|
1687
|
+
let __anchor_s0 = _s0
|
|
1642
1688
|
createEffect(() => {
|
|
1643
1689
|
const __val = String(_p.item)
|
|
1644
|
-
|
|
1690
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
1645
1691
|
})
|
|
1646
1692
|
|
|
1647
1693
|
}
|
|
@@ -1748,7 +1794,7 @@ export function StatementExample(_p, __bfKey) { return createComponent('Statemen
|
|
|
1748
1794
|
`;
|
|
1749
1795
|
|
|
1750
1796
|
exports[`docs/core/reactivity/create-memo.md doc-examples L60 — No memo needed 1`] = `
|
|
1751
|
-
"import { $t, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
1797
|
+
"import { $t, __bfText, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
1752
1798
|
|
|
1753
1799
|
export function initTodoItem(__scope, _p = {}) {
|
|
1754
1800
|
if (!__scope) return
|
|
@@ -1756,9 +1802,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
1756
1802
|
|
|
1757
1803
|
const [_s0] = $t(__scope, 's0')
|
|
1758
1804
|
|
|
1805
|
+
let __anchor_s0 = _s0
|
|
1759
1806
|
createEffect(() => {
|
|
1760
1807
|
const __val = String(_p.todo)
|
|
1761
|
-
|
|
1808
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
1762
1809
|
})
|
|
1763
1810
|
|
|
1764
1811
|
}
|
|
@@ -1771,9 +1818,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
1771
1818
|
|
|
1772
1819
|
const [_s0] = $t(__scope, 's0')
|
|
1773
1820
|
|
|
1821
|
+
let __anchor_s0 = _s0
|
|
1774
1822
|
createEffect(() => {
|
|
1775
1823
|
const __val = String(_p.item)
|
|
1776
|
-
|
|
1824
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
1777
1825
|
})
|
|
1778
1826
|
|
|
1779
1827
|
}
|
|
@@ -1799,9 +1847,10 @@ export function initExample(__scope, _p = {}) {
|
|
|
1799
1847
|
|
|
1800
1848
|
const [_s0] = $t(__scope, 's0')
|
|
1801
1849
|
|
|
1850
|
+
let __anchor_s0 = _s0
|
|
1802
1851
|
createEffect(() => {
|
|
1803
1852
|
const __val = count() * 2
|
|
1804
|
-
|
|
1853
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
1805
1854
|
})
|
|
1806
1855
|
|
|
1807
1856
|
}
|
|
@@ -2052,7 +2101,7 @@ export function StatementExample(_p, __bfKey) { return createComponent('Statemen
|
|
|
2052
2101
|
`;
|
|
2053
2102
|
|
|
2054
2103
|
exports[`docs/core/reactivity/props-reactivity.md doc-examples L82 — Parent 1`] = `
|
|
2055
|
-
"import { $c, $t, createComponent, createEffect, createSignal, hydrate, initChild, renderChild } from '@barefootjs/client/runtime'
|
|
2104
|
+
"import { $c, $t, __bfText, createComponent, createEffect, createSignal, hydrate, initChild, renderChild } from '@barefootjs/client/runtime'
|
|
2056
2105
|
import '/* @bf-child:Child */'
|
|
2057
2106
|
|
|
2058
2107
|
export function initTodoItem(__scope, _p = {}) {
|
|
@@ -2061,9 +2110,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
2061
2110
|
|
|
2062
2111
|
const [_s0] = $t(__scope, 's0')
|
|
2063
2112
|
|
|
2113
|
+
let __anchor_s0 = _s0
|
|
2064
2114
|
createEffect(() => {
|
|
2065
2115
|
const __val = String(_p.todo)
|
|
2066
|
-
|
|
2116
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
2067
2117
|
})
|
|
2068
2118
|
|
|
2069
2119
|
}
|
|
@@ -2076,9 +2126,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
2076
2126
|
|
|
2077
2127
|
const [_s0] = $t(__scope, 's0')
|
|
2078
2128
|
|
|
2129
|
+
let __anchor_s0 = _s0
|
|
2079
2130
|
createEffect(() => {
|
|
2080
2131
|
const __val = String(_p.item)
|
|
2081
|
-
|
|
2132
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
2082
2133
|
})
|
|
2083
2134
|
|
|
2084
2135
|
}
|
|
@@ -2131,7 +2182,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
2131
2182
|
`;
|
|
2132
2183
|
|
|
2133
2184
|
exports[`docs/core/reactivity/props-reactivity.md doc-examples L85 — Compiled props object 1`] = `
|
|
2134
|
-
"import { $t, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
2185
|
+
"import { $t, __bfText, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
2135
2186
|
|
|
2136
2187
|
export function initTodoItem(__scope, _p = {}) {
|
|
2137
2188
|
if (!__scope) return
|
|
@@ -2139,9 +2190,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
2139
2190
|
|
|
2140
2191
|
const [_s0] = $t(__scope, 's0')
|
|
2141
2192
|
|
|
2193
|
+
let __anchor_s0 = _s0
|
|
2142
2194
|
createEffect(() => {
|
|
2143
2195
|
const __val = String(_p.todo)
|
|
2144
|
-
|
|
2196
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
2145
2197
|
})
|
|
2146
2198
|
|
|
2147
2199
|
}
|
|
@@ -2154,9 +2206,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
2154
2206
|
|
|
2155
2207
|
const [_s0] = $t(__scope, 's0')
|
|
2156
2208
|
|
|
2209
|
+
let __anchor_s0 = _s0
|
|
2157
2210
|
createEffect(() => {
|
|
2158
2211
|
const __val = String(_p.item)
|
|
2159
|
-
|
|
2212
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
2160
2213
|
})
|
|
2161
2214
|
|
|
2162
2215
|
}
|
|
@@ -2187,7 +2240,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
2187
2240
|
`;
|
|
2188
2241
|
|
|
2189
2242
|
exports[`docs/core/components/component-authoring.mdx doc-examples L16 — (no label) 1`] = `
|
|
2190
|
-
"import { $t, createComponent, createEffect, hydrate } from '@barefootjs/client/runtime'
|
|
2243
|
+
"import { $t, __bfText, createComponent, createEffect, hydrate } from '@barefootjs/client/runtime'
|
|
2191
2244
|
|
|
2192
2245
|
|
|
2193
2246
|
export function initGreeting(__scope, _p = {}) {
|
|
@@ -2198,9 +2251,10 @@ export function initGreeting(__scope, _p = {}) {
|
|
|
2198
2251
|
|
|
2199
2252
|
const [_s0] = $t(__scope, 's0')
|
|
2200
2253
|
|
|
2254
|
+
let __anchor_s0 = _s0
|
|
2201
2255
|
createEffect(() => {
|
|
2202
2256
|
const __val = name
|
|
2203
|
-
|
|
2257
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
2204
2258
|
})
|
|
2205
2259
|
|
|
2206
2260
|
}
|
|
@@ -2210,7 +2264,7 @@ export function Greeting(_p, __bfKey) { return createComponent('Greeting', _p, _
|
|
|
2210
2264
|
`;
|
|
2211
2265
|
|
|
2212
2266
|
exports[`docs/core/components/component-authoring.mdx doc-examples L29 — (no label) 1`] = `
|
|
2213
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
2267
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
2214
2268
|
|
|
2215
2269
|
|
|
2216
2270
|
export function initCounter(__scope, _p = {}) {
|
|
@@ -2222,9 +2276,10 @@ export function initCounter(__scope, _p = {}) {
|
|
|
2222
2276
|
const [_s1] = $(__scope, 's1')
|
|
2223
2277
|
const [_s0] = $t(__scope, 's0')
|
|
2224
2278
|
|
|
2279
|
+
let __anchor_s0 = _s0
|
|
2225
2280
|
createEffect(() => {
|
|
2226
2281
|
const __val = count()
|
|
2227
|
-
|
|
2282
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
2228
2283
|
})
|
|
2229
2284
|
|
|
2230
2285
|
if (_s1) _s1.addEventListener('click', () => { setCount(n => n + 1) })
|
|
@@ -2316,7 +2371,7 @@ export function StatementExample(_p, __bfKey) { return createComponent('Statemen
|
|
|
2316
2371
|
`;
|
|
2317
2372
|
|
|
2318
2373
|
exports[`docs/core/components/children-slots.md doc-examples L14 — (no label) 1`] = `
|
|
2319
|
-
"import { $c, $t, createComponent, createEffect, createSignal, hydrate, initChild, renderChild } from '@barefootjs/client/runtime'
|
|
2374
|
+
"import { $c, $t, __bfText, createComponent, createEffect, createSignal, hydrate, initChild, renderChild } from '@barefootjs/client/runtime'
|
|
2320
2375
|
import '/* @bf-child:Card */'
|
|
2321
2376
|
|
|
2322
2377
|
export function initTodoItem(__scope, _p = {}) {
|
|
@@ -2325,9 +2380,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
2325
2380
|
|
|
2326
2381
|
const [_s0] = $t(__scope, 's0')
|
|
2327
2382
|
|
|
2383
|
+
let __anchor_s0 = _s0
|
|
2328
2384
|
createEffect(() => {
|
|
2329
2385
|
const __val = String(_p.todo)
|
|
2330
|
-
|
|
2386
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
2331
2387
|
})
|
|
2332
2388
|
|
|
2333
2389
|
}
|
|
@@ -2340,9 +2396,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
2340
2396
|
|
|
2341
2397
|
const [_s0] = $t(__scope, 's0')
|
|
2342
2398
|
|
|
2399
|
+
let __anchor_s0 = _s0
|
|
2343
2400
|
createEffect(() => {
|
|
2344
2401
|
const __val = String(_p.item)
|
|
2345
|
-
|
|
2402
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
2346
2403
|
})
|
|
2347
2404
|
|
|
2348
2405
|
}
|
|
@@ -2396,7 +2453,7 @@ export function StatementExample(_p, __bfKey) { return createComponent('Statemen
|
|
|
2396
2453
|
`;
|
|
2397
2454
|
|
|
2398
2455
|
exports[`docs/core/components/children-slots.md doc-examples L68 — Input 1`] = `
|
|
2399
|
-
"import { $c, $t, createComponent, createEffect, createSignal, hydrate, initChild, renderChild } from '@barefootjs/client/runtime'
|
|
2456
|
+
"import { $c, $t, __bfText, createComponent, createEffect, createSignal, hydrate, initChild, renderChild } from '@barefootjs/client/runtime'
|
|
2400
2457
|
import '/* @bf-child:Slot */'
|
|
2401
2458
|
|
|
2402
2459
|
export function initTodoItem(__scope, _p = {}) {
|
|
@@ -2405,9 +2462,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
2405
2462
|
|
|
2406
2463
|
const [_s0] = $t(__scope, 's0')
|
|
2407
2464
|
|
|
2465
|
+
let __anchor_s0 = _s0
|
|
2408
2466
|
createEffect(() => {
|
|
2409
2467
|
const __val = String(_p.todo)
|
|
2410
|
-
|
|
2468
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
2411
2469
|
})
|
|
2412
2470
|
|
|
2413
2471
|
}
|
|
@@ -2420,9 +2478,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
2420
2478
|
|
|
2421
2479
|
const [_s0] = $t(__scope, 's0')
|
|
2422
2480
|
|
|
2481
|
+
let __anchor_s0 = _s0
|
|
2423
2482
|
createEffect(() => {
|
|
2424
2483
|
const __val = String(_p.item)
|
|
2425
|
-
|
|
2484
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
2426
2485
|
})
|
|
2427
2486
|
|
|
2428
2487
|
}
|
|
@@ -2458,7 +2517,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
2458
2517
|
`;
|
|
2459
2518
|
|
|
2460
2519
|
exports[`docs/core/components/children-slots.md doc-examples L73 — Output 1`] = `
|
|
2461
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
2520
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
2462
2521
|
|
|
2463
2522
|
export function initTodoItem(__scope, _p = {}) {
|
|
2464
2523
|
if (!__scope) return
|
|
@@ -2466,9 +2525,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
2466
2525
|
|
|
2467
2526
|
const [_s0] = $t(__scope, 's0')
|
|
2468
2527
|
|
|
2528
|
+
let __anchor_s0 = _s0
|
|
2469
2529
|
createEffect(() => {
|
|
2470
2530
|
const __val = String(_p.todo)
|
|
2471
|
-
|
|
2531
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
2472
2532
|
})
|
|
2473
2533
|
|
|
2474
2534
|
}
|
|
@@ -2481,9 +2541,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
2481
2541
|
|
|
2482
2542
|
const [_s0] = $t(__scope, 's0')
|
|
2483
2543
|
|
|
2544
|
+
let __anchor_s0 = _s0
|
|
2484
2545
|
createEffect(() => {
|
|
2485
2546
|
const __val = String(_p.item)
|
|
2486
|
-
|
|
2547
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
2487
2548
|
})
|
|
2488
2549
|
|
|
2489
2550
|
}
|
|
@@ -2517,7 +2578,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
2517
2578
|
`;
|
|
2518
2579
|
|
|
2519
2580
|
exports[`docs/core/components/children-slots.md doc-examples L86 — (no label) 1`] = `
|
|
2520
|
-
"import { $c, $t, createComponent, createEffect, createSignal, hydrate, initChild, renderChild } from '@barefootjs/client/runtime'
|
|
2581
|
+
"import { $c, $t, __bfText, createComponent, createEffect, createSignal, hydrate, initChild, renderChild } from '@barefootjs/client/runtime'
|
|
2521
2582
|
import '/* @bf-child:Button */'
|
|
2522
2583
|
|
|
2523
2584
|
export function initTodoItem(__scope, _p = {}) {
|
|
@@ -2526,9 +2587,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
2526
2587
|
|
|
2527
2588
|
const [_s0] = $t(__scope, 's0')
|
|
2528
2589
|
|
|
2590
|
+
let __anchor_s0 = _s0
|
|
2529
2591
|
createEffect(() => {
|
|
2530
2592
|
const __val = String(_p.todo)
|
|
2531
|
-
|
|
2593
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
2532
2594
|
})
|
|
2533
2595
|
|
|
2534
2596
|
}
|
|
@@ -2541,9 +2603,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
2541
2603
|
|
|
2542
2604
|
const [_s0] = $t(__scope, 's0')
|
|
2543
2605
|
|
|
2606
|
+
let __anchor_s0 = _s0
|
|
2544
2607
|
createEffect(() => {
|
|
2545
2608
|
const __val = String(_p.item)
|
|
2546
|
-
|
|
2609
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
2547
2610
|
})
|
|
2548
2611
|
|
|
2549
2612
|
}
|
|
@@ -2579,7 +2642,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
2579
2642
|
`;
|
|
2580
2643
|
|
|
2581
2644
|
exports[`docs/core/components/children-slots.md doc-examples L93 — (no label) 1`] = `
|
|
2582
|
-
"import { $c, $t, createComponent, createEffect, createSignal, hydrate, initChild, renderChild } from '@barefootjs/client/runtime'
|
|
2645
|
+
"import { $c, $t, __bfText, createComponent, createEffect, createSignal, hydrate, initChild, renderChild } from '@barefootjs/client/runtime'
|
|
2583
2646
|
import '/* @bf-child:Button */'
|
|
2584
2647
|
|
|
2585
2648
|
export function initTodoItem(__scope, _p = {}) {
|
|
@@ -2588,9 +2651,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
2588
2651
|
|
|
2589
2652
|
const [_s0] = $t(__scope, 's0')
|
|
2590
2653
|
|
|
2654
|
+
let __anchor_s0 = _s0
|
|
2591
2655
|
createEffect(() => {
|
|
2592
2656
|
const __val = String(_p.todo)
|
|
2593
|
-
|
|
2657
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
2594
2658
|
})
|
|
2595
2659
|
|
|
2596
2660
|
}
|
|
@@ -2603,9 +2667,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
2603
2667
|
|
|
2604
2668
|
const [_s0] = $t(__scope, 's0')
|
|
2605
2669
|
|
|
2670
|
+
let __anchor_s0 = _s0
|
|
2606
2671
|
createEffect(() => {
|
|
2607
2672
|
const __val = String(_p.item)
|
|
2608
|
-
|
|
2673
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
2609
2674
|
})
|
|
2610
2675
|
|
|
2611
2676
|
}
|
|
@@ -2641,7 +2706,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
2641
2706
|
`;
|
|
2642
2707
|
|
|
2643
2708
|
exports[`docs/core/components/children-slots.md doc-examples L109 — Dialog trigger as a custom element 1`] = `
|
|
2644
|
-
"import { $c, $t, createComponent, createEffect, createSignal, hydrate, initChild, renderChild } from '@barefootjs/client/runtime'
|
|
2709
|
+
"import { $c, $t, __bfText, createComponent, createEffect, createSignal, hydrate, initChild, renderChild } from '@barefootjs/client/runtime'
|
|
2645
2710
|
import '/* @bf-child:DialogTrigger */'
|
|
2646
2711
|
|
|
2647
2712
|
export function initTodoItem(__scope, _p = {}) {
|
|
@@ -2650,9 +2715,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
2650
2715
|
|
|
2651
2716
|
const [_s0] = $t(__scope, 's0')
|
|
2652
2717
|
|
|
2718
|
+
let __anchor_s0 = _s0
|
|
2653
2719
|
createEffect(() => {
|
|
2654
2720
|
const __val = String(_p.todo)
|
|
2655
|
-
|
|
2721
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
2656
2722
|
})
|
|
2657
2723
|
|
|
2658
2724
|
}
|
|
@@ -2665,9 +2731,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
2665
2731
|
|
|
2666
2732
|
const [_s0] = $t(__scope, 's0')
|
|
2667
2733
|
|
|
2734
|
+
let __anchor_s0 = _s0
|
|
2668
2735
|
createEffect(() => {
|
|
2669
2736
|
const __val = String(_p.item)
|
|
2670
|
-
|
|
2737
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
2671
2738
|
})
|
|
2672
2739
|
|
|
2673
2740
|
}
|
|
@@ -2703,7 +2770,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
2703
2770
|
`;
|
|
2704
2771
|
|
|
2705
2772
|
exports[`docs/core/components/children-slots.md doc-examples L118 — (no label) 1`] = `
|
|
2706
|
-
"import { $c, $t, createComponent, createEffect, createSignal, hydrate, initChild, renderChild } from '@barefootjs/client/runtime'
|
|
2773
|
+
"import { $c, $t, __bfText, createComponent, createEffect, createSignal, hydrate, initChild, renderChild } from '@barefootjs/client/runtime'
|
|
2707
2774
|
import '/* @bf-child:Dialog */'
|
|
2708
2775
|
import '/* @bf-child:DialogTrigger */'
|
|
2709
2776
|
import '/* @bf-child:DialogOverlay */'
|
|
@@ -2721,9 +2788,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
2721
2788
|
|
|
2722
2789
|
const [_s0] = $t(__scope, 's0')
|
|
2723
2790
|
|
|
2791
|
+
let __anchor_s0 = _s0
|
|
2724
2792
|
createEffect(() => {
|
|
2725
2793
|
const __val = String(_p.todo)
|
|
2726
|
-
|
|
2794
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
2727
2795
|
})
|
|
2728
2796
|
|
|
2729
2797
|
}
|
|
@@ -2736,9 +2804,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
2736
2804
|
|
|
2737
2805
|
const [_s0] = $t(__scope, 's0')
|
|
2738
2806
|
|
|
2807
|
+
let __anchor_s0 = _s0
|
|
2739
2808
|
createEffect(() => {
|
|
2740
2809
|
const __val = String(_p.item)
|
|
2741
|
-
|
|
2810
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
2742
2811
|
})
|
|
2743
2812
|
|
|
2744
2813
|
}
|
|
@@ -2791,7 +2860,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
2791
2860
|
`;
|
|
2792
2861
|
|
|
2793
2862
|
exports[`docs/core/components/children-slots.md doc-examples L140 — (no label) 1`] = `
|
|
2794
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate, initChild, mapArray, renderChild } from '@barefootjs/client/runtime'
|
|
2863
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate, initChild, mapArray, renderChild } from '@barefootjs/client/runtime'
|
|
2795
2864
|
|
|
2796
2865
|
export function initTodoItem(__scope, _p = {}) {
|
|
2797
2866
|
if (!__scope) return
|
|
@@ -2799,9 +2868,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
2799
2868
|
|
|
2800
2869
|
const [_s0] = $t(__scope, 's0')
|
|
2801
2870
|
|
|
2871
|
+
let __anchor_s0 = _s0
|
|
2802
2872
|
createEffect(() => {
|
|
2803
2873
|
const __val = String(_p.todo)
|
|
2804
|
-
|
|
2874
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
2805
2875
|
})
|
|
2806
2876
|
|
|
2807
2877
|
}
|
|
@@ -2814,9 +2884,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
2814
2884
|
|
|
2815
2885
|
const [_s0] = $t(__scope, 's0')
|
|
2816
2886
|
|
|
2887
|
+
let __anchor_s0 = _s0
|
|
2817
2888
|
createEffect(() => {
|
|
2818
2889
|
const __val = String(_p.item)
|
|
2819
|
-
|
|
2890
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
2820
2891
|
})
|
|
2821
2892
|
|
|
2822
2893
|
}
|
|
@@ -2863,7 +2934,7 @@ export function StatementExample(_p, __bfKey) { return createComponent('Statemen
|
|
|
2863
2934
|
`;
|
|
2864
2935
|
|
|
2865
2936
|
exports[`docs/core/components/context-api.md doc-examples L40 — (no label) 1`] = `
|
|
2866
|
-
"import { $t, createComponent, createEffect, createSignal, hydrate, provideContext } from '@barefootjs/client/runtime'
|
|
2937
|
+
"import { $t, __bfText, createComponent, createEffect, createSignal, hydrate, provideContext } from '@barefootjs/client/runtime'
|
|
2867
2938
|
|
|
2868
2939
|
export function initTodoItem(__scope, _p = {}) {
|
|
2869
2940
|
if (!__scope) return
|
|
@@ -2871,9 +2942,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
2871
2942
|
|
|
2872
2943
|
const [_s0] = $t(__scope, 's0')
|
|
2873
2944
|
|
|
2945
|
+
let __anchor_s0 = _s0
|
|
2874
2946
|
createEffect(() => {
|
|
2875
2947
|
const __val = String(_p.todo)
|
|
2876
|
-
|
|
2948
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
2877
2949
|
})
|
|
2878
2950
|
|
|
2879
2951
|
}
|
|
@@ -2886,9 +2958,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
2886
2958
|
|
|
2887
2959
|
const [_s0] = $t(__scope, 's0')
|
|
2888
2960
|
|
|
2961
|
+
let __anchor_s0 = _s0
|
|
2889
2962
|
createEffect(() => {
|
|
2890
2963
|
const __val = String(_p.item)
|
|
2891
|
-
|
|
2964
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
2892
2965
|
})
|
|
2893
2966
|
|
|
2894
2967
|
}
|
|
@@ -2974,7 +3047,7 @@ export function StatementExample(_p, __bfKey) { return createComponent('Statemen
|
|
|
2974
3047
|
`;
|
|
2975
3048
|
|
|
2976
3049
|
exports[`docs/core/components/context-api.md doc-examples L94 — Usage 1`] = `
|
|
2977
|
-
"import { $c, $t, createComponent, createEffect, createSignal, hydrate, initChild, renderChild } from '@barefootjs/client/runtime'
|
|
3050
|
+
"import { $c, $t, __bfText, createComponent, createEffect, createSignal, hydrate, initChild, renderChild } from '@barefootjs/client/runtime'
|
|
2978
3051
|
import '/* @bf-child:ThemeProvider */'
|
|
2979
3052
|
import '/* @bf-child:ThemedButton */'
|
|
2980
3053
|
|
|
@@ -2984,9 +3057,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
2984
3057
|
|
|
2985
3058
|
const [_s0] = $t(__scope, 's0')
|
|
2986
3059
|
|
|
3060
|
+
let __anchor_s0 = _s0
|
|
2987
3061
|
createEffect(() => {
|
|
2988
3062
|
const __val = String(_p.todo)
|
|
2989
|
-
|
|
3063
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
2990
3064
|
})
|
|
2991
3065
|
|
|
2992
3066
|
}
|
|
@@ -2999,9 +3073,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
2999
3073
|
|
|
3000
3074
|
const [_s0] = $t(__scope, 's0')
|
|
3001
3075
|
|
|
3076
|
+
let __anchor_s0 = _s0
|
|
3002
3077
|
createEffect(() => {
|
|
3003
3078
|
const __val = String(_p.item)
|
|
3004
|
-
|
|
3079
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
3005
3080
|
})
|
|
3006
3081
|
|
|
3007
3082
|
}
|
|
@@ -3125,7 +3200,7 @@ export function StatementExample(_p, __bfKey) { return createComponent('Statemen
|
|
|
3125
3200
|
`;
|
|
3126
3201
|
|
|
3127
3202
|
exports[`docs/core/components/context-api.md doc-examples L170 — (no label) 1`] = `
|
|
3128
|
-
"import { $c, $t, createComponent, createEffect, createSignal, hydrate, initChild, renderChild } from '@barefootjs/client/runtime'
|
|
3203
|
+
"import { $c, $t, __bfText, createComponent, createEffect, createSignal, hydrate, initChild, renderChild } from '@barefootjs/client/runtime'
|
|
3129
3204
|
import '/* @bf-child:Accordion */'
|
|
3130
3205
|
import '/* @bf-child:AccordionTrigger */'
|
|
3131
3206
|
import '/* @bf-child:AccordionContent */'
|
|
@@ -3136,9 +3211,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
3136
3211
|
|
|
3137
3212
|
const [_s0] = $t(__scope, 's0')
|
|
3138
3213
|
|
|
3214
|
+
let __anchor_s0 = _s0
|
|
3139
3215
|
createEffect(() => {
|
|
3140
3216
|
const __val = String(_p.todo)
|
|
3141
|
-
|
|
3217
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
3142
3218
|
})
|
|
3143
3219
|
|
|
3144
3220
|
}
|
|
@@ -3151,9 +3227,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
3151
3227
|
|
|
3152
3228
|
const [_s0] = $t(__scope, 's0')
|
|
3153
3229
|
|
|
3230
|
+
let __anchor_s0 = _s0
|
|
3154
3231
|
createEffect(() => {
|
|
3155
3232
|
const __val = String(_p.item)
|
|
3156
|
-
|
|
3233
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
3157
3234
|
})
|
|
3158
3235
|
|
|
3159
3236
|
}
|
|
@@ -3193,7 +3270,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
3193
3270
|
`;
|
|
3194
3271
|
|
|
3195
3272
|
exports[`docs/core/components/context-api.md doc-examples L190 — Provider passes signal getter 1`] = `
|
|
3196
|
-
"import { $t, createComponent, createEffect, createSignal, hydrate, provideContext } from '@barefootjs/client/runtime'
|
|
3273
|
+
"import { $t, __bfText, createComponent, createEffect, createSignal, hydrate, provideContext } from '@barefootjs/client/runtime'
|
|
3197
3274
|
|
|
3198
3275
|
export function initTodoItem(__scope, _p = {}) {
|
|
3199
3276
|
if (!__scope) return
|
|
@@ -3201,9 +3278,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
3201
3278
|
|
|
3202
3279
|
const [_s0] = $t(__scope, 's0')
|
|
3203
3280
|
|
|
3281
|
+
let __anchor_s0 = _s0
|
|
3204
3282
|
createEffect(() => {
|
|
3205
3283
|
const __val = String(_p.todo)
|
|
3206
|
-
|
|
3284
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
3207
3285
|
})
|
|
3208
3286
|
|
|
3209
3287
|
}
|
|
@@ -3216,9 +3294,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
3216
3294
|
|
|
3217
3295
|
const [_s0] = $t(__scope, 's0')
|
|
3218
3296
|
|
|
3297
|
+
let __anchor_s0 = _s0
|
|
3219
3298
|
createEffect(() => {
|
|
3220
3299
|
const __val = String(_p.item)
|
|
3221
|
-
|
|
3300
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
3222
3301
|
})
|
|
3223
3302
|
|
|
3224
3303
|
}
|
|
@@ -3308,7 +3387,7 @@ export function StatementExample(_p, __bfKey) { return createComponent('Statemen
|
|
|
3308
3387
|
`;
|
|
3309
3388
|
|
|
3310
3389
|
exports[`docs/core/components/portals.md doc-examples L53 — (no label) 1`] = `
|
|
3311
|
-
"import { $, $t, createComponent, createEffect, createPortal, createSignal, hydrate, isSSRPortal } from '@barefootjs/client/runtime'
|
|
3390
|
+
"import { $, $t, __bfText, createComponent, createEffect, createPortal, createSignal, hydrate, isSSRPortal } from '@barefootjs/client/runtime'
|
|
3312
3391
|
|
|
3313
3392
|
|
|
3314
3393
|
export function initTooltip(__scope, _p = {}) {
|
|
@@ -3331,9 +3410,10 @@ export function initTooltip(__scope, _p = {}) {
|
|
|
3331
3410
|
const [_s0, _s2] = $(__scope, 's0', 's2')
|
|
3332
3411
|
const [_s1] = $t(__scope, 's1')
|
|
3333
3412
|
|
|
3413
|
+
let __anchor_s1 = _s1
|
|
3334
3414
|
createEffect(() => {
|
|
3335
3415
|
const __val = _p.text
|
|
3336
|
-
|
|
3416
|
+
__anchor_s1 = __bfText(__anchor_s1, __val)
|
|
3337
3417
|
})
|
|
3338
3418
|
|
|
3339
3419
|
if (_s0) _s0.addEventListener('mouseenter', () => { setVisible(true) })
|
|
@@ -3412,7 +3492,7 @@ export function StatementExample(_p, __bfKey) { return createComponent('Statemen
|
|
|
3412
3492
|
`;
|
|
3413
3493
|
|
|
3414
3494
|
exports[`docs/core/components/props-type-safety.md doc-examples L16 — (no label) 1`] = `
|
|
3415
|
-
"import { $t, createComponent, createEffect, hydrate } from '@barefootjs/client/runtime'
|
|
3495
|
+
"import { $t, __bfText, createComponent, createEffect, hydrate } from '@barefootjs/client/runtime'
|
|
3416
3496
|
|
|
3417
3497
|
|
|
3418
3498
|
export function initGreeting(__scope, _p = {}) {
|
|
@@ -3421,14 +3501,16 @@ export function initGreeting(__scope, _p = {}) {
|
|
|
3421
3501
|
|
|
3422
3502
|
const [_s0, _s1] = $t(__scope, 's0', 's1')
|
|
3423
3503
|
|
|
3504
|
+
let __anchor_s0 = _s0
|
|
3424
3505
|
createEffect(() => {
|
|
3425
3506
|
const __val = _p.greeting ?? 'Hello'
|
|
3426
|
-
|
|
3507
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
3427
3508
|
})
|
|
3428
3509
|
|
|
3510
|
+
let __anchor_s1 = _s1
|
|
3429
3511
|
createEffect(() => {
|
|
3430
3512
|
const __val = _p.name
|
|
3431
|
-
|
|
3513
|
+
__anchor_s1 = __bfText(__anchor_s1, __val)
|
|
3432
3514
|
})
|
|
3433
3515
|
|
|
3434
3516
|
}
|
|
@@ -3474,7 +3556,7 @@ export function StatementExample(_p, __bfKey) { return createComponent('Statemen
|
|
|
3474
3556
|
`;
|
|
3475
3557
|
|
|
3476
3558
|
exports[`docs/core/components/props-type-safety.md doc-examples L89 — (no label) 1`] = `
|
|
3477
|
-
"import { $c, $t, createComponent, createEffect, createSignal, hydrate, initChild, renderChild } from '@barefootjs/client/runtime'
|
|
3559
|
+
"import { $c, $t, __bfText, createComponent, createEffect, createSignal, hydrate, initChild, renderChild } from '@barefootjs/client/runtime'
|
|
3478
3560
|
import '/* @bf-child:Card */'
|
|
3479
3561
|
|
|
3480
3562
|
export function initTodoItem(__scope, _p = {}) {
|
|
@@ -3483,9 +3565,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
3483
3565
|
|
|
3484
3566
|
const [_s0] = $t(__scope, 's0')
|
|
3485
3567
|
|
|
3568
|
+
let __anchor_s0 = _s0
|
|
3486
3569
|
createEffect(() => {
|
|
3487
3570
|
const __val = String(_p.todo)
|
|
3488
|
-
|
|
3571
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
3489
3572
|
})
|
|
3490
3573
|
|
|
3491
3574
|
}
|
|
@@ -3498,9 +3581,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
3498
3581
|
|
|
3499
3582
|
const [_s0] = $t(__scope, 's0')
|
|
3500
3583
|
|
|
3584
|
+
let __anchor_s0 = _s0
|
|
3501
3585
|
createEffect(() => {
|
|
3502
3586
|
const __val = String(_p.item)
|
|
3503
|
-
|
|
3587
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
3504
3588
|
})
|
|
3505
3589
|
|
|
3506
3590
|
}
|
|
@@ -3554,7 +3638,7 @@ export function StatementExample(_p, __bfKey) { return createComponent('Statemen
|
|
|
3554
3638
|
`;
|
|
3555
3639
|
|
|
3556
3640
|
exports[`docs/core/core-concepts/how-it-works.mdx doc-examples L33 — (no label) 1`] = `
|
|
3557
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
3641
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
3558
3642
|
|
|
3559
3643
|
|
|
3560
3644
|
export function initCounter(__scope, _p = {}) {
|
|
@@ -3566,9 +3650,10 @@ export function initCounter(__scope, _p = {}) {
|
|
|
3566
3650
|
const [_s1] = $(__scope, 's1')
|
|
3567
3651
|
const [_s0] = $t(__scope, 's0')
|
|
3568
3652
|
|
|
3653
|
+
let __anchor_s0 = _s0
|
|
3569
3654
|
createEffect(() => {
|
|
3570
3655
|
const __val = count()
|
|
3571
|
-
|
|
3656
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
3572
3657
|
})
|
|
3573
3658
|
|
|
3574
3659
|
if (_s1) _s1.addEventListener('click', () => { setCount(n => n + 1) })
|
|
@@ -3601,7 +3686,7 @@ export function StatementExample(_p, __bfKey) { return createComponent('Statemen
|
|
|
3601
3686
|
`;
|
|
3602
3687
|
|
|
3603
3688
|
exports[`docs/core/core-concepts/mpa-style.md doc-examples L23 — (no label) 1`] = `
|
|
3604
|
-
"import { $, $c, $t, createComponent, createEffect, hydrate, initChild, renderChild } from '@barefootjs/client/runtime'
|
|
3689
|
+
"import { $, $c, $t, __bfText, createComponent, createEffect, hydrate, initChild, renderChild } from '@barefootjs/client/runtime'
|
|
3605
3690
|
import '/* @bf-child:ReviewStars */'
|
|
3606
3691
|
import '/* @bf-child:AddToCart */'
|
|
3607
3692
|
|
|
@@ -3616,14 +3701,16 @@ export function initProductPage(__scope, _p = {}) {
|
|
|
3616
3701
|
const [_s0, _s2] = $t(__scope, 's0', 's2')
|
|
3617
3702
|
const [_s5, _s6] = $c(__scope, 's5', 's6')
|
|
3618
3703
|
|
|
3704
|
+
let __anchor_s0 = _s0
|
|
3619
3705
|
createEffect(() => {
|
|
3620
3706
|
const __val = product.name
|
|
3621
|
-
|
|
3707
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
3622
3708
|
})
|
|
3623
3709
|
|
|
3710
|
+
let __anchor_s2 = _s2
|
|
3624
3711
|
createEffect(() => {
|
|
3625
3712
|
const __val = product.description
|
|
3626
|
-
|
|
3713
|
+
__anchor_s2 = __bfText(__anchor_s2, __val)
|
|
3627
3714
|
})
|
|
3628
3715
|
|
|
3629
3716
|
createEffect(() => {
|
|
@@ -3655,7 +3742,7 @@ export function ProductPage(_p, __bfKey) { return createComponent('ProductPage',
|
|
|
3655
3742
|
`;
|
|
3656
3743
|
|
|
3657
3744
|
exports[`docs/core/adapters/hono-adapter.md doc-examples L55 — (no label) 1`] = `
|
|
3658
|
-
"import { $t, createComponent, createEffect, hydrate } from '@barefootjs/client/runtime'
|
|
3745
|
+
"import { $t, __bfText, createComponent, createEffect, hydrate } from '@barefootjs/client/runtime'
|
|
3659
3746
|
|
|
3660
3747
|
|
|
3661
3748
|
export function initGreeting(__scope, _p = {}) {
|
|
@@ -3664,9 +3751,10 @@ export function initGreeting(__scope, _p = {}) {
|
|
|
3664
3751
|
|
|
3665
3752
|
const [_s0] = $t(__scope, 's0')
|
|
3666
3753
|
|
|
3754
|
+
let __anchor_s0 = _s0
|
|
3667
3755
|
createEffect(() => {
|
|
3668
3756
|
const __val = _p.name
|
|
3669
|
-
|
|
3757
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
3670
3758
|
})
|
|
3671
3759
|
|
|
3672
3760
|
}
|
|
@@ -3676,7 +3764,7 @@ export function Greeting(_p, __bfKey) { return createComponent('Greeting', _p, _
|
|
|
3676
3764
|
`;
|
|
3677
3765
|
|
|
3678
3766
|
exports[`docs/core/adapters/hono-adapter.md doc-examples L82 — (no label) 1`] = `
|
|
3679
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
3767
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
3680
3768
|
|
|
3681
3769
|
|
|
3682
3770
|
export function initCounter(__scope, _p = {}) {
|
|
@@ -3692,9 +3780,10 @@ export function initCounter(__scope, _p = {}) {
|
|
|
3692
3780
|
const [_s2] = $(__scope, 's2')
|
|
3693
3781
|
const [_s0] = $t(__scope, 's0')
|
|
3694
3782
|
|
|
3783
|
+
let __anchor_s0 = _s0
|
|
3695
3784
|
createEffect(() => {
|
|
3696
3785
|
const __val = count()
|
|
3697
|
-
|
|
3786
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
3698
3787
|
})
|
|
3699
3788
|
|
|
3700
3789
|
if (_s2) _s2.addEventListener('click', () => { setCount(n => n + 1) })
|
|
@@ -3727,7 +3816,7 @@ export function Layout(_p, __bfKey) { return createComponent('Layout', _p, __bfK
|
|
|
3727
3816
|
`;
|
|
3728
3817
|
|
|
3729
3818
|
exports[`docs/core/adapters/hono-adapter.md doc-examples L167 — (no label) 1`] = `
|
|
3730
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate, insert } from '@barefootjs/client/runtime'
|
|
3819
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate, insert } from '@barefootjs/client/runtime'
|
|
3731
3820
|
|
|
3732
3821
|
export function initTodoItem(__scope, _p = {}) {
|
|
3733
3822
|
if (!__scope) return
|
|
@@ -3735,9 +3824,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
3735
3824
|
|
|
3736
3825
|
const [_s0] = $t(__scope, 's0')
|
|
3737
3826
|
|
|
3827
|
+
let __anchor_s0 = _s0
|
|
3738
3828
|
createEffect(() => {
|
|
3739
3829
|
const __val = String(_p.todo)
|
|
3740
|
-
|
|
3830
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
3741
3831
|
})
|
|
3742
3832
|
|
|
3743
3833
|
}
|
|
@@ -3750,9 +3840,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
3750
3840
|
|
|
3751
3841
|
const [_s0] = $t(__scope, 's0')
|
|
3752
3842
|
|
|
3843
|
+
let __anchor_s0 = _s0
|
|
3753
3844
|
createEffect(() => {
|
|
3754
3845
|
const __val = String(_p.item)
|
|
3755
|
-
|
|
3846
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
3756
3847
|
})
|
|
3757
3848
|
|
|
3758
3849
|
}
|
|
@@ -3795,7 +3886,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
3795
3886
|
`;
|
|
3796
3887
|
|
|
3797
3888
|
exports[`docs/core/adapters/hono-adapter.md doc-examples L171 — (no label) 1`] = `
|
|
3798
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate, insert } from '@barefootjs/client/runtime'
|
|
3889
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate, insert } from '@barefootjs/client/runtime'
|
|
3799
3890
|
|
|
3800
3891
|
export function initTodoItem(__scope, _p = {}) {
|
|
3801
3892
|
if (!__scope) return
|
|
@@ -3803,9 +3894,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
3803
3894
|
|
|
3804
3895
|
const [_s0] = $t(__scope, 's0')
|
|
3805
3896
|
|
|
3897
|
+
let __anchor_s0 = _s0
|
|
3806
3898
|
createEffect(() => {
|
|
3807
3899
|
const __val = String(_p.todo)
|
|
3808
|
-
|
|
3900
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
3809
3901
|
})
|
|
3810
3902
|
|
|
3811
3903
|
}
|
|
@@ -3818,9 +3910,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
3818
3910
|
|
|
3819
3911
|
const [_s0] = $t(__scope, 's0')
|
|
3820
3912
|
|
|
3913
|
+
let __anchor_s0 = _s0
|
|
3821
3914
|
createEffect(() => {
|
|
3822
3915
|
const __val = String(_p.item)
|
|
3823
|
-
|
|
3916
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
3824
3917
|
})
|
|
3825
3918
|
|
|
3826
3919
|
}
|
|
@@ -3863,7 +3956,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
3863
3956
|
`;
|
|
3864
3957
|
|
|
3865
3958
|
exports[`docs/core/adapters/hono-adapter.md doc-examples L177 — (no label) 1`] = `
|
|
3866
|
-
"import { $, $t, __bfSlot, createComponent, createEffect, createSignal, hydrate, insert } from '@barefootjs/client/runtime'
|
|
3959
|
+
"import { $, $t, __bfSlot, __bfText, createComponent, createEffect, createSignal, hydrate, insert } from '@barefootjs/client/runtime'
|
|
3867
3960
|
|
|
3868
3961
|
export function initTodoItem(__scope, _p = {}) {
|
|
3869
3962
|
if (!__scope) return
|
|
@@ -3871,9 +3964,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
3871
3964
|
|
|
3872
3965
|
const [_s0] = $t(__scope, 's0')
|
|
3873
3966
|
|
|
3967
|
+
let __anchor_s0 = _s0
|
|
3874
3968
|
createEffect(() => {
|
|
3875
3969
|
const __val = String(_p.todo)
|
|
3876
|
-
|
|
3970
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
3877
3971
|
})
|
|
3878
3972
|
|
|
3879
3973
|
}
|
|
@@ -3886,9 +3980,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
3886
3980
|
|
|
3887
3981
|
const [_s0] = $t(__scope, 's0')
|
|
3888
3982
|
|
|
3983
|
+
let __anchor_s0 = _s0
|
|
3889
3984
|
createEffect(() => {
|
|
3890
3985
|
const __val = String(_p.item)
|
|
3891
|
-
|
|
3986
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
3892
3987
|
})
|
|
3893
3988
|
|
|
3894
3989
|
}
|
|
@@ -3931,7 +4026,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
3931
4026
|
`;
|
|
3932
4027
|
|
|
3933
4028
|
exports[`docs/core/adapters/hono-adapter.md doc-examples L190 — (no label) 1`] = `
|
|
3934
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate, mapArray } from '@barefootjs/client/runtime'
|
|
4029
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate, mapArray } from '@barefootjs/client/runtime'
|
|
3935
4030
|
|
|
3936
4031
|
export function initTodoItem(__scope, _p = {}) {
|
|
3937
4032
|
if (!__scope) return
|
|
@@ -3939,9 +4034,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
3939
4034
|
|
|
3940
4035
|
const [_s0] = $t(__scope, 's0')
|
|
3941
4036
|
|
|
4037
|
+
let __anchor_s0 = _s0
|
|
3942
4038
|
createEffect(() => {
|
|
3943
4039
|
const __val = String(_p.todo)
|
|
3944
|
-
|
|
4040
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
3945
4041
|
})
|
|
3946
4042
|
|
|
3947
4043
|
}
|
|
@@ -3954,9 +4050,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
3954
4050
|
|
|
3955
4051
|
const [_s0] = $t(__scope, 's0')
|
|
3956
4052
|
|
|
4053
|
+
let __anchor_s0 = _s0
|
|
3957
4054
|
createEffect(() => {
|
|
3958
4055
|
const __val = String(_p.item)
|
|
3959
|
-
|
|
4056
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
3960
4057
|
})
|
|
3961
4058
|
|
|
3962
4059
|
}
|
|
@@ -3996,7 +4093,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
3996
4093
|
`;
|
|
3997
4094
|
|
|
3998
4095
|
exports[`docs/core/adapters/go-template-adapter.md doc-examples L50 — (no label) 1`] = `
|
|
3999
|
-
"import { $t, createComponent, createEffect, hydrate } from '@barefootjs/client/runtime'
|
|
4096
|
+
"import { $t, __bfText, createComponent, createEffect, hydrate } from '@barefootjs/client/runtime'
|
|
4000
4097
|
|
|
4001
4098
|
|
|
4002
4099
|
export function initGreeting(__scope, _p = {}) {
|
|
@@ -4005,9 +4102,10 @@ export function initGreeting(__scope, _p = {}) {
|
|
|
4005
4102
|
|
|
4006
4103
|
const [_s0] = $t(__scope, 's0')
|
|
4007
4104
|
|
|
4105
|
+
let __anchor_s0 = _s0
|
|
4008
4106
|
createEffect(() => {
|
|
4009
4107
|
const __val = _p.name
|
|
4010
|
-
|
|
4108
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
4011
4109
|
})
|
|
4012
4110
|
|
|
4013
4111
|
}
|
|
@@ -4017,7 +4115,7 @@ export function Greeting(_p, __bfKey) { return createComponent('Greeting', _p, _
|
|
|
4017
4115
|
`;
|
|
4018
4116
|
|
|
4019
4117
|
exports[`docs/core/adapters/go-template-adapter.md doc-examples L74 — (no label) 1`] = `
|
|
4020
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
4118
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
4021
4119
|
|
|
4022
4120
|
|
|
4023
4121
|
export function initCounter(__scope, _p = {}) {
|
|
@@ -4033,9 +4131,10 @@ export function initCounter(__scope, _p = {}) {
|
|
|
4033
4131
|
const [_s2] = $(__scope, 's2')
|
|
4034
4132
|
const [_s0] = $t(__scope, 's0')
|
|
4035
4133
|
|
|
4134
|
+
let __anchor_s0 = _s0
|
|
4036
4135
|
createEffect(() => {
|
|
4037
4136
|
const __val = count()
|
|
4038
|
-
|
|
4137
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
4039
4138
|
})
|
|
4040
4139
|
|
|
4041
4140
|
if (_s2) _s2.addEventListener('click', () => { setCount(n => n + 1) })
|
|
@@ -4046,7 +4145,7 @@ export function Counter(_p, __bfKey) { return createComponent('Counter', _p, __b
|
|
|
4046
4145
|
`;
|
|
4047
4146
|
|
|
4048
4147
|
exports[`docs/core/adapters/go-template-adapter.md doc-examples L147 — (no label) 1`] = `
|
|
4049
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate, mapArray } from '@barefootjs/client/runtime'
|
|
4148
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate, mapArray } from '@barefootjs/client/runtime'
|
|
4050
4149
|
|
|
4051
4150
|
export function initTodoItem(__scope, _p = {}) {
|
|
4052
4151
|
if (!__scope) return
|
|
@@ -4054,9 +4153,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
4054
4153
|
|
|
4055
4154
|
const [_s0] = $t(__scope, 's0')
|
|
4056
4155
|
|
|
4156
|
+
let __anchor_s0 = _s0
|
|
4057
4157
|
createEffect(() => {
|
|
4058
4158
|
const __val = String(_p.todo)
|
|
4059
|
-
|
|
4159
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
4060
4160
|
})
|
|
4061
4161
|
|
|
4062
4162
|
}
|
|
@@ -4069,9 +4169,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
4069
4169
|
|
|
4070
4170
|
const [_s0] = $t(__scope, 's0')
|
|
4071
4171
|
|
|
4172
|
+
let __anchor_s0 = _s0
|
|
4072
4173
|
createEffect(() => {
|
|
4073
4174
|
const __val = String(_p.item)
|
|
4074
|
-
|
|
4175
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
4075
4176
|
})
|
|
4076
4177
|
|
|
4077
4178
|
}
|
|
@@ -4111,7 +4212,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
4111
4212
|
`;
|
|
4112
4213
|
|
|
4113
4214
|
exports[`docs/core/adapters/go-template-adapter.md doc-examples L159 — (no label) 1`] = `
|
|
4114
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate, mapArray } from '@barefootjs/client/runtime'
|
|
4215
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate, mapArray } from '@barefootjs/client/runtime'
|
|
4115
4216
|
|
|
4116
4217
|
export function initTodoItem(__scope, _p = {}) {
|
|
4117
4218
|
if (!__scope) return
|
|
@@ -4119,9 +4220,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
4119
4220
|
|
|
4120
4221
|
const [_s0] = $t(__scope, 's0')
|
|
4121
4222
|
|
|
4223
|
+
let __anchor_s0 = _s0
|
|
4122
4224
|
createEffect(() => {
|
|
4123
4225
|
const __val = String(_p.todo)
|
|
4124
|
-
|
|
4226
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
4125
4227
|
})
|
|
4126
4228
|
|
|
4127
4229
|
}
|
|
@@ -4134,9 +4236,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
4134
4236
|
|
|
4135
4237
|
const [_s0] = $t(__scope, 's0')
|
|
4136
4238
|
|
|
4239
|
+
let __anchor_s0 = _s0
|
|
4137
4240
|
createEffect(() => {
|
|
4138
4241
|
const __val = String(_p.item)
|
|
4139
|
-
|
|
4242
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
4140
4243
|
})
|
|
4141
4244
|
|
|
4142
4245
|
}
|
|
@@ -4176,7 +4279,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
4176
4279
|
`;
|
|
4177
4280
|
|
|
4178
4281
|
exports[`docs/core/adapters/go-template-adapter.md doc-examples L173 — (no label) 1`] = `
|
|
4179
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
4282
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
4180
4283
|
|
|
4181
4284
|
export function initTodoItem(__scope, _p = {}) {
|
|
4182
4285
|
if (!__scope) return
|
|
@@ -4184,9 +4287,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
4184
4287
|
|
|
4185
4288
|
const [_s0] = $t(__scope, 's0')
|
|
4186
4289
|
|
|
4290
|
+
let __anchor_s0 = _s0
|
|
4187
4291
|
createEffect(() => {
|
|
4188
4292
|
const __val = String(_p.todo)
|
|
4189
|
-
|
|
4293
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
4190
4294
|
})
|
|
4191
4295
|
|
|
4192
4296
|
}
|
|
@@ -4199,9 +4303,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
4199
4303
|
|
|
4200
4304
|
const [_s0] = $t(__scope, 's0')
|
|
4201
4305
|
|
|
4306
|
+
let __anchor_s0 = _s0
|
|
4202
4307
|
createEffect(() => {
|
|
4203
4308
|
const __val = String(_p.item)
|
|
4204
|
-
|
|
4309
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
4205
4310
|
})
|
|
4206
4311
|
|
|
4207
4312
|
}
|
|
@@ -4269,7 +4374,7 @@ export function TodoList(_p, __bfKey) { return createComponent('TodoList', _p, _
|
|
|
4269
4374
|
`;
|
|
4270
4375
|
|
|
4271
4376
|
exports[`docs/core/adapters/go-template-adapter.md doc-examples L231 — (no label) 1`] = `
|
|
4272
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate, insert } from '@barefootjs/client/runtime'
|
|
4377
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate, insert } from '@barefootjs/client/runtime'
|
|
4273
4378
|
|
|
4274
4379
|
export function initTodoItem(__scope, _p = {}) {
|
|
4275
4380
|
if (!__scope) return
|
|
@@ -4277,9 +4382,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
4277
4382
|
|
|
4278
4383
|
const [_s0] = $t(__scope, 's0')
|
|
4279
4384
|
|
|
4385
|
+
let __anchor_s0 = _s0
|
|
4280
4386
|
createEffect(() => {
|
|
4281
4387
|
const __val = String(_p.todo)
|
|
4282
|
-
|
|
4388
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
4283
4389
|
})
|
|
4284
4390
|
|
|
4285
4391
|
}
|
|
@@ -4292,9 +4398,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
4292
4398
|
|
|
4293
4399
|
const [_s0] = $t(__scope, 's0')
|
|
4294
4400
|
|
|
4401
|
+
let __anchor_s0 = _s0
|
|
4295
4402
|
createEffect(() => {
|
|
4296
4403
|
const __val = String(_p.item)
|
|
4297
|
-
|
|
4404
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
4298
4405
|
})
|
|
4299
4406
|
|
|
4300
4407
|
}
|
|
@@ -4337,7 +4444,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
4337
4444
|
`;
|
|
4338
4445
|
|
|
4339
4446
|
exports[`docs/core/adapters/custom-adapter.md doc-examples L169 — (no label) 1`] = `
|
|
4340
|
-
"import { $t, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
4447
|
+
"import { $t, __bfText, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
4341
4448
|
|
|
4342
4449
|
export function initTodoItem(__scope, _p = {}) {
|
|
4343
4450
|
if (!__scope) return
|
|
@@ -4345,9 +4452,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
4345
4452
|
|
|
4346
4453
|
const [_s0] = $t(__scope, 's0')
|
|
4347
4454
|
|
|
4455
|
+
let __anchor_s0 = _s0
|
|
4348
4456
|
createEffect(() => {
|
|
4349
4457
|
const __val = String(_p.todo)
|
|
4350
|
-
|
|
4458
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
4351
4459
|
})
|
|
4352
4460
|
|
|
4353
4461
|
}
|
|
@@ -4360,9 +4468,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
4360
4468
|
|
|
4361
4469
|
const [_s0] = $t(__scope, 's0')
|
|
4362
4470
|
|
|
4471
|
+
let __anchor_s0 = _s0
|
|
4363
4472
|
createEffect(() => {
|
|
4364
4473
|
const __val = String(_p.item)
|
|
4365
|
-
|
|
4474
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
4366
4475
|
})
|
|
4367
4476
|
|
|
4368
4477
|
}
|
|
@@ -4393,7 +4502,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
4393
4502
|
`;
|
|
4394
4503
|
|
|
4395
4504
|
exports[`docs/core/adapters/custom-adapter.md doc-examples L174 — (no label) 1`] = `
|
|
4396
|
-
"import { $t, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
4505
|
+
"import { $t, __bfText, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
4397
4506
|
|
|
4398
4507
|
export function initTodoItem(__scope, _p = {}) {
|
|
4399
4508
|
if (!__scope) return
|
|
@@ -4401,9 +4510,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
4401
4510
|
|
|
4402
4511
|
const [_s0] = $t(__scope, 's0')
|
|
4403
4512
|
|
|
4513
|
+
let __anchor_s0 = _s0
|
|
4404
4514
|
createEffect(() => {
|
|
4405
4515
|
const __val = String(_p.todo)
|
|
4406
|
-
|
|
4516
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
4407
4517
|
})
|
|
4408
4518
|
|
|
4409
4519
|
}
|
|
@@ -4416,9 +4526,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
4416
4526
|
|
|
4417
4527
|
const [_s0] = $t(__scope, 's0')
|
|
4418
4528
|
|
|
4529
|
+
let __anchor_s0 = _s0
|
|
4419
4530
|
createEffect(() => {
|
|
4420
4531
|
const __val = String(_p.item)
|
|
4421
|
-
|
|
4532
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
4422
4533
|
})
|
|
4423
4534
|
|
|
4424
4535
|
}
|
|
@@ -4449,7 +4560,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
4449
4560
|
`;
|
|
4450
4561
|
|
|
4451
4562
|
exports[`docs/core/adapters/custom-adapter.md doc-examples L195 — (no label) 1`] = `
|
|
4452
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
4563
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
4453
4564
|
|
|
4454
4565
|
export function initTodoItem(__scope, _p = {}) {
|
|
4455
4566
|
if (!__scope) return
|
|
@@ -4457,9 +4568,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
4457
4568
|
|
|
4458
4569
|
const [_s0] = $t(__scope, 's0')
|
|
4459
4570
|
|
|
4571
|
+
let __anchor_s0 = _s0
|
|
4460
4572
|
createEffect(() => {
|
|
4461
4573
|
const __val = String(_p.todo)
|
|
4462
|
-
|
|
4574
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
4463
4575
|
})
|
|
4464
4576
|
|
|
4465
4577
|
}
|
|
@@ -4472,9 +4584,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
4472
4584
|
|
|
4473
4585
|
const [_s0] = $t(__scope, 's0')
|
|
4474
4586
|
|
|
4587
|
+
let __anchor_s0 = _s0
|
|
4475
4588
|
createEffect(() => {
|
|
4476
4589
|
const __val = String(_p.item)
|
|
4477
|
-
|
|
4590
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
4478
4591
|
})
|
|
4479
4592
|
|
|
4480
4593
|
}
|
|
@@ -4518,7 +4631,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
4518
4631
|
`;
|
|
4519
4632
|
|
|
4520
4633
|
exports[`docs/core/adapters/custom-adapter.md doc-examples L200 — (no label) 1`] = `
|
|
4521
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
4634
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
4522
4635
|
|
|
4523
4636
|
export function initTodoItem(__scope, _p = {}) {
|
|
4524
4637
|
if (!__scope) return
|
|
@@ -4526,9 +4639,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
4526
4639
|
|
|
4527
4640
|
const [_s0] = $t(__scope, 's0')
|
|
4528
4641
|
|
|
4642
|
+
let __anchor_s0 = _s0
|
|
4529
4643
|
createEffect(() => {
|
|
4530
4644
|
const __val = String(_p.todo)
|
|
4531
|
-
|
|
4645
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
4532
4646
|
})
|
|
4533
4647
|
|
|
4534
4648
|
}
|
|
@@ -4541,9 +4655,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
4541
4655
|
|
|
4542
4656
|
const [_s0] = $t(__scope, 's0')
|
|
4543
4657
|
|
|
4658
|
+
let __anchor_s0 = _s0
|
|
4544
4659
|
createEffect(() => {
|
|
4545
4660
|
const __val = String(_p.item)
|
|
4546
|
-
|
|
4661
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
4547
4662
|
})
|
|
4548
4663
|
|
|
4549
4664
|
}
|
|
@@ -4596,7 +4711,7 @@ export function StatementExample(_p, __bfKey) { return createComponent('Statemen
|
|
|
4596
4711
|
`;
|
|
4597
4712
|
|
|
4598
4713
|
exports[`docs/core/advanced/compiler-internals.md doc-examples L126 — (no label) 1`] = `
|
|
4599
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate, mapArray } from '@barefootjs/client/runtime'
|
|
4714
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate, mapArray } from '@barefootjs/client/runtime'
|
|
4600
4715
|
|
|
4601
4716
|
export function initTodoItem(__scope, _p = {}) {
|
|
4602
4717
|
if (!__scope) return
|
|
@@ -4604,9 +4719,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
4604
4719
|
|
|
4605
4720
|
const [_s0] = $t(__scope, 's0')
|
|
4606
4721
|
|
|
4722
|
+
let __anchor_s0 = _s0
|
|
4607
4723
|
createEffect(() => {
|
|
4608
4724
|
const __val = String(_p.todo)
|
|
4609
|
-
|
|
4725
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
4610
4726
|
})
|
|
4611
4727
|
|
|
4612
4728
|
}
|
|
@@ -4619,9 +4735,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
4619
4735
|
|
|
4620
4736
|
const [_s0] = $t(__scope, 's0')
|
|
4621
4737
|
|
|
4738
|
+
let __anchor_s0 = _s0
|
|
4622
4739
|
createEffect(() => {
|
|
4623
4740
|
const __val = String(_p.item)
|
|
4624
|
-
|
|
4741
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
4625
4742
|
})
|
|
4626
4743
|
|
|
4627
4744
|
}
|
|
@@ -4723,7 +4840,7 @@ export function StatementExample(_p, __bfKey) { return createComponent('Statemen
|
|
|
4723
4840
|
`;
|
|
4724
4841
|
|
|
4725
4842
|
exports[`docs/core/advanced/performance.md doc-examples L67 — ✅ Stable key — DOM nodes reused when list changes 1`] = `
|
|
4726
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate, mapArray } from '@barefootjs/client/runtime'
|
|
4843
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate, mapArray } from '@barefootjs/client/runtime'
|
|
4727
4844
|
|
|
4728
4845
|
export function initTodoItem(__scope, _p = {}) {
|
|
4729
4846
|
if (!__scope) return
|
|
@@ -4731,9 +4848,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
4731
4848
|
|
|
4732
4849
|
const [_s0] = $t(__scope, 's0')
|
|
4733
4850
|
|
|
4851
|
+
let __anchor_s0 = _s0
|
|
4734
4852
|
createEffect(() => {
|
|
4735
4853
|
const __val = String(_p.todo)
|
|
4736
|
-
|
|
4854
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
4737
4855
|
})
|
|
4738
4856
|
|
|
4739
4857
|
}
|
|
@@ -4746,9 +4864,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
4746
4864
|
|
|
4747
4865
|
const [_s0] = $t(__scope, 's0')
|
|
4748
4866
|
|
|
4867
|
+
let __anchor_s0 = _s0
|
|
4749
4868
|
createEffect(() => {
|
|
4750
4869
|
const __val = String(_p.item)
|
|
4751
|
-
|
|
4870
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
4752
4871
|
})
|
|
4753
4872
|
|
|
4754
4873
|
}
|
|
@@ -4788,7 +4907,7 @@ export function Example(_p, __bfKey) { return createComponent('Example', _p, __b
|
|
|
4788
4907
|
`;
|
|
4789
4908
|
|
|
4790
4909
|
exports[`docs/core/advanced/performance.md doc-examples L70 — ❌ Index key — DOM nodes recreated on reorder 1`] = `
|
|
4791
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate, mapArray } from '@barefootjs/client/runtime'
|
|
4910
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate, mapArray } from '@barefootjs/client/runtime'
|
|
4792
4911
|
|
|
4793
4912
|
export function initTodoItem(__scope, _p = {}) {
|
|
4794
4913
|
if (!__scope) return
|
|
@@ -4796,9 +4915,10 @@ export function initTodoItem(__scope, _p = {}) {
|
|
|
4796
4915
|
|
|
4797
4916
|
const [_s0] = $t(__scope, 's0')
|
|
4798
4917
|
|
|
4918
|
+
let __anchor_s0 = _s0
|
|
4799
4919
|
createEffect(() => {
|
|
4800
4920
|
const __val = String(_p.todo)
|
|
4801
|
-
|
|
4921
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
4802
4922
|
})
|
|
4803
4923
|
|
|
4804
4924
|
}
|
|
@@ -4811,9 +4931,10 @@ export function initItem(__scope, _p = {}) {
|
|
|
4811
4931
|
|
|
4812
4932
|
const [_s0] = $t(__scope, 's0')
|
|
4813
4933
|
|
|
4934
|
+
let __anchor_s0 = _s0
|
|
4814
4935
|
createEffect(() => {
|
|
4815
4936
|
const __val = String(_p.item)
|
|
4816
|
-
|
|
4937
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
4817
4938
|
})
|
|
4818
4939
|
|
|
4819
4940
|
}
|
|
@@ -5060,7 +5181,7 @@ export function TimelineBar(_p, __bfKey) { return createComponent('TimelineBar',
|
|
|
5060
5181
|
`;
|
|
5061
5182
|
|
|
5062
5183
|
exports[`docs/core/introduction.mdx doc-examples L15 — (no label) 1`] = `
|
|
5063
|
-
"import { $, $t, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
5184
|
+
"import { $, $t, __bfText, createComponent, createEffect, createSignal, hydrate } from '@barefootjs/client/runtime'
|
|
5064
5185
|
|
|
5065
5186
|
|
|
5066
5187
|
export function initCounter(__scope, _p = {}) {
|
|
@@ -5072,9 +5193,10 @@ export function initCounter(__scope, _p = {}) {
|
|
|
5072
5193
|
const [_s1] = $(__scope, 's1')
|
|
5073
5194
|
const [_s0] = $t(__scope, 's0')
|
|
5074
5195
|
|
|
5196
|
+
let __anchor_s0 = _s0
|
|
5075
5197
|
createEffect(() => {
|
|
5076
5198
|
const __val = count()
|
|
5077
|
-
|
|
5199
|
+
__anchor_s0 = __bfText(__anchor_s0, __val)
|
|
5078
5200
|
})
|
|
5079
5201
|
|
|
5080
5202
|
if (_s1) _s1.addEventListener('click', () => { setCount(n => n + 1) })
|