limbo-component 1.8.1 → 1.8.2

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
@@ -21300,8 +21300,10 @@ function App({
21300
21300
  },
21301
21301
  callbacks = {},
21302
21302
  instanceId = null,
21303
- itemsPerPage = 10
21303
+ itemsPerPage = 10,
21304
21304
  // Número de elementos por página
21305
+ _externalImage = null
21306
+ // 🆕 Imagen externa para modo cropper standalone
21305
21307
  }) {
21306
21308
  sessionStorage.removeItem("limbo_stock_selectedService");
21307
21309
  sessionStorage.removeItem("limbo_stock_dynamicForm");
@@ -21347,6 +21349,13 @@ function App({
21347
21349
  };
21348
21350
  const [activeTab, setActiveTab] = useState(getInitialTab());
21349
21351
  const [selectedImage, setSelectedImage] = useState(null);
21352
+ useEffect(() => {
21353
+ if (_externalImage) {
21354
+ console.log("📸 Imagen externa detectada:", _externalImage);
21355
+ setSelectedImage(_externalImage);
21356
+ setActiveTab("cropper");
21357
+ }
21358
+ }, [_externalImage]);
21350
21359
  const [currentPage, setCurrentPage] = useState(1);
21351
21360
  const { isTokenExpired, handleTokenExpiredClose } = useTokenExpiration();
21352
21361
  const handlePageChange = (newPage) => {