oasis-editor 0.0.30 → 0.0.32
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/{OasisEditorApp-Bvkbr1KZ.js → OasisEditorApp-D6NxTc6l.js} +603 -307
- package/dist/app/services/indexedDbPersistence.d.ts +20 -0
- package/dist/assets/{importDocxWorker-DVvaVtgj.js → importDocxWorker-xRrspiYv.js} +1 -1
- package/dist/core/editorState.d.ts +7 -1
- package/dist/core/endnotes.d.ts +0 -2
- package/dist/core/footnotes.d.ts +0 -2
- package/dist/core/model/index.d.ts +1 -0
- package/dist/core/model/listNumbering.d.ts +5 -0
- package/dist/core/model/types/primitives.d.ts +10 -0
- package/dist/export/docx/docxTypes.d.ts +10 -3
- package/dist/export/pdf/draw/drawBlockList.d.ts +1 -1
- package/dist/export/pdf/draw/drawParagraph.d.ts +1 -1
- package/dist/export/pdf/draw/drawTable.d.ts +1 -1
- package/dist/export/pdf/draw/lists.d.ts +2 -2
- package/dist/i18n/I18nContext.d.ts +9 -0
- package/dist/i18n/index.d.ts +7 -3
- package/dist/import/docx/numbering.d.ts +19 -28
- package/dist/{index-BVAzjJsg.js → index-CDi9hs5T.js} +1264 -1540
- package/dist/index.d.ts +1 -1
- package/dist/oasis-editor.js +54 -54
- package/dist/oasis-editor.umd.cjs +4 -4
- package/dist/ui/OasisEditorAppProps.d.ts +6 -0
- package/dist/ui/app/useEditorContextMenuClipboard.d.ts +2 -0
- package/dist/ui/app/useEditorRuntimeBootstrap.d.ts +1 -0
- package/dist/ui/app/useEditorRuntimePlugins.d.ts +2 -0
- package/dist/ui/canvas/listNumbering.d.ts +2 -1
- package/dist/ui/components/Menubar/Menubar.d.ts +1 -1
- package/dist/ui/components/Menubar/menuRegistry.d.ts +0 -1
- package/dist/ui/components/Toolbar/presets/defaultToolbar.d.ts +2 -1
- package/dist/ui/components/Toolbar/ribbon/ribbonModel.d.ts +4 -3
- package/dist/ui/components/Toolbar/state/createToolbarApi.d.ts +2 -1
- package/dist/ui/textMeasurement/indentation.d.ts +2 -0
- package/package.json +1 -1
- package/dist/app/services/PersistenceService.d.ts +0 -11
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EditorDocument } from '../../core/model.js';
|
|
2
|
+
|
|
3
|
+
export interface IndexedDbPersistenceOptions {
|
|
4
|
+
/** Key under which the document is stored. Distinct keys isolate editors. */
|
|
5
|
+
key?: string;
|
|
6
|
+
dbName?: string;
|
|
7
|
+
storeName?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IndexedDbPersistence {
|
|
10
|
+
saveDocument(doc: EditorDocument): Promise<void>;
|
|
11
|
+
loadDocument(): Promise<EditorDocument | null>;
|
|
12
|
+
clearDocument(): Promise<void>;
|
|
13
|
+
close(): void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Create an IndexedDB-backed persistence instance. Each call owns its own
|
|
17
|
+
* connection and storage key, so two editors on the same page never share a
|
|
18
|
+
* document slot. There is intentionally no module-level singleton.
|
|
19
|
+
*/
|
|
20
|
+
export declare function createIndexedDbPersistence(options?: IndexedDbPersistenceOptions): IndexedDbPersistence;
|