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.
- package/dist/{OasisEditorApp-DnKmTPKR.js → OasisEditorApp-lNYRC99y.js} +343 -285
- package/dist/app/controllers/documentIO/ImageInsertionService.d.ts +2 -1
- package/dist/app/controllers/tableOpsSelectionAwareCommands.d.ts +2 -1
- package/dist/app/controllers/useEditorDocumentIO.d.ts +2 -1
- package/dist/app/controllers/useEditorFindReplace.d.ts +2 -1
- package/dist/app/controllers/useEditorHistoryActions.d.ts +2 -1
- package/dist/app/controllers/useEditorImageOperations.d.ts +6 -2
- package/dist/app/controllers/useEditorTableOperations.d.ts +2 -1
- package/dist/app/controllers/useEditorTextDrag.d.ts +2 -1
- package/dist/app/controllers/useEditorTextInput.d.ts +2 -1
- package/dist/assets/{importDocxWorker-CmygfpkG.js → importDocxWorker-8fivvDCX.js} +1 -1
- package/dist/core/model/index.d.ts +3 -3
- package/dist/core/model/runKind.d.ts +33 -28
- package/dist/core/model/types/nodes.d.ts +63 -28
- package/dist/core/transactionMergeKeys.d.ts +35 -0
- package/dist/{index-BNz5Hsd-.js → index-9_ibx79n.js} +375 -312
- package/dist/oasis-editor.js +54 -54
- package/dist/oasis-editor.umd.cjs +4 -4
- package/dist/ui/app/createEditorChrome.d.ts +2 -1
- package/dist/ui/app/createEditorEssentialsPlugin.d.ts +2 -1
- package/dist/ui/app/createEditorInteractionRuntime.d.ts +4 -1
- package/dist/ui/app/createEditorLayoutOptionsController.d.ts +2 -1
- package/dist/ui/app/createEditorTableContextMenuActions.d.ts +2 -1
- package/dist/ui/app/useEditorContextMenuClipboard.d.ts +2 -1
- package/dist/ui/app/useFontDialogBridge.d.ts +2 -1
- package/dist/ui/app/useParagraphDialogBridge.d.ts +2 -1
- package/dist/ui/app/useTablePropertiesDialogBridge.d.ts +2 -1
- package/dist/ui/editorHistory.d.ts +3 -2
- 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?:
|
|
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?:
|
|
36
|
+
mergeKey?: MergeKey;
|
|
36
37
|
}) => void;
|
|
37
38
|
findReplace: {
|
|
38
39
|
setIsOpen: (open: boolean) => void;
|
|
@@ -93,7 +93,10 @@ export declare function createEditorInteractionRuntime(deps: EditorInteractionRu
|
|
|
93
93
|
dropTargetPos: import('solid-js').Accessor<EditorPosition | null>;
|
|
94
94
|
getSelectedImageInfo: (current: EditorState) => {
|
|
95
95
|
paragraph: import('../../core/model.js').EditorParagraphNode;
|
|
96
|
-
run: import('../../core/model.js').
|
|
96
|
+
run: import('../../core/model.js').EditorRunBase & {
|
|
97
|
+
kind: "image";
|
|
98
|
+
image: import('../../core/model.js').EditorImageRunData;
|
|
99
|
+
};
|
|
97
100
|
startOffset: number;
|
|
98
101
|
width: number;
|
|
99
102
|
height: number;
|
|
@@ -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?:
|
|
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:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
5
|
+
mergeKey?: MergeKey;
|
|
5
6
|
}
|
|
6
7
|
export interface EditorTransactionMeta {
|
|
7
|
-
mergeKey:
|
|
8
|
+
mergeKey: MergeKey;
|
|
8
9
|
timestamp: number;
|
|
9
10
|
}
|
|
10
11
|
export interface EditorHistoryState {
|