@uxf/wysiwyg 1.2.8 → 1.2.9

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types.d.ts +3 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/wysiwyg",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "description": "UXF Wysiwyg editor",
5
5
  "author": "Robin Dvorak <dvorak@uxf.cz>",
6
6
  "homepage": "https://gitlab.com/uxf-npm/wysiwyg",
package/types.d.ts CHANGED
@@ -2,6 +2,7 @@ import { CSSProperties, FC } from "react";
2
2
  import { BaseEditor, Editor, Range } from "slate";
3
3
  import { HistoryEditor } from "slate-history";
4
4
  import { ReactEditor, RenderElementProps as SlateRenderElementProps, RenderLeafProps as SlateRenderLeafProps } from "slate-react";
5
+ declare type DateString = `${number}-${number}-${number}`;
5
6
  export interface WysiwygEditorProps {
6
7
  value?: EditorBlockElement[];
7
8
  onChange: (event: any) => void;
@@ -52,12 +53,10 @@ export interface EditorImageElement extends EditorBlockElement {
52
53
  url?: string;
53
54
  }
54
55
  export interface EditorVideoElement extends EditorBlockElement {
55
- uuid?: string;
56
- extension?: string;
57
56
  name: string;
58
- namespace?: string;
57
+ thumbnailUrl: string;
59
58
  type: "video";
60
- uploadedAt: "YYYY-MM-DD";
59
+ uploadedAt: DateString;
61
60
  url: string;
62
61
  }
63
62
  export interface EditorButtonElement extends EditorBlockElement {