@octanejs/streamdown 0.1.31 → 0.1.33
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-HOETYBTH.js → chunk-HTKGPGBF.js} +394 -305
- package/dist/client/chunks/{highlighted-body-X5FGOOXL.js → highlighted-body-PO42OPN2.js} +9 -9
- package/dist/{server/chunks/mermaid-SICAYVAP.js → client/chunks/mermaid-2J5JVDRZ.js} +1 -1
- package/dist/client/index.js +1 -1
- package/dist/server/chunks/{chunk-55X6YY2C.js → chunk-SZ5CVE3Y.js} +783 -411
- package/dist/server/chunks/{highlighted-body-NLELYOBH.js → highlighted-body-7UTJYNOJ.js} +18 -9
- package/dist/{client/chunks/mermaid-RM4TPAM4.js → server/chunks/mermaid-EGA7TDDR.js} +1 -1
- package/dist/server/index.js +1 -1
- package/dist/types/index.d.ts +8 -2
- package/dist/types/lib/code-block/body.d.ts +4 -1
- package/dist/types/lib/code-block/container.d.ts +1 -1
- package/dist/types/lib/code-block/copy-button.d.ts +1 -1
- package/dist/types/lib/code-block/download-button.d.ts +1 -1
- package/dist/types/lib/code-block/header.d.ts +1 -1
- package/dist/types/lib/code-block/highlighted-body.d.ts +1 -1
- package/dist/types/lib/code-block/index.d.ts +1 -1
- package/dist/types/lib/code-block/skeleton.d.ts +1 -1
- package/dist/types/lib/icon-context.d.ts +1 -1
- package/dist/types/lib/icons.d.ts +10 -10
- package/dist/types/lib/image.d.ts +1 -1
- package/dist/types/lib/link-modal.d.ts +1 -1
- package/dist/types/lib/mermaid/download-button.d.ts +1 -1
- package/dist/types/lib/mermaid/fullscreen-button.d.ts +1 -1
- package/dist/types/lib/mermaid/index.d.ts +1 -1
- package/dist/types/lib/mermaid/pan-zoom.d.ts +1 -1
- package/dist/types/lib/table/copy-dropdown.d.ts +1 -1
- package/dist/types/lib/table/download-dropdown.d.ts +2 -2
- package/dist/types/lib/table/fullscreen-button.d.ts +1 -1
- package/dist/types/lib/table/index.d.ts +1 -1
- package/package.json +7 -7
|
@@ -3,11 +3,16 @@ import {
|
|
|
3
3
|
CodeBlockBody,
|
|
4
4
|
StreamdownContext,
|
|
5
5
|
useCodePlugin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HTKGPGBF.js";
|
|
7
7
|
|
|
8
8
|
// src/lib/code-block/highlighted-body.tsrx
|
|
9
9
|
import {
|
|
10
|
-
|
|
10
|
+
createElementFromConfig as _$createElementFromConfig,
|
|
11
|
+
memoPublish as _$memoPublish,
|
|
12
|
+
memoSlot as _$memoSlot,
|
|
13
|
+
memoTake4 as _$memoTake4
|
|
14
|
+
} from "octane/internal/client";
|
|
15
|
+
import {
|
|
11
16
|
createScopedValue as _$createScopedValue,
|
|
12
17
|
hookSlots as _$hookSlots,
|
|
13
18
|
useContext,
|
|
@@ -17,11 +22,6 @@ import {
|
|
|
17
22
|
useState,
|
|
18
23
|
withSlot as _$withSlot
|
|
19
24
|
} from "octane";
|
|
20
|
-
import {
|
|
21
|
-
memoPublish as _$memoPublish,
|
|
22
|
-
memoSlot as _$memoSlot,
|
|
23
|
-
memoTake4 as _$memoTake4
|
|
24
|
-
} from "octane/internal/client";
|
|
25
25
|
var _hs$ = /* @__PURE__ */ _$hookSlots(5);
|
|
26
26
|
var _h$0 = /* @__PURE__ */ Symbol(_hs$);
|
|
27
27
|
var _h$1 = /* @__PURE__ */ Symbol(_hs$ + 1);
|
|
@@ -39,7 +39,7 @@ var HighlightedCodeBlockBody = ({
|
|
|
39
39
|
}) => {
|
|
40
40
|
let __hks, __hkd0, __hkd1, __hkd2, __hkd3, __hke;
|
|
41
41
|
const { shikiTheme } = useContext(StreamdownContext);
|
|
42
|
-
const codePlugin = _$withSlot(_h$0, useCodePlugin
|
|
42
|
+
const codePlugin = _$withSlot(_h$0, useCodePlugin);
|
|
43
43
|
const request = (__hkd0 = code, __hkd1 = language, __hkd2 = codePlugin, __hkd3 = shikiTheme, __hks = _$memoSlot(_h$1, "useMemo"), __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);
|
|
@@ -68,7 +68,7 @@ var HighlightedCodeBlockBody = ({
|
|
|
68
68
|
[request, raw],
|
|
69
69
|
_h$4
|
|
70
70
|
);
|
|
71
|
-
return _$createScopedValue(() => _$
|
|
71
|
+
return _$createScopedValue(() => _$createElementFromConfig("c:5af9494b", CodeBlockBody, { className, language, lineNumbers, result, startLine, ...rest }));
|
|
72
72
|
};
|
|
73
73
|
export {
|
|
74
74
|
HighlightedCodeBlockBody
|