oasis-editor 0.0.121 → 0.0.123

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.
Files changed (71) hide show
  1. package/dist/{OasisEditorApp-XzK_1rLE.js → OasisEditorApp-Dwc5ee9G.js} +1993 -918
  2. package/dist/adapters/vue.d.ts +3 -3
  3. package/dist/app/controllers/EditorCommandsController.d.ts +3 -1
  4. package/dist/app/controllers/tableOpsCellSpanCommands.d.ts +2 -1
  5. package/dist/app/controllers/tableOpsGuards.d.ts +2 -1
  6. package/dist/app/controllers/tableOpsRowColumnCommands.d.ts +2 -1
  7. package/dist/app/controllers/tableOpsSelectionAwareCommands.d.ts +2 -1
  8. package/dist/app/controllers/tableOpsSelectionRanges.d.ts +2 -1
  9. package/dist/app/controllers/useEditorClipboard.d.ts +3 -1
  10. package/dist/app/controllers/useEditorDocumentIO.d.ts +2 -1
  11. package/dist/app/controllers/useEditorHistoryActions.d.ts +3 -1
  12. package/dist/app/controllers/useEditorImageOperations.d.ts +7 -7
  13. package/dist/app/controllers/useEditorKeyboard.d.ts +2 -1
  14. package/dist/app/controllers/useEditorLayout.d.ts +2 -1
  15. package/dist/app/controllers/useEditorNavigation.d.ts +3 -1
  16. package/dist/app/controllers/useEditorRevision.d.ts +3 -1
  17. package/dist/app/controllers/useEditorStyle.d.ts +2 -1
  18. package/dist/app/controllers/useEditorSurfaceEvents.d.ts +3 -1
  19. package/dist/app/controllers/useEditorTableDrag.d.ts +7 -0
  20. package/dist/app/controllers/useEditorTableOperations.d.ts +3 -1
  21. package/dist/app/controllers/useEditorTextBoxOperations.d.ts +3 -1
  22. package/dist/app/controllers/useEditorTextDrag.d.ts +3 -1
  23. package/dist/app/controllers/useEditorTextInput.d.ts +3 -1
  24. package/dist/assets/{importDocxWorker-nIS-zjkj.js → importDocxWorker-A73eR_fM.js} +1 -1
  25. package/dist/core/model/types/styles.d.ts +2 -0
  26. package/dist/core/textStyle/textStyleKeys.d.ts +1 -1
  27. package/dist/i18n/locales/en.d.ts +42 -0
  28. package/dist/i18n/locales/pt-BR.d.ts +42 -0
  29. package/dist/{index-DF_Uf74V.js → index-YMlNF1Ya.js} +757 -466
  30. package/dist/oasis-editor.css +1 -1
  31. package/dist/oasis-editor.js +71 -71
  32. package/dist/oasis-editor.umd.cjs +4 -4
  33. package/dist/ui/OasisEditorContainer.d.ts +2 -1
  34. package/dist/ui/app/EditorDialogsLayer.d.ts +1 -0
  35. package/dist/ui/app/createAppCommandsController.d.ts +2 -1
  36. package/dist/ui/app/createEditorChrome.d.ts +3 -1
  37. package/dist/ui/app/createEditorCommandRuntime.d.ts +2 -1
  38. package/dist/ui/app/createEditorDocumentRuntime.d.ts +2 -1
  39. package/dist/ui/app/createEditorInteractionRuntime.d.ts +3 -5
  40. package/dist/ui/app/useEditorAppState.d.ts +2 -1
  41. package/dist/ui/app/useEditorContextMenuClipboard.d.ts +2 -1
  42. package/dist/ui/app/useEditorDialogs.d.ts +18 -16
  43. package/dist/ui/app/useEditorFocus.d.ts +7 -4
  44. package/dist/ui/app/useEditorFontOptions.d.ts +3 -1
  45. package/dist/ui/app/useEditorTransactions.d.ts +3 -1
  46. package/dist/ui/app/useEditorUiOptions.d.ts +10 -7
  47. package/dist/ui/app/useFontDialogBridge.d.ts +5 -4
  48. package/dist/ui/app/useParagraphDialogBridge.d.ts +6 -4
  49. package/dist/ui/app/useTablePropertiesDialogBridge.d.ts +6 -5
  50. package/dist/ui/canvas/CanvasTableLayout.d.ts +2 -10
  51. package/dist/ui/canvas/canvasPageRenderer.d.ts +8 -7
  52. package/dist/ui/components/CaretOverlay.d.ts +3 -1
  53. package/dist/ui/components/Dialogs/FontDialog.d.ts +2 -1
  54. package/dist/ui/components/Dialogs/ImageAltDialog.d.ts +3 -1
  55. package/dist/ui/components/Dialogs/ImageCaptionDialog.d.ts +3 -1
  56. package/dist/ui/components/Dialogs/LinkDialog.d.ts +3 -1
  57. package/dist/ui/components/Dialogs/ParagraphDialog.d.ts +23 -1
  58. package/dist/ui/components/Dialogs/TabStopsDialog.d.ts +10 -0
  59. package/dist/ui/components/Dialogs/TablePropertiesDialog.d.ts +2 -1
  60. package/dist/ui/components/Dialogs/font-dialog/AdvancedFontTab.d.ts +2 -1
  61. package/dist/ui/components/Dialogs/font-dialog/FontPreview.d.ts +3 -1
  62. package/dist/ui/components/Dialogs/table-properties/AltTextTabPanel.d.ts +2 -1
  63. package/dist/ui/components/Dialogs/table-properties/ColumnTabPanel.d.ts +2 -1
  64. package/dist/ui/components/Dialogs/table-properties/RowTabPanel.d.ts +2 -1
  65. package/dist/ui/components/PageBreak.d.ts +3 -1
  66. package/dist/ui/components/RevisionOverlay.d.ts +2 -1
  67. package/dist/ui/components/Toolbar/groups/MetricGroup.d.ts +2 -1
  68. package/dist/ui/shells/BalloonShell.d.ts +2 -1
  69. package/dist/ui/toolbarStyleState.d.ts +9 -2
  70. package/dist/vue.d.ts +3 -3
  71. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import { EditorState } from '../core/model.js';
