@octanejs/streamdown 0.1.52 → 0.1.53

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.
@@ -4,34 +4,24 @@
4
4
  import {
5
5
  createElementFromConfig as _$createElementFromConfig16,
6
6
  createHostElement as _$createHostElement7,
7
- enableHostDescriptors as _$enableHostDescriptors17
8
- } from "octane/internal/client";
9
- import {
10
7
  createScopedElement as _$createScopedElement19,
11
8
  createScopedValue as _$createScopedValue21,
9
+ enableHostDescriptors as _$enableHostDescriptors17,
12
10
  hookSlots as _$hookSlots22,
13
11
  positionalChildren as _$positionalChildren14,
14
- useContext as useContext15,
15
- useEffect as useEffect12,
16
- useRef as useRef10,
17
- useState as useState13,
18
12
  withSlot as _$withSlot19
19
- } from "octane";
13
+ } from "octane/internal/client";
14
+ import { useContext as useContext15, useEffect as useEffect12, useRef as useRef10, useState as useState13 } from "octane";
20
15
 
21
16
  // src/hooks/use-deferred-render.tsrx
22
17
  import {
23
18
  hookSlots as _$hookSlots,
24
- useEffect,
25
- useMemo,
26
- useRef,
27
- useState
28
- } from "octane";
29
- import {
30
19
  memoPublish as _$memoPublish,
31
20
  memoSlot as _$memoSlot,
32
21
  memoTake0 as _$memoTake0,
33
22
  memoTake1 as _$memoTake1
34
23
  } from "octane/internal/client";
24
+ import { useEffect, useMemo, useRef, useState } from "octane";
35
25
  var _hs$ = /* @__PURE__ */ _$hookSlots(8);
36
26
  var _h$0 = /* @__PURE__ */ Symbol(_hs$);
37
27
  var _h$1 = /* @__PURE__ */ Symbol(_hs$ + 1);
