ripple 0.3.9 → 0.3.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/package.json +2 -2
  3. package/src/compiler/errors.js +1 -1
  4. package/src/compiler/index.d.ts +3 -1
  5. package/src/compiler/phases/1-parse/index.js +195 -23
  6. package/src/compiler/phases/2-analyze/index.js +266 -108
  7. package/src/compiler/phases/2-analyze/prune.js +13 -5
  8. package/src/compiler/phases/3-transform/client/index.js +304 -80
  9. package/src/compiler/phases/3-transform/server/index.js +108 -43
  10. package/src/compiler/types/index.d.ts +28 -3
  11. package/src/compiler/types/parse.d.ts +3 -1
  12. package/src/compiler/utils.js +275 -1
  13. package/src/runtime/element.js +39 -0
  14. package/src/runtime/index-client.js +14 -4
  15. package/src/runtime/internal/client/composite.js +10 -6
  16. package/src/runtime/internal/client/expression.js +280 -0
  17. package/src/runtime/internal/client/index.js +4 -0
  18. package/src/runtime/internal/client/portal.js +12 -6
  19. package/src/runtime/internal/server/index.js +26 -1
  20. package/src/utils/builders.js +30 -0
  21. package/tests/client/basic/__snapshots__/basic.rendering.test.ripple.snap +1 -0
  22. package/tests/client/basic/basic.components.test.ripple +85 -87
  23. package/tests/client/basic/basic.errors.test.ripple +4 -8
  24. package/tests/client/basic/basic.rendering.test.ripple +27 -10
  25. package/tests/client/capture-error.js +12 -0
  26. package/tests/client/compiler/compiler.basic.test.ripple +76 -6
  27. package/tests/client/composite/composite.props.test.ripple +1 -3
  28. package/tests/client/composite/composite.render.test.ripple +91 -13
  29. package/tests/client/css/global-additional-cases.test.ripple +3 -3
  30. package/tests/client/return.test.ripple +101 -0
  31. package/tests/client/svg.test.ripple +4 -4
  32. package/tests/client/tsx.test.ripple +486 -0
  33. package/tests/hydration/basic.test.js +23 -0
  34. package/tests/hydration/compiled/client/basic.js +111 -75
  35. package/tests/hydration/compiled/client/composite.js +81 -46
  36. package/tests/hydration/compiled/client/events.js +18 -63
  37. package/tests/hydration/compiled/client/for.js +90 -183
  38. package/tests/hydration/compiled/client/head.js +10 -25
  39. package/tests/hydration/compiled/client/hmr.js +10 -13
  40. package/tests/hydration/compiled/client/html.js +251 -380
  41. package/tests/hydration/compiled/client/if-children.js +35 -45
  42. package/tests/hydration/compiled/client/if.js +2 -2
  43. package/tests/hydration/compiled/client/mixed-control-flow.js +24 -72
  44. package/tests/hydration/compiled/client/nested-control-flow.js +115 -391
  45. package/tests/hydration/compiled/client/portal.js +8 -20
  46. package/tests/hydration/compiled/client/reactivity.js +14 -47
  47. package/tests/hydration/compiled/client/return.js +2 -5
  48. package/tests/hydration/compiled/client/try.js +4 -4
  49. package/tests/hydration/compiled/server/basic.js +64 -31
  50. package/tests/hydration/compiled/server/composite.js +62 -29
  51. package/tests/hydration/compiled/server/hmr.js +24 -37
  52. package/tests/hydration/compiled/server/html.js +472 -611
  53. package/tests/hydration/compiled/server/if-children.js +77 -103
  54. package/tests/hydration/compiled/server/portal.js +8 -8
  55. package/tests/hydration/components/basic.ripple +15 -5
  56. package/tests/hydration/components/composite.ripple +13 -1
  57. package/tests/hydration/components/hmr.ripple +1 -3
  58. package/tests/hydration/components/html.ripple +13 -35
  59. package/tests/hydration/components/if-children.ripple +4 -8
  60. package/tests/hydration/composite.test.js +11 -0
  61. package/tests/server/basic.attributes.test.ripple +50 -0
  62. package/tests/server/basic.components.test.ripple +22 -28
  63. package/tests/server/basic.test.ripple +12 -0
  64. package/tests/server/compiler.test.ripple +25 -8
  65. package/tests/server/composite.props.test.ripple +1 -3
  66. package/tests/server/style-identifier.test.ripple +2 -4
  67. package/tests/utils/compiler-compat-config.test.js +38 -0
  68. package/tests/utils/vite-plugin-config.test.js +113 -0
  69. package/tsconfig.typecheck.json +2 -1
  70. package/types/index.d.ts +8 -11
@@ -133,40 +133,27 @@ export function HtmlWithReactivity(__output) {
133
133
  _$_.pop_component();
134
134
  }
135
135
 
136
- export async function HtmlWrapper(__output, { children }) {
137
- return _$_.async(async () => {
138
- _$_.push_component();
136
+ export function HtmlWrapper(__output, { children }) {
137
+ _$_.push_component();
138
+ __output.push('<div');
139
+ __output.push(' class="wrapper"');
140
+ __output.push('>');
141
+
142
+ {
139
143
  __output.push('<div');
140
- __output.push(' class="wrapper"');
144
+ __output.push(' class="inner"');
141
145
  __output.push('>');
142
146
 
143
147
  {
144
- __output.push('<div');
145
- __output.push(' class="inner"');
146
- __output.push('>');
147
-
148
- {
149
- {
150
- const comp = children;
151
- const args = [__output, {}];
152
-
153
- if (comp?.async) {
154
- await comp(...args);
155
- } else if (comp) {
156
- comp(...args);
157
- }
158
- }
159
- }
160
-
161
- __output.push('</div>');
148
+ _$_.render_expression(__output, children);
162
149
  }
163
150
 
164
151
  __output.push('</div>');
165
- _$_.pop_component();
166
- });
167
- }
152
+ }
168
153
 
169
- HtmlWrapper.async = true;
154
+ __output.push('</div>');
155
+ _$_.pop_component();
156
+ }
170
157
 