1
+ import { EditorState, EditorTabStop } from '../core/model.js';
2
2
 
3
3
  export type BooleanStyleKey = "bold" | "italic" | "underline" | "strike" | "doubleStrike" | "superscript" | "subscript" | "smallCaps" | "allCaps" | "hidden" | "noProof" | "webHidden" | "specVanish" | "contextualAlternates";
4
4
  export type ValueStyleKey = "styleId" | "fontFamily" | "fontSize" | "color" | "highlight" | "shading" | "language" | "textEffect" | "link" | "underlineStyle" | "underlineColor" | "characterScale" | "characterSpacing" | "baselineShift" | "kerningThreshold" | "ligatures" | "numberSpacing" | "numberForm" | "stylisticSet";
5
- export type ParagraphStyleKey = "styleId" | "align" | "spacingBefore" | "spacingAfter" | "lineHeight" | "indentLeft" | "indentRight" | "indentFirstLine" | "indentHanging" | "shading" | "tabs" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "pageBreakBefore" | "keepWithNext";
5
+ export type ParagraphStyleKey = "styleId" | "align" | "spacingBefore" | "spacingAfter" | "lineHeight" | "indentLeft" | "indentRight" | "indentFirstLine" | "indentHanging" | "lineRule" | "outlineLevel" | "shading" | "tabs" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "pageBreakBefore" | "keepWithNext" | "keepLinesTogether" | "widowControl";
6
6
  export interface ToolbarStyleState {
7
7
  bold: boolean;
8
8
  italic: boolean;
@@ -54,7 +54,14 @@ export interface ToolbarStyleState {
54
54
  borderSideBottom: boolean;
55
55
  borderSideLeft: boolean;
56
56
  listKind: string;
57
+ tabs: EditorTabStop[];
58
+ lineRule: string;
59
+ contextualSpacing: boolean;
60
+ outlineLevel: string;
61
+ mirrorIndents: boolean;
57
62
  pageBreakBefore: boolean;
58
63
  keepWithNext: boolean;
64
+ keepLinesTogether: boolean;
65
+ widowControl: boolean;
59
66
  }
60
67
  export declare function getToolbarStyleState(state: EditorState): ToolbarStyleState;
package/dist/vue.d.ts CHANGED
@@ -4,17 +4,17 @@ import { OasisEditorAppProps, OasisEditorClient } from '../index.ts';
4
4
  export declare const OasisEditor: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
5
  config: {
6
6
  type: () => OasisEditorAppProps;
7
- default: () => {};
7
+ default: () => Record<string, never>;
8
8
  };
9
9
  class: StringConstructor;
10
10
  style: () => string | Record<string, unknown>;
11
11
  onClient: () => (client: OasisEditorClient) => void;
12
12
  }>, () => VNode<RendererNode, RendererElement, {
13
- [key: string]: any;
13
+ [key: string]: unknown;
14
14
  }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
15
15
  config: {
16
16
  type: () => OasisEditorAppProps;
17
- default: () => {};
17
+ default: () => Record<string, never>;
18
18
  };
19
19
  class: StringConstructor;
20
20
  style: () => string | Record<string, unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.121",
3
+ "version": "0.0.123",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",