@mattisvensson/strapi-plugin-webatlas 0.11.3 → 0.11.5

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.
Files changed (48) hide show
  1. package/README.md +2 -1
  2. package/dist/admin/FullLoader-Btjb2W2p.mjs +0 -1
  3. package/dist/admin/FullLoader-Da2n70bJ.js +0 -1
  4. package/dist/admin/{SettingTitle-BdiDHFXF.js → SettingTitle-DGSkTF7e.js} +1 -2
  5. package/dist/admin/{SettingTitle-CcNfx_4T.mjs → SettingTitle-UPbQCuTC.mjs} +1 -2
  6. package/dist/admin/de-B5pRvs13.mjs +0 -1
  7. package/dist/admin/de-CqU1FU8C.js +0 -1
  8. package/dist/admin/en-BE-zzIv8.mjs +0 -1
  9. package/dist/admin/en-C7I90FwV.js +0 -1
  10. package/dist/admin/{index-uW7YJoRU.js → index-BiXgA5Ru.js} +5 -6
  11. package/dist/admin/{index-BkPtrXJO.js → index-Bm8lkiNL.js} +25 -16
  12. package/dist/admin/{index-DBG6vBGU.js → index-BztvKcfc.js} +1 -2
  13. package/dist/admin/{index-BMTlUOrK.mjs → index-CrgTYzgl.mjs} +2 -3
  14. package/dist/admin/{index-Sj2FxwAu.js → index-CyzPvvul.js} +2 -3
  15. package/dist/admin/{index-DkEReTkt.mjs → index-D4B4s4XO.mjs} +2 -3
  16. package/dist/admin/{index-DkfE_arE.mjs → index-DLoZpHxU.mjs} +5 -6
  17. package/dist/admin/{index-CEBh9c4X.js → index-DcUmtUyp.js} +2 -3
  18. package/dist/admin/{index-BX3hiURm.mjs → index-Dx-EVn-t.mjs} +25 -16
  19. package/dist/admin/{index-BdyLsiR4.mjs → index-b3yS9Dm7.mjs} +1 -2
  20. package/dist/admin/index.js +1 -2
  21. package/dist/admin/index.mjs +1 -2
  22. package/dist/admin/src/index.d.ts +12 -0
  23. package/dist/server/index.js +113 -125
  24. package/dist/server/index.mjs +113 -125
  25. package/dist/server/src/index.d.ts +305 -0
  26. package/package.json +18 -7
  27. package/dist/admin/FullLoader-Btjb2W2p.mjs.map +0 -1
  28. package/dist/admin/FullLoader-Da2n70bJ.js.map +0 -1
  29. package/dist/admin/SettingTitle-BdiDHFXF.js.map +0 -1
  30. package/dist/admin/SettingTitle-CcNfx_4T.mjs.map +0 -1
  31. package/dist/admin/de-B5pRvs13.mjs.map +0 -1
  32. package/dist/admin/de-CqU1FU8C.js.map +0 -1
  33. package/dist/admin/en-BE-zzIv8.mjs.map +0 -1
  34. package/dist/admin/en-C7I90FwV.js.map +0 -1
  35. package/dist/admin/index-BMTlUOrK.mjs.map +0 -1
  36. package/dist/admin/index-BX3hiURm.mjs.map +0 -1
  37. package/dist/admin/index-BdyLsiR4.mjs.map +0 -1
  38. package/dist/admin/index-BkPtrXJO.js.map +0 -1
  39. package/dist/admin/index-CEBh9c4X.js.map +0 -1
  40. package/dist/admin/index-DBG6vBGU.js.map +0 -1
  41. package/dist/admin/index-DkEReTkt.mjs.map +0 -1
  42. package/dist/admin/index-DkfE_arE.mjs.map +0 -1
  43. package/dist/admin/index-Sj2FxwAu.js.map +0 -1
  44. package/dist/admin/index-uW7YJoRU.js.map +0 -1
  45. package/dist/admin/index.js.map +0 -1
  46. package/dist/admin/index.mjs.map +0 -1
  47. package/dist/server/index.js.map +0 -1
  48. package/dist/server/index.mjs.map +0 -1
