limbo-component 1.8.3 → 1.8.4

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/limbo.es.js CHANGED
@@ -19331,6 +19331,9 @@ function CropperView({
19331
19331
  const [showImageOptions, setShowImageOptions] = useState(true);
19332
19332
  const [zoomInfo, setZoomInfo] = useState({ current: 1, percentage: 100 });
19333
19333
  const [editableFilename] = useState(() => {
19334
+ if (!image || !image.filename) {
19335
+ return "image";
19336
+ }
19334
19337
  const [name] = image.filename.split(".");
19335
19338
  return name;
19336
19339
  });
@@ -21679,7 +21682,7 @@ function App({
21679
21682
  }
21680
21683
  )
21681
21684
  ] }),
21682
- activeTab === "cropper" && /* @__PURE__ */ jsx(
21685
+ activeTab === "cropper" && selectedImage && /* @__PURE__ */ jsx(
21683
21686
  CropperView,
21684
21687
  {
21685
21688
  image: selectedImage,
@@ -21691,6 +21694,7 @@ function App({
21691
21694
  onVariantCreated: handleVariantCreated
21692
21695
  }
21693
21696
  ),
21697
+ activeTab === "cropper" && !selectedImage && /* @__PURE__ */ jsx("div", { className: "limbo-empty-state", children: /* @__PURE__ */ jsx("p", { children: "Selecciona una imagen de la galería para comenzar a recortar." }) }),
21694
21698
  /* @__PURE__ */ jsx(
21695
21699
  TokenExpiredModal,
21696
21700
  {
@@ -22009,7 +22013,9 @@ class LimboInstance {
22009
22013
  ui: this.config.ui,
22010
22014
  callbacks: this._createCallbacks(),
22011
22015
  instanceId: this.id,
22012
- authMode: this.config.authMode || this.config.publicKey ? "session" : "manual"
22016
+ authMode: this.config.authMode || this.config.publicKey ? "session" : "manual",
22017
+ _externalImage: this.config._externalImage || null
22018
+ // 🆕 Pass external image for cropper
22013
22019
  })
22014
22020
  );
22015
22021
  }