@contentful/field-editor-reference 6.6.3 → 6.6.4

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.
@@ -9,8 +9,13 @@ Object.defineProperty(exports, "useContentTypePermissions", {
9
9
  }
10
10
  });
11
11
  const _react = require("react");
12
- const _lodash = require("lodash");
12
+ const _isEqual = /*#__PURE__*/ _interop_require_default(require("lodash/isEqual"));
13
13
  const _useAccessApi = require("./useAccessApi");
14
+ function _interop_require_default(obj) {
15
+ return obj && obj.__esModule ? obj : {
16
+ default: obj
17
+ };
18
+ }
14
19
  async function filter(arr, predicate) {
15
20
  const fail = Symbol();
16
21
  const results = await Promise.all(arr.map(async (item)=>await predicate(item) ? item : fail));
@@ -38,7 +43,7 @@ function useContentTypePermissions({ entityType, validations, sdk, allContentTyp
38
43
  }
39
44
  async function checkContentTypeAccess() {
40
45
  const creatable = await getContentTypes('create');
41
- if (!(0, _lodash.isEqual)(creatable, creatableContentTypes)) {
46
+ if (!(0, _isEqual.default)(creatable, creatableContentTypes)) {
42
47
  setCreatableContentTypes(creatable);
43
48
  }
44
49
  }
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useMemo, useState } from 'react';
2
- import { isEqual } from 'lodash';
2
+ import isEqual from 'lodash/isEqual';
3
3
  import { useAccessApi } from './useAccessApi';
4
4
  async function filter(arr, predicate) {
5
5
  const fail = Symbol();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-reference",
3
- "version": "6.6.3",
3
+ "version": "6.6.4",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -38,7 +38,7 @@
38
38
  "@contentful/f36-components": "^4.70.0",
39
39
  "@contentful/f36-icons": "^4.29.0",
40
40
  "@contentful/f36-tokens": "^4.0.5",
41
- "@contentful/field-editor-shared": "^2.4.1",
41
+ "@contentful/field-editor-shared": "^2.4.2",
42
42
  "@contentful/mimetype": "^2.2.29",
43
43
  "@dnd-kit/core": "^6.0.8",
44
44
  "@dnd-kit/modifiers": "^7.0.0",
@@ -64,5 +64,5 @@
64
64
  "publishConfig": {
65
65
  "registry": "https://npm.pkg.github.com/"
66
66
  },
67
- "gitHead": "74c01134b9af5b36ed64b464712eab83d37639c9"
67
+ "gitHead": "6bee4a59a3c19a95d2cadde3ef0c78112788626e"
68
68
  }