package/README.md CHANGED
@@ -61,7 +61,8 @@ To use **Webatlas**, you need to be running **Strapi v5.42.1** or higher. The pl
61
61
  **Minimum environment requirements**
62
62
 
63
63
  - Strapi `>=5.42.1`
64
- - Node.js `>=22.0.0`
64
+ - Node.js `>=22.x.x` and `<=24.x.x`
65
+ - NPM `>=6.0.0`
65
66
 
66
67
  ## 🔧 Configuration
67
68
 
@@ -13,4 +13,3 @@ export {
13
13
  Center as C,
14
14
  FullLoader as F
15
15
  };
16
- //# sourceMappingURL=FullLoader-Btjb2W2p.mjs.map
@@ -12,4 +12,3 @@ function FullLoader({ height }) {
12
12
  }
13
13
  exports.Center = Center;
14
14
  exports.FullLoader = FullLoader;
15
- //# sourceMappingURL=FullLoader-Da2n70bJ.js.map
@@ -2,7 +2,7 @@
2
2
  const jsxRuntime = require("react/jsx-runtime");
3
3
  const designSystem = require("@strapi/design-system");
4
4
  const admin = require("@strapi/strapi/admin");
5
- const index = require("./index-BkPtrXJO.js");
5
+ const index = require("./index-Bm8lkiNL.js");
6
6
  const reactIntl = require("react-intl");
7
7
  const icons = require("@strapi/icons");
8
8
  function PageWrapper({
@@ -68,4 +68,3 @@ function SettingTitle({ children }) {
68
68
  exports.ContentBox = ContentBox;
69
69
  exports.PageWrapper = PageWrapper;
70
70
  exports.SettingTitle = SettingTitle;
71
- //# sourceMappingURL=SettingTitle-BdiDHFXF.js.map
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { Button, Flex, Typography, Box } from "@strapi/design-system";
3
3
  import { Page, Layouts } from "@strapi/strapi/admin";
4
- import { f as PLUGIN_NAME, g as getTranslation } from "./index-BX3hiURm.mjs";
4
+ import { f as PLUGIN_NAME, g as getTranslation } from "./index-Dx-EVn-t.mjs";
5
5
  import { useIntl } from "react-intl";
6
6
  import { Check } from "@strapi/icons";
7
7
  function PageWrapper({
@@ -69,4 +69,3 @@ export {
69
69
  PageWrapper as P,
70
70
  SettingTitle as S
71
71
  };
72
- //# sourceMappingURL=SettingTitle-CcNfx_4T.mjs.map
@@ -126,4 +126,3 @@ const de = {
126
126
  export {
127
127
  de as default
128
128
  };
129
- //# sourceMappingURL=de-B5pRvs13.mjs.map
@@ -126,4 +126,3 @@ const de = {
126
126
  "webatlas.settings.section.navigation": "Navigation"
127
127
  };
128
128
  exports.default = de;
129
- //# sourceMappingURL=de-CqU1FU8C.js.map
@@ -126,4 +126,3 @@ const en = {
126
126
  export {
127
127
  en as default
128
128
  };
129
- //# sourceMappingURL=en-BE-zzIv8.mjs.map
@@ -126,4 +126,3 @@ const en = {
126
126
  "webatlas.settings.section.navigation": "Navigation"
127
127
  };
128
128
  exports.default = en;
129
- //# sourceMappingURL=en-C7I90FwV.js.map
@@ -7,7 +7,7 @@ const designSystem = require("@strapi/design-system");
7
7
  const React = require("react");
8
8
  const ReactDOM = require("react-dom");
9
9
  const reactIntl = require("react-intl");
10
- const index = require("./index-BkPtrXJO.js");
10
+ const index = require("./index-Bm8lkiNL.js");
11
11
  const admin = require("@strapi/strapi/admin");
12
12
  const FullLoader = require("./FullLoader-Da2n70bJ.js");
13
13
  const symbols = require("@strapi/icons/symbols");
@@ -582,8 +582,8 @@ function pathReducer(state, action) {
582
582
  prevValue: state.value,
583
583
  needsUrlCheck: false
584
584
  };
585
- case "RESET_URL_CHECK_FLAG":
586
- return { ...state, needsUrlCheck: false };
585
+ case "SET_URL_CHECK_FLAG":
586
+ return { ...state, needsUrlCheck: action.payload || false };
587
587
  case "SET_REPLACEMENT":
588
588
  return { ...state, replacement: action.payload };
589
589
  case "SET_UIDPATH":
@@ -866,7 +866,7 @@ function ItemDetails({
866
866
  routeDocumentId: route.documentId,
867
867
  withoutTransform: true
868
868
  });
869
- dispatchPath({ type: "RESET_URL_CHECK_FLAG" });
869
+ dispatchPath({ type: "SET_URL_CHECK_FLAG" });
870
870
  }
871
871
  }, [path.needsUrlCheck, route.documentId]);
872
872
  React.useEffect(() => {
@@ -6747,7 +6747,7 @@ function ItemEditComponent({
6747
6747
  url: path.value,
6748
6748
  routeDocumentId: item.route.documentId
6749
6749
  });
6750
- dispatchPath({ type: "RESET_URL_CHECK_FLAG" });
6750
+ dispatchPath({ type: "SET_URL_CHECK_FLAG" });
6751
6751
  }
6752
6752
  }, [path.needsUrlCheck, item.route.documentId]);
6753
6753
  const updateItem = async () => {
@@ -9527,4 +9527,3 @@ const App = () => {
9527
9527
  ] }) });
