limbo-component 1.6.3 → 1.6.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
@@ -30489,8 +30489,8 @@ async function getHeaders({ isFormData = false, useJWT = true, customHeaders = {
30489
30489
  if (!isFormData) {
30490
30490
  headers["Content-Type"] = "application/json";
30491
30491
  }
30492
+ let token = globalConfig.token;
30492
30493
  if (useJWT) {
30493
- let token = globalConfig.token;
30494
30494
  if (globalConfig.authMode === "session" && !token) {
30495
30495
  try {
30496
30496
  const baseUrl = getBaseUrl(globalConfig);
@@ -41887,6 +41887,32 @@ const Limbo = new LimboCore();
41887
41887
  if (typeof window !== "undefined") {
41888
41888
  window.Limbo = Limbo;
41889
41889
  }
41890
+ const PUBLIC_KEY = "pk_9fcfdd91a14755cc68d0e11a14269554";
41891
+ if (typeof window !== "undefined" && document.querySelector("#root")) {
41892
+ Limbo.configure({
41893
+ prod: false,
41894
+ publicKey: PUBLIC_KEY,
41895
+ authMode: "session"
41896
+ });
41897
+ Limbo.create({
41898
+ container: "#root",
41899
+ mode: "embed",
41900
+ modeUI: "full",
41901
+ features: ["gallery", "upload", "cropper"],
41902
+ title: "Limbo Image Manager - Development",
41903
+ url: true
41904
+ });
41905
+ Limbo.configureAutoInputs({
41906
+ dataset: "data-limbo-input-file",
41907
+ return: "url",
41908
+ features: ["gallery", "upload", "cropper"],
41909
+ modeUI: "full",
41910
+ modalSize: "large",
41911
+ title: "Seleccionar imagen",
41912
+ crops: "free",
41913
+ allowDelete: false
41914
+ });
41915
+ }
41890
41916
  export {
41891
41917
  Limbo as default
41892
41918
  };