@uxf/wysiwyg
Advanced tools
Comparing version 1.2.9 to 1.2.10
@@ -30,4 +30,4 @@ "use strict"; | ||
} | ||
if ("videoUrlClient" in plugin && "videoNamespace" in plugin) { | ||
return (react_1.default.createElement(plugin.editorElementRenderer, { attributes: attributes, element: element, key: "element-plugin-".concat(index), videoNamespace: plugin.videoNamespace, videoUrlClient: plugin.videoUrlClient }, children)); | ||
if ("videoThumbnailImageUrlClient" in plugin && "videoThumbnailImageNamespace" in plugin) { | ||
return (react_1.default.createElement(plugin.editorElementRenderer, { attributes: attributes, element: element, key: "element-plugin-".concat(index), videoThumbnailImageNamespace: plugin.videoThumbnailImageNamespace, videoThumbnailImageUrlClient: plugin.videoThumbnailImageUrlClient }, children)); | ||
} | ||
@@ -40,2 +40,2 @@ return (react_1.default.createElement(plugin.editorElementRenderer, { key: "element-plugin-".concat(index), attributes: attributes, element: element }, children)); | ||
exports.Element = Element; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRWxlbWVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9FZGl0b3IvU2xhdGUvRWxlbWVudC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSxnREFBNEM7QUFJckMsSUFBTSxPQUFPLEdBQUcsVUFDbkIsS0FFQztJQUVPLElBQUEsVUFBVSxHQUFpQyxLQUFLLFdBQXRDLEVBQUUsUUFBUSxHQUF1QixLQUFLLFNBQTVCLEVBQUUsT0FBTyxHQUFjLEtBQUssUUFBbkIsRUFBRSxPQUFPLEdBQUssS0FBSyxRQUFWLENBQVc7SUFDekQsSUFBTSxXQUFXLEdBQUcsT0FBTyxDQUFDLEdBQUcsQ0FBQyxVQUFBLE1BQU0sSUFBSSxPQUFBLE1BQU0sQ0FBQyxJQUFJLEVBQVgsQ0FBVyxDQUFDLENBQUM7SUFFdkQsSU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EVBQ3RCLE9BQU8sRUFBRSxPQUFPLElBRWYsUUFBUSxDQUNrQixDQUNsQyxDQUFDO1NBQ0w7UUFFRCxPQUFPLElBQUksQ0FBQztJQUNoQixDQUFDLENBQUMsQ0FDSCxDQUNOLENBQUM7QUFDTixDQUFDLENBQUM7QUEzRFcsUUFBQSxPQUFPLFdBMkRsQiJ9 |
{ | ||
"name": "@uxf/wysiwyg", | ||
"version": "1.2.9", | ||
"version": "1.2.10", | ||
"description": "UXF Wysiwyg editor", | ||
@@ -5,0 +5,0 @@ "author": "Robin Dvorak <dvorak@uxf.cz>", |
@@ -16,3 +16,3 @@ import { CSSProperties, FC } from "react"; | ||
export declare type ImageUrlClient = (uuid: string, extension: string, namespace?: string) => string; | ||
export declare type VideoUrlClient = ImageUrlClient; | ||
export declare type VideoThumbnailImageUrlClient = ImageUrlClient; | ||
export declare type ImageUploadHandler = (file: File, namespace: string) => Promise<{ | ||
@@ -27,3 +27,3 @@ id: number; | ||
}>; | ||
export declare type VideoUploadHandler = ImageUploadHandler; | ||
export declare type VideoThumbnailImageUploadHandler = ImageUploadHandler; | ||
export declare type FontStyle = "italic" | "bold" | "underline" | "code"; | ||
@@ -147,5 +147,5 @@ export declare type LeafMarks = FontStyle; | ||
type: string; | ||
videoUploadHandler: VideoUploadHandler; | ||
videoUrlClient: VideoUrlClient; | ||
videoNamespace: string; | ||
videoThumbnailImageUploadHandler: VideoThumbnailImageUploadHandler; | ||
videoThumbnailImageUrlClient: VideoThumbnailImageUrlClient; | ||
videoThumbnailImageNamespace: string; | ||
} | ||
@@ -157,4 +157,4 @@ export interface ToolbarImageButtonProps extends ToolbarButtonProps { | ||
export interface ToolbarVideoButtonProps extends ToolbarButtonProps { | ||
videoUploadHandler: VideoUploadHandler; | ||
videoNamespace: string; | ||
videoThumbnailImageUploadHandler: VideoThumbnailImageUploadHandler; | ||
videoThumbnailImageNamespace: string; | ||
} | ||
@@ -166,4 +166,4 @@ export interface EditorImageElementRendererProps extends EditorElementRendererProps { | ||
export interface EditorVideoElementRendererProps extends EditorElementRendererProps { | ||
videoUrlClient: VideoUrlClient; | ||
videoNamespace: string; | ||
videoThumbnailImageUrlClient: VideoThumbnailImageUrlClient; | ||
videoThumbnailImageNamespace: string; | ||
} | ||
@@ -170,0 +170,0 @@ export interface ToolbarProps { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
111020
1345