@fileverse-dev/ddoc 2.1.1-ws-patch-1 → 2.1.2-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/README.md +15 -0
- package/dist/index.es.js +33760 -33106
- package/dist/package/components/toc/document-outline.d.ts +3 -0
- package/dist/package/components/toc/toc.d.ts +5 -0
- package/dist/package/components/toc/types.d.ts +30 -0
- package/dist/package/extensions/default-extension.d.ts +1 -1
- package/dist/package/extensions/supercharged-table/extension-table/table-view.d.ts +2 -5
- package/dist/package/extensions/supercharged-table/extension-table-row/table-row-node-view.d.ts +2 -5
- package/dist/package/types.d.ts +6 -3
- package/dist/package/use-ddoc-editor.d.ts +3 -1
- package/dist/package/utils/security.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
@@ -69,6 +69,7 @@ The `DdocProps` interface is a TypeScript interface that defines the properties
|
|
69
69
|
| `sharedSlidesLink` (optional) | `string` | Link for shared slides in presentation mode |
|
70
70
|
| `documentName` (optional) | `string` | Name of the document |
|
71
71
|
| `onSlidesShare` (optional) | `() => void` | Callback |
|
72
|
+
| `proExtensions` (optional) | `Record<string, Extension \| any>` | Object mapping extension names to their configurations. **Note:** Requires proper `.npmrc` setup and installing the corresponding extension packages. Example: `{ ai: AiExtension, slides: SlidesExtension }` |
|
72
73
|
| |
|
73
74
|
|
74
75
|
## Data Interface
|
@@ -89,3 +90,17 @@ The `Data` interface defines the structure of the data object
|
|
89
90
|
It will open up a vite server, that will have the Ddoc Editor
|
90
91
|
|
91
92
|
⚠️ This repository is currently undergoing rapid development, with frequent updates and changes. We recommend not to use in production yet
|
93
|
+
|
94
|
+
## Pro Extensions Setup
|
95
|
+
|
96
|
+
1. Configure your `.npmrc` with the appropriate registry and authentication token:
|
97
|
+
|
98
|
+
2. Install the corresponding extension packages:
|
99
|
+
|
100
|
+
3. Use the extension in your DdocEditor component:
|
101
|
+
|
102
|
+
```tsx
|
103
|
+
proExtensions={{
|
104
|
+
TableOfContents
|
105
|
+
}}
|
106
|
+
```
|