9528
9528
  };
9529
9529
  exports.default = App;
9530
- //# sourceMappingURL=index-uW7YJoRU.js.map
@@ -70,7 +70,7 @@ function transformToUrl(input, replaceSlash = true) {
70
70
  input = input.replace(/-+/g, "-");
71
71
  return input;
72
72
  }
73
- const version = "0.11.3";
73
+ const version = "0.11.4";
74
74
  const strapi$1 = { "name": "webatlas", "displayName": "Webatlas" };
75
75
  const pluginPkg = {
76
76
  version,
@@ -3681,7 +3681,7 @@ function Tooltip({ description }) {
3681
3681
  ) }) })
3682
3682
  ] }) });
3683
3683
  }
3684
- function PathInput({ path, dispatchPath, isOverride, config }) {
3684
+ function PathInput({ path, dispatchPath, isOverride, config, hasUserInteracted }) {
3685
3685
  const { formatMessage } = reactIntl.useIntl();
3686
3686
  const displayedPath = isOverride && path.overridePath !== void 0 ? path.overridePath : path.value ?? "";
3687
3687
  const inputBorder = path.replacement === null ? "" : path.replacement ? "1px solid #ee5e52" : "1px solid #5cb176";
@@ -3719,12 +3719,21 @@ function PathInput({ path, dispatchPath, isOverride, config }) {
3719
3719
  {
3720
3720
  id: "path-input",
3721
3721
  value: displayedPath,
3722
- onChange: (e) => dispatchPath({ type: "SET_OVERRIDEPATH", payload: e.target.value }),
3722
+ onChange: (e) => {
3723
+ hasUserInteracted.current = true;
3724
+ dispatchPath({ type: "SET_OVERRIDEPATH", payload: e.target.value });
3725
+ },
3723
3726
  disabled: !isOverride,
3724
- onBlur: (e) => dispatchPath({
3725
- type: "SET_OVERRIDEPATH",
3726
- payload: transformToUrl(e.target.value, false)
3727
- }),
3727
+ onBlur: (e) => {
3728
+ dispatchPath({
3729
+ type: "SET_OVERRIDEPATH",
3730
+ payload: transformToUrl(e.target.value, false)
3731
+ });
3732
+ dispatchPath({
3733
+ type: "SET_URL_CHECK_FLAG",
3734
+ payload: true
3735
+ });
3736
+ },
3728
3737
  style: { outline: inputBorder }
3729
3738
  }
3730
3739
  ),
@@ -3813,8 +3822,8 @@ function reducer(state, action) {
3813
3822
  prevValue: state.value,
3814
3823
  needsUrlCheck: false
3815
3824
  };
3816
- case "RESET_URL_CHECK_FLAG":
3817
- return { ...state, needsUrlCheck: false };
3825
+ case "SET_URL_CHECK_FLAG":
3826
+ return { ...state, needsUrlCheck: action.payload || false };
3818
3827
  case "SET_REPLACEMENT":
3819
3828
  return { ...state, replacement: action.payload };
3820
3829
  case "SET_UIDPATH":
@@ -3946,7 +3955,7 @@ const Panel = ({ config }) => {
3946
3955
  if (path.needsUrlCheck && path.value) {
3947
3956
  if (path.uidPath === path.value || initialPath.current === path.value) return;
3948
3957
  debouncedCheckPath(path.value, route?.documentId || null);
3949
- dispatchPath({ type: "RESET_URL_CHECK_FLAG" });
3958
+ dispatchPath({ type: "SET_URL_CHECK_FLAG" });
3950
3959
  } else {
3951
3960
  setValidationState("idle");
3952
3961
  dispatchPath({ type: "SET_REPLACEMENT", payload: null });
@@ -4073,7 +4082,8 @@ const Panel = ({ config }) => {
4073
4082
  path,
4074
4083
  dispatchPath,
4075
4084
  isOverride,
4076
- config
4085
+ config,
4086
+ hasUserInteracted
4077
4087
  }
4078
4088
  ),
4079
4089
  validationState !== "initial" && /* @__PURE__ */ jsxRuntime.jsx(PathInfo, { validationState, replacement: path.replacement })
@@ -4159,7 +4169,7 @@ const index = {
4159
4169
  id: `${PLUGIN_ID}.link.paths`,
4160
4170
  defaultMessage: "Paths"
4161
4171
  },
4162
- Component: () => Promise.resolve().then(() => require("./index-DBG6vBGU.js")),
4172
+ Component: () => Promise.resolve().then(() => require("./index-BztvKcfc.js")),
4163
4173
  permissions: [pluginPermissions["page.routes"][0]]
4164
4174
  });
4165
4175
  app.addMenuLink({
@@ -4169,7 +4179,7 @@ const index = {
4169
4179
  id: `${PLUGIN_ID}.link.navigation`,
4170
4180
  defaultMessage: "Navigation"
4171
4181
  },
4172
- Component: () => Promise.resolve().then(() => require("./index-uW7YJoRU.js")),
4182
+ Component: () => Promise.resolve().then(() => require("./index-BiXgA5Ru.js")),
4173
4183
  permissions: [pluginPermissions["page.navigation"][0]]
4174
4184
  });
4175
4185
  app.addSettingsLink(
@@ -4187,7 +4197,7 @@ const index = {
4187
4197
  },
4188
4198
  id: `${PLUGIN_ID}-general`,
4189
4199
  to: `${PLUGIN_ID}/general`,
4190
- Component: () => Promise.resolve().then(() => require("./index-CEBh9c4X.js")),
4200
+ Component: () => Promise.resolve().then(() => require("./index-DcUmtUyp.js")),
4191
4201
  permissions: [pluginPermissions["settings.general"][0]]
4192
4202
  }
4193
4203
  );
