oasis-editor 0.0.219 → 0.0.221
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-BJpbWbOf.js → OasisEditorApp-CXBTtJuR.js} +1 -1
- package/dist/app/controllers/EditorCommandsController.d.ts +2 -2
- package/dist/assets/{importDocxWorker-BIjCzhM3.js → importDocxWorker-VC9O6KEc.js} +1282 -1269
- package/dist/core/commands/block.d.ts +2 -2
- package/dist/core/commands/builtinCommands.d.ts +1 -1
- package/dist/core/commands/crossReference.d.ts +27 -0
- package/dist/core/commands/publicCommandTypes.d.ts +7 -0
- package/dist/core/model/types/primitives.d.ts +7 -1
- package/dist/{defaultToolbar-B7lLZb5m.js → defaultToolbar-CdsYjowV.js} +1 -1
- package/dist/import/docx/runs/types.d.ts +4 -0
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +1 -1
- package/dist/plugins/internal/essentialsCapabilities.d.ts +15 -0
- package/dist/ui/app/createAppCommandsController.d.ts +2 -2
- package/dist/ui/app/createEditorCommandRuntime.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EditorColumnsSettings, EditorDocumentDesign, EditorImageBorder, EditorPageBorder, EditorPageMargins, EditorPageNumbering, EditorWatermark, EditorMathExpression } from '../../core/model.js';
|
|
2
2
|
import { SectionPageNumberFormat } from '../../core/commands/pageNumber.js';
|
|
3
|
+
import { CrossReferenceType } from '../../core/commands/crossReference.js';
|
|
3
4
|
import { DesignThemeId } from '../../core/commands/design.js';
|
|
4
5
|
import { ImageBorderPatch } from '../../core/commands/image.js';
|
|
5
6
|
import { TextCaseMode } from '../../core/commands/text.js';
|
|
@@ -208,6 +209,12 @@ export interface EssentialsSectionCapability {
|
|
|
208
209
|
setOrientation: (orientation: "portrait" | "landscape") => void;
|
|
209
210
|
breakNextPage: () => void;
|
|
210
211
|
breakContinuous: () => void;
|
|
212
|
+
/** Insert a section break that begins the next section on an even page. */
|
|
213
|
+
breakEvenPage: () => void;
|
|
214
|
+
/** Insert a section break that begins the next section on an odd page. */
|
|
215
|
+
breakOddPage: () => void;
|
|
216
|
+
/** Insert a section break that begins the next section in a new column. */
|
|
217
|
+
breakNextColumn: () => void;
|
|
211
218
|
getMargins: () => EditorPageMargins | undefined;
|
|
212
219
|
setPageMargins: (margins: Partial<EditorPageMargins>) => void;
|
|
213
220
|
getPageNumbering: () => EditorPageNumbering | undefined;
|
|
@@ -264,6 +271,14 @@ export interface EssentialsBookmarkCapability {
|
|
|
264
271
|
export interface EssentialsFieldsCapability {
|
|
265
272
|
/** Insert a DATE field at the active caret with the current date. */
|
|
266
273
|
insertDate: () => void;
|
|
274
|
+
/**
|
|
275
|
+
* Insert a cross-reference (REF / PAGEREF) to the named bookmark at the
|
|
276
|
+
* caret. A no-op when the target bookmark is unknown.
|
|
277
|
+
*/
|
|
278
|
+
insertCrossReference: (options: {
|
|
279
|
+
type: CrossReferenceType;
|
|
280
|
+
bookmark: string;
|
|
281
|
+
}) => void;
|
|
267
282
|
}
|
|
268
283
|
export interface EssentialsDesignCapability {
|
|
269
284
|
applyTheme: (theme: DesignThemeId) => void;
|
|
@@ -50,7 +50,7 @@ declare function createAppCommandsControllerImpl(deps: AppCommandsControllerDeps
|
|
|
50
50
|
applyParagraphListCommand: (kind: NonNullable<import('../../core/model.js').EditorParagraphListStyle["kind"]>) => void;
|
|
51
51
|
handleListFormatChange: (format: import('../../core/model.js').EditorParagraphListStyle["format"]) => void;
|
|
52
52
|
handleListStartAtChange: (startAt: number | null) => void;
|
|
53
|
-
applyInsertSectionBreakCommand: (breakType:
|
|
53
|
+
applyInsertSectionBreakCommand: (breakType: import('../../core/model.js').EditorSectionBreakType) => void;
|
|
54
54
|
applyInsertPageBreakCommand: () => void;
|
|
55
55
|
canInsertFootnoteCommand: () => boolean;
|
|
56
56
|
applyInsertFootnoteCommand: () => void;
|
|
@@ -92,7 +92,7 @@ declare function createAppCommandsControllerImpl(deps: AppCommandsControllerDeps
|
|
|
92
92
|
applyParagraphListCommand: (kind: NonNullable<import('../../core/model.js').EditorParagraphListStyle["kind"]>) => void;
|
|
93
93
|
handleListFormatChange: (format: import('../../core/model.js').EditorParagraphListStyle["format"]) => void;
|
|
94
94
|
handleListStartAtChange: (startAt: number | null) => void;
|
|
95
|
-
applyInsertSectionBreakCommand: (breakType:
|
|
95
|
+
applyInsertSectionBreakCommand: (breakType: import('../../core/model.js').EditorSectionBreakType) => void;
|
|
96
96
|
applyInsertPageBreakCommand: () => void;
|
|
97
97
|
canInsertFootnoteCommand: () => boolean;
|
|
98
98
|
applyInsertFootnoteCommand: () => void;
|
|
@@ -85,7 +85,7 @@ declare function createEditorCommandRuntimeImpl(deps: EditorCommandRuntimeDeps):
|
|
|
85
85
|
applyParagraphListCommand: (kind: NonNullable<import('../../core/model.js').EditorParagraphListStyle["kind"]>) => void;
|
|
86
86
|
handleListFormatChange: (format: import('../../core/model.js').EditorParagraphListStyle["format"]) => void;
|
|
87
87
|
handleListStartAtChange: (startAt: number | null) => void;
|
|
88
|
-
applyInsertSectionBreakCommand: (breakType:
|
|
88
|
+
applyInsertSectionBreakCommand: (breakType: import('../../core/model.js').EditorSectionBreakType) => void;
|
|
89
89
|
applyInsertPageBreakCommand: () => void;
|
|
90
90
|
canInsertFootnoteCommand: () => boolean;
|
|
91
91
|
applyInsertFootnoteCommand: () => void;
|