@mattisvensson/strapi-plugin-webatlas 0.11.6 → 0.11.8
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-CZKBOemS.js → RoutePicker-BEmAG6aK.js} +4 -3
- package/dist/admin/{RoutePicker-C6omysLv.mjs → RoutePicker-CFqZfjDu.mjs} +4 -3
- package/dist/admin/{SettingTitle-DcQMSkno.js → SettingTitle-DRvX07-B.js} +1 -1
- package/dist/admin/{SettingTitle-Bu_8jLRE.mjs → SettingTitle-D_X8W1mC.mjs} +1 -1
- package/dist/admin/{index-DjLi4gIu.mjs → index-B9kmIJ1Y.mjs} +1 -1
- package/dist/admin/{index-CoLBgxOP.js → index-CSknqklZ.js} +1 -1
- package/dist/admin/{index-Dok2SBFT.js → index-CTbP2yjO.js} +2 -2
- package/dist/admin/{index-Bp-XFH1V.mjs → index-CYF5Yipx.mjs} +1 -1
- package/dist/admin/{index-CbllvYIN.js → index-ClG-B5Tr.js} +2 -2
- package/dist/admin/{index-OkabmPb4.mjs → index-DZkauelU.mjs} +6 -6
- package/dist/admin/{index-DLMGEpc0.mjs → index-HCnLKUJN.mjs} +2 -2
- package/dist/admin/{index-e8zVLBgW.js → index-_8exe5fa.js} +1 -1
- package/dist/admin/{index-ik3u6iCE.js → index-lZ3-1icm.js} +6 -6
- package/dist/admin/{index-DqA1gNsu.mjs → index-uD-voTpW.mjs} +2 -2
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +9 -2
- package/dist/server/index.mjs +9 -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-lZ3-1icm.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;
|
|
@@ -37,7 +37,8 @@ const Input = React.forwardRef((props, ref) => {
|
|
|
37
37
|
const fetchRoutes = async () => {
|
|
38
38
|
setIsLoading(true);
|
|
39
39
|
const fetchedRoutes = await getAllRoutes();
|
|
40
|
-
|
|
40
|
+
const filteredRoutes = fetchedRoutes.filter((route) => route.type !== "wrapper");
|
|
41
|
+
setRoutes(filteredRoutes);
|
|
41
42
|
setIsLoading(false);
|
|
42
43
|
if (value) {
|
|
43
44
|
const matchedRoute = fetchedRoutes.find((route) => route.documentId === value);
|
|
@@ -52,7 +53,7 @@ const Input = React.forwardRef((props, ref) => {
|
|
|
52
53
|
};
|
|
53
54
|
fetchRoutes();
|
|
54
55
|
}, [value]);
|
|
55
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { id: name, required, hint,
|
|
56
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { id: name, required, hint, children: [
|
|
56
57
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { children: label }),
|
|
57
58
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
58
59
|
designSystem.Combobox,
|
|
@@ -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-DZkauelU.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;
|
|
@@ -35,7 +35,8 @@ const Input = forwardRef((props, ref) => {
|
|
|
35
35
|
const fetchRoutes = async () => {
|
|
36
36
|
setIsLoading(true);
|
|
37
37
|
const fetchedRoutes = await getAllRoutes();
|
|
38
|
-
|
|
38
|
+
const filteredRoutes = fetchedRoutes.filter((route) => route.type !== "wrapper");
|
|
39
|
+
setRoutes(filteredRoutes);
|
|
39
40
|
setIsLoading(false);
|
|
40
41
|
if (value) {
|
|
41
42
|
const matchedRoute = fetchedRoutes.find((route) => route.documentId === value);
|
|
@@ -50,7 +51,7 @@ const Input = forwardRef((props, ref) => {
|
|
|
50
51
|
};
|
|
51
52
|
fetchRoutes();
|
|
52
53
|
}, [value]);
|
|
53
|
-
return /* @__PURE__ */ jsxs(Field.Root, { id: name, required, hint,
|
|
54
|
+
return /* @__PURE__ */ jsxs(Field.Root, { id: name, required, hint, children: [
|
|
54
55
|
/* @__PURE__ */ jsx(Field.Label, { children: label }),
|
|
55
56
|
/* @__PURE__ */ jsx(
|
|
56
57
|
Combobox,
|
|
@@ -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-lZ3-1icm.js");
|
|
6
6
|
const reactIntl = require("react-intl");
|
|
7
7
|
const icons = require("@strapi/icons");
|
|
8
8
|
function PageWrapper({
|
|
@@ -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-DZkauelU.mjs";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
6
|
import { Check } from "@strapi/icons";
|
|
7
7
|
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-DZkauelU.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";
|
|
@@ -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-lZ3-1icm.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-lZ3-1icm.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-DRvX07-B.js");
|
|
12
12
|
const icons = require("@strapi/icons");
|
|
13
13
|
function ContentTypeAccordion({
|
|
14
14
|
contentType,
|
|
@@ -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-DZkauelU.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";
|
|
@@ -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-lZ3-1icm.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-DRvX07-B.js");
|
|
12
12
|
function reducer(newConfig, action) {
|
|
13
13
|
switch (action.type) {
|
|
14
14
|
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.7";
|
|
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-CYF5Yipx.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-B9kmIJ1Y.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-uD-voTpW.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-HCnLKUJN.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-CFqZfjDu.mjs").then((module) => ({
|
|
4210
4210
|
default: module.default
|
|
4211
4211
|
}))
|
|
4212
4212
|
},
|
|
@@ -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-DZkauelU.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-D_X8W1mC.mjs";
|
|
10
10
|
function reducer(newConfig, action) {
|
|
11
11
|
switch (action.type) {
|
|
12
12
|
case "SET_MAX_DEPTH":
|
|
@@ -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-lZ3-1icm.js");
|
|
6
6
|
const admin = require("@strapi/strapi/admin");
|
|
7
7
|
const designSystem = require("@strapi/design-system");
|
|
8
8
|
require("@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.7";
|
|
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-_8exe5fa.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-CSknqklZ.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-CTbP2yjO.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-ClG-B5Tr.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-BEmAG6aK.js")).then((module2) => ({
|
|
4228
4228
|
default: module2.default
|
|
4229
4229
|
}))
|
|
4230
4230
|
},
|
|
@@ -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-DZkauelU.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-D_X8W1mC.mjs";
|
|
10
10
|
import { ExternalLink } from "@strapi/icons";
|
|
11
11
|
function ContentTypeAccordion({
|
|
12
12
|
contentType,
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
package/dist/server/index.js
CHANGED
|
@@ -4815,7 +4815,14 @@ function enrichEntity(entity, uid, routeMap) {
|
|
|
4815
4815
|
if (typeof value === "string" && !isExternalUrl(value)) {
|
|
4816
4816
|
const route2 = routeMap.get(value);
|
|
4817
4817
|
if (route2) {
|
|
4818
|
-
|
|
4818
|
+
if (route2.type === "wrapper") {
|
|
4819
|
+
strapi.log.warn(
|
|
4820
|
+
`Wrapper route detected in route-picker field '${key}'. Wrapper routes cannot be used as page links. Setting to null.`
|
|
4821
|
+
);
|
|
4822
|
+
entity[key] = null;
|
|
4823
|
+
} else {
|
|
4824
|
+
entity[key] = route2.canonicalPath || route2.path || value;
|
|
4825
|
+
}
|
|
4819
4826
|
}
|
|
4820
4827
|
}
|
|
4821
4828
|
}
|
|
@@ -4857,7 +4864,7 @@ async function enrichRoutePickerFields(data, contentTypeUid) {
|
|
|
4857
4864
|
where: {
|
|
4858
4865
|
documentId: { $in: uniqueDocumentIds }
|
|
4859
4866
|
},
|
|
4860
|
-
select: ["documentId", "path", "canonicalPath"]
|
|
4867
|
+
select: ["documentId", "path", "canonicalPath", "type"]
|
|
4861
4868
|
});
|
|
4862
4869
|
const routeMap = new Map(routes2?.map((route2) => [route2.documentId, route2]) || []);
|
|
4863
4870
|
const enriched = enrichEntity(data, contentTypeUid, routeMap);
|
package/dist/server/index.mjs
CHANGED
|
@@ -4813,7 +4813,14 @@ function enrichEntity(entity, uid, routeMap) {
|
|
|
4813
4813
|
if (typeof value === "string" && !isExternalUrl(value)) {
|
|
4814
4814
|
const route2 = routeMap.get(value);
|
|
4815
4815
|
if (route2) {
|
|
4816
|
-
|
|
4816
|
+
if (route2.type === "wrapper") {
|
|
4817
|
+
strapi.log.warn(
|
|
4818
|
+
`Wrapper route detected in route-picker field '${key}'. Wrapper routes cannot be used as page links. Setting to null.`
|
|
4819
|
+
);
|
|
4820
|
+
entity[key] = null;
|
|
4821
|
+
} else {
|
|
4822
|
+
entity[key] = route2.canonicalPath || route2.path || value;
|
|
4823
|
+
}
|
|
4817
4824
|
}
|
|
4818
4825
|
}
|
|
4819
4826
|
}
|
|
@@ -4855,7 +4862,7 @@ async function enrichRoutePickerFields(data, contentTypeUid) {
|
|
|
4855
4862
|
where: {
|
|
4856
4863
|
documentId: { $in: uniqueDocumentIds }
|
|
4857
4864
|
},
|
|
4858
|
-
select: ["documentId", "path", "canonicalPath"]
|
|
4865
|
+
select: ["documentId", "path", "canonicalPath", "type"]
|
|
4859
4866
|
});
|
|
4860
4867
|
const routeMap = new Map(routes2?.map((route2) => [route2.documentId, route2]) || []);
|
|
4861
4868
|
const enriched = enrichEntity(data, contentTypeUid, routeMap);
|