docblocks-react-ui 0.6.4 → 0.6.5
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/CHANGELOG.md +6 -0
- package/dist/{Editor-DcQTuUsM.mjs → Editor-RBfmEGXr.mjs} +56 -18
- package/dist/{constants-2VXoyPmd.mjs → constants-OOBlKSTr.mjs} +18 -1
- package/dist/index.mjs +2 -2
- package/dist/mermaid/index.mjs +2 -3
- package/dist/pdf/index.mjs +1 -2
- package/package.json +1 -1
- package/dist/LoaderCircle-AGVFE4IP.mjs +0 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# docblocks-react-ui
|
|
2
2
|
|
|
3
|
+
## 0.6.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7ebb9b4: The file and image blocks stand the placeholder's loading state (the spinner) over the in-flight blob resolution and the static placeholder over the rejected id; the slash File command stands the upload's spinner over the in-flight upload and the failed stand's error line over a refused one (the menu stays open on the phrase).
|
|
8
|
+
|
|
3
9
|
## 0.6.4
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as preventDefault, c as TriangleAlert, d as
|
|
1
|
+
import { a as preventDefault, c as TriangleAlert, d as LoaderCircle, f as ChevronRight, i as isSafeDownloadHref, l as Plus, m as cn, n as assertNever, o as stopPropagation, p as ChevronLeft, r as clamp, s as X, t as isEmbeddablePdfUrl, u as Minus } from "./constants-OOBlKSTr.mjs";
|
|
2
2
|
import { useStore } from "zustand";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { Component, Fragment, createContext, memo, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
@@ -1589,7 +1589,8 @@ const INIT_OPTIONS = {
|
|
|
1589
1589
|
embed: {
|
|
1590
1590
|
"urlPlaceholder": "Embed URL (https://…)",
|
|
1591
1591
|
"unsafeHint": "Only absolute http(s):// URLs are supported."
|
|
1592
|
-
}
|
|
1592
|
+
},
|
|
1593
|
+
file: { "uploadFailed": "Upload failed" }
|
|
1593
1594
|
},
|
|
1594
1595
|
table: {
|
|
1595
1596
|
handle: {
|
|
@@ -2048,7 +2049,8 @@ const INIT_OPTIONS = {
|
|
|
2048
2049
|
embed: {
|
|
2049
2050
|
"urlPlaceholder": "URL встраивания (https://…)",
|
|
2050
2051
|
"unsafeHint": "Поддерживаются только абсолютные URL http(s)://."
|
|
2051
|
-
}
|
|
2052
|
+
},
|
|
2053
|
+
file: { "uploadFailed": "Не удалось загрузить файл" }
|
|
2052
2054
|
},
|
|
2053
2055
|
table: {
|
|
2054
2056
|
handle: {
|
|
@@ -12716,18 +12718,27 @@ const BLOB_PLACEHOLDER_CLASS = `
|
|
|
12716
12718
|
function useBlobFile(fileId) {
|
|
12717
12719
|
const { blobStore } = useEditorContext();
|
|
12718
12720
|
const [ref, setRef] = useState(null);
|
|
12721
|
+
/** The get's rejection (the missing stand) — a resolve clears it. */
|
|
12722
|
+
const [failed, setFailed] = useState(false);
|
|
12719
12723
|
const [view, setView] = useState(null);
|
|
12720
12724
|
useEffect(() => {
|
|
12721
12725
|
let alive = true;
|
|
12722
12726
|
let sequence = 0;
|
|
12723
12727
|
setRef(null);
|
|
12728
|
+
setFailed(false);
|
|
12724
12729
|
const load = async () => {
|
|
12725
12730
|
const request = ++sequence;
|
|
12726
12731
|
try {
|
|
12727
12732
|
const next = await blobStore.get(fileId);
|
|
12728
|
-
if (alive && request === sequence)
|
|
12733
|
+
if (alive && request === sequence) {
|
|
12734
|
+
setRef(next);
|
|
12735
|
+
setFailed(false);
|
|
12736
|
+
}
|
|
12729
12737
|
} catch {
|
|
12730
|
-
if (alive && request === sequence)
|
|
12738
|
+
if (alive && request === sequence) {
|
|
12739
|
+
setRef(null);
|
|
12740
|
+
setFailed(true);
|
|
12741
|
+
}
|
|
12731
12742
|
}
|
|
12732
12743
|
};
|
|
12733
12744
|
const unsubscribe = blobStore.subscribe(fileId, () => {
|
|
@@ -12751,7 +12762,12 @@ function useBlobFile(fileId) {
|
|
|
12751
12762
|
});
|
|
12752
12763
|
return () => URL.revokeObjectURL(url);
|
|
12753
12764
|
}, [ref]);
|
|
12754
|
-
return
|
|
12765
|
+
if (view !== null) return {
|
|
12766
|
+
status: "ready",
|
|
12767
|
+
...view
|
|
12768
|
+
};
|
|
12769
|
+
if (failed) return { status: "missing" };
|
|
12770
|
+
return { status: "loading" };
|
|
12755
12771
|
}
|
|
12756
12772
|
//#endregion
|
|
12757
12773
|
//#region src/blocks/FileBlock.tsx
|
|
@@ -12761,14 +12777,16 @@ function FileBlock({ id, block }) {
|
|
|
12761
12777
|
const { pdfPreview } = useEditorContext();
|
|
12762
12778
|
const fileId = block.attrs.fileId;
|
|
12763
12779
|
const view = useBlobFile(fileId);
|
|
12764
|
-
if (view
|
|
12780
|
+
if (view.status !== "ready") return /* @__PURE__ */ jsx(Card, {
|
|
12765
12781
|
"data-slot": "docblocks/file-placeholder",
|
|
12766
12782
|
"data-block-type": "file",
|
|
12767
12783
|
"data-block-id": id,
|
|
12784
|
+
"data-state": view.status,
|
|
12785
|
+
"aria-busy": view.status === "loading",
|
|
12768
12786
|
className: BLOB_PLACEHOLDER_CLASS,
|
|
12769
12787
|
children: /* @__PURE__ */ jsxs(CardContent, {
|
|
12770
12788
|
className: "flex flex-col items-center gap-2 text-center",
|
|
12771
|
-
children: [/* @__PURE__ */ jsx(File, { className: "size-6" }), t("file.placeholder")]
|
|
12789
|
+
children: [view.status === "loading" ? /* @__PURE__ */ jsx(LoaderCircle, { className: "size-6 animate-spin" }) : /* @__PURE__ */ jsx(File, { className: "size-6" }), t("file.placeholder")]
|
|
12772
12790
|
})
|
|
12773
12791
|
});
|
|
12774
12792
|
const { url, meta } = view;
|
|
@@ -17295,7 +17313,7 @@ function applySlashPlan(doc, plan, command, blockId, parentId, indent, scope) {
|
|
|
17295
17313
|
* query back to a match brings the list back). The mousedown suppression
|
|
17296
17314
|
* keeps the block's selection (and focus) alive across an item click.
|
|
17297
17315
|
*/
|
|
17298
|
-
function SlashMenu({ rootRef, state, onHover, onPick, onClose, onFile, fileClickRef, databasePick, databaseAvailable, onDatabasePickCancel, onDatabaseCommit, framePick, onFramePickCancel, onFrameCommit, embedForm, onEmbedCancel, onEmbedCommit }) {
|
|
17316
|
+
function SlashMenu({ rootRef, state, onHover, onPick, onClose, onFile, fileClickRef, fileUpload, databasePick, databaseAvailable, onDatabasePickCancel, onDatabaseCommit, framePick, onFramePickCancel, onFrameCommit, embedForm, onEmbedCancel, onEmbedCommit }) {
|
|
17299
17317
|
const { t } = useTranslation("slash");
|
|
17300
17318
|
const text = blockTextOf(useBlock(state.blockId));
|
|
17301
17319
|
const fileInputRef = useRef(null);
|
|
@@ -17400,7 +17418,7 @@ function SlashMenu({ rootRef, state, onHover, onPick, onClose, onFile, fileClick
|
|
|
17400
17418
|
}) : databasePick ? /* @__PURE__ */ jsx(DatabaseSlashPicker, {
|
|
17401
17419
|
onCommit: onDatabaseCommit,
|
|
17402
17420
|
onCancel: onDatabasePickCancel
|
|
17403
|
-
}) : /* @__PURE__ */
|
|
17421
|
+
}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [items.map((command, index) => /* @__PURE__ */ jsxs("div", {
|
|
17404
17422
|
role: "menuitem",
|
|
17405
17423
|
"data-slot": "docblocks/slash-item",
|
|
17406
17424
|
"data-active": index === active || void 0,
|
|
@@ -17408,8 +17426,13 @@ function SlashMenu({ rootRef, state, onHover, onPick, onClose, onFile, fileClick
|
|
|
17408
17426
|
onMouseEnter: hoverAt(index),
|
|
17409
17427
|
onMouseDown: preventDefault,
|
|
17410
17428
|
onClick: pickAt(index),
|
|
17411
|
-
children: [/* @__PURE__ */ jsx(command.icon, { className: "size-4" }), t(command.labelKey)]
|
|
17412
|
-
}, command.label))
|
|
17429
|
+
children: [command.type === "file" && fileUpload === "uploading" ? /* @__PURE__ */ jsx(LoaderCircle, { className: "size-4 animate-spin" }) : /* @__PURE__ */ jsx(command.icon, { className: "size-4" }), t(command.labelKey)]
|
|
17430
|
+
}, command.label)), fileUpload === "failed" ? /* @__PURE__ */ jsx("p", {
|
|
17431
|
+
"data-slot": "docblocks/slash-file-error",
|
|
17432
|
+
role: "alert",
|
|
17433
|
+
className: "px-2 py-1.5 text-xs text-destructive",
|
|
17434
|
+
children: t("file.uploadFailed")
|
|
17435
|
+
}) : null] })]
|
|
17413
17436
|
});
|
|
17414
17437
|
}
|
|
17415
17438
|
//#endregion
|
|
@@ -17443,6 +17466,7 @@ function useSlashMenu(rootRef) {
|
|
|
17443
17466
|
const embedFormRef = useRef(false);
|
|
17444
17467
|
embedFormRef.current = embedForm;
|
|
17445
17468
|
const pendingEmbedRef = useRef(null);
|
|
17469
|
+
const [fileUpload, setFileUpload] = useState("idle");
|
|
17446
17470
|
const open = useCallback((blockId, parentId, slashOffset) => {
|
|
17447
17471
|
setDatabasePick(false);
|
|
17448
17472
|
pendingDatabaseRef.current = null;
|
|
@@ -17450,6 +17474,7 @@ function useSlashMenu(rootRef) {
|
|
|
17450
17474
|
pendingFrameRef.current = null;
|
|
17451
17475
|
setEmbedForm(false);
|
|
17452
17476
|
pendingEmbedRef.current = null;
|
|
17477
|
+
setFileUpload("idle");
|
|
17453
17478
|
setState({
|
|
17454
17479
|
blockId,
|
|
17455
17480
|
parentId,
|
|
@@ -17464,6 +17489,7 @@ function useSlashMenu(rootRef) {
|
|
|
17464
17489
|
pendingFrameRef.current = null;
|
|
17465
17490
|
setEmbedForm(false);
|
|
17466
17491
|
pendingEmbedRef.current = null;
|
|
17492
|
+
setFileUpload("idle");
|
|
17467
17493
|
setState(null);
|
|
17468
17494
|
}, []);
|
|
17469
17495
|
/** The open-menu derivation (the live doc text + the live caret). */
|
|
@@ -17511,6 +17537,7 @@ function useSlashMenu(rootRef) {
|
|
|
17511
17537
|
const items = filterCommands(derivation.query, databaseAvailable, t);
|
|
17512
17538
|
const command = items.length === 0 ? void 0 : items[Math.min(index, items.length - 1)];
|
|
17513
17539
|
if (command === void 0) return;
|
|
17540
|
+
if (fileUpload === "uploading") return;
|
|
17514
17541
|
if (command.type === "file") {
|
|
17515
17542
|
pendingFileRef.current = {
|
|
17516
17543
|
blockId: s.blockId,
|
|
@@ -17555,6 +17582,7 @@ function useSlashMenu(rootRef) {
|
|
|
17555
17582
|
}, [
|
|
17556
17583
|
close,
|
|
17557
17584
|
doc,
|
|
17585
|
+
fileUpload,
|
|
17558
17586
|
openDerivation,
|
|
17559
17587
|
rootRef,
|
|
17560
17588
|
t
|
|
@@ -17581,6 +17609,7 @@ function useSlashMenu(rootRef) {
|
|
|
17581
17609
|
if (pending === null || file === null) return;
|
|
17582
17610
|
const { blockId, parentId, slashOffset } = pending;
|
|
17583
17611
|
if (doc.getBlock(blockId) === null) return;
|
|
17612
|
+
setFileUpload("uploading");
|
|
17584
17613
|
(async () => {
|
|
17585
17614
|
try {
|
|
17586
17615
|
const fileId = await blobStore.upload(file);
|
|
@@ -17629,11 +17658,17 @@ function useSlashMenu(rootRef) {
|
|
|
17629
17658
|
} else focusCaretIn(blockId, slashOffset, scope);
|
|
17630
17659
|
});
|
|
17631
17660
|
} catch (error) {
|
|
17632
|
-
if (error instanceof InvalidAttrsError || error instanceof InvalidOperationError)
|
|
17661
|
+
if (error instanceof InvalidAttrsError || error instanceof InvalidOperationError) {
|
|
17662
|
+
setFileUpload("idle");
|
|
17663
|
+
return;
|
|
17664
|
+
}
|
|
17633
17665
|
throw error;
|
|
17634
17666
|
}
|
|
17635
17667
|
close();
|
|
17636
|
-
|
|
17668
|
+
setFileUpload("idle");
|
|
17669
|
+
} catch {
|
|
17670
|
+
setFileUpload("failed");
|
|
17671
|
+
}
|
|
17637
17672
|
})();
|
|
17638
17673
|
}, [
|
|
17639
17674
|
blobStore,
|
|
@@ -17917,6 +17952,7 @@ function useSlashMenu(rootRef) {
|
|
|
17917
17952
|
onClose: close,
|
|
17918
17953
|
onFile: handleFile,
|
|
17919
17954
|
fileClickRef,
|
|
17955
|
+
fileUpload,
|
|
17920
17956
|
databasePick,
|
|
17921
17957
|
databaseAvailable,
|
|
17922
17958
|
onDatabasePickCancel: cancelDatabasePick,
|
|
@@ -24909,18 +24945,20 @@ function ImageBlock({ id, block }) {
|
|
|
24909
24945
|
const { t } = useTranslation("blocks");
|
|
24910
24946
|
const { pdfPreview } = useEditorContext();
|
|
24911
24947
|
const src = block.attrs.src;
|
|
24912
|
-
const
|
|
24913
|
-
if (
|
|
24948
|
+
const file = useBlobFile(src);
|
|
24949
|
+
if (file.status !== "ready") return /* @__PURE__ */ jsx(Card, {
|
|
24914
24950
|
"data-slot": "docblocks/image-placeholder",
|
|
24915
24951
|
"data-block-type": "image",
|
|
24916
24952
|
"data-block-id": id,
|
|
24953
|
+
"data-state": file.status,
|
|
24954
|
+
"aria-busy": file.status === "loading",
|
|
24917
24955
|
className: BLOB_PLACEHOLDER_CLASS,
|
|
24918
24956
|
children: /* @__PURE__ */ jsxs(CardContent, {
|
|
24919
24957
|
className: "flex flex-col items-center gap-2 text-center",
|
|
24920
|
-
children: [/* @__PURE__ */ jsx(Image, { className: "size-6" }), t("image.placeholder")]
|
|
24958
|
+
children: [file.status === "loading" ? /* @__PURE__ */ jsx(LoaderCircle, { className: "size-6 animate-spin" }) : /* @__PURE__ */ jsx(Image, { className: "size-6" }), t("image.placeholder")]
|
|
24921
24959
|
})
|
|
24922
24960
|
});
|
|
24923
|
-
const { url, meta } =
|
|
24961
|
+
const { url, meta } = file;
|
|
24924
24962
|
const name = meta.name;
|
|
24925
24963
|
if (meta.mimeType === "application/pdf") {
|
|
24926
24964
|
if (pdfPreview !== null) return /* @__PURE__ */ jsx(pdfPreview, {
|
|
@@ -40,6 +40,23 @@ function ChevronRight(props) {
|
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
//#endregion
|
|
43
|
+
//#region src/shared/ui/icons/LoaderCircle.tsx
|
|
44
|
+
function LoaderCircle(props) {
|
|
45
|
+
return /* @__PURE__ */ jsx("svg", {
|
|
46
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
47
|
+
width: 24,
|
|
48
|
+
height: 24,
|
|
49
|
+
viewBox: "0 0 24 24",
|
|
50
|
+
fill: "none",
|
|
51
|
+
stroke: "currentColor",
|
|
52
|
+
strokeWidth: 2,
|
|
53
|
+
strokeLinecap: "round",
|
|
54
|
+
strokeLinejoin: "round",
|
|
55
|
+
...props,
|
|
56
|
+
children: /* @__PURE__ */ jsx("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
//#endregion
|
|
43
60
|
//#region src/shared/ui/icons/Minus.tsx
|
|
44
61
|
function Minus(props) {
|
|
45
62
|
return /* @__PURE__ */ jsx("svg", {
|
|
@@ -162,4 +179,4 @@ function isEmbeddablePdfUrl(url) {
|
|
|
162
179
|
}
|
|
163
180
|
}
|
|
164
181
|
//#endregion
|
|
165
|
-
export { preventDefault as a, TriangleAlert as c,
|
|
182
|
+
export { preventDefault as a, TriangleAlert as c, LoaderCircle as d, ChevronRight as f, isSafeDownloadHref as i, Plus as l, cn as m, assertNever as n, stopPropagation as o, ChevronLeft as p, clamp as r, X as s, isEmbeddablePdfUrl as t, Minus as u };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as SelectValue, A as useBlock, At as CardFooter, B as DEFAULT_EMBED_SANDBOX, Bt as Badge, C as isBridgeError, Ct as PopoverTrigger, D as parseCellValue, Dt as CardAction, E as conditionMatches, Et as Card, F as useSelection, G as SelectContent, Gt as DocblocksI18nProvider, H as SegmentSelector, Ht as Alert, I as useSelectionView, It as BookOpen, J as SelectLabel, Jt as createMemoryBlobStore, K as SelectGroup, L as useText, Lt as Button, M as useMeta, Mt as CardTitle, N as usePresence, Nt as Pen, O as TEXT_TYPES, Ot as CardContent, P as usePresenceSharing, Pt as Eye, Q as SelectTrigger, R as EditorProvider, Rt as buttonVariants, S as BridgeError, St as PopoverTitle, T as toBridgeError, Tt as Checkbox, U as ScrollArea, Ut as AlertDescription, V as Skeleton, Vt as badgeVariants, W as Select, Wt as AlertTitle, X as SelectScrollUpButton, Y as SelectScrollDownButton, Z as SelectSeparator, _ as BASELINE_CAPABILITIES, _t as Popover, a as SHAPE_FONT_STACKS, at as DropdownMenuItem, b as validateProtocolDescriptor, bt as PopoverDescription, ct as DropdownMenuRadioGroup, d as useDatabaseTable, dt as DropdownMenuShortcut, et as Label, f as cellValueEqual, ft as DropdownMenuSub, g as filterIsComplete, gt as Separator, h as emptyFilter, ht as DropdownMenuTrigger, i as SHAPE_FONT_OPTIONS, it as DropdownMenuGroup, j as useDoc, jt as CardHeader, k as columnAnnotation, kt as CardDescription, l as markToggleAction, lt as DropdownMenuRadioItem, m as FilterBuilder, mt as DropdownMenuSubTrigger, nt as DropdownMenuCheckboxItem, ot as DropdownMenuLabel, p as newMutationContext, pt as DropdownMenuSubContent, q as SelectItem, qt as renderRuns, rt as DropdownMenuContent, s as FORMAT_PALETTE, st as DropdownMenuPortal, t as Editor, tt as DropdownMenu, u as GridBody, ut as DropdownMenuSeparator, v as PROTOCOL_VERSION, vt as PopoverAnchor, w as isBridgeErrorCode, wt as Input, x as BRIDGE_ERROR_CODES, xt as PopoverHeader, y as isDatabaseBridge, yt as PopoverContent, z as useEditorContext, zt as BareSelect } from "./Editor-
|
|
2
|
-
import { a as preventDefault,
|
|
1
|
+
import { $ as SelectValue, A as useBlock, At as CardFooter, B as DEFAULT_EMBED_SANDBOX, Bt as Badge, C as isBridgeError, Ct as PopoverTrigger, D as parseCellValue, Dt as CardAction, E as conditionMatches, Et as Card, F as useSelection, G as SelectContent, Gt as DocblocksI18nProvider, H as SegmentSelector, Ht as Alert, I as useSelectionView, It as BookOpen, J as SelectLabel, Jt as createMemoryBlobStore, K as SelectGroup, L as useText, Lt as Button, M as useMeta, Mt as CardTitle, N as usePresence, Nt as Pen, O as TEXT_TYPES, Ot as CardContent, P as usePresenceSharing, Pt as Eye, Q as SelectTrigger, R as EditorProvider, Rt as buttonVariants, S as BridgeError, St as PopoverTitle, T as toBridgeError, Tt as Checkbox, U as ScrollArea, Ut as AlertDescription, V as Skeleton, Vt as badgeVariants, W as Select, Wt as AlertTitle, X as SelectScrollUpButton, Y as SelectScrollDownButton, Z as SelectSeparator, _ as BASELINE_CAPABILITIES, _t as Popover, a as SHAPE_FONT_STACKS, at as DropdownMenuItem, b as validateProtocolDescriptor, bt as PopoverDescription, ct as DropdownMenuRadioGroup, d as useDatabaseTable, dt as DropdownMenuShortcut, et as Label, f as cellValueEqual, ft as DropdownMenuSub, g as filterIsComplete, gt as Separator, h as emptyFilter, ht as DropdownMenuTrigger, i as SHAPE_FONT_OPTIONS, it as DropdownMenuGroup, j as useDoc, jt as CardHeader, k as columnAnnotation, kt as CardDescription, l as markToggleAction, lt as DropdownMenuRadioItem, m as FilterBuilder, mt as DropdownMenuSubTrigger, nt as DropdownMenuCheckboxItem, ot as DropdownMenuLabel, p as newMutationContext, pt as DropdownMenuSubContent, q as SelectItem, qt as renderRuns, rt as DropdownMenuContent, s as FORMAT_PALETTE, st as DropdownMenuPortal, t as Editor, tt as DropdownMenu, u as GridBody, ut as DropdownMenuSeparator, v as PROTOCOL_VERSION, vt as PopoverAnchor, w as isBridgeErrorCode, wt as Input, x as BRIDGE_ERROR_CODES, xt as PopoverHeader, y as isDatabaseBridge, yt as PopoverContent, z as useEditorContext, zt as BareSelect } from "./Editor-RBfmEGXr.mjs";
|
|
2
|
+
import { a as preventDefault, m as cn } from "./constants-OOBlKSTr.mjs";
|
|
3
3
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
package/dist/mermaid/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Ft as CodeXml, H as SegmentSelector, Ht as Alert, Kt as INLINE_CODE_CLASS, Pt as Eye, Ut as AlertDescription, V as Skeleton, Wt as AlertTitle, c as textOf, n as childrenSlot, o as TextBlock, r as CodeHeader, z as useEditorContext } from "../Editor-
|
|
2
|
-
import { c as TriangleAlert } from "../constants-
|
|
3
|
-
import { t as LoaderCircle } from "../LoaderCircle-AGVFE4IP.mjs";
|
|
1
|
+
import { Ft as CodeXml, H as SegmentSelector, Ht as Alert, Kt as INLINE_CODE_CLASS, Pt as Eye, Ut as AlertDescription, V as Skeleton, Wt as AlertTitle, c as textOf, n as childrenSlot, o as TextBlock, r as CodeHeader, z as useEditorContext } from "../Editor-RBfmEGXr.mjs";
|
|
2
|
+
import { c as TriangleAlert, d as LoaderCircle } from "../constants-OOBlKSTr.mjs";
|
|
4
3
|
import { useEffect, useRef, useState } from "react";
|
|
5
4
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
6
5
|
import { useTranslation } from "react-i18next";
|
package/dist/pdf/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { c as TriangleAlert, d as
|
|
2
|
-
import { t as LoaderCircle } from "../LoaderCircle-AGVFE4IP.mjs";
|
|
1
|
+
import { c as TriangleAlert, d as LoaderCircle, f as ChevronRight, i as isSafeDownloadHref, l as Plus, m as cn, p as ChevronLeft, r as clamp, s as X, t as isEmbeddablePdfUrl, u as Minus } from "../constants-OOBlKSTr.mjs";
|
|
3
2
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { useTranslation } from "react-i18next";
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
//#region src/shared/ui/icons/LoaderCircle.tsx
|
|
3
|
-
function LoaderCircle(props) {
|
|
4
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
5
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
-
width: 24,
|
|
7
|
-
height: 24,
|
|
8
|
-
viewBox: "0 0 24 24",
|
|
9
|
-
fill: "none",
|
|
10
|
-
stroke: "currentColor",
|
|
11
|
-
strokeWidth: 2,
|
|
12
|
-
strokeLinecap: "round",
|
|
13
|
-
strokeLinejoin: "round",
|
|
14
|
-
...props,
|
|
15
|
-
children: /* @__PURE__ */ jsx("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
//#endregion
|
|
19
|
-
export { LoaderCircle as t };
|