@nocios/crudify-ui 3.0.68 → 4.0.1
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.js +12 -0
- package/dist/index.mjs +12 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1675,6 +1675,8 @@ function InnerSessionProvider({
|
|
|
1675
1675
|
const cookieEnv = getCookie("environment");
|
|
1676
1676
|
const cookieAppName = getCookie("appName");
|
|
1677
1677
|
const cookieLoginActions = getCookie("loginActions");
|
|
1678
|
+
const cookieLogo = getCookie("logo");
|
|
1679
|
+
const cookieColors = getCookie("colors");
|
|
1678
1680
|
if (cookieApiKey) {
|
|
1679
1681
|
publicApiKey = cookieApiKey;
|
|
1680
1682
|
configSource = "cookies";
|
|
@@ -1689,6 +1691,16 @@ function InnerSessionProvider({
|
|
|
1689
1691
|
const decodedActions = decodeURIComponent(cookieLoginActions);
|
|
1690
1692
|
loginActions = decodedActions.split(",").map((s) => s.trim()).filter(Boolean);
|
|
1691
1693
|
}
|
|
1694
|
+
if (cookieLogo) logo = decodeURIComponent(cookieLogo);
|
|
1695
|
+
if (cookieColors) {
|
|
1696
|
+
try {
|
|
1697
|
+
const decodedColors = decodeURIComponent(cookieColors);
|
|
1698
|
+
colors = JSON.parse(decodedColors);
|
|
1699
|
+
} catch (error) {
|
|
1700
|
+
console.error("Error parsing colors from cookie:", error);
|
|
1701
|
+
colors = {};
|
|
1702
|
+
}
|
|
1703
|
+
}
|
|
1692
1704
|
}
|
|
1693
1705
|
return {
|
|
1694
1706
|
publicApiKey,
|
package/dist/index.mjs
CHANGED
|
@@ -1602,6 +1602,8 @@ function InnerSessionProvider({
|
|
|
1602
1602
|
const cookieEnv = getCookie("environment");
|
|
1603
1603
|
const cookieAppName = getCookie("appName");
|
|
1604
1604
|
const cookieLoginActions = getCookie("loginActions");
|
|
1605
|
+
const cookieLogo = getCookie("logo");
|
|
1606
|
+
const cookieColors = getCookie("colors");
|
|
1605
1607
|
if (cookieApiKey) {
|
|
1606
1608
|
publicApiKey = cookieApiKey;
|
|
1607
1609
|
configSource = "cookies";
|
|
@@ -1616,6 +1618,16 @@ function InnerSessionProvider({
|
|
|
1616
1618
|
const decodedActions = decodeURIComponent(cookieLoginActions);
|
|
1617
1619
|
loginActions = decodedActions.split(",").map((s) => s.trim()).filter(Boolean);
|
|
1618
1620
|
}
|
|
1621
|
+
if (cookieLogo) logo = decodeURIComponent(cookieLogo);
|
|
1622
|
+
if (cookieColors) {
|
|
1623
|
+
try {
|
|
1624
|
+
const decodedColors = decodeURIComponent(cookieColors);
|
|
1625
|
+
colors = JSON.parse(decodedColors);
|
|
1626
|
+
} catch (error) {
|
|
1627
|
+
console.error("Error parsing colors from cookie:", error);
|
|
1628
|
+
colors = {};
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1619
1631
|
}
|
|
1620
1632
|
return {
|
|
1621
1633
|
publicApiKey,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocios/crudify-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "Biblioteca de componentes UI para Crudify",
|
|
5
5
|
"author": "Nocios",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@mui/icons-material": "^7.1.0",
|
|
26
26
|
"@mui/material": "^7.1.0",
|
|
27
27
|
"@mui/x-data-grid": "^8.5.1",
|
|
28
|
-
"@nocios/crudify-browser": "^
|
|
28
|
+
"@nocios/crudify-browser": "^4.0.0",
|
|
29
29
|
"@types/dompurify": "^3.0.5",
|
|
30
30
|
"@types/uuid": "^10.0.0",
|
|
31
31
|
"crypto-js": "^4.2.0",
|