@@ -4198,7 +4208,7 @@ const index = {
4198
4208
  },
4199
4209
  id: `${PLUGIN_ID}-navigation`,
4200
4210
  to: `${PLUGIN_ID}/navigation`,
4201
- Component: () => Promise.resolve().then(() => require("./index-Sj2FxwAu.js")),
4211
+ Component: () => Promise.resolve().then(() => require("./index-CyzPvvul.js")),
4202
4212
  permissions: [pluginPermissions["settings.navigation"][0]]
4203
4213
  });
4204
4214
  app.registerPlugin({
@@ -4237,4 +4247,3 @@ exports.pluginPermissions = pluginPermissions;
4237
4247
  exports.useAllContentTypes = useAllContentTypes;
4238
4248
  exports.useApi = useApi;
4239
4249
  exports.usePluginConfig = usePluginConfig;
4240
- //# sourceMappingURL=index-BkPtrXJO.js.map
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
- const index = require("./index-BkPtrXJO.js");
5
+ const index = require("./index-Bm8lkiNL.js");
6
6
  const admin = require("@strapi/strapi/admin");
7
7
  const designSystem = require("@strapi/design-system");
8
8
  require("@strapi/icons/symbols");
@@ -242,4 +242,3 @@ const Paths = () => {
242
242
  ] }) });