171
158
  export function HtmlInChildren(__output) {
172
159
  _$_.push_component();
@@ -179,7 +166,7 @@ export function HtmlInChildren(__output) {
179
166
  const args = [
180
167
  __output,
181
168
  {
182
- children: function children(__output) {
169
+ children: _$_.ripple_element(function render_children(__output) {
183
170
  _$_.push_component();
184
171
  __output.push('<div');
185
172
  __output.push(' class="vp-doc"');
@@ -195,7 +182,7 @@ export function HtmlInChildren(__output) {
195
182
 
196
183
  __output.push('</div>');
197
184
  _$_.pop_component();
198
- }
185
+ })
199
186
  }
200
187
  ];
201
188
 
@@ -216,7 +203,7 @@ export function HtmlInChildrenWithSiblings(__output) {
216
203
  const args = [
217
204
  __output,
218
205
  {
219
- children: function children(__output) {
206
+ children: _$_.ripple_element(function render_children(__output) {
220
207
  _$_.push_component();
221
208
  __output.push('<h1');
222
209
  __output.push('>');
@@ -240,7 +227,7 @@ export function HtmlInChildrenWithSiblings(__output) {
240
227
 
241
228
  __output.push('</div>');
242
229
  _$_.pop_component();
243
- }
230
+ })
244
231
  }
245
232
  ];
246
233
 
@@ -262,7 +249,7 @@ export function MultipleHtmlInChildren(__output) {
262
249
  const args = [
263
250
  __output,
264
251
  {
265
- children: function children(__output) {
252
+ children: _$_.ripple_element(function render_children(__output) {
266
253
  _$_.push_component();
267
254
  __output.push('<div');
268
255
  __output.push(' class="doc"');
@@ -284,7 +271,7 @@ export function MultipleHtmlInChildren(__output) {
284
271
 
285
272
  __output.push('</div>');
286
273
  _$_.pop_component();
287
- }
274
+ })
288
275
  }
289
276
  ];
290
277
 
@@ -345,7 +332,7 @@ export function HtmlWithCommentsInChildren(__output) {
345
332
  const args = [
346
333
  __output,
347
334
  {
348
- children: function children(__output) {
335
+ children: _$_.ripple_element(function render_children(__output) {
349
336
  _$_.push_component();
350
337
  __output.push('<div');
351
338
  __output.push(' class="vp-doc"');
@@ -361,7 +348,7 @@ export function HtmlWithCommentsInChildren(__output) {
361
348
 
362
349
  __output.push('</div>');
363
350
  _$_.pop_component();
364
- }
351
+ })
365
352
  }
366
353
  ];
367
354
 
@@ -385,160 +372,147 @@ function DocFooter(__output) {
385
372
  _$_.pop_component();
386
373
  }
387
374
 
388
- export async function DocLayout(
375
+ export function DocLayout(
389
376
  __output,
390
377
  { children, editPath = '', nextLink = null, toc = [] }
391
378
  ) {
392
- return _$_.async(async () => {
393
- _$_.push_component();
379
+ _$_.push_component();
380
+ __output.push('<div');
381
+ __output.push(' class="layout"');
382
+ __output.push('>');
383
+
384
+ {
394
385
  __output.push('<div');
395
- __output.push(' class="layout"');
386
+ __output.push(' class="content-container"');
396
387
  __output.push('>');
397
388
 
398
389
  {
399
- __output.push('<div');
400
- __output.push(' class="content-container"');
390
+ __output.push('<article');
401
391
  __output.push('>');
402
392
 
403
393
  {
404
- __output.push('<article');
394
+ __output.push('<div');
405
395
  __output.push('>');
406
396
 
407
397
  {
408
- __output.push('<div');
409
- __output.push('>');
410
-
411
- {
412
- {
413
- const comp = children;
414
- const args = [__output, {}];
398
+ _$_.render_expression(__output, children);
399
+ }
415
400
 
416
- if (comp?.async) {
417
- await comp(...args);
418
- } else if (comp) {
419
- comp(...args);
420
- }
421
- }
422
- }
401
+ __output.push('</div>');
402
+ }
423
403
 
424
- __output.push('</div>');
425
- }
404
+ __output.push('</article>');
405
+ __output.push('<!--[-->');
426
406
 
427
- __output.push('</article>');
428
- __output.push('<!--[-->');
407
+ if (editPath) {
408
+ __output.push('<div');
409
+ __output.push(' class="edit-link"');
410
+ __output.push('>');
429
411
 
430
- if (editPath) {
431
- __output.push('<div');
432
- __output.push(' class="edit-link"');
412
+ {
413
+ __output.push('<a');
414
+ __output.push(_$_.attr('href', `https://github.com/edit/${editPath}`, false));
433
415
  __output.push('>');
434
416
 
435
417
  {
436
- __output.push('<a');
437
- __output.push(_$_.attr('href', `https://github.com/edit/${editPath}`, false));
438
- __output.push('>');
439
-
440
- {
441
- __output.push('Edit');
442
- }
443
-
444
- __output.push('</a>');
418
+ __output.push('Edit');
445
419
  }
446
420
 
447
- __output.push('</div>');
421
+ __output.push('</a>');
448
422
  }
449
423
 
450
- __output.push('<!--]-->');
451
- __output.push('<!--[-->');
424
+ __output.push('</div>');
425
+ }
452
426
 
453
- if (nextLink) {
454
- __output.push('<nav');
455
- __output.push(' class="prev-next"');
456
- __output.push('>');
427
+ __output.push('<!--]-->');
428
+ __output.push('<!--[-->');
457
429
 
458
- {
459
- __output.push('<a');
460
- __output.push(_$_.attr('href', nextLink.href, false));
461
- __output.push('>');
430
+ if (nextLink) {
431
+ __output.push('<nav');
432
+ __output.push(' class="prev-next"');
433
+ __output.push('>');
462
434
 
463
- {
464
- __output.push(_$_.escape(nextLink.text));
465
- }
435
+ {
436
+ __output.push('<a');
437
+ __output.push(_$_.attr('href', nextLink.href, false));
438
+ __output.push('>');
466
439
 
467
- __output.push('</a>');
440
+ {
441
+ __output.push(_$_.escape(nextLink.text));
468
442
  }
469
443
 
470
- __output.push('</nav>');
444
+ __output.push('</a>');
471
445
  }
472
446
 
473
- __output.push('<!--]-->');
447
+ __output.push('</nav>');
448
+ }
474
449
 
475
- {
476
- const comp = DocFooter;
477
- const args = [__output, {}];
450
+ __output.push('<!--]-->');
478
451
 
479
- comp(...args);
480
- }
452
+ {
453
+ const comp = DocFooter;
454
+ const args = [__output, {}];
455
+
456
+ comp(...args);
481
457
  }
458
+ }
482
459
 
483
- __output.push('</div>');
484
- __output.push('<aside');
485
- __output.push('>');
460
+ __output.push('</div>');
461
+ __output.push('<aside');
462
+ __output.push('>');
486
463
 
487
- {
488
- __output.push('<!--[-->');
464
+ {
465
+ __output.push('<!--[-->');
489
466
 
490
- if (toc.length > 0) {
491
- __output.push('<div');
492
- __output.push(' class="toc"');
467
+ if (toc.length > 0) {
468
+ __output.push('<div');
469
+ __output.push(' class="toc"');
470
+ __output.push('>');
471
+
472
+ {
473
+ __output.push('<ul');
493
474
  __output.push('>');
494
475
 
495
476
  {
496
- __output.push('<ul');
497
- __output.push('>');
477
+ __output.push('<!--[-->');
498
478
 
499
- {
500
- __output.push('<!--[-->');
479
+ for (const item of toc) {
480
+ __output.push('<li');
481
+ __output.push('>');
501
482
 
502
- for (const item of toc) {
503
- __output.push('<li');
483
+ {
484
+ __output.push('<a');
485
+ __output.push(_$_.attr('href', item.href, false));
504
486
  __output.push('>');
505
487
 
506
488
  {
507
- __output.push('<a');
508
- __output.push(_$_.attr('href', item.href, false));
509
- __output.push('>');
510
-
511
- {
512
- __output.push(_$_.escape(item.text));
513
- }
514
-
515
- __output.push('</a>');
489
+ __output.push(_$_.escape(item.text));
516
490
  }
517
491
 
518
- __output.push('</li>');
492
+ __output.push('</a>');
519
493
  }
520
494
 
521
- __output.push('<!--]-->');
495
+ __output.push('</li>');
522
496
  }
523
497
 
524
- __output.push('</ul>');
498
+ __output.push('<!--]-->');
525
499
  }
526
500
 
527
- __output.push('</div>');
501
+ __output.push('</ul>');
528
502
  }
529
503
 
530
- __output.push('<!--]-->');
504
+ __output.push('</div>');
531
505
  }
532
506
 
533
- __output.push('</aside>');
507
+ __output.push('<!--]-->');
534
508
  }
535
509
 
536
- __output.push('</div>');
537
- _$_.pop_component();
538
- });
539
- }
510
+ __output.push('</aside>');
511
+ }
540
512
 
541
- DocLayout.async = true;
513
+ __output.push('</div>');
514
+ _$_.pop_component();
515
+ }
542
516
 
543
517
  export function HtmlWithServerData(__output) {
544
518
  _$_.push_component();
@@ -558,7 +532,7 @@ export function HtmlWithServerData(__output) {
558
532
  { href: '#features', text: 'Features' }
559
533
  ],
560
534
 
561
- children: function children(__output) {
535
+ children: _$_.ripple_element(function render_children(__output) {
562
536
  _$_.push_component();
563
537
  __output.push('<div');
564
538
  __output.push(' class="vp-doc"');
@@ -574,7 +548,7 @@ export function HtmlWithServerData(__output) {
574
548
 
575
549
  __output.push('</div>');
576
550
  _$_.pop_component();
577
- }
551
+ })
578
552
  }
579
553
  ];
580
554
 
@@ -595,7 +569,7 @@ export function HtmlWithClientDefaults(__output) {
595
569
  const args = [
596
570
  __output,
597
571
  {
598
- children: function children(__output) {
572
+ children: _$_.ripple_element(function render_children(__output) {
599
573
  _$_.push_component();
600
574
  __output.push('<div');
601
575
  __output.push(' class="vp-doc"');
@@ -611,7 +585,7 @@ export function HtmlWithClientDefaults(__output) {
611
585
 
612
586
  __output.push('</div>');
613
587
  _$_.pop_component();
614
- }
588
+ })
615
589
  }
616
590
  ];
617
591
 
@@ -632,7 +606,7 @@ export function HtmlWithUndefinedContent(__output) {
632
606
  const args = [
633
607
  __output,
634
608
  {
635
- children: function children(__output) {
609
+ children: _$_.ripple_element(function render_children(__output) {
636
610
  _$_.push_component();
637
611
  __output.push('<div');
638
612
  __output.push(' class="vp-doc"');
@@ -648,7 +622,7 @@ export function HtmlWithUndefinedContent(__output) {
648
622
 
649
623
  __output.push('</div>');
650
624
  _$_.pop_component();
651
- }
625
+ })
652
626
  }
653
627
  ];
654
628
 
@@ -658,56 +632,34 @@ export function HtmlWithUndefinedContent(__output) {
658
632
  _$_.pop_component();
659
633
  }
660
634
 
661
- async function DynamicHeading(__output, { level, children }) {
662
- return _$_.async(async () => {
663
- _$_.push_component();
664
- __output.push('<!--[-->');
665
-
666
- switch (level) {
667
- case 1:
668
- __output.push('<h1');
669
- __output.push(' class="heading"');
670
- __output.push('>');
671
- {
672
- {
673
- const comp = children;
674
- const args = [__output, {}];
675
-
676
- if (comp?.async) {
677
- await comp(...args);
678
- } else if (comp) {
679
- comp(...args);
680
- }
681
- }
682
- }
683
- __output.push('</h1>');
635
+ function DynamicHeading(__output, { level, children }) {
636
+ _$_.push_component();
637
+ __output.push('<!--[-->');
684
638
 
685
- case 2:
686
- __output.push('<h2');
687
- __output.push(' class="heading"');
688
- __output.push('>');
689
- {
690
- {
691
- const comp = children;
692
- const args = [__output, {}];
639
+ switch (level) {
640
+ case 1:
641
+ __output.push('<h1');
642
+ __output.push(' class="heading"');
643
+ __output.push('>');
644
+ {
645
+ _$_.render_expression(__output, children);
646
+ }
647
+ __output.push('</h1>');
693
648
 
694
- if (comp?.async) {
695
- await comp(...args);
696
- } else if (comp) {
697
- comp(...args);
698
- }
699
- }
700
- }
701
- __output.push('</h2>');
702
- }
649
+ case 2:
650
+ __output.push('<h2');
651
+ __output.push(' class="heading"');
652
+ __output.push('>');
653
+ {
654
+ _$_.render_expression(__output, children);
655
+ }
656
+ __output.push('</h2>');
657
+ }
703
658
 
704
- __output.push('<!--]-->');
705
- _$_.pop_component();
706
- });
659
+ __output.push('<!--]-->');
660
+ _$_.pop_component();
707
661
  }
708
662
 
709
- DynamicHeading.async = true;
710
-
711
663
  function CodeBlock(__output, { code }) {
712
664
  _$_.push_component();
713
665
 
@@ -762,40 +714,27 @@ function CodeBlock(__output, { code }) {
762
714
  _$_.pop_component();
763
715
  }
764
716
 
765
- async function ContentWrapper(__output, { children }) {
766
- return _$_.async(async () => {
767
- _$_.push_component();
717
+ function ContentWrapper(__output, { children }) {
718
+ _$_.push_component();
719
+ __output.push('<div');
720
+ __output.push(' class="wrapper"');
721
+ __output.push('>');
722
+
723
+ {
768
724
  __output.push('<div');
769
- __output.push(' class="wrapper"');
725
+ __output.push(' class="inner"');
770
726
  __output.push('>');
771
727
 
772
728
  {
773
- __output.push('<div');
774
- __output.push(' class="inner"');
775
- __output.push('>');
776
-
777
- {
778
- {
779
- const comp = children;
780
- const args = [__output, {}];
781
-
782
- if (comp?.async) {
783
- await comp(...args);
784
- } else if (comp) {
785
- comp(...args);
786
- }
787
- }
788
- }
789
-
790
- __output.push('</div>');
729
+ _$_.render_expression(__output, children);
791
730
  }
792
731
 
793
732
  __output.push('</div>');
794
- _$_.pop_component();
795
- });
796
- }
733
+ }
797
734
 
798
- ContentWrapper.async = true;
735
+ __output.push('</div>');
736
+ _$_.pop_component();
737
+ }
799
738
 
800
739
  export function HtmlAfterSwitchInChildren(__output) {
801
740
  _$_.push_component();
@@ -806,7 +745,7 @@ export function HtmlAfterSwitchInChildren(__output) {
806
745
  const args = [
807
746
  __output,
808
747
  {
809
- children: function children(__output) {
748
+ children: _$_.ripple_element(function render_children(__output) {
810
749
  _$_.push_component();
811
750
 
812
751
  {
@@ -816,11 +755,11 @@ export function HtmlAfterSwitchInChildren(__output) {
816
755
  __output,
817
756
  {
818
757
  level: 1,
819
- children: function children(__output) {
758
+ children: _$_.ripple_element(function render_children(__output) {
820
759
  _$_.push_component();
821
760
  __output.push('Title');
822
761
  _$_.pop_component();
823
- }
762
+ })
824
763
  }
825
764
  ];
826
765
 
@@ -860,7 +799,7 @@ export function HtmlAfterSwitchInChildren(__output) {
860
799
 
861
800
  __output.push('</p>');
862
801
  _$_.pop_component();
863
- }
802
+ })
864
803
  }
865
804
  ];
866
805
 
@@ -870,7 +809,7 @@ export function HtmlAfterSwitchInChildren(__output) {
870
809
  _$_.pop_component();
871
810
  }
872
811
 
873
- function NavItem(__output, { href, text, active = false }) {
812
+ function NavItem(__output, { href, text: label, active = false }) {
874
813
  _$_.push_component();
875
814
  __output.push('<div');
876
815
  __output.push(_$_.attr('class', `nav-item${active ? ' active' : ''}`));
@@ -896,7 +835,7 @@ function NavItem(__output, { href, text, active = false }) {
896
835
  __output.push('>');
897
836
 
898
837
  {
899
- __output.push(_$_.escape(text));
838
+ __output.push(_$_.escape(label));
900
839
  }
901
840
 
902
841
  __output.push('</span>');
@@ -909,73 +848,60 @@ function NavItem(__output, { href, text, active = false }) {
909
848
  _$_.pop_component();
910
849
  }
911
850
 
912
- async function SidebarSection(__output, { title, children }) {
913
- return _$_.async(async () => {
914
- _$_.push_component();
851
+ function SidebarSection(__output, { title, children }) {
852
+ _$_.push_component();
853
+
854
+ let lazy = _$_.track(true);
915
855
 
916
- let lazy = _$_.track(true);
856
+ __output.push('<section');
857
+ __output.push(' class="sidebar-section"');
858
+ __output.push('>');
917
859
 
918
- __output.push('<section');
919
- __output.push(' class="sidebar-section"');
860
+ {
861
+ __output.push('<div');
862
+ __output.push(' class="section-header"');
920
863
  __output.push('>');
921
864
 
922
865
  {
923
- __output.push('<div');
924
- __output.push(' class="section-header"');
866
+ __output.push('<h2');
925
867
  __output.push('>');
926
868
 
927
869
  {
928
- __output.push('<h2');
929
- __output.push('>');
930
-
931
- {
932
- __output.push(_$_.escape(title));
933
- }
934
-
935
- __output.push('</h2>');
936
- __output.push('<button');
937
- __output.push('>');
870
+ __output.push(_$_.escape(title));
871
+ }
938
872
 
939
- {
940
- __output.push('Toggle');
941
- }
873
+ __output.push('</h2>');
874
+ __output.push('<button');
875
+ __output.push('>');
942
876
 
943
- __output.push('</button>');
877
+ {
878
+ __output.push('Toggle');
944
879
  }
945
880
 
946
- __output.push('</div>');
947
- __output.push('<!--[-->');
948
-
949
- if (_$_.get(lazy)) {
950
- __output.push('<div');
951
- __output.push(' class="section-items"');
952
- __output.push('>');
881
+ __output.push('</button>');
882
+ }
953
883
 
954
- {
955
- {
956
- const comp = children;
957
- const args = [__output, {}];
884
+ __output.push('</div>');
885
+ __output.push('<!--[-->');
958
886
 
959
- if (comp?.async) {
960
- await comp(...args);
961
- } else if (comp) {
962
- comp(...args);
963
- }
964
- }
965
- }
887
+ if (_$_.get(lazy)) {
888
+ __output.push('<div');
889
+ __output.push(' class="section-items"');
890
+ __output.push('>');
966
891
 
967
- __output.push('</div>');
892
+ {
893
+ _$_.render_expression(__output, children);
968
894
  }
969
895
 
970
- __output.push('<!--]-->');
896
+ __output.push('</div>');
971
897
  }
972
898
 
973
- __output.push('</section>');
974
- _$_.pop_component();
975
- });
976
- }
899
+ __output.push('<!--]-->');
900
+ }
977
901
 
978
- SidebarSection.async = true;
902
+ __output.push('</section>');
903
+ _$_.pop_component();
904
+ }
979
905
 
980
906
  function SideNav(__output, { currentPath }) {
981
907
  _$_.push_component();
@@ -1000,7 +926,7 @@ function SideNav(__output, { currentPath }) {
1000
926
  __output,
1001
927
  {
1002
928
  title: "Getting Started",
1003
- children: function children(__output) {
929
+ children: _$_.ripple_element(function render_children(__output) {
1004
930
  _$_.push_component();
1005
931
 
1006
932
  {
@@ -1034,7 +960,7 @@ function SideNav(__output, { currentPath }) {
1034
960
  }
1035
961
 
1036
962
  _$_.pop_component();
1037
- }
963
+ })
1038
964
  }
1039
965
  ];
1040
966
 
@@ -1055,7 +981,7 @@ function SideNav(__output, { currentPath }) {
1055
981
  __output,
1056
982
  {
1057
983
  title: "Guide",
1058
- children: function children(__output) {
984
+ children: _$_.ripple_element(function render_children(__output) {
1059
985
  _$_.push_component();
1060
986
 
1061
987
  {
@@ -1089,7 +1015,7 @@ function SideNav(__output, { currentPath }) {
1089
1015
  }
1090
1016
 
1091
1017
  _$_.pop_component();
1092
- }
1018
+ })
1093
1019
  }
1094
1020
  ];
1095
1021
 
@@ -1233,40 +1159,27 @@ export function LayoutWithSidebarAndMain(__output) {
1233
1159
  _$_.pop_component();
1234
1160
  }
1235
1161
 
1236
- async function ArticleWrapper(__output, { children }) {
1237
- return _$_.async(async () => {
1238
- _$_.push_component();
1239
- __output.push('<article');
1240
- __output.push(' class="doc-content"');
1162
+ function ArticleWrapper(__output, { children }) {
1163
+ _$_.push_component();
1164
+ __output.push('<article');
1165
+ __output.push(' class="doc-content"');
1166
+ __output.push('>');
1167
+
1168
+ {
1169
+ __output.push('<div');
1241
1170
  __output.push('>');
1242
1171
 
1243
1172
  {
1244
- __output.push('<div');
1245
- __output.push('>');
1173
+ _$_.render_expression(__output, children);
1174
+ }
1246
1175
 
1247
- {
1248
- {
1249
- const comp = children;
1250
- const args = [__output, {}];
1251
-
1252
- if (comp?.async) {
1253
- await comp(...args);
1254
- } else if (comp) {
1255
- comp(...args);
1256
- }
1257
- }
1258
- }
1259
-
1260
- __output.push('</div>');
1261
- }
1176
+ __output.push('</div>');
1177
+ }
1262
1178
 
1263
- __output.push('</article>');
1264
- _$_.pop_component();
1265
- });
1179
+ __output.push('</article>');
1180
+ _$_.pop_component();
1266
1181
  }
1267
1182
 
1268
- ArticleWrapper.async = true;
1269
-
1270
1183
  function SimpleFooter(__output) {
1271
1184
  _$_.push_component();
1272
1185
  __output.push('<footer');
@@ -1294,7 +1207,7 @@ export function ArticleWithChildrenThenSibling(__output) {
1294
1207
  const args = [
1295
1208
  __output,
1296
1209
  {
1297
- children: function children(__output) {
1210
+ children: _$_.ripple_element(function render_children(__output) {
1298
1211
  _$_.push_component();
1299
1212
  __output.push('<h1');
1300
1213
  __output.push('>');
@@ -1313,7 +1226,7 @@ export function ArticleWithChildrenThenSibling(__output) {
1313
1226
 
1314
1227
  __output.push('</p>');
1315
1228
  _$_.pop_component();
1316
- }
1229
+ })
1317
1230
  }
1318
1231
  ];
1319
1232
 
@@ -1395,7 +1308,7 @@ export function ArticleWithHtmlChildThenSibling(__output) {
1395
1308
  const args = [
1396
1309
  __output,
1397
1310
  {
1398
- children: function children(__output) {
1311
+ children: _$_.ripple_element(function render_children(__output) {
1399
1312
  _$_.push_component();
1400
1313
  __output.push('<div');
1401
1314
  __output.push(' class="doc-content"');
@@ -1411,7 +1324,7 @@ export function ArticleWithHtmlChildThenSibling(__output) {
1411
1324
 
1412
1325
  __output.push('</div>');
1413
1326
  _$_.pop_component();
1414
- }
1327
+ })
1415
1328
  }
1416
1329
  ];
1417
1330
 
@@ -1454,78 +1367,65 @@ export function ArticleWithHtmlChildThenSibling(__output) {
1454
1367
  _$_.pop_component();
1455
1368
  }
1456
1369
 
1457
- async function InlineArticleLayout(__output, { children }) {
1458
- return _$_.async(async () => {
1459
- _$_.push_component();
1460
- __output.push('<div');
1461
- __output.push(' class="content-container"');
1370
+ function InlineArticleLayout(__output, { children }) {
1371
+ _$_.push_component();
1372
+ __output.push('<div');
1373
+ __output.push(' class="content-container"');
1374
+ __output.push('>');
1375
+
1376
+ {
1377
+ __output.push('<article');
1378
+ __output.push(' class="doc-content"');
1462
1379
  __output.push('>');
1463
1380
 
1464
1381
  {
1465
- __output.push('<article');
1466
- __output.push(' class="doc-content"');
1382
+ __output.push('<div');
1467
1383
  __output.push('>');
1468
1384
 
1469
1385
  {
1470
- __output.push('<div');
1471
- __output.push('>');
1472
-
1473
- {
1474
- {
1475
- const comp = children;
1476
- const args = [__output, {}];
1386
+ _$_.render_expression(__output, children);
1387
+ }
1477
1388
 
1478
- if (comp?.async) {
1479
- await comp(...args);
1480
- } else if (comp) {
1481
- comp(...args);
1482
- }
1483
- }
1484
- }
1389
+ __output.push('</div>');
1390
+ }
1485
1391
 
1486
- __output.push('</div>');
1487
- }
1392
+ __output.push('</article>');
1393
+ __output.push('<!--[-->');
1488
1394
 
1489
- __output.push('</article>');
1490
- __output.push('<!--[-->');
1395
+ if (true) {
1396
+ __output.push('<div');
1397
+ __output.push(' class="edit-link"');
1398
+ __output.push('>');
1491
1399
 
1492
- if (true) {
1493
- __output.push('<div');
1494
- __output.push(' class="edit-link"');
1400
+ {
1401
+ __output.push('<a');
1402
+ __output.push(' href="/edit"');
1495
1403
  __output.push('>');
1496
1404
 
1497
1405
  {
1498
- __output.push('<a');
1499
- __output.push(' href="/edit"');
1500
- __output.push('>');
1501
-
1502
- {
1503
- __output.push('Edit');
1504
- }
1505
-
1506
- __output.push('</a>');
1406
+ __output.push('Edit');
1507
1407
  }
1508
1408
 
1509
- __output.push('</div>');
1409
+ __output.push('</a>');
1510
1410
  }
1511
1411
 
1512
- __output.push('<!--]-->');
1412
+ __output.push('</div>');
1413
+ }
1513
1414
 
1514
- {
1515
- const comp = SimpleFooter;
1516
- const args = [__output, {}];
1415
+ __output.push('<!--]-->');
1517
1416
 
1518
- comp(...args);
1519
- }
1417
+ {
1418
+ const comp = SimpleFooter;
1419
+ const args = [__output, {}];
1420
+
1421
+ comp(...args);
1520
1422
  }
1423
+ }
1521
1424
 
1522
- __output.push('</div>');
1523
- _$_.pop_component();
1524
- });
1425
+ __output.push('</div>');
1426
+ _$_.pop_component();
1525
1427
  }
1526
1428
 
1527
- InlineArticleLayout.async = true;
1528
-
1529
1429
  export function InlineArticleWithHtmlChild(__output) {
1530
1430
  _$_.push_component();
1531
1431
 
@@ -1537,7 +1437,7 @@ export function InlineArticleWithHtmlChild(__output) {
1537
1437
  const args = [
1538
1438
  __output,
1539
1439
  {
1540
- children: function children(__output) {
1440
+ children: _$_.ripple_element(function render_children(__output) {
1541
1441
  _$_.push_component();
1542
1442
  __output.push('<div');
1543
1443
  __output.push(' class="doc-content"');
@@ -1553,7 +1453,7 @@ export function InlineArticleWithHtmlChild(__output) {
1553
1453
 
1554
1454
  __output.push('</div>');
1555
1455
  _$_.pop_component();
1556
- }
1456
+ })
1557
1457
  }
1558
1458
  ];
1559
1459
 
@@ -1605,134 +1505,121 @@ function FooterStub(__output) {
1605
1505
  _$_.pop_component();
1606
1506
  }
1607
1507
 
1608
- async function DocsLayoutInner(__output, { children, editPath = '', nextLink = null }) {
1609
- return _$_.async(async () => {
1610
- _$_.push_component();
1508
+ function DocsLayoutInner(__output, { children, editPath = '', nextLink = null }) {
1509
+ _$_.push_component();
1510
+ __output.push('<div');
1511
+ __output.push(' class="layout"');
1512
+ __output.push('>');
1513
+
1514
+ {
1515
+ {
1516
+ const comp = HeaderStub;
1517
+ const args = [__output, {}];
1518
+
1519
+ comp(...args);
1520
+ }
1521
+
1611
1522
  __output.push('<div');
1612
- __output.push(' class="layout"');
1523
+ __output.push(' class="docs-wrapper"');
1613
1524
  __output.push('>');
1614
1525
 
1615
1526
  {
1616
1527
  {
1617
- const comp = HeaderStub;
1528
+ const comp = SidebarStub;
1618
1529
  const args = [__output, {}];
1619
1530
 
1620
1531
  comp(...args);
1621
1532
  }
1622
1533
 
1623
- __output.push('<div');
1624
- __output.push(' class="docs-wrapper"');
1534
+ __output.push('<main');
1535
+ __output.push(' class="docs-main"');
1625
1536
  __output.push('>');
1626
1537
 
1627
1538
  {
1628
- {
1629
- const comp = SidebarStub;
1630
- const args = [__output, {}];
1631
-
1632
- comp(...args);
1633
- }
1634
-
1635
- __output.push('<main');
1636
- __output.push(' class="docs-main"');
1539
+ __output.push('<div');
1540
+ __output.push(' class="docs-container"');
1637
1541
  __output.push('>');
1638
1542
 
1639
1543
  {
1640
1544
  __output.push('<div');
1641
- __output.push(' class="docs-container"');
1545
+ __output.push(' class="content"');
1642
1546
  __output.push('>');
1643
1547
 
1644
1548
  {
1645
1549
  __output.push('<div');
1646
- __output.push(' class="content"');
1550
+ __output.push(' class="content-container"');
1647
1551
  __output.push('>');
1648
1552
 
1649
1553
  {
1650
- __output.push('<div');
1651
- __output.push(' class="content-container"');
1554
+ __output.push('<article');
1555
+ __output.push(' class="doc-content"');
1652
1556
  __output.push('>');
1653
1557
 
1654
1558
  {
1655
- __output.push('<article');
1656
- __output.push(' class="doc-content"');
1559
+ __output.push('<div');
1657
1560
  __output.push('>');
1658
1561
 
1659
1562
  {
1660
- __output.push('<div');
1661
- __output.push('>');
1662
-
1663
- {
1664
- {
1665
- const comp = children;
1666
- const args = [__output, {}];
1563
+ _$_.render_expression(__output, children);
1564
+ }
1667
1565
 
1668
- if (comp?.async) {
1669
- await comp(...args);
1670
- } else if (comp) {
1671
- comp(...args);
1672
- }
1673
- }
1674
- }
1566
+ __output.push('</div>');
1567
+ }
1675
1568
 
1676
- __output.push('</div>');
1677
- }
1569
+ __output.push('</article>');
1570
+ __output.push('<!--[-->');
1678
1571
 
1679
- __output.push('</article>');
1680
- __output.push('<!--[-->');
1572
+ if (editPath) {
1573
+ __output.push('<div');
1574
+ __output.push(' class="edit-link"');
1575
+ __output.push('>');
1681
1576
 
1682
- if (editPath) {
1683
- __output.push('<div');
1684
- __output.push(' class="edit-link"');
1577
+ {
1578
+ __output.push('<a');
1579
+ __output.push(' href="/edit"');
1685
1580
  __output.push('>');
1686
1581
 
1687
1582
  {
1688
- __output.push('<a');
1689
- __output.push(' href="/edit"');
1690
- __output.push('>');
1691
-
1692
- {
1693
- __output.push('Edit on GitHub');
1694
- }
1695
-
1696
- __output.push('</a>');
1583
+ __output.push('Edit on GitHub');
1697
1584
  }
1698
1585
 
1699
- __output.push('</div>');
1586
+ __output.push('</a>');
1700
1587
  }
1701
1588
 
1702
- __output.push('<!--]-->');
1703
- __output.push('<!--[-->');
1589
+ __output.push('</div>');
1590
+ }
1704
1591
 
1705
- if (nextLink) {
1706
- __output.push('<nav');
1707
- __output.push(' class="prev-next"');
1708
- __output.push('>');
1592
+ __output.push('<!--]-->');
1593
+ __output.push('<!--[-->');
1709
1594
 
1710
- {
1711
- __output.push('<a');
1712
- __output.push(_$_.attr('href', nextLink.href, false));
1713
- __output.push('>');
1595
+ if (nextLink) {
1596
+ __output.push('<nav');
1597
+ __output.push(' class="prev-next"');
1598
+ __output.push('>');
1714
1599
 
1715
- {
1716
- __output.push(_$_.escape(nextLink.text));
1717
- }
1600
+ {
1601
+ __output.push('<a');
1602
+ __output.push(_$_.attr('href', nextLink.href, false));
1603
+ __output.push('>');
1718
1604
 
1719
- __output.push('</a>');
1605
+ {
1606
+ __output.push(_$_.escape(nextLink.text));
1720
1607
  }
1721
1608
 
1722
- __output.push('</nav>');
1609
+ __output.push('</a>');
1723
1610
  }
1724
1611
 
1725
- __output.push('<!--]-->');
1612
+ __output.push('</nav>');
1613
+ }
1726
1614
 
1727
- {
1728
- const comp = FooterStub;
1729
- const args = [__output, {}];
1615
+ __output.push('<!--]-->');
1730
1616
 
1731
- comp(...args);
1732
- }
1733
- }
1617
+ {
1618
+ const comp = FooterStub;
1619
+ const args = [__output, {}];
1734
1620
 
1735
- __output.push('</div>');
1621
+ comp(...args);
1622
+ }
1736
1623
  }
1737
1624
 
1738
1625
  __output.push('</div>');
@@ -1741,18 +1628,18 @@ async function DocsLayoutInner(__output, { children, editPath = '', nextLink = n
1741
1628
  __output.push('</div>');
1742
1629
  }
1743
1630
 
1744
- __output.push('</main>');
1631
+ __output.push('</div>');
1745
1632
  }
1746
1633
 
1747
- __output.push('</div>');
1634
+ __output.push('</main>');
1748
1635
  }
1749
1636
 
1750
1637
  __output.push('</div>');
1751
- _$_.pop_component();
1752
- });
1753
- }
1638
+ }
1754
1639
 
1755
- DocsLayoutInner.async = true;
1640
+ __output.push('</div>');
1641
+ _$_.pop_component();
1642
+ }
1756
1643
 
1757
1644
  export function DocsLayoutWithData(__output) {
1758
1645
  _$_.push_component();
@@ -1767,7 +1654,7 @@ export function DocsLayoutWithData(__output) {
1767
1654
  {
1768
1655
  editPath: "docs/styling.md",
1769
1656
  nextLink: { href: '/next', text: 'Next' },
1770
- children: function children(__output) {
1657
+ children: _$_.ripple_element(function render_children(__output) {
1771
1658
  _$_.push_component();
1772
1659
  __output.push('<div');
1773
1660
  __output.push(' class="doc-content"');
@@ -1783,7 +1670,7 @@ export function DocsLayoutWithData(__output) {
1783
1670
 
1784
1671
  __output.push('</div>');
1785
1672
  _$_.pop_component();
1786
- }
1673
+ })
1787
1674
  }
1788
1675
  ];
1789
1676
 
@@ -1804,7 +1691,7 @@ export function DocsLayoutWithoutData(__output) {
1804
1691
  const args = [
1805
1692
  __output,
1806
1693
  {
1807
- children: function children(__output) {
1694
+ children: _$_.ripple_element(function render_children(__output) {
1808
1695
  _$_.push_component();
1809
1696
  __output.push('<div');
1810
1697
  __output.push(' class="doc-content"');
@@ -1820,7 +1707,7 @@ export function DocsLayoutWithoutData(__output) {
1820
1707
 
1821
1708
  __output.push('</div>');
1822
1709
  _$_.pop_component();
1823
- }
1710
+ })
1824
1711
  }
1825
1712
  ];
1826
1713
 
@@ -1830,7 +1717,7 @@ export function DocsLayoutWithoutData(__output) {
1830
1717
  _$_.pop_component();
1831
1718
  }
1832
1719
 
1833
- async function DocsLayoutExact(
1720
+ function DocsLayoutExact(
1834
1721
  __output,
1835
1722
  {
1836
1723
  children,
@@ -1840,241 +1727,228 @@ async function DocsLayoutExact(
1840
1727
  toc = []
1841
1728
  }
1842
1729
  ) {
1843
- return _$_.async(async () => {
1844
- _$_.push_component();
1730
+ _$_.push_component();
1731
+ __output.push('<div');
1732
+ __output.push(' class="layout"');
1733
+ __output.push('>');
1734
+
1735
+ {
1736
+ {
1737
+ const comp = HeaderStub;
1738
+ const args = [__output, {}];
1739
+
1740
+ comp(...args);
1741
+ }
1742
+
1845
1743
  __output.push('<div');
1846
- __output.push(' class="layout"');
1744
+ __output.push(' class="docs-wrapper"');
1847
1745
  __output.push('>');
1848
1746
 
1849
1747
  {
1850
1748
  {
1851
- const comp = HeaderStub;
1749
+ const comp = SidebarStub;
1852
1750
  const args = [__output, {}];
1853
1751
 
1854
1752
  comp(...args);
1855
1753
  }
1856
1754
 
1857
- __output.push('<div');
1858
- __output.push(' class="docs-wrapper"');
1755
+ __output.push('<main');
1756
+ __output.push(' class="docs-main"');
1859
1757
  __output.push('>');
1860
1758
 
1861
1759
  {
1862
- {
1863
- const comp = SidebarStub;
1864
- const args = [__output, {}];
1865
-
1866
- comp(...args);
1867
- }
1868
-
1869
- __output.push('<main');
1870
- __output.push(' class="docs-main"');
1760
+ __output.push('<div');
1761
+ __output.push(' class="docs-container"');
1871
1762
  __output.push('>');
1872
1763
 
1873
1764
  {
1874
1765
  __output.push('<div');
1875
- __output.push(' class="docs-container"');
1766
+ __output.push(' class="content"');
1876
1767
  __output.push('>');
1877
1768
 
1878
1769
  {
1879
1770
  __output.push('<div');
1880
- __output.push(' class="content"');
1771
+ __output.push(' class="content-container"');
1881
1772
  __output.push('>');
1882
1773
 
1883
1774
  {
1884
- __output.push('<div');
1885
- __output.push(' class="content-container"');
1775
+ __output.push('<article');
1776
+ __output.push(' class="doc-content"');
1886
1777
  __output.push('>');
1887
1778
 
1888
1779
  {
1889
- __output.push('<article');
1890
- __output.push(' class="doc-content"');
1780
+ __output.push('<div');
1891
1781
  __output.push('>');
1892
1782
 
1893
1783
  {
1894
- __output.push('<div');
1895
- __output.push('>');
1896
-
1897
- {
1898
- {
1899
- const comp = children;
1900
- const args = [__output, {}];
1784
+ _$_.render_expression(__output, children);
1785
+ }
1901
1786
 
1902
- if (comp?.async) {
1903
- await comp(...args);
1904
- } else if (comp) {
1905
- comp(...args);
1906
- }
1907
- }
1908
- }
1787
+ __output.push('</div>');
1788
+ }
1909
1789
 
1910
- __output.push('</div>');
1911
- }
1790
+ __output.push('</article>');
1791
+ __output.push('<!--[-->');
1912
1792
 
1913
- __output.push('</article>');
1914
- __output.push('<!--[-->');
1793
+ if (editPath) {
1794
+ __output.push('<div');
1795
+ __output.push(' class="edit-link"');
1796
+ __output.push('>');
1915
1797
 
1916
- if (editPath) {
1917
- __output.push('<div');
1918
- __output.push(' class="edit-link"');
1798
+ {
1799
+ __output.push('<a');
1800
+ __output.push(_$_.attr('href', `/edit/${editPath}`, false));
1919
1801
  __output.push('>');
1920
1802
 
1921
1803
  {
1922
- __output.push('<a');
1923
- __output.push(_$_.attr('href', `/edit/${editPath}`, false));
1924
- __output.push('>');
1925
-
1926
- {
1927
- __output.push('Edit on GitHub');
1928
- }
1929
-
1930
- __output.push('</a>');
1804
+ __output.push('Edit on GitHub');
1931
1805
  }
1932
1806
 
1933
- __output.push('</div>');
1807
+ __output.push('</a>');
1934
1808
  }
1935
1809
 
1936
- __output.push('<!--]-->');
1937
- __output.push('<!--[-->');
1810
+ __output.push('</div>');
1811
+ }
1938
1812
 
1939
- if (prevLink || nextLink) {
1940
- __output.push('<nav');
1941
- __output.push(' class="prev-next"');
1942
- __output.push('>');
1813
+ __output.push('<!--]-->');
1814
+ __output.push('<!--[-->');
1943
1815
 
1944
- {
1945
- __output.push('<!--[-->');
1816
+ if (prevLink || nextLink) {
1817
+ __output.push('<nav');
1818
+ __output.push(' class="prev-next"');
1819
+ __output.push('>');
1946
1820
 
1947
- if (prevLink) {
1948
- __output.push('<a');
1949
- __output.push(_$_.attr('href', prevLink.href, false));
1950
- __output.push(' class="pager prev"');
1951
- __output.push('>');
1821
+ {
1822
+ __output.push('<!--[-->');
1952
1823
 
1953
- {
1954
- __output.push('<span');
1955
- __output.push(' class="title"');
1956
- __output.push('>');
1824
+ if (prevLink) {
1825
+ __output.push('<a');
1826
+ __output.push(_$_.attr('href', prevLink.href, false));
1827
+ __output.push(' class="pager prev"');
1828
+ __output.push('>');
1957
1829
 
1958
- {
1959
- __output.push(_$_.escape(prevLink.text));
1960
- }
1830
+ {
1831
+ __output.push('<span');
1832
+ __output.push(' class="title"');
1833
+ __output.push('>');
1961
1834
 
1962
- __output.push('</span>');
1835
+ {
1836
+ __output.push(_$_.escape(prevLink.text));
1963
1837
  }
1964
1838
 
1965
- __output.push('</a>');
1966
- } else {
1967
- __output.push('<span');
1968
- __output.push('>');
1969
1839
  __output.push('</span>');
1970
1840
  }
1971
1841
 
1972
- __output.push('<!--]-->');
1973
- __output.push('<!--[-->');
1842
+ __output.push('</a>');
1843
+ } else {
1844
+ __output.push('<span');
1845
+ __output.push('>');
1846
+ __output.push('</span>');
1847
+ }
1974
1848
 
1975
- if (nextLink) {
1976
- __output.push('<a');
1977
- __output.push(_$_.attr('href', nextLink.href, false));
1978
- __output.push(' class="pager next"');
1979
- __output.push('>');
1849
+ __output.push('<!--]-->');
1850
+ __output.push('<!--[-->');
1980
1851
 
1981
- {
1982
- __output.push('<span');
1983
- __output.push(' class="title"');
1984
- __output.push('>');
1852
+ if (nextLink) {
1853
+ __output.push('<a');
1854
+ __output.push(_$_.attr('href', nextLink.href, false));
1855
+ __output.push(' class="pager next"');
1856
+ __output.push('>');
1985
1857
 
1986
- {
1987
- __output.push(_$_.escape(nextLink.text));
1988
- }
1858
+ {
1859
+ __output.push('<span');
1860
+ __output.push(' class="title"');
1861
+ __output.push('>');
1989
1862
 
1990
- __output.push('</span>');
1863
+ {
1864
+ __output.push(_$_.escape(nextLink.text));
1991
1865
  }
1992
1866
 
1993
- __output.push('</a>');
1867
+ __output.push('</span>');
1994
1868
  }
1995
1869
 
1996
- __output.push('<!--]-->');
1870
+ __output.push('</a>');
1997
1871
  }
1998
1872
 
1999
- __output.push('</nav>');
1873
+ __output.push('<!--]-->');
2000
1874
  }
2001
1875
 
2002
- __output.push('<!--]-->');
1876
+ __output.push('</nav>');
1877
+ }
1878
+
1879
+ __output.push('<!--]-->');
2003
1880
 
2004
- {
2005
- const comp = FooterStub;
2006
- const args = [__output, {}];
1881
+ {
1882
+ const comp = FooterStub;
1883
+ const args = [__output, {}];
2007
1884
 
2008
- comp(...args);
2009
- }
1885
+ comp(...args);
2010
1886
  }
2011
-
2012
- __output.push('</div>');
2013
1887
  }
2014
1888
 
2015
1889
  __output.push('</div>');
2016
- __output.push('<aside');
2017
- __output.push(' class="aside"');
2018
- __output.push('>');
1890
+ }
2019
1891
 
2020
- {
2021
- __output.push('<!--[-->');
1892
+ __output.push('</div>');
1893
+ __output.push('<aside');
1894
+ __output.push(' class="aside"');
1895
+ __output.push('>');
2022
1896
 
2023
- if (toc.length > 0) {
2024
- __output.push('<div');
2025
- __output.push(' class="aside-content"');
2026
- __output.push('>');
1897
+ {
1898
+ __output.push('<!--[-->');
2027
1899
 
2028
- {
2029
- __output.push('<nav');
2030
- __output.push(' class="outline"');
2031
- __output.push('>');
1900
+ if (toc.length > 0) {
1901
+ __output.push('<div');
1902
+ __output.push(' class="aside-content"');
1903
+ __output.push('>');
2032
1904
 
2033
- {
2034
- __output.push('<!--[-->');
1905
+ {
1906
+ __output.push('<nav');
1907
+ __output.push(' class="outline"');
1908
+ __output.push('>');
2035
1909
 
2036
- for (const item of toc) {
2037
- __output.push('<a');
2038
- __output.push(_$_.attr('href', item.href, false));
2039
- __output.push('>');
1910
+ {
1911
+ __output.push('<!--[-->');
2040
1912
 
2041
- {
2042
- __output.push(_$_.escape(item.text));
2043
- }
1913
+ for (const item of toc) {
1914
+ __output.push('<a');
1915
+ __output.push(_$_.attr('href', item.href, false));
1916
+ __output.push('>');
2044
1917
 
2045
- __output.push('</a>');
1918
+ {
1919
+ __output.push(_$_.escape(item.text));
2046
1920
  }
2047
1921
 
2048
- __output.push('<!--]-->');
1922
+ __output.push('</a>');
2049
1923
  }
2050
1924
 
2051
- __output.push('</nav>');
1925
+ __output.push('<!--]-->');
2052
1926
  }
2053
1927
 
2054
- __output.push('</div>');
1928
+ __output.push('</nav>');
2055
1929
  }
2056
1930
 
2057
- __output.push('<!--]-->');
1931
+ __output.push('</div>');
2058
1932
  }
2059
1933
 
2060
- __output.push('</aside>');
1934
+ __output.push('<!--]-->');
2061
1935
  }
2062
1936
 
2063
- __output.push('</div>');
1937
+ __output.push('</aside>');
2064
1938
  }
2065
1939
 
2066
- __output.push('</main>');
1940
+ __output.push('</div>');
2067
1941
  }
2068
1942
 
2069
- __output.push('</div>');
1943
+ __output.push('</main>');
2070
1944
  }
2071
1945
 
2072
1946
  __output.push('</div>');
2073
- _$_.pop_component();
2074
- });
2075
- }
1947
+ }
2076
1948
 
2077
- DocsLayoutExact.async = true;
1949
+ __output.push('</div>');
1950
+ _$_.pop_component();
1951
+ }
2078
1952
 
2079
1953
  export function DocsLayoutExactWithData(__output) {
2080
1954
  _$_.push_component();
@@ -2095,7 +1969,7 @@ export function DocsLayoutExactWithData(__output) {
2095
1969
  { href: '#usage', text: 'Usage' }
2096
1970
  ],
2097
1971
 
2098
- children: function children(__output) {
1972
+ children: _$_.ripple_element(function render_children(__output) {
2099
1973
  _$_.push_component();
2100
1974
  __output.push('<div');
2101
1975
  __output.push(' class="doc-content"');
@@ -2111,7 +1985,7 @@ export function DocsLayoutExactWithData(__output) {
2111
1985
 
2112
1986
  __output.push('</div>');
2113
1987
  _$_.pop_component();
2114
- }
1988
+ })
2115
1989
  }
2116
1990
  ];
2117
1991
 
@@ -2140,7 +2014,7 @@ export function DocsLayoutExactWithoutData(__output) {
2140
2014
  prevLink,
2141
2015
  nextLink,
2142
2016
  toc,
2143
- children: function children(__output) {
2017
+ children: _$_.ripple_element(function render_children(__output) {
2144
2018
  _$_.push_component();
2145
2019
  __output.push('<div');
2146
2020
  __output.push(' class="doc-content"');
@@ -2156,7 +2030,7 @@ export function DocsLayoutExactWithoutData(__output) {
2156
2030
 
2157
2031
  __output.push('</div>');
2158
2032
  _$_.pop_component();
2159
- }
2033
+ })
2160
2034
  }
2161
2035
  ];
2162
2036
 
@@ -2249,52 +2123,39 @@ export function TemplateWithHtmlAndSiblings(__output) {
2249
2123
  _$_.pop_component();
2250
2124
  }
2251
2125
 
2252
- async function LayoutWithTemplate(__output, { children, data }) {
2253
- return _$_.async(async () => {
2254
- _$_.push_component();
2255
- __output.push('<div');
2256
- __output.push(' class="layout"');
2126
+ function LayoutWithTemplate(__output, { children, data }) {
2127
+ _$_.push_component();
2128
+ __output.push('<div');
2129
+ __output.push(' class="layout"');
2130
+ __output.push('>');
2131
+
2132
+ {
2133
+ __output.push('<template');
2134
+ __output.push(' id="page-data"');
2257
2135
  __output.push('>');
2258
2136
 
2259
2137
  {
2260
- __output.push('<template');
2261
- __output.push(' id="page-data"');
2262
- __output.push('>');
2263
-
2264
- {
2265
- const html_value_25 = String(JSON.stringify(data) ?? '');
2266
-
2267
- __output.push('<!--' + _$_.hash(html_value_25) + '-->');
2268
- __output.push(html_value_25);
2269
- __output.push('<!---->');
2270
- }
2271
-
2272
- __output.push('</template>');
2273
- __output.push('<main');
2274
- __output.push('>');
2138
+ const html_value_25 = String(JSON.stringify(data) ?? '');
2275
2139
 
2276
- {
2277
- {
2278
- const comp = children;
2279
- const args = [__output, {}];
2140
+ __output.push('<!--' + _$_.hash(html_value_25) + '-->');
2141
+ __output.push(html_value_25);
2142
+ __output.push('<!---->');
2143
+ }
2280
2144
 
2281
- if (comp?.async) {
2282
- await comp(...args);
2283
- } else if (comp) {
2284
- comp(...args);
2285
- }
2286
- }
2287
- }
2145
+ __output.push('</template>');
2146
+ __output.push('<main');
2147
+ __output.push('>');
2288
2148
 
2289
- __output.push('</main>');
2149
+ {
2150
+ _$_.render_expression(__output, children);
2290
2151
  }
2291
2152
 
2292
- __output.push('</div>');
2293
- _$_.pop_component();
2294
- });
2295
- }
2153
+ __output.push('</main>');
2154
+ }
2296
2155
 
2297
- LayoutWithTemplate.async = true;
2156
+ __output.push('</div>');
2157
+ _$_.pop_component();
2158
+ }
2298
2159
 
2299
2160
  export function NestedTemplateInLayout(__output) {
2300
2161
  _$_.push_component();
@@ -2308,7 +2169,7 @@ export function NestedTemplateInLayout(__output) {
2308
2169
  __output,
2309
2170
  {
2310
2171
  data: doc,
2311
- children: function children(__output) {
2172
+ children: _$_.ripple_element(function render_children(__output) {
2312
2173
  _$_.push_component();
2313
2174
  __output.push('<div');
2314
2175
  __output.push(' class="doc-content"');
@@ -2324,7 +2185,7 @@ export function NestedTemplateInLayout(__output) {
2324
2185
 
2325
2186
  __output.push('</div>');
2326
2187
  _$_.pop_component();
2327
- }
2188
+ })
2328
2189
  }
2329
2190
  ];
2330
2191