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.
- package/dist/{OasisEditorApp-kxnBMgj0.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/pageSetup.d.ts +33 -1
- package/dist/core/commands/publicCommandTypes.d.ts +10 -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 +16 -1
- package/package.json +1 -1
|
@@ -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;
|