@mattisvensson/strapi-plugin-webatlas 0.4.0 → 0.4.2

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.
@@ -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-DUxYbDKG.mjs";
4
+ import { g as getTranslation, u as useApi } from "./index-CtJ_9-RB.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";
@@ -4,7 +4,7 @@ import { Dialog, Typography, Button, Modal, Flex, SingleSelect, SingleSelectOpti
4
4
  import { useState, useEffect, createContext, useRef, useContext, useReducer, useCallback, useMemo, forwardRef } from "react";
5
5
  import { createPortal } from "react-dom";
6
6
  import { useIntl } from "react-intl";
7
- import { u as useApi, g as getTranslation, d as debounce, a as duplicateCheck, t as transformToUrl, U as URLInfo } from "./index-DUxYbDKG.mjs";
7
+ import { u as useApi, g as getTranslation, d as debounce, a as duplicateCheck, t as transformToUrl, U as URLInfo } from "./index-CtJ_9-RB.mjs";
8
8
  import { useFetchClient, Page, Layouts, useNotification } from "@strapi/strapi/admin";
9
9
  import { C as Center, F as FullLoader } from "./FullLoader-CrPED_dY.mjs";
10
10
  import { E as EmptyBox } from "./EmptyBox-BM4IscSk.mjs";
@@ -10821,8 +10821,8 @@ const Navigation = () => {
10821
10821
  data.map(async (nav) => {
10822
10822
  const updatedItems = await Promise.all(
10823
10823
  nav.items.map(async (item) => {
10824
- const ct = item.route.relatedContentType;
10825
- const id = item.route.relatedDocumentId;
10824
+ const ct = item.route?.relatedContentType;
10825
+ const id = item.route?.relatedDocumentId;
10826
10826
  if (!ct || !id) return item;
10827
10827
  try {
10828
10828
  const { data: data2 } = await get(`/content-manager/collection-types/${ct}/${id}`);
@@ -41,7 +41,7 @@ const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
41
41
  );
42
42
  });
43
43
  };
44
- const version = "0.3.1";
44
+ const version = "0.4.1";
45
45
  const keywords = [];
46
46
  const type = "commonjs";
47
47
  const exports$1 = {
@@ -4077,7 +4077,7 @@ const index = {
4077
4077
  defaultMessage: "Routes"
4078
4078
  },
4079
4079
  Component: async () => {
4080
- const component = await Promise.resolve().then(() => require("./index-BpvDMe8t.js"));
4080
+ const component = await Promise.resolve().then(() => require("./index-CiY-8z8F.js"));
4081
4081
  return { default: component.default };
4082
4082
  },
4083
4083
  permissions: [
@@ -4096,7 +4096,7 @@ const index = {
4096
4096
  defaultMessage: "Navigation"
4097
4097
  },
4098
4098
  Component: async () => {
4099
- const component = await Promise.resolve().then(() => require("./index-CKHmlZdc.js"));
4099
+ const component = await Promise.resolve().then(() => require("./index-Clikpy91.js"));
4100
4100
  return { default: component.default };
4101
4101
  },
4102
4102
  permissions: [
@@ -4125,7 +4125,7 @@ const index = {
4125
4125
  Component: async () => {
4126
4126
  return await Promise.resolve().then(() => require(
4127
4127
  /* webpackChunkName: "webatlas-settings-page" */
4128
- "./index-C1rj8TbT.js"
4128
+ "./index-IHvD3566.js"
4129
4129
  ));
4130
4130
  },
4131
4131
  permissions: [
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useReducer, useState, useEffect } from "react";
3
3
  import { Button, Box, Accordion, Field, SingleSelect, SingleSelectOption, MultiSelect, MultiSelectOption } from "@strapi/design-system";
4
4
  import { Page, Layouts, useNotification } from "@strapi/strapi/admin";
5
- import { P as PLUGIN_NAME, g as getTranslation, T as Tooltip, b as usePluginConfig, c as useAllContentTypes, t as transformToUrl } from "./index-DUxYbDKG.mjs";
5
+ import { P as PLUGIN_NAME, g as getTranslation, T as Tooltip, b as usePluginConfig, c as useAllContentTypes, t as transformToUrl } from "./index-CtJ_9-RB.mjs";
6
6
  import { useIntl } from "react-intl";
7
7
  import "@strapi/icons/symbols";
8
8
  import { F as FullLoader } from "./FullLoader-CrPED_dY.mjs";
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const designSystem = require("@strapi/design-system");
6
- const index = require("./index-ChDbwEb-.js");
6
+ const index = require("./index-CSYue_D0.js");
7
7
  const admin = require("@strapi/strapi/admin");
8
8
  const FullLoader = require("./FullLoader-Cmsf8xS6.js");
9
9
  const EmptyBox = require("./EmptyBox-T8t29l25.js");
@@ -6,7 +6,7 @@ const designSystem = require("@strapi/design-system");
6
6
  const React = require("react");
7
7
  const ReactDOM = require("react-dom");
8
8
  const reactIntl = require("react-intl");
9
- const index = require("./index-ChDbwEb-.js");
9
+ const index = require("./index-CSYue_D0.js");
10
10
  const admin = require("@strapi/strapi/admin");
11
11
  const FullLoader = require("./FullLoader-Cmsf8xS6.js");
12
12
  const EmptyBox = require("./EmptyBox-T8t29l25.js");
@@ -10823,8 +10823,8 @@ const Navigation = () => {
10823
10823
  data.map(async (nav) => {
10824
10824
  const updatedItems = await Promise.all(
10825
10825
  nav.items.map(async (item) => {
10826
- const ct = item.route.relatedContentType;
10827
- const id = item.route.relatedDocumentId;
10826
+ const ct = item.route?.relatedContentType;
10827
+ const id = item.route?.relatedDocumentId;
10828
10828
  if (!ct || !id) return item;
10829
10829
  try {
10830
10830
  const { data: data2 } = await get(`/content-manager/collection-types/${ct}/${id}`);
@@ -23,7 +23,7 @@ const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
23
23
  );
24
24
  });
25
25
  };
26
- const version = "0.3.1";
26
+ const version = "0.4.1";
27
27
  const keywords = [];
28
28
  const type = "commonjs";
29
29
  const exports = {
@@ -4059,7 +4059,7 @@ const index = {
4059
4059
  defaultMessage: "Routes"
4060
4060
  },
4061
4061
  Component: async () => {
4062
- const component = await import("./index-B3JakJZB.mjs");
4062
+ const component = await import("./index-9db80XRS.mjs");
4063
4063
  return { default: component.default };
4064
4064
  },
4065
4065
  permissions: [
@@ -4078,7 +4078,7 @@ const index = {
4078
4078
  defaultMessage: "Navigation"
4079
4079
  },
4080
4080
  Component: async () => {
4081
- const component = await import("./index-DJ-Du5aY.mjs");
4081
+ const component = await import("./index-B4pe6Yuh.mjs");
4082
4082
  return { default: component.default };
4083
4083
  },
4084
4084
  permissions: [
@@ -4107,7 +4107,7 @@ const index = {
4107
4107
  Component: async () => {
4108
4108
  return await import(
4109
4109
  /* webpackChunkName: "webatlas-settings-page" */
4110
- "./index-Cce7AGi-.mjs"
4110
+ "./index-CVj7qbwh.mjs"
4111
4111
  );
4112
4112
  },
4113
4113
  permissions: [
@@ -4,7 +4,7 @@ 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-ChDbwEb-.js");
7
+ const index = require("./index-CSYue_D0.js");
8
8
  const reactIntl = require("react-intl");
9
9
  require("@strapi/icons/symbols");
10
10
  const FullLoader = require("./FullLoader-Cmsf8xS6.js");
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
- const index = require("../_chunks/index-ChDbwEb-.js");
2
+ const index = require("../_chunks/index-CSYue_D0.js");
3
3
  require("react/jsx-runtime");
4
4
  module.exports = index.index;
@@ -1,4 +1,4 @@
1
- import { i } from "../_chunks/index-DUxYbDKG.mjs";
1
+ import { i } from "../_chunks/index-CtJ_9-RB.mjs";
2
2
  import "react/jsx-runtime";
3
3
  export {
4
4
  i as default
@@ -20,7 +20,7 @@ function transformToUrl(input) {
20
20
  input = input.replace(/-+/g, "-");
21
21
  return input;
22
22
  }
23
- const version = "0.3.1";
23
+ const version = "0.4.1";
24
24
  const keywords = [];
25
25
  const type = "commonjs";
26
26
  const exports$1 = {
@@ -19,7 +19,7 @@ function transformToUrl(input) {
19
19
  input = input.replace(/-+/g, "-");
20
20
  return input;
21
21
  }
22
- const version = "0.3.1";
22
+ const version = "0.4.1";
23
23
  const keywords = [];
24
24
  const type = "commonjs";
25
25
  const exports = {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.4.0",
2
+ "version": "0.4.2",
3
3
  "keywords": [],
4
4
  "type": "commonjs",
5
5
  "exports": {