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.
- package/dist/{OasisEditorApp-BJpbWbOf.js → OasisEditorApp-99a2k8kS.js} +1 -1
- package/dist/assets/{importDocxWorker-BIjCzhM3.js → importDocxWorker-VC9O6KEc.js} +1282 -1269
- 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 +4 -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 +9 -0
- 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';
|
|
@@ -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;
|