oasis-editor 0.0.83 → 0.0.85

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 (28) hide show
  1. package/dist/{OasisEditorApp-BI74x5qK.js → OasisEditorApp-D_hjBUA1.js} +82 -48
  2. package/dist/app/controllers/documentIO/ImageInsertionService.d.ts +2 -1
  3. package/dist/app/controllers/tableOpsSelectionAwareCommands.d.ts +2 -1
  4. package/dist/app/controllers/useEditorDocumentIO.d.ts +2 -1
  5. package/dist/app/controllers/useEditorFindReplace.d.ts +2 -1
  6. package/dist/app/controllers/useEditorHistoryActions.d.ts +2 -1
  7. package/dist/app/controllers/useEditorImageOperations.d.ts +2 -1
  8. package/dist/app/controllers/useEditorTableOperations.d.ts +2 -1
  9. package/dist/app/controllers/useEditorTextDrag.d.ts +2 -1
  10. package/dist/app/controllers/useEditorTextInput.d.ts +2 -1
  11. package/dist/assets/{importDocxWorker-8fivvDCX.js → importDocxWorker-C94l6-O5.js} +1 -1
  12. package/dist/core/endnotes.d.ts +0 -5
  13. package/dist/core/footnotes.d.ts +0 -5
  14. package/dist/core/noteTraversal.d.ts +77 -0
  15. package/dist/core/transactionMergeKeys.d.ts +35 -0
  16. package/dist/{index-CF99ClZS.js → index-CHcJlpsx.js} +160 -245
  17. package/dist/oasis-editor.js +1 -1
  18. package/dist/oasis-editor.umd.cjs +4 -4
  19. package/dist/ui/app/createEditorChrome.d.ts +2 -1
  20. package/dist/ui/app/createEditorEssentialsPlugin.d.ts +2 -1
  21. package/dist/ui/app/createEditorLayoutOptionsController.d.ts +2 -1
  22. package/dist/ui/app/createEditorTableContextMenuActions.d.ts +2 -1
  23. package/dist/ui/app/useEditorContextMenuClipboard.d.ts +2 -1
  24. package/dist/ui/app/useFontDialogBridge.d.ts +2 -1
  25. package/dist/ui/app/useParagraphDialogBridge.d.ts +2 -1
  26. package/dist/ui/app/useTablePropertiesDialogBridge.d.ts +2 -1
  27. package/dist/ui/editorHistory.d.ts +3 -2
  28. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ import { MergeKey } from '../../core/transactionMergeKeys.js';
1
2
  import { EditorSelection, EditorState } from '../../core/model.js';
2
3
  import { ToolbarStyleState } from '../toolbarStyleState.js';
3
4
  import { TranslateFn } from '../../i18n/index.js';
