@fileverse-dev/ddoc 4.7.7 → 4.7.9

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.
@@ -190968,7 +190968,7 @@ const aZe = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], lZe = sZe("Chevro
190968
190968
  ),
190969
190969
  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: r })
190970
190970
  ] }) : null;
190971
- }, cZe = sL(() => import("./markdown-source-pane-BjV6cq-e.mjs")), dZe = sL(() => import("./split-view-toolbar-COYcSyRx.mjs")), pZe = ({
190971
+ }, cZe = sL(() => import("./markdown-source-pane-COKukslW.mjs")), dZe = sL(() => import("./split-view-toolbar-mz7_9OkK.mjs")), pZe = ({
190972
190972
  markdown: e,
190973
190973
  onMarkdownChange: t,
190974
190974
  ipfsImageUploadFn: n,
@@ -191816,7 +191816,7 @@ const aZe = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], lZe = sZe("Chevro
191816
191816
  }, [rt, Fs, ft]), Se(() => {
191817
191817
  !xt || !rt || rt.isDestroyed || rt.commands.focus();
191818
191818
  }, [xt, rt]);
191819
- const ia = or("(max-width: 768px)"), Q7 = Ft(() => (ce || []).reduce(
191819
+ const ia = or("(max-width: 850px)"), Q7 = Ft(() => (ce || []).reduce(
191820
191820
  ($e, It) => {
191821
191821
  if (It.deleted) return $e;
191822
191822
  const Dn = It.tabId || Sn;
@@ -191957,51 +191957,6 @@ const aZe = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], lZe = sZe("Chevro
191957
191957
  theme: Te ?? "light"
191958
191958
  }
191959
191959
  ),
191960
- /* @__PURE__ */ F(
191961
- "div",
191962
- {
191963
- className: Ge(
191964
- "editor-left-rail",
191965
- k3 && "editor-left-rail-has-outline",
191966
- !ia && "flex-[1_0_263px]",
191967
- !e && !xt && R && "-mt-[1.5rem] md:!mt-[0.8rem]",
191968
- e && "md:!mt-[1rem]",
191969
- { "md:!mt-[0.7rem]": !e && !xt },
191970
- {
191971
- "-mt-[1.5rem] md:!mt-[0.7rem]": !R && !e
191972
- },
191973
- xt && "mt-[48px]",
191974
- xt && !Ie && rA && "hidden"
191975
- ),
191976
- children: rt && k3 && /* @__PURE__ */ F(
191977
- xk,
191978
- {
191979
- editor: rt,
191980
- hasToC: !0,
191981
- items: x3,
191982
- setItems: $7,
191983
- showTOC: Ie,
191984
- setShowTOC: ze,
191985
- isPreviewMode: e || !R,
191986
- orientation: st == null ? void 0 : st.orientation,
191987
- tabs: eu,
191988
- setTabs: H7,
191989
- activeTabId: Hi,
191990
- setActiveTabId: v3,
191991
- createTab: F3,
191992
- renameTab: W7,
191993
- duplicateTab: q7,
191994
- orderTab: V7,
191995
- deleteTab: K7,
191996
- ydoc: $i,
191997
- tabCommentCounts: Q7,
191998
- tabConfig: Je,
191999
- isConnected: Ve,
192000
- isFocusMode: xt
192001
- }
192002
- )
192003
- }
192004
- ),
192005
191960
  /* @__PURE__ */ oe(
192006
191961
  "div",
192007
191962
  {
@@ -192015,6 +191970,51 @@ const aZe = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], lZe = sZe("Chevro
192015
191970
  eA && "mx-[24px]"
192016
191971
  ),
192017
191972
  children: [
191973
+ /* @__PURE__ */ F(
191974
+ "div",
191975
+ {
191976
+ className: Ge(
191977
+ "editor-left-rail",
191978
+ k3 && "editor-left-rail-has-outline",
191979
+ !ia && "max-w-[263px] w-full sticky top-0 self-start z-[2]",
191980
+ !e && !xt && R && "-mt-[1.5rem] md:!mt-[0.8rem]",
191981
+ e && "md:!mt-[1rem]",
191982
+ { "md:!mt-[0.7rem]": !e && !xt },
191983
+ {
191984
+ "-mt-[1.5rem] md:!mt-[0.7rem]": !R && !e
191985
+ },
191986
+ xt && "mt-[48px]",
191987
+ xt && !Ie && rA && "hidden"
191988
+ ),
191989
+ children: rt && k3 && /* @__PURE__ */ F(
191990
+ xk,
191991
+ {
191992
+ editor: rt,
191993
+ hasToC: !0,
191994
+ items: x3,
191995
+ setItems: $7,
191996
+ showTOC: Ie,
191997
+ setShowTOC: ze,
191998
+ isPreviewMode: e || !R,
191999
+ orientation: st == null ? void 0 : st.orientation,
192000
+ tabs: eu,
192001
+ setTabs: H7,
192002
+ activeTabId: Hi,
192003
+ setActiveTabId: v3,
192004
+ createTab: F3,
192005
+ renameTab: W7,
192006
+ duplicateTab: q7,
192007
+ orderTab: V7,
192008
+ deleteTab: K7,
192009
+ ydoc: $i,
192010
+ tabCommentCounts: Q7,
192011
+ tabConfig: Je,
192012
+ isConnected: Ve,
192013
+ isFocusMode: xt
192014
+ }
192015
+ )
192016
+ }
192017
+ ),
192018
192018
  /* @__PURE__ */ F(
192019
192019
  "div",
192020
192020
  {
@@ -192350,7 +192350,7 @@ const aZe = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], lZe = sZe("Chevro
192350
192350
  {
192351
192351
  className: Ge(
192352
192352
  "editor-right-rail",
192353
- !ia && "flex-[1_1_263px]",
192353
+ !ia && "max-w-[263px] w-full",
192354
192354
  !e && !xt && R && "-mt-[1.5rem] md:!mt-[0.8rem]",
192355
192355
  e && "md:!mt-[1rem]",
192356
192356
  { "md:!mt-[0.7rem]": !e && !xt },
@@ -1,4 +1,4 @@
1
- import { k as Ql, b as Zl, s as eh } from "./index-BCOH8OV2.mjs";
1
+ import { k as Ql, b as Zl, s as eh } from "./index-BKv_bkKK.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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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
@@ -1,4 +1,4 @@
1
- import { D as e, a as o, E as t, F as d, P as r, f as i, i as n, g as E, j as m, h as C, m as c, e as l, l as p, c as u, d as f, u as D, v as F } from "./index-BCOH8OV2.mjs";
1
+ import { D as e, a as o, E as t, F as d, P as r, f as i, i as n, g as E, j as m, h as C, m as c, e as l, l as p, c as u, d as f, u as D, v as F } from "./index-BKv_bkKK.mjs";
2
2
  export {
3
3
  e as DdocEditor,
4
4
  o as DdocExportModal,
@@ -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-DLvLPnod.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-MoiSJ0Kd.mjs";
7
7
  class ua {
8
8
  /**
9
9
  Create a new completion context. (Mostly useful for testing
@@ -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-DLvLPnod.mjs";
4
+ import { a3 as _, a4 as w, c as R } from "./index-MoiSJ0Kd.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(