243
243
  };
244
244
  exports.default = Paths;
245
- //# sourceMappingURL=index-DBG6vBGU.js.map
@@ -2,11 +2,11 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useReducer, useState, useRef, useEffect } from "react";
3
3
  import { Box, Accordion, Field, SingleSelect, SingleSelectOption, Typography, Link } from "@strapi/design-system";
4
4
  import { useNotification, Page } from "@strapi/strapi/admin";
5
- import { g as getTranslation, c as usePluginConfig, e as useAllContentTypes, p as pluginPermissions, f as PLUGIN_NAME, h as PLUGIN_VERSION } from "./index-BX3hiURm.mjs";
5
+ import { g as getTranslation, c as usePluginConfig, e as useAllContentTypes, p as pluginPermissions, f as PLUGIN_NAME, h as PLUGIN_VERSION } from "./index-Dx-EVn-t.mjs";
6
6
  import { useIntl } from "react-intl";
7
7
  import "@strapi/icons/symbols";
8
8
  import { F as FullLoader } from "./FullLoader-Btjb2W2p.mjs";
9
- import { P as PageWrapper, C as ContentBox, S as SettingTitle } from "./SettingTitle-CcNfx_4T.mjs";
9
+ import { P as PageWrapper, C as ContentBox, S as SettingTitle } from "./SettingTitle-UPbQCuTC.mjs";
10
10
  import { ExternalLink } from "@strapi/icons";
