@fileverse-dev/ddoc 3.5.4 → 3.5.6-trial-1
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/{index-BJnMlCW6.mjs → index-Bkzx-0Ph.mjs} +1 -1
- package/dist/{index-in_xHbC2.mjs → index-DwRe32qI.mjs} +14366 -14319
- package/dist/index.es.js +1 -1
- package/dist/{markdown-source-pane-CDXsYTEc.mjs → markdown-source-pane-BY_6uYD1.mjs} +2 -2
- package/dist/package/extensions/mardown-paste-handler/index.d.ts +7 -0
- package/dist/{split-view-toolbar-DxrpVEVB.mjs → split-view-toolbar-BaTUFmhJ.mjs} +2 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as e, a as o, E as d, P as t, d as r, h as i, m as n, c as E, u as l } from "./index-
|
|
1
|
+
import { D as e, a as o, E as d, P as t, d as r, h as i, m as n, c as E, u as l } from "./index-DwRe32qI.mjs";
|
|
2
2
|
export {
|
|
3
3
|
e as DdocEditor,
|
|
4
4
|
o as DdocExportModal,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var Vr = Object.defineProperty;
|
|
2
2
|
var Wr = (t, e, O) => e in t ? Vr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: O }) : t[e] = O;
|
|
3
3
|
var gt = (t, e, O) => Wr(t, typeof e != "symbol" ? e + "" : e, O);
|
|
4
|
-
import { j as Cr } from "./index-
|
|
4
|
+
import { j as Cr } from "./index-DwRe32qI.mjs";
|
|
5
5
|
import { useRef as pe, useEffect as St } from "react";
|
|
6
|
-
import { s as y, A as pO, T as dO, a as Gr, S as et, b as Lr, P as fO, E as j, i as QO, c as _, D as le, k as tt, F as Ar, M as Pt, W as Er, R as Ur, d as mO, N as oe, e as V, f as Mr, g as Ot, h as ce, p as $O, j as Y, t as h, l as Ir, I as rt, L as at, m as ye, n as ue, o as Qe, q as gO, r as te, u as SO, v as Br, w as Nr, x as PO, y as kO, z as Dr, B as Fr, C as Kr, G as Oe, H as ZO, J as Jr, K as kt, O as Hr, Q as ea, U as ta, V as Oa, X as ra, Y as aa, Z as ia, _ as sa, $ as na, a0 as la, a1 as oa, a2 as ca } from "./index-
|
|
6
|
+
import { s as y, A as pO, T as dO, a as Gr, S as et, b as Lr, P as fO, E as j, i as QO, c as _, D as le, k as tt, F as Ar, M as Pt, W as Er, R as Ur, d as mO, N as oe, e as V, f as Mr, g as Ot, h as ce, p as $O, j as Y, t as h, l as Ir, I as rt, L as at, m as ye, n as ue, o as Qe, q as gO, r as te, u as SO, v as Br, w as Nr, x as PO, y as kO, z as Dr, B as Fr, C as Kr, G as Oe, H as ZO, J as Jr, K as kt, O as Hr, Q as ea, U as ta, V as Oa, X as ra, Y as aa, Z as ia, _ as sa, $ as na, a0 as la, a1 as oa, a2 as ca } from "./index-Bkzx-0Ph.mjs";
|
|
7
7
|
class ua {
|
|
8
8
|
/**
|
|
9
9
|
Create a new completion context. (Mostly useful for testing
|
|
@@ -17,6 +17,12 @@ declare module '@tiptap/core' {
|
|
|
17
17
|
metadataFormat?: 'yaml' | 'reference-links';
|
|
18
18
|
metadata?: Record<string, string>;
|
|
19
19
|
includeStyles?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Embed secure images as base64 data URLs (default true — makes the
|
|
22
|
+
* downloaded .md self-contained). Split View seeds with false so
|
|
23
|
+
* images stay as attribute references and are never re-uploaded.
|
|
24
|
+
*/
|
|
25
|
+
embedImages?: boolean;
|
|
20
26
|
}) => any;
|
|
21
27
|
};
|
|
22
28
|
}
|
|
@@ -28,6 +34,7 @@ declare const MarkdownPasteHandler: (ipfsImageUploadFn?: (file: File) => Promise
|
|
|
28
34
|
export declare const stripFrontmatter: (markdown: string) => string;
|
|
29
35
|
export declare function handleMarkdownContent(view: any, content: string, ipfsImageUploadFn?: (file: File) => Promise<IpfsImageUploadResponse>, options?: {
|
|
30
36
|
breaks?: boolean;
|
|
37
|
+
replaceAll?: boolean;
|
|
31
38
|
}): Promise<void>;
|
|
32
39
|
export default MarkdownPasteHandler;
|
|
33
40
|
export declare function searchForSecureImageNodeAndEmbedImageContent(originalDoc: PMNode, ipfsImageFetchFn?: (_data: IpfsImageFetchPayload) => Promise<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as r } from "./index-
|
|
1
|
+
import { j as r } from "./index-DwRe32qI.mjs";
|
|
2
2
|
import { useRef as I, useState as D, useEffect as E } from "react";
|
|
3
3
|
import { DynamicDropdown as P, Tooltip as y, IconButton as L } from "@fileverse/ui";
|
|
4
|
-
import { a3 as A, a4 as _, c as O } from "./index-
|
|
4
|
+
import { a3 as A, a4 as _, c as O } from "./index-Bkzx-0Ph.mjs";
|
|
5
5
|
const p = (e, n, s = n) => {
|
|
6
6
|
const { state: o } = e, l = o.changeByRange((t) => {
|
|
7
7
|
const u = o.sliceDoc(t.from, t.to), a = o.sliceDoc(
|