@octanejs/streamdown 0.1.36 → 0.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/chunks/{chunk-U3I54OBJ.js → chunk-3ZWXIWBP.js} +99 -99
- package/dist/client/chunks/{highlighted-body-PUZR4KPW.js → highlighted-body-ERU3INRP.js} +3 -3
- package/dist/{server/chunks/mermaid-EGA7TDDR.js → client/chunks/mermaid-CFBTUSI4.js} +1 -1
- package/dist/client/index.js +1 -1
- package/dist/server/chunks/{chunk-SZ5CVE3Y.js → chunk-GRC6QORD.js} +65 -65
- package/dist/server/chunks/{highlighted-body-7UTJYNOJ.js → highlighted-body-QPG662A4.js} +2 -2
- package/dist/{client/chunks/mermaid-VJLFYSWR.js → server/chunks/mermaid-2V227HSV.js} +1 -1
- package/dist/server/index.js +1 -1
- package/package.json +5 -5
|
@@ -56,7 +56,7 @@ function useDeferredRender(options = {}) {
|
|
|
56
56
|
const containerRef = useRef(null, _h$1);
|
|
57
57
|
const renderTimeoutRef = useRef(null, _h$2);
|
|
58
58
|
const idleCallbackRef = useRef(null, _h$3);
|
|
59
|
-
const requestIdleCallbackPolyfill = (__hks = _$memoSlot(_h$4
|
|
59
|
+
const requestIdleCallbackPolyfill = (__hks = _$memoSlot(_h$4), __hke = _$memoTake0(__hks), __hke === null ? _$memoPublish(__hks, (callback) => {
|
|
60
60
|
const start = Date.now();
|
|
61
61
|
return window.setTimeout(
|
|
62
62
|
() => {
|
|
@@ -68,12 +68,12 @@ function useDeferredRender(options = {}) {
|
|
|
68
68
|
1
|
|
69
69
|
);
|
|
70
70
|
}) : __hke.value);
|
|
71
|
-
const requestIdleCallbackWrapper = (__hkd0 = requestIdleCallbackPolyfill, __hks$ = _$memoSlot(_h$5
|
|
71
|
+
const requestIdleCallbackWrapper = (__hkd0 = requestIdleCallbackPolyfill, __hks$ = _$memoSlot(_h$5), __hke$ = _$memoTake1(__hks$, __hkd0), __hke$ === null ? _$memoPublish(
|
|
72
72
|
__hks$,
|
|
73
73
|
typeof window !== "undefined" && window.requestIdleCallback ? (cb, opts) => window.requestIdleCallback(cb, opts) : requestIdleCallbackPolyfill,
|
|
74
74
|
__hkd0
|
|
75
75
|
) : __hke$.value);
|
|
76
|
-
const cancelIdleCallbackWrapper = (__hks$2 = _$memoSlot(_h$6
|
|
76
|
+
const cancelIdleCallbackWrapper = (__hks$2 = _$memoSlot(_h$6), __hke$2 = _$memoTake0(__hks$2), __hke$2 === null ? _$memoPublish(__hks$2, typeof window !== "undefined" && window.cancelIdleCallback ? (id) => window.cancelIdleCallback(id) : (id) => {
|
|
77
77
|
clearTimeout(id);
|
|
78
78
|
}) : __hke$2.value);
|
|
79
79
|
useEffect(
|
|
@@ -485,12 +485,12 @@ var CodeBlockBody = /* @__PURE__ */ memo(
|
|
|
485
485
|
}) => {
|
|
486
486
|
let __hks, __hkd0, __hkd1, __hke, __hkr, __hks$, __hkd0$, __hkd1$, __hkd2, __hkv, __hke$;
|
|
487
487
|
const cn2 = _$withSlot(_h$02, useCn);
|
|
488
|
-
const lineClasses = (__hkd0 = cn2, __hkd1 = lineNumbers, __hks = _$memoSlot2(_h$12
|
|
488
|
+
const lineClasses = (__hkd0 = cn2, __hkd1 = lineNumbers, __hks = _$memoSlot2(_h$12), __hke = _$memoTake2(__hks, __hkd0, __hkd1), __hke === null ? _$memoPublish2(__hks, cn2("block", lineNumbers && LINE_NUMBER_CLASSES_BASE), __hkd0, __hkd1) : __hke.value);
|
|
489
489
|
{
|
|
490
490
|
__hkd0$ = result.bg;
|
|
491
491
|
__hkd1$ = result.fg;
|
|
492
492
|
__hkd2 = result.rootStyle;
|
|
493
|
-
__hks$ = _$memoSlot2(_h$22
|
|
493
|
+
__hks$ = _$memoSlot2(_h$22);
|
|
494
494
|
__hke$ = _$memoTake3(__hks$, __hkd0$, __hkd1$, __hkd2);
|
|
495
495
|
if (__hke$ === null) {
|
|
496
496
|
__hkl: {
|
|
@@ -639,7 +639,7 @@ var trimTrailingNewlines = (str) => {
|
|
|
639
639
|
}
|
|
640
640
|
return str.slice(0, end);
|
|
641
641
|
};
|
|
642
|
-
var HighlightedCodeBlockBody = /* @__PURE__ */ lazy(() => import("./highlighted-body-
|
|
642
|
+
var HighlightedCodeBlockBody = /* @__PURE__ */ lazy(() => import("./highlighted-body-ERU3INRP.js").then((mod) => ({ default: mod.HighlightedCodeBlockBody })));
|
|
643
643
|
var CodeBlock = ({
|
|
644
644
|
code,
|
|
645
645
|
language,
|
|
@@ -652,8 +652,8 @@ var CodeBlock = ({
|
|
|
652
652
|
}) => {
|
|
653
653
|
let __hks, __hkd0, __hke, __hks$, __hkd0$, __hke$;
|
|
654
654
|
const cn2 = _$withSlot4(_h$05, useCn);
|
|
655
|
-
const trimmedCode = (__hkd0 = code, __hks = _$memoSlot3(_h$13
|
|
656
|
-
const raw = (__hkd0$ = trimmedCode, __hks$ = _$memoSlot3(_h$23
|
|
655
|
+
const trimmedCode = (__hkd0 = code, __hks = _$memoSlot3(_h$13), __hke = _$memoTake12(__hks, __hkd0), __hke === null ? _$memoPublish3(__hks, trimTrailingNewlines(code), __hkd0) : __hke.value);
|
|
656
|
+
const raw = (__hkd0$ = trimmedCode, __hks$ = _$memoSlot3(_h$23), __hke$ = _$memoTake12(__hks$, __hkd0$), __hke$ === null ? _$memoPublish3(
|
|
657
657
|
__hks$,
|
|
658
658
|
{
|
|
659
659
|
bg: "transparent",
|
|
@@ -677,7 +677,7 @@ var CodeBlock = ({
|
|
|
677
677
|
CodeBlockContainer,
|
|
678
678
|
{ isIncomplete, language },
|
|
679
679
|
() => _$positionalChildren([
|
|
680
|
-
_$createScopedValue4(() => _$createElementFromConfig("c:
|
|
680
|
+
_$createScopedValue4(() => _$createElementFromConfig("c:b1a7985b", CodeBlockHeader, { language })),
|
|
681
681
|
children ? _$createScopedValue4(() => _$createScopedElement3(
|
|
682
682
|
"div",
|
|
683
683
|
{
|
|
@@ -695,7 +695,7 @@ var CodeBlock = ({
|
|
|
695
695
|
_$createScopedValue4(() => _$createScopedElement3(
|
|
696
696
|
Suspense,
|
|
697
697
|
{
|
|
698
|
-
fallback: _$createScopedValue4(() => _$createElementFromConfig("c:
|
|
698
|
+
fallback: _$createScopedValue4(() => _$createElementFromConfig("c:7ee233f9", CodeBlockBody, {
|
|
699
699
|
className,
|
|
700
700
|
language,
|
|
701
701
|
lineNumbers,
|
|
@@ -704,7 +704,7 @@ var CodeBlock = ({
|
|
|
704
704
|
...rest
|
|
705
705
|
}))
|
|
706
706
|
},
|
|
707
|
-
() => _$createScopedValue4(() => _$createElementFromConfig("c:
|
|
707
|
+
() => _$createScopedValue4(() => _$createElementFromConfig("c:508f3b6e", HighlightedCodeBlockBody, {
|
|
708
708
|
className,
|
|
709
709
|
code: trimmedCode,
|
|
710
710
|
language,
|
|
@@ -713,12 +713,12 @@ var CodeBlock = ({
|
|
|
713
713
|
startLine,
|
|
714
714
|
...rest
|
|
715
715
|
})),
|
|
716
|
-
"c:
|
|
716
|
+
"c:0cbee46f"
|
|
717
717
|
))
|
|
718
718
|
]),
|
|
719
|
-
"c:
|
|
719
|
+
"c:81dc39c7"
|
|
720
720
|
)),
|
|
721
|
-
"c:
|
|
721
|
+
"c:f0f386de"
|
|
722
722
|
));
|
|
723
723
|
};
|
|
724
724
|
|
|
@@ -1009,7 +1009,7 @@ var IconProvider = ({ icons, children }) => {
|
|
|
1009
1009
|
prevValueRef.current = icons ? { ...defaultIcons, ...icons } : defaultIcons;
|
|
1010
1010
|
}
|
|
1011
1011
|
const value = prevValueRef.current;
|
|
1012
|
-
return _$createScopedValue6(() => _$createScopedElement4(IconContext, { value }, () => children, "c:
|
|
1012
|
+
return _$createScopedValue6(() => _$createScopedElement4(IconContext, { value }, () => children, "c:6ab2322e"));
|
|
1013
1013
|
};
|
|
1014
1014
|
var useIcons = () => useContext4(IconContext);
|
|
1015
1015
|
|
|
@@ -1110,7 +1110,7 @@ var CodeBlockCopyButton = ({
|
|
|
1110
1110
|
type: "button",
|
|
1111
1111
|
...props
|
|
1112
1112
|
},
|
|
1113
|
-
() => children ?? _$createElementFromConfig2("c:
|
|
1113
|
+
() => children ?? _$createElementFromConfig2("c:2ca7e394", Icon, { size: 14 })
|
|
1114
1114
|
));
|
|
1115
1115
|
};
|
|
1116
1116
|
|
|
@@ -1473,7 +1473,7 @@ var CodeBlockDownloadButton = ({
|
|
|
1473
1473
|
type: "button",
|
|
1474
1474
|
...props
|
|
1475
1475
|
},
|
|
1476
|
-
() => children ?? _$createScopedValue8(() => _$createElementFromConfig3("c:
|
|
1476
|
+
() => children ?? _$createScopedValue8(() => _$createElementFromConfig3("c:55ee5312", icons.DownloadIcon, { size: 14 }))
|
|
1477
1477
|
));
|
|
1478
1478
|
};
|
|
1479
1479
|
|
|
@@ -1500,7 +1500,7 @@ var CodeBlockSkeleton = () => {
|
|
|
1500
1500
|
},
|
|
1501
1501
|
() => _$positionalChildren2([
|
|
1502
1502
|
_$createScopedValue9(() => _$createElement3("div", { className: cn2("h-[46px] w-full bg-muted/80") })),
|
|
1503
|
-
_$createScopedValue9(() => _$createScopedElement7("div", { className: cn2("flex w-full items-center justify-center p-4") }, () => _$createScopedValue9(() => _$createElementFromConfig4("c:
|
|
1503
|
+
_$createScopedValue9(() => _$createScopedElement7("div", { className: cn2("flex w-full items-center justify-center p-4") }, () => _$createScopedValue9(() => _$createElementFromConfig4("c:3a952379", Loader2Icon2, { className: cn2("size-4 animate-spin") }))))
|
|
1504
1504
|
])
|
|
1505
1505
|
));
|
|
1506
1506
|
};
|
|
@@ -1567,7 +1567,7 @@ var ImageComponent = ({
|
|
|
1567
1567
|
[src],
|
|
1568
1568
|
_h$53
|
|
1569
1569
|
);
|
|
1570
|
-
const handleLoad = (__hkd0 = onLoadProp, __hkd1 = src, __hks = _$memoSlot4(_h$63
|
|
1570
|
+
const handleLoad = (__hkd0 = onLoadProp, __hkd1 = src, __hks = _$memoSlot4(_h$63), __hke = _$memoTake22(__hks, __hkd0, __hkd1), __hke === null ? _$memoPublish4(
|
|
1571
1571
|
__hks,
|
|
1572
1572
|
(event) => {
|
|
1573
1573
|
setImageState({ error: false, loaded: true, source: src });
|
|
@@ -1576,7 +1576,7 @@ var ImageComponent = ({
|
|
|
1576
1576
|
__hkd0,
|
|
1577
1577
|
__hkd1
|
|
1578
1578
|
) : __hke.value);
|
|
1579
|
-
const handleError = (__hkd0$ = onErrorProp, __hkd1$ = src, __hks$ = _$memoSlot4(_h$72
|
|
1579
|
+
const handleError = (__hkd0$ = onErrorProp, __hkd1$ = src, __hks$ = _$memoSlot4(_h$72), __hke$ = _$memoTake22(__hks$, __hkd0$, __hkd1$), __hke$ === null ? _$memoPublish4(
|
|
1580
1580
|
__hks$,
|
|
1581
1581
|
(event) => {
|
|
1582
1582
|
setImageState({ error: true, loaded: false, source: src });
|
|
@@ -1661,7 +1661,7 @@ var ImageComponent = ({
|
|
|
1661
1661
|
title: t.downloadImage,
|
|
1662
1662
|
type: "button"
|
|
1663
1663
|
},
|
|
1664
|
-
() => _$createElementFromConfig5("c:
|
|
1664
|
+
() => _$createElementFromConfig5("c:95209ebd", DownloadIcon2, { size: 14 })
|
|
1665
1665
|
))
|
|
1666
1666
|
])
|
|
1667
1667
|
));
|
|
@@ -1717,7 +1717,7 @@ var LinkSafetyModal = ({ url, isOpen, onClose, onConfirm }) => {
|
|
|
1717
1717
|
const cn2 = _$withSlot9(_h$19, useCn);
|
|
1718
1718
|
const [copied, setCopied] = useState4(false, _h$27);
|
|
1719
1719
|
const t = _$withSlot9(_h$35, useTranslations);
|
|
1720
|
-
const handleCopy = (__hkd0 = url, __hks = _$memoSlot5(_h$44
|
|
1720
|
+
const handleCopy = (__hkd0 = url, __hks = _$memoSlot5(_h$44), __hke = _$memoTake13(__hks, __hkd0), __hke === null ? _$memoPublish5(
|
|
1721
1721
|
__hks,
|
|
1722
1722
|
async () => {
|
|
1723
1723
|
try {
|
|
@@ -1729,7 +1729,7 @@ var LinkSafetyModal = ({ url, isOpen, onClose, onConfirm }) => {
|
|
|
1729
1729
|
},
|
|
1730
1730
|
__hkd0
|
|
1731
1731
|
) : __hke.value);
|
|
1732
|
-
const handleConfirm = (__hkd0$ = onConfirm, __hkd1 = onClose, __hks$ = _$memoSlot5(_h$54
|
|
1732
|
+
const handleConfirm = (__hkd0$ = onConfirm, __hkd1 = onClose, __hks$ = _$memoSlot5(_h$54), __hke$ = _$memoTake23(__hks$, __hkd0$, __hkd1), __hke$ === null ? _$memoPublish5(
|
|
1733
1733
|
__hks$,
|
|
1734
1734
|
() => {
|
|
1735
1735
|
onConfirm();
|
|
@@ -1791,7 +1791,7 @@ var LinkSafetyModal = ({ url, isOpen, onClose, onConfirm }) => {
|
|
|
1791
1791
|
title: t.close,
|
|
1792
1792
|
type: "button"
|
|
1793
1793
|
},
|
|
1794
|
-
() => _$createElementFromConfig6("c:
|
|
1794
|
+
() => _$createElementFromConfig6("c:f25f9cfa", XIcon2, { size: 16 })
|
|
1795
1795
|
)),
|
|
1796
1796
|
_$createScopedValue11(() => _$createScopedElement9("div", { className: cn2("flex flex-col gap-2") }, () => _$positionalChildren4([
|
|
1797
1797
|
_$createScopedValue11(() => _$createScopedElement9(
|
|
@@ -1800,7 +1800,7 @@ var LinkSafetyModal = ({ url, isOpen, onClose, onConfirm }) => {
|
|
|
1800
1800
|
className: cn2("flex items-center gap-2 font-semibold text-lg")
|
|
1801
1801
|
},
|
|
1802
1802
|
() => _$positionalChildren4([
|
|
1803
|
-
_$createElementFromConfig6("c:
|
|
1803
|
+
_$createElementFromConfig6("c:b24b7f47", ExternalLinkIcon2, { size: 20 }),
|
|
1804
1804
|
_$createScopedElement9("span", {}, () => t.openExternalLink)
|
|
1805
1805
|
])
|
|
1806
1806
|
)),
|
|
@@ -1822,10 +1822,10 @@ var LinkSafetyModal = ({ url, isOpen, onClose, onConfirm }) => {
|
|
|
1822
1822
|
type: "button"
|
|
1823
1823
|
},
|
|
1824
1824
|
() => copied ? _$createScopedElement9(_$Fragment, {}, () => _$positionalChildren4([
|
|
1825
|
-
_$createElementFromConfig6("c:
|
|
1825
|
+
_$createElementFromConfig6("c:4e0c0982", CheckIcon2, { size: 14 }),
|
|
1826
1826
|
_$createScopedElement9("span", {}, () => t.copied)
|
|
1827
1827
|
])) : _$createScopedElement9(_$Fragment, {}, () => _$positionalChildren4([
|
|
1828
|
-
_$createElementFromConfig6("c:
|
|
1828
|
+
_$createElementFromConfig6("c:26f0efcf", CopyIcon2, { size: 14 }),
|
|
1829
1829
|
_$createScopedElement9("span", {}, () => t.copyLink)
|
|
1830
1830
|
]))
|
|
1831
1831
|
)),
|
|
@@ -1837,7 +1837,7 @@ var LinkSafetyModal = ({ url, isOpen, onClose, onConfirm }) => {
|
|
|
1837
1837
|
type: "button"
|
|
1838
1838
|
},
|
|
1839
1839
|
() => _$positionalChildren4([
|
|
1840
|
-
_$createElementFromConfig6("c:
|
|
1840
|
+
_$createElementFromConfig6("c:6019ab7a", ExternalLinkIcon2, { size: 14 }),
|
|
1841
1841
|
_$createScopedElement9("span", {}, () => t.openLink)
|
|
1842
1842
|
])
|
|
1843
1843
|
))
|
|
@@ -2013,7 +2013,7 @@ var MermaidDownloadDropdown = ({ chart, children, className, onDownload, config,
|
|
|
2013
2013
|
title: t.downloadDiagram,
|
|
2014
2014
|
type: "button"
|
|
2015
2015
|
},
|
|
2016
|
-
() => children ?? _$createScopedValue12(() => _$createElementFromConfig7("c:
|
|
2016
|
+
() => children ?? _$createScopedValue12(() => _$createElementFromConfig7("c:e1ebc763", icons.DownloadIcon, { size: 14 }))
|
|
2017
2017
|
)),
|
|
2018
2018
|
isOpen ? _$createScopedValue12(() => _$createScopedElement10(
|
|
2019
2019
|
"div",
|
|
@@ -2140,7 +2140,7 @@ var MermaidFullscreenButton = ({ chart, config, onFullscreen, onExit, className,
|
|
|
2140
2140
|
type: "button",
|
|
2141
2141
|
...props
|
|
2142
2142
|
},
|
|
2143
|
-
() => _$createElementFromConfig8("c:
|
|
2143
|
+
() => _$createElementFromConfig8("c:485658f4", Maximize2Icon2, { size: 14 })
|
|
2144
2144
|
)),
|
|
2145
2145
|
isFullscreen ? /* @__PURE__ */ createPortal(
|
|
2146
2146
|
_$createScopedValue13(() => _$createScopedElement11(
|
|
@@ -2165,7 +2165,7 @@ var MermaidFullscreenButton = ({ chart, config, onFullscreen, onExit, className,
|
|
|
2165
2165
|
title: t.exitFullscreen,
|
|
2166
2166
|
type: "button"
|
|
2167
2167
|
},
|
|
2168
|
-
() => _$createElementFromConfig8("c:
|
|
2168
|
+
() => _$createElementFromConfig8("c:4988e383", XIcon2, { size: 20 })
|
|
2169
2169
|
)),
|
|
2170
2170
|
_$createScopedValue13(() => _$createScopedElement11(
|
|
2171
2171
|
"div",
|
|
@@ -2175,7 +2175,7 @@ var MermaidFullscreenButton = ({ chart, config, onFullscreen, onExit, className,
|
|
|
2175
2175
|
onKeyDown: (e) => e.stopPropagation(),
|
|
2176
2176
|
role: "presentation"
|
|
2177
2177
|
},
|
|
2178
|
-
() => _$createScopedValue13(() => _$createElementFromConfig8("c:
|
|
2178
|
+
() => _$createScopedValue13(() => _$createElementFromConfig8("c:d69fc964", Mermaid, {
|
|
2179
2179
|
chart,
|
|
2180
2180
|
className: cn2("size-full [&_svg]:h-auto [&_svg]:w-auto"),
|
|
2181
2181
|
config,
|
|
@@ -2446,7 +2446,7 @@ var TableCopyDropdown = ({ children, className, onCopy, onError, timeout = 2e3 }
|
|
|
2446
2446
|
title: t.copyTable,
|
|
2447
2447
|
type: "button"
|
|
2448
2448
|
},
|
|
2449
|
-
() => children ?? _$createElementFromConfig9("c:
|
|
2449
|
+
() => children ?? _$createElementFromConfig9("c:bb5b1f7c", Icon, { height: 14, width: 14 })
|
|
2450
2450
|
)),
|
|
2451
2451
|
isOpen ? _$createScopedValue14(() => _$createScopedElement12(
|
|
2452
2452
|
"div",
|
|
@@ -2566,7 +2566,7 @@ var TableDownloadButton = ({
|
|
|
2566
2566
|
title: format === "csv" ? t.downloadTableAsCsv : t.downloadTableAsMarkdown,
|
|
2567
2567
|
type: "button"
|
|
2568
2568
|
},
|
|
2569
|
-
() => children ?? _$createScopedValue15(() => _$createElementFromConfig10("c:
|
|
2569
|
+
() => children ?? _$createScopedValue15(() => _$createElementFromConfig10("c:1573743b", icons.DownloadIcon, { size: 14 }))
|
|
2570
2570
|
));
|
|
2571
2571
|
};
|
|
2572
2572
|
var TableDownloadDropdown = ({ children, className, onDownload, onError }) => {
|
|
@@ -2621,7 +2621,7 @@ var TableDownloadDropdown = ({ children, className, onDownload, onError }) => {
|
|
|
2621
2621
|
title: t.downloadTable,
|
|
2622
2622
|
type: "button"
|
|
2623
2623
|
},
|
|
2624
|
-
() => children ?? _$createScopedValue15(() => _$createElementFromConfig10("c:
|
|
2624
|
+
() => children ?? _$createScopedValue15(() => _$createElementFromConfig10("c:0577d643", icons.DownloadIcon, { size: 14 }))
|
|
2625
2625
|
)),
|
|
2626
2626
|
isOpen ? _$createScopedValue15(() => _$createScopedElement13(
|
|
2627
2627
|
"div",
|
|
@@ -2715,7 +2715,7 @@ var TableFullscreenButton = ({ children, className, showCopy = true, showDownloa
|
|
|
2715
2715
|
title: t.viewFullscreen,
|
|
2716
2716
|
type: "button"
|
|
2717
2717
|
},
|
|
2718
|
-
() => _$createElementFromConfig11("c:
|
|
2718
|
+
() => _$createElementFromConfig11("c:c35b7450", Maximize2Icon2, { size: 14 })
|
|
2719
2719
|
)),
|
|
2720
2720
|
isFullscreen ? /* @__PURE__ */ createPortal2(
|
|
2721
2721
|
_$createScopedValue16(() => _$createScopedElement14(
|
|
@@ -2743,8 +2743,8 @@ var TableFullscreenButton = ({ children, className, showCopy = true, showDownloa
|
|
|
2743
2743
|
},
|
|
2744
2744
|
() => _$positionalChildren9([
|
|
2745
2745
|
_$createScopedValue16(() => _$createScopedElement14("div", { className: cn2("flex items-center justify-end gap-1 p-4") }, () => _$positionalChildren9([
|
|
2746
|
-
showCopy ? _$createElementFromConfig11("c:
|
|
2747
|
-
showDownload ? _$createElementFromConfig11("c:
|
|
2746
|
+
showCopy ? _$createElementFromConfig11("c:17ae7bd8", TableCopyDropdown, {}) : null,
|
|
2747
|
+
showDownload ? _$createElementFromConfig11("c:d4e67ae5", TableDownloadDropdown, {}) : null,
|
|
2748
2748
|
_$createScopedValue16(() => _$createScopedElement14(
|
|
2749
2749
|
"button",
|
|
2750
2750
|
{
|
|
@@ -2753,7 +2753,7 @@ var TableFullscreenButton = ({ children, className, showCopy = true, showDownloa
|
|
|
2753
2753
|
title: t.exitFullscreen,
|
|
2754
2754
|
type: "button"
|
|
2755
2755
|
},
|
|
2756
|
-
() => _$createElementFromConfig11("c:
|
|
2756
|
+
() => _$createElementFromConfig11("c:8da9ebca", XIcon2, { size: 20 })
|
|
2757
2757
|
))
|
|
2758
2758
|
]))),
|
|
2759
2759
|
_$createScopedValue16(() => _$createScopedElement14(
|
|
@@ -2803,9 +2803,9 @@ var Table = ({
|
|
|
2803
2803
|
},
|
|
2804
2804
|
() => _$positionalChildren10([
|
|
2805
2805
|
hasAnyControl ? _$createScopedValue17(() => _$createScopedElement15("div", { className: cn2("flex items-center justify-end gap-1") }, () => _$positionalChildren10([
|
|
2806
|
-
hasCopy ? _$createElementFromConfig12("c:
|
|
2807
|
-
hasDownload ? _$createElementFromConfig12("c:
|
|
2808
|
-
hasFullscreen ? _$createScopedValue17(() => _$createScopedElement15(TableFullscreenButton, { showCopy: hasCopy, showDownload: hasDownload }, () => children, "c:
|
|
2806
|
+
hasCopy ? _$createElementFromConfig12("c:ab0b713f", TableCopyDropdown, {}) : null,
|
|
2807
|
+
hasDownload ? _$createElementFromConfig12("c:c7fc1643", TableDownloadDropdown, {}) : null,
|
|
2808
|
+
hasFullscreen ? _$createScopedValue17(() => _$createScopedElement15(TableFullscreenButton, { showCopy: hasCopy, showDownload: hasDownload }, () => children, "c:2908a114")) : null
|
|
2809
2809
|
]))) : null,
|
|
2810
2810
|
_$createScopedValue17(() => _$createScopedElement15(
|
|
2811
2811
|
"div",
|
|
@@ -2858,7 +2858,7 @@ var _h$262 = /* @__PURE__ */ Symbol(_hs$19 + 26);
|
|
|
2858
2858
|
var _h$272 = /* @__PURE__ */ Symbol(_hs$19 + 27);
|
|
2859
2859
|
var START_LINE_PATTERN = /startLine=(\d+)/;
|
|
2860
2860
|
var NO_LINE_NUMBERS_PATTERN = /\bnoLineNumbers\b/;
|
|
2861
|
-
var Mermaid2 = /* @__PURE__ */ lazy2(() => import("./mermaid-
|
|
2861
|
+
var Mermaid2 = /* @__PURE__ */ lazy2(() => import("./mermaid-CFBTUSI4.js").then((mod) => ({ default: mod.Mermaid })));
|
|
2862
2862
|
var LANGUAGE_REGEX = /language-([^\s]+)/;
|
|
2863
2863
|
function sameNodePosition(prev, next) {
|
|
2864
2864
|
if (!(prev?.position || next?.position)) {
|
|
@@ -3003,7 +3003,7 @@ var LinkComponent = ({ children, className, href, node, ...props }) => {
|
|
|
3003
3003
|
const { linkSafety } = useContext14(StreamdownContext);
|
|
3004
3004
|
const [isModalOpen, setIsModalOpen] = useState10(false, _h$68);
|
|
3005
3005
|
const isIncomplete = href === "streamdown:incomplete-link";
|
|
3006
|
-
const handleClick = (__hkd0 = linkSafety, __hkd1 = href, __hkd2 = isIncomplete, __hks = _$memoSlot6(_h$75
|
|
3006
|
+
const handleClick = (__hkd0 = linkSafety, __hkd1 = href, __hkd2 = isIncomplete, __hks = _$memoSlot6(_h$75), __hke = _$memoTake32(__hks, __hkd0, __hkd1, __hkd2), __hke === null ? _$memoPublish6(
|
|
3007
3007
|
__hks,
|
|
3008
3008
|
async (e) => {
|
|
3009
3009
|
if (!(linkSafety?.enabled && href) || isIncomplete) {
|
|
@@ -3023,7 +3023,7 @@ var LinkComponent = ({ children, className, href, node, ...props }) => {
|
|
|
3023
3023
|
__hkd1,
|
|
3024
3024
|
__hkd2
|
|
3025
3025
|
) : __hke.value);
|
|
3026
|
-
const handleConfirm = (__hkd0$ = href, __hks$ = _$memoSlot6(_h$82
|
|
3026
|
+
const handleConfirm = (__hkd0$ = href, __hks$ = _$memoSlot6(_h$82), __hke$ = _$memoTake14(__hks$, __hkd0$), __hke$ === null ? _$memoPublish6(
|
|
3027
3027
|
__hks$,
|
|
3028
3028
|
() => {
|
|
3029
3029
|
if (href) {
|
|
@@ -3032,7 +3032,7 @@ var LinkComponent = ({ children, className, href, node, ...props }) => {
|
|
|
3032
3032
|
},
|
|
3033
3033
|
__hkd0$
|
|
3034
3034
|
) : __hke$.value);
|
|
3035
|
-
const handleCloseModal = (__hks$2 = _$memoSlot6(_h$9
|
|
3035
|
+
const handleCloseModal = (__hks$2 = _$memoSlot6(_h$9), __hke$2 = _$memoTake02(__hks$2), __hke$2 === null ? _$memoPublish6(__hks$2, () => {
|
|
3036
3036
|
setIsModalOpen(false);
|
|
3037
3037
|
}) : __hke$2.value);
|
|
3038
3038
|
const modalProps = {
|
|
@@ -3054,7 +3054,7 @@ var LinkComponent = ({ children, className, href, node, ...props }) => {
|
|
|
3054
3054
|
},
|
|
3055
3055
|
() => children
|
|
3056
3056
|
)),
|
|
3057
|
-
linkSafety.renderModal ? linkSafety.renderModal(modalProps) : _$createScopedValue18(() => _$createElementFromConfig13("c:
|
|
3057
|
+
linkSafety.renderModal ? linkSafety.renderModal(modalProps) : _$createScopedValue18(() => _$createElementFromConfig13("c:1a05eb13", LinkSafetyModal, { ...modalProps }))
|
|
3058
3058
|
]));
|
|
3059
3059
|
}
|
|
3060
3060
|
return _$createScopedValue18(() => _$createScopedElement16(
|
|
@@ -3187,7 +3187,7 @@ var MemoTable = /* @__PURE__ */ memo2(
|
|
|
3187
3187
|
...props
|
|
3188
3188
|
},
|
|
3189
3189
|
() => children,
|
|
3190
|
-
"c:
|
|
3190
|
+
"c:3df3de88"
|
|
3191
3191
|
));
|
|
3192
3192
|
},
|
|
3193
3193
|
(p, n) => sameClassAndNode(p, n)
|
|
@@ -3426,15 +3426,15 @@ var CodeComponent = ({ node, className, children, ...props }) => {
|
|
|
3426
3426
|
return _$createScopedValue18(() => _$createScopedElement16(
|
|
3427
3427
|
Suspense2,
|
|
3428
3428
|
{
|
|
3429
|
-
fallback: _$createElementFromConfig13("c:
|
|
3429
|
+
fallback: _$createElementFromConfig13("c:a85bf0ad", CodeBlockSkeleton, {})
|
|
3430
3430
|
},
|
|
3431
|
-
() => _$createScopedValue18(() => _$createElementFromConfig13("c:
|
|
3431
|
+
() => _$createScopedValue18(() => _$createElementFromConfig13("c:4ebdb2c9", CustomComponent, {
|
|
3432
3432
|
code,
|
|
3433
3433
|
isIncomplete: isBlockIncomplete,
|
|
3434
3434
|
language,
|
|
3435
3435
|
meta: metastring
|
|
3436
3436
|
})),
|
|
3437
|
-
"c:
|
|
3437
|
+
"c:01d37a4a"
|
|
3438
3438
|
));
|
|
3439
3439
|
}
|
|
3440
3440
|
if (language === "mermaid" && mermaidPlugin) {
|
|
@@ -3447,7 +3447,7 @@ var CodeComponent = ({ node, className, children, ...props }) => {
|
|
|
3447
3447
|
return _$createScopedValue18(() => _$createScopedElement16(
|
|
3448
3448
|
Suspense2,
|
|
3449
3449
|
{
|
|
3450
|
-
fallback: _$createElementFromConfig13("c:
|
|
3450
|
+
fallback: _$createElementFromConfig13("c:384834c6", CodeBlockSkeleton, {})
|
|
3451
3451
|
},
|
|
3452
3452
|
() => _$createScopedValue18(() => _$createScopedElement16(
|
|
3453
3453
|
"div",
|
|
@@ -3475,9 +3475,9 @@ var CodeComponent = ({ node, className, children, ...props }) => {
|
|
|
3475
3475
|
"data-streamdown": "mermaid-block-actions"
|
|
3476
3476
|
},
|
|
3477
3477
|
() => _$positionalChildren11([
|
|
3478
|
-
showDownload2 ? _$createScopedValue18(() => _$createElementFromConfig13("c:
|
|
3479
|
-
showCopy2 ? _$createScopedValue18(() => _$createElementFromConfig13("c:
|
|
3480
|
-
showFullscreen ? _$createScopedValue18(() => _$createElementFromConfig13("c:
|
|
3478
|
+
showDownload2 ? _$createScopedValue18(() => _$createElementFromConfig13("c:4dac78fa", MermaidDownloadDropdown, { chart: code, config: mermaidContext?.config })) : null,
|
|
3479
|
+
showCopy2 ? _$createScopedValue18(() => _$createElementFromConfig13("c:fb647e88", CodeBlockCopyButton, { code })) : null,
|
|
3480
|
+
showFullscreen ? _$createScopedValue18(() => _$createElementFromConfig13("c:7a1c8c55", MermaidFullscreenButton, { chart: code, config: mermaidContext?.config })) : null
|
|
3481
3481
|
])
|
|
3482
3482
|
))
|
|
3483
3483
|
)) : null,
|
|
@@ -3486,7 +3486,7 @@ var CodeComponent = ({ node, className, children, ...props }) => {
|
|
|
3486
3486
|
{
|
|
3487
3487
|
className: cn2("rounded-md border border-border bg-background")
|
|
3488
3488
|
},
|
|
3489
|
-
() => _$createScopedValue18(() => _$createElementFromConfig13("c:
|
|
3489
|
+
() => _$createScopedValue18(() => _$createElementFromConfig13("c:3bff2338", Mermaid2, {
|
|
3490
3490
|
chart: code,
|
|
3491
3491
|
config: mermaidContext?.config,
|
|
3492
3492
|
showControls: showPanZoomControls
|
|
@@ -3494,7 +3494,7 @@ var CodeComponent = ({ node, className, children, ...props }) => {
|
|
|
3494
3494
|
))
|
|
3495
3495
|
])
|
|
3496
3496
|
)),
|
|
3497
|
-
"c:
|
|
3497
|
+
"c:213bfd31"
|
|
3498
3498
|
));
|
|
3499
3499
|
}
|
|
3500
3500
|
const showCodeControls = shouldShowControls(controlsConfig, "code");
|
|
@@ -3512,10 +3512,10 @@ var CodeComponent = ({ node, className, children, ...props }) => {
|
|
|
3512
3512
|
startLine
|
|
3513
3513
|
},
|
|
3514
3514
|
() => shouldShowCodeControls ? _$createScopedElement16(_$Fragment4, {}, () => _$positionalChildren11([
|
|
3515
|
-
showDownload ? _$createScopedValue18(() => _$createElementFromConfig13("c:
|
|
3516
|
-
showCopy ? _$createElementFromConfig13("c:
|
|
3515
|
+
showDownload ? _$createScopedValue18(() => _$createElementFromConfig13("c:6e1b157d", CodeBlockDownloadButton, { code, language })) : null,
|
|
3516
|
+
showCopy ? _$createElementFromConfig13("c:55bafb23", CodeBlockCopyButton, {}) : null
|
|
3517
3517
|
])) : null,
|
|
3518
|
-
"c:
|
|
3518
|
+
"c:de38217f"
|
|
3519
3519
|
));
|
|
3520
3520
|
};
|
|
3521
3521
|
var MemoCode = /* @__PURE__ */ memo2(CodeComponent, (p, n) => p.className === n.className && sameNodePosition(p.node, n.node));
|
|
@@ -4149,12 +4149,12 @@ var Block = /* @__PURE__ */ memo3(({
|
|
|
4149
4149
|
animatePluginProp.setPrevContentLength(prevCount);
|
|
4150
4150
|
}
|
|
4151
4151
|
const normalizedContent = typeof content === "string" && shouldNormalizeHtmlIndentation ? normalizeHtmlIndentation(content) : content;
|
|
4152
|
-
const inner = _$createScopedValue19(() => _$createScopedElement17(Markdown, { ...props }, () => normalizedContent, "c:
|
|
4152
|
+
const inner = _$createScopedValue19(() => _$createScopedElement17(Markdown, { ...props }, () => normalizedContent, "c:c4315244"));
|
|
4153
4153
|
return _$createScopedValue19(() => _$createScopedElement17(
|
|
4154
4154
|
BlockIncompleteContext,
|
|
4155
4155
|
{ value: isIncomplete },
|
|
4156
4156
|
() => dir ? _$createScopedValue19(() => _$createScopedElement17("div", { dir, style: { display: "contents" } }, () => inner)) : inner,
|
|
4157
|
-
"c:
|
|
4157
|
+
"c:d6620917"
|
|
4158
4158
|
));
|
|
4159
4159
|
});
|
|
4160
4160
|
Object.assign(Block, { displayName: "Block" });
|
|
@@ -4192,7 +4192,7 @@ var Streamdown = /* @__PURE__ */ memo3(({
|
|
|
4192
4192
|
let __hks, __hkd0, __hke, __hks$, __hkd0$, __hke$, __hks$2, __hkd0$2, __hkd1, __hke$2, __hks$3, __hkd0$3, __hkd1$, __hke$3, __hks$4, __hkd0$4, __hkd1$2, __hke$4, __hkr, __hks$5, __hkd0$5, __hkv, __hke$5, __hkr$, __hks$6, __hkd0$6, __hkv$, __hke$6, __hks$7, __hkd0$7, __hke$7, __hks$8, __hkd0$8, __hke$8, __hkr$2, __hks$9, __hkd0$9, __hkd1$3, __hkd2, __hkv$2, __hke$9, __hkr$3, __hks$10, __hkd0$10, __hkd1$4, __hkv$3, __hke$10, __hks$11, __hkd0$11, __hkd1$5, __hkd2$, __hke$11;
|
|
4193
4193
|
const generatedId = useId(_h$020);
|
|
4194
4194
|
const [_isPending, startTransition] = useTransition(_h$117);
|
|
4195
|
-
const prefixedCn = (__hkd0 = prefix, __hks = _$memoSlot7(_h$215
|
|
4195
|
+
const prefixedCn = (__hkd0 = prefix, __hks = _$memoSlot7(_h$215), __hke = _$memoTake15(__hks, __hkd0), __hke === null ? _$memoPublish7(__hks, createCn(prefix), __hkd0) : __hke.value);
|
|
4196
4196
|
const prevIsAnimatingRef = useRef8(null, _h$313);
|
|
4197
4197
|
const onAnimationStartRef = useRef8(onAnimationStart, _h$412);
|
|
4198
4198
|
const onAnimationEndRef = useRef8(onAnimationEnd, _h$510);
|
|
@@ -4220,7 +4220,7 @@ var Streamdown = /* @__PURE__ */ memo3(({
|
|
|
4220
4220
|
[isAnimating, mode],
|
|
4221
4221
|
_h$69
|
|
4222
4222
|
);
|
|
4223
|
-
const allowedTagNames = (__hkd0$ = allowedTags, __hks$ = _$memoSlot7(_h$76
|
|
4223
|
+
const allowedTagNames = (__hkd0$ = allowedTags, __hks$ = _$memoSlot7(_h$76), __hke$ = _$memoTake15(__hks$, __hkd0$), __hke$ === null ? _$memoPublish7(__hks$, allowedTags ? Object.keys(allowedTags) : [], __hkd0$) : __hke$.value);
|
|
4224
4224
|
const processedChildren = useMemo4(
|
|
4225
4225
|
() => {
|
|
4226
4226
|
if (typeof children !== "string") {
|
|
@@ -4245,7 +4245,7 @@ var Streamdown = /* @__PURE__ */ memo3(({
|
|
|
4245
4245
|
],
|
|
4246
4246
|
_h$83
|
|
4247
4247
|
);
|
|
4248
|
-
const blocks = (__hkd0$2 = processedChildren, __hkd1 = parseMarkdownIntoBlocksFn, __hks$2 = _$memoSlot7(_h$92
|
|
4248
|
+
const blocks = (__hkd0$2 = processedChildren, __hkd1 = parseMarkdownIntoBlocksFn, __hks$2 = _$memoSlot7(_h$92), __hke$2 = _$memoTake24(__hks$2, __hkd0$2, __hkd1), __hke$2 === null ? _$memoPublish7(__hks$2, parseMarkdownIntoBlocksFn(processedChildren), __hkd0$2, __hkd1) : __hke$2.value);
|
|
4249
4249
|
const [displayBlocks, setDisplayBlocks] = useState11(blocks, _h$102);
|
|
4250
4250
|
useEffect10(
|
|
4251
4251
|
() => {
|
|
@@ -4261,11 +4261,11 @@ var Streamdown = /* @__PURE__ */ memo3(({
|
|
|
4261
4261
|
_h$118
|
|
4262
4262
|
);
|
|
4263
4263
|
const blocksToRender = mode === "streaming" ? displayBlocks : blocks;
|
|
4264
|
-
const blockDirections = (__hkd0$3 = blocksToRender, __hkd1$ = dir, __hks$3 = _$memoSlot7(_h$123
|
|
4265
|
-
const blockKeys = (__hkd0$4 = blocksToRender.length, __hkd1$2 = generatedId, __hks$4 = _$memoSlot7(_h$133
|
|
4264
|
+
const blockDirections = (__hkd0$3 = blocksToRender, __hkd1$ = dir, __hks$3 = _$memoSlot7(_h$123), __hke$3 = _$memoTake24(__hks$3, __hkd0$3, __hkd1$), __hke$3 === null ? _$memoPublish7(__hks$3, dir === "auto" ? blocksToRender.map(detectTextDirection) : void 0, __hkd0$3, __hkd1$) : __hke$3.value);
|
|
4265
|
+
const blockKeys = (__hkd0$4 = blocksToRender.length, __hkd1$2 = generatedId, __hks$4 = _$memoSlot7(_h$133), __hke$4 = _$memoTake24(__hks$4, __hkd0$4, __hkd1$2), __hke$4 === null ? _$memoPublish7(__hks$4, blocksToRender.map((_block, idx) => `${generatedId}-${idx}`), __hkd0$4, __hkd1$2) : __hke$4.value);
|
|
4266
4266
|
{
|
|
4267
4267
|
__hkd0$5 = animated;
|
|
4268
|
-
__hks$5 = _$memoSlot7(_h$143
|
|
4268
|
+
__hks$5 = _$memoSlot7(_h$143);
|
|
4269
4269
|
__hke$5 = _$memoTake15(__hks$5, __hkd0$5);
|
|
4270
4270
|
if (__hke$5 === null) {
|
|
4271
4271
|
__hkl: {
|
|
@@ -4293,7 +4293,7 @@ var Streamdown = /* @__PURE__ */ memo3(({
|
|
|
4293
4293
|
const animatedKey = __hkr;
|
|
4294
4294
|
{
|
|
4295
4295
|
__hkd0$6 = animatedKey;
|
|
4296
|
-
__hks$6 = _$memoSlot7(_h$153
|
|
4296
|
+
__hks$6 = _$memoSlot7(_h$153);
|
|
4297
4297
|
__hke$6 = _$memoTake15(__hks$6, __hkd0$6);
|
|
4298
4298
|
if (__hke$6 === null) {
|
|
4299
4299
|
__hkl$: {
|
|
@@ -4341,8 +4341,8 @@ var Streamdown = /* @__PURE__ */ memo3(({
|
|
|
4341
4341
|
],
|
|
4342
4342
|
_h$163
|
|
4343
4343
|
);
|
|
4344
|
-
const translationsKey = (__hkd0$7 = translations, __hks$7 = _$memoSlot7(_h$173
|
|
4345
|
-
const translationsValue = (__hkd0$8 = translationsKey, __hks$8 = _$memoSlot7(_h$183
|
|
4344
|
+
const translationsKey = (__hkd0$7 = translations, __hks$7 = _$memoSlot7(_h$173), __hke$7 = _$memoTake15(__hks$7, __hkd0$7), __hke$7 === null ? _$memoPublish7(__hks$7, translations ? JSON.stringify(translations) : "", __hkd0$7) : __hke$7.value);
|
|
4345
|
+
const translationsValue = (__hkd0$8 = translationsKey, __hks$8 = _$memoSlot7(_h$183), __hke$8 = _$memoTake15(__hks$8, __hkd0$8), __hke$8 === null ? _$memoPublish7(__hks$8, { ...defaultTranslations, ...translations }, __hkd0$8) : __hke$8.value);
|
|
4346
4346
|
const mergedComponents = useMemo4(
|
|
4347
4347
|
() => {
|
|
4348
4348
|
const { inlineCode, ...userComponents } = components2 ?? {};
|
|
@@ -4366,7 +4366,7 @@ var Streamdown = /* @__PURE__ */ memo3(({
|
|
|
4366
4366
|
__hkd0$9 = remarkPlugins;
|
|
4367
4367
|
__hkd1$3 = plugins?.math;
|
|
4368
4368
|
__hkd2 = plugins?.cjk;
|
|
4369
|
-
__hks$9 = _$memoSlot7(_h$202
|
|
4369
|
+
__hks$9 = _$memoSlot7(_h$202);
|
|
4370
4370
|
__hke$9 = _$memoTake33(__hks$9, __hkd0$9, __hkd1$3, __hkd2);
|
|
4371
4371
|
if (__hke$9 === null) {
|
|
4372
4372
|
__hkl$2: {
|
|
@@ -4433,7 +4433,7 @@ var Streamdown = /* @__PURE__ */ memo3(({
|
|
|
4433
4433
|
{
|
|
4434
4434
|
__hkd0$10 = isAnimating;
|
|
4435
4435
|
__hkd1$4 = blocksToRender;
|
|
4436
|
-
__hks$10 = _$memoSlot7(_h$223
|
|
4436
|
+
__hks$10 = _$memoSlot7(_h$223);
|
|
4437
4437
|
__hke$10 = _$memoTake24(__hks$10, __hkd0$10, __hkd1$4);
|
|
4438
4438
|
if (__hke$10 === null) {
|
|
4439
4439
|
__hkl$3: {
|
|
@@ -4454,7 +4454,7 @@ var Streamdown = /* @__PURE__ */ memo3(({
|
|
|
4454
4454
|
} else __hkr$3 = __hke$10.value;
|
|
4455
4455
|
}
|
|
4456
4456
|
const shouldHideCaret = __hkr$3;
|
|
4457
|
-
const style = (__hkd0$11 = caret, __hkd1$5 = isAnimating, __hkd2$ = shouldHideCaret, __hks$11 = _$memoSlot7(_h$233
|
|
4457
|
+
const style = (__hkd0$11 = caret, __hkd1$5 = isAnimating, __hkd2$ = shouldHideCaret, __hks$11 = _$memoSlot7(_h$233), __hke$11 = _$memoTake33(__hks$11, __hkd0$11, __hkd1$5, __hkd2$), __hke$11 === null ? _$memoPublish7(
|
|
4458
4458
|
__hks$11,
|
|
4459
4459
|
caret && isAnimating && !shouldHideCaret ? { "--streamdown-caret": `"${carets[caret]}"` } : void 0,
|
|
4460
4460
|
__hkd0$11,
|
|
@@ -4493,18 +4493,18 @@ var Streamdown = /* @__PURE__ */ memo3(({
|
|
|
4493
4493
|
...props
|
|
4494
4494
|
},
|
|
4495
4495
|
() => processedChildren,
|
|
4496
|
-
"c:
|
|
4496
|
+
"c:3d295d78"
|
|
4497
4497
|
))
|
|
4498
4498
|
)),
|
|
4499
|
-
"c:
|
|
4499
|
+
"c:e61a1e0a"
|
|
4500
4500
|
)),
|
|
4501
|
-
"c:
|
|
4501
|
+
"c:1c3fc55d"
|
|
4502
4502
|
)),
|
|
4503
|
-
"c:
|
|
4503
|
+
"c:3d267566"
|
|
4504
4504
|
)),
|
|
4505
|
-
"c:
|
|
4505
|
+
"c:a73002e6"
|
|
4506
4506
|
)),
|
|
4507
|
-
"c:
|
|
4507
|
+
"c:d230c0e0"
|
|
4508
4508
|
));
|
|
4509
4509
|
}
|
|
4510
4510
|
return _$createScopedValue19(() => _$createScopedElement17(
|
|
@@ -4537,7 +4537,7 @@ var Streamdown = /* @__PURE__ */ memo3(({
|
|
|
4537
4537
|
blocksToRender.map((block, index) => {
|
|
4538
4538
|
const isLastBlock = index === blocksToRender.length - 1;
|
|
4539
4539
|
const isIncomplete = isAnimating && isLastBlock && hasIncompleteCodeFence(block);
|
|
4540
|
-
return _$createElementFromConfig14("c:
|
|
4540
|
+
return _$createElementFromConfig14("c:caeedc90", BlockComponent, {
|
|
4541
4541
|
animatePlugin,
|
|
4542
4542
|
components: mergedComponents,
|
|
4543
4543
|
content: block,
|
|
@@ -4554,15 +4554,15 @@ var Streamdown = /* @__PURE__ */ memo3(({
|
|
|
4554
4554
|
})
|
|
4555
4555
|
])
|
|
4556
4556
|
)),
|
|
4557
|
-
"c:
|
|
4557
|
+
"c:b666b4c3"
|
|
4558
4558
|
)),
|
|
4559
|
-
"c:
|
|
4559
|
+
"c:eb8b7510"
|
|
4560
4560
|
)),
|
|
4561
|
-
"c:
|
|
4561
|
+
"c:96a34bf5"
|
|
4562
4562
|
)),
|
|
4563
|
-
"c:
|
|
4563
|
+
"c:2117e7a8"
|
|
4564
4564
|
)),
|
|
4565
|
-
"c:
|
|
4565
|
+
"c:732f750e"
|
|
4566
4566
|
));
|
|
4567
4567
|
});
|
|
4568
4568
|
Object.assign(Streamdown, { displayName: "Streamdown" });
|
|
@@ -4628,7 +4628,7 @@ var PanZoom = ({
|
|
|
4628
4628
|
const [isPanning, setIsPanning] = useState12(false, _h$610);
|
|
4629
4629
|
const [panStart, setPanStart] = useState12({ x: 0, y: 0 }, _h$77);
|
|
4630
4630
|
const [panStartPosition, setPanStartPosition] = useState12({ x: 0, y: 0 }, _h$84);
|
|
4631
|
-
const handleZoom = (__hkd0 = minZoom, __hkd1 = maxZoom, __hks = _$memoSlot8(_h$93
|
|
4631
|
+
const handleZoom = (__hkd0 = minZoom, __hkd1 = maxZoom, __hks = _$memoSlot8(_h$93), __hke = _$memoTake25(__hks, __hkd0, __hkd1), __hke === null ? _$memoPublish8(
|
|
4632
4632
|
__hks,
|
|
4633
4633
|
(delta) => {
|
|
4634
4634
|
setZoom((prevZoom) => {
|
|
@@ -4639,7 +4639,7 @@ var PanZoom = ({
|
|
|
4639
4639
|
__hkd0,
|
|
4640
4640
|
__hkd1
|
|
4641
4641
|
) : __hke.value);
|
|
4642
|
-
const handleZoomIn = (__hkd0$ = handleZoom, __hkd1$ = zoomStep, __hks$ = _$memoSlot8(_h$103
|
|
4642
|
+
const handleZoomIn = (__hkd0$ = handleZoom, __hkd1$ = zoomStep, __hks$ = _$memoSlot8(_h$103), __hke$ = _$memoTake25(__hks$, __hkd0$, __hkd1$), __hke$ === null ? _$memoPublish8(
|
|
4643
4643
|
__hks$,
|
|
4644
4644
|
() => {
|
|
4645
4645
|
handleZoom(zoomStep);
|
|
@@ -4647,7 +4647,7 @@ var PanZoom = ({
|
|
|
4647
4647
|
__hkd0$,
|
|
4648
4648
|
__hkd1$
|
|
4649
4649
|
) : __hke$.value);
|
|
4650
|
-
const handleZoomOut = (__hkd0$2 = handleZoom, __hkd1$2 = zoomStep, __hks$2 = _$memoSlot8(_h$1110
|
|
4650
|
+
const handleZoomOut = (__hkd0$2 = handleZoom, __hkd1$2 = zoomStep, __hks$2 = _$memoSlot8(_h$1110), __hke$2 = _$memoTake25(__hks$2, __hkd0$2, __hkd1$2), __hke$2 === null ? _$memoPublish8(
|
|
4651
4651
|
__hks$2,
|
|
4652
4652
|
() => {
|
|
4653
4653
|
handleZoom(-zoomStep);
|
|
@@ -4655,7 +4655,7 @@ var PanZoom = ({
|
|
|
4655
4655
|
__hkd0$2,
|
|
4656
4656
|
__hkd1$2
|
|
4657
4657
|
) : __hke$2.value);
|
|
4658
|
-
const handleReset = (__hkd0$3 = initialZoom, __hks$3 = _$memoSlot8(_h$124
|
|
4658
|
+
const handleReset = (__hkd0$3 = initialZoom, __hks$3 = _$memoSlot8(_h$124), __hke$3 = _$memoTake16(__hks$3, __hkd0$3), __hke$3 === null ? _$memoPublish8(
|
|
4659
4659
|
__hks$3,
|
|
4660
4660
|
() => {
|
|
4661
4661
|
setZoom(initialZoom);
|
|
@@ -4663,7 +4663,7 @@ var PanZoom = ({
|
|
|
4663
4663
|
},
|
|
4664
4664
|
__hkd0$3
|
|
4665
4665
|
) : __hke$3.value);
|
|
4666
|
-
const handleWheel = (__hkd0$4 = handleZoom, __hkd1$3 = zoomStep, __hks$4 = _$memoSlot8(_h$134
|
|
4666
|
+
const handleWheel = (__hkd0$4 = handleZoom, __hkd1$3 = zoomStep, __hks$4 = _$memoSlot8(_h$134), __hke$4 = _$memoTake25(__hks$4, __hkd0$4, __hkd1$3), __hke$4 === null ? _$memoPublish8(
|
|
4667
4667
|
__hks$4,
|
|
4668
4668
|
(e) => {
|
|
4669
4669
|
e.preventDefault();
|
|
@@ -4673,7 +4673,7 @@ var PanZoom = ({
|
|
|
4673
4673
|
__hkd0$4,
|
|
4674
4674
|
__hkd1$3
|
|
4675
4675
|
) : __hke$4.value);
|
|
4676
|
-
const handlePointerDown = (__hkd0$5 = pan, __hks$5 = _$memoSlot8(_h$144
|
|
4676
|
+
const handlePointerDown = (__hkd0$5 = pan, __hks$5 = _$memoSlot8(_h$144), __hke$5 = _$memoTake16(__hks$5, __hkd0$5), __hke$5 === null ? _$memoPublish8(
|
|
4677
4677
|
__hks$5,
|
|
4678
4678
|
(e) => {
|
|
4679
4679
|
if (e.button !== 0 || e.isPrimary === false) {
|
|
@@ -4689,7 +4689,7 @@ var PanZoom = ({
|
|
|
4689
4689
|
},
|
|
4690
4690
|
__hkd0$5
|
|
4691
4691
|
) : __hke$5.value);
|
|
4692
|
-
const handlePointerMove = (__hkd0$6 = isPanning, __hkd1$4 = panStart, __hkd2 = panStartPosition, __hks$6 = _$memoSlot8(_h$154
|
|
4692
|
+
const handlePointerMove = (__hkd0$6 = isPanning, __hkd1$4 = panStart, __hkd2 = panStartPosition, __hks$6 = _$memoSlot8(_h$154), __hke$6 = _$memoTake34(__hks$6, __hkd0$6, __hkd1$4, __hkd2), __hke$6 === null ? _$memoPublish8(
|
|
4693
4693
|
__hks$6,
|
|
4694
4694
|
(e) => {
|
|
4695
4695
|
if (!isPanning) {
|
|
@@ -4707,7 +4707,7 @@ var PanZoom = ({
|
|
|
4707
4707
|
__hkd1$4,
|
|
4708
4708
|
__hkd2
|
|
4709
4709
|
) : __hke$6.value);
|
|
4710
|
-
const handlePointerUp = (__hks$7 = _$memoSlot8(_h$164
|
|
4710
|
+
const handlePointerUp = (__hks$7 = _$memoSlot8(_h$164), __hke$7 = _$memoTake03(__hks$7), __hke$7 === null ? _$memoPublish8(__hks$7, (e) => {
|
|
4711
4711
|
setIsPanning(false);
|
|
4712
4712
|
const target = e.currentTarget;
|
|
4713
4713
|
if (target instanceof HTMLElement) {
|
|
@@ -4773,7 +4773,7 @@ var PanZoom = ({
|
|
|
4773
4773
|
title: "Zoom in",
|
|
4774
4774
|
type: "button"
|
|
4775
4775
|
},
|
|
4776
|
-
() => _$createElementFromConfig15("c:
|
|
4776
|
+
() => _$createElementFromConfig15("c:62b796db", ZoomInIcon2, { size: 16 })
|
|
4777
4777
|
)),
|
|
4778
4778
|
_$createScopedValue20(() => _$createScopedElement18(
|
|
4779
4779
|
"button",
|
|
@@ -4784,7 +4784,7 @@ var PanZoom = ({
|
|
|
4784
4784
|
title: "Zoom out",
|
|
4785
4785
|
type: "button"
|
|
4786
4786
|
},
|
|
4787
|
-
() => _$createElementFromConfig15("c:
|
|
4787
|
+
() => _$createElementFromConfig15("c:bee4e721", ZoomOutIcon2, { size: 16 })
|
|
4788
4788
|
)),
|
|
4789
4789
|
_$createScopedValue20(() => _$createScopedElement18(
|
|
4790
4790
|
"button",
|
|
@@ -4794,7 +4794,7 @@ var PanZoom = ({
|
|
|
4794
4794
|
title: "Reset zoom and pan",
|
|
4795
4795
|
type: "button"
|
|
4796
4796
|
},
|
|
4797
|
-
() => _$createElementFromConfig15("c:
|
|
4797
|
+
() => _$createElementFromConfig15("c:05d35498", RotateCcwIcon2, { size: 16 })
|
|
4798
4798
|
))
|
|
4799
4799
|
])
|
|
4800
4800
|
)) : null,
|
|
@@ -4933,7 +4933,7 @@ var Mermaid = ({
|
|
|
4933
4933
|
if (error && !svgContent && !lastValidSvg) {
|
|
4934
4934
|
const retry = () => setRetryCount((count) => count + 1);
|
|
4935
4935
|
if (ErrorComponent) {
|
|
4936
|
-
return _$createScopedValue21(() => _$createScopedElement19("div", { ref: containerRef }, () => _$createScopedValue21(() => _$createElementFromConfig16("c:
|
|
4936
|
+
return _$createScopedValue21(() => _$createScopedElement19("div", { ref: containerRef }, () => _$createScopedValue21(() => _$createElementFromConfig16("c:aa427d6e", ErrorComponent, { chart, error, retry }))));
|
|
4937
4937
|
}
|
|
4938
4938
|
return _$createScopedValue21(() => _$createScopedElement19(
|
|
4939
4939
|
"div",
|
|
@@ -4980,7 +4980,7 @@ var Mermaid = ({
|
|
|
4980
4980
|
dangerouslySetInnerHTML: { __html: displaySvg },
|
|
4981
4981
|
role: "img"
|
|
4982
4982
|
})),
|
|
4983
|
-
"c:
|
|
4983
|
+
"c:6a768960"
|
|
4984
4984
|
))
|
|
4985
4985
|
));
|
|
4986
4986
|
};
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
CodeBlockBody,
|
|
4
4
|
StreamdownContext,
|
|
5
5
|
useCodePlugin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3ZWXIWBP.js";
|
|
7
7
|
|
|
8
8
|
// src/lib/code-block/highlighted-body.tsrx
|
|
9
9
|
import {
|
|
@@ -40,7 +40,7 @@ var HighlightedCodeBlockBody = ({
|
|
|
40
40
|
let __hks, __hkd0, __hkd1, __hkd2, __hkd3, __hke;
|
|
41
41
|
const { shikiTheme } = useContext(StreamdownContext);
|
|
42
42
|
const codePlugin = _$withSlot(_h$0, useCodePlugin);
|
|
43
|
-
const request = (__hkd0 = code, __hkd1 = language, __hkd2 = codePlugin, __hkd3 = shikiTheme, __hks = _$memoSlot(_h$1
|
|
43
|
+
const request = (__hkd0 = code, __hkd1 = language, __hkd2 = codePlugin, __hkd3 = shikiTheme, __hks = _$memoSlot(_h$1), __hke = _$memoTake4(__hks, __hkd0, __hkd1, __hkd2, __hkd3), __hke === null ? _$memoPublish(__hks, { code, language, plugin: codePlugin, themes: shikiTheme }, __hkd0, __hkd1, __hkd2, __hkd3) : __hke.value);
|
|
44
44
|
const [highlight, setHighlight] = useState({ request, result: raw }, _h$2);
|
|
45
45
|
const requestRef = useRef(request, _h$3);
|
|
46
46
|
requestRef.current = request;
|
|
@@ -68,7 +68,7 @@ var HighlightedCodeBlockBody = ({
|
|
|
68
68
|
[request, raw],
|
|
69
69
|
_h$4
|
|
70
70
|
);
|
|
71
|
-
return _$createScopedValue(() => _$createElementFromConfig("c:
|
|
71
|
+
return _$createScopedValue(() => _$createElementFromConfig("c:83c73cc4", CodeBlockBody, { className, language, lineNumbers, result, startLine, ...rest }));
|
|
72
72
|
};
|
|
73
73
|
export {
|
|
74
74
|
HighlightedCodeBlockBody
|
package/dist/client/index.js
CHANGED
|
@@ -603,7 +603,7 @@ var trimTrailingNewlines = (str) => {
|
|
|
603
603
|
}
|
|
604
604
|
return str.slice(0, end);
|
|
605
605
|
};
|
|
606
|
-
var HighlightedCodeBlockBody = /* @__PURE__ */ lazy(() => import("./highlighted-body-
|
|
606
|
+
var HighlightedCodeBlockBody = /* @__PURE__ */ lazy(() => import("./highlighted-body-QPG662A4.js").then((mod) => ({ default: mod.HighlightedCodeBlockBody })));
|
|
607
607
|
var CodeBlock = ({
|
|
608
608
|
code,
|
|
609
609
|
language,
|
|
@@ -640,7 +640,7 @@ var CodeBlock = ({
|
|
|
640
640
|
CodeBlockContainer,
|
|
641
641
|
{ isIncomplete, language },
|
|
642
642
|
() => _$positionalChildren([
|
|
643
|
-
_$createScopedValue4(() => _$createElementFromConfig("c:
|
|
643
|
+
_$createScopedValue4(() => _$createElementFromConfig("c:b1a7985b", CodeBlockHeader, { language })),
|
|
644
644
|
children ? _$createScopedValue4(() => _$createScopedElement3(
|
|
645
645
|
"div",
|
|
646
646
|
{
|
|
@@ -658,7 +658,7 @@ var CodeBlock = ({
|
|
|
658
658
|
_$createScopedValue4(() => _$createScopedElement3(
|
|
659
659
|
Suspense,
|
|
660
660
|
{
|
|
661
|
-
fallback: _$createScopedValue4(() => _$createElementFromConfig("c:
|
|
661
|
+
fallback: _$createScopedValue4(() => _$createElementFromConfig("c:7ee233f9", CodeBlockBody, {
|
|
662
662
|
className,
|
|
663
663
|
language,
|
|
664
664
|
lineNumbers,
|
|
@@ -667,7 +667,7 @@ var CodeBlock = ({
|
|
|
667
667
|
...rest
|
|
668
668
|
}))
|
|
669
669
|
},
|
|
670
|
-
() => _$createScopedValue4(() => _$createElementFromConfig("c:
|
|
670
|
+
() => _$createScopedValue4(() => _$createElementFromConfig("c:508f3b6e", HighlightedCodeBlockBody, {
|
|
671
671
|
className,
|
|
672
672
|
code: trimmedCode,
|
|
673
673
|
language,
|
|
@@ -676,12 +676,12 @@ var CodeBlock = ({
|
|
|
676
676
|
startLine,
|
|
677
677
|
...rest
|
|
678
678
|
})),
|
|
679
|
-
"c:
|
|
679
|
+
"c:0cbee46f"
|
|
680
680
|
))
|
|
681
681
|
]),
|
|
682
|
-
"c:
|
|
682
|
+
"c:81dc39c7"
|
|
683
683
|
)),
|
|
684
|
-
"c:
|
|
684
|
+
"c:f0f386de"
|
|
685
685
|
));
|
|
686
686
|
};
|
|
687
687
|
|
|
@@ -972,7 +972,7 @@ var IconProvider = ({ icons, children }) => {
|
|
|
972
972
|
prevValueRef.current = icons ? { ...defaultIcons, ...icons } : defaultIcons;
|
|
973
973
|
}
|
|
974
974
|
const value = prevValueRef.current;
|
|
975
|
-
return _$createScopedValue6(() => _$createScopedElement4(IconContext, { value }, () => children, "c:
|
|
975
|
+
return _$createScopedValue6(() => _$createScopedElement4(IconContext, { value }, () => children, "c:6ab2322e"));
|
|
976
976
|
};
|
|
977
977
|
var useIcons = () => useContext4(IconContext);
|
|
978
978
|
|
|
@@ -1073,7 +1073,7 @@ var CodeBlockCopyButton = ({
|
|
|
1073
1073
|
type: "button",
|
|
1074
1074
|
...props
|
|
1075
1075
|
},
|
|
1076
|
-
() => children ?? _$createElementFromConfig2("c:
|
|
1076
|
+
() => children ?? _$createElementFromConfig2("c:2ca7e394", Icon, { size: 14 })
|
|
1077
1077
|
));
|
|
1078
1078
|
};
|
|
1079
1079
|
|
|
@@ -1436,7 +1436,7 @@ var CodeBlockDownloadButton = ({
|
|
|
1436
1436
|
type: "button",
|
|
1437
1437
|
...props
|
|
1438
1438
|
},
|
|
1439
|
-
() => children ?? _$createScopedValue8(() => _$createElementFromConfig3("c:
|
|
1439
|
+
() => children ?? _$createScopedValue8(() => _$createElementFromConfig3("c:55ee5312", icons.DownloadIcon, { size: 14 }))
|
|
1440
1440
|
));
|
|
1441
1441
|
};
|
|
1442
1442
|
|
|
@@ -1463,7 +1463,7 @@ var CodeBlockSkeleton = () => {
|
|
|
1463
1463
|
},
|
|
1464
1464
|
() => _$positionalChildren2([
|
|
1465
1465
|
_$createScopedValue9(() => _$createElement3("div", { className: cn2("h-[46px] w-full bg-muted/80") })),
|
|
1466
|
-
_$createScopedValue9(() => _$createScopedElement7("div", { className: cn2("flex w-full items-center justify-center p-4") }, () => _$createScopedValue9(() => _$createElementFromConfig4("c:
|
|
1466
|
+
_$createScopedValue9(() => _$createScopedElement7("div", { className: cn2("flex w-full items-center justify-center p-4") }, () => _$createScopedValue9(() => _$createElementFromConfig4("c:3a952379", Loader2Icon2, { className: cn2("size-4 animate-spin") }))))
|
|
1467
1467
|
])
|
|
1468
1468
|
));
|
|
1469
1469
|
};
|
|
@@ -1616,7 +1616,7 @@ var ImageComponent = ({
|
|
|
1616
1616
|
title: t.downloadImage,
|
|
1617
1617
|
type: "button"
|
|
1618
1618
|
},
|
|
1619
|
-
() => _$createElementFromConfig5("c:
|
|
1619
|
+
() => _$createElementFromConfig5("c:95209ebd", DownloadIcon2, { size: 14 })
|
|
1620
1620
|
))
|
|
1621
1621
|
])
|
|
1622
1622
|
));
|
|
@@ -1738,7 +1738,7 @@ var LinkSafetyModal = ({ url, isOpen, onClose, onConfirm }) => {
|
|
|
1738
1738
|
title: t.close,
|
|
1739
1739
|
type: "button"
|
|
1740
1740
|
},
|
|
1741
|
-
() => _$createElementFromConfig6("c:
|
|
1741
|
+
() => _$createElementFromConfig6("c:f25f9cfa", XIcon2, { size: 16 })
|
|
1742
1742
|
)),
|
|
1743
1743
|
_$createScopedValue11(() => _$createScopedElement9("div", { className: cn2("flex flex-col gap-2") }, () => _$positionalChildren4([
|
|
1744
1744
|
_$createScopedValue11(() => _$createScopedElement9(
|
|
@@ -1747,7 +1747,7 @@ var LinkSafetyModal = ({ url, isOpen, onClose, onConfirm }) => {
|
|
|
1747
1747
|
className: cn2("flex items-center gap-2 font-semibold text-lg")
|
|
1748
1748
|
},
|
|
1749
1749
|
() => _$positionalChildren4([
|
|
1750
|
-
_$createElementFromConfig6("c:
|
|
1750
|
+
_$createElementFromConfig6("c:b24b7f47", ExternalLinkIcon2, { size: 20 }),
|
|
1751
1751
|
_$createScopedElement9("span", {}, () => t.openExternalLink)
|
|
1752
1752
|
])
|
|
1753
1753
|
)),
|
|
@@ -1769,10 +1769,10 @@ var LinkSafetyModal = ({ url, isOpen, onClose, onConfirm }) => {
|
|
|
1769
1769
|
type: "button"
|
|
1770
1770
|
},
|
|
1771
1771
|
() => copied ? _$createScopedElement9(_$Fragment, {}, () => _$positionalChildren4([
|
|
1772
|
-
_$createElementFromConfig6("c:
|
|
1772
|
+
_$createElementFromConfig6("c:4e0c0982", CheckIcon2, { size: 14 }),
|
|
1773
1773
|
_$createScopedElement9("span", {}, () => t.copied)
|
|
1774
1774
|
])) : _$createScopedElement9(_$Fragment, {}, () => _$positionalChildren4([
|
|
1775
|
-
_$createElementFromConfig6("c:
|
|
1775
|
+
_$createElementFromConfig6("c:26f0efcf", CopyIcon2, { size: 14 }),
|
|
1776
1776
|
_$createScopedElement9("span", {}, () => t.copyLink)
|
|
1777
1777
|
]))
|
|
1778
1778
|
)),
|
|
@@ -1784,7 +1784,7 @@ var LinkSafetyModal = ({ url, isOpen, onClose, onConfirm }) => {
|
|
|
1784
1784
|
type: "button"
|
|
1785
1785
|
},
|
|
1786
1786
|
() => _$positionalChildren4([
|
|
1787
|
-
_$createElementFromConfig6("c:
|
|
1787
|
+
_$createElementFromConfig6("c:6019ab7a", ExternalLinkIcon2, { size: 14 }),
|
|
1788
1788
|
_$createScopedElement9("span", {}, () => t.openLink)
|
|
1789
1789
|
])
|
|
1790
1790
|
))
|
|
@@ -1960,7 +1960,7 @@ var MermaidDownloadDropdown = ({ chart, children, className, onDownload, config,
|
|
|
1960
1960
|
title: t.downloadDiagram,
|
|
1961
1961
|
type: "button"
|
|
1962
1962
|
},
|
|
1963
|
-
() => children ?? _$createScopedValue12(() => _$createElementFromConfig7("c:
|
|
1963
|
+
() => children ?? _$createScopedValue12(() => _$createElementFromConfig7("c:e1ebc763", icons.DownloadIcon, { size: 14 }))
|
|
1964
1964
|
)),
|
|
1965
1965
|
isOpen ? _$createScopedValue12(() => _$createScopedElement10(
|
|
1966
1966
|
"div",
|
|
@@ -2087,7 +2087,7 @@ var MermaidFullscreenButton = ({ chart, config, onFullscreen, onExit, className,
|
|
|
2087
2087
|
type: "button",
|
|
2088
2088
|
...props
|
|
2089
2089
|
},
|
|
2090
|
-
() => _$createElementFromConfig8("c:
|
|
2090
|
+
() => _$createElementFromConfig8("c:485658f4", Maximize2Icon2, { size: 14 })
|
|
2091
2091
|
)),
|
|
2092
2092
|
isFullscreen ? createPortal(
|
|
2093
2093
|
_$createScopedValue13(() => _$createScopedElement11(
|
|
@@ -2112,7 +2112,7 @@ var MermaidFullscreenButton = ({ chart, config, onFullscreen, onExit, className,
|
|
|
2112
2112
|
title: t.exitFullscreen,
|
|
2113
2113
|
type: "button"
|
|
2114
2114
|
},
|
|
2115
|
-
() => _$createElementFromConfig8("c:
|
|
2115
|
+
() => _$createElementFromConfig8("c:4988e383", XIcon2, { size: 20 })
|
|
2116
2116
|
)),
|
|
2117
2117
|
_$createScopedValue13(() => _$createScopedElement11(
|
|
2118
2118
|
"div",
|
|
@@ -2122,7 +2122,7 @@ var MermaidFullscreenButton = ({ chart, config, onFullscreen, onExit, className,
|
|
|
2122
2122
|
onKeyDown: (e) => e.stopPropagation(),
|
|
2123
2123
|
role: "presentation"
|
|
2124
2124
|
},
|
|
2125
|
-
() => _$createScopedValue13(() => _$createElementFromConfig8("c:
|
|
2125
|
+
() => _$createScopedValue13(() => _$createElementFromConfig8("c:d69fc964", Mermaid, {
|
|
2126
2126
|
chart,
|
|
2127
2127
|
className: cn2("size-full [&_svg]:h-auto [&_svg]:w-auto"),
|
|
2128
2128
|
config,
|
|
@@ -2393,7 +2393,7 @@ var TableCopyDropdown = ({ children, className, onCopy, onError, timeout = 2e3 }
|
|
|
2393
2393
|
title: t.copyTable,
|
|
2394
2394
|
type: "button"
|
|
2395
2395
|
},
|
|
2396
|
-
() => children ?? _$createElementFromConfig9("c:
|
|
2396
|
+
() => children ?? _$createElementFromConfig9("c:bb5b1f7c", Icon, { height: 14, width: 14 })
|
|
2397
2397
|
)),
|
|
2398
2398
|
isOpen ? _$createScopedValue14(() => _$createScopedElement12(
|
|
2399
2399
|
"div",
|
|
@@ -2513,7 +2513,7 @@ var TableDownloadButton = ({
|
|
|
2513
2513
|
title: format === "csv" ? t.downloadTableAsCsv : t.downloadTableAsMarkdown,
|
|
2514
2514
|
type: "button"
|
|
2515
2515
|
},
|
|
2516
|
-
() => children ?? _$createScopedValue15(() => _$createElementFromConfig10("c:
|
|
2516
|
+
() => children ?? _$createScopedValue15(() => _$createElementFromConfig10("c:1573743b", icons.DownloadIcon, { size: 14 }))
|
|
2517
2517
|
));
|
|
2518
2518
|
};
|
|
2519
2519
|
var TableDownloadDropdown = ({ children, className, onDownload, onError }) => {
|
|
@@ -2568,7 +2568,7 @@ var TableDownloadDropdown = ({ children, className, onDownload, onError }) => {
|
|
|
2568
2568
|
title: t.downloadTable,
|
|
2569
2569
|
type: "button"
|
|
2570
2570
|
},
|
|
2571
|
-
() => children ?? _$createScopedValue15(() => _$createElementFromConfig10("c:
|
|
2571
|
+
() => children ?? _$createScopedValue15(() => _$createElementFromConfig10("c:0577d643", icons.DownloadIcon, { size: 14 }))
|
|
2572
2572
|
)),
|
|
2573
2573
|
isOpen ? _$createScopedValue15(() => _$createScopedElement13(
|
|
2574
2574
|
"div",
|
|
@@ -2662,7 +2662,7 @@ var TableFullscreenButton = ({ children, className, showCopy = true, showDownloa
|
|
|
2662
2662
|
title: t.viewFullscreen,
|
|
2663
2663
|
type: "button"
|
|
2664
2664
|
},
|
|
2665
|
-
() => _$createElementFromConfig11("c:
|
|
2665
|
+
() => _$createElementFromConfig11("c:c35b7450", Maximize2Icon2, { size: 14 })
|
|
2666
2666
|
)),
|
|
2667
2667
|
isFullscreen ? createPortal2(
|
|
2668
2668
|
_$createScopedValue16(() => _$createScopedElement14(
|
|
@@ -2690,8 +2690,8 @@ var TableFullscreenButton = ({ children, className, showCopy = true, showDownloa
|
|
|
2690
2690
|
},
|
|
2691
2691
|
() => _$positionalChildren9([
|
|
2692
2692
|
_$createScopedValue16(() => _$createScopedElement14("div", { className: cn2("flex items-center justify-end gap-1 p-4") }, () => _$positionalChildren9([
|
|
2693
|
-
showCopy ? _$createElementFromConfig11("c:
|
|
2694
|
-
showDownload ? _$createElementFromConfig11("c:
|
|
2693
|
+
showCopy ? _$createElementFromConfig11("c:17ae7bd8", TableCopyDropdown, {}) : null,
|
|
2694
|
+
showDownload ? _$createElementFromConfig11("c:d4e67ae5", TableDownloadDropdown, {}) : null,
|
|
2695
2695
|
_$createScopedValue16(() => _$createScopedElement14(
|
|
2696
2696
|
"button",
|
|
2697
2697
|
{
|
|
@@ -2700,7 +2700,7 @@ var TableFullscreenButton = ({ children, className, showCopy = true, showDownloa
|
|
|
2700
2700
|
title: t.exitFullscreen,
|
|
2701
2701
|
type: "button"
|
|
2702
2702
|
},
|
|
2703
|
-
() => _$createElementFromConfig11("c:
|
|
2703
|
+
() => _$createElementFromConfig11("c:8da9ebca", XIcon2, { size: 20 })
|
|
2704
2704
|
))
|
|
2705
2705
|
]))),
|
|
2706
2706
|
_$createScopedValue16(() => _$createScopedElement14(
|
|
@@ -2750,9 +2750,9 @@ var Table = ({
|
|
|
2750
2750
|
},
|
|
2751
2751
|
() => _$positionalChildren10([
|
|
2752
2752
|
hasAnyControl ? _$createScopedValue17(() => _$createScopedElement15("div", { className: cn2("flex items-center justify-end gap-1") }, () => _$positionalChildren10([
|
|
2753
|
-
hasCopy ? _$createElementFromConfig12("c:
|
|
2754
|
-
hasDownload ? _$createElementFromConfig12("c:
|
|
2755
|
-
hasFullscreen ? _$createScopedValue17(() => _$createScopedElement15(TableFullscreenButton, { showCopy: hasCopy, showDownload: hasDownload }, () => children, "c:
|
|
2753
|
+
hasCopy ? _$createElementFromConfig12("c:ab0b713f", TableCopyDropdown, {}) : null,
|
|
2754
|
+
hasDownload ? _$createElementFromConfig12("c:c7fc1643", TableDownloadDropdown, {}) : null,
|
|
2755
|
+
hasFullscreen ? _$createScopedValue17(() => _$createScopedElement15(TableFullscreenButton, { showCopy: hasCopy, showDownload: hasDownload }, () => children, "c:2908a114")) : null
|
|
2756
2756
|
]))) : null,
|
|
2757
2757
|
_$createScopedValue17(() => _$createScopedElement15(
|
|
2758
2758
|
"div",
|
|
@@ -2805,7 +2805,7 @@ var _h$262 = /* @__PURE__ */ Symbol(_hs$19 + 26);
|
|
|
2805
2805
|
var _h$272 = /* @__PURE__ */ Symbol(_hs$19 + 27);
|
|
2806
2806
|
var START_LINE_PATTERN = /startLine=(\d+)/;
|
|
2807
2807
|
var NO_LINE_NUMBERS_PATTERN = /\bnoLineNumbers\b/;
|
|
2808
|
-
var Mermaid2 = /* @__PURE__ */ lazy2(() => import("./mermaid-
|
|
2808
|
+
var Mermaid2 = /* @__PURE__ */ lazy2(() => import("./mermaid-2V227HSV.js").then((mod) => ({ default: mod.Mermaid })));
|
|
2809
2809
|
var LANGUAGE_REGEX = /language-([^\s]+)/;
|
|
2810
2810
|
function sameNodePosition(prev, next) {
|
|
2811
2811
|
if (!(prev?.position || next?.position)) {
|
|
@@ -3002,7 +3002,7 @@ var LinkComponent = ({ children, className, href, node, ...props }) => {
|
|
|
3002
3002
|
},
|
|
3003
3003
|
() => children
|
|
3004
3004
|
)),
|
|
3005
|
-
linkSafety.renderModal ? linkSafety.renderModal(modalProps) : _$createScopedValue18(() => _$createElementFromConfig13("c:
|
|
3005
|
+
linkSafety.renderModal ? linkSafety.renderModal(modalProps) : _$createScopedValue18(() => _$createElementFromConfig13("c:1a05eb13", LinkSafetyModal, { ...modalProps }))
|
|
3006
3006
|
]));
|
|
3007
3007
|
}
|
|
3008
3008
|
return _$createScopedValue18(() => _$createScopedElement16(
|
|
@@ -3135,7 +3135,7 @@ var MemoTable = memo2(
|
|
|
3135
3135
|
...props
|
|
3136
3136
|
},
|
|
3137
3137
|
() => children,
|
|
3138
|
-
"c:
|
|
3138
|
+
"c:3df3de88"
|
|
3139
3139
|
));
|
|
3140
3140
|
},
|
|
3141
3141
|
(p, n) => sameClassAndNode(p, n)
|
|
@@ -3374,15 +3374,15 @@ var CodeComponent = ({ node, className, children, ...props }) => {
|
|
|
3374
3374
|
return _$createScopedValue18(() => _$createScopedElement16(
|
|
3375
3375
|
Suspense2,
|
|
3376
3376
|
{
|
|
3377
|
-
fallback: _$createElementFromConfig13("c:
|
|
3377
|
+
fallback: _$createElementFromConfig13("c:a85bf0ad", CodeBlockSkeleton, {})
|
|
3378
3378
|
},
|
|
3379
|
-
() => _$createScopedValue18(() => _$createElementFromConfig13("c:
|
|
3379
|
+
() => _$createScopedValue18(() => _$createElementFromConfig13("c:4ebdb2c9", CustomComponent, {
|
|
3380
3380
|
code,
|
|
3381
3381
|
isIncomplete: isBlockIncomplete,
|
|
3382
3382
|
language,
|
|
3383
3383
|
meta: metastring
|
|
3384
3384
|
})),
|
|
3385
|
-
"c:
|
|
3385
|
+
"c:01d37a4a"
|
|
3386
3386
|
));
|
|
3387
3387
|
}
|
|
3388
3388
|
if (language === "mermaid" && mermaidPlugin) {
|
|
@@ -3395,7 +3395,7 @@ var CodeComponent = ({ node, className, children, ...props }) => {
|
|
|
3395
3395
|
return _$createScopedValue18(() => _$createScopedElement16(
|
|
3396
3396
|
Suspense2,
|
|
3397
3397
|
{
|
|
3398
|
-
fallback: _$createElementFromConfig13("c:
|
|
3398
|
+
fallback: _$createElementFromConfig13("c:384834c6", CodeBlockSkeleton, {})
|
|
3399
3399
|
},
|
|
3400
3400
|
() => _$createScopedValue18(() => _$createScopedElement16(
|
|
3401
3401
|
"div",
|
|
@@ -3423,9 +3423,9 @@ var CodeComponent = ({ node, className, children, ...props }) => {
|
|
|
3423
3423
|
"data-streamdown": "mermaid-block-actions"
|
|
3424
3424
|
},
|
|
3425
3425
|
() => _$positionalChildren11([
|
|
3426
|
-
showDownload2 ? _$createScopedValue18(() => _$createElementFromConfig13("c:
|
|
3427
|
-
showCopy2 ? _$createScopedValue18(() => _$createElementFromConfig13("c:
|
|
3428
|
-
showFullscreen ? _$createScopedValue18(() => _$createElementFromConfig13("c:
|
|
3426
|
+
showDownload2 ? _$createScopedValue18(() => _$createElementFromConfig13("c:4dac78fa", MermaidDownloadDropdown, { chart: code, config: mermaidContext?.config })) : null,
|
|
3427
|
+
showCopy2 ? _$createScopedValue18(() => _$createElementFromConfig13("c:fb647e88", CodeBlockCopyButton, { code })) : null,
|
|
3428
|
+
showFullscreen ? _$createScopedValue18(() => _$createElementFromConfig13("c:7a1c8c55", MermaidFullscreenButton, { chart: code, config: mermaidContext?.config })) : null
|
|
3429
3429
|
])
|
|
3430
3430
|
))
|
|
3431
3431
|
)) : null,
|
|
@@ -3434,7 +3434,7 @@ var CodeComponent = ({ node, className, children, ...props }) => {
|
|
|
3434
3434
|
{
|
|
3435
3435
|
className: cn2("rounded-md border border-border bg-background")
|
|
3436
3436
|
},
|
|
3437
|
-
() => _$createScopedValue18(() => _$createElementFromConfig13("c:
|
|
3437
|
+
() => _$createScopedValue18(() => _$createElementFromConfig13("c:3bff2338", Mermaid2, {
|
|
3438
3438
|
chart: code,
|
|
3439
3439
|
config: mermaidContext?.config,
|
|
3440
3440
|
showControls: showPanZoomControls
|
|
@@ -3442,7 +3442,7 @@ var CodeComponent = ({ node, className, children, ...props }) => {
|
|
|
3442
3442
|
))
|
|
3443
3443
|
])
|
|
3444
3444
|
)),
|
|
3445
|
-
"c:
|
|
3445
|
+
"c:213bfd31"
|
|
3446
3446
|
));
|
|
3447
3447
|
}
|
|
3448
3448
|
const showCodeControls = shouldShowControls(controlsConfig, "code");
|
|
@@ -3460,10 +3460,10 @@ var CodeComponent = ({ node, className, children, ...props }) => {
|
|
|
3460
3460
|
startLine
|
|
3461
3461
|
},
|
|
3462
3462
|
() => shouldShowCodeControls ? _$createScopedElement16(_$Fragment4, {}, () => _$positionalChildren11([
|
|
3463
|
-
showDownload ? _$createScopedValue18(() => _$createElementFromConfig13("c:
|
|
3464
|
-
showCopy ? _$createElementFromConfig13("c:
|
|
3463
|
+
showDownload ? _$createScopedValue18(() => _$createElementFromConfig13("c:6e1b157d", CodeBlockDownloadButton, { code, language })) : null,
|
|
3464
|
+
showCopy ? _$createElementFromConfig13("c:55bafb23", CodeBlockCopyButton, {}) : null
|
|
3465
3465
|
])) : null,
|
|
3466
|
-
"c:
|
|
3466
|
+
"c:de38217f"
|
|
3467
3467
|
));
|
|
3468
3468
|
};
|
|
3469
3469
|
var MemoCode = memo2(CodeComponent, (p, n) => p.className === n.className && sameNodePosition(p.node, n.node));
|
|
@@ -4097,12 +4097,12 @@ var Block = memo3(({
|
|
|
4097
4097
|
animatePluginProp.setPrevContentLength(prevCount);
|
|
4098
4098
|
}
|
|
4099
4099
|
const normalizedContent = typeof content === "string" && shouldNormalizeHtmlIndentation ? normalizeHtmlIndentation(content) : content;
|
|
4100
|
-
const inner = _$createScopedValue19(() => _$createScopedElement17(Markdown, { ...props }, () => normalizedContent, "c:
|
|
4100
|
+
const inner = _$createScopedValue19(() => _$createScopedElement17(Markdown, { ...props }, () => normalizedContent, "c:c4315244"));
|
|
4101
4101
|
return _$createScopedValue19(() => _$createScopedElement17(
|
|
4102
4102
|
BlockIncompleteContext,
|
|
4103
4103
|
{ value: isIncomplete },
|
|
4104
4104
|
() => dir ? _$createScopedValue19(() => _$createScopedElement17("div", { dir, style: { display: "contents" } }, () => inner)) : inner,
|
|
4105
|
-
"c:
|
|
4105
|
+
"c:d6620917"
|
|
4106
4106
|
));
|
|
4107
4107
|
});
|
|
4108
4108
|
Object.assign(Block, { displayName: "Block" });
|
|
@@ -4384,18 +4384,18 @@ var Streamdown = memo3(({
|
|
|
4384
4384
|
...props
|
|
4385
4385
|
},
|
|
4386
4386
|
() => processedChildren,
|
|
4387
|
-
"c:
|
|
4387
|
+
"c:3d295d78"
|
|
4388
4388
|
))
|
|
4389
4389
|
)),
|
|
4390
|
-
"c:
|
|
4390
|
+
"c:e61a1e0a"
|
|
4391
4391
|
)),
|
|
4392
|
-
"c:
|
|
4392
|
+
"c:1c3fc55d"
|
|
4393
4393
|
)),
|
|
4394
|
-
"c:
|
|
4394
|
+
"c:3d267566"
|
|
4395
4395
|
)),
|
|
4396
|
-
"c:
|
|
4396
|
+
"c:a73002e6"
|
|
4397
4397
|
)),
|
|
4398
|
-
"c:
|
|
4398
|
+
"c:d230c0e0"
|
|
4399
4399
|
));
|
|
4400
4400
|
}
|
|
4401
4401
|
return _$createScopedValue19(() => _$createScopedElement17(
|
|
@@ -4428,7 +4428,7 @@ var Streamdown = memo3(({
|
|
|
4428
4428
|
blocksToRender.map((block, index) => {
|
|
4429
4429
|
const isLastBlock = index === blocksToRender.length - 1;
|
|
4430
4430
|
const isIncomplete = isAnimating && isLastBlock && hasIncompleteCodeFence(block);
|
|
4431
|
-
return _$createElementFromConfig14("c:
|
|
4431
|
+
return _$createElementFromConfig14("c:caeedc90", BlockComponent, {
|
|
4432
4432
|
animatePlugin,
|
|
4433
4433
|
components: mergedComponents,
|
|
4434
4434
|
content: block,
|
|
@@ -4445,15 +4445,15 @@ var Streamdown = memo3(({
|
|
|
4445
4445
|
})
|
|
4446
4446
|
])
|
|
4447
4447
|
)),
|
|
4448
|
-
"c:
|
|
4448
|
+
"c:b666b4c3"
|
|
4449
4449
|
)),
|
|
4450
|
-
"c:
|
|
4450
|
+
"c:eb8b7510"
|
|
4451
4451
|
)),
|
|
4452
|
-
"c:
|
|
4452
|
+
"c:96a34bf5"
|
|
4453
4453
|
)),
|
|
4454
|
-
"c:
|
|
4454
|
+
"c:2117e7a8"
|
|
4455
4455
|
)),
|
|
4456
|
-
"c:
|
|
4456
|
+
"c:732f750e"
|
|
4457
4457
|
));
|
|
4458
4458
|
});
|
|
4459
4459
|
Object.assign(Streamdown, { displayName: "Streamdown" });
|
|
@@ -4653,7 +4653,7 @@ var PanZoom = ({
|
|
|
4653
4653
|
title: "Zoom in",
|
|
4654
4654
|
type: "button"
|
|
4655
4655
|
},
|
|
4656
|
-
() => _$createElementFromConfig15("c:
|
|
4656
|
+
() => _$createElementFromConfig15("c:62b796db", ZoomInIcon2, { size: 16 })
|
|
4657
4657
|
)),
|
|
4658
4658
|
_$createScopedValue20(() => _$createScopedElement18(
|
|
4659
4659
|
"button",
|
|
@@ -4664,7 +4664,7 @@ var PanZoom = ({
|
|
|
4664
4664
|
title: "Zoom out",
|
|
4665
4665
|
type: "button"
|
|
4666
4666
|
},
|
|
4667
|
-
() => _$createElementFromConfig15("c:
|
|
4667
|
+
() => _$createElementFromConfig15("c:bee4e721", ZoomOutIcon2, { size: 16 })
|
|
4668
4668
|
)),
|
|
4669
4669
|
_$createScopedValue20(() => _$createScopedElement18(
|
|
4670
4670
|
"button",
|
|
@@ -4674,7 +4674,7 @@ var PanZoom = ({
|
|
|
4674
4674
|
title: "Reset zoom and pan",
|
|
4675
4675
|
type: "button"
|
|
4676
4676
|
},
|
|
4677
|
-
() => _$createElementFromConfig15("c:
|
|
4677
|
+
() => _$createElementFromConfig15("c:05d35498", RotateCcwIcon2, { size: 16 })
|
|
4678
4678
|
))
|
|
4679
4679
|
])
|
|
4680
4680
|
)) : null,
|
|
@@ -4813,7 +4813,7 @@ var Mermaid = ({
|
|
|
4813
4813
|
if (error && !svgContent && !lastValidSvg) {
|
|
4814
4814
|
const retry = () => setRetryCount((count) => count + 1);
|
|
4815
4815
|
if (ErrorComponent) {
|
|
4816
|
-
return _$createScopedValue21(() => _$createScopedElement19("div", { ref: containerRef }, () => _$createScopedValue21(() => _$createElementFromConfig16("c:
|
|
4816
|
+
return _$createScopedValue21(() => _$createScopedElement19("div", { ref: containerRef }, () => _$createScopedValue21(() => _$createElementFromConfig16("c:aa427d6e", ErrorComponent, { chart, error, retry }))));
|
|
4817
4817
|
}
|
|
4818
4818
|
return _$createScopedValue21(() => _$createScopedElement19(
|
|
4819
4819
|
"div",
|
|
@@ -4860,7 +4860,7 @@ var Mermaid = ({
|
|
|
4860
4860
|
dangerouslySetInnerHTML: { __html: displaySvg },
|
|
4861
4861
|
role: "img"
|
|
4862
4862
|
})),
|
|
4863
|
-
"c:
|
|
4863
|
+
"c:6a768960"
|
|
4864
4864
|
))
|
|
4865
4865
|
));
|
|
4866
4866
|
};
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
CodeBlockBody,
|
|
4
4
|
StreamdownContext,
|
|
5
5
|
useCodePlugin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GRC6QORD.js";
|
|
7
7
|
|
|
8
8
|
// src/lib/code-block/highlighted-body.tsrx
|
|
9
9
|
import { createElementFromConfig as _$createElementFromConfig } from "octane/internal/server";
|
|
@@ -62,7 +62,7 @@ var HighlightedCodeBlockBody = ({
|
|
|
62
62
|
[request, raw],
|
|
63
63
|
_h$4
|
|
64
64
|
);
|
|
65
|
-
return _$createScopedValue(() => _$createElementFromConfig("c:
|
|
65
|
+
return _$createScopedValue(() => _$createElementFromConfig("c:83c73cc4", CodeBlockBody, { className, language, lineNumbers, result, startLine, ...rest }));
|
|
66
66
|
};
|
|
67
67
|
export {
|
|
68
68
|
HighlightedCodeBlockBody
|
package/dist/server/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/streamdown",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.38",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"unist-util-visit-parents": "^6.0.0"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
95
|
-
"octane": "^0.
|
|
95
|
+
"octane": "^0.8.0"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
98
|
"@testing-library/jest-dom": "^6.9.1",
|
|
@@ -108,13 +108,13 @@
|
|
|
108
108
|
"@streamdown/mermaid": "1.0.2",
|
|
109
109
|
"@streamdown/cjk": "1.0.3",
|
|
110
110
|
"vitest": "^4.1.10",
|
|
111
|
-
"@octanejs/testing-library": "0.1.
|
|
112
|
-
"octane": "0.
|
|
111
|
+
"@octanejs/testing-library": "0.1.57",
|
|
112
|
+
"octane": "0.8.0"
|
|
113
113
|
},
|
|
114
114
|
"scripts": {
|
|
115
115
|
"build": "node scripts/build.mjs",
|
|
116
116
|
"test": "vitest run --root ../.. --project streamdown --project streamdown-differential --project streamdown-ssr",
|
|
117
|
-
"typecheck": "
|
|
117
|
+
"typecheck": "octane-tsc -p tsconfig.json -p typetests/tsconfig.json",
|
|
118
118
|
"types:check": "node scripts/generate-tsrx-types.mjs --check && node scripts/check-public-types.mjs",
|
|
119
119
|
"types:generate": "node scripts/generate-tsrx-types.mjs"
|
|
120
120
|
}
|