oasis-editor 0.0.218 → 0.0.220

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
- import { EditorDocumentDesign, EditorImageBorder, EditorPageBorder, EditorPageMargins, EditorPageNumbering, EditorWatermark, EditorMathExpression } from '../../core/model.js';
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';
@@ -224,6 +225,12 @@ export interface EssentialsSectionCapability {
224
225
  heightPt: number;
225
226
  }) => void;
226
227
  setPaperSizePreset: (presetId: string) => void;
228
+ getColumns: () => EditorColumnsSettings | undefined;
229
+ setColumns: (columns: {
230
+ count: number;
231
+ space?: number;
232
+ separator?: boolean;
233
+ }) => void;
227
234
  }
228
235
  export interface EssentialsHeaderFooterCapability {
229
236
  /** Enter header editing for the active section's default header. */
@@ -258,6 +265,14 @@ export interface EssentialsBookmarkCapability {
258
265
  export interface EssentialsFieldsCapability {
259
266
  /** Insert a DATE field at the active caret with the current date. */
260
267
  insertDate: () => void;
268
+ /**
269
+ * Insert a cross-reference (REF / PAGEREF) to the named bookmark at the
270
+ * caret. A no-op when the target bookmark is unknown.
271
+ */
272
+ insertCrossReference: (options: {
273
+ type: CrossReferenceType;
274
+ bookmark: string;
275
+ }) => void;
261
276
  }
262
277
  export interface EssentialsDesignCapability {
263
278
  applyTheme: (theme: DesignThemeId) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.218",
3
+ "version": "0.0.220",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {