@mattisvensson/strapi-plugin-webatlas 0.11.8 → 0.11.9
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/admin/{RoutePicker-BEmAG6aK.js → RoutePicker-D9RNp4zS.js} +1 -1
- package/dist/admin/{RoutePicker-CFqZfjDu.mjs → RoutePicker-p1rh5rcZ.mjs} +1 -1
- package/dist/admin/{SettingTitle-D_X8W1mC.mjs → SettingTitle-BMHyfLrM.mjs} +1 -1
- package/dist/admin/{SettingTitle-DRvX07-B.js → SettingTitle-CwB5CsY0.js} +1 -1
- package/dist/admin/{index-B9kmIJ1Y.mjs → index-BE6CLx3P.mjs} +1 -1
- package/dist/admin/{index-lZ3-1icm.js → index-CFf370lR.js} +6 -6
- package/dist/admin/{index-CTbP2yjO.js → index-Df1hDvta.js} +2 -2
- package/dist/admin/{index-HCnLKUJN.mjs → index-DpS40t3Q.mjs} +2 -2
- package/dist/admin/{index-DZkauelU.mjs → index-G7qx6Oy7.mjs} +6 -6
- package/dist/admin/{index-CYF5Yipx.mjs → index-IxsV1TAn.mjs} +1 -1
- package/dist/admin/{index-_8exe5fa.js → index-LNTPJt5H.js} +1 -1
- package/dist/admin/{index-uD-voTpW.mjs → index-Z6ahaWtf.mjs} +2 -2
- package/dist/admin/{index-CSknqklZ.js → index-zr90q-6H.js} +1 -1
- package/dist/admin/{index-ClG-B5Tr.js → index-zskvsDgF.js} +2 -2
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/index.mjs +2 -2
- package/package.json +1 -1
|
@@ -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 icons = require("@strapi/icons");
|
|
7
|
-
const index = require("./index-
|
|
7
|
+
const index = require("./index-CFf370lR.js");
|
|
8
8
|
require("@strapi/strapi/admin");
|
|
9
9
|
const Input = React.forwardRef((props, ref) => {
|
|
10
10
|
const { attribute, disabled, placeholder, label, name, onChange, required, value, hint } = props;
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef, useState, useEffect } from "react";
|
|
3
3
|
import { Field, Combobox, ComboboxOption, Box } from "@strapi/design-system";
|
|
4
4
|
import { ExternalLink, Link } from "@strapi/icons";
|
|
5
|
-
import { u as useApi } from "./index-
|
|
5
|
+
import { u as useApi } from "./index-G7qx6Oy7.mjs";
|
|
6
6
|
import "@strapi/strapi/admin";
|
|
7
7
|
const Input = forwardRef((props, ref) => {
|
|
8
8
|
const { attribute, disabled, placeholder, label, name, onChange, required, value, hint } = props;
|
|
@@ -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-
|
|
4
|
+
import { f as PLUGIN_NAME, g as getTranslation } from "./index-G7qx6Oy7.mjs";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
6
|
import { Check } from "@strapi/icons";
|
|
7
7
|
function PageWrapper({
|
|
@@ -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-
|
|
5
|
+
const index = require("./index-CFf370lR.js");
|
|
6
6
|
const reactIntl = require("react-intl");
|
|
7
7
|
const icons = require("@strapi/icons");
|
|
8
8
|
function PageWrapper({
|
|
@@ -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-
|
|
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-G7qx6Oy7.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";
|
|
@@ -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.
|
|
73
|
+
const version = "0.11.9";
|
|
74
74
|
const strapi$1 = { "name": "webatlas", "displayName": "Webatlas" };
|
|
75
75
|
const pluginPkg = {
|
|
76
76
|
version,
|
|
@@ -4169,7 +4169,7 @@ const index = {
|
|
|
4169
4169
|
id: `${PLUGIN_ID}.link.paths`,
|
|
4170
4170
|
defaultMessage: "Paths"
|
|
4171
4171
|
},
|
|
4172
|
-
Component: () => Promise.resolve().then(() => require("./index-
|
|
4172
|
+
Component: () => Promise.resolve().then(() => require("./index-LNTPJt5H.js")),
|
|
4173
4173
|
permissions: [pluginPermissions["page.routes"][0]]
|
|
4174
4174
|
});
|
|
4175
4175
|
app.addMenuLink({
|
|
@@ -4179,7 +4179,7 @@ const index = {
|
|
|
4179
4179
|
id: `${PLUGIN_ID}.link.navigation`,
|
|
4180
4180
|
defaultMessage: "Navigation"
|
|
4181
4181
|
},
|
|
4182
|
-
Component: () => Promise.resolve().then(() => require("./index-
|
|
4182
|
+
Component: () => Promise.resolve().then(() => require("./index-zr90q-6H.js")),
|
|
4183
4183
|
permissions: [pluginPermissions["page.navigation"][0]]
|
|
4184
4184
|
});
|
|
4185
4185
|
app.addSettingsLink(
|
|
@@ -4197,7 +4197,7 @@ const index = {
|
|
|
4197
4197
|
},
|
|
4198
4198
|
id: `${PLUGIN_ID}-general`,
|
|
4199
4199
|
to: `${PLUGIN_ID}/general`,
|
|
4200
|
-
Component: () => Promise.resolve().then(() => require("./index-
|
|
4200
|
+
Component: () => Promise.resolve().then(() => require("./index-Df1hDvta.js")),
|
|
4201
4201
|
permissions: [pluginPermissions["settings.general"][0]]
|
|
4202
4202
|
}
|
|
4203
4203
|
);
|
|
@@ -4208,7 +4208,7 @@ const index = {
|
|
|
4208
4208
|
},
|
|
4209
4209
|
id: `${PLUGIN_ID}-navigation`,
|
|
4210
4210
|
to: `${PLUGIN_ID}/navigation`,
|
|
4211
|
-
Component: () => Promise.resolve().then(() => require("./index-
|
|
4211
|
+
Component: () => Promise.resolve().then(() => require("./index-zskvsDgF.js")),
|
|
4212
4212
|
permissions: [pluginPermissions["settings.navigation"][0]]
|
|
4213
4213
|
});
|
|
4214
4214
|
app.customFields.register({
|
|
@@ -4224,7 +4224,7 @@ const index = {
|
|
|
4224
4224
|
defaultMessage: "Select a route"
|
|
4225
4225
|
},
|
|
4226
4226
|
components: {
|
|
4227
|
-
Input: async () => Promise.resolve().then(() => require("./RoutePicker-
|
|
4227
|
+
Input: async () => Promise.resolve().then(() => require("./RoutePicker-D9RNp4zS.js")).then((module2) => ({
|
|
4228
4228
|
default: module2.default
|
|
4229
4229
|
}))
|
|
4230
4230
|
},
|
|
@@ -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-
|
|
7
|
+
const index = require("./index-CFf370lR.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-
|
|
11
|
+
const SettingTitle = require("./SettingTitle-CwB5CsY0.js");
|
|
12
12
|
const icons = require("@strapi/icons");
|
|
13
13
|
function ContentTypeAccordion({
|
|
14
14
|
contentType,
|
|
@@ -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-
|
|
5
|
+
import { c as usePluginConfig, g as getTranslation, p as pluginPermissions } from "./index-G7qx6Oy7.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-
|
|
9
|
+
import { P as PageWrapper, C as ContentBox, S as SettingTitle } from "./SettingTitle-BMHyfLrM.mjs";
|
|
10
10
|
function reducer(newConfig, action) {
|
|
11
11
|
switch (action.type) {
|
|
12
12
|
case "SET_MAX_DEPTH":
|
|
@@ -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.
|
|
55
|
+
const version = "0.11.9";
|
|
56
56
|
const strapi$1 = { "name": "webatlas", "displayName": "Webatlas" };
|
|
57
57
|
const pluginPkg = {
|
|
58
58
|
version,
|
|
@@ -4151,7 +4151,7 @@ const index = {
|
|
|
4151
4151
|
id: `${PLUGIN_ID}.link.paths`,
|
|
4152
4152
|
defaultMessage: "Paths"
|
|
4153
4153
|
},
|
|
4154
|
-
Component: () => import("./index-
|
|
4154
|
+
Component: () => import("./index-IxsV1TAn.mjs"),
|
|
4155
4155
|
permissions: [pluginPermissions["page.routes"][0]]
|
|
4156
4156
|
});
|
|
4157
4157
|
app.addMenuLink({
|
|
@@ -4161,7 +4161,7 @@ const index = {
|
|
|
4161
4161
|
id: `${PLUGIN_ID}.link.navigation`,
|
|
4162
4162
|
defaultMessage: "Navigation"
|
|
4163
4163
|
},
|
|
4164
|
-
Component: () => import("./index-
|
|
4164
|
+
Component: () => import("./index-BE6CLx3P.mjs"),
|
|
4165
4165
|
permissions: [pluginPermissions["page.navigation"][0]]
|
|
4166
4166
|
});
|
|
4167
4167
|
app.addSettingsLink(
|
|
@@ -4179,7 +4179,7 @@ const index = {
|
|
|
4179
4179
|
},
|
|
4180
4180
|
id: `${PLUGIN_ID}-general`,
|
|
4181
4181
|
to: `${PLUGIN_ID}/general`,
|
|
4182
|
-
Component: () => import("./index-
|
|
4182
|
+
Component: () => import("./index-Z6ahaWtf.mjs"),
|
|
4183
4183
|
permissions: [pluginPermissions["settings.general"][0]]
|
|
4184
4184
|
}
|
|
4185
4185
|
);
|
|
@@ -4190,7 +4190,7 @@ const index = {
|
|
|
4190
4190
|
},
|
|
4191
4191
|
id: `${PLUGIN_ID}-navigation`,
|
|
4192
4192
|
to: `${PLUGIN_ID}/navigation`,
|
|
4193
|
-
Component: () => import("./index-
|
|
4193
|
+
Component: () => import("./index-DpS40t3Q.mjs"),
|
|
4194
4194
|
permissions: [pluginPermissions["settings.navigation"][0]]
|
|
4195
4195
|
});
|
|
4196
4196
|
app.customFields.register({
|
|
@@ -4206,7 +4206,7 @@ const index = {
|
|
|
4206
4206
|
defaultMessage: "Select a route"
|
|
4207
4207
|
},
|
|
4208
4208
|
components: {
|
|
4209
|
-
Input: async () => import("./RoutePicker-
|
|
4209
|
+
Input: async () => import("./RoutePicker-p1rh5rcZ.mjs").then((module) => ({
|
|
4210
4210
|
default: module.default
|
|
4211
4211
|
}))
|
|
4212
4212
|
},
|
|
@@ -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-
|
|
3
|
+
import { g as getTranslation, u as useApi, d as debounce, p as pluginPermissions } from "./index-G7qx6Oy7.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";
|
|
@@ -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-
|
|
5
|
+
const index = require("./index-CFf370lR.js");
|
|
6
6
|
const admin = require("@strapi/strapi/admin");
|
|
7
7
|
const designSystem = require("@strapi/design-system");
|
|
8
8
|
require("@strapi/icons/symbols");
|
|
@@ -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-
|
|
5
|
+
import { g as getTranslation, c as usePluginConfig, e as useAllContentTypes, p as pluginPermissions, f as PLUGIN_NAME, h as PLUGIN_VERSION } from "./index-G7qx6Oy7.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-
|
|
9
|
+
import { P as PageWrapper, C as ContentBox, S as SettingTitle } from "./SettingTitle-BMHyfLrM.mjs";
|
|
10
10
|
import { ExternalLink } from "@strapi/icons";
|
|
11
11
|
function ContentTypeAccordion({
|
|
12
12
|
contentType,
|
|
@@ -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-
|
|
10
|
+
const index = require("./index-CFf370lR.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");
|
|
@@ -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-
|
|
7
|
+
const index = require("./index-CFf370lR.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-
|
|
11
|
+
const SettingTitle = require("./SettingTitle-CwB5CsY0.js");
|
|
12
12
|
function reducer(newConfig, action) {
|
|
13
13
|
switch (action.type) {
|
|
14
14
|
case "SET_MAX_DEPTH":
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
package/dist/server/index.js
CHANGED
|
@@ -4671,7 +4671,7 @@ async function enrichWebatlasData(data, contentTypeUid) {
|
|
|
4671
4671
|
const ids = [];
|
|
4672
4672
|
if (obj.documentId) ids.push(obj.documentId);
|
|
4673
4673
|
if (!uid) return ids;
|
|
4674
|
-
const ct = strapi.contentTypes[uid];
|
|
4674
|
+
const ct = strapi.contentTypes[uid] || strapi.components?.[uid];
|
|
4675
4675
|
if (!ct?.attributes) return ids;
|
|
4676
4676
|
for (const [key, attr] of Object.entries(ct.attributes)) {
|
|
4677
4677
|
const attribute = attr;
|
|
@@ -4714,7 +4714,7 @@ async function enrichWebatlasData(data, contentTypeUid) {
|
|
|
4714
4714
|
const routeMap = new Map(routes2?.map((route2) => [route2.relatedDocumentId, route2]) || []);
|
|
4715
4715
|
const enrichEntity2 = (entity, uid) => {
|
|
4716
4716
|
if (!entity || typeof entity !== "object") return entity;
|
|
4717
|
-
const ct = uid ? strapi.contentTypes[uid] : null;
|
|
4717
|
+
const ct = uid ? strapi.contentTypes[uid] || strapi.components?.[uid] : null;
|
|
4718
4718
|
const isWebatlasEnabled = ct?.pluginOptions?.webatlas?.enabled === true;
|
|
4719
4719
|
if (isWebatlasEnabled && entity.documentId && routeMap.has(entity.documentId)) {
|
|
4720
4720
|
const route2 = routeMap.get(entity.documentId);
|
package/dist/server/index.mjs
CHANGED
|
@@ -4669,7 +4669,7 @@ async function enrichWebatlasData(data, contentTypeUid) {
|
|
|
4669
4669
|
const ids = [];
|
|
4670
4670
|
if (obj.documentId) ids.push(obj.documentId);
|
|
4671
4671
|
if (!uid) return ids;
|
|
4672
|
-
const ct = strapi.contentTypes[uid];
|
|
4672
|
+
const ct = strapi.contentTypes[uid] || strapi.components?.[uid];
|
|
4673
4673
|
if (!ct?.attributes) return ids;
|
|
4674
4674
|
for (const [key, attr] of Object.entries(ct.attributes)) {
|
|
4675
4675
|
const attribute = attr;
|
|
@@ -4712,7 +4712,7 @@ async function enrichWebatlasData(data, contentTypeUid) {
|
|
|
4712
4712
|
const routeMap = new Map(routes2?.map((route2) => [route2.relatedDocumentId, route2]) || []);
|
|
4713
4713
|
const enrichEntity2 = (entity, uid) => {
|
|
4714
4714
|
if (!entity || typeof entity !== "object") return entity;
|
|
4715
|
-
const ct = uid ? strapi.contentTypes[uid] : null;
|
|
4715
|
+
const ct = uid ? strapi.contentTypes[uid] || strapi.components?.[uid] : null;
|
|
4716
4716
|
const isWebatlasEnabled = ct?.pluginOptions?.webatlas?.enabled === true;
|
|
4717
4717
|
if (isWebatlasEnabled && entity.documentId && routeMap.has(entity.documentId)) {
|
|
4718
4718
|
const route2 = routeMap.get(entity.documentId);
|