@sustaina/shared-ui 1.64.2 → 1.65.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/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1321,6 +1321,7 @@ type RichTextProps<T = DefaultMentionItem$1> = {
|
|
|
1321
1321
|
onImageUploadError?: (error: unknown) => void;
|
|
1322
1322
|
onImageDialogUpload?: (file: File) => Promise<string>;
|
|
1323
1323
|
onImageDialogUploadError?: (error: unknown) => void;
|
|
1324
|
+
hideImageUploadButton?: boolean;
|
|
1324
1325
|
acceptImageMimeTypes?: string;
|
|
1325
1326
|
allowImageUrlInsert?: boolean;
|
|
1326
1327
|
/** Maximum number of characters allowed in the editor */
|
|
@@ -1337,7 +1338,7 @@ type RichTextProps<T = DefaultMentionItem$1> = {
|
|
|
1337
1338
|
plainTextMentions?: boolean;
|
|
1338
1339
|
} & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange">;
|
|
1339
1340
|
|
|
1340
|
-
declare function RichTextInner<T = DefaultMentionItem$1>({ value, defaultValue, onChange, onHtmlChange, onTextChange, placeholder, readOnly, disabled, editorClassName, toolbarClassName, autoFocus, onImageUpload, onImageUploadError, onImageDialogUpload, onImageDialogUploadError, acceptImageMimeTypes, allowImageUrlInsert, maxLength, mentions, mentionConfig, mentionTrigger, mentionTriggerOnly, plainTextMentions, className, id, ...rest }: RichTextProps<T>, ref: React.Ref<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1341
|
+
declare function RichTextInner<T = DefaultMentionItem$1>({ value, defaultValue, onChange, onHtmlChange, onTextChange, placeholder, readOnly, disabled, editorClassName, toolbarClassName, autoFocus, onImageUpload, onImageUploadError, onImageDialogUpload, onImageDialogUploadError, acceptImageMimeTypes, allowImageUrlInsert, hideImageUploadButton, maxLength, mentions, mentionConfig, mentionTrigger, mentionTriggerOnly, plainTextMentions, className, id, ...rest }: RichTextProps<T>, ref: React.Ref<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1341
1342
|
declare const RichText: <T = DefaultMentionItem$1>(props: RichTextProps<T> & {
|
|
1342
1343
|
ref?: React.Ref<HTMLDivElement>;
|
|
1343
1344
|
}) => ReturnType<typeof RichTextInner>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1321,6 +1321,7 @@ type RichTextProps<T = DefaultMentionItem$1> = {
|
|
|
1321
1321
|
onImageUploadError?: (error: unknown) => void;
|
|
1322
1322
|
onImageDialogUpload?: (file: File) => Promise<string>;
|
|
1323
1323
|
onImageDialogUploadError?: (error: unknown) => void;
|
|
1324
|
+
hideImageUploadButton?: boolean;
|
|
1324
1325
|
acceptImageMimeTypes?: string;
|
|
1325
1326
|
allowImageUrlInsert?: boolean;
|
|
1326
1327
|
/** Maximum number of characters allowed in the editor */
|
|
@@ -1337,7 +1338,7 @@ type RichTextProps<T = DefaultMentionItem$1> = {
|
|
|
1337
1338
|
plainTextMentions?: boolean;
|
|
1338
1339
|
} & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange">;
|
|
1339
1340
|
|
|
1340
|
-
declare function RichTextInner<T = DefaultMentionItem$1>({ value, defaultValue, onChange, onHtmlChange, onTextChange, placeholder, readOnly, disabled, editorClassName, toolbarClassName, autoFocus, onImageUpload, onImageUploadError, onImageDialogUpload, onImageDialogUploadError, acceptImageMimeTypes, allowImageUrlInsert, maxLength, mentions, mentionConfig, mentionTrigger, mentionTriggerOnly, plainTextMentions, className, id, ...rest }: RichTextProps<T>, ref: React.Ref<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1341
|
+
declare function RichTextInner<T = DefaultMentionItem$1>({ value, defaultValue, onChange, onHtmlChange, onTextChange, placeholder, readOnly, disabled, editorClassName, toolbarClassName, autoFocus, onImageUpload, onImageUploadError, onImageDialogUpload, onImageDialogUploadError, acceptImageMimeTypes, allowImageUrlInsert, hideImageUploadButton, maxLength, mentions, mentionConfig, mentionTrigger, mentionTriggerOnly, plainTextMentions, className, id, ...rest }: RichTextProps<T>, ref: React.Ref<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1341
1342
|
declare const RichText: <T = DefaultMentionItem$1>(props: RichTextProps<T> & {
|
|
1342
1343
|
ref?: React.Ref<HTMLDivElement>;
|
|
1343
1344
|
}) => ReturnType<typeof RichTextInner>;
|
package/dist/index.js
CHANGED
|
@@ -14279,6 +14279,7 @@ function UploadImagePlugin({
|
|
|
14279
14279
|
onImageUploadError,
|
|
14280
14280
|
onImageDialogUpload,
|
|
14281
14281
|
onImageDialogUploadError,
|
|
14282
|
+
hideImageUploadButton,
|
|
14282
14283
|
acceptImageMimeTypes
|
|
14283
14284
|
}) {
|
|
14284
14285
|
const [editor] = LexicalComposerContext.useLexicalComposerContext();
|
|
@@ -14563,7 +14564,7 @@ function UploadImagePlugin({
|
|
|
14563
14564
|
disabled: imageDialogLoading
|
|
14564
14565
|
}
|
|
14565
14566
|
),
|
|
14566
|
-
onImageDialogUpload && /* @__PURE__ */ jsxRuntime.jsx(
|
|
14567
|
+
onImageDialogUpload && !hideImageUploadButton && /* @__PURE__ */ jsxRuntime.jsx(
|
|
14567
14568
|
Button,
|
|
14568
14569
|
{
|
|
14569
14570
|
type: "button",
|
|
@@ -16090,6 +16091,7 @@ function RichTextInner({
|
|
|
16090
16091
|
onImageDialogUploadError,
|
|
16091
16092
|
acceptImageMimeTypes = "image/*",
|
|
16092
16093
|
allowImageUrlInsert = true,
|
|
16094
|
+
hideImageUploadButton = false,
|
|
16093
16095
|
maxLength,
|
|
16094
16096
|
mentions,
|
|
16095
16097
|
mentionConfig,
|
|
@@ -16172,6 +16174,7 @@ function RichTextInner({
|
|
|
16172
16174
|
onImageUploadError,
|
|
16173
16175
|
allowImageUrlInsert,
|
|
16174
16176
|
acceptImageMimeTypes,
|
|
16177
|
+
hideImageUploadButton,
|
|
16175
16178
|
onImageDialogUpload,
|
|
16176
16179
|
onImageDialogUploadError
|
|
16177
16180
|
}
|