@mattisvensson/strapi-plugin-webatlas 0.6.0 → 0.6.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/_chunks/{index-C1HfYOU_.js → index-B5ji2Qhs.js} +4 -4
- package/dist/_chunks/{index-Dryo1JuH.js → index-BEwslndX.js} +2 -2
- package/dist/_chunks/{index-Dryo1JuH.js.map → index-BEwslndX.js.map} +1 -1
- package/dist/_chunks/{index-CcwGhk4b.js → index-BJHlAfrS.js} +11 -7
- package/dist/_chunks/{index-Dl3NwmwH.mjs → index-BKds0CRq.mjs} +1 -1
- package/dist/_chunks/{index-CDqKPoLF.mjs → index-Bfu5AVqu.mjs} +11 -8
- package/dist/_chunks/{index-Bxhu-TNT.js → index-BvqWnL1-.js} +5 -5
- package/dist/_chunks/{index-Bxhu-TNT.js.map → index-BvqWnL1-.js.map} +1 -1
- package/dist/_chunks/{index-DLfJwkbe.mjs → index-C-4C6ezO.mjs} +1 -1
- package/dist/_chunks/{index-Upva9LaE.mjs → index-C2V-ZFHK.mjs} +12 -7
- package/dist/_chunks/index-C2V-ZFHK.mjs.map +1 -0
- package/dist/_chunks/{index-Cw8m9qME.js → index-Cp_UPsle.js} +2 -2
- package/dist/_chunks/{index-Cw8m9qME.js.map → index-Cp_UPsle.js.map} +1 -1
- package/dist/_chunks/{index-xhAxCOze.js → index-D2CkoDhN.js} +1 -1
- package/dist/_chunks/{index-Dy2LLMda.js → index-DBVU2KOj.js} +1 -1
- package/dist/_chunks/{index-DWcVnOi0.js → index-DCCE7rxt.js} +12 -8
- package/dist/_chunks/index-DCCE7rxt.js.map +1 -0
- package/dist/_chunks/{index-DKWn1eh9.mjs → index-DYKhGn15.mjs} +2 -2
- package/dist/_chunks/{index-DKWn1eh9.mjs.map → index-DYKhGn15.mjs.map} +1 -1
- package/dist/_chunks/{index-B5u3q4DO.mjs → index-DesLqdi-.mjs} +4 -4
- package/dist/_chunks/{index-DohcUdej.mjs → index-JVvkmiKE.mjs} +5 -5
- package/dist/_chunks/{index-DohcUdej.mjs.map → index-JVvkmiKE.mjs.map} +1 -1
- package/dist/_chunks/{index-DShP5BtK.mjs → index-mUDowsKQ.mjs} +2 -2
- package/dist/_chunks/{index-DShP5BtK.mjs.map → index-mUDowsKQ.mjs.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/_chunks/index-CDqKPoLF.mjs.map +0 -1
- package/dist/_chunks/index-DWcVnOi0.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
3
|
import { Thead, Tr, Th, Typography, VisuallyHidden, Td, Flex, LinkButton, Box, Table, Tbody } from "@strapi/design-system";
|
|
4
|
-
import { g as getTranslation, u as useApi } from "./index-
|
|
4
|
+
import { g as getTranslation, u as useApi } from "./index-DesLqdi-.mjs";
|
|
5
5
|
import { Page, Layouts, useNotification } from "@strapi/strapi/admin";
|
|
6
6
|
import { F as FullLoader, C as Center } from "./FullLoader-CrPED_dY.mjs";
|
|
7
7
|
import { E as EmptyBox } from "./EmptyBox-BM4IscSk.mjs";
|
|
@@ -5,7 +5,7 @@ import { Dialog, Typography, Button, Modal, Flex, SingleSelect, SingleSelectOpti
|
|
|
5
5
|
import { useState, useEffect, createContext, useRef, useContext, useReducer, useCallback, useMemo, forwardRef } from "react";
|
|
6
6
|
import { createPortal } from "react-dom";
|
|
7
7
|
import { useIntl } from "react-intl";
|
|
8
|
-
import { u as useApi, g as getTranslation, d as debounce, a as duplicateCheck, t as transformToUrl, U as URLInfo } from "./index-
|
|
8
|
+
import { u as useApi, g as getTranslation, d as debounce, a as duplicateCheck, t as transformToUrl, U as URLInfo } from "./index-JVvkmiKE.mjs";
|
|
9
9
|
import { useFetchClient, useNotification, Page, Layouts } from "@strapi/strapi/admin";
|
|
10
10
|
import { C as Center, F as FullLoader } from "./FullLoader-CrPED_dY.mjs";
|
|
11
11
|
import { E as EmptyBox } from "./EmptyBox-BM4IscSk.mjs";
|
|
@@ -91,12 +91,12 @@ function Delete({ variant, item, onDelete }) {
|
|
|
91
91
|
const { setModalType } = useContext(ModalContext);
|
|
92
92
|
const { formatMessage } = useIntl();
|
|
93
93
|
const { deleteNavigation } = useApi();
|
|
94
|
-
|
|
94
|
+
useNavigate();
|
|
95
95
|
const handleDelete = async () => {
|
|
96
96
|
try {
|
|
97
97
|
if (variant === "NavDelete") {
|
|
98
98
|
await deleteNavigation(item.documentId);
|
|
99
|
-
|
|
99
|
+
onDelete(item);
|
|
100
100
|
} else if (variant === "ItemDelete") {
|
|
101
101
|
const editedItem = { ...item, deleted: true };
|
|
102
102
|
onDelete(editedItem);
|
|
@@ -11888,9 +11888,11 @@ const Navigation = () => {
|
|
|
11888
11888
|
}
|
|
11889
11889
|
if (cachedNavigations.current) {
|
|
11890
11890
|
const selectedNav = cachedNavigations.current.find((nav) => nav.documentId === navigationId);
|
|
11891
|
-
|
|
11892
|
-
|
|
11893
|
-
|
|
11891
|
+
if (selectedNav) {
|
|
11892
|
+
switchNavigation(selectedNav, cachedNavigations.current);
|
|
11893
|
+
setLoading(false);
|
|
11894
|
+
return;
|
|
11895
|
+
}
|
|
11894
11896
|
}
|
|
11895
11897
|
setLoading(true);
|
|
11896
11898
|
await loadNavigations();
|
|
@@ -12097,7 +12099,9 @@ const Navigation = () => {
|
|
|
12097
12099
|
{
|
|
12098
12100
|
variant: "NavDelete",
|
|
12099
12101
|
item: actionItem,
|
|
12100
|
-
onDelete: () => {
|
|
12102
|
+
onDelete: async () => {
|
|
12103
|
+
cachedNavigations.current = null;
|
|
12104
|
+
navigate("/plugins/webatlas/navigation");
|
|
12101
12105
|
}
|
|
12102
12106
|
}
|
|
12103
12107
|
),
|
|
@@ -12197,3 +12201,4 @@ const App = () => {
|
|
|
12197
12201
|
export {
|
|
12198
12202
|
App as default
|
|
12199
12203
|
};
|
|
12204
|
+
//# sourceMappingURL=index-C2V-ZFHK.mjs.map
|