oasis-editor 0.0.227 → 0.0.229

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 (104) hide show
  1. package/dist/OasisEditorApp-Dkk2-Ed0.js +1 -0
  2. package/dist/app/controllers/EditorCommandsController.d.ts +6 -1
  3. package/dist/app/services/FindReplaceService.d.ts +6 -18
  4. package/dist/assets/{importDocxWorker-D9et8X0W.js → importDocxWorker-dPLECw5a.js} +197 -181
  5. package/dist/core/commands/builtinCommands.d.ts +1 -1
  6. package/dist/core/commands/dropCap.d.ts +23 -0
  7. package/dist/core/commands/fieldDate.d.ts +6 -0
  8. package/dist/core/commands/findReplace.d.ts +25 -0
  9. package/dist/core/commands/floatingAlignCommands.d.ts +98 -0
  10. package/dist/core/commands/floatingReorderCommands.d.ts +17 -0
  11. package/dist/core/commands/headerFooter.d.ts +17 -0
  12. package/dist/core/commands/horizontalLine.d.ts +3 -0
  13. package/dist/core/commands/hyphenation.d.ts +27 -0
  14. package/dist/core/commands/image.d.ts +45 -0
  15. package/dist/core/commands/noteOptions.d.ts +22 -0
  16. package/dist/core/commands/outlineStep.d.ts +13 -0
  17. package/dist/core/commands/pageSetup.d.ts +41 -1
  18. package/dist/core/commands/paragraphAdjustRightInd.d.ts +8 -0
  19. package/dist/core/commands/paragraphAlign.d.ts +10 -0
  20. package/dist/core/commands/paragraphAutoSpaceDE.d.ts +8 -0
  21. package/dist/core/commands/paragraphAutoSpaceDN.d.ts +8 -0
  22. package/dist/core/commands/paragraphBidi.d.ts +7 -0
  23. package/dist/core/commands/paragraphContextualSpacing.d.ts +7 -0
  24. package/dist/core/commands/paragraphKeepLinesTogether.d.ts +7 -0
  25. package/dist/core/commands/paragraphKeepWithNext.d.ts +7 -0
  26. package/dist/core/commands/paragraphKinsoku.d.ts +8 -0
  27. package/dist/core/commands/paragraphLineRule.d.ts +10 -0
  28. package/dist/core/commands/paragraphListLevel.d.ts +8 -0
  29. package/dist/core/commands/paragraphMirrorIndents.d.ts +7 -0
  30. package/dist/core/commands/paragraphMove.d.ts +8 -0
  31. package/dist/core/commands/paragraphOutlineLevel.d.ts +11 -0
  32. package/dist/core/commands/paragraphOverflowPunct.d.ts +8 -0
  33. package/dist/core/commands/paragraphPageBreakBefore.d.ts +7 -0
  34. package/dist/core/commands/paragraphReset.d.ts +9 -0
  35. package/dist/core/commands/paragraphSort.d.ts +7 -0
  36. package/dist/core/commands/paragraphSuppressAutoHyphens.d.ts +7 -0
  37. package/dist/core/commands/paragraphSuppressLineNumbers.d.ts +7 -0
  38. package/dist/core/commands/paragraphTabs.d.ts +28 -0
  39. package/dist/core/commands/paragraphTextDirection.d.ts +9 -0
  40. package/dist/core/commands/paragraphTopLinePunct.d.ts +7 -0
  41. package/dist/core/commands/paragraphWidowControl.d.ts +8 -0
  42. package/dist/core/commands/paragraphWordWrap.d.ts +8 -0
  43. package/dist/core/commands/publicCommandTypes.d.ts +189 -3
  44. package/dist/core/commands/selectUnit.d.ts +43 -0
  45. package/dist/core/commands/shape.d.ts +4 -0
  46. package/dist/core/commands/shapeFillCommands.d.ts +31 -0
  47. package/dist/core/commands/specialChar.d.ts +18 -0
  48. package/dist/core/commands/table/tableAlignmentCommands.d.ts +10 -0
  49. package/dist/core/commands/table/tableAutoFitCommands.d.ts +16 -0
  50. package/dist/core/commands/table/tableCellFitTextCommands.d.ts +7 -0
  51. package/dist/core/commands/table/tableCellMarginsCommands.d.ts +20 -0
  52. package/dist/core/commands/table/tableCellNoWrapCommands.d.ts +7 -0
  53. package/dist/core/commands/table/tableCellSpacingCommands.d.ts +9 -0
  54. package/dist/core/commands/table/tableColumnCommands.d.ts +10 -0
  55. package/dist/core/commands/table/tableDeleteCellsCommands.d.ts +16 -0
  56. package/dist/core/commands/table/tableDeleteCommands.d.ts +11 -0
  57. package/dist/core/commands/table/tableFormulaCommands.d.ts +34 -0
  58. package/dist/core/commands/table/tableIndentCommands.d.ts +9 -0
  59. package/dist/core/commands/table/tableRepeatHeaderCommands.d.ts +15 -0
  60. package/dist/core/commands/table/tableRowBreakAcrossPagesCommands.d.ts +9 -0
  61. package/dist/core/commands/table/tableRowCommands.d.ts +2 -0
  62. package/dist/core/commands/table/tableRowHeightCommands.d.ts +21 -0
  63. package/dist/core/commands/table/tableSelectionCommands.d.ts +18 -0
  64. package/dist/core/commands/table/tableSortCommands.d.ts +16 -0
  65. package/dist/core/commands/table/tableStyleCommands.d.ts +9 -0
  66. package/dist/core/commands/table.d.ts +15 -0
  67. package/dist/core/commands/text.d.ts +1 -1
  68. package/dist/core/commands/textBoxBodyCommands.d.ts +43 -0
  69. package/dist/core/commands/textFormatting.d.ts +15 -0
  70. package/dist/core/commands/zoneBlocks.d.ts +10 -0
  71. package/dist/core/engine.d.ts +3 -0
  72. package/dist/core/model/types/primitives.d.ts +10 -0
  73. package/dist/core/plugin.d.ts +4 -1
  74. package/dist/core/pluginUiTypes.d.ts +4 -1
  75. package/dist/core/textStyle/textStyleKeys.d.ts +3 -3
  76. package/dist/core/transactionMergeKeys.d.ts +34 -0
  77. package/dist/defaultToolbar-6IjbWowg.js +1 -0
  78. package/dist/export/docx/docxTypes.d.ts +1 -0
  79. package/dist/i18n/locales/en.d.ts +20 -0
  80. package/dist/i18n/locales/pt-BR.d.ts +20 -0
  81. package/dist/index.d.ts +1 -1
  82. package/dist/layoutProjection/floatingObjects.d.ts +3 -0
  83. package/dist/oasis-editor.css +1 -1
  84. package/dist/oasis-editor.js +1 -1
  85. package/dist/oasis-editor.umd.cjs +1 -1
  86. package/dist/plugins/internal/essentialsCapabilities.d.ts +310 -2
  87. package/dist/plugins/internal/essentialsCommandBuilders.d.ts +2 -0
  88. package/dist/plugins/internal/essentialsCommandGroups/table.d.ts +3 -2
  89. package/dist/ui/app/createAppCommandsController.d.ts +12 -2
  90. package/dist/ui/app/createEditorCommandRuntime.d.ts +11 -1
  91. package/dist/ui/app/essentials/types.d.ts +2 -0
  92. package/dist/ui/components/Toolbar/marginPresets.d.ts +5 -9
  93. package/dist/ui/components/Toolbar/primitives/SplitButton.d.ts +1 -0
  94. package/dist/ui/components/Toolbar/primitives/popoverBranch.d.ts +7 -0
  95. package/dist/ui/components/Toolbar/primitives/useDismiss.d.ts +3 -1
  96. package/dist/ui/components/Toolbar/ribbon/RibbonGroup.d.ts +2 -1
  97. package/dist/ui/components/Toolbar/ribbon/measureRibbonGroups.d.ts +8 -0
  98. package/dist/ui/components/Toolbar/ribbon/ribbonModel.d.ts +14 -1
  99. package/dist/ui/components/Toolbar/schema/items.d.ts +13 -4
  100. package/dist/ui/toolbarStyleState.d.ts +22 -3
  101. package/dist/ui/utils/IconManager.d.ts +3 -1
  102. package/package.json +7 -2
  103. package/dist/OasisEditorApp-DyqrRigM.js +0 -1
  104. package/dist/defaultToolbar-Dq0iVC5E.js +0 -1