11
11
  function ContentTypeAccordion({
12
12
  contentType,
@@ -241,4 +241,3 @@ const Settings = () => {
241
241
  export {
242
242
  Settings as default
243
243
  };
244
- //# sourceMappingURL=index-BMTlUOrK.mjs.map
@@ -4,11 +4,11 @@ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const designSystem = require("@strapi/design-system");
6
6
  const admin = require("@strapi/strapi/admin");
7
- const index = require("./index-BkPtrXJO.js");
7
+ const index = require("./index-Bm8lkiNL.js");
8
8
  const reactIntl = require("react-intl");
9
9
  require("@strapi/icons/symbols");
10
10
  const FullLoader = require("./FullLoader-Da2n70bJ.js");
11
- const SettingTitle = require("./SettingTitle-BdiDHFXF.js");
11
+ const SettingTitle = require("./SettingTitle-DGSkTF7e.js");
12
12
  function reducer(newConfig, action) {
13
13
  switch (action.type) {
14
14
  case "SET_MAX_DEPTH":
@@ -137,4 +137,3 @@ const Settings = () => {
137
137
  ) });
138
138
  };
139
139
  exports.default = Settings;
140
- //# sourceMappingURL=index-Sj2FxwAu.js.map
@@ -2,11 +2,11 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useReducer, useState, useRef, useEffect } from "react";
3
3
  import { Field } from "@strapi/design-system";
4
4
  import { useNotification, Page } from "@strapi/strapi/admin";
5
- import { c as usePluginConfig, g as getTranslation, p as pluginPermissions } from "./index-BX3hiURm.mjs";
5
+ import { c as usePluginConfig, g as getTranslation, p as pluginPermissions } from "./index-Dx-EVn-t.mjs";
6
6
  import { useIntl } from "react-intl";
7
7
  import "@strapi/icons/symbols";
8
8
  import { F as FullLoader } from "./FullLoader-Btjb2W2p.mjs";
9
- import { P as PageWrapper, C as ContentBox, S as SettingTitle } from "./SettingTitle-CcNfx_4T.mjs";
9
+ import { P as PageWrapper, C as ContentBox, S as SettingTitle } from "./SettingTitle-UPbQCuTC.mjs";
10
10
  function reducer(newConfig, action) {
11
11
  switch (action.type) {
12
12
  case "SET_MAX_DEPTH":
@@ -137,4 +137,3 @@ const Settings = () => {
137
137
  export {
138
138
  Settings as default
139
139
  };
140
- //# sourceMappingURL=index-DkEReTkt.mjs.map
@@ -5,7 +5,7 @@ import { Box, Typography, Dialog, Button, Modal, Flex, SingleSelect, SingleSelec
5
5
  import { useState, useEffect, createContext, useRef, useContext, useMemo, useReducer, useCallback, 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, P as PLUGIN_ID, d as debounce, a as duplicateCheck, T as Tooltip, b as PathInfo, c as usePluginConfig, p as pluginPermissions } from "./index-BX3hiURm.mjs";
8
+ import { u as useApi, g as getTranslation, P as PLUGIN_ID, d as debounce, a as duplicateCheck, T as Tooltip, b as PathInfo, c as usePluginConfig, p as pluginPermissions } from "./index-Dx-EVn-t.mjs";
9
9
  import { useNotification, useFetchClient, Page, Layouts } from "@strapi/strapi/admin";
10
10
  import { C as Center, F as FullLoader } from "./FullLoader-Btjb2W2p.mjs";
11
11
  import { EmptyDocuments } from "@strapi/icons/symbols";
@@ -580,8 +580,8 @@ function pathReducer(state, action) {
580
580
  prevValue: state.value,
581
581
  needsUrlCheck: false
582
582
  };
583
- case "RESET_URL_CHECK_FLAG":
584
- return { ...state, needsUrlCheck: false };
583
+ case "SET_URL_CHECK_FLAG":
584
+ return { ...state, needsUrlCheck: action.payload || false };
585
585
  case "SET_REPLACEMENT":
586
586
  return { ...state, replacement: action.payload };
587
587
  case "SET_UIDPATH":
@@ -864,7 +864,7 @@ function ItemDetails({
864
864
  routeDocumentId: route.documentId,
865
865
  withoutTransform: true
866
866
  });
867
- dispatchPath({ type: "RESET_URL_CHECK_FLAG" });
867
+ dispatchPath({ type: "SET_URL_CHECK_FLAG" });
868
868
  }
869
869
  }, [path.needsUrlCheck, route.documentId]);
870
870
  useEffect(() => {
@@ -6745,7 +6745,7 @@ function ItemEditComponent({
6745
6745
  url: path.value,
6746
6746
  routeDocumentId: item.route.documentId
6747
6747
  });
6748
- dispatchPath({ type: "RESET_URL_CHECK_FLAG" });
6748
+ dispatchPath({ type: "SET_URL_CHECK_FLAG" });
6749
6749
  }
6750
6750
  }, [path.needsUrlCheck, item.route.documentId]);
6751
6751
  const updateItem = async () => {
@@ -9527,4 +9527,3 @@ const App = () => {
9527
9527
  export {
9528
9528
  App as default
9529
9529
  };
9530
- //# sourceMappingURL=index-DkfE_arE.mjs.map
@@ -4,11 +4,11 @@ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const designSystem = require("@strapi/design-system");
6
6
  const admin = require("@strapi/strapi/admin");
7
- const index = require("./index-BkPtrXJO.js");
7
+ const index = require("./index-Bm8lkiNL.js");
8
8
  const reactIntl = require("react-intl");
9
9
  require("@strapi/icons/symbols");
10
10
  const FullLoader = require("./FullLoader-Da2n70bJ.js");
11
- const SettingTitle = require("./SettingTitle-BdiDHFXF.js");
11
+ const SettingTitle = require("./SettingTitle-DGSkTF7e.js");
12
12
  const icons = require("@strapi/icons");
13
13
  function ContentTypeAccordion({
14
14
  contentType,
@@ -241,4 +241,3 @@ const Settings = () => {
241
241
  ) });
242
242
  };
243
243
  exports.default = Settings;
244
- //# sourceMappingURL=index-CEBh9c4X.js.map
@@ -52,7 +52,7 @@ function transformToUrl(input, replaceSlash = true) {
52
52
  input = input.replace(/-+/g, "-");
53
53
  return input;
54
54
  }
55
- const version = "0.11.3";
55
+ const version = "0.11.4";
56
56
  const strapi$1 = { "name": "webatlas", "displayName": "Webatlas" };
57
57
  const pluginPkg = {
58
58
  version,
@@ -3663,7 +3663,7 @@ function Tooltip({ description }) {
3663
3663
  ) }) })
