@fileverse-dev/ddoc 2.3.0-patch-12 → 2.3.0-patch-13-customisation-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, E as r, P as s, R as a, h as t, u as i } from "./index-BaCPx3x-.mjs";
1
+ import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-CU6lMaXA.mjs";
2
2
  export {
3
3
  d as DdocEditor,
4
4
  r as Editor,
@@ -1,5 +1,5 @@
1
1
  import { Editor } from '@tiptap/react';
2
- import { IpfsImageFetchPayload } from '../../types';
2
+ import { IpfsImageFetchPayload, DdocProps } from '../../types';
3
3
 
4
4
  interface PresentationModeProps {
5
5
  editor: Editor;
@@ -20,6 +20,7 @@ interface PresentationModeProps {
20
20
  url: string;
21
21
  file: File;
22
22
  }>;
23
+ documentStyling?: DdocProps['documentStyling'];
23
24
  }
24
- export declare const PresentationMode: ({ editor, onClose, isFullscreen, setIsFullscreen, onError, setCommentDrawerOpen, sharedSlidesLink, isPreviewMode, documentName, onSlidesShare, slides, setSlides, renderThemeToggle, isContentLoading, ipfsImageFetchFn, }: PresentationModeProps) => import("react/jsx-runtime").JSX.Element | null;
25
+ export declare const PresentationMode: ({ editor, onClose, isFullscreen, setIsFullscreen, onError, setCommentDrawerOpen, sharedSlidesLink, isPreviewMode, documentName, onSlidesShare, slides, setSlides, renderThemeToggle, isContentLoading, ipfsImageFetchFn, documentStyling, }: PresentationModeProps) => import("react/jsx-runtime").JSX.Element | null;
25
26
  export {};
@@ -1,7 +1,10 @@
1
+ import { DdocProps } from '../../types';
2
+
1
3
  interface PreviewPanelProps {
2
4
  slides: string[];
3
5
  currentSlide: number;
4
6
  setCurrentSlide: (index: number) => void;
7
+ documentStyling?: DdocProps['documentStyling'];
5
8
  }
6
- export declare const PreviewPanel: ({ slides, currentSlide, setCurrentSlide, }: PreviewPanelProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const PreviewPanel: ({ slides, currentSlide, setCurrentSlide, documentStyling, }: PreviewPanelProps) => import("react/jsx-runtime").JSX.Element;
7
10
  export {};
@@ -32,6 +32,36 @@ export interface CustomModel {
32
32
  apiKey: string;
33
33
  systemPrompt: string;
34
34
  }
35
+ /**
36
+ * Document styling configuration interface
37
+ * @description Defines the styling options available for customizing the document editor appearance
38
+ */
39
+ export interface DocumentStyling {
40
+ /**
41
+ * Outer page/document background
42
+ * @description Controls the background of the entire editor area. Supports solid colors and CSS gradients.
43
+ * @example "#f8f9fa" | "linear-gradient(135deg, #667eea 0%, #764ba2 100%)"
44
+ */
45
+ background?: string;
46
+ /**
47
+ * Editor content area background
48
+ * @description Controls the background color of the actual editor content where text is written. Should be solid colors for readability.
49
+ * @example "#ffffff" | "#f5f5f5"
50
+ */
51
+ canvasBackground?: string;
52
+ /**
53
+ * Text color
54
+ * @description Controls the color of the text content in the editor.
55
+ * @example "#000000" | "#1a1a1a"
56
+ */
57
+ textColor?: string;
58
+ /**
59
+ * Font family
60
+ * @description Controls the font family used for the editor content.
61
+ * @example "Inter" | "Arial" | "Georgia"
62
+ */
63
+ fontFamily?: string;
64
+ }
35
65
  export interface DdocProps extends CommentAccountProps {
36
66
  isCollabDocumentPublished?: boolean;
37
67
  ipfsImageFetchFn?: (_data: IpfsImageFetchPayload) => Promise<{
@@ -112,6 +142,11 @@ export interface DdocProps extends CommentAccountProps {
112
142
  activeModel?: CustomModel;
113
143
  maxTokens?: number;
114
144
  isAIAgentEnabled?: boolean;
145
+ /**
146
+ * Document styling configuration
147
+ * @description Customize the appearance of the document editor
148
+ */
149
+ documentStyling?: DocumentStyling;
115
150
  }
116
151
  export interface IEditorSelectionData {
117
152
  from: number;