oasis-editor 0.0.219 → 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
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';
@@ -264,6 +265,14 @@ export interface EssentialsBookmarkCapability {
264
265
  export interface EssentialsFieldsCapability {
265
266
  /** Insert a DATE field at the active caret with the current date. */
266
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;
267
276
  }
268
277
  export interface EssentialsDesignCapability {
269
278
  applyTheme: (theme: DesignThemeId) => 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.220",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {