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.
@@ -224,7 +224,7 @@ const index = {
224
224
  components: {
225
225
  Input: () => Promise.resolve().then(() => require(
226
226
  /* webpackChunkName: "input-component" */
227
- "./index-CxWt3llJ.js"
227
+ "./index-CyBD50Lc.js"
228
228
  ))
229
229
  },
230
230
  inputSize: {
@@ -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-CktBIBSM.js");
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-BHcolZ4N.mjs";
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
@@ -223,7 +223,7 @@ const index = {
223
223
  components: {
224
224
  Input: () => import(
225
225
  /* webpackChunkName: "input-component" */
226
- "./index-D6nv39Fp.mjs"
226
+ "./index-DGcImy9s.mjs"
227
227
  )
228
228
  },
229
229
  inputSize: {
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
- const index = require("../_chunks/index-CktBIBSM.js");
2
+ const index = require("../_chunks/index-BtldAbIW.js");
3
3
  module.exports = index.index;
@@ -1,4 +1,4 @@
1
- import { i } from "../_chunks/index-BHcolZ4N.mjs";
1
+ import { i } from "../_chunks/index-DdX2rVzB.mjs";
2
2
  export {
3
3
  i as default
4
4
  };
@@ -279,7 +279,7 @@ const schema = {
279
279
  },
280
280
  pluginOptions: {
281
281
  "content-manager": {
282
- visible: false
282
+ visible: true
283
283
  },
284
284
  "content-type-builder": {
285
285
  visible: false
@@ -278,7 +278,7 @@ const schema = {
278
278
  },
279
279
  pluginOptions: {
280
280
  "content-manager": {
281
- visible: false
281
+ visible: true
282
282
  },
283
283
  "content-type-builder": {
284
284
  visible: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multi-content-type-relation",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "A multi content type relation plugin for Strapi 5.",
5
5
  "license": "MIT",
6
6
  "author": {