@fileverse-dev/ddoc 4.8.5 → 4.8.7

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.
@@ -1,4 +1,4 @@
1
- import { c6 as s } from "./use-headless-editor-COf88M1m.mjs";
1
+ import { c6 as s } from "./use-headless-editor-BBVwebY0.mjs";
2
2
  const n = (e) => {
3
3
  const { getYjsConvertor: t, mergeYjsUpdates: r } = s(e);
4
4
  return { getYjsConvertor: t, mergeYjsUpdates: r };
@@ -1,4 +1,4 @@
1
- import { c7 as Ql, c8 as Zl, c9 as eh } from "./use-headless-editor-COf88M1m.mjs";
1
+ import { c7 as Ql, c8 as Zl, c9 as eh } from "./use-headless-editor-BBVwebY0.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 hm = Object.defineProperty;
2
2
  var pm = (e, t, r) => t in e ? hm(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var ye = (e, t, r) => pm(e, typeof t != "symbol" ? t + "" : t, r);
4
4
  import { jsx as d, jsxs as M, Fragment as Bt } from "react/jsx-runtime";
5
- import { P as so, a as io, i as cd, p as ld, N as mm, C as gm, E as ao, g as ym, b as xm, u as ud, c as dd, B as bm, M as wm, d as ec, e as vm, f as ki, s as Cm, h as Em, j as Sm, k as Dm, l as fd, w as Ti, m as Am, t as km, n as Tm, o as jt, q as ce, r as On, v as hd, x as co, y as Ws, z as zo, A as Nm, D as _m, F as Rm, L as Im, G as pd, H as Ko, I as ya, J as dt, S as Bm, K as xa, O as Om, T as It, Q as Lm, R as Mm, U as md, V as Um, W as Fm, X as Ke, Y as gd, Z as Vr, _ as Pm, $ as Hm, a0 as yd, a1 as tc, a2 as nc, a3 as xd, a4 as zm, a5 as Km, a6 as jm, a7 as Vm, a8 as $m, a9 as qm, aa as Wm, ab as bd, ac as Ym, ad as Gm, ae as Zm, af as Ni, ag as il, ah as Xm, ai as Yt, aj as Qm, ak as al, al as Jm, am as e0, an as t0, ao as n0, ap as Cr, aq as wd, ar as rc, as as r0, at as Io, au as o0, av as Ys, aw as s0, ax as i0, ay as a0, az as c0, aA as l0, aB as vd, aC as jo, aD as Cd, aE as Ed, aF as To, aG as Sd, aH as cl, aI as Kt, aJ as u0, aK as d0, aL as f0, aM as Dd, aN as h0, aO as p0, aP as m0, aQ as g0, aR as y0, aS as x0, aT as b0, aU as w0, aV as v0, aW as C0, aX as E0, aY as S0, aZ as D0, a_ as _i, a$ as Ad, b0 as kd, b1 as Sn, b2 as ks, b3 as _t, b4 as oc, b5 as ll, b6 as Ri, b7 as A0, b8 as k0, b9 as T0, ba as yn, bb as N0, bc as _0, bd as R0, be as I0, bf as B0, bg as O0, bh as or, bi as L0, bj as Bo, bk as sc, bl as M0, bm as U0, bn as F0, bo as ic, bp as P0, bq as H0, br as Ts, bs as Ii, bt as Vo, bu as z0, bv as K0, bw as j0, bx as V0, by as $0, bz as q0, bA as W0, bB as Y0, bC as G0, bD as Z0, bE as X0, bF as Q0, bG as J0, bH as eg, bI as ba, bJ as wa, bK as tg, bL as ng, bM as rg, bN as og, bO as sg, bP as ig, bQ as ul, bR as ag, bS as cg, bT as lg, bU as ug, bV as dg, bW as fg, bX as hg, bY as pg, bZ as mg, b_ as gg, b$ as yg, c0 as xg, c1 as Td, c2 as bg, c3 as wg } from "./use-headless-editor-COf88M1m.mjs";
6
- import { c4 as QS, c5 as JS } from "./use-headless-editor-COf88M1m.mjs";
5
+ import { P as so, a as io, i as cd, p as ld, N as mm, C as gm, E as ao, g as ym, b as xm, u as ud, c as dd, B as bm, M as wm, d as ec, e as vm, f as ki, s as Cm, h as Em, j as Sm, k as Dm, l as fd, w as Ti, m as Am, t as km, n as Tm, o as jt, q as ce, r as On, v as hd, x as co, y as Ws, z as zo, A as Nm, D as _m, F as Rm, L as Im, G as pd, H as Ko, I as ya, J as dt, S as Bm, K as xa, O as Om, T as It, Q as Lm, R as Mm, U as md, V as Um, W as Fm, X as Ke, Y as gd, Z as Vr, _ as Pm, $ as Hm, a0 as yd, a1 as tc, a2 as nc, a3 as xd, a4 as zm, a5 as Km, a6 as jm, a7 as Vm, a8 as $m, a9 as qm, aa as Wm, ab as bd, ac as Ym, ad as Gm, ae as Zm, af as Ni, ag as il, ah as Xm, ai as Yt, aj as Qm, ak as al, al as Jm, am as e0, an as t0, ao as n0, ap as Cr, aq as wd, ar as rc, as as r0, at as Io, au as o0, av as Ys, aw as s0, ax as i0, ay as a0, az as c0, aA as l0, aB as vd, aC as jo, aD as Cd, aE as Ed, aF as To, aG as Sd, aH as cl, aI as Kt, aJ as u0, aK as d0, aL as f0, aM as Dd, aN as h0, aO as p0, aP as m0, aQ as g0, aR as y0, aS as x0, aT as b0, aU as w0, aV as v0, aW as C0, aX as E0, aY as S0, aZ as D0, a_ as _i, a$ as Ad, b0 as kd, b1 as Sn, b2 as ks, b3 as _t, b4 as oc, b5 as ll, b6 as Ri, b7 as A0, b8 as k0, b9 as T0, ba as yn, bb as N0, bc as _0, bd as R0, be as I0, bf as B0, bg as O0, bh as or, bi as L0, bj as Bo, bk as sc, bl as M0, bm as U0, bn as F0, bo as ic, bp as P0, bq as H0, br as Ts, bs as Ii, bt as Vo, bu as z0, bv as K0, bw as j0, bx as V0, by as $0, bz as q0, bA as W0, bB as Y0, bC as G0, bD as Z0, bE as X0, bF as Q0, bG as J0, bH as eg, bI as ba, bJ as wa, bK as tg, bL as ng, bM as rg, bN as og, bO as sg, bP as ig, bQ as ul, bR as ag, bS as cg, bT as lg, bU as ug, bV as dg, bW as fg, bX as hg, bY as pg, bZ as mg, b_ as gg, b$ as yg, c0 as xg, c1 as Td, c2 as bg, c3 as wg } from "./use-headless-editor-BBVwebY0.mjs";
6
+ import { c4 as QS, c5 as JS } from "./use-headless-editor-BBVwebY0.mjs";
7
7
  import * as Tt from "react";
8
8
  import Ct, { useRef as le, useEffect as ue, useState as he, useCallback as ne, useMemo as Ge, forwardRef as Jt, useReducer as Nd, useLayoutEffect as Zr, memo as Gs, createElement as va, lazy as _d, Suspense as dl, useImperativeHandle as Rd } from "react";
9
9
  import { createPortal as Zs } from "react-dom";
@@ -22377,6 +22377,7 @@ const dE = ({
22377
22377
  createdAt: t.createdAt,
22378
22378
  canAcceptReject: m,
22379
22379
  canWithdraw: g,
22380
+ isFocused: e.isFocused,
22380
22381
  onAccept: y,
22381
22382
  onReject: b
22382
22383
  }
@@ -22406,60 +22407,70 @@ const dE = ({
22406
22407
  createdAt: t,
22407
22408
  canAcceptReject: r,
22408
22409
  canWithdraw: n,
22409
- onAccept: o,
22410
- onReject: s
22410
+ isFocused: o,
22411
+ onAccept: s,
22412
+ onReject: i
22411
22413
  }) => {
22412
- const i = Mn(e);
22414
+ const a = Mn(e);
22413
22415
  return /* @__PURE__ */ M("div", { className: "flex items-center gap-2", children: [
22414
22416
  /* @__PURE__ */ d(
22415
22417
  Ln,
22416
22418
  {
22417
- src: i.isEns ? vn : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
22418
- i.name
22419
+ src: a.isEns ? vn : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
22420
+ a.name
22419
22421
  )}`,
22420
22422
  size: "sm",
22421
22423
  className: "min-w-6"
22422
22424
  }
22423
22425
  ),
22424
22426
  /* @__PURE__ */ M("span", { className: "text-body-sm-bold inline-flex items-center gap-1 whitespace-nowrap", children: [
22425
- /* @__PURE__ */ d("p", { className: "truncate max-w-[86px]", children: co(i.name) }),
22426
- i.isEns && /* @__PURE__ */ d("img", { src: ho, alt: "verified", className: "w-3.5 h-3.5" })
22427
+ /* @__PURE__ */ d("p", { className: "truncate max-w-[86px]", children: co(a.name) }),
22428
+ a.isEns && /* @__PURE__ */ d("img", { src: ho, alt: "verified", className: "w-3.5 h-3.5" })
22427
22429
  ] }),
22428
22430
  /* @__PURE__ */ d("span", { className: "text-helper-text-sm color-text-secondary whitespace-nowrap", children: t && Ws(t) }),
22429
- /* @__PURE__ */ M("div", { className: "ml-auto opacity-0 group-hover:opacity-100 flex items-center gap-1", children: [
22430
- r && /* @__PURE__ */ M(Bt, { children: [
22431
- /* @__PURE__ */ d(
22432
- Le,
22433
- {
22434
- icon: "Check",
22435
- variant: "ghost",
22436
- size: "sm",
22437
- onClick: o,
22438
- title: "Accept suggestion"
22439
- }
22431
+ /* @__PURE__ */ M(
22432
+ "div",
22433
+ {
22434
+ className: ve(
22435
+ "ml-auto flex items-center gap-1",
22436
+ o && r ? "opacity-100" : "opacity-0 group-hover:opacity-100"
22440
22437
  ),
22441
- /* @__PURE__ */ d(
22442
- Le,
22443
- {
22444
- icon: "X",
22445
- variant: "ghost",
22446
- size: "sm",
22447
- onClick: s,
22448
- title: "Reject suggestion"
22449
- }
22450
- )
22451
- ] }),
22452
- n && /* @__PURE__ */ d(
22453
- Le,
22454
- {
22455
- icon: "X",
22456
- variant: "ghost",
22457
- size: "sm",
22458
- onClick: s,
22459
- title: "Withdraw suggestion"
22460
- }
22461
- )
22462
- ] })
22438
+ children: [
22439
+ r && /* @__PURE__ */ M(Bt, { children: [
22440
+ /* @__PURE__ */ d(
22441
+ Le,
22442
+ {
22443
+ icon: "Check",
22444
+ variant: "ghost",
22445
+ size: "sm",
22446
+ onClick: s,
22447
+ title: "Accept suggestion"
22448
+ }
22449
+ ),
22450
+ /* @__PURE__ */ d(
22451
+ Le,
22452
+ {
22453
+ icon: "X",
22454
+ variant: "ghost",
22455
+ size: "sm",
22456
+ onClick: i,
22457
+ title: "Reject suggestion"
22458
+ }
22459
+ )
22460
+ ] }),
22461
+ n && /* @__PURE__ */ d(
22462
+ Le,
22463
+ {
22464
+ icon: "X",
22465
+ variant: "ghost",
22466
+ size: "sm",
22467
+ onClick: i,
22468
+ title: "Withdraw suggestion"
22469
+ }
22470
+ )
22471
+ ]
22472
+ }
22473
+ )
22463
22474
  ] });
22464
22475
  }, gE = ({
22465
22476
  thread: e,
@@ -29823,7 +29834,7 @@ const J6 = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], eS = Q6("ChevronRi
29823
29834
  ),
29824
29835
  t && /* @__PURE__ */ d("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 })
29825
29836
  ] }) : null;
29826
- }, nS = _d(() => import("./markdown-source-pane-BaK_gwkZ.mjs")), rS = _d(() => import("./split-view-toolbar-DO-TQiz-.mjs")), oS = ({
29837
+ }, nS = _d(() => import("./markdown-source-pane-CddF_Vbc.mjs")), rS = _d(() => import("./split-view-toolbar-DUpCNmJ3.mjs")), oS = ({
29827
29838
  markdown: e,
29828
29839
  onMarkdownChange: t,
29829
29840
  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-V7Muedez.mjs";
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-LGuJAqEe.mjs";
7
7
  class ua {
8
8
  /**
9
9
  Create a new completion context. (Mostly useful for testing
@@ -0,0 +1,5 @@
1
+ import { Extension, Editor } from '@tiptap/core';
2
+
3
+ export declare const indentOnTab: (editor: Editor) => boolean;
4
+ export declare const outdentOnShiftTab: (editor: Editor) => boolean;
5
+ export declare const TabIndent: Extension<any, 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-V7Muedez.mjs";
4
+ import { a3 as _, a4 as w, c as R } from "./index-LGuJAqEe.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(