@fileverse-dev/ddoc 4.5.1 → 4.5.2

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.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-obil9WF_.mjs";
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-wVRnXbOi.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-obil9WF_.mjs";
4
+ import { j as Cr } from "./index-wVRnXbOi.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-Dkk4uihm.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-BuSMzCGL.mjs";
7
7
  class ua {
8
8
  /**
9
9
  Create a new completion context. (Mostly useful for testing
@@ -20,3 +20,7 @@ export declare const CollapseButton: React.MemoExoticComponent<React.ForwardRefE
20
20
  onToggle: () => void;
21
21
  className: string;
22
22
  } & React.RefAttributes<HTMLButtonElement>>>;
23
+ export declare const CopyLinkButton: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
24
+ onClick: () => void;
25
+ className: string;
26
+ } & React.RefAttributes<HTMLButtonElement>>>;
@@ -15,3 +15,6 @@ export declare const CollapseTooltip: React.MemoExoticComponent<({ isCollapsed,
15
15
  isCollapsed: boolean;
16
16
  children: React.ReactNode;
17
17
  }) => import("react/jsx-runtime").JSX.Element>;
18
+ export declare const CopyLinkTooltip: React.MemoExoticComponent<({ children }: {
19
+ children: React.ReactNode;
20
+ }) => import("react/jsx-runtime").JSX.Element>;
@@ -5,7 +5,8 @@ import { DBlockRuntimeState } from './dblock-runtime';
5
5
 
6
6
  export declare const resolveTopLevelBlock: (editor: Editor, pos: number) => ResolvedContentItem | null;
7
7
  export declare const rescueLeafBlockDragStart: (editor: Editor, pos: number, node: ProseMirrorNode, event: DragEvent) => boolean;
8
- export declare const DBlockDragHandle: ({ editor, runtimeState, }: {
8
+ export declare const DBlockDragHandle: ({ editor, runtimeState, onCopyHeadingLink, }: {
9
9
  editor: Editor;
10
10
  runtimeState: DBlockRuntimeState;
11
+ onCopyHeadingLink?: (link: string) => void;
11
12
  }) => import("react/jsx-runtime").JSX.Element | null;
@@ -8,10 +8,11 @@ interface DBlockTemplateTarget {
8
8
  pos: number;
9
9
  }
10
10
  export declare const getTemplateTarget: (editor: Editor | null, runtimeState: DBlockRuntimeState) => DBlockTemplateTarget | null;
11
- export declare const DBlockToolbarProvider: ({ children, editor, runtimeState, isPreviewEditor, }: {
11
+ export declare const DBlockToolbarProvider: ({ children, editor, runtimeState, isPreviewEditor, onCopyHeadingLink, }: {
12
12
  children: React.ReactNode;
13
13
  editor: Editor | null;
14
14
  runtimeState?: DBlockRuntimeState;
15
+ onCopyHeadingLink?: (link: string) => void;
15
16
  isPreviewEditor?: boolean;
16
17
  }) => import("react/jsx-runtime").JSX.Element;
17
18
  export {};
@@ -1,7 +1,7 @@
1
- import { j as d } from "./index-obil9WF_.mjs";
1
+ import { j as d } from "./index-wVRnXbOi.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-Dkk4uihm.mjs";
4
+ import { a3 as A, a4 as P, c as y } from "./index-BuSMzCGL.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(