3664
3664
  ] }) });
3665
3665
  }
3666
- function PathInput({ path, dispatchPath, isOverride, config }) {
3666
+ function PathInput({ path, dispatchPath, isOverride, config, hasUserInteracted }) {
3667
3667
  const { formatMessage } = useIntl();
3668
3668
  const displayedPath = isOverride && path.overridePath !== void 0 ? path.overridePath : path.value ?? "";
3669
3669
  const inputBorder = path.replacement === null ? "" : path.replacement ? "1px solid #ee5e52" : "1px solid #5cb176";
@@ -3701,12 +3701,21 @@ function PathInput({ path, dispatchPath, isOverride, config }) {
3701
3701
  {
3702
3702
  id: "path-input",
3703
3703
  value: displayedPath,
3704
- onChange: (e) => dispatchPath({ type: "SET_OVERRIDEPATH", payload: e.target.value }),
3704
+ onChange: (e) => {
3705
+ hasUserInteracted.current = true;
3706
+ dispatchPath({ type: "SET_OVERRIDEPATH", payload: e.target.value });
3707
+ },
3705
3708
  disabled: !isOverride,
3706
- onBlur: (e) => dispatchPath({
3707
- type: "SET_OVERRIDEPATH",
3708
- payload: transformToUrl(e.target.value, false)
3709
- }),
3709
+ onBlur: (e) => {
3710
+ dispatchPath({
3711
+ type: "SET_OVERRIDEPATH",
3712
+ payload: transformToUrl(e.target.value, false)
3713
+ });
3714
+ dispatchPath({
3715
+ type: "SET_URL_CHECK_FLAG",
3716
+ payload: true
3717
+ });
3718
+ },
3710
3719
  style: { outline: inputBorder }
3711
3720
  }
3712
3721
  ),
@@ -3795,8 +3804,8 @@ function reducer(state, action) {
3795
3804
  prevValue: state.value,
3796
3805
  needsUrlCheck: false
3797
3806
  };
3798
- case "RESET_URL_CHECK_FLAG":
3799
- return { ...state, needsUrlCheck: false };
3807
+ case "SET_URL_CHECK_FLAG":
3808
+ return { ...state, needsUrlCheck: action.payload || false };
3800
3809
  case "SET_REPLACEMENT":
3801
3810
  return { ...state, replacement: action.payload };
3802
3811
  case "SET_UIDPATH":
@@ -3928,7 +3937,7 @@ const Panel = ({ config }) => {
3928
3937
  if (path.needsUrlCheck && path.value) {
3929
3938
  if (path.uidPath === path.value || initialPath.current === path.value) return;
3930
3939
  debouncedCheckPath(path.value, route?.documentId || null);
3931
- dispatchPath({ type: "RESET_URL_CHECK_FLAG" });
3940
+ dispatchPath({ type: "SET_URL_CHECK_FLAG" });
3932
3941
  } else {
3933
3942
  setValidationState("idle");
3934
3943
  dispatchPath({ type: "SET_REPLACEMENT", payload: null });
@@ -4055,7 +4064,8 @@ const Panel = ({ config }) => {
4055
4064
  path,
4056
4065
  dispatchPath,
4057
4066
  isOverride,
4058
- config
4067
+ config,
4068
+ hasUserInteracted
4059
4069
  }
4060
4070
  ),
4061
4071
  validationState !== "initial" && /* @__PURE__ */ jsx(PathInfo, { validationState, replacement: path.replacement })
@@ -4141,7 +4151,7 @@ const index = {
4141
4151
  id: `${PLUGIN_ID}.link.paths`,
4142
4152
  defaultMessage: "Paths"
4143
4153
  },
4144
- Component: () => import("./index-BdyLsiR4.mjs"),
4154
+ Component: () => import("./index-b3yS9Dm7.mjs"),
4145
4155
  permissions: [pluginPermissions["page.routes"][0]]
4146
4156
  });
4147
4157
  app.addMenuLink({
@@ -4151,7 +4161,7 @@ const index = {
4151
4161
  id: `${PLUGIN_ID}.link.navigation`,
4152
4162
  defaultMessage: "Navigation"
4153
4163
  },
4154
- Component: () => import("./index-DkfE_arE.mjs"),
4164
+ Component: () => import("./index-DLoZpHxU.mjs"),
4155
4165
  permissions: [pluginPermissions["page.navigation"][0]]
4156
4166
  });
4157
4167
  app.addSettingsLink(
@@ -4169,7 +4179,7 @@ const index = {
4169
4179
  },
4170
4180
  id: `${PLUGIN_ID}-general`,
4171
4181
  to: `${PLUGIN_ID}/general`,
4172
- Component: () => import("./index-BMTlUOrK.mjs"),
4182
+ Component: () => import("./index-CrgTYzgl.mjs"),
4173
4183
  permissions: [pluginPermissions["settings.general"][0]]
4174
4184
  }
4175
4185
  );
