@fileverse-dev/ddoc 2.2.3-reminders-1 → 2.2.3-reminders-1.3
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/{ccip-BzVHQWZO.mjs → ccip-y0ePrcov.mjs} +1 -1
- package/dist/{index-CKO9pFGs.mjs → index-C6z7MK6a.mjs} +54299 -97379
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +7 -7
- package/dist/package/components/editor-bubble-menu/props.d.ts +0 -2
- package/dist/package/components/editor-bubble-menu/types.d.ts +0 -2
- package/dist/package/hooks/useReminder.d.ts +16 -0
- package/dist/package/use-ddoc-editor.d.ts +0 -2
- package/dist/style.css +1 -1
- package/package.json +1 -3
- package/dist/package/assets/Reminder-json-no-watermark.json.d.ts +0 -38425
- package/dist/package/components/notifications/dynamic-alert-banner.d.ts +0 -20
- package/dist/package/components/notifications/permission-alert.d.ts +0 -6
- package/dist/package/components/notifications/reminder-intro-banner.d.ts +0 -8
- package/dist/package/components/notifications/reminder-lottie.d.ts +0 -5
package/dist/index.d.ts
CHANGED
@@ -4,4 +4,4 @@ export { handleContentPrint } from './package/utils/handle-print';
|
|
4
4
|
export { useHeadlessEditor } from './package/hooks/use-headless-editor';
|
5
5
|
export { ReminderBlock } from './package/extensions/reminder-block/reminder-block';
|
6
6
|
export { type Reminder, type ReminderBlockOptions, } from './package/extensions/reminder-block/types';
|
7
|
-
export {
|
7
|
+
export { Editor } from '@tiptap/react';
|
package/dist/index.es.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import { D as
|
1
|
+
import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-C6z7MK6a.mjs";
|
2
2
|
export {
|
3
|
-
|
4
|
-
r as
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
3
|
+
d as DdocEditor,
|
4
|
+
r as Editor,
|
5
|
+
s as PreviewDdocEditor,
|
6
|
+
a as ReminderBlock,
|
7
|
+
t as handleContentPrint,
|
8
|
+
i as useHeadlessEditor
|
9
9
|
};
|
@@ -55,8 +55,6 @@ export declare const bubbleMenuProps: (props: EditorBubbleMenuProps) => {
|
|
55
55
|
setCommentDrawerOpen?: React.Dispatch<import('react').SetStateAction<boolean>>;
|
56
56
|
isCollabDocumentPublished?: boolean | undefined;
|
57
57
|
onReminderCreate?: (reminder: import('../../..').Reminder) => void;
|
58
|
-
initialReminderTitle?: string;
|
59
|
-
setInitialReminderTitle?: React.Dispatch<import('react').SetStateAction<string>>;
|
60
58
|
isConnected?: boolean;
|
61
59
|
};
|
62
60
|
export declare const shouldShow: ({ editor }: {
|
@@ -25,8 +25,6 @@ export type EditorBubbleMenuProps = Omit<BubbleMenuProps, 'children'> & {
|
|
25
25
|
setCommentDrawerOpen?: React.Dispatch<SetStateAction<boolean>>;
|
26
26
|
isCollabDocumentPublished?: boolean | undefined;
|
27
27
|
onReminderCreate?: (reminder: Reminder) => void;
|
28
|
-
initialReminderTitle?: string;
|
29
|
-
setInitialReminderTitle?: React.Dispatch<SetStateAction<string>>;
|
30
28
|
isConnected?: boolean;
|
31
29
|
};
|
32
30
|
export interface NodeSelectorProps {
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { Editor } from '@tiptap/react';
|
2
|
+
import { Reminder } from '../extensions/reminder-block/types';
|
3
|
+
|
4
|
+
interface UseReminderProps {
|
5
|
+
editor: Editor;
|
6
|
+
onReminderCreate?: (reminder: Reminder) => Promise<void>;
|
7
|
+
onError?: (errorString: string) => void;
|
8
|
+
}
|
9
|
+
export declare const useReminder: ({ editor, onReminderCreate, onError, }: UseReminderProps) => {
|
10
|
+
reminderRef: import('react').RefObject<HTMLDivElement>;
|
11
|
+
handleReminderOnClose: () => void;
|
12
|
+
handleReminderCreate: (reminder: Reminder) => Promise<void>;
|
13
|
+
initialReminderTitle: string;
|
14
|
+
setInitialReminderTitle: import('react').Dispatch<import('react').SetStateAction<string>>;
|
15
|
+
};
|
16
|
+
export {};
|
@@ -15,6 +15,4 @@ export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableColl
|
|
15
15
|
setSlides: import('react').Dispatch<import('react').SetStateAction<string[]>>;
|
16
16
|
tocItems: any[];
|
17
17
|
setTocItems: import('react').Dispatch<import('react').SetStateAction<any[]>>;
|
18
|
-
initialReminderTitle: string;
|
19
|
-
setInitialReminderTitle: import('react').Dispatch<import('react').SetStateAction<string>>;
|
20
18
|
};
|