@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.
Files changed (30) hide show
  1. package/dist/client/chunks/{chunk-HOETYBTH.js → chunk-HTKGPGBF.js} +394 -305
  2. package/dist/client/chunks/{highlighted-body-X5FGOOXL.js → highlighted-body-PO42OPN2.js} +9 -9
  3. package/dist/{server/chunks/mermaid-SICAYVAP.js → client/chunks/mermaid-2J5JVDRZ.js} +1 -1
  4. package/dist/client/index.js +1 -1
  5. package/dist/server/chunks/{chunk-55X6YY2C.js → chunk-SZ5CVE3Y.js} +783 -411
  6. package/dist/server/chunks/{highlighted-body-NLELYOBH.js → highlighted-body-7UTJYNOJ.js} +18 -9
  7. package/dist/{client/chunks/mermaid-RM4TPAM4.js → server/chunks/mermaid-EGA7TDDR.js} +1 -1
  8. package/dist/server/index.js +1 -1
  9. package/dist/types/index.d.ts +8 -2
  10. package/dist/types/lib/code-block/body.d.ts +4 -1
  11. package/dist/types/lib/code-block/container.d.ts +1 -1
  12. package/dist/types/lib/code-block/copy-button.d.ts +1 -1
  13. package/dist/types/lib/code-block/download-button.d.ts +1 -1
  14. package/dist/types/lib/code-block/header.d.ts +1 -1
  15. package/dist/types/lib/code-block/highlighted-body.d.ts +1 -1
  16. package/dist/types/lib/code-block/index.d.ts +1 -1
  17. package/dist/types/lib/code-block/skeleton.d.ts +1 -1
  18. package/dist/types/lib/icon-context.d.ts +1 -1
  19. package/dist/types/lib/icons.d.ts +10 -10
  20. package/dist/types/lib/image.d.ts +1 -1
  21. package/dist/types/lib/link-modal.d.ts +1 -1
  22. package/dist/types/lib/mermaid/download-button.d.ts +1 -1
  23. package/dist/types/lib/mermaid/fullscreen-button.d.ts +1 -1
  24. package/dist/types/lib/mermaid/index.d.ts +1 -1
  25. package/dist/types/lib/mermaid/pan-zoom.d.ts +1 -1
  26. package/dist/types/lib/table/copy-dropdown.d.ts +1 -1
  27. package/dist/types/lib/table/download-dropdown.d.ts +2 -2
  28. package/dist/types/lib/table/fullscreen-button.d.ts +1 -1
  29. package/dist/types/lib/table/index.d.ts +1 -1
  30. package/package.json +7 -7
@@ -3,11 +3,16 @@ import {
3
3
  CodeBlockBody,
4
4
  StreamdownContext,
5
5
  useCodePlugin
6
- } from "./chunk-HOETYBTH.js";
6
+ } from "./chunk-HTKGPGBF.js";
7
7
 
8
8
  // src/lib/code-block/highlighted-body.tsrx
9
9
  import {
10
- createElement as _$createElement,
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, _h$0);
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(() => _$createElement(CodeBlockBody, { className, language, lineNumbers, result, startLine, ...rest }));
71
+ return _$createScopedValue(() => _$createElementFromConfig("c:5af9494b", CodeBlockBody, { className, language, lineNumbers, result, startLine, ...rest }));
72
72
  };
73
73
  export {
74
74
  HighlightedCodeBlockBody
@@ -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-55X6YY2C.js";
4
+ } from "./chunk-HTKGPGBF.js";
5
5
  export {
6
6
  Mermaid
7
7
  };
@@ -26,7 +26,7 @@ import {
26
26
  tableDataToMarkdown,
27
27
  tableDataToTSV,
28
28
  useIsCodeFenceIncomplete
29
- } from "./chunks/chunk-HOETYBTH.js";
29
+ } from "./chunks/chunk-HTKGPGBF.js";
30
30
  export {
31
31
  Block,
32
32
  CodeBlock,