@@ -182,11 +172,7 @@ function useDeferredRender(options = {}) {
182
172
  import {
183
173
  createContext as createContext7,
184
174
  createElement as createElement3,
185
- createScopedElement as _$createScopedElement17,
186
- createScopedValue as _$createScopedValue19,
187
- hookSlots as _$hookSlots20,
188
175
  memo as memo3,
189
- positionalChildren as _$positionalChildren12,
190
176
  useEffect as useEffect10,
191
177
  useId,
192
178
  useMemo as useMemo4,
@@ -197,14 +183,18 @@ import {
197
183
  import {
198
184
  createElementFromConfig as _$createElementFromConfig14,
199
185
  createHostElement as _$createHostElement6,
186
+ createScopedElement as _$createScopedElement17,
187
+ createScopedValue as _$createScopedValue19,
200
188
  enableDescriptorFormActions as _$enableDescriptorFormActions10,
201
189
  enableDescriptorFragmentRefs as _$enableDescriptorFragmentRefs3,
202
190
  enableHostDescriptors as _$enableHostDescriptors15,
191
+ hookSlots as _$hookSlots20,
203
192
  memoPublish as _$memoPublish7,
204
193
  memoSlot as _$memoSlot7,
205
194
  memoTake1 as _$memoTake15,
206
195
  memoTake2 as _$memoTake24,
207
- memoTake3 as _$memoTake33
196
+ memoTake3 as _$memoTake33,
197
+ positionalChildren as _$positionalChildren12
208
198
  } from "octane/internal/client";
209
199
  import { harden } from "rehype-harden";
210
200
  import rehypeRaw2 from "rehype-raw";
@@ -372,50 +362,46 @@ import {
372
362
  Fragment as _$Fragment4,
373
363
  Suspense as Suspense2,
374
364
  cloneElement,
375
- createScopedElement as _$createScopedElement16,
376
- createScopedValue as _$createScopedValue18,
377
- hookSlots as _$hookSlots19,
378
365
  isValidElement,
379
366
  lazy as lazy2,
380
367
  memo as memo2,
381
- positionalChildren as _$positionalChildren11,
382
368
  useCallback as useCallback3,
383
369
  useContext as useContext14,
384
- useState as useState10,
385
- withSlot as _$withSlot17
370
+ useState as useState10
386
371
  } from "octane";
387
372
  import {
388
373
  createElementFromConfig as _$createElementFromConfig13,
389
374
  createHostElement as _$createHostElement5,
375
+ createScopedElement as _$createScopedElement16,
376
+ createScopedValue as _$createScopedValue18,
390
377
  enableDescriptorFormActions as _$enableDescriptorFormActions9,
391
378
  enableDescriptorFragmentRefs as _$enableDescriptorFragmentRefs2,
392
379
  enableHostDescriptors as _$enableHostDescriptors14,
380
+ hookSlots as _$hookSlots19,
393
381
  memoPublish as _$memoPublish6,
394
382
  memoSlot as _$memoSlot6,
395
383
  memoTake0 as _$memoTake02,
396
384
  memoTake1 as _$memoTake14,
397
- memoTake3 as _$memoTake32
385
+ memoTake3 as _$memoTake32,
386
+ positionalChildren as _$positionalChildren11,
387
+ withSlot as _$withSlot17
398
388
  } from "octane/internal/client";
399
389
 
400
390
  // src/lib/code-block/index.tsrx
391
+ import { Suspense, lazy, useMemo as useMemo3 } from "octane";
401
392
  import {
402
- Suspense,
393
+ createElementFromConfig as _$createElementFromConfig,
403
394
  createScopedElement as _$createScopedElement3,
404
395
  createScopedValue as _$createScopedValue4,
405
- hookSlots as _$hookSlots5,
406
- lazy,
407
- positionalChildren as _$positionalChildren,
408
- useMemo as useMemo3,
409
- withSlot as _$withSlot4
410
- } from "octane";
411
- import {
412
- createElementFromConfig as _$createElementFromConfig,
413
396
  enableDescriptorFormActions as _$enableDescriptorFormActions3,
414
397
  enableDescriptorFragmentRefs as _$enableDescriptorFragmentRefs,
415
398
  enableHostDescriptors as _$enableHostDescriptors,
399
+ hookSlots as _$hookSlots5,
416
400
  memoPublish as _$memoPublish3,
417
401
  memoSlot as _$memoSlot3,
418
- memoTake1 as _$memoTake12
402
+ memoTake1 as _$memoTake12,
403
+ positionalChildren as _$positionalChildren,
404
+ withSlot as _$withSlot4
419
405
  } from "octane/internal/client";
420
406
 
421
407
  // src/lib/prefix-context.tsrx
@@ -455,18 +441,15 @@ var useCn = () => useContext2(PrefixContext);
455
441
  import {
456
442
  createScopedElement as _$createScopedElement,
457
443
  createScopedValue as _$createScopedValue,
458
- hookSlots as _$hookSlots2,
459
- memo,
460
- useMemo as useMemo2,
461
- withSlot as _$withSlot
462
- } from "octane";
463
- import {
464
444
  enableDescriptorFormActions as _$enableDescriptorFormActions,
445
+ hookSlots as _$hookSlots2,
465
446
  memoPublish as _$memoPublish2,
466
447
  memoSlot as _$memoSlot2,
467
448
  memoTake2 as _$memoTake2,
468
- memoTake3 as _$memoTake3
449
+ memoTake3 as _$memoTake3,
450
+ withSlot as _$withSlot
469
451
  } from "octane/internal/client";
452
+ import { memo, useMemo as useMemo2 } from "octane";
470
453
  _$enableDescriptorFormActions();
471
454
  var _hs$2 = /* @__PURE__ */ _$hookSlots2(3);
472
455
  var _h$02 = /* @__PURE__ */ Symbol(_hs$2);
@@ -592,13 +575,11 @@ var CodeBlockBody = /* @__PURE__ */ memo(
592
575
  // src/lib/code-block/container.tsrx
593
576
  import {
594
577
  createHostElement as _$createHostElement,
595
- enableDescriptorFormActions as _$enableDescriptorFormActions2
596
- } from "octane/internal/client";
597
- import {
598
578
  createScopedValue as _$createScopedValue2,
579
+ enableDescriptorFormActions as _$enableDescriptorFormActions2,
599
580
  hookSlots as _$hookSlots3,
600
581
  withSlot as _$withSlot2
601
- } from "octane";
582
+ } from "octane/internal/client";
602
583
  _$enableDescriptorFormActions2();
603
584
  var _hs$3 = /* @__PURE__ */ _$hookSlots3(1);
604
585
  var _h$03 = /* @__PURE__ */ Symbol(_hs$3);
@@ -629,7 +610,7 @@ import {
629
610
  createScopedValue as _$createScopedValue3,
630
611
  hookSlots as _$hookSlots4,
631
612
  withSlot as _$withSlot3
632
- } from "octane";
613
+ } from "octane/internal/client";
633
614
  var _hs$4 = /* @__PURE__ */ _$hookSlots4(1);
634
615
  var _h$04 = /* @__PURE__ */ Symbol(_hs$4);
635
616
  var CodeBlockHeader = ({ language }) => {
@@ -660,7 +641,7 @@ var trimTrailingNewlines = (str) => {
660
641
  }
661
642
  return str.slice(0, end);
662
643
  };
663
- var HighlightedCodeBlockBody = /* @__PURE__ */ lazy(() => import("./highlighted-body-CLC3S4XW.js").then((mod) => ({ default: mod.HighlightedCodeBlockBody })));
644
+ var HighlightedCodeBlockBody = /* @__PURE__ */ lazy(() => import("./highlighted-body-E3VHJGC4.js").then((mod) => ({ default: mod.HighlightedCodeBlockBody })));
664
645
  var CodeBlock = ({
665
646
  code,
666
647
  language,
@@ -746,37 +727,30 @@ var CodeBlock = ({
746
727
  // src/lib/code-block/copy-button.tsrx
747
728
  import {
748
729
  createElementFromConfig as _$createElementFromConfig2,
749
- enableDescriptorFormActions as _$enableDescriptorFormActions5,
750
- enableHostDescriptors as _$enableHostDescriptors3
751
- } from "octane/internal/client";
752
- import {
753
730
  createScopedElement as _$createScopedElement5,
754
731
  createScopedValue as _$createScopedValue7,
732
+ enableDescriptorFormActions as _$enableDescriptorFormActions5,
733
+ enableHostDescriptors as _$enableHostDescriptors3,
755
734
  hookSlots as _$hookSlots7,
756
- useContext as useContext6,
757
- useEffect as useEffect2,
758
- useRef as useRef3,
759
- useState as useState2,
760
735
  withSlot as _$withSlot5
761
- } from "octane";
736
+ } from "octane/internal/client";
737
+ import { useContext as useContext6, useEffect as useEffect2, useRef as useRef3, useState as useState2 } from "octane";
762
738
 
763
739
  // src/lib/icon-context.tsrx
740
+ import { createContext as createContext4, useContext as useContext4, useRef as useRef2 } from "octane";
764
741
  import {
765
- createContext as createContext4,
766
742
  createScopedElement as _$createScopedElement4,
767
743
  createScopedValue as _$createScopedValue6,
768
- hookSlots as _$hookSlots6,
769
- useContext as useContext4,
770
- useRef as useRef2
771
- } from "octane";
772
- import { enableHostDescriptors as _$enableHostDescriptors2 } from "octane/internal/client";
744
+ enableHostDescriptors as _$enableHostDescriptors2,
745
+ hookSlots as _$hookSlots6
746
+ } from "octane/internal/client";
773
747
 
774
748
  // src/lib/icons.tsrx
775
749
  import {
776
750
  createHostElement as _$createHostElement2,
751
+ createScopedValue as _$createScopedValue5,
777
752
  enableDescriptorFormActions as _$enableDescriptorFormActions4
778
753
  } from "octane/internal/client";
779
- import { createScopedValue as _$createScopedValue5 } from "octane";
780
754
  _$enableDescriptorFormActions4();
781
755
  var CheckIcon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$createHostElement2(
782
756
  "svg",
@@ -1148,16 +1122,14 @@ var CodeBlockCopyButton = ({
1148
1122
  // src/lib/code-block/download-button.tsrx
1149
1123
  import {
1150
1124
  createElementFromConfig as _$createElementFromConfig3,
1151
- enableDescriptorFormActions as _$enableDescriptorFormActions6,
1152
- enableHostDescriptors as _$enableHostDescriptors4
1153
- } from "octane/internal/client";
1154
- import {
1155
1125
  createScopedElement as _$createScopedElement6,
1156
1126
  createScopedValue as _$createScopedValue8,
1127
+ enableDescriptorFormActions as _$enableDescriptorFormActions6,
1128
+ enableHostDescriptors as _$enableHostDescriptors4,
1157
1129
  hookSlots as _$hookSlots8,
1158
- useContext as useContext7,
1159
1130
  withSlot as _$withSlot6
1160
- } from "octane";
1131
+ } from "octane/internal/client";
1132
+ import { useContext as useContext7 } from "octane";
1161
1133
  _$enableDescriptorFormActions6();
1162
1134
  _$enableHostDescriptors4();
1163
1135
  var _hs$8 = /* @__PURE__ */ _$hookSlots8(4);
@@ -1518,15 +1490,13 @@ var CodeBlockDownloadButton = ({
1518
1490
  import {
1519
1491
  createElementFromConfig as _$createElementFromConfig4,
1520
1492
  createHostElement as _$createHostElement3,
1521
- enableHostDescriptors as _$enableHostDescriptors5
1522
- } from "octane/internal/client";
1523
- import {
1524
1493
  createScopedElement as _$createScopedElement7,
1525
1494
  createScopedValue as _$createScopedValue9,
1495
+ enableHostDescriptors as _$enableHostDescriptors5,
1526
1496
  hookSlots as _$hookSlots9,
1527
1497
  positionalChildren as _$positionalChildren2,
1528
1498
  withSlot as _$withSlot7
1529
- } from "octane";
1499
+ } from "octane/internal/client";
1530
1500
  _$enableHostDescriptors5();
1531
1501
  var _hs$9 = /* @__PURE__ */ _$hookSlots9(2);
1532
1502
  var _h$09 = /* @__PURE__ */ Symbol(_hs$9);
@@ -1547,25 +1517,19 @@ var CodeBlockSkeleton = () => {
1547
1517
  };
1548
1518
 
1549
1519
  // src/lib/image.tsrx
1550
- import {
1551
- createElement,
1552
- createScopedElement as _$createScopedElement8,
1553
- createScopedValue as _$createScopedValue10,
1554
- hookSlots as _$hookSlots10,
1555
- positionalChildren as _$positionalChildren3,
1556
- useCallback,
1557
- useEffect as useEffect3,
1558
- useRef as useRef4,
1559
- useState as useState3,
1560
- withSlot as _$withSlot8
1561
- } from "octane";
1520
+ import { createElement, useCallback, useEffect as useEffect3, useRef as useRef4, useState as useState3 } from "octane";
1562
1521
  import {
1563
1522
  createElementFromConfig as _$createElementFromConfig5,
1564
1523
  createHostElement as _$createHostElement4,
1524
+ createScopedElement as _$createScopedElement8,
1525
+ createScopedValue as _$createScopedValue10,
1565
1526
  enableHostDescriptors as _$enableHostDescriptors6,
1527
+ hookSlots as _$hookSlots10,
1566
1528
  memoPublish as _$memoPublish4,
1567
1529
  memoSlot as _$memoSlot4,
1568
- memoTake2 as _$memoTake22
1530
+ memoTake2 as _$memoTake22,
1531
+ positionalChildren as _$positionalChildren3,
1532
+ withSlot as _$withSlot8
1569
1533
  } from "octane/internal/client";
1570
1534
  _$enableHostDescriptors6();
1571
1535
  var _hs$10 = /* @__PURE__ */ _$hookSlots10(8);
@@ -1711,24 +1675,19 @@ var ImageComponent = ({
1711
1675
  };
1712
1676
 
1713
1677
  // src/lib/link-modal.tsrx
1678
+ import { Fragment as _$Fragment, useCallback as useCallback2, useEffect as useEffect4, useState as useState4 } from "octane";
1714
1679
  import {
1715
- Fragment as _$Fragment,
1680
+ createElementFromConfig as _$createElementFromConfig6,
1716
1681
  createScopedElement as _$createScopedElement9,
1717
1682
  createScopedValue as _$createScopedValue11,
1718
- hookSlots as _$hookSlots11,
1719
- positionalChildren as _$positionalChildren4,
1720
- useCallback as useCallback2,
1721
- useEffect as useEffect4,
1722
- useState as useState4,
1723
- withSlot as _$withSlot9
1724
- } from "octane";
1725
- import {
1726
- createElementFromConfig as _$createElementFromConfig6,
1727
1683
  enableHostDescriptors as _$enableHostDescriptors7,
1684
+ hookSlots as _$hookSlots11,
1728
1685
  memoPublish as _$memoPublish5,
1729
1686
  memoSlot as _$memoSlot5,
1730
1687
  memoTake1 as _$memoTake13,
1731
- memoTake2 as _$memoTake23
1688
+ memoTake2 as _$memoTake23,
1689
+ positionalChildren as _$positionalChildren4,
1690
+ withSlot as _$withSlot9
1732
1691
  } from "octane/internal/client";
1733
1692
 
1734
1693
  // src/lib/scroll-lock.ts
@@ -1895,27 +1854,18 @@ var LinkSafetyModal = ({ url, isOpen, onClose, onConfirm }) => {
1895
1854
  // src/lib/mermaid/download-button.tsrx
1896
1855
  import {
1897
1856
  createElementFromConfig as _$createElementFromConfig7,
1898
- enableHostDescriptors as _$enableHostDescriptors8
1899
- } from "octane/internal/client";
1900
- import {
1901
1857
  createScopedElement as _$createScopedElement10,
1902
1858
  createScopedValue as _$createScopedValue12,
1859
+ enableHostDescriptors as _$enableHostDescriptors8,
1903
1860
  hookSlots as _$hookSlots13,
1904
1861
  positionalChildren as _$positionalChildren5,
1905
- useContext as useContext9,
1906
- useEffect as useEffect5,
1907
- useRef as useRef5,
1908
- useState as useState5,
1909
1862
  withSlot as _$withSlot11
1910
- } from "octane";
1863
+ } from "octane/internal/client";
1864
+ import { useContext as useContext9, useEffect as useEffect5, useRef as useRef5, useState as useState5 } from "octane";
1911
1865
 
1912
1866
  // src/lib/plugin-context.tsrx
1913
- import {
1914
- createContext as createContext6,
1915
- hookSlots as _$hookSlots12,
1916
- useContext as useContext8,
1917
- withSlot as _$withSlot10
1918
- } from "octane";
1867
+ import { createContext as createContext6, useContext as useContext8 } from "octane";
1868
+ import { hookSlots as _$hookSlots12, withSlot as _$withSlot10 } from "octane/internal/client";
1919
1869
  var _hs$12 = /* @__PURE__ */ _$hookSlots12(5);
1920
1870
  var _h$012 = /* @__PURE__ */ Symbol(_hs$12);
1921
1871
  var _h$110 = /* @__PURE__ */ Symbol(_hs$12 + 1);
@@ -2109,19 +2059,19 @@ var MermaidDownloadDropdown = ({ chart, children, className, onDownload, config,
2109
2059
  import {
2110
2060
  Fragment as _$Fragment2,
2111
2061
  createPortal,
2112
- createScopedElement as _$createScopedElement11,
2113
- createScopedValue as _$createScopedValue13,
2114
- hookSlots as _$hookSlots14,
2115
- positionalChildren as _$positionalChildren6,
2116
2062
  useContext as useContext10,
2117
2063
  useEffect as useEffect6,
2118
- useState as useState6,
2119
- withSlot as _$withSlot12
2064
+ useState as useState6
2120
2065
  } from "octane";
2121
2066
  import {
2122
2067
  createElementFromConfig as _$createElementFromConfig8,
2068
+ createScopedElement as _$createScopedElement11,
2069
+ createScopedValue as _$createScopedValue13,
2123
2070
  enableDescriptorFormActions as _$enableDescriptorFormActions7,
2124
- enableHostDescriptors as _$enableHostDescriptors9
2071
+ enableHostDescriptors as _$enableHostDescriptors9,
2072
+ hookSlots as _$hookSlots14,
2073
+ positionalChildren as _$positionalChildren6,
2074
+ withSlot as _$withSlot12
2125
2075
  } from "octane/internal/client";
2126
2076
  _$enableDescriptorFormActions7();
2127
2077
  _$enableHostDescriptors9();
@@ -2248,33 +2198,26 @@ var MermaidFullscreenButton = ({ chart, config, onFullscreen, onExit, className,
2248
2198
  // src/lib/table/index.tsrx
2249
2199
  import {
2250
2200
  createElementFromConfig as _$createElementFromConfig12,
2251
- enableDescriptorFormActions as _$enableDescriptorFormActions8,
2252
- enableHostDescriptors as _$enableHostDescriptors13
2253
- } from "octane/internal/client";
2254
- import {
2255
2201
  createScopedElement as _$createScopedElement15,
2256
2202
  createScopedValue as _$createScopedValue17,
2203
+ enableDescriptorFormActions as _$enableDescriptorFormActions8,
2204
+ enableHostDescriptors as _$enableHostDescriptors13,
2257
2205
  hookSlots as _$hookSlots18,
2258
2206
  positionalChildren as _$positionalChildren10,
2259
2207
  withSlot as _$withSlot16
2260
- } from "octane";
2208
+ } from "octane/internal/client";
2261
2209
 
2262
2210
  // src/lib/table/copy-dropdown.tsrx
2263
2211
  import {
2264
2212
  createElementFromConfig as _$createElementFromConfig9,
2265
- enableHostDescriptors as _$enableHostDescriptors10
2266
- } from "octane/internal/client";
2267
- import {
2268
2213
  createScopedElement as _$createScopedElement12,
2269
2214
  createScopedValue as _$createScopedValue14,
2215
+ enableHostDescriptors as _$enableHostDescriptors10,
2270
2216
  hookSlots as _$hookSlots15,
2271
2217
  positionalChildren as _$positionalChildren7,
2272
- useContext as useContext11,
2273
- useEffect as useEffect7,
2274
- useRef as useRef6,
2275
- useState as useState7,
2276
2218
  withSlot as _$withSlot13
2277
- } from "octane";
2219
+ } from "octane/internal/client";
2220
+ import { useContext as useContext11, useEffect as useEffect7, useRef as useRef6, useState as useState7 } from "octane";
2278
2221
 
2279
2222
  // src/lib/table/utils.ts
2280
2223
  var TABLE_CONTAINER_SELECTOR = '[data-streamdown="table-wrapper"], [data-streamdown="table-fullscreen"]';
@@ -2555,19 +2498,14 @@ var TableCopyDropdown = ({ children, className, onCopy, onError, timeout = 2e3 }
2555
2498
  // src/lib/table/download-dropdown.tsrx
2556
2499
  import {
2557
2500
  createElementFromConfig as _$createElementFromConfig10,
2558
- enableHostDescriptors as _$enableHostDescriptors11
2559
- } from "octane/internal/client";
2560
- import {
2561
2501
  createScopedElement as _$createScopedElement13,
2562
2502
  createScopedValue as _$createScopedValue15,
2503
+ enableHostDescriptors as _$enableHostDescriptors11,
2563
2504
  hookSlots as _$hookSlots16,
2564
2505
  positionalChildren as _$positionalChildren8,
2565
- useContext as useContext12,
2566
- useEffect as useEffect8,
2567
- useRef as useRef7,
2568
- useState as useState8,
2569
2506
  withSlot as _$withSlot14
2570
- } from "octane";
2507
+ } from "octane/internal/client";
2508
+ import { useContext as useContext12, useEffect as useEffect8, useRef as useRef7, useState as useState8 } from "octane";
2571
2509
  _$enableHostDescriptors11();
2572
2510
  var _hs$16 = /* @__PURE__ */ _$hookSlots16(9);
2573
2511
  var _h$016 = /* @__PURE__ */ Symbol(_hs$16);
@@ -2725,18 +2663,18 @@ var TableDownloadDropdown = ({ children, className, onDownload, onError }) => {
2725
2663
  import {
2726
2664
  Fragment as _$Fragment3,
2727
2665
  createPortal as createPortal2,
2728
- createScopedElement as _$createScopedElement14,
2729
- createScopedValue as _$createScopedValue16,
2730
- hookSlots as _$hookSlots17,
2731
- positionalChildren as _$positionalChildren9,
2732
2666
  useContext as useContext13,
2733
2667
  useEffect as useEffect9,
2734
- useState as useState9,
2735
- withSlot as _$withSlot15
2668
+ useState as useState9
2736
2669
  } from "octane";
2737
2670
  import {
2738
2671
  createElementFromConfig as _$createElementFromConfig11,
2739
- enableHostDescriptors as _$enableHostDescriptors12
2672
+ createScopedElement as _$createScopedElement14,
2673
+ createScopedValue as _$createScopedValue16,
2674
+ enableHostDescriptors as _$enableHostDescriptors12,
2675
+ hookSlots as _$hookSlots17,
2676
+ positionalChildren as _$positionalChildren9,
2677
+ withSlot as _$withSlot15
2740
2678
  } from "octane/internal/client";
2741
2679
  _$enableHostDescriptors12();
2742
2680
  var _hs$17 = /* @__PURE__ */ _$hookSlots17(5);
@@ -2934,7 +2872,7 @@ var _h$262 = /* @__PURE__ */ Symbol(_hs$19 + 26);
2934
2872
  var _h$272 = /* @__PURE__ */ Symbol(_hs$19 + 27);
2935
2873
  var START_LINE_PATTERN = /startLine=(\d+)/;
2936
2874
  var NO_LINE_NUMBERS_PATTERN = /\bnoLineNumbers\b/;
2937
- var Mermaid2 = /* @__PURE__ */ lazy2(() => import("./mermaid-5UNLE7IK.js").then((mod) => ({ default: mod.Mermaid })));
2875
+ var Mermaid2 = /* @__PURE__ */ lazy2(() => import("./mermaid-I223DHWS.js").then((mod) => ({ default: mod.Mermaid })));
2938
2876
  var LANGUAGE_REGEX = /language-([^\s]+)/;
2939
2877
  function sameNodePosition(prev, next) {
2940
2878
  if (!(prev?.position || next?.position)) {
@@ -4649,25 +4587,20 @@ Object.assign(Streamdown, { displayName: "Streamdown" });
4649
4587
  // src/lib/mermaid/pan-zoom.tsrx
4650
4588
  import {
4651
4589
  createElementFromConfig as _$createElementFromConfig15,
4590
+ createScopedElement as _$createScopedElement18,
4591
+ createScopedValue as _$createScopedValue20,
4652
4592
  enableHostDescriptors as _$enableHostDescriptors16,
4593
+ hookSlots as _$hookSlots21,
4653
4594
  memoPublish as _$memoPublish8,
4654
4595
  memoSlot as _$memoSlot8,
4655
4596
  memoTake0 as _$memoTake03,
4656
4597
  memoTake1 as _$memoTake16,
4657
4598
  memoTake2 as _$memoTake25,
4658
- memoTake3 as _$memoTake34
4659
- } from "octane/internal/client";
4660
- import {
4661
- createScopedElement as _$createScopedElement18,
4662
- createScopedValue as _$createScopedValue20,
4663
- hookSlots as _$hookSlots21,
4599
+ memoTake3 as _$memoTake34,
4664
4600
  positionalChildren as _$positionalChildren13,
4665
- useCallback as useCallback4,
4666
- useEffect as useEffect11,
4667
- useRef as useRef9,
4668
- useState as useState12,
4669
4601
  withSlot as _$withSlot18
4670
- } from "octane";
4602
+ } from "octane/internal/client";
4603
+ import { useCallback as useCallback4, useEffect as useEffect11, useRef as useRef9, useState as useState12 } from "octane";
4671
4604
  _$enableHostDescriptors16();
4672
4605
  var _hs$21 = /* @__PURE__ */ _$hookSlots21(19);
4673
4606
  var _h$021 = /* @__PURE__ */ Symbol(_hs$21);
@@ -3,28 +3,22 @@ import {
3
3
  CodeBlockBody,
4
4
  StreamdownContext,
5
5
  useCodePlugin
6
- } from "./chunk-GT55VUAP.js";
6
+ } from "./chunk-CCMA6S4B.js";
7
7
 
8
8
  // src/lib/code-block/highlighted-body.tsrx
9
9
  import {
10
10
  createElementFromConfig as _$createElementFromConfig,
11
+ createScopedValue as _$createScopedValue,
11
12
  enableDescriptorFormActions as _$enableDescriptorFormActions,
12
13
  enableDescriptorFragmentRefs as _$enableDescriptorFragmentRefs,
13
14
  enableHostDescriptors as _$enableHostDescriptors,
15
+ hookSlots as _$hookSlots,
14
16
  memoPublish as _$memoPublish,
15
17
  memoSlot as _$memoSlot,
16
- memoTake4 as _$memoTake4
17
- } from "octane/internal/client";
18
- import {
19
- createScopedValue as _$createScopedValue,
20
- hookSlots as _$hookSlots,
21
- useContext,
22
- useEffect,
23
- useMemo,
24
- useRef,
25
- useState,
18
+ memoTake4 as _$memoTake4,
26
19
  withSlot as _$withSlot
27
- } from "octane";
20
+ } from "octane/internal/client";
21
+ import { useContext, useEffect, useMemo, useRef, useState } from "octane";
28
22
  _$enableDescriptorFormActions();
29
23
  _$enableDescriptorFragmentRefs();
30
24
  _$enableHostDescriptors();
@@ -1,7 +1,7 @@
1
1
  // octane-no-slot: this package already contains compiler-assigned hook slots.
2
2
  import {
3
3
  Mermaid
4
- } from "./chunk-VPK6UZ7K.js";
4
+ } from "./chunk-CCMA6S4B.js";
5
5
  export {
6
6
  Mermaid
7
7
  };
@@ -27,7 +27,7 @@ import {
27
27
  tableDataToMarkdown,
28
28
  tableDataToTSV,
29
29
  useIsCodeFenceIncomplete
30
- } from "./chunks/chunk-GT55VUAP.js";
30
+ } from "./chunks/chunk-CCMA6S4B.js";
31
31
  export {
32
32
  Block,
33
33
  CodeBlock,
@@ -3,26 +3,23 @@
3
3
  // src/lib/mermaid/index.tsrx
4
4
  import {
5
5
  createElement as _$createElement7,
6
+ useContext as useContext15,
7
+ useEffect as useEffect12,
8
+ useRef as useRef10,
9
+ useState as useState13
10
+ } from "octane/server";
11
+ import {
12
+ createElementFromConfig as _$createElementFromConfig16,
6
13
  createScopedElement as _$createScopedElement19,
7
14
  createScopedValue as _$createScopedValue21,
8
15
  hookSlots as _$hookSlots22,
9
16
  positionalChildren as _$positionalChildren14,
10
- useContext as useContext15,
11
- useEffect as useEffect12,
12
- useRef as useRef10,
13
- useState as useState13,
14
17
  withSlot as _$withSlot19
15
- } from "octane/server";
16
- import { createElementFromConfig as _$createElementFromConfig16 } from "octane/internal/server";
18
+ } from "octane/internal/server";
17
19
 
18
20
  // src/hooks/use-deferred-render.tsrx
19
- import {
20
- hookSlots as _$hookSlots,
21
- useEffect,
22
- useMemo,
23
- useRef,
24
- useState
25
- } from "octane/server";
21
+ import { hookSlots as _$hookSlots } from "octane/internal/server";
22
+ import { useEffect, useMemo, useRef, useState } from "octane/server";
26
23
  var _hs$ = /* @__PURE__ */ _$hookSlots(8);
27
24
  var _h$0 = /* @__PURE__ */ Symbol(_hs$);
28
25
  var _h$1 = /* @__PURE__ */ Symbol(_hs$ + 1);
@@ -181,11 +178,7 @@ import {
181
178
  createContext as createContext7,
182
179
  createElement as createElement3,
183
180
  createElement as _$createElement6,
184
- createScopedElement as _$createScopedElement17,
185
- createScopedValue as _$createScopedValue19,
186
- hookSlots as _$hookSlots20,
187
181
  memo as memo3,
188
- positionalChildren as _$positionalChildren12,
189
182
  useEffect as useEffect10,
190
183
  useId,
191
184
  useMemo as useMemo4,
@@ -193,7 +186,13 @@ import {
193
186
  useState as useState11,
194
187
  useTransition
195
188
  } from "octane/server";
196
- import { createElementFromConfig as _$createElementFromConfig14 } from "octane/internal/server";
189
+ import {
190
+ createElementFromConfig as _$createElementFromConfig14,
191
+ createScopedElement as _$createScopedElement17,
192
+ createScopedValue as _$createScopedValue19,
193
+ hookSlots as _$hookSlots20,
194
+ positionalChildren as _$positionalChildren12
195
+ } from "octane/internal/server";
197
196
  import { harden } from "rehype-harden";
198
197
  import rehypeRaw2 from "rehype-raw";
199
198
  import rehypeSanitize, { defaultSchema } from "rehype-sanitize";
@@ -361,32 +360,32 @@ import {
361
360
  Suspense as Suspense2,
362
361
  cloneElement,
363
362
  createElement as _$createElement5,
364
- createScopedElement as _$createScopedElement16,
365
- createScopedValue as _$createScopedValue18,
366
- hookSlots as _$hookSlots19,
367
363
  isValidElement,
368
364
  lazy as lazy2,
369
365
  memo as memo2,
370
- positionalChildren as _$positionalChildren11,
371
366
  useCallback as useCallback3,
372
367
  useContext as useContext14,
373
- useState as useState10,
374
- withSlot as _$withSlot17
368
+ useState as useState10
375
369
  } from "octane/server";
376
- import { createElementFromConfig as _$createElementFromConfig13 } from "octane/internal/server";
370
+ import {
371
+ createElementFromConfig as _$createElementFromConfig13,
372
+ createScopedElement as _$createScopedElement16,
373
+ createScopedValue as _$createScopedValue18,
374
+ hookSlots as _$hookSlots19,
375
+ positionalChildren as _$positionalChildren11,
376
+ withSlot as _$withSlot17
377
+ } from "octane/internal/server";
377
378
 
378
379
  // src/lib/code-block/index.tsrx
380
+ import { Suspense, lazy, useMemo as useMemo3 } from "octane/server";
379
381
  import {
380
- Suspense,
382
+ createElementFromConfig as _$createElementFromConfig,
381
383
  createScopedElement as _$createScopedElement3,
382
384
  createScopedValue as _$createScopedValue4,
383
385
  hookSlots as _$hookSlots5,
384
- lazy,
385
386
  positionalChildren as _$positionalChildren,
386
- useMemo as useMemo3,
387
387
  withSlot as _$withSlot4
388
- } from "octane/server";
389
- import { createElementFromConfig as _$createElementFromConfig } from "octane/internal/server";
388
+ } from "octane/internal/server";
390
389
 
391
390
  // src/lib/prefix-context.tsrx
392
391
  import { createContext as createContext2, useContext as useContext2 } from "octane/server";
@@ -426,10 +425,9 @@ import {
426
425
  createScopedElement as _$createScopedElement,
427
426
  createScopedValue as _$createScopedValue,
428
427
  hookSlots as _$hookSlots2,
429
- memo,
430
- useMemo as useMemo2,
431
428
  withSlot as _$withSlot
432
- } from "octane/server";
429
+ } from "octane/internal/server";
430
+ import { memo, useMemo as useMemo2 } from "octane/server";
433
431
  var _hs$2 = /* @__PURE__ */ _$hookSlots2(3);
434
432
  var _h$02 = /* @__PURE__ */ Symbol(_hs$2);
435
433
  var _h$12 = /* @__PURE__ */ Symbol(_hs$2 + 1);
@@ -540,12 +538,12 @@ var CodeBlockBody = memo(
540
538
  );
541
539
 
542
540
  // src/lib/code-block/container.tsrx
541
+ import { createElement as _$createElement } from "octane/server";
543
542
  import {
544
- createElement as _$createElement,
545
543
  createScopedValue as _$createScopedValue2,
546
544
  hookSlots as _$hookSlots3,
547
545
  withSlot as _$withSlot2
548
- } from "octane/server";
546
+ } from "octane/internal/server";
549
547
  var _hs$3 = /* @__PURE__ */ _$hookSlots3(1);
550
548
  var _h$03 = /* @__PURE__ */ Symbol(_hs$3);
551
549
  var CodeBlockContainer = ({ className, language, style, isIncomplete, ...props }) => {
@@ -575,7 +573,7 @@ import {
575
573
  createScopedValue as _$createScopedValue3,
576
574
  hookSlots as _$hookSlots4,
577
575
  withSlot as _$withSlot3
578
- } from "octane/server";
576
+ } from "octane/internal/server";
579
577
  var _hs$4 = /* @__PURE__ */ _$hookSlots4(1);
580
578
  var _h$04 = /* @__PURE__ */ Symbol(_hs$4);
581
579
  var CodeBlockHeader = ({ language }) => {
@@ -603,7 +601,7 @@ var trimTrailingNewlines = (str) => {
603
601
  }
604
602
  return str.slice(0, end);
605
603
  };
606
- var HighlightedCodeBlockBody = /* @__PURE__ */ lazy(() => import("./highlighted-body-ZEODJKZO.js").then((mod) => ({ default: mod.HighlightedCodeBlockBody })));
604
+ var HighlightedCodeBlockBody = /* @__PURE__ */ lazy(() => import("./highlighted-body-CGGZ43UR.js").then((mod) => ({ default: mod.HighlightedCodeBlockBody })));
607
605
  var CodeBlock = ({
608
606
  code,
609
607
  language,
@@ -686,33 +684,26 @@ var CodeBlock = ({
686
684
  };
687
685
 
688
686
  // src/lib/code-block/copy-button.tsrx
689
- import { createElementFromConfig as _$createElementFromConfig2 } from "octane/internal/server";
690
687
  import {
688
+ createElementFromConfig as _$createElementFromConfig2,
691
689
  createScopedElement as _$createScopedElement5,
692
690
  createScopedValue as _$createScopedValue7,
693
691
  hookSlots as _$hookSlots7,
694
- useContext as useContext6,
695
- useEffect as useEffect2,
696
- useRef as useRef3,
697
- useState as useState2,
698
692
  withSlot as _$withSlot5
699
- } from "octane/server";
693
+ } from "octane/internal/server";
694
+ import { useContext as useContext6, useEffect as useEffect2, useRef as useRef3, useState as useState2 } from "octane/server";
700
695
 
701
696
  // src/lib/icon-context.tsrx
697
+ import { createContext as createContext4, useContext as useContext4, useRef as useRef2 } from "octane/server";
702
698
  import {
703
- createContext as createContext4,
704
699
  createScopedElement as _$createScopedElement4,
705
700
  createScopedValue as _$createScopedValue6,
706
- hookSlots as _$hookSlots6,
707
- useContext as useContext4,
708
- useRef as useRef2
709
- } from "octane/server";
701
+ hookSlots as _$hookSlots6
702
+ } from "octane/internal/server";
710
703
 
711
704
  // src/lib/icons.tsrx
712
- import {
713
- createElement as _$createElement2,
714
- createScopedValue as _$createScopedValue5
715
- } from "octane/server";
705
+ import { createElement as _$createElement2 } from "octane/server";
706
+ import { createScopedValue as _$createScopedValue5 } from "octane/internal/server";
716
707
  var CheckIcon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$createElement2(
717
708
  "svg",
718
709
  {
@@ -1078,14 +1069,14 @@ var CodeBlockCopyButton = ({
1078
1069
  };
1079
1070
 
1080
1071
  // src/lib/code-block/download-button.tsrx
1081
- import { createElementFromConfig as _$createElementFromConfig3 } from "octane/internal/server";
1082
1072
  import {
1073
+ createElementFromConfig as _$createElementFromConfig3,
1083
1074
  createScopedElement as _$createScopedElement6,
1084
1075
  createScopedValue as _$createScopedValue8,
1085
1076
  hookSlots as _$hookSlots8,
1086
- useContext as useContext7,
1087
1077
  withSlot as _$withSlot6
1088
- } from "octane/server";
1078
+ } from "octane/internal/server";
1079
+ import { useContext as useContext7 } from "octane/server";
1089
1080
  var _hs$8 = /* @__PURE__ */ _$hookSlots8(4);
1090
1081
  var _h$08 = /* @__PURE__ */ Symbol(_hs$8);
1091
1082
  var _h$16 = /* @__PURE__ */ Symbol(_hs$8 + 1);
@@ -1441,15 +1432,15 @@ var CodeBlockDownloadButton = ({
1441
1432
  };
1442
1433
 
1443
1434
  // src/lib/code-block/skeleton.tsrx
1435
+ import { createElement as _$createElement3 } from "octane/server";
1444
1436
  import {
1445
- createElement as _$createElement3,
1437
+ createElementFromConfig as _$createElementFromConfig4,
1446
1438
  createScopedElement as _$createScopedElement7,
1447
1439
  createScopedValue as _$createScopedValue9,
1448
1440
  hookSlots as _$hookSlots9,
1449
1441
  positionalChildren as _$positionalChildren2,
1450
1442
  withSlot as _$withSlot7
1451
- } from "octane/server";
1452
- import { createElementFromConfig as _$createElementFromConfig4 } from "octane/internal/server";
1443
+ } from "octane/internal/server";
1453
1444
  var _hs$9 = /* @__PURE__ */ _$hookSlots9(2);
1454
1445
  var _h$09 = /* @__PURE__ */ Symbol(_hs$9);
1455
1446
  var _h$17 = /* @__PURE__ */ Symbol(_hs$9 + 1);
@@ -1472,17 +1463,19 @@ var CodeBlockSkeleton = () => {
1472
1463
  import {
1473
1464
  createElement,
1474
1465
  createElement as _$createElement4,
1466
+ useCallback,
1467
+ useEffect as useEffect3,
1468
+ useRef as useRef4,
1469
+ useState as useState3
1470
+ } from "octane/server";
1471
+ import {
1472
+ createElementFromConfig as _$createElementFromConfig5,
1475
1473
  createScopedElement as _$createScopedElement8,
1476
1474
  createScopedValue as _$createScopedValue10,
1477
1475
  hookSlots as _$hookSlots10,
1478
1476
  positionalChildren as _$positionalChildren3,
1479
- useCallback,
1480
- useEffect as useEffect3,
1481
- useRef as useRef4,
1482
- useState as useState3,
1483
1477
  withSlot as _$withSlot8
1484
- } from "octane/server";
1485
- import { createElementFromConfig as _$createElementFromConfig5 } from "octane/internal/server";
1478
+ } from "octane/internal/server";
1486
1479
  var _hs$10 = /* @__PURE__ */ _$hookSlots10(8);
1487
1480
  var _h$010 = /* @__PURE__ */ Symbol(_hs$10);
1488
1481
  var _h$18 = /* @__PURE__ */ Symbol(_hs$10 + 1);
@@ -1623,18 +1616,15 @@ var ImageComponent = ({
1623
1616
  };
1624
1617
 
1625
1618
  // src/lib/link-modal.tsrx
1619
+ import { Fragment as _$Fragment, useCallback as useCallback2, useEffect as useEffect4, useState as useState4 } from "octane/server";
1626
1620
  import {
1627
- Fragment as _$Fragment,
1621
+ createElementFromConfig as _$createElementFromConfig6,
1628
1622
  createScopedElement as _$createScopedElement9,
1629
1623
  createScopedValue as _$createScopedValue11,
1630
1624
  hookSlots as _$hookSlots11,
1631
1625
  positionalChildren as _$positionalChildren4,
1632
- useCallback as useCallback2,
1633
- useEffect as useEffect4,
1634
- useState as useState4,
1635
1626
  withSlot as _$withSlot9
1636
- } from "octane/server";
1637
- import { createElementFromConfig as _$createElementFromConfig6 } from "octane/internal/server";
1627
+ } from "octane/internal/server";
1638
1628
 
1639
1629
  // src/lib/scroll-lock.ts
1640
1630
  var activeCount = 0;
@@ -1795,26 +1785,19 @@ var LinkSafetyModal = ({ url, isOpen, onClose, onConfirm }) => {
1795
1785
  };
1796
1786
 
1797
1787
  // src/lib/mermaid/download-button.tsrx
1798
- import { createElementFromConfig as _$createElementFromConfig7 } from "octane/internal/server";
1799
1788
  import {
1789
+ createElementFromConfig as _$createElementFromConfig7,
1800
1790
  createScopedElement as _$createScopedElement10,
1801
1791
  createScopedValue as _$createScopedValue12,
1802
1792
  hookSlots as _$hookSlots13,
1803
1793
  positionalChildren as _$positionalChildren5,
1804
- useContext as useContext9,
1805
- useEffect as useEffect5,
1806
- useRef as useRef5,
1807
- useState as useState5,
1808
1794
  withSlot as _$withSlot11
1809
- } from "octane/server";
1795
+ } from "octane/internal/server";
1796
+ import { useContext as useContext9, useEffect as useEffect5, useRef as useRef5, useState as useState5 } from "octane/server";
1810
1797
 
1811
1798
  // src/lib/plugin-context.tsrx
1812
- import {
1813
- createContext as createContext6,
1814
- hookSlots as _$hookSlots12,
1815
- useContext as useContext8,
1816
- withSlot as _$withSlot10
1817
- } from "octane/server";
1799
+ import { createContext as createContext6, useContext as useContext8 } from "octane/server";
1800
+ import { hookSlots as _$hookSlots12, withSlot as _$withSlot10 } from "octane/internal/server";
1818
1801
  var _hs$12 = /* @__PURE__ */ _$hookSlots12(5);
1819
1802
  var _h$012 = /* @__PURE__ */ Symbol(_hs$12);
1820
1803
  var _h$110 = /* @__PURE__ */ Symbol(_hs$12 + 1);
@@ -2007,16 +1990,18 @@ var MermaidDownloadDropdown = ({ chart, children, className, onDownload, config,
2007
1990
  import {
2008
1991
  Fragment as _$Fragment2,
2009
1992
  createPortal,
1993
+ useContext as useContext10,
1994
+ useEffect as useEffect6,
1995
+ useState as useState6
1996
+ } from "octane/server";
1997
+ import {
1998
+ createElementFromConfig as _$createElementFromConfig8,
2010
1999
  createScopedElement as _$createScopedElement11,
2011
2000
  createScopedValue as _$createScopedValue13,
2012
2001
  hookSlots as _$hookSlots14,
2013
2002
  positionalChildren as _$positionalChildren6,
2014
- useContext as useContext10,
2015
- useEffect as useEffect6,
2016
- useState as useState6,
2017
2003
  withSlot as _$withSlot12
2018
- } from "octane/server";
2019
- import { createElementFromConfig as _$createElementFromConfig8 } from "octane/internal/server";
2004
+ } from "octane/internal/server";
2020
2005
  var _hs$14 = /* @__PURE__ */ _$hookSlots14(6);
2021
2006
  var _h$014 = /* @__PURE__ */ Symbol(_hs$14);
2022
2007
  var _h$112 = /* @__PURE__ */ Symbol(_hs$14 + 1);
@@ -2138,28 +2123,25 @@ var MermaidFullscreenButton = ({ chart, config, onFullscreen, onExit, className,
2138
2123
  };
2139
2124
 
2140
2125
  // src/lib/table/index.tsrx
2141
- import { createElementFromConfig as _$createElementFromConfig12 } from "octane/internal/server";
2142
2126
  import {
2127
+ createElementFromConfig as _$createElementFromConfig12,
2143
2128
  createScopedElement as _$createScopedElement15,
2144
2129
  createScopedValue as _$createScopedValue17,
2145
2130
  hookSlots as _$hookSlots18,
2146
2131
  positionalChildren as _$positionalChildren10,
2147
2132
  withSlot as _$withSlot16
2148
- } from "octane/server";
2133
+ } from "octane/internal/server";
2149
2134
 
2150
2135
  // src/lib/table/copy-dropdown.tsrx
2151
- import { createElementFromConfig as _$createElementFromConfig9 } from "octane/internal/server";
2152
2136
  import {
2137
+ createElementFromConfig as _$createElementFromConfig9,
2153
2138
  createScopedElement as _$createScopedElement12,
2154
2139
  createScopedValue as _$createScopedValue14,
2155
2140
  hookSlots as _$hookSlots15,
2156
2141
  positionalChildren as _$positionalChildren7,
2157
- useContext as useContext11,
2158
- useEffect as useEffect7,
2159
- useRef as useRef6,
2160
- useState as useState7,
2161
2142
  withSlot as _$withSlot13
2162
- } from "octane/server";
2143
+ } from "octane/internal/server";
2144
+ import { useContext as useContext11, useEffect as useEffect7, useRef as useRef6, useState as useState7 } from "octane/server";
2163
2145
 
2164
2146
  // src/lib/table/utils.ts
2165
2147
  var TABLE_CONTAINER_SELECTOR = '[data-streamdown="table-wrapper"], [data-streamdown="table-fullscreen"]';
@@ -2437,18 +2419,15 @@ var TableCopyDropdown = ({ children, className, onCopy, onError, timeout = 2e3 }
2437
2419
  };
2438
2420
 
2439
2421
  // src/lib/table/download-dropdown.tsrx
2440
- import { createElementFromConfig as _$createElementFromConfig10 } from "octane/internal/server";
2441
2422
  import {
2423
+ createElementFromConfig as _$createElementFromConfig10,
2442
2424
  createScopedElement as _$createScopedElement13,
2443
2425
  createScopedValue as _$createScopedValue15,
2444
2426
  hookSlots as _$hookSlots16,
2445
2427
  positionalChildren as _$positionalChildren8,
2446
- useContext as useContext12,
2447
- useEffect as useEffect8,
2448
- useRef as useRef7,
2449
- useState as useState8,
2450
2428
  withSlot as _$withSlot14
2451
- } from "octane/server";
2429
+ } from "octane/internal/server";
2430
+ import { useContext as useContext12, useEffect as useEffect8, useRef as useRef7, useState as useState8 } from "octane/server";
2452
2431
  var _hs$16 = /* @__PURE__ */ _$hookSlots16(9);
2453
2432
  var _h$016 = /* @__PURE__ */ Symbol(_hs$16);
2454
2433
  var _h$114 = /* @__PURE__ */ Symbol(_hs$16 + 1);
@@ -2605,16 +2584,18 @@ var TableDownloadDropdown = ({ children, className, onDownload, onError }) => {
2605
2584
  import {
2606
2585
  Fragment as _$Fragment3,
2607
2586
  createPortal as createPortal2,
2587
+ useContext as useContext13,
2588
+ useEffect as useEffect9,
2589
+ useState as useState9
2590
+ } from "octane/server";
2591
+ import {
2592
+ createElementFromConfig as _$createElementFromConfig11,
2608
2593
  createScopedElement as _$createScopedElement14,
2609
2594
  createScopedValue as _$createScopedValue16,
2610
2595
  hookSlots as _$hookSlots17,
2611
2596
  positionalChildren as _$positionalChildren9,
2612
- useContext as useContext13,
2613
- useEffect as useEffect9,
2614
- useState as useState9,
2615
2597
  withSlot as _$withSlot15
2616
- } from "octane/server";
2617
- import { createElementFromConfig as _$createElementFromConfig11 } from "octane/internal/server";
2598
+ } from "octane/internal/server";
2618
2599
  var _hs$17 = /* @__PURE__ */ _$hookSlots17(5);
2619
2600
  var _h$017 = /* @__PURE__ */ Symbol(_hs$17);
2620
2601
  var _h$115 = /* @__PURE__ */ Symbol(_hs$17 + 1);
@@ -2805,7 +2786,7 @@ var _h$262 = /* @__PURE__ */ Symbol(_hs$19 + 26);
2805
2786
  var _h$272 = /* @__PURE__ */ Symbol(_hs$19 + 27);
2806
2787
  var START_LINE_PATTERN = /startLine=(\d+)/;
2807
2788
  var NO_LINE_NUMBERS_PATTERN = /\bnoLineNumbers\b/;
2808
- var Mermaid2 = /* @__PURE__ */ lazy2(() => import("./mermaid-NYQLUUD3.js").then((mod) => ({ default: mod.Mermaid })));
2789
+ var Mermaid2 = /* @__PURE__ */ lazy2(() => import("./mermaid-CYVDAOSD.js").then((mod) => ({ default: mod.Mermaid })));
2809
2790
  var LANGUAGE_REGEX = /language-([^\s]+)/;
2810
2791
  function sameNodePosition(prev, next) {
2811
2792
  if (!(prev?.position || next?.position)) {
@@ -4459,18 +4440,15 @@ var Streamdown = memo3(({
4459
4440
  Object.assign(Streamdown, { displayName: "Streamdown" });
4460
4441
 
4461
4442
  // src/lib/mermaid/pan-zoom.tsrx
4462
- import { createElementFromConfig as _$createElementFromConfig15 } from "octane/internal/server";
4463
4443
  import {
4444
+ createElementFromConfig as _$createElementFromConfig15,
4464
4445
  createScopedElement as _$createScopedElement18,
4465
4446
  createScopedValue as _$createScopedValue20,
4466
4447
  hookSlots as _$hookSlots21,
4467
4448
  positionalChildren as _$positionalChildren13,
4468
- useCallback as useCallback4,
4469
- useEffect as useEffect11,
4470
- useRef as useRef9,
4471
- useState as useState12,
4472
4449
  withSlot as _$withSlot18
4473
- } from "octane/server";
4450
+ } from "octane/internal/server";
4451
+ import { useCallback as useCallback4, useEffect as useEffect11, useRef as useRef9, useState as useState12 } from "octane/server";
4474
4452
  var _hs$21 = /* @__PURE__ */ _$hookSlots21(19);
4475
4453
  var _h$021 = /* @__PURE__ */ Symbol(_hs$21);
4476
4454
  var _h$119 = /* @__PURE__ */ Symbol(_hs$21 + 1);
@@ -3,20 +3,16 @@ import {
3
3
  CodeBlockBody,
4
4
  StreamdownContext,
5
5
  useCodePlugin
6
- } from "./chunk-VPK6UZ7K.js";
6
+ } from "./chunk-YTEE5AVT.js";
7
7
 
8
8
  // src/lib/code-block/highlighted-body.tsrx
9
- import { createElementFromConfig as _$createElementFromConfig } from "octane/internal/server";
10
9
  import {
10
+ createElementFromConfig as _$createElementFromConfig,
11
11
  createScopedValue as _$createScopedValue,
12
12
  hookSlots as _$hookSlots,
13
- useContext,
14
- useEffect,
15
- useMemo,
16
- useRef,
17
- useState,
18
13
  withSlot as _$withSlot
19
- } from "octane/server";
14
+ } from "octane/internal/server";
15
+ import { useContext, useEffect, useMemo, useRef, useState } from "octane/server";
20
16
  var _hs$ = /* @__PURE__ */ _$hookSlots(5);
21
17
  var _h$0 = /* @__PURE__ */ Symbol(_hs$);
22
18
  var _h$1 = /* @__PURE__ */ Symbol(_hs$ + 1);
@@ -1,7 +1,7 @@
1
1
  // octane-no-slot: this package already contains compiler-assigned hook slots.
2
2
  import {
3
3
  Mermaid
4
- } from "./chunk-GT55VUAP.js";
4
+ } from "./chunk-YTEE5AVT.js";
5
5
  export {
6
6
  Mermaid
7
7
  };
@@ -27,7 +27,7 @@ import {
27
27
  tableDataToMarkdown,
28
28
  tableDataToTSV,
29
29
  useIsCodeFenceIncomplete
30
- } from "./chunks/chunk-VPK6UZ7K.js";
30
+ } from "./chunks/chunk-YTEE5AVT.js";
31
31
  export {
32
32
  Block,
33
33
  CodeBlock,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/streamdown",
3
- "version": "0.1.52",
3
+ "version": "0.1.53",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -92,16 +92,16 @@
92
92
  "unist-util-visit-parents": "^6.0.0"
93
93
  },
94
94
  "peerDependencies": {
95
- "octane": "^0.21.0"
95
+ "octane": "^0.22.0"
96
96
  },
97
97
  "devDependencies": {
98
- "@octanejs/testing-library": "0.1.73",
98
+ "@octanejs/testing-library": "0.1.74",
99
99
  "@testing-library/jest-dom": "^6.9.1",
100
- "@tsrx/react": "^0.4.5",
100
+ "@tsrx/react": "^0.5.3",
101
101
  "@types/react": "^19.2.17",
102
102
  "@types/react-dom": "^19.2.3",
103
103
  "esbuild": "^0.28.1",
104
- "octane": "0.21.0",
104
+ "octane": "0.22.0",
105
105
  "react": "19.2.7",
106
106
  "react-dom": "19.2.7",
107
107
  "streamdown": "2.5.0",