@mdxeditor/editor 3.31.0 → 3.31.1

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/index.d.ts CHANGED
@@ -2619,7 +2619,7 @@ export declare const saveImage$: NodeRef<SaveImageParameters>;
2619
2619
  */
2620
2620
  export declare interface SaveImageParameters extends BaseImageParameters {
2621
2621
  src?: string;
2622
- file: FileList;
2622
+ file?: FileList;
2623
2623
  }
2624
2624
 
2625
2625
  /**
@@ -57,7 +57,7 @@ const imageDialogState$ = Cell(
57
57
  r.pub(internalInsertImage$, { ...values, src });
58
58
  r.pub(imageDialogState$, { type: "inactive" });
59
59
  };
60
- if (values.file.length > 0) {
60
+ if (values.file && values.file.length > 0) {
61
61
  imageUploadHandler == null ? void 0 : imageUploadHandler(values.file.item(0)).then(handler).catch((e) => {
62
62
  throw e;
63
63
  });
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "*.css"
12
12
  ],
13
13
  "type": "module",
14
- "version": "3.31.0",
14
+ "version": "3.31.1",
15
15
  "description": "React component for rich text markdown editing",
16
16
  "scripts": {
17
17
  "build": "vite build",