oasis-editor 0.0.373 → 0.0.374

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.
@@ -3,6 +3,8 @@ export type ClipboardIssue = "access-denied" | "empty" | "unsupported" | "docume
3
3
  export type ClipboardPasteMode = "rich" | "text" | "merge";
4
4
  export interface ClipboardPasteDeps {
5
5
  state: () => EditorState;
6
+ /** Immutable committed state, not the live reactive facade. */
7
+ stateSnapshot?: () => EditorState;
6
8
  isReadOnly: () => boolean;
7
9
  applyTransactionalState: (producer: (current: EditorState) => EditorState) => void;
8
10
  applyTableAwareParagraphEdit: (state: EditorState, edit: (state: EditorState) => EditorState) => EditorState;
@@ -11,6 +11,7 @@ declare function createClipboardActions(deps: ClipboardPasteDeps): {
11
11
  notice: import('solid-js').Accessor<ClipboardNotice | undefined>;
12
12
  dismiss: () => void;
13
13
  reportNativeIssue: (action: ClipboardNotice["action"], issue: ClipboardIssue) => void;
14
+ requestGeneration: () => number;
14
15
  consumePasteMode: () => ClipboardPasteMode | undefined;
15
16
  copy: () => Promise<boolean>;
16
17
  cut: () => Promise<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.373",
3
+ "version": "0.0.374",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {