oasis-editor 0.0.147 → 0.0.148
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-DM9mi2EU.js → OasisEditorApp-B1b1iJOQ.js} +613 -163
- package/dist/core/commands/builtinCommands.d.ts +1 -1
- package/dist/core/commands/publicCommandTypes.d.ts +8 -0
- package/dist/i18n/locales/en.d.ts +26 -0
- package/dist/i18n/locales/pt-BR.d.ts +26 -0
- package/dist/{index-CXKg4TC3.js → index-CpZO1PF4.js} +1181 -647
- package/dist/oasis-editor.css +1 -1
- package/dist/oasis-editor.js +59 -59
- package/dist/oasis-editor.umd.cjs +4 -4
- package/dist/plugins/internal/essentialsCapabilities.d.ts +3 -0
- package/dist/ui/app/EditorDialogsLayer.d.ts +2 -0
- package/dist/ui/app/createEditorCommandRuntime.d.ts +6 -0
- package/dist/ui/app/essentials/types.d.ts +2 -0
- package/dist/ui/app/newDocumentAction.d.ts +7 -0
- package/dist/ui/app/useEditorDialogs.d.ts +12 -0
- package/dist/ui/components/Dialogs/NewDocumentConfirmationDialog.d.ts +8 -0
- package/dist/ui/components/Dialogs/SymbolDialog.d.ts +8 -0
- package/dist/ui/components/Toolbar/SymbolMenu.d.ts +6 -0
- package/dist/ui/components/Toolbar/presets/builtinToolbarIds.d.ts +3 -1
- package/dist/ui/components/Toolbar/primitives/Menu.d.ts +1 -0
- package/dist/ui/components/Toolbar/recentSymbols.d.ts +4 -0
- package/dist/ui/components/Toolbar/ribbon/RibbonTabs.d.ts +2 -1
- package/dist/ui/components/Toolbar/ribbon/ribbonModel.d.ts +1 -1
- package/dist/ui/components/Toolbar/symbolCatalog.d.ts +16 -0
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const OASIS_BUILTIN_COMMANDS: readonly ["selectAll", "insertFootnote", "insertTableOfContents", "updateTableOfContents", "pastePlainText", "bold", "italic", "underline", "strike", "superscript", "subscript", "link", "unlink", "alignLeft", "alignCenter", "alignRight", "alignJustify", "orderedList", "bulletList", "find", "replace", "toggleTrackChanges", "acceptRevisions", "rejectRevisions", "toggleShowMargins", "toggleShowParagraphMarks", "togglePreciseFonts", "undo", "redo", "pageBreak", "lineBreak", "splitBlock", "setFontFamily", "setFontSize", "increaseFontSize", "decreaseFontSize", "changeTextCase", "clearFormatting", "setColor", "setHighlight", "setTextShading", "setStyleId", "setCharacterStyleId", "setUnderlineStyle", "documentStyles", "print", "copy", "exportDocx", "exportPdf", "importDocument", "insertImage", "editImageAlt", "insertImageCaption", "imageContext", "imageWidthCm", "imageHeightCm", "imageCrop", "imageCropAspect", "imageBorder", "outdent", "indent", "togglePageBreakBefore", "toggleKeepWithNext", "setSpacingAfter", "setSpacingBefore", "setIndentLeft", "setIndentRight", "setIndentFirstLine", "setIndentHanging", "setSpecialIndent", "setParagraphShading", "applyParagraphBorders", "setLineHeight", "setListFormat", "setListStartAt", "toggleOrientation", "setOrientation", "sectionBreakNextPage", "sectionBreakContinuous", "setPageMargins", "tableContext", "tableMerge", "tableSplit", "tableInsertColumnBefore", "tableInsertColumnAfter", "tableDeleteColumn", "tableInsertRowBefore", "tableInsertRowAfter", "tableDeleteRow", "tableCellShading", "tableCellBorders", "tableCellNoBorders", "tableApplyBorderPreset", "toggleTableDrawBorders", "toggleTableGridlines", "tableWidth100", "tableAlignLeft", "tableAlignCenter", "tableAlignRight", "tableSetCellWidth", "tableToggleHeaderRow", "tableToggleTotalRow", "tableToggleBandedRows", "tableToggleFirstColumn", "tableToggleLastColumn", "tableToggleBandedColumns", "setTableStyle", "tableToggleAutoFit", "tableDistributeColumns", "tableDistributeRows", "insertTable", "insertShape"];
|
|
1
|
+
export declare const OASIS_BUILTIN_COMMANDS: readonly ["selectAll", "insertFootnote", "insertText", "insertTableOfContents", "updateTableOfContents", "pastePlainText", "bold", "italic", "underline", "strike", "superscript", "subscript", "link", "unlink", "alignLeft", "alignCenter", "alignRight", "alignJustify", "orderedList", "bulletList", "find", "replace", "toggleTrackChanges", "acceptRevisions", "rejectRevisions", "toggleShowMargins", "toggleShowParagraphMarks", "togglePreciseFonts", "undo", "redo", "pageBreak", "lineBreak", "splitBlock", "setFontFamily", "setFontSize", "increaseFontSize", "decreaseFontSize", "changeTextCase", "clearFormatting", "setColor", "setHighlight", "setTextShading", "setStyleId", "setCharacterStyleId", "setUnderlineStyle", "documentStyles", "print", "copy", "newDocument", "exportDocx", "exportPdf", "importDocument", "insertImage", "editImageAlt", "insertImageCaption", "imageContext", "imageWidthCm", "imageHeightCm", "imageCrop", "imageCropAspect", "imageBorder", "outdent", "indent", "togglePageBreakBefore", "toggleKeepWithNext", "setSpacingAfter", "setSpacingBefore", "setIndentLeft", "setIndentRight", "setIndentFirstLine", "setIndentHanging", "setSpecialIndent", "setParagraphShading", "applyParagraphBorders", "setLineHeight", "setListFormat", "setListStartAt", "toggleOrientation", "setOrientation", "sectionBreakNextPage", "sectionBreakContinuous", "setPageMargins", "tableContext", "tableMerge", "tableSplit", "tableInsertColumnBefore", "tableInsertColumnAfter", "tableDeleteColumn", "tableInsertRowBefore", "tableInsertRowAfter", "tableDeleteRow", "tableCellShading", "tableCellBorders", "tableCellNoBorders", "tableApplyBorderPreset", "toggleTableDrawBorders", "toggleTableGridlines", "tableWidth100", "tableAlignLeft", "tableAlignCenter", "tableAlignRight", "tableSetCellWidth", "tableToggleHeaderRow", "tableToggleTotalRow", "tableToggleBandedRows", "tableToggleFirstColumn", "tableToggleLastColumn", "tableToggleBandedColumns", "setTableStyle", "tableToggleAutoFit", "tableDistributeColumns", "tableDistributeRows", "insertTable", "insertShape", "openSymbolDialog"];
|
|
2
2
|
export type OasisBuiltinCommand = (typeof OASIS_BUILTIN_COMMANDS)[number];
|
|
@@ -20,6 +20,11 @@ export interface SetSpecialIndentPayload {
|
|
|
20
20
|
kind: "none" | "firstLine" | "hanging";
|
|
21
21
|
value?: number | null;
|
|
22
22
|
}
|
|
23
|
+
/** Payload for inserting text with an optional character font override. */
|
|
24
|
+
export interface InsertTextPayload {
|
|
25
|
+
text: string;
|
|
26
|
+
fontFamily?: string | null;
|
|
27
|
+
}
|
|
23
28
|
/**
|
|
24
29
|
* Maps every built-in command name to its expected payload type.
|
|
25
30
|
* Commands with `undefined` payload accept no arguments.
|
|
@@ -27,6 +32,7 @@ export interface SetSpecialIndentPayload {
|
|
|
27
32
|
export interface OasisCommandPayloads {
|
|
28
33
|
selectAll: undefined;
|
|
29
34
|
insertFootnote: undefined;
|
|
35
|
+
insertText: string | InsertTextPayload;
|
|
30
36
|
pastePlainText: undefined;
|
|
31
37
|
bold: undefined;
|
|
32
38
|
italic: undefined;
|
|
@@ -70,6 +76,7 @@ export interface OasisCommandPayloads {
|
|
|
70
76
|
documentStyles: undefined;
|
|
71
77
|
print: undefined;
|
|
72
78
|
copy: undefined;
|
|
79
|
+
newDocument: undefined;
|
|
73
80
|
exportDocx: undefined;
|
|
74
81
|
exportPdf: undefined;
|
|
75
82
|
importDocument: undefined;
|
|
@@ -133,6 +140,7 @@ export interface OasisCommandPayloads {
|
|
|
133
140
|
tableDistributeColumns: undefined;
|
|
134
141
|
tableDistributeRows: undefined;
|
|
135
142
|
insertTable: InsertTablePayload;
|
|
143
|
+
openSymbolDialog: undefined;
|
|
136
144
|
}
|
|
137
145
|
/** Maps commands to their typed return values. Commands not listed return `unknown`. */
|
|
138
146
|
export interface OasisCommandResults {
|
|
@@ -2,10 +2,13 @@ export declare const en: {
|
|
|
2
2
|
"toolbar.file": string;
|
|
3
3
|
"toolbar.export": string;
|
|
4
4
|
"toolbar.import": string;
|
|
5
|
+
"toolbar.newDocument": string;
|
|
6
|
+
"toolbar.importDocx": string;
|
|
5
7
|
"toolbar.undo": string;
|
|
6
8
|
"toolbar.redo": string;
|
|
7
9
|
"toolbar.insert": string;
|
|
8
10
|
"toolbar.image": string;
|
|
11
|
+
"toolbar.symbols": string;
|
|
9
12
|
"toolbar.imageCaption": string;
|
|
10
13
|
"toolbar.shapes": string;
|
|
11
14
|
"toolbar.shape.rect": string;
|
|
@@ -63,6 +66,17 @@ export declare const en: {
|
|
|
63
66
|
"toolbar.formatUpperRoman": string;
|
|
64
67
|
"toolbar.formatBullet": string;
|
|
65
68
|
"toolbar.moreTools": string;
|
|
69
|
+
"symbols.menu.equation": string;
|
|
70
|
+
"symbols.menu.symbol": string;
|
|
71
|
+
"symbols.menu.number": string;
|
|
72
|
+
"symbols.more": string;
|
|
73
|
+
"symbols.category.all": string;
|
|
74
|
+
"symbols.category.common": string;
|
|
75
|
+
"symbols.category.math": string;
|
|
76
|
+
"symbols.category.arrows": string;
|
|
77
|
+
"symbols.category.currency": string;
|
|
78
|
+
"symbols.category.greek": string;
|
|
79
|
+
"symbols.category.numbers": string;
|
|
66
80
|
"toolbar.style": string;
|
|
67
81
|
"toolbar.fontFamily": string;
|
|
68
82
|
"toolbar.font": string;
|
|
@@ -324,10 +338,22 @@ export declare const en: {
|
|
|
324
338
|
"layoutOptions.fixPosition": string;
|
|
325
339
|
"layoutOptions.behindHint": string;
|
|
326
340
|
"generic.close": string;
|
|
341
|
+
"generic.back": string;
|
|
327
342
|
"generic.cancel": string;
|
|
328
343
|
"generic.save": string;
|
|
329
344
|
"generic.apply": string;
|
|
330
345
|
"generic.ok": string;
|
|
346
|
+
"dialog.symbol.title": string;
|
|
347
|
+
"dialog.symbol.insert": string;
|
|
348
|
+
"dialog.symbol.font": string;
|
|
349
|
+
"dialog.symbol.subset": string;
|
|
350
|
+
"dialog.symbol.preview": string;
|
|
351
|
+
"dialog.symbol.recent": string;
|
|
352
|
+
"dialog.symbol.code": string;
|
|
353
|
+
"dialog.symbol.doubleClickHelp": string;
|
|
354
|
+
"dialog.newDocument.title": string;
|
|
355
|
+
"dialog.newDocument.message": string;
|
|
356
|
+
"dialog.newDocument.discard": string;
|
|
331
357
|
"title.untitled": string;
|
|
332
358
|
"dialog.imageAlt.title": string;
|
|
333
359
|
"dialog.imageAlt.label": string;
|
|
@@ -2,10 +2,13 @@ export declare const ptBR: {
|
|
|
2
2
|
"toolbar.file": string;
|
|
3
3
|
"toolbar.export": string;
|
|
4
4
|
"toolbar.import": string;
|
|
5
|
+
"toolbar.newDocument": string;
|
|
6
|
+
"toolbar.importDocx": string;
|
|
5
7
|
"toolbar.undo": string;
|
|
6
8
|
"toolbar.redo": string;
|
|
7
9
|
"toolbar.insert": string;
|
|
8
10
|
"toolbar.image": string;
|
|
11
|
+
"toolbar.symbols": string;
|
|
9
12
|
"toolbar.imageCaption": string;
|
|
10
13
|
"toolbar.shapes": string;
|
|
11
14
|
"toolbar.shape.rect": string;
|
|
@@ -63,6 +66,17 @@ export declare const ptBR: {
|
|
|
63
66
|
"toolbar.formatUpperRoman": string;
|
|
64
67
|
"toolbar.formatBullet": string;
|
|
65
68
|
"toolbar.moreTools": string;
|
|
69
|
+
"symbols.menu.equation": string;
|
|
70
|
+
"symbols.menu.symbol": string;
|
|
71
|
+
"symbols.menu.number": string;
|
|
72
|
+
"symbols.more": string;
|
|
73
|
+
"symbols.category.all": string;
|
|
74
|
+
"symbols.category.common": string;
|
|
75
|
+
"symbols.category.math": string;
|
|
76
|
+
"symbols.category.arrows": string;
|
|
77
|
+
"symbols.category.currency": string;
|
|
78
|
+
"symbols.category.greek": string;
|
|
79
|
+
"symbols.category.numbers": string;
|
|
66
80
|
"toolbar.style": string;
|
|
67
81
|
"toolbar.fontFamily": string;
|
|
68
82
|
"toolbar.font": string;
|
|
@@ -324,10 +338,22 @@ export declare const ptBR: {
|
|
|
324
338
|
"layoutOptions.fixPosition": string;
|
|
325
339
|
"layoutOptions.behindHint": string;
|
|
326
340
|
"generic.close": string;
|
|
341
|
+
"generic.back": string;
|
|
327
342
|
"generic.cancel": string;
|
|
328
343
|
"generic.save": string;
|
|
329
344
|
"generic.apply": string;
|
|
330
345
|
"generic.ok": string;
|
|
346
|
+
"dialog.symbol.title": string;
|
|
347
|
+
"dialog.symbol.insert": string;
|
|
348
|
+
"dialog.symbol.font": string;
|
|
349
|
+
"dialog.symbol.subset": string;
|
|
350
|
+
"dialog.symbol.preview": string;
|
|
351
|
+
"dialog.symbol.recent": string;
|
|
352
|
+
"dialog.symbol.code": string;
|
|
353
|
+
"dialog.symbol.doubleClickHelp": string;
|
|
354
|
+
"dialog.newDocument.title": string;
|
|
355
|
+
"dialog.newDocument.message": string;
|
|
356
|
+
"dialog.newDocument.discard": string;
|
|
331
357
|
"title.untitled": string;
|
|
332
358
|
"dialog.imageAlt.title": string;
|
|
333
359
|
"dialog.imageAlt.label": string;
|