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.
@@ -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: "nextPage" | "continuous") => void;
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: "nextPage" | "continuous") => void;
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: "nextPage" | "continuous") => void;
88
+ applyInsertSectionBreakCommand: (breakType: import('../../core/model.js').EditorSectionBreakType) => void;
89
89
  applyInsertPageBreakCommand: () => void;
90
90
  canInsertFootnoteCommand: () => boolean;
91
91
  applyInsertFootnoteCommand: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.219",
3
+ "version": "0.0.221",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {