@underverse-ui/underverse 0.2.78 → 0.2.80
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.cjs +3765 -282
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3750 -266
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2177,6 +2177,8 @@ interface UEditorProps {
|
|
|
2177
2177
|
onChange?: (content: string) => void;
|
|
2178
2178
|
onHtmlChange?: (html: string) => void;
|
|
2179
2179
|
onJsonChange?: (json: object) => void;
|
|
2180
|
+
uploadImage?: (file: File) => Promise<string> | string;
|
|
2181
|
+
imageInsertMode?: "base64" | "upload";
|
|
2180
2182
|
placeholder?: string;
|
|
2181
2183
|
className?: string;
|
|
2182
2184
|
editable?: boolean;
|
|
@@ -2192,7 +2194,7 @@ interface UEditorProps {
|
|
|
2192
2194
|
}
|
|
2193
2195
|
type UEditorVariant = NonNullable<UEditorProps["variant"]>;
|
|
2194
2196
|
|
|
2195
|
-
declare const UEditor: ({ content, onChange, onHtmlChange, onJsonChange, placeholder, className, editable, autofocus, showToolbar, showBubbleMenu, showFloatingMenu, showCharacterCount, maxCharacters, minHeight, maxHeight, variant, }: UEditorProps) => react_jsx_runtime.JSX.Element;
|
|
2197
|
+
declare const UEditor: ({ content, onChange, onHtmlChange, onJsonChange, uploadImage, imageInsertMode, placeholder, className, editable, autofocus, showToolbar, showBubbleMenu, showFloatingMenu, showCharacterCount, maxCharacters, minHeight, maxHeight, variant, }: UEditorProps) => react_jsx_runtime.JSX.Element;
|
|
2196
2198
|
|
|
2197
2199
|
declare const underverseMessages: {
|
|
2198
2200
|
readonly en: {
|
package/dist/index.d.ts
CHANGED
|
@@ -2177,6 +2177,8 @@ interface UEditorProps {
|
|
|
2177
2177
|
onChange?: (content: string) => void;
|
|
2178
2178
|
onHtmlChange?: (html: string) => void;
|
|
2179
2179
|
onJsonChange?: (json: object) => void;
|
|
2180
|
+
uploadImage?: (file: File) => Promise<string> | string;
|
|
2181
|
+
imageInsertMode?: "base64" | "upload";
|
|
2180
2182
|
placeholder?: string;
|
|
2181
2183
|
className?: string;
|
|
2182
2184
|
editable?: boolean;
|
|
@@ -2192,7 +2194,7 @@ interface UEditorProps {
|
|
|
2192
2194
|
}
|
|
2193
2195
|
type UEditorVariant = NonNullable<UEditorProps["variant"]>;
|
|
2194
2196
|
|
|
2195
|
-
declare const UEditor: ({ content, onChange, onHtmlChange, onJsonChange, placeholder, className, editable, autofocus, showToolbar, showBubbleMenu, showFloatingMenu, showCharacterCount, maxCharacters, minHeight, maxHeight, variant, }: UEditorProps) => react_jsx_runtime.JSX.Element;
|
|
2197
|
+
declare const UEditor: ({ content, onChange, onHtmlChange, onJsonChange, uploadImage, imageInsertMode, placeholder, className, editable, autofocus, showToolbar, showBubbleMenu, showFloatingMenu, showCharacterCount, maxCharacters, minHeight, maxHeight, variant, }: UEditorProps) => react_jsx_runtime.JSX.Element;
|
|
2196
2198
|
|
|
2197
2199
|
declare const underverseMessages: {
|
|
2198
2200
|
readonly en: {
|