@nocios/crudify-ui 1.2.4 → 1.2.8

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.
@@ -4,7 +4,7 @@ import {
4
4
  crudifyInitializer,
5
5
  tokenManager,
6
6
  useCrudifyDataContext
7
- } from "./chunk-TAAQGO5Q.mjs";
7
+ } from "./chunk-CHZCYBPA.mjs";
8
8
  export {
9
9
  CrudifyDataProvider,
10
10
  configurationManager,
@@ -240,23 +240,25 @@ var _ConfigurationManager = class _ConfigurationManager {
240
240
  const appName = getCookie("appName");
241
241
  console.log("\u{1F527} ConfigurationManager - Cookie appName:", appName);
242
242
  if (appName) {
243
- config.appName = appName;
243
+ config.appName = decodeURIComponent(appName);
244
244
  }
245
245
  const loginActions = getCookie("loginActions");
246
246
  console.log("\u{1F527} ConfigurationManager - Cookie loginActions:", loginActions);
247
247
  if (loginActions) {
248
- config.loginActions = loginActions.split(",").map((action) => action.trim()).filter(Boolean);
248
+ const decodedActions = decodeURIComponent(loginActions);
249
+ config.loginActions = decodedActions.split(",").map((action) => action.trim()).filter(Boolean);
249
250
  }
250
251
  const logo = getCookie("logo");
251
252
  console.log("\u{1F527} ConfigurationManager - Cookie logo:", logo);
252
253
  if (logo) {
253
- config.logo = logo;
254
+ config.logo = decodeURIComponent(logo);
254
255
  }
255
256
  const colors = getCookie("colors");
256
257
  console.log("\u{1F527} ConfigurationManager - Cookie colors:", colors);
257
258
  if (colors) {
258
259
  try {
259
- config.colors = JSON.parse(colors);
260
+ const decodedColors = decodeURIComponent(colors);
261
+ config.colors = JSON.parse(decodedColors);
260
262
  } catch (error) {
261
263
  console.warn("\u{1F527} ConfigurationManager - Failed to parse colors from cookie:", error);
262
264
  }
@@ -1000,7 +1002,7 @@ var CrudifyDataProvider = ({
1000
1002
  const [tokenExpiration, setTokenExpiration] = useState(null);
1001
1003
  const initializeConfiguration = useCallback(() => {
1002
1004
  try {
1003
- console.log("\u{1F30D} CrudifyDataProvider - Initializing configuration");
1005
+ console.log("\u{1F30D} CrudifyDataProvider - VERSION 1.2.4+ - Initializing configuration");
1004
1006
  const propsConfig = {
1005
1007
  env,
1006
1008
  publicApiKey,
package/dist/index.js CHANGED
@@ -397,23 +397,25 @@ var init_ConfigurationManager = __esm({
397
397
  const appName = getCookie("appName");
398
398
  console.log("\u{1F527} ConfigurationManager - Cookie appName:", appName);
399
399
  if (appName) {
400
- config.appName = appName;
400
+ config.appName = decodeURIComponent(appName);
401
401
  }
402
402
  const loginActions = getCookie("loginActions");
403
403
  console.log("\u{1F527} ConfigurationManager - Cookie loginActions:", loginActions);
404
404
  if (loginActions) {
405
- config.loginActions = loginActions.split(",").map((action) => action.trim()).filter(Boolean);
405
+ const decodedActions = decodeURIComponent(loginActions);
406
+ config.loginActions = decodedActions.split(",").map((action) => action.trim()).filter(Boolean);
406
407
  }
407
408
  const logo = getCookie("logo");
408
409
  console.log("\u{1F527} ConfigurationManager - Cookie logo:", logo);
409
410
  if (logo) {
410
- config.logo = logo;
411
+ config.logo = decodeURIComponent(logo);
411
412
  }
412
413
  const colors = getCookie("colors");
413
414
  console.log("\u{1F527} ConfigurationManager - Cookie colors:", colors);
414
415
  if (colors) {
415
416
  try {
416
- config.colors = JSON.parse(colors);
417
+ const decodedColors = decodeURIComponent(colors);
418
+ config.colors = JSON.parse(decodedColors);
417
419
  } catch (error) {
418
420
  console.warn("\u{1F527} ConfigurationManager - Failed to parse colors from cookie:", error);
419
421
  }
@@ -1084,7 +1086,7 @@ var init_CrudifyDataProvider = __esm({
1084
1086
  const [tokenExpiration, setTokenExpiration] = (0, import_react5.useState)(null);
1085
1087
  const initializeConfiguration = (0, import_react5.useCallback)(() => {
1086
1088
  try {
1087
- console.log("\u{1F30D} CrudifyDataProvider - Initializing configuration");
1089
+ console.log("\u{1F30D} CrudifyDataProvider - VERSION 1.2.4+ - Initializing configuration");
1088
1090
  const propsConfig = {
1089
1091
  env,
1090
1092
  publicApiKey,
package/dist/index.mjs CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  secureSessionStorage,
11
11
  tokenManager,
12
12
  useCrudifyDataContext
13
- } from "./chunk-TAAQGO5Q.mjs";
13
+ } from "./chunk-CHZCYBPA.mjs";
14
14
 
15
15
  // src/index.ts
16
16
  import { default as default2 } from "@nocios/crudify-browser";
@@ -2370,7 +2370,7 @@ var useCrudifyInstance = () => {
2370
2370
  }
2371
2371
  try {
2372
2372
  console.log("\u{1F504} useCrudifyInstance - waitForReady: Using CrudifyInitializer.waitForInitialization()");
2373
- const { crudifyInitializer: crudifyInitializer2 } = await import("./CrudifyDataProvider-IFC5L3VQ.mjs");
2373
+ const { crudifyInitializer: crudifyInitializer2 } = await import("./CrudifyDataProvider-NAWBIBPW.mjs");
2374
2374
  await crudifyInitializer2.waitForInitialization();
2375
2375
  console.log("\u2705 useCrudifyInstance - waitForReady: CrudifyInitializer completed");
2376
2376
  if (!crudifyInitializer2.isReady()) {
@@ -2512,7 +2512,7 @@ var useCrudifyInstance = () => {
2512
2512
  };
2513
2513
  var getCrudifyInstanceAsync = async () => {
2514
2514
  console.log("\u{1F504} getCrudifyInstanceAsync - Starting");
2515
- const { crudifyInitializer: crudifyInitializer2 } = await import("./CrudifyDataProvider-IFC5L3VQ.mjs");
2515
+ const { crudifyInitializer: crudifyInitializer2 } = await import("./CrudifyDataProvider-NAWBIBPW.mjs");
2516
2516
  console.log("\u{1F504} getCrudifyInstanceAsync - Checking if ready");
2517
2517
  console.log(" - crudifyInitializer.isReady():", crudifyInitializer2.isReady());
2518
2518
  console.log(" - crudifyInitializer.getStatus():", crudifyInitializer2.getStatus());
@@ -2531,7 +2531,7 @@ var getCrudifyInstanceAsync = async () => {
2531
2531
  return crudify5;
2532
2532
  };
2533
2533
  var getCrudifyInstanceSync = async () => {
2534
- const { crudifyInitializer: crudifyInitializer2 } = await import("./CrudifyDataProvider-IFC5L3VQ.mjs");
2534
+ const { crudifyInitializer: crudifyInitializer2 } = await import("./CrudifyDataProvider-NAWBIBPW.mjs");
2535
2535
  if (!crudifyInitializer2.isReady()) {
2536
2536
  throw new Error("Crudify not ready. Use getCrudifyInstanceAsync() or call this from within a React component using useCrudifyInstance()");
2537
2537
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocios/crudify-ui",
3
- "version": "1.2.4",
3
+ "version": "1.2.8",
4
4
  "description": "Biblioteca de componentes UI para Crudify",
5
5
  "author": "Nocios",
6
6
  "license": "MIT",