oasis-editor 0.0.82 → 0.0.84

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 (29) hide show
  1. package/dist/{OasisEditorApp-DnKmTPKR.js → OasisEditorApp-lNYRC99y.js} +343 -285
  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 +6 -2
  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-CmygfpkG.js → importDocxWorker-8fivvDCX.js} +1 -1
  12. package/dist/core/model/index.d.ts +3 -3
  13. package/dist/core/model/runKind.d.ts +33 -28
  14. package/dist/core/model/types/nodes.d.ts +63 -28
  15. package/dist/core/transactionMergeKeys.d.ts +35 -0
  16. package/dist/{index-BNz5Hsd-.js → index-9_ibx79n.js} +375 -312
  17. package/dist/oasis-editor.js +54 -54
  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/createEditorInteractionRuntime.d.ts +4 -1
  22. package/dist/ui/app/createEditorLayoutOptionsController.d.ts +2 -1
  23. package/dist/ui/app/createEditorTableContextMenuActions.d.ts +2 -1
  24. package/dist/ui/app/useEditorContextMenuClipboard.d.ts +2 -1
  25. package/dist/ui/app/useFontDialogBridge.d.ts +2 -1
  26. package/dist/ui/app/useParagraphDialogBridge.d.ts +2 -1
  27. package/dist/ui/app/useTablePropertiesDialogBridge.d.ts +2 -1
  28. package/dist/ui/editorHistory.d.ts +3 -2
  29. package/package.json +1 -1
@@ -1,10 +1,11 @@
1
+ import { MergeKey } from '../../../core/transactionMergeKeys.js';
1
2
  import { EditorPosition, EditorState } from '../../../core/model.js';
2
3
  import { EditorLogger } from '../../../utils/logger.js';
3
4
 
