@fileverse-dev/ddoc 5.0.2 → 5.0.3
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/headless-editor-utils.es.js +1 -1
- package/dist/{index-BUsyeThM.mjs → index-DAadam-O.mjs} +1 -1
- package/dist/index.es.js +3 -3
- package/dist/{markdown-source-pane-D7AxMBWB.mjs → markdown-source-pane-BVJO9Dlm.mjs} +1 -1
- package/dist/package/extensions/default-extension.d.ts +1 -1
- package/dist/package/extensions/text-style.d.ts +1 -0
- package/dist/{split-view-toolbar-DsWLYWkB.mjs → split-view-toolbar--k00jF70.mjs} +1 -1
- package/dist/{use-headless-editor-C0Enxuur.mjs → use-headless-editor-Hy9OlgWM.mjs} +1547 -1512
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cc as Ql, cd as Zl, ce as eh } from "./use-headless-editor-
|
|
1
|
+
import { cc as Ql, cd as Zl, ce as eh } from "./use-headless-editor-Hy9OlgWM.mjs";
|
|
2
2
|
let An = [], Xr = [];
|
|
3
3
|
(() => {
|
|
4
4
|
let s = "lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e) => e ? parseInt(e, 36) : 1);
|
package/dist/index.es.js
CHANGED
|
@@ -2,8 +2,8 @@ var Wm = Object.defineProperty;
|
|
|
2
2
|
var Gm = (e, t, r) => t in e ? Wm(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var ye = (e, t, r) => Gm(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
import { jsx as f, jsxs as U, Fragment as Ot } from "react/jsx-runtime";
|
|
5
|
-
import { P as ho, a as po, i as Ud, p as Pd, N as Ym, C as Xm, E as mo, g as Zm, b as Qm, u as Hd, c as zd, B as Jm, M as e0, d as bc, e as t0, f as Fi, s as n0, h as r0, j as o0, k as s0, l as Kd, w as Ui, m as i0, t as a0, n as c0, o as Vt, q as le, r as Pn, v as Vd, x as go, y as oi, z as Zo, A as l0, D as u0, F as d0, L as f0, G as jd, H as Qo, I as Ta, J as ht, S as h0, K as Na, O as p0, T as Bt, Q as m0, R as g0, U as $d, V as y0, W as x0, X as Ve, Y as qd, Z as Xr, _ as w0, $ as b0, a0 as Wd, a1 as vc, a2 as Cc, a3 as Gd, a4 as v0, a5 as C0, a6 as Yd, a7 as E0, a8 as S0, a9 as D0, aa as A0, ab as Xd, ac as k0, ad as T0, ae as N0, af as Pi, ag as Tl, ah as _0, ai as Yt, aj as R0, ak as Nl, al as I0, am as B0, an as O0, ao as L0, ap as kr, aq as Zd, ar as Ec, as as M0, at as Ko, au as F0, av as si, aw as U0, ax as P0, ay as H0, az as z0, aA as K0, aB as Qd, aC as Jo, aD as Jd, aE as ef, aF as Uo, aG as tf, aH as _a, aI as _l, aJ as Rl, aK as Mt, aL as V0, aM as j0, aN as $0, aO as nf, aP as q0, aQ as W0, aR as G0, aS as Y0, aT as X0, aU as Z0, aV as Q0, aW as J0, aX as eg, aY as tg, aZ as ng, a_ as rg, a$ as og, b0 as sg, b1 as Hi, b2 as rf, b3 as of, b4 as ig, b5 as Nn, b6 as Us, b7 as Rt, b8 as Sc, b9 as Il, ba as zi, bb as ag, bc as cg, bd as lg, be as en, bf as ug, bg as dg, bh as fg, bi as hg, bj as pg, bk as mg, bl as sr, bm as gg, bn as Vo, bo as Dc, bp as yg, bq as xg, br as wg, bs as Ac, bt as bg, bu as vg, bv as Ps, bw as Ki, bx as es, by as Cg, bz as Eg, bA as Sg, bB as Dg, bC as Ag, bD as kg, bE as Tg, bF as Ng, bG as _g, bH as Rg, bI as Ig, bJ as Bg, bK as Og, bL as Lg, bM as Mg, bN as Ra, bO as Ia, bP as Fg, bQ as Ug, bR as Pg, bS as Hg, bT as zg, bU as Kg, bV as Bl, bW as Vg, bX as jg, bY as $g, bZ as qg, b_ as Wg, b$ as Gg, c0 as Yg, c1 as Xg, c2 as Zg, c3 as Qg, c4 as Jg, c5 as ey, c6 as sf, c7 as ty, c8 as ny } from "./use-headless-editor-
|
|
6
|
-
import { c9 as gD, ca as yD } from "./use-headless-editor-
|
|
5
|
+
import { P as ho, a as po, i as Ud, p as Pd, N as Ym, C as Xm, E as mo, g as Zm, b as Qm, u as Hd, c as zd, B as Jm, M as e0, d as bc, e as t0, f as Fi, s as n0, h as r0, j as o0, k as s0, l as Kd, w as Ui, m as i0, t as a0, n as c0, o as Vt, q as le, r as Pn, v as Vd, x as go, y as oi, z as Zo, A as l0, D as u0, F as d0, L as f0, G as jd, H as Qo, I as Ta, J as ht, S as h0, K as Na, O as p0, T as Bt, Q as m0, R as g0, U as $d, V as y0, W as x0, X as Ve, Y as qd, Z as Xr, _ as w0, $ as b0, a0 as Wd, a1 as vc, a2 as Cc, a3 as Gd, a4 as v0, a5 as C0, a6 as Yd, a7 as E0, a8 as S0, a9 as D0, aa as A0, ab as Xd, ac as k0, ad as T0, ae as N0, af as Pi, ag as Tl, ah as _0, ai as Yt, aj as R0, ak as Nl, al as I0, am as B0, an as O0, ao as L0, ap as kr, aq as Zd, ar as Ec, as as M0, at as Ko, au as F0, av as si, aw as U0, ax as P0, ay as H0, az as z0, aA as K0, aB as Qd, aC as Jo, aD as Jd, aE as ef, aF as Uo, aG as tf, aH as _a, aI as _l, aJ as Rl, aK as Mt, aL as V0, aM as j0, aN as $0, aO as nf, aP as q0, aQ as W0, aR as G0, aS as Y0, aT as X0, aU as Z0, aV as Q0, aW as J0, aX as eg, aY as tg, aZ as ng, a_ as rg, a$ as og, b0 as sg, b1 as Hi, b2 as rf, b3 as of, b4 as ig, b5 as Nn, b6 as Us, b7 as Rt, b8 as Sc, b9 as Il, ba as zi, bb as ag, bc as cg, bd as lg, be as en, bf as ug, bg as dg, bh as fg, bi as hg, bj as pg, bk as mg, bl as sr, bm as gg, bn as Vo, bo as Dc, bp as yg, bq as xg, br as wg, bs as Ac, bt as bg, bu as vg, bv as Ps, bw as Ki, bx as es, by as Cg, bz as Eg, bA as Sg, bB as Dg, bC as Ag, bD as kg, bE as Tg, bF as Ng, bG as _g, bH as Rg, bI as Ig, bJ as Bg, bK as Og, bL as Lg, bM as Mg, bN as Ra, bO as Ia, bP as Fg, bQ as Ug, bR as Pg, bS as Hg, bT as zg, bU as Kg, bV as Bl, bW as Vg, bX as jg, bY as $g, bZ as qg, b_ as Wg, b$ as Gg, c0 as Yg, c1 as Xg, c2 as Zg, c3 as Qg, c4 as Jg, c5 as ey, c6 as sf, c7 as ty, c8 as ny } from "./use-headless-editor-Hy9OlgWM.mjs";
|
|
6
|
+
import { c9 as gD, ca as yD } from "./use-headless-editor-Hy9OlgWM.mjs";
|
|
7
7
|
import * as Nt from "react";
|
|
8
8
|
import St, { useRef as se, useEffect as ue, useState as he, useCallback as ne, useMemo as Ze, forwardRef as nn, useReducer as ry, useLayoutEffect as no, memo as ii, createElement as Ba, lazy as af, Suspense as Ol, useImperativeHandle as cf } from "react";
|
|
9
9
|
import { createPortal as ai } from "react-dom";
|
|
@@ -30336,7 +30336,7 @@ const g5 = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], y5 = m5("ChevronRi
|
|
|
30336
30336
|
),
|
|
30337
30337
|
t && /* @__PURE__ */ f("pre", { className: "m-0 px-3 pb-2 text-[11px] leading-relaxed font-mono color-text-secondary whitespace-pre-wrap break-words max-h-40 overflow-auto select-text", children: n })
|
|
30338
30338
|
] }) : null;
|
|
30339
|
-
}, w5 = af(() => import("./markdown-source-pane-
|
|
30339
|
+
}, w5 = af(() => import("./markdown-source-pane-BVJO9Dlm.mjs")), b5 = af(() => import("./split-view-toolbar--k00jF70.mjs")), v5 = ({
|
|
30340
30340
|
markdown: e,
|
|
30341
30341
|
onMarkdownChange: t,
|
|
30342
30342
|
ipfsImageUploadFn: r,
|
|
@@ -3,7 +3,7 @@ var Wr = (t, e, O) => e in t ? Vr(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var gt = (t, e, O) => Wr(t, typeof e != "symbol" ? e + "" : e, O);
|
|
4
4
|
import { jsx as Cr } from "react/jsx-runtime";
|
|
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-DAadam-O.mjs";
|
|
7
7
|
class ua {
|
|
8
8
|
/**
|
|
9
9
|
Create a new completion context. (Mostly useful for testing
|
|
@@ -18,5 +18,5 @@ export declare const defaultExtensions: ({ ipfsImageFetchFn, onError, metadataPr
|
|
|
18
18
|
dBlockRuntimeStateRef?: DBlockRuntimeStateRef;
|
|
19
19
|
hasAvailableModels?: boolean;
|
|
20
20
|
schemaVersion?: number;
|
|
21
|
-
}) => (import('@tiptap/core').AnyExtension | import('@tiptap/core').Mark<import('@tiptap/extension-italic').ItalicOptions, any> | import('@tiptap/core').Node<import('@tiptap/extension-horizontal-rule').HorizontalRuleOptions, any> | import('@tiptap/core').Extension<import('./multi-column').ColumnExtensionOptions, any> | import('@tiptap/core').Node<import('@tiptap/extension-heading').HeadingOptions, any> | import('@tiptap/core').Node<import('./iframe').IframeOptions, any> | import('@tiptap/core').Node<import('./twitter-embed').EmbeddedTweetOptions, any> | import('@tiptap/core').Extension<import('./d-block/dblock-collapse').FlatHeadingCollapseOptions, any> | import('@tiptap/core').Extension<import('./d-block/dblock-media-plugin').FlatMediaConversionOptions, any> | import('@tiptap/core').Node<import('./d-block').DBlockOptions, any> | import('@tiptap/core').Extension<import('./trailing-node').TrailingNodeOptions, any> | import('@tiptap/core').Node<import('./action-button').ActionButtonOptions, any> | import('@tiptap/core').Node<import('./resizable-media').MediaOptions, any> | import('@tiptap/core').Extension<import('./link-preview/link-preview').LinkPreviewOptions, any> | import('@tiptap/core').Node<import('./code-block/custom-code-block-lowlight').CustomCodeBlockLowlightOptions, any> | import('@tiptap/core').Mark<import('./custom-link').CustomLinkOptions, any> | import('@tiptap/core').Extension<import('@tiptap/extension-table-of-contents').TableOfContentsOptions, import('@tiptap/extension-table-of-contents').TableOfContentsStorage> | import('@tiptap/core').Extension<import('./search-replace/search-replace').SearchAndReplaceOptions, import('./search-replace/search-replace').SearchAndReplaceStorage> | import('@tiptap/core').
|
|
21
|
+
}) => (import('@tiptap/core').AnyExtension | import('@tiptap/core').Mark<import('@tiptap/extension-text-style').TextStyleOptions, any> | import('@tiptap/core').Mark<import('@tiptap/extension-italic').ItalicOptions, any> | import('@tiptap/core').Node<import('@tiptap/extension-horizontal-rule').HorizontalRuleOptions, any> | import('@tiptap/core').Extension<import('./multi-column').ColumnExtensionOptions, any> | import('@tiptap/core').Node<import('@tiptap/extension-heading').HeadingOptions, any> | import('@tiptap/core').Node<import('./iframe').IframeOptions, any> | import('@tiptap/core').Node<import('./twitter-embed').EmbeddedTweetOptions, any> | import('@tiptap/core').Extension<import('./d-block/dblock-collapse').FlatHeadingCollapseOptions, any> | import('@tiptap/core').Extension<import('./d-block/dblock-media-plugin').FlatMediaConversionOptions, any> | import('@tiptap/core').Node<import('./d-block').DBlockOptions, any> | import('@tiptap/core').Extension<import('./trailing-node').TrailingNodeOptions, any> | import('@tiptap/core').Node<import('./action-button').ActionButtonOptions, any> | import('@tiptap/core').Node<import('./resizable-media').MediaOptions, any> | import('@tiptap/core').Extension<import('./link-preview/link-preview').LinkPreviewOptions, any> | import('@tiptap/core').Node<import('./code-block/custom-code-block-lowlight').CustomCodeBlockLowlightOptions, any> | import('@tiptap/core').Mark<import('./custom-link').CustomLinkOptions, any> | import('@tiptap/core').Extension<import('@tiptap/extension-table-of-contents').TableOfContentsOptions, import('@tiptap/extension-table-of-contents').TableOfContentsStorage> | import('@tiptap/core').Extension<import('./search-replace/search-replace').SearchAndReplaceOptions, import('./search-replace/search-replace').SearchAndReplaceStorage> | import('@tiptap/core').Extension<import('@tiptap/extension-text-style').FontFamilyOptions, any> | import('@tiptap/core').Extension<import('@tiptap/starter-kit').StarterKitOptions, any> | import('@tiptap/core').Extension<import('@tiptap/extension-typography').TypographyOptions, any> | import('@tiptap/core').Extension<import('@tiptap/extension-text-align').TextAlignOptions, any> | import('@tiptap/core').Extension<import('@tiptap/extensions').PlaceholderOptions, any> | import('@tiptap/core').Mark<import('@tiptap/extension-highlight').HighlightOptions, any> | import('@tiptap/core').Node<import('@tiptap/extension-list').TaskListOptions, any> | import('@tiptap/core').Node<import('@tiptap/extension-list').TaskItemOptions, any> | import('@tiptap/core').Node<import('@tiptap/extension-list').BulletListOptions, any> | import('@tiptap/core').Node<import('@tiptap/extension-list').ListItemOptions, any> | import('@tiptap/core').Extension<import('@tiptap/extensions').DropcursorOptions, any> | import('@tiptap/core').Extension<import('tiptap-markdown').MarkdownOptions, import('tiptap-markdown').MarkdownStorage> | import('@tiptap/core').Extension<import('@tiptap/extensions').CharacterCountOptions, import('@tiptap/extensions').CharacterCountStorage> | import('@tiptap/core').Extension<import('@aarkue/tiptap-math-extension').MathExtensionOption, any>)[];
|
|
22
22
|
export declare const createInputRule: (pattern: RegExp, data: string, type: NodeType) => InputRule;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ExtendedTextStyle: import('@tiptap/core').Mark<import('@tiptap/extension-text-style').TextStyleOptions, any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as m, jsxs as L } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as D, useState as E, useEffect as A } from "react";
|
|
3
3
|
import { DynamicDropdown as P, Tooltip as O, IconButton as T } from "@fileverse/ui";
|
|
4
|
-
import { a3 as _, a4 as w, c as R } from "./index-
|
|
4
|
+
import { a3 as _, a4 as w, c as R } from "./index-DAadam-O.mjs";
|
|
5
5
|
const p = (e, n, o = n) => {
|
|
6
6
|
const { state: i } = e, l = i.changeByRange((t) => {
|
|
7
7
|
const d = i.sliceDoc(t.from, t.to), r = i.sliceDoc(
|