@fileverse-dev/ddoc 3.0.87-page-count-1 → 3.0.87-page-count-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/README.md CHANGED
@@ -22,8 +22,8 @@ To use dDocs, ensure your project is set up with Tailwind CSS and have a Tailwin
22
22
  Add the following imports :
23
23
 
24
24
  ```javascript
25
- import { DdocEditor } from '@fileverse-dev/ddoc';
26
- import '@fileverse-dev/ddoc/styles'; // in App.jsx/App.tsx
25
+ import { DdocEditor } from "@fileverse-dev/ddoc";
26
+ import "@fileverse-dev/ddoc/styles"; // in App.jsx/App.tsx
27
27
  ```
28
28
 
29
29
  ### Peer Dependencies
@@ -144,12 +144,12 @@ interface DocumentStyling {
144
144
  <DdocEditor
145
145
  documentStyling={{
146
146
  background: {
147
- light: 'linear-gradient(135deg, #667eea 0%, #764ba2 100%)',
148
- dark: 'linear-gradient(135deg, #2a3145 0%, #3a2f59 100%)',
147
+ light: "linear-gradient(135deg, #667eea 0%, #764ba2 100%)",
148
+ dark: "linear-gradient(135deg, #2a3145 0%, #3a2f59 100%)",
149
149
  },
150
- canvasBackground: { light: '#ffffff', dark: '#1e1f22' },
151
- textColor: { light: '#333333', dark: '#e8ebec' },
152
- fontFamily: 'Inter, sans-serif',
150
+ canvasBackground: { light: "#ffffff", dark: "#1e1f22" },
151
+ textColor: { light: "#333333", dark: "#e8ebec" },
152
+ fontFamily: "Inter, sans-serif",
153
153
  }}
154
154
  // ... other props
155
155
  />
@@ -184,21 +184,21 @@ interface DocumentStyling {
184
184
 
185
185
  ## Utility Props
186
186
 
187
- | Property | Type | Description |
188
- | ------------------- | ------------------------------------------------------------------------ | ----------------------------------------- |
189
- | `setCharacterCount` | `React.Dispatch<SetStateAction<number>>` | Updates character count |
190
- | `setWordCount` | `React.Dispatch<SetStateAction<number>>` | Updates word count |
191
- | `setPageCount` | `React.Dispatch<SetStateAction<number>>` | Updates approx. export page count |
192
- | `ensResolutionUrl` | `string` | URL for ENS name resolution |
193
- | `ipfsImageUploadFn` | ` (file: File) => Promise<IpfsImageUploadResponse>` | function for secure image uploads |
194
- | `ipfsImageFetchFn` | ` (_data: IpfsImageFetchPayload) => Promise<{ url: string;file: File;}>` | function for fetch secure image from IPFS |
195
- | `onError` | `(error: string) => void` | General error handler |
196
- | `onInlineComment` | `() => void` | Callback for inline comments |
197
- | `onMarkdownExport` | `() => void` | Callback for markdown export |
198
- | `onMarkdownImport` | `() => void` | Callback for markdown import |
199
- | `onPdfExport` | `() => void` | Callback for pdf export |
200
- | `onSlidesShare` | `() => void` | Callback for slides sharing |
201
- | `onComment` | `() => void` | General comment callback |
187
+ | Property | Type | Description |
188
+ | ------------------- | ------------------------------------------------------------------------ | ------------------------------------------------- |
189
+ | `setCharacterCount` | `React.Dispatch<SetStateAction<number>>` | Updates character count |
190
+ | `setWordCount` | `React.Dispatch<SetStateAction<number>>` | Updates word count |
191
+ | `setPageCount` | `React.Dispatch<SetStateAction<number>>` | Updates approximate current-tab export page count |
192
+ | `ensResolutionUrl` | `string` | URL for ENS name resolution |
193
+ | `ipfsImageUploadFn` | ` (file: File) => Promise<IpfsImageUploadResponse>` | function for secure image uploads |
194
+ | `ipfsImageFetchFn` | ` (_data: IpfsImageFetchPayload) => Promise<{ url: string;file: File;}>` | function for fetch secure image from IPFS |
195
+ | `onError` | `(error: string) => void` | General error handler |
196
+ | `onInlineComment` | `() => void` | Callback for inline comments |
197
+ | `onMarkdownExport` | `() => void` | Callback for markdown export |
198
+ | `onMarkdownImport` | `() => void` | Callback for markdown import |
199
+ | `onPdfExport` | `() => void` | Callback for pdf export |
200
+ | `onSlidesShare` | `() => void` | Callback for slides sharing |
201
+ | `onComment` | `() => void` | General comment callback |
202
202
 
203
203
  ## AI Writer Props
204
204