@octanejs/streamdown 0.1.25 → 0.1.27
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-546NLYEB.js → chunk-HOETYBTH.js} +83 -83
- package/dist/client/chunks/{highlighted-body-F5VO3CPW.js → highlighted-body-X5FGOOXL.js} +1 -1
- package/dist/client/chunks/{mermaid-DL22PFDA.js → mermaid-RM4TPAM4.js} +1 -1
- package/dist/client/index.js +1 -1
- package/package.json +5 -5
|
@@ -44,7 +44,7 @@ function withoutSlot(value) {
|
|
|
44
44
|
return typeof value === "symbol" ? void 0 : value;
|
|
45
45
|
}
|
|
46
46
|
function useDeferredRender(options = {}) {
|
|
47
|
-
let __hks, __hke, __hks$, __hkd0, __hke$, __hks
|
|
47
|
+
let __hks, __hke, __hks$, __hkd0, __hke$, __hks$2, __hke$2;
|
|
48
48
|
const {
|
|
49
49
|
immediate = false,
|
|
50
50
|
debounceDelay = DEFERRED_RENDER_DEBOUNCE_DELAY,
|
|
@@ -72,9 +72,9 @@ function useDeferredRender(options = {}) {
|
|
|
72
72
|
typeof window !== "undefined" && window.requestIdleCallback ? (cb, opts) => window.requestIdleCallback(cb, opts) : requestIdleCallbackPolyfill,
|
|
73
73
|
__hkd0
|
|
74
74
|
) : __hke$.value);
|
|
75
|
-
const cancelIdleCallbackWrapper = (__hks
|
|
75
|
+
const cancelIdleCallbackWrapper = (__hks$2 = _$memoSlot(_h$6, "useMemo"), __hke$2 = _$memoTake0(__hks$2), __hke$2 === null ? _$memoPublish(__hks$2, typeof window !== "undefined" && window.cancelIdleCallback ? (id) => window.cancelIdleCallback(id) : (id) => {
|
|
76
76
|
clearTimeout(id);
|
|
77
|
-
}) : __hke
|
|
77
|
+
}) : __hke$2.value);
|
|
78
78
|
useEffect(
|
|
79
79
|
() => {
|
|
80
80
|
if (immediate) {
|
|
@@ -636,7 +636,7 @@ var trimTrailingNewlines = (str) => {
|
|
|
636
636
|
}
|
|
637
637
|
return str.slice(0, end);
|
|
638
638
|
};
|
|
639
|
-
var HighlightedCodeBlockBody = /* @__PURE__ */ lazy(() => import("./highlighted-body-
|
|
639
|
+
var HighlightedCodeBlockBody = /* @__PURE__ */ lazy(() => import("./highlighted-body-X5FGOOXL.js").then((mod) => ({ default: mod.HighlightedCodeBlockBody })));
|
|
640
640
|
var CodeBlock = ({
|
|
641
641
|
code,
|
|
642
642
|
language,
|
|
@@ -2842,7 +2842,7 @@ var _h$262 = /* @__PURE__ */ Symbol(_hs$19 + 26);
|
|
|
2842
2842
|
var _h$272 = /* @__PURE__ */ Symbol(_hs$19 + 27);
|
|
2843
2843
|
var START_LINE_PATTERN = /startLine=(\d+)/;
|
|
2844
2844
|
var NO_LINE_NUMBERS_PATTERN = /\bnoLineNumbers\b/;
|
|
2845
|
-
var Mermaid2 = /* @__PURE__ */ lazy2(() => import("./mermaid-
|
|
2845
|
+
var Mermaid2 = /* @__PURE__ */ lazy2(() => import("./mermaid-RM4TPAM4.js").then((mod) => ({ default: mod.Mermaid })));
|
|
2846
2846
|
var LANGUAGE_REGEX = /language-([^\s]+)/;
|
|
2847
2847
|
function sameNodePosition(prev, next) {
|
|
2848
2848
|
if (!(prev?.position || next?.position)) {
|
|
@@ -2982,7 +2982,7 @@ var MemoStrong = memo2(
|
|
|
2982
2982
|
);
|
|
2983
2983
|
Object.assign(MemoStrong, { displayName: "MarkdownStrong" });
|
|
2984
2984
|
var LinkComponent = ({ children, className, href, node, ...props }) => {
|
|
2985
|
-
let __hks, __hkd0, __hkd1, __hkd2, __hke, __hks$, __hkd0$, __hke$, __hks
|
|
2985
|
+
let __hks, __hkd0, __hkd1, __hkd2, __hke, __hks$, __hkd0$, __hke$, __hks$2, __hke$2;
|
|
2986
2986
|
const cn2 = _$withSlot17(_h$59, useCn, _h$59);
|
|
2987
2987
|
const { linkSafety } = useContext14(StreamdownContext);
|
|
2988
2988
|
const [isModalOpen, setIsModalOpen] = useState10(false, _h$68);
|
|
@@ -3016,9 +3016,9 @@ var LinkComponent = ({ children, className, href, node, ...props }) => {
|
|
|
3016
3016
|
},
|
|
3017
3017
|
__hkd0$
|
|
3018
3018
|
) : __hke$.value);
|
|
3019
|
-
const handleCloseModal = (__hks
|
|
3019
|
+
const handleCloseModal = (__hks$2 = _$memoSlot6(_h$9, "useCallback"), __hke$2 = _$memoTake02(__hks$2), __hke$2 === null ? _$memoPublish6(__hks$2, () => {
|
|
3020
3020
|
setIsModalOpen(false);
|
|
3021
|
-
}) : __hke
|
|
3021
|
+
}) : __hke$2.value);
|
|
3022
3022
|
const modalProps = {
|
|
3023
3023
|
url: href ?? "",
|
|
3024
3024
|
isOpen: isModalOpen,
|
|
@@ -4152,7 +4152,7 @@ var Streamdown = memo3(({
|
|
|
4152
4152
|
onAnimationEnd,
|
|
4153
4153
|
...props
|
|
4154
4154
|
}) => {
|
|
4155
|
-
let __hks, __hkd0, __hke, __hks$, __hkd0$, __hke$, __hks
|
|
4155
|
+
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;
|
|
4156
4156
|
const generatedId = useId(_h$020);
|
|
4157
4157
|
const [_isPending, startTransition] = useTransition(_h$117);
|
|
4158
4158
|
const prefixedCn = (__hkd0 = prefix, __hks = _$memoSlot7(_h$215, "useMemo"), __hke = _$memoTake15(__hks, __hkd0), __hke === null ? _$memoPublish7(__hks, createCn(prefix), __hkd0) : __hke.value);
|
|
@@ -4208,7 +4208,7 @@ var Streamdown = memo3(({
|
|
|
4208
4208
|
],
|
|
4209
4209
|
_h$83
|
|
4210
4210
|
);
|
|
4211
|
-
const blocks = (__hkd0
|
|
4211
|
+
const blocks = (__hkd0$2 = processedChildren, __hkd1 = parseMarkdownIntoBlocksFn, __hks$2 = _$memoSlot7(_h$92, "useMemo"), __hke$2 = _$memoTake24(__hks$2, __hkd0$2, __hkd1), __hke$2 === null ? _$memoPublish7(__hks$2, parseMarkdownIntoBlocksFn(processedChildren), __hkd0$2, __hkd1) : __hke$2.value);
|
|
4212
4212
|
const [displayBlocks, setDisplayBlocks] = useState11(blocks, _h$102);
|
|
4213
4213
|
useEffect10(
|
|
4214
4214
|
() => {
|
|
@@ -4224,13 +4224,13 @@ var Streamdown = memo3(({
|
|
|
4224
4224
|
_h$118
|
|
4225
4225
|
);
|
|
4226
4226
|
const blocksToRender = mode === "streaming" ? displayBlocks : blocks;
|
|
4227
|
-
const blockDirections = (__hkd0
|
|
4228
|
-
const blockKeys = (__hkd0
|
|
4227
|
+
const blockDirections = (__hkd0$3 = blocksToRender, __hkd1$ = dir, __hks$3 = _$memoSlot7(_h$123, "useMemo"), __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);
|
|
4228
|
+
const blockKeys = (__hkd0$4 = blocksToRender.length, __hkd1$2 = generatedId, __hks$4 = _$memoSlot7(_h$133, "useMemo"), __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);
|
|
4229
4229
|
{
|
|
4230
|
-
__hkd0
|
|
4231
|
-
__hks
|
|
4232
|
-
__hke
|
|
4233
|
-
if (__hke
|
|
4230
|
+
__hkd0$5 = animated;
|
|
4231
|
+
__hks$5 = _$memoSlot7(_h$143, "useMemo");
|
|
4232
|
+
__hke$5 = _$memoTake15(__hks$5, __hkd0$5);
|
|
4233
|
+
if (__hke$5 === null) {
|
|
4234
4234
|
__hkl: {
|
|
4235
4235
|
if (animated === true) {
|
|
4236
4236
|
{
|
|
@@ -4250,15 +4250,15 @@ var Streamdown = memo3(({
|
|
|
4250
4250
|
}
|
|
4251
4251
|
__hkv = void 0;
|
|
4252
4252
|
}
|
|
4253
|
-
__hkr = _$memoPublish7(__hks
|
|
4254
|
-
} else __hkr = __hke
|
|
4253
|
+
__hkr = _$memoPublish7(__hks$5, __hkv, __hkd0$5);
|
|
4254
|
+
} else __hkr = __hke$5.value;
|
|
4255
4255
|
}
|
|
4256
4256
|
const animatedKey = __hkr;
|
|
4257
4257
|
{
|
|
4258
|
-
__hkd0
|
|
4259
|
-
__hks
|
|
4260
|
-
__hke
|
|
4261
|
-
if (__hke
|
|
4258
|
+
__hkd0$6 = animatedKey;
|
|
4259
|
+
__hks$6 = _$memoSlot7(_h$153, "useMemo");
|
|
4260
|
+
__hke$6 = _$memoTake15(__hks$6, __hkd0$6);
|
|
4261
|
+
if (__hke$6 === null) {
|
|
4262
4262
|
__hkl$: {
|
|
4263
4263
|
if (!animatedKey) {
|
|
4264
4264
|
{
|
|
@@ -4278,8 +4278,8 @@ var Streamdown = memo3(({
|
|
|
4278
4278
|
}
|
|
4279
4279
|
__hkv$ = void 0;
|
|
4280
4280
|
}
|
|
4281
|
-
__hkr$ = _$memoPublish7(__hks
|
|
4282
|
-
} else __hkr$ = __hke
|
|
4281
|
+
__hkr$ = _$memoPublish7(__hks$6, __hkv$, __hkd0$6);
|
|
4282
|
+
} else __hkr$ = __hke$6.value;
|
|
4283
4283
|
}
|
|
4284
4284
|
const animatePlugin = __hkr$;
|
|
4285
4285
|
const contextValue = useMemo4(
|
|
@@ -4304,8 +4304,8 @@ var Streamdown = memo3(({
|
|
|
4304
4304
|
],
|
|
4305
4305
|
_h$163
|
|
4306
4306
|
);
|
|
4307
|
-
const translationsKey = (__hkd0
|
|
4308
|
-
const translationsValue = (__hkd0
|
|
4307
|
+
const translationsKey = (__hkd0$7 = translations, __hks$7 = _$memoSlot7(_h$173, "useMemo"), __hke$7 = _$memoTake15(__hks$7, __hkd0$7), __hke$7 === null ? _$memoPublish7(__hks$7, translations ? JSON.stringify(translations) : "", __hkd0$7) : __hke$7.value);
|
|
4308
|
+
const translationsValue = (__hkd0$8 = translationsKey, __hks$8 = _$memoSlot7(_h$183, "useMemo"), __hke$8 = _$memoTake15(__hks$8, __hkd0$8), __hke$8 === null ? _$memoPublish7(__hks$8, { ...defaultTranslations, ...translations }, __hkd0$8) : __hke$8.value);
|
|
4309
4309
|
const mergedComponents = useMemo4(
|
|
4310
4310
|
() => {
|
|
4311
4311
|
const { inlineCode, ...userComponents } = components2 ?? {};
|
|
@@ -4326,13 +4326,13 @@ var Streamdown = memo3(({
|
|
|
4326
4326
|
_h$193
|
|
4327
4327
|
);
|
|
4328
4328
|
{
|
|
4329
|
-
__hkd0
|
|
4330
|
-
__hkd1
|
|
4329
|
+
__hkd0$9 = remarkPlugins;
|
|
4330
|
+
__hkd1$3 = plugins?.math;
|
|
4331
4331
|
__hkd2 = plugins?.cjk;
|
|
4332
|
-
__hks
|
|
4333
|
-
__hke
|
|
4334
|
-
if (__hke
|
|
4335
|
-
__hkl
|
|
4332
|
+
__hks$9 = _$memoSlot7(_h$202, "useMemo");
|
|
4333
|
+
__hke$9 = _$memoTake33(__hks$9, __hkd0$9, __hkd1$3, __hkd2);
|
|
4334
|
+
if (__hke$9 === null) {
|
|
4335
|
+
__hkl$2: {
|
|
4336
4336
|
let result = [];
|
|
4337
4337
|
if (plugins?.cjk) {
|
|
4338
4338
|
result = [...result, ...plugins.cjk.remarkPluginsBefore];
|
|
@@ -4345,15 +4345,15 @@ var Streamdown = memo3(({
|
|
|
4345
4345
|
result = [...result, plugins.math.remarkPlugin];
|
|
4346
4346
|
}
|
|
4347
4347
|
{
|
|
4348
|
-
__hkv
|
|
4349
|
-
break __hkl
|
|
4348
|
+
__hkv$2 = result;
|
|
4349
|
+
break __hkl$2;
|
|
4350
4350
|
}
|
|
4351
|
-
__hkv
|
|
4351
|
+
__hkv$2 = void 0;
|
|
4352
4352
|
}
|
|
4353
|
-
__hkr
|
|
4354
|
-
} else __hkr
|
|
4353
|
+
__hkr$2 = _$memoPublish7(__hks$9, __hkv$2, __hkd0$9, __hkd1$3, __hkd2);
|
|
4354
|
+
} else __hkr$2 = __hke$9.value;
|
|
4355
4355
|
}
|
|
4356
|
-
const mergedRemarkPlugins = __hkr
|
|
4356
|
+
const mergedRemarkPlugins = __hkr$2;
|
|
4357
4357
|
const mergedRehypePlugins = useMemo4(
|
|
4358
4358
|
() => {
|
|
4359
4359
|
let result = rehypePlugins;
|
|
@@ -4394,36 +4394,36 @@ var Streamdown = memo3(({
|
|
|
4394
4394
|
_h$216
|
|
4395
4395
|
);
|
|
4396
4396
|
{
|
|
4397
|
-
__hkd0
|
|
4398
|
-
__hkd1
|
|
4399
|
-
__hks
|
|
4400
|
-
__hke
|
|
4401
|
-
if (__hke
|
|
4402
|
-
__hkl
|
|
4397
|
+
__hkd0$10 = isAnimating;
|
|
4398
|
+
__hkd1$4 = blocksToRender;
|
|
4399
|
+
__hks$10 = _$memoSlot7(_h$223, "useMemo");
|
|
4400
|
+
__hke$10 = _$memoTake24(__hks$10, __hkd0$10, __hkd1$4);
|
|
4401
|
+
if (__hke$10 === null) {
|
|
4402
|
+
__hkl$3: {
|
|
4403
4403
|
if (!isAnimating || blocksToRender.length === 0) {
|
|
4404
4404
|
{
|
|
4405
|
-
__hkv
|
|
4406
|
-
break __hkl
|
|
4405
|
+
__hkv$3 = false;
|
|
4406
|
+
break __hkl$3;
|
|
4407
4407
|
}
|
|
4408
4408
|
}
|
|
4409
4409
|
const lastBlock = blocksToRender.at(-1);
|
|
4410
4410
|
{
|
|
4411
|
-
__hkv
|
|
4412
|
-
break __hkl
|
|
4411
|
+
__hkv$3 = hasIncompleteCodeFence(lastBlock) || hasTable(lastBlock);
|
|
4412
|
+
break __hkl$3;
|
|
4413
4413
|
}
|
|
4414
|
-
__hkv
|
|
4414
|
+
__hkv$3 = void 0;
|
|
4415
4415
|
}
|
|
4416
|
-
__hkr
|
|
4417
|
-
} else __hkr
|
|
4416
|
+
__hkr$3 = _$memoPublish7(__hks$10, __hkv$3, __hkd0$10, __hkd1$4);
|
|
4417
|
+
} else __hkr$3 = __hke$10.value;
|
|
4418
4418
|
}
|
|
4419
|
-
const shouldHideCaret = __hkr
|
|
4420
|
-
const style = (__hkd0
|
|
4421
|
-
__hks
|
|
4419
|
+
const shouldHideCaret = __hkr$3;
|
|
4420
|
+
const style = (__hkd0$11 = caret, __hkd1$5 = isAnimating, __hkd2$ = shouldHideCaret, __hks$11 = _$memoSlot7(_h$233, "useMemo"), __hke$11 = _$memoTake33(__hks$11, __hkd0$11, __hkd1$5, __hkd2$), __hke$11 === null ? _$memoPublish7(
|
|
4421
|
+
__hks$11,
|
|
4422
4422
|
caret && isAnimating && !shouldHideCaret ? { "--streamdown-caret": `"${carets[caret]}"` } : void 0,
|
|
4423
|
-
__hkd0
|
|
4424
|
-
__hkd1
|
|
4423
|
+
__hkd0$11,
|
|
4424
|
+
__hkd1$5,
|
|
4425
4425
|
__hkd2$
|
|
4426
|
-
) : __hke
|
|
4426
|
+
) : __hke$11.value);
|
|
4427
4427
|
if (mode === "static") {
|
|
4428
4428
|
animatePlugin?.setActiveBlock("static");
|
|
4429
4429
|
return _$createScopedValue19(() => _$createScopedElement17(TranslationsContext.Provider, { value: translationsValue }, () => _$createScopedValue19(() => _$createScopedElement17(PluginContext.Provider, { value: plugins ?? null }, () => _$createScopedValue19(() => _$createScopedElement17(StreamdownContext.Provider, { value: contextValue }, () => _$createScopedValue19(() => _$createScopedElement17(IconProvider, { icons: iconOverrides }, () => _$createScopedValue19(() => _$createScopedElement17(PrefixContext.Provider, { value: prefixedCn }, () => _$createScopedValue19(() => _$createScopedElement17(
|
|
@@ -4530,7 +4530,7 @@ var PanZoom = ({
|
|
|
4530
4530
|
initialZoom = 1,
|
|
4531
4531
|
fullscreen = false
|
|
4532
4532
|
}) => {
|
|
4533
|
-
let __hks, __hkd0, __hkd1, __hke, __hks$, __hkd0$, __hkd1$, __hke$, __hks
|
|
4533
|
+
let __hks, __hkd0, __hkd1, __hke, __hks$, __hkd0$, __hkd1$, __hke$, __hks$2, __hkd0$2, __hkd1$2, __hke$2, __hks$3, __hkd0$3, __hke$3, __hks$4, __hkd0$4, __hkd1$3, __hke$4, __hks$5, __hkd0$5, __hke$5, __hks$6, __hkd0$6, __hkd1$4, __hkd2, __hke$6, __hks$7, __hke$7;
|
|
4534
4534
|
const { RotateCcwIcon: RotateCcwIcon2, ZoomInIcon: ZoomInIcon2, ZoomOutIcon: ZoomOutIcon2 } = _$withSlot18(_h$021, useIcons, _h$021);
|
|
4535
4535
|
const cn2 = _$withSlot18(_h$119, useCn, _h$119);
|
|
4536
4536
|
const containerRef = useRef9(null, _h$217);
|
|
@@ -4559,34 +4559,34 @@ var PanZoom = ({
|
|
|
4559
4559
|
__hkd0$,
|
|
4560
4560
|
__hkd1$
|
|
4561
4561
|
) : __hke$.value);
|
|
4562
|
-
const handleZoomOut = (__hkd0
|
|
4563
|
-
__hks
|
|
4562
|
+
const handleZoomOut = (__hkd0$2 = handleZoom, __hkd1$2 = zoomStep, __hks$2 = _$memoSlot8(_h$1110, "useCallback"), __hke$2 = _$memoTake25(__hks$2, __hkd0$2, __hkd1$2), __hke$2 === null ? _$memoPublish8(
|
|
4563
|
+
__hks$2,
|
|
4564
4564
|
() => {
|
|
4565
4565
|
handleZoom(-zoomStep);
|
|
4566
4566
|
},
|
|
4567
|
-
__hkd0
|
|
4568
|
-
__hkd1
|
|
4569
|
-
) : __hke
|
|
4570
|
-
const handleReset = (__hkd0
|
|
4571
|
-
__hks
|
|
4567
|
+
__hkd0$2,
|
|
4568
|
+
__hkd1$2
|
|
4569
|
+
) : __hke$2.value);
|
|
4570
|
+
const handleReset = (__hkd0$3 = initialZoom, __hks$3 = _$memoSlot8(_h$124, "useCallback"), __hke$3 = _$memoTake16(__hks$3, __hkd0$3), __hke$3 === null ? _$memoPublish8(
|
|
4571
|
+
__hks$3,
|
|
4572
4572
|
() => {
|
|
4573
4573
|
setZoom(initialZoom);
|
|
4574
4574
|
setPan({ x: 0, y: 0 });
|
|
4575
4575
|
},
|
|
4576
|
-
__hkd0
|
|
4577
|
-
) : __hke
|
|
4578
|
-
const handleWheel = (__hkd0
|
|
4579
|
-
__hks
|
|
4576
|
+
__hkd0$3
|
|
4577
|
+
) : __hke$3.value);
|
|
4578
|
+
const handleWheel = (__hkd0$4 = handleZoom, __hkd1$3 = zoomStep, __hks$4 = _$memoSlot8(_h$134, "useCallback"), __hke$4 = _$memoTake25(__hks$4, __hkd0$4, __hkd1$3), __hke$4 === null ? _$memoPublish8(
|
|
4579
|
+
__hks$4,
|
|
4580
4580
|
(e) => {
|
|
4581
4581
|
e.preventDefault();
|
|
4582
4582
|
const delta = e.deltaY > 0 ? -zoomStep : zoomStep;
|
|
4583
4583
|
handleZoom(delta);
|
|
4584
4584
|
},
|
|
4585
|
-
__hkd0
|
|
4586
|
-
__hkd1
|
|
4587
|
-
) : __hke
|
|
4588
|
-
const handlePointerDown = (__hkd0
|
|
4589
|
-
__hks
|
|
4585
|
+
__hkd0$4,
|
|
4586
|
+
__hkd1$3
|
|
4587
|
+
) : __hke$4.value);
|
|
4588
|
+
const handlePointerDown = (__hkd0$5 = pan, __hks$5 = _$memoSlot8(_h$144, "useCallback"), __hke$5 = _$memoTake16(__hks$5, __hkd0$5), __hke$5 === null ? _$memoPublish8(
|
|
4589
|
+
__hks$5,
|
|
4590
4590
|
(e) => {
|
|
4591
4591
|
if (e.button !== 0 || e.isPrimary === false) {
|
|
4592
4592
|
return;
|
|
@@ -4599,10 +4599,10 @@ var PanZoom = ({
|
|
|
4599
4599
|
target.setPointerCapture(e.pointerId);
|
|
4600
4600
|
}
|
|
4601
4601
|
},
|
|
4602
|
-
__hkd0
|
|
4603
|
-
) : __hke
|
|
4604
|
-
const handlePointerMove = (__hkd0
|
|
4605
|
-
__hks
|
|
4602
|
+
__hkd0$5
|
|
4603
|
+
) : __hke$5.value);
|
|
4604
|
+
const handlePointerMove = (__hkd0$6 = isPanning, __hkd1$4 = panStart, __hkd2 = panStartPosition, __hks$6 = _$memoSlot8(_h$154, "useCallback"), __hke$6 = _$memoTake34(__hks$6, __hkd0$6, __hkd1$4, __hkd2), __hke$6 === null ? _$memoPublish8(
|
|
4605
|
+
__hks$6,
|
|
4606
4606
|
(e) => {
|
|
4607
4607
|
if (!isPanning) {
|
|
4608
4608
|
return;
|
|
@@ -4615,17 +4615,17 @@ var PanZoom = ({
|
|
|
4615
4615
|
y: panStartPosition.y + deltaY
|
|
4616
4616
|
});
|
|
4617
4617
|
},
|
|
4618
|
-
__hkd0
|
|
4619
|
-
__hkd1
|
|
4618
|
+
__hkd0$6,
|
|
4619
|
+
__hkd1$4,
|
|
4620
4620
|
__hkd2
|
|
4621
|
-
) : __hke
|
|
4622
|
-
const handlePointerUp = (__hks
|
|
4621
|
+
) : __hke$6.value);
|
|
4622
|
+
const handlePointerUp = (__hks$7 = _$memoSlot8(_h$164, "useCallback"), __hke$7 = _$memoTake03(__hks$7), __hke$7 === null ? _$memoPublish8(__hks$7, (e) => {
|
|
4623
4623
|
setIsPanning(false);
|
|
4624
4624
|
const target = e.currentTarget;
|
|
4625
4625
|
if (target instanceof HTMLElement) {
|
|
4626
4626
|
target.releasePointerCapture(e.pointerId);
|
|
4627
4627
|
}
|
|
4628
|
-
}) : __hke
|
|
4628
|
+
}) : __hke$7.value);
|
|
4629
4629
|
useEffect11(
|
|
4630
4630
|
() => {
|
|
4631
4631
|
const container = containerRef.current;
|
package/dist/client/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.27",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -92,11 +92,11 @@
|
|
|
92
92
|
"unist-util-visit-parents": "^6.0.0"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
95
|
-
"octane": "0.1.
|
|
95
|
+
"octane": "0.1.48"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
98
|
"@testing-library/jest-dom": "^6.9.1",
|
|
99
|
-
"@tsrx/react": "^0.2.
|
|
99
|
+
"@tsrx/react": "^0.2.61",
|
|
100
100
|
"@types/react": "^19.2.17",
|
|
101
101
|
"@types/react-dom": "^19.2.3",
|
|
102
102
|
"esbuild": "^0.28.1",
|
|
@@ -108,8 +108,8 @@
|
|
|
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.1.
|
|
111
|
+
"@octanejs/testing-library": "0.1.45",
|
|
112
|
+
"octane": "0.1.48"
|
|
113
113
|
},
|
|
114
114
|
"scripts": {
|
|
115
115
|
"build": "node scripts/build.mjs",
|