@uxf/wysiwyg 11.21.4 → 11.22.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/wysiwyg",
3
- "version": "11.21.4",
3
+ "version": "11.22.0",
4
4
  "description": "UXF Wysiwyg editor",
5
5
  "author": "Robin Dvorak <dvorak@uxf.cz>",
6
6
  "homepage": "https://gitlab.com/uxf-npm/wysiwyg",
@@ -27,9 +27,9 @@
27
27
  "@udecode/plate-reset-node": "20.7.2",
28
28
  "@udecode/plate-select": "20.7.2",
29
29
  "@udecode/plate-trailing-block": "20.7.2",
30
- "@uxf/core": "11.21.0",
31
- "@uxf/core-react": "11.21.0",
32
- "@uxf/ui": "11.21.4",
30
+ "@uxf/core": "11.22.0",
31
+ "@uxf/core-react": "11.22.0",
32
+ "@uxf/ui": "11.22.0",
33
33
  "slate": "0.90.0",
34
34
  "slate-history": "0.86.0",
35
35
  "slate-hyperscript": "0.77.0",
@@ -1,3 +1,3 @@
1
+ import { FileResponse } from "@uxf/core/types";
1
2
  import { UxfEditor } from "../../../types";
2
- import { FileResponse } from "../types";
3
3
  export declare const insertImage: (editor: UxfEditor, file: FileResponse, alt?: string, caption?: string, source?: string, url?: string) => void;
@@ -1,3 +1,3 @@
1
+ import { FileResponse } from "@uxf/core/types";
1
2
  import { UxfEditor } from "../../../types";
2
- import { FileResponse } from "../types";
3
3
  export declare const updateImage: (editor: UxfEditor, file: FileResponse, alt?: string, caption?: string, source?: string, url?: string) => void;
@@ -1,4 +1,5 @@
1
1
  import { MediaPlugin } from "@udecode/plate-media";
2
+ import { FileResponse } from "@uxf/core/types";
2
3
  export declare const IMAGE_PLUGIN_KEY = "img";
3
4
  export declare const IMAGE_PLUGIN_TYPE = "image";
4
5
  export type GetImageUrlHandler = (file: FileResponse) => string;
@@ -9,11 +10,3 @@ export interface UxfImagePluginOptions extends MediaPlugin {
9
10
  disableUploadOnPasteImageUrl?: boolean;
10
11
  disableUploadOnPasteImage?: boolean;
11
12
  }
12
- export interface FileResponse {
13
- id: number;
14
- uuid: string;
15
- namespace?: string | null;
16
- extension: string;
17
- name: string;
18
- type?: string;
19
- }
package/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { OverrideByKey, PlateEditor, PlateId, PlatePlugin, PlatePluginComponent, RenderAfterEditable as PlateRenderAfterEditable, PlateRenderElementProps, PlateRenderLeafProps, PluginOptions } from "@udecode/plate-core";
2
2
  import { TElement, TText } from "@udecode/slate";
3
+ import { FileResponse } from "@uxf/core/types";
3
4
  import { FC } from "react";
4
- import { FileResponse } from "./plugins/image/types";
5
5
  export type RenderElementProps<E extends TElement = UxfBlockElement> = PlateRenderElementProps<WysiwygContent, E>;
6
6
  export type ElementUiComponent<E extends TElement = UxfBlockElement> = FC<RenderElementProps<E>>;
7
7
  export type RenderLeafProps<L extends TText = RichText> = PlateRenderLeafProps<WysiwygContent, L>;