@scalably/ui 0.11.2 → 0.11.3

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.cts CHANGED
@@ -2874,6 +2874,12 @@ interface RichTextEditorProps {
2874
2874
  * user can then confirm insertion with "Save".
2875
2875
  */
2876
2876
  onImageUpload?: (file: File) => Promise<string>;
2877
+ /**
2878
+ * Message shown when `onImageUpload` fails. Use a string for fixed copy, or
2879
+ * a function `(error) => string` to derive text from the rejection reason.
2880
+ * When omitted, the editor uses a default English message.
2881
+ */
2882
+ imageUploadErrorMessage?: string | ((error: unknown) => string);
2877
2883
  /**
2878
2884
  * Controls how users are allowed to provide image sources.
2879
2885
  *
@@ -3059,7 +3065,7 @@ interface RichTextEditorProps {
3059
3065
  * @see RichTextViewer - Read-only viewer component for displaying rich text content
3060
3066
  */
3061
3067
  declare const RichTextEditor: {
3062
- ({ value, onChange, label, error, helperText, placeholder, minHeight, simple, disabled, "data-testid": dataTestId, containerClassName, borderContainerClassName, toolbarClassName, contentClassName, editorClassName, labelClassName, messageContainerClassName, onImageUpload, imageSourceMode, maxCharacters, onMaxLengthExceed, immediatelyRender, stickyToolbar, stickyOffset, hideToolbar, withBorder, enableBubbleMenu, enableFloatingMenu, floatingMenuTriggers, plusMenuYOffset, }: RichTextEditorProps): react_jsx_runtime.JSX.Element;
3068
+ ({ value, onChange, label, error, helperText, placeholder, minHeight, simple, disabled, "data-testid": dataTestId, containerClassName, borderContainerClassName, toolbarClassName, contentClassName, editorClassName, labelClassName, messageContainerClassName, onImageUpload, imageUploadErrorMessage, imageSourceMode, maxCharacters, onMaxLengthExceed, immediatelyRender, stickyToolbar, stickyOffset, hideToolbar, withBorder, enableBubbleMenu, enableFloatingMenu, floatingMenuTriggers, plusMenuYOffset, }: RichTextEditorProps): react_jsx_runtime.JSX.Element;
3063
3069
  displayName: string;
3064
3070
  };
3065
3071
 
package/dist/index.d.ts CHANGED
@@ -2874,6 +2874,12 @@ interface RichTextEditorProps {
2874
2874
  * user can then confirm insertion with "Save".
2875
2875
  */
2876
2876
  onImageUpload?: (file: File) => Promise<string>;
2877
+ /**
2878
+ * Message shown when `onImageUpload` fails. Use a string for fixed copy, or
2879
+ * a function `(error) => string` to derive text from the rejection reason.
2880
+ * When omitted, the editor uses a default English message.
2881
+ */
2882
+ imageUploadErrorMessage?: string | ((error: unknown) => string);
2877
2883
  /**
2878
2884
  * Controls how users are allowed to provide image sources.
2879
2885
  *
@@ -3059,7 +3065,7 @@ interface RichTextEditorProps {
3059
3065
  * @see RichTextViewer - Read-only viewer component for displaying rich text content
3060
3066
  */
3061
3067
  declare const RichTextEditor: {
3062
- ({ value, onChange, label, error, helperText, placeholder, minHeight, simple, disabled, "data-testid": dataTestId, containerClassName, borderContainerClassName, toolbarClassName, contentClassName, editorClassName, labelClassName, messageContainerClassName, onImageUpload, imageSourceMode, maxCharacters, onMaxLengthExceed, immediatelyRender, stickyToolbar, stickyOffset, hideToolbar, withBorder, enableBubbleMenu, enableFloatingMenu, floatingMenuTriggers, plusMenuYOffset, }: RichTextEditorProps): react_jsx_runtime.JSX.Element;
3068
+ ({ value, onChange, label, error, helperText, placeholder, minHeight, simple, disabled, "data-testid": dataTestId, containerClassName, borderContainerClassName, toolbarClassName, contentClassName, editorClassName, labelClassName, messageContainerClassName, onImageUpload, imageUploadErrorMessage, imageSourceMode, maxCharacters, onMaxLengthExceed, immediatelyRender, stickyToolbar, stickyOffset, hideToolbar, withBorder, enableBubbleMenu, enableFloatingMenu, floatingMenuTriggers, plusMenuYOffset, }: RichTextEditorProps): react_jsx_runtime.JSX.Element;
3063
3069
  displayName: string;
3064
3070
  };
3065
3071