@fileverse-dev/ddoc 4.3.5 → 4.3.6
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-C6k4W5mC.mjs → index-3A5-pje0.mjs} +1 -1
- package/dist/{index-CQS9WbQc.mjs → index-DSRycKEH.mjs} +14 -11
- package/dist/index.es.js +1 -1
- package/dist/{markdown-source-pane-Cx11SF3_.mjs → markdown-source-pane-DW3zeMF0.mjs} +2 -2
- package/dist/{split-view-toolbar-BQIKB-Ua.mjs → split-view-toolbar-D9gHcqf1.mjs} +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as Ql, b as Zl, s as eh } from "./index-
|
|
1
|
+
import { k as Ql, b as Zl, s as eh } from "./index-DSRycKEH.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);
|
|
@@ -54010,7 +54010,7 @@ ${j.getHTML()}`
|
|
|
54010
54010
|
onKeyDown: (V) => {
|
|
54011
54011
|
V.key === "Escape" && (V.preventDefault(), e.commands.focus());
|
|
54012
54012
|
},
|
|
54013
|
-
className: "w-full bg-transparent
|
|
54013
|
+
className: "w-full bg-transparent px-2 py-1 items-center h-9 flex justify-between relative",
|
|
54014
54014
|
children: [
|
|
54015
54015
|
/* @__PURE__ */ x.jsxs("div", { className: "flex h-9 items-center gap-1 justify-center", children: [
|
|
54016
54016
|
b ? _r(
|
|
@@ -189082,7 +189082,7 @@ const KKe = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], GKe = VKe("Chevro
|
|
|
189082
189082
|
),
|
|
189083
189083
|
t && /* @__PURE__ */ x.jsx("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 })
|
|
189084
189084
|
] }) : null;
|
|
189085
|
-
}, YKe = eI(() => import("./markdown-source-pane-
|
|
189085
|
+
}, YKe = eI(() => import("./markdown-source-pane-DW3zeMF0.mjs")), ZKe = eI(() => import("./split-view-toolbar-D9gHcqf1.mjs")), JKe = ({
|
|
189086
189086
|
markdown: e,
|
|
189087
189087
|
onMarkdownChange: t,
|
|
189088
189088
|
ipfsImageUploadFn: n,
|
|
@@ -189736,11 +189736,11 @@ const KKe = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], GKe = VKe("Chevro
|
|
|
189736
189736
|
{
|
|
189737
189737
|
id: "toolbar",
|
|
189738
189738
|
className: Qe(
|
|
189739
|
-
"z-[45] hidden mobile:flex items-center justify-center w-full h-
|
|
189739
|
+
"z-[45] hidden mobile:flex items-center justify-center w-full h-11 fixed left-0 color-bg-default border-b color-border-default transition-all duration-300 top-[var(--navbar)]",
|
|
189740
189740
|
{
|
|
189741
189741
|
"translate-y-0 opacity-100": !Le && L,
|
|
189742
|
-
"translate-y-[
|
|
189743
|
-
"translate-y-[
|
|
189742
|
+
"-translate-y-[var(--navbar)] opacity-100": !Le && !L,
|
|
189743
|
+
"-translate-y-[var(--navbar)] opacity-0 pointer-events-none": Le
|
|
189744
189744
|
}
|
|
189745
189745
|
),
|
|
189746
189746
|
children: /* @__PURE__ */ x.jsx("div", { className: "justify-center items-center grow relative color-text-default", children: /* @__PURE__ */ x.jsx(
|
|
@@ -190266,7 +190266,10 @@ const KKe = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], GKe = VKe("Chevro
|
|
|
190266
190266
|
className: Qe(
|
|
190267
190267
|
"flex mobile:hidden items-center w-full h-[52px] fixed left-0 z-10 px-4 color-bg-default transition-all duration-300 ease-in-out border-b border-color-default",
|
|
190268
190268
|
Yt && "hidden",
|
|
190269
|
-
{
|
|
190269
|
+
{
|
|
190270
|
+
"top-[var(--navbar)]": L,
|
|
190271
|
+
"top-0": !L
|
|
190272
|
+
}
|
|
190270
190273
|
),
|
|
190271
190274
|
children: /* @__PURE__ */ x.jsx(
|
|
190272
190275
|
rQ,
|
|
@@ -190333,13 +190336,13 @@ const KKe = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], GKe = VKe("Chevro
|
|
|
190333
190336
|
id: "editor-canvas",
|
|
190334
190337
|
onMouseDown: eee,
|
|
190335
190338
|
className: Qe(
|
|
190336
|
-
"h-[100%] flex w-full relative",
|
|
190339
|
+
"h-[100%] flex w-full relative [--navbar:64px] max-lg:[--navbar:46px] [--toolbar:44px] max-mobile:[--toolbar:52px]",
|
|
190337
190340
|
// Split View: the right-pane wrapper owns the scroll, not the canvas.
|
|
190338
190341
|
En ? "overflow-hidden" : "overflow-auto",
|
|
190339
|
-
!e && !Le && !En && (L ? "mt-[
|
|
190342
|
+
!e && !Le && !En && (L ? "mt-[calc(var(--navbar)+var(--toolbar))]" : "mt-[var(--toolbar)]"),
|
|
190340
190343
|
// Split View hides the rich toolbar, so only reserve the navbar.
|
|
190341
|
-
En && !Le && (L ? "mt-[
|
|
190342
|
-
e && !Le && "mt-[
|
|
190344
|
+
En && !Le && (L ? "mt-[var(--navbar)]" : "mt-0"),
|
|
190345
|
+
e && !Le && "mt-[var(--navbar)]",
|
|
190343
190346
|
z ? "color-bg-default" : "color-bg-secondary",
|
|
190344
190347
|
se
|
|
190345
190348
|
),
|
|
@@ -190391,7 +190394,7 @@ const KKe = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], GKe = VKe("Chevro
|
|
|
190391
190394
|
We.key === "Escape" && dt && (We.preventDefault(), dt.commands.focus());
|
|
190392
190395
|
},
|
|
190393
190396
|
className: Qe(
|
|
190394
|
-
"h-
|
|
190397
|
+
"h-[var(--navbar)] color-bg-default p-2 flex gap-10 items-center justify-between w-screen fixed left-0 top-0 border-b color-border-default z-[45] transition-all duration-300",
|
|
190395
190398
|
{
|
|
190396
190399
|
"translate-y-0 opacity-100": !Le && L && !z,
|
|
190397
190400
|
"translate-y-[-100%] opacity-0 pointer-events-none": Le || !L || z
|
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as a, a as o, E as t, P as d, f as r, i, g as n, l as m, h as E, m as c, e as l, n as p, c as u, d as C, u as f, v as D } from "./index-
|
|
1
|
+
import { D as a, a as o, E as t, P as d, f as r, i, g as n, l as m, h as E, m as c, e as l, n as p, c as u, d as C, u as f, v as D } from "./index-DSRycKEH.mjs";
|
|
2
2
|
export {
|
|
3
3
|
a 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-DSRycKEH.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-3A5-pje0.mjs";
|
|
7
7
|
class ua {
|
|
8
8
|
/**
|
|
9
9
|
Create a new completion context. (Mostly useful for testing
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as d } from "./index-
|
|
1
|
+
import { j as d } from "./index-DSRycKEH.mjs";
|
|
2
2
|
import { useRef as I, useState as N, useEffect as D } from "react";
|
|
3
3
|
import { DynamicDropdown as E, Tooltip as R, IconButton as O } from "@fileverse/ui";
|
|
4
|
-
import { a3 as A, a4 as P, c as y } from "./index-
|
|
4
|
+
import { a3 as A, a4 as P, c as y } from "./index-3A5-pje0.mjs";
|
|
5
5
|
const p = (e, t, o = t) => {
|
|
6
6
|
const { state: s } = e, l = s.changeByRange((n) => {
|
|
7
7
|
const u = s.sliceDoc(n.from, n.to), r = s.sliceDoc(
|