multi-content-type-relation 2.1.0 → 2.1.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.
- package/dist/_chunks/{index-CktBIBSM.js → index-BtldAbIW.js} +1 -1
- package/dist/_chunks/{index-CxWt3llJ.js → index-CyBD50Lc.js} +3 -2
- package/dist/_chunks/{index-D6nv39Fp.mjs → index-DGcImy9s.mjs} +4 -3
- package/dist/_chunks/{index-BHcolZ4N.mjs → index-DdX2rVzB.mjs} +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
|
@@ -5,7 +5,7 @@ const React = require("react");
|
|
|
5
5
|
const reactIntl = require("react-intl");
|
|
6
6
|
const reactRouterDom = require("react-router-dom");
|
|
7
7
|
const designSystem = require("@strapi/design-system");
|
|
8
|
-
const index = require("./index-
|
|
8
|
+
const index = require("./index-BtldAbIW.js");
|
|
9
9
|
const reactDom = require("react-dom");
|
|
10
10
|
const sortable = require("@dnd-kit/sortable");
|
|
11
11
|
const icons = require("@strapi/icons");
|
|
@@ -3546,6 +3546,7 @@ const MainInput = ({
|
|
|
3546
3546
|
};
|
|
3547
3547
|
const Index = (props) => {
|
|
3548
3548
|
const { locale } = reactIntl.useIntl();
|
|
3549
|
+
const theme = React.useMemo(() => ({}), []);
|
|
3549
3550
|
const attribute = React.useMemo(() => {
|
|
3550
3551
|
if (!props.attribute) return props.attribute;
|
|
3551
3552
|
if (!props.attribute.options) return props.attribute;
|
|
@@ -3561,6 +3562,6 @@ const Index = (props) => {
|
|
|
3561
3562
|
}
|
|
3562
3563
|
};
|
|
3563
3564
|
}, [props.attribute]);
|
|
3564
|
-
return /* @__PURE__ */ jsxRuntime.jsx(MainInput, { ...props, attribute });
|
|
3565
|
+
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.DesignSystemProvider, { theme, children: /* @__PURE__ */ jsxRuntime.jsx(MainInput, { ...props, attribute }) });
|
|
3565
3566
|
};
|
|
3566
3567
|
exports.default = Index;
|
|
@@ -2,8 +2,8 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import React, { useState, useEffect, useMemo, useLayoutEffect, useRef, useCallback, memo, useReducer, createContext, useContext } from "react";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
4
|
import { useLocation } from "react-router-dom";
|
|
5
|
-
import { Status as Status$1, Typography, Tr, Td, IconButton, Flex, Box, Table, Thead, Th, Tbody, Loader, Field, TextInput } from "@strapi/design-system";
|
|
6
|
-
import { f as fetchMatchingContent, u as useTranslate, g as getContentTypeForUid, a as formatToStrapiField, v as validateCurrentRelations } from "./index-
|
|
5
|
+
import { Status as Status$1, Typography, Tr, Td, IconButton, Flex, Box, Table, Thead, Th, Tbody, Loader, Field, TextInput, DesignSystemProvider } from "@strapi/design-system";
|
|
6
|
+
import { f as fetchMatchingContent, u as useTranslate, g as getContentTypeForUid, a as formatToStrapiField, v as validateCurrentRelations } from "./index-DdX2rVzB.mjs";
|
|
7
7
|
import { unstable_batchedUpdates, createPortal } from "react-dom";
|
|
8
8
|
import { useSortable, SortableContext, verticalListSortingStrategy, arrayMove } from "@dnd-kit/sortable";
|
|
9
9
|
import { Drag, Eye, Plus, Trash } from "@strapi/icons";
|
|
@@ -3542,6 +3542,7 @@ const MainInput = ({
|
|
|
3542
3542
|
};
|
|
3543
3543
|
const Index = (props) => {
|
|
3544
3544
|
const { locale } = useIntl();
|
|
3545
|
+
const theme = useMemo(() => ({}), []);
|
|
3545
3546
|
const attribute = useMemo(() => {
|
|
3546
3547
|
if (!props.attribute) return props.attribute;
|
|
3547
3548
|
if (!props.attribute.options) return props.attribute;
|
|
@@ -3557,7 +3558,7 @@ const Index = (props) => {
|
|
|
3557
3558
|
}
|
|
3558
3559
|
};
|
|
3559
3560
|
}, [props.attribute]);
|
|
3560
|
-
return /* @__PURE__ */ jsx(MainInput, { ...props, attribute });
|
|
3561
|
+
return /* @__PURE__ */ jsx(DesignSystemProvider, { theme, children: /* @__PURE__ */ jsx(MainInput, { ...props, attribute }) });
|
|
3561
3562
|
};
|
|
3562
3563
|
export {
|
|
3563
3564
|
Index as default
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
package/dist/server/index.js
CHANGED
package/dist/server/index.mjs
CHANGED