@@ -4180,7 +4190,7 @@ const index = {
4180
4190
  },
4181
4191
  id: `${PLUGIN_ID}-navigation`,
4182
4192
  to: `${PLUGIN_ID}/navigation`,
4183
- Component: () => import("./index-DkEReTkt.mjs"),
4193
+ Component: () => import("./index-D4B4s4XO.mjs"),
4184
4194
  permissions: [pluginPermissions["settings.navigation"][0]]
4185
4195
  });
4186
4196
  app.registerPlugin({
@@ -4221,4 +4231,3 @@ export {
4221
4231
  pluginPermissions as p,
4222
4232
  useApi as u
4223
4233
  };
4224
- //# sourceMappingURL=index-BX3hiURm.mjs.map
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
2
  import { useState, useEffect, useMemo } from "react";
3
- import { g as getTranslation, u as useApi, d as debounce, p as pluginPermissions } from "./index-BX3hiURm.mjs";
3
+ import { g as getTranslation, u as useApi, d as debounce, p as pluginPermissions } from "./index-Dx-EVn-t.mjs";
4
4
  import { Page, Layouts, useNotification } from "@strapi/strapi/admin";
5
5
  import { Grid, Box, Field, Thead, Tr, Th, Typography, VisuallyHidden, Td, Flex, LinkButton, Table, Tbody, EmptyStateLayout } from "@strapi/design-system";
6
6
  import "@strapi/icons/symbols";
@@ -242,4 +242,3 @@ const Paths = () => {
242
242
  export {
243
243
  Paths as default
244
244
  };
245
- //# sourceMappingURL=index-BdyLsiR4.mjs.map
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const index = require("./index-BkPtrXJO.js");
3
+ const index = require("./index-Bm8lkiNL.js");
4
4
  exports.default = index.index;
5
- //# sourceMappingURL=index.js.map
@@ -1,5 +1,4 @@
1
- import { i } from "./index-BX3hiURm.mjs";
1
+ import { i } from "./index-Dx-EVn-t.mjs";
2
2
  export {
3
3
  i as default
4
4
  };
5
- //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,12 @@
1
+ import { StrapiApp } from '@strapi/admin/strapi-admin';
2
+ declare const _default: {
3
+ register(app: StrapiApp): void;
4
+ bootstrap(app: StrapiApp): void;
5
+ registerTrads({ locales }: {
6
+ locales: string[];
7
+ }): Promise<{
8
+ data: any;
9
+ locale: string;
10
+ }[]>;
11
+ };
12
+ export default _default;