@fileverse-dev/ddoc 2.2.1-alpha-8 → 2.2.1-alpha-10

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-BzOywU5H.mjs";
1
+ import { D as d, P as r, h as s, u as t } from "./index-By7S8LQG.mjs";
2
2
  export {
3
3
  d as DdocEditor,
4
4
  r as PreviewDdocEditor,
@@ -10,3 +10,18 @@ export declare const fadeVariants: {
10
10
  };
11
11
  };
12
12
  export declare const fadeInTransition: (element: JSX.Element, key: string) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const slideUpVariants: {
14
+ initial: {
15
+ y: number;
16
+ opacity: number;
17
+ };
18
+ animate: {
19
+ y: number;
20
+ opacity: number;
21
+ };
22
+ exit: {
23
+ y: number;
24
+ opacity: number;
25
+ };
26
+ };
27
+ export declare const slideUpTransition: (element: JSX.Element, key: string) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const PreviewContentLoader: () => import("react/jsx-runtime").JSX.Element;
@@ -13,5 +13,6 @@ export declare const useHeadingCollapse: ({ node, getPos, editor, collapsedHeadi
13
13
  isThisHeadingCollapsed: boolean;
14
14
  shouldBeHidden: boolean;
15
15
  toggleCollapse: () => void;
16
+ headingAlignment: any;
16
17
  };
17
18
  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;
@@ -1,7 +1,7 @@
1
1
  import { DdocProps } from './types';
2
2
 
3
3
  import * as Y from 'yjs';
4
- export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, walletAddress, username, onChange, onCollaboratorChange, onCommentInteraction, ensResolutionUrl, onError, setCharacterCount, setWordCount, secureImageUploadUrl, ddocId, enableIndexeddbSync, unFocused, zoomLevel, onInvalidContentError, ignoreCorruptedData, isPresentationMode, metadataProxyUrl, onCopyHeadingLink, }: Partial<DdocProps>) => {
4
+ export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, walletAddress, username, onChange, onCollaboratorChange, onCommentInteraction, ensResolutionUrl, onError, setCharacterCount, setWordCount, secureImageUploadUrl, ddocId, enableIndexeddbSync, unFocused, zoomLevel, onInvalidContentError, ignoreCorruptedData, isPresentationMode, proExtensions, metadataProxyUrl, onCopyHeadingLink, }: Partial<DdocProps>) => {
5
5
  editor: import('@tiptap/core').Editor | null;
6
6
  isContentLoading: boolean;
7
7
  ref: import('react').RefObject<HTMLDivElement>;