@fileverse-dev/ddoc 4.0.2-patch-2 → 4.0.3-accessibility-1
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-CvwyaShd.mjs → index-B6OyRmbp.mjs} +1 -1
- package/dist/{index-D0WOhojl.mjs → index-BJ4pjB9T.mjs} +22095 -22290
- package/dist/index.es.js +1 -1
- package/dist/{markdown-source-pane-CXE0wqB2.mjs → markdown-source-pane-CaUiYCJp.mjs} +2 -2
- package/dist/package/components/editor-toolbar/alignment.d.ts +7 -0
- package/dist/package/components/editor-toolbar/font-family.d.ts +7 -0
- package/dist/package/components/editor-toolbar/font-size.d.ts +7 -0
- package/dist/package/components/editor-toolbar/heading.d.ts +5 -0
- package/dist/package/components/editor-toolbar/highlight.d.ts +7 -0
- package/dist/package/components/editor-toolbar/line-height.d.ts +7 -0
- package/dist/package/components/editor-toolbar/link.d.ts +8 -0
- package/dist/package/components/editor-toolbar/text-color.d.ts +7 -0
- package/dist/package/components/editor-toolbar/zoom-level.d.ts +6 -0
- package/dist/package/components/editor-toolbar.d.ts +1 -1
- package/dist/package/components/editor-utils.d.ts +1 -3
- package/dist/package/components/import-export-button.d.ts +1 -2
- package/dist/package/extensions/superscript-subscript-controls.d.ts +3 -0
- package/dist/package/sync-local/SyncManager.d.ts +0 -4
- package/dist/{split-view-toolbar-p-w4kw9r.mjs → split-view-toolbar-D3z06GNp.mjs} +2 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/package/components/editor-toolbar-dropdown.d.ts +0 -12
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as e, a as o, E as d, P as t, d as r, h as i, m as n, c as E, u as l } from "./index-
|
|
1
|
+
import { D as e, a as o, E as d, P as t, d as r, h as i, m as n, c as E, u as l } from "./index-BJ4pjB9T.mjs";
|
|
2
2
|
export {
|
|
3
3
|
e 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-BJ4pjB9T.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-B6OyRmbp.mjs";
|
|
7
7
|
class ua {
|
|
8
8
|
/**
|
|
9
9
|
Create a new completion context. (Mostly useful for testing
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IEditorToolElement } from '../editor-utils';
|
|
2
|
+
|
|
3
|
+
export declare const LineHeightDropdown: ({ tool, currentLineHeight, onSetLineHeight, }: {
|
|
4
|
+
tool: IEditorToolElement;
|
|
5
|
+
currentLineHeight?: string;
|
|
6
|
+
onSetLineHeight: (lineHeight: string) => void;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/core';
|
|
2
|
+
import { IEditorToolElement } from '../editor-utils';
|
|
3
|
+
|
|
4
|
+
export declare const LinkPopover: ({ tool, editor, onError, }: {
|
|
5
|
+
tool: IEditorToolElement;
|
|
6
|
+
editor: Editor;
|
|
7
|
+
onError?: (errorString: string) => void;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -36,5 +36,5 @@ declare const MemoizedTiptapToolBar: React.MemoExoticComponent<({ editor, onErro
|
|
|
36
36
|
onToggleSplitView?: () => void;
|
|
37
37
|
onRegisterExportTrigger?: ((trigger: ((format?: string, name?: string) => void) | null) => void) | undefined;
|
|
38
38
|
fonts?: FontDescriptor[];
|
|
39
|
-
}) => import("react/jsx-runtime").JSX.Element>;
|
|
39
|
+
}) => import("react/jsx-runtime").JSX.Element | null>;
|
|
40
40
|
export default MemoizedTiptapToolBar;
|
|
@@ -149,10 +149,8 @@ export declare const TextColor: ({ editor, setVisibility, elementRef, }: {
|
|
|
149
149
|
elementRef: React.RefObject<HTMLDivElement>;
|
|
150
150
|
setVisibility: Dispatch<SetStateAction<IEditorTool>>;
|
|
151
151
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
152
|
-
export declare const TextHeading: ({ editor
|
|
152
|
+
export declare const TextHeading: ({ editor }: {
|
|
153
153
|
editor: Editor;
|
|
154
|
-
elementRef: React.RefObject<HTMLDivElement>;
|
|
155
|
-
setVisibility: Dispatch<SetStateAction<IEditorTool>>;
|
|
156
154
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
157
155
|
export declare const FontSizePicker: ({ editor, setVisibility, elementRef, currentSize, onSetFontSize, }: {
|
|
158
156
|
editor: Editor;
|
|
@@ -3,12 +3,11 @@ import { Editor } from '@tiptap/react';
|
|
|
3
3
|
import { Tab } from './tabs/utils/tab-utils';
|
|
4
4
|
|
|
5
5
|
import * as Y from 'yjs';
|
|
6
|
-
declare const ImportExportButton: ({ fileExportsOpen, setFileExportsOpen, exportOptions, importOptions,
|
|
6
|
+
declare const ImportExportButton: ({ fileExportsOpen, setFileExportsOpen, exportOptions, importOptions, editor, tabs, ydoc, onRegisterExportTrigger, }: {
|
|
7
7
|
fileExportsOpen: boolean;
|
|
8
8
|
setFileExportsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
9
9
|
exportOptions: (IEditorToolElement | null)[];
|
|
10
10
|
importOptions: (IEditorToolElement | null)[];
|
|
11
|
-
setDropdownOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
12
11
|
editor: Editor | null;
|
|
13
12
|
tabs: Tab[];
|
|
14
13
|
ydoc: Y.Doc;
|
|
@@ -14,7 +14,6 @@ export declare class SyncManager {
|
|
|
14
14
|
private uncommittedUpdatesIdList;
|
|
15
15
|
private contentTobeAppliedQueue;
|
|
16
16
|
private isProcessing;
|
|
17
|
-
private syncId;
|
|
18
17
|
private flushTimer;
|
|
19
18
|
private readonly FLUSH_INTERVAL_MS;
|
|
20
19
|
private readonly MAX_QUEUE_SIZE;
|
|
@@ -31,9 +30,6 @@ export declare class SyncManager {
|
|
|
31
30
|
get awareness(): Awareness | null;
|
|
32
31
|
get status(): CollabStatus;
|
|
33
32
|
get collabState(): CollabState;
|
|
34
|
-
private beginSyncAttempt;
|
|
35
|
-
private isCurrentSyncAttempt;
|
|
36
|
-
private logSyncFlow;
|
|
37
33
|
private send;
|
|
38
34
|
private runExitActions;
|
|
39
35
|
private runEntryActions;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as r } from "./index-
|
|
1
|
+
import { j as r } from "./index-BJ4pjB9T.mjs";
|
|
2
2
|
import { useRef as I, useState as D, useEffect as E } from "react";
|
|
3
3
|
import { DynamicDropdown as P, Tooltip as y, IconButton as L } from "@fileverse/ui";
|
|
4
|
-
import { a3 as A, a4 as _, c as O } from "./index-
|
|
4
|
+
import { a3 as A, a4 as _, c as O } from "./index-B6OyRmbp.mjs";
|
|
5
5
|
const p = (e, n, s = n) => {
|
|
6
6
|
const { state: o } = e, l = o.changeByRange((t) => {
|
|
7
7
|
const u = o.sliceDoc(t.from, t.to), a = o.sliceDoc(
|