4
5
  export interface ImageInsertionServiceDeps {
5
6
  state: () => EditorState;
6
7
  applyTransactionalState: (producer: (current: EditorState) => EditorState, options?: {
7
- mergeKey?: string;
8
+ mergeKey?: MergeKey;
8
9
  }) => void;
9
10
  surfaceRef: () => HTMLDivElement | null;
10
11
  logger: EditorLogger;
@@ -1,10 +1,11 @@
1
+ import { MergeKey } from '../../core/transactionMergeKeys.js';
1
2
  import { EditorBlockNode, EditorEditingZone, EditorState } from '../../core/model.js';
2
3
  import { EditorLogger } from '../../utils/logger.js';
3
4
  import { SelectedTableCells } from './tableOpsSelectionRanges.js';
4
5
 
5
6
  interface TableSelectionAwareCommandsDeps {
6
7
  applyTransactionalState: (producer: (current: EditorState) => EditorState, options?: {
7
- mergeKey?: string;
8
+ mergeKey?: MergeKey;
8
9
  }) => void;
9
10
  applySelectionToStatePreservingStructure: (current: EditorState, nextSelection: EditorState["selection"]) => EditorState;
10
11
  getTargetBlocks: (state: EditorState, zone: EditorEditingZone) => EditorBlockNode[];
@@ -1,3 +1,4 @@
1
+ import { MergeKey } from '../../core/transactionMergeKeys.js';
1
2
  import { EditorState, EditorPosition } from '../../core/model.js';
2
3
  import { EditorLogger } from '../../utils/logger.js';
3
4
  import { ImportProgressState } from './documentIO/importProgress.js';
@@ -7,7 +8,7 @@ export interface UseEditorDocumentIOProps {
7
8
  state: () => EditorState;
8
9
  applyState: (state: EditorState) => void;
9
10
  applyTransactionalState: (producer: (current: EditorState) => EditorState, options?: {
10
- mergeKey?: string;
11
+ mergeKey?: MergeKey;
11
12
  }) => void;
12
13
  isReadOnly: () => boolean;
13
14
  surfaceRef: () => HTMLDivElement | null;
@@ -1,3 +1,4 @@
1
+ import { MergeKey } from '../../core/transactionMergeKeys.js';
1
2
  import { FindOptions, FindReplaceMatch } from '../services/FindReplaceService.js';
2
3
  import { EditorState } from '../../core/model.js';
3
4
 
@@ -21,7 +22,7 @@ export interface FindReplaceDeps {
21
22
  state: EditorState;
22
23
  applyState: (next: EditorState) => void;
23
24
  applyTransactionalState: (producer: (current: EditorState) => EditorState, options?: {
24
- mergeKey?: string;
25
+ mergeKey?: MergeKey;
25
26
  }) => void;
26
27
  focusInput: () => void;
27
28
  }
@@ -1,3 +1,4 @@
1
+ import { MergeKey } from '../../core/transactionMergeKeys.js';
1
2
  import { EditorHistoryState } from '../../ui/editorHistory.js';
2
3
  import { EditorState } from '../../core/model.js';
3
4
  import { createEditorImageOperations } from './useEditorImageOperations.js';
@@ -7,7 +8,7 @@ export interface UseEditorHistoryActionsProps {
7
8
  stateSnapshot: () => EditorState;
8
9
  applyHistoryState: (state: EditorState) => void;
9
10
  applyTransactionalState: (producer: (current: EditorState) => EditorState, options?: {
10
- mergeKey?: string;
11
+ mergeKey?: MergeKey;
11
12
  }) => void;
12
13
  focusInput: () => void;
13
14
  clearPreferredColumn: () => void;
@@ -1,3 +1,4 @@
1
+ import { MergeKey } from '../../core/transactionMergeKeys.js';
1
2
  import { EditorPosition, EditorState } from '../../core/model.js';
2
3
  import { ResizeHandleDirection } from '../../ui/resizeGeometry.js';
3
4
  import { EditorLogger } from '../../utils/logger.js';
@@ -24,7 +25,7 @@ export interface EditorImageOperationsDeps {
24
25
  resolvePositionAtSurfacePoint: (clientX: number, clientY: number) => EditorPosition | null;
25
26
  applyState: (next: EditorState) => void;
26
27
  applyTransactionalState: (producer: (current: EditorState) => EditorState, options?: {
27
- mergeKey?: string;
28
+ mergeKey?: MergeKey;
28
29
  }) => void;
29
30
  updateHistoryState: (updater: (current: EditorHistoryState) => EditorHistoryState) => void;
30
31
  focusInput: () => void;
@@ -44,7 +45,10 @@ export declare function createEditorImageOperations(deps: EditorImageOperationsD
44
45
  dropTargetPos: import('solid-js').Accessor<EditorPosition | null>;
45
46
  getSelectedImageInfo: (current: EditorState) => {
46
47
  paragraph: import('../../core/model.js').EditorParagraphNode;
47
- run: import('../../core/model.js').EditorTextRun;
48
+ run: import('../../core/model.js').EditorRunBase & {
49
+ kind: "image";
50
+ image: import('../../core/model.js').EditorImageRunData;
51
+ };
48
52
  startOffset: number;
49
53
  width: number;
50
54
  height: number;
@@ -1,9 +1,10 @@
1
+ import { MergeKey } from '../../core/transactionMergeKeys.js';
1
2
  import { EditorBlockNode, EditorState, EditorEditingZone } from '../../core/model.js';
2
3
  import { EditorLogger } from '../../utils/logger.js';
3
4
 
4
5
  export interface EditorTableOperationsDeps {
5
6
  applyTransactionalState: (producer: (current: EditorState) => EditorState, options?: {
6
- mergeKey?: string;
7
+ mergeKey?: MergeKey;
7
8
  }) => void;
8
9
  applySelectionToStatePreservingStructure: (current: EditorState, nextSelection: EditorState["selection"]) => EditorState;
9
10
  focusInput: () => void;
@@ -1,3 +1,4 @@
1
+ import { MergeKey } from '../../core/transactionMergeKeys.js';
1
2
  import { EditorPosition, EditorState } from '../../core/model.js';
2
3
  import { SurfaceHit } from '../../ui/canvas/CanvasHitTestService.js';
3
4
 
@@ -8,7 +9,7 @@ export interface EditorTextDragDeps {
8
9
  forDrag?: boolean;
9
10
  }) => SurfaceHit | null;
10
11
  applyTransactionalState: (producer: (current: EditorState) => EditorState, options?: {
11
- mergeKey?: string;
12
+ mergeKey?: MergeKey;
12
13
  }) => void;
13
14
  applyTableAwareParagraphEdit: (state: EditorState, edit: (state: EditorState) => EditorState) => EditorState;
14
15
  clearPreferredColumn: () => void;
@@ -1,3 +1,4 @@
1
+ import { MergeKey } from '../../core/transactionMergeKeys.js';
1
2
  import { EditorState, EditorTextStyle } from '../../core/model.js';
2
3
 
3
4
  export interface UseEditorTextInputProps {
@@ -10,7 +11,7 @@ export interface UseEditorTextInputProps {
10
11
  clearPreferredColumn: () => void;
11
12
  pendingCaretTextStyle: () => EditorTextStyle | undefined;
12
13
  applyTransactionalState: (producer: (current: EditorState) => EditorState, options?: {
13
- mergeKey?: string;
14
+ mergeKey?: MergeKey;
14
15
  }) => void;
15
16
  applyTableAwareParagraphEdit: (state: EditorState, edit: (temp: EditorState) => EditorState) => EditorState;
16
17
  focusInput: () => void;