@fileverse-dev/ddoc 5.1.6 → 5.1.7-tab-0
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-D9xaees6.mjs → index-BQnz4D_J.mjs} +1 -1
- package/dist/index.es.js +4799 -4734
- package/dist/{markdown-source-pane-Dtuzt6cD.mjs → markdown-source-pane-WxG4qskq.mjs} +1 -1
- package/dist/package/components/tabs/document-mobile-tab-panel.d.ts +2 -1
- package/dist/package/components/tabs/rename-tab-modal.d.ts +8 -0
- package/dist/package/components/tabs/tab-item.d.ts +4 -1
- package/dist/package/extensions/comment/comment.d.ts +3 -0
- package/dist/{split-view-toolbar-DQ6H0Nmh.mjs → split-view-toolbar-CPh2I12B.mjs} +1 -1
- package/dist/{use-headless-editor-Dm07peFJ.mjs → use-headless-editor-kI0G-Etd.mjs} +4912 -4892
- package/package.json +1 -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-BQnz4D_J.mjs";
|
|
7
7
|
class ua {
|
|
8
8
|
/**
|
|
9
9
|
Create a new completion context. (Mostly useful for testing
|
|
@@ -17,6 +17,7 @@ export interface DocumentMobileTabPanelProps {
|
|
|
17
17
|
}) => void;
|
|
18
18
|
createTab: () => void;
|
|
19
19
|
duplicateTab: (tabId: string) => void;
|
|
20
|
+
orderTab: DocumentOutlineProps['orderTab'];
|
|
20
21
|
deleteTab?: (tabId: string) => void;
|
|
21
22
|
tabCommentCounts: Record<string, number>;
|
|
22
23
|
isPreviewMode: boolean;
|
|
@@ -25,4 +26,4 @@ export interface DocumentMobileTabPanelProps {
|
|
|
25
26
|
isConnected?: boolean;
|
|
26
27
|
isFocusMode?: boolean;
|
|
27
28
|
}
|
|
28
|
-
export declare const DocumentMobileTabPanel: ({ tabs, activeTabId, setActiveTabId, editor, items, setItems, orientation, renameTab, createTab, duplicateTab, deleteTab, tabCommentCounts, isPreviewMode, tabConfig, isVersionHistoryMode, isConnected, isFocusMode, }: DocumentMobileTabPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare const DocumentMobileTabPanel: ({ tabs, activeTabId, setActiveTabId, editor, items, setItems, orientation, renameTab, createTab, duplicateTab, orderTab, deleteTab, tabCommentCounts, isPreviewMode, tabConfig, isVersionHistoryMode, isConnected, isFocusMode, }: DocumentMobileTabPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface RenameTabModalProps {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
initialName: string;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
onConfirm: (name: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const RenameTabModal: ({ isOpen, initialName, onClose, onConfirm, }: RenameTabModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -15,6 +15,9 @@ export interface TabItemProps {
|
|
|
15
15
|
onDuplicate?: (id: string) => void;
|
|
16
16
|
dragHandleProps?: HTMLAttributes<HTMLDivElement>;
|
|
17
17
|
hideContentMenu?: boolean;
|
|
18
|
+
alwaysShowMenu?: boolean;
|
|
19
|
+
menuPopoverClassName?: string;
|
|
20
|
+
onRename?: () => void;
|
|
18
21
|
showOutline?: boolean;
|
|
19
22
|
handleShowOutline?: (value: boolean) => void;
|
|
20
23
|
canMoveUp?: boolean;
|
|
@@ -48,7 +51,7 @@ interface TabContextMenuProps {
|
|
|
48
51
|
popoverClassName?: string;
|
|
49
52
|
}
|
|
50
53
|
export declare const SortableTabItem: (props: SortableTabItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
51
|
-
export declare const TabItem: ({ isEditing, setIsEditing, tabId, name, emoji, commentCount, onNameChange, onEmojiChange, onClick, isActive, onDuplicate, dragHandleProps, hideContentMenu, showOutline, handleShowOutline, canMoveUp, canMoveDown, onMoveUp, onMoveDown, isPreviewMode, isVersionHistoryMode, onCopyLink, onDelete, isConnected, }: TabItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
export declare const TabItem: ({ isEditing, setIsEditing, tabId, name, emoji, commentCount, onNameChange, onEmojiChange, onClick, isActive, onDuplicate, dragHandleProps, hideContentMenu, alwaysShowMenu, menuPopoverClassName, onRename, showOutline, handleShowOutline, canMoveUp, canMoveDown, onMoveUp, onMoveDown, isPreviewMode, isVersionHistoryMode, onCopyLink, onDelete, isConnected, }: TabItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
52
55
|
export declare const TabDragPreview: ({ name, emoji, }: {
|
|
53
56
|
name: string;
|
|
54
57
|
emoji: string;
|
|
@@ -4,6 +4,7 @@ import { PluginKey, EditorState } from '@tiptap/pm/state';
|
|
|
4
4
|
import { DecorationSet } from '@tiptap/pm/view';
|
|
5
5
|
import { SuggestionType } from '../../types';
|
|
6
6
|
|
|
7
|
+
import * as Y from 'yjs';
|
|
7
8
|
declare module '@tiptap/core' {
|
|
8
9
|
interface Commands<ReturnType> {
|
|
9
10
|
comment: {
|
|
@@ -73,6 +74,8 @@ export interface DraftCommentRange {
|
|
|
73
74
|
draftId: string;
|
|
74
75
|
from: number;
|
|
75
76
|
to: number;
|
|
77
|
+
anchorFrom?: Y.RelativePosition;
|
|
78
|
+
anchorTo?: Y.RelativePosition;
|
|
76
79
|
}
|
|
77
80
|
interface DraftCommentPluginState {
|
|
78
81
|
decorations: DecorationSet;
|
|
@@ -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-BQnz4D_J.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(
|