@fileverse-dev/ddoc 2.2.5 → 2.2.7-patch-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.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as d, P as r, h as s, u as t } from "./index-BKAyd3pA.mjs";
1
+ import { D as d, P as r, h as s, u as t } from "./index-VXMTdRFb.mjs";
2
2
  export {
3
3
  d as DdocEditor,
4
4
  r as PreviewDdocEditor,
@@ -14,6 +14,7 @@ interface PresentationModeProps {
14
14
  slides: string[];
15
15
  setSlides: React.Dispatch<React.SetStateAction<string[]>>;
16
16
  renderThemeToggle?: () => JSX.Element;
17
+ isContentLoading: boolean;
17
18
  }
18
- export declare const PresentationMode: ({ editor, onClose, isFullscreen, setIsFullscreen, onError, setCommentDrawerOpen, sharedSlidesLink, isPreviewMode, documentName, onSlidesShare, slides, setSlides, renderThemeToggle, }: PresentationModeProps) => import("react/jsx-runtime").JSX.Element | null;
19
+ export declare const PresentationMode: ({ editor, onClose, isFullscreen, setIsFullscreen, onError, setCommentDrawerOpen, sharedSlidesLink, isPreviewMode, documentName, onSlidesShare, slides, setSlides, renderThemeToggle, isContentLoading, }: PresentationModeProps) => import("react/jsx-runtime").JSX.Element | null;
19
20
  export {};
@@ -1,5 +1,5 @@
1
1
  import { NodeType } from '@tiptap/pm/model';
2
2
  import { InputRule } from '@tiptap/core';
3
3
 
4
- export declare const defaultExtensions: (onError: (error: string) => void, secureImageUploadUrl?: string, metadataProxyUrl?: string, onCopyHeadingLink?: (link: string) => void) => (import('@tiptap/core').Extension<any, any> | import('@tiptap/core').Node<any, any> | import('@tiptap/core').Mark<any, any> | import('@tiptap/core').Extension<import('@tiptap/starter-kit').StarterKitOptions, any>)[];
4
+ export declare const defaultExtensions: (onError: (error: string) => void, secureImageUploadUrl?: string, metadataProxyUrl?: string, onCopyHeadingLink?: (link: string) => void) => (import('@tiptap/core').Extension<any, any> | import('@tiptap/core').Node<any, any> | import('@tiptap/core').Mark<any, any>)[];
5
5
  export declare const createInputRule: (pattern: RegExp, data: string, type: NodeType) => InputRule;
@@ -0,0 +1,10 @@
1
+ export type EmojiItem = {
2
+ name: string;
3
+ emoji: string;
4
+ };
5
+ type EmojiListProps = {
6
+ items: EmojiItem[];
7
+ command: (item: EmojiItem) => void;
8
+ };
9
+ export declare const EmojiList: import('react').ForwardRefExoticComponent<EmojiListProps & import('react').RefAttributes<HTMLDivElement>>;
10
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare function emojiSearch(query: string): {
2
+ name: string;
3
+ emoji: string;
4
+ }[];
@@ -0,0 +1,16 @@
1
+ import { Node } from '@tiptap/core';
2
+ import { PluginKey } from '@tiptap/pm/state';
3
+
4
+ export declare const EXTENSION_PRIORITY_HIGHEST = 200;
5
+ declare module '@tiptap/core' {
6
+ interface Commands<ReturnType> {
7
+ emoji: {
8
+ setEmoji: (emoji: {
9
+ name: string;
10
+ emoji: string;
11
+ }) => ReturnType;
12
+ };
13
+ }
14
+ }
15
+ export declare const EmojiPluginKey: PluginKey<any>;
16
+ export declare const Emoji: Node<any, any>;