react-ecosistema-unp 1.15.0 → 1.15.3
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.
|
@@ -599,7 +599,7 @@ function Yt() {
|
|
|
599
599
|
}
|
|
600
600
|
var Fn = Yt();
|
|
601
601
|
const Ti = () => {
|
|
602
|
-
const [c, o] = O(!1), [f, s] = O([]), [d, E] = O([]), [U, F] = O([]), [se, ne] = O(1), [Xe, Ie] = O(1), [Ve, ce] = O(1), [ie, qe] = O(!0), [Ke, we] = O(!0), [Ze, le] = O(!0), [y, K] = O(!1), [Ee, Me] = O(!1), [xe, fe] = O(!1), [ve, A] = O(0), [j, Ae] = O(null), [z, oe] = O(null), [L, Pe] = O("
|
|
602
|
+
const [c, o] = O(!1), [f, s] = O([]), [d, E] = O([]), [U, F] = O([]), [se, ne] = O(1), [Xe, Ie] = O(1), [Ve, ce] = O(1), [ie, qe] = O(!0), [Ke, we] = O(!0), [Ze, le] = O(!0), [y, K] = O(!1), [Ee, Me] = O(!1), [xe, fe] = O(!1), [ve, A] = O(0), [j, Ae] = O(null), [z, oe] = O(null), [L, Pe] = O("unread"), Ne = It(null), ke = It(null), Ue = () => {
|
|
603
603
|
var m;
|
|
604
604
|
const t = localStorage.getItem("auth_state"), i = t ? JSON.parse(t) : null;
|
|
605
605
|
return ((m = i == null ? void 0 : i.user) == null ? void 0 : m.id_busuario) || "";
|
|
@@ -637,7 +637,7 @@ const Ti = () => {
|
|
|
637
637
|
}
|
|
638
638
|
}, R = async () => {
|
|
639
639
|
const t = !c;
|
|
640
|
-
o(t), t ? (Pe("
|
|
640
|
+
o(t), t ? (Pe("unread"), fe(!1), oe(null), await ue("unread", 1)) : oe(null);
|
|
641
641
|
}, Se = async (t) => {
|
|
642
642
|
Pe(t), fe(!1), await ue(t, 1);
|
|
643
643
|
}, _ = (t) => {
|
|
@@ -735,7 +735,7 @@ const Ti = () => {
|
|
|
735
735
|
] }) : null;
|
|
736
736
|
})() : /* @__PURE__ */ I(Ct, { children: [
|
|
737
737
|
/* @__PURE__ */ I("div", { className: "filter-buttons", children: [
|
|
738
|
-
/* @__PURE__ */ l("button", { className: `filter-button ${L === "
|
|
738
|
+
/* @__PURE__ */ l("button", { className: `filter-button ${L === "unread" ? "active" : ""}`, onClick: () => Se("unread"), children: "Sin leer" }),
|
|
739
739
|
/* @__PURE__ */ l("button", { className: `filter-button ${L === "read" ? "active" : ""}`, onClick: () => Se("read"), children: "Leídas" })
|
|
740
740
|
] }),
|
|
741
741
|
L === "read" && /* @__PURE__ */ l("div", { className: "header-actions", children: /* @__PURE__ */ l("span", { className: "delete-read-link", onClick: Y, children: "Eliminar leídas" }) })
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "react-ecosistema-unp",
|
|
3
3
|
"author": "Ecosistema de Información - Unidad Nacional de Protección",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "1.15.
|
|
5
|
+
"version": "1.15.3",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
@@ -41,11 +41,7 @@
|
|
|
41
41
|
"types": "./dist/lib/auth.d.ts",
|
|
42
42
|
"default": "./dist/auth.js"
|
|
43
43
|
},
|
|
44
|
-
"./styles/EcoStyles.css": "./dist/assets/Bootstrap.css"
|
|
45
|
-
"./utils/fetchInterceptor.js": {
|
|
46
|
-
"types": "./dist/lib/utils/fetch/fetchInterceptor.d.ts",
|
|
47
|
-
"default": "./dist/utils/fetch/fetchInterceptor.js"
|
|
48
|
-
}
|
|
44
|
+
"./styles/EcoStyles.css": "./dist/assets/Bootstrap.css"
|
|
49
45
|
},
|
|
50
46
|
"files": [
|
|
51
47
|
"dist"
|
|
@@ -55,8 +51,7 @@
|
|
|
55
51
|
"url": "https://github.com/EcosistemaUNP/react-ecosistema-unp"
|
|
56
52
|
},
|
|
57
53
|
"sideEffects": [
|
|
58
|
-
"**/*.css"
|
|
59
|
-
"**/fetchInterceptor.js"
|
|
54
|
+
"**/*.css"
|
|
60
55
|
],
|
|
61
56
|
"scripts": {
|
|
62
57
|
"dev": "vite",
|