oasis-editor 0.0.371 → 0.0.373
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-Cka4a0T0.js +1 -0
- package/dist/app/clipboard/opaqueChartClipboard.d.ts +10 -0
- package/dist/app/controllers/opaqueTransferTransaction.d.ts +11 -0
- package/dist/app/controllers/useEditorClipboard.d.ts +5 -2
- package/dist/defaultToolbar-wD164itI.js +1 -0
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +1 -1
- package/dist/{sourcePackage-DJbJskwQ.js → sourcePackage-LObB-tI4.js} +1 -1
- package/dist/ui/app/createEditorClipboardActions.d.ts +1 -0
- package/dist/ui/app/createEditorInteractionRuntime.d.ts +2 -1
- package/dist/ui/app/useEditorInteractionWiring.d.ts +1 -0
- package/package.json +1 -1
- package/dist/OasisEditorApp-DTrayMXa.js +0 -1
- package/dist/defaultToolbar-D0rn6_HF.js +0 -1
|
@@ -10,6 +10,7 @@ export type EditorClipboardActions = ReturnType<typeof createEditorClipboardActi
|
|
|
10
10
|
declare function createClipboardActions(deps: ClipboardPasteDeps): {
|
|
11
11
|
notice: import('solid-js').Accessor<ClipboardNotice | undefined>;
|
|
12
12
|
dismiss: () => void;
|
|
13
|
+
reportNativeIssue: (action: ClipboardNotice["action"], issue: ClipboardIssue) => void;
|
|
13
14
|
consumePasteMode: () => ClipboardPasteMode | undefined;
|
|
14
15
|
copy: () => Promise<boolean>;
|
|
15
16
|
cut: () => Promise<boolean>;
|
|
@@ -9,6 +9,7 @@ type CommandsController = ReturnType<typeof createEditorCommandsController>;
|
|
|
9
9
|
export interface EditorInteractionRuntimeDeps {
|
|
10
10
|
clipboardActions?: EditorClipboardActions;
|
|
11
11
|
state: EditorState;
|
|
12
|
+
getStateSnapshot: () => EditorState;
|
|
12
13
|
logger: EditorLogger;
|
|
13
14
|
isReadOnly: () => boolean;
|
|
14
15
|
applyState: (next: EditorState) => void;
|
|
@@ -231,7 +232,7 @@ declare function createEditorInteractionRuntimeImpl(deps: EditorInteractionRunti
|
|
|
231
232
|
}) => void;
|
|
232
233
|
handlePaste: (event: ClipboardEvent & {
|
|
233
234
|
currentTarget: HTMLTextAreaElement;
|
|
234
|
-
}) => void
|
|
235
|
+
}) => void | Promise<void>;
|
|
235
236
|
handleDrop: (event: DragEvent) => void;
|
|
236
237
|
};
|
|
237
238
|
export {};
|
|
@@ -28,6 +28,7 @@ type ClipboardParams = Parameters<typeof createEditorClipboardController>[0];
|
|
|
28
28
|
export interface EditorInteractionWiringContext {
|
|
29
29
|
clipboardActions?: EditorClipboardActions;
|
|
30
30
|
state: EditorState;
|
|
31
|
+
getStateSnapshot: () => EditorState;
|
|
31
32
|
applyState: NavigationParams["applyState"];
|
|
32
33
|
applyTransactionalState: TextDragParams["applyTransactionalState"];
|
|
33
34
|
isReadOnly: TextDragParams["isReadOnly"];
|