@fileverse-dev/ddoc 4.8.11 → 4.8.14
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-Ba6dC71x.mjs → index-BXcU4L-P.mjs} +1 -1
- package/dist/index.es.js +3101 -3101
- package/dist/{markdown-source-pane-CLsOC_HY.mjs → markdown-source-pane-NAKSRtR5.mjs} +1 -1
- package/dist/package/extensions/caret-scroll-band.d.ts +3 -0
- package/dist/package/hooks/use-ddoc-export.d.ts +1 -1
- package/dist/package/utils/format-ao3-html.d.ts +1 -0
- package/dist/{split-view-toolbar-BHCLUger.mjs → split-view-toolbar-Dj7hev5y.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{use-headless-editor-D0K_krgH.mjs → use-headless-editor-LqOgnUoI.mjs} +31273 -31193
- package/package.json +5 -1
|
@@ -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-BXcU4L-P.mjs";
|
|
7
7
|
class ua {
|
|
8
8
|
/**
|
|
9
9
|
Create a new completion context. (Mostly useful for testing
|
|
@@ -11,7 +11,7 @@ interface UseDdocExportArgs {
|
|
|
11
11
|
copyAo3Html?: CopyAo3Html;
|
|
12
12
|
}
|
|
13
13
|
declare const useDdocExport: ({ editor, tabs, ydoc, exportOptions, copyAo3Html, }: UseDdocExportArgs) => {
|
|
14
|
-
getOptionFormat: (title: string) => "" | "md" | "pdf" | "ao3-html" | "md-css" | "
|
|
14
|
+
getOptionFormat: (title: string) => "" | "md" | "html" | "pdf" | "ao3-html" | "md-css" | "txt" | "odt";
|
|
15
15
|
formatSelectOptions: {
|
|
16
16
|
id: string;
|
|
17
17
|
label: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formatAo3Html: (html: string) => Promise<string>;
|
|
@@ -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-BXcU4L-P.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(
|