@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.mjs CHANGED
@@ -14236,6 +14236,7 @@ function UploadImagePlugin({
14236
14236
  onImageUploadError,
14237
14237
  onImageDialogUpload,
14238
14238
  onImageDialogUploadError,
14239
+ hideImageUploadButton,
14239
14240
  acceptImageMimeTypes
14240
14241
  }) {
14241
14242
  const [editor] = useLexicalComposerContext();
@@ -14520,7 +14521,7 @@ function UploadImagePlugin({
14520
14521
  disabled: imageDialogLoading
14521
14522
  }
14522
14523
  ),
14523
- onImageDialogUpload && /* @__PURE__ */ jsx(
14524
+ onImageDialogUpload && !hideImageUploadButton && /* @__PURE__ */ jsx(
14524
14525
  Button,
14525
14526
  {
14526
14527
  type: "button",
@@ -16047,6 +16048,7 @@ function RichTextInner({
16047
16048
  onImageDialogUploadError,
16048
16049
  acceptImageMimeTypes = "image/*",
16049
16050
  allowImageUrlInsert = true,
16051
+ hideImageUploadButton = false,
16050
16052
  maxLength,
16051
16053
  mentions,
16052
16054
  mentionConfig,
@@ -16129,6 +16131,7 @@ function RichTextInner({
16129
16131
  onImageUploadError,
16130
16132
  allowImageUrlInsert,
16131
16133
  acceptImageMimeTypes,
16134
+ hideImageUploadButton,
16132
16135
  onImageDialogUpload,
16133
16136
  onImageDialogUploadError
16134
16137
  }