@@ -31,7 +32,7 @@ export interface EditorChromeDeps {
31
32
  clearPreferredColumn: () => void;
32
33
  resetTransactionGrouping: () => void;
33
34
  applyTransactionalState: (producer: (current: EditorState) => EditorState, options?: {
34
- mergeKey?: string;
35
+ mergeKey?: MergeKey;
35
36
  }) => void;
36
37
  applyTableAwareParagraphEdit: (state: EditorState, edit: (state: EditorState) => EditorState) => EditorState;
37
38
  focusInput: () => void;
@@ -1,3 +1,4 @@
1
+ import { MergeKey } from '../../core/transactionMergeKeys.js';
1
2
  import { EditorState } from '../../core/model.js';
2
3
  import { SelectedImageRun } from '../../core/commands/image.js';
3
4
  import { createEditorCommandsController } from '../../app/controllers/EditorCommandsController.js';
@@ -32,7 +33,7 @@ interface CreateEditorEssentialsPluginOptions {
32
33
  focusInput: () => void;
33
34
  applyState: (nextState: EditorState) => void;
34
35
  applyTransactionalState: (producer: (current: EditorState) => EditorState, options?: {
35
- mergeKey?: string;
36
+ mergeKey?: MergeKey;
36
37
  }) => void;
37
38
  findReplace: {
38
39
  setIsOpen: (open: boolean) => void;
@@ -1,3 +1,4 @@
1
+ import { MergeKey } from '../../core/transactionMergeKeys.js';
1
2
  import { EditorState } from '../../core/model.js';
2
3
  import { LayoutOptionsOverlay } from '../editorUiTypes.js';
3
4
 
@@ -5,7 +6,7 @@ export interface EditorLayoutOptionsControllerDeps {
5
6
  state: () => EditorState;
6
7
  resetTransactionGrouping: () => void;
7
8
  applyTransactionalState: (transform: (current: EditorState) => EditorState, options?: {
8
- mergeKey?: string;
9
+ mergeKey?: MergeKey;
9
10
  }) => void;
10
11
  focusInput: () => void;
11
12
  }
@@ -1,3 +1,4 @@
1
+ import { MergeKey } from '../../core/transactionMergeKeys.js';
1
2
  import { EditorState } from '../../core/model.js';
2
3
  import { createEditorTableOperations } from '../../app/controllers/useEditorTableOperations.js';
3
4
  import { EditorTableContextMenuActions } from './useEditorContextMenuClipboard.js';
@@ -8,7 +9,7 @@ export interface EditorTableContextMenuActionsDeps {
8
9
  tableOps: EditorTableOperations;
9
10
  isInsideTable: () => boolean;
10
11
  openTablePropertiesDialog: (tab: "table" | "cell") => void;
11
- applyTableContextCommand: (producer: (current: EditorState) => EditorState, mergeKey: string) => void;
12
+ applyTableContextCommand: (producer: (current: EditorState) => EditorState, mergeKey: MergeKey) => void;
12
13
  }
13
14
  /**
14
15
  * Adapts the table operations + properties dialog into the flat action surface
@@ -1,3 +1,4 @@
1
+ import { MergeKey } from '../../core/transactionMergeKeys.js';
1
2
  import { EditorState } from '../../core/model.js';
2
3
  import { TranslateFn } from '../../i18n/index.js';
3
4
  import { ContextMenuItem } from '../components/ContextMenu/ContextMenu.js';
@@ -17,7 +18,7 @@ export interface EditorContextMenuClipboardDeps {
17
18
  clearPreferredColumn: () => void;
18
19
  resetTransactionGrouping: () => void;
19
20
  applyTransactionalState: (producer: (current: EditorState) => EditorState, options?: {
20
- mergeKey?: string;
21
+ mergeKey?: MergeKey;
21
22
  }) => void;
22
23
  applyTableAwareParagraphEdit: (state: EditorState, edit: (state: EditorState) => EditorState) => EditorState;
23
24
  focusInput: () => void;
@@ -1,3 +1,4 @@
1
+ import { MergeKey } from '../../core/transactionMergeKeys.js';
1
2
  import { EditorSelection, EditorState } from '../../core/model.js';
2
3
  import { FontDialogApplyValues, FontDialogInitialValues } from '../components/Dialogs/FontDialog.js';
3
4
  import { ToolbarStyleState } from '../toolbarStyleState.js';
@@ -20,7 +21,7 @@ export interface FontDialogBridgeDeps {
20
21
  clearPreferredColumn: () => void;
21
22
  resetTransactionGrouping: () => void;
22
23
  applyTransactionalState: (producer: (current: EditorState) => EditorState, options?: {
23
- mergeKey?: string;
24
+ mergeKey?: MergeKey;
24
25
  }) => void;
25
26
  focusInput: () => void;
26
27
  }
@@ -1,3 +1,4 @@
1
+ import { MergeKey } from '../../core/transactionMergeKeys.js';
1
2
  import { EditorState } from '../../core/model.js';
2
3
  import { ParagraphDialogApplyValues, ParagraphDialogInitialValues } from '../components/Dialogs/ParagraphDialog.js';
3
4
  import { ToolbarStyleState } from '../toolbarStyleState.js';
@@ -18,7 +19,7 @@ export interface ParagraphDialogBridgeDeps {
18
19
  clearPreferredColumn: () => void;
19
20
  resetTransactionGrouping: () => void;
20
21
  applyTransactionalState: (producer: (current: EditorState) => EditorState, options?: {
21
- mergeKey?: string;
22
+ mergeKey?: MergeKey;
22
23
  }) => void;
23
24
  focusInput: () => void;
24
25
  }
@@ -1,3 +1,4 @@
1
+ import { MergeKey } from '../../core/transactionMergeKeys.js';
1
2
  import { EditorState } from '../../core/model.js';
2
3
  import { TablePropertiesDialogApplyValues, TablePropertiesDialogInitialValues } from '../components/Dialogs/TablePropertiesDialog.js';
3
4
 
@@ -18,7 +19,7 @@ export interface TablePropertiesDialogBridgeDeps {
18
19
  clearPreferredColumn: () => void;
19
20
  resetTransactionGrouping: () => void;
20
21
  applyTransactionalState: (producer: (current: EditorState) => EditorState, options?: {
21
- mergeKey?: string;
22
+ mergeKey?: MergeKey;
22
23
  }) => void;
23
24
  focusInput: () => void;
24
25
  }
@@ -1,10 +1,11 @@
1
1
  import { EditorState } from '../core/model.js';
2
+ import { MergeKey } from '../core/transactionMergeKeys.js';
2
3
 
3
4
  export interface EditorTransactionOptions {
4
- mergeKey?: string;
5
+ mergeKey?: MergeKey;
5
6
  }
6
7
  export interface EditorTransactionMeta {
7
- mergeKey: string;
8
+ mergeKey: MergeKey;
8
9
  timestamp: number;
9
10
  }
10
11
  export interface EditorHistoryState {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.83",
3
+ "version": "0.0.85",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",