@@ -18,11 +18,12 @@ export interface EditorCommandsControllerDeps extends EditorTransactionPort, Foc
18
18
  export declare function createEditorCommandsController(deps: EditorCommandsControllerDeps): ReturnType<typeof createEditorCommandsControllerImpl>;
19
19
  declare function createEditorCommandsControllerImpl(deps: EditorCommandsControllerDeps): {
20
20
  applyBooleanStyleCommand: (key: BooleanStyleKey) => void;
21
+ applyToggleCharacterBorderCommand: () => void;
21
22
  applyValueStyleCommand: <K extends "styleId" | "fontFamily" | "fontSize" | "color" | "highlight" | "shading" | "language" | "textEffect" | "link" | "underlineStyle">(key: K, value: EditorTextStyle[K] | null) => void;
22
23
  applyChangeTextCaseCommand: (mode: TextCaseMode) => void;
23
24
  applyClearFormattingCommand: () => void;
24
25
  applyParagraphStyleCommand: <K extends ParagraphStyleKey>(key: K, value: EditorParagraphStyle[K] | null) => void;
25
- toggleParagraphFlagCommand: (key: "pageBreakBefore" | "keepWithNext") => void;
26
+ toggleParagraphFlagCommand: (key: "pageBreakBefore" | "keepWithNext" | "keepLinesTogether" | "widowControl") => void;
26
27
  applyParagraphListCommand: (kind: NonNullable<EditorParagraphListStyle["kind"]>) => void;
27
28
  handleListFormatChange: (format: EditorParagraphListStyle["format"]) => void;
28
29
  handleListStartAtChange: (startAt: number | null) => void;
@@ -54,6 +55,10 @@ declare function createEditorCommandsControllerImpl(deps: EditorCommandsControll
54
55
  applyImageCropFitCommand: () => void;
55
56
  resetImageCropCommand: () => void;
56
57
  applyImageBorderCommand: (patch: ImageBorderPatch) => void;
58
+ flipImageCommand: (axis: "horizontal" | "vertical") => void;
59
+ rotateImageCommand: (direction: "left" | "right") => void;
60
+ applyImageTransparencyCommand: (transparency: number | null) => void;
61
+ resetImageCommand: () => void;
57
62
  handleListTab: (direction: "indent" | "outdent") => boolean;
58
63
  handleListEnter: () => boolean;
59
64
  handleListBoundaryBackspace: (event: KeyboardEvent & {
@@ -1,20 +1,8 @@
1
- import { EditorDocument, EditorPosition } from '../../core/model.js';
2
- /** Describes a single match found by the find service. */
3
- export interface FindReplaceMatch {
4
- anchor: EditorPosition;
5
- focus: EditorPosition;
6
- paragraphIndex: number;
7
- }
8
- /** Options that control how find searches operate. */
9
- export interface FindOptions {
10
- matchCase?: boolean;
11
- wholeWord?: boolean;
12
- }
13
1
  /**
14
- * Searches a document for the given term and returns all matches.
15
- * @param doc - The document to search.
16
- * @param searchTerm - The text to search for.
17
- * @param options - Search options (case sensitivity, whole word).
18
- * @returns An array of match descriptors.
2
+ * Find-and-replace service.
3
+ *
4
+ * The search engine and the document mutation live in the core
5
+ * `findReplace` command module; this file is a thin re-export so existing
6
+ * consumers keep their import path.
19
7
  */
20
- export declare function findMatchesInDocument(doc: EditorDocument, searchTerm: string, options?: FindOptions): FindReplaceMatch[];
8
+ export { findMatchesInDocument, replaceAllInDocument, type FindOptions, type FindReplaceMatch, } from '../../core/commands/findReplace.js';