@contentful/field-editor-reference 6.22.4-canary.21 → 7.0.0

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.
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "MultipleMediaEditor", {
10
10
  });
11
11
  const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
12
12
  const _sortable = require("@dnd-kit/sortable");
13
- const _emotion = require("emotion");
13
+ const _css = require("@emotion/css");
14
14
  const _MultipleReferenceEditor = require("../common/MultipleReferenceEditor");
15
15
  const _SortableLinkList = require("../common/SortableLinkList");
16
16
  const _FetchingWrappedAssetCard = require("./WrappedAssetCard/FetchingWrappedAssetCard");
@@ -56,7 +56,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
56
56
  return newObj;
57
57
  }
58
58
  const styles = {
59
- gridContainer: (0, _emotion.css)({
59
+ gridContainer: (0, _css.css)({
60
60
  position: 'relative',
61
61
  display: 'flex',
62
62
  flexWrap: 'wrap'
@@ -69,7 +69,7 @@ function MultipleMediaEditor(props) {
69
69
  }, (childrenProps)=>/*#__PURE__*/ _react.createElement(_SortableLinkList.SortableLinkList, {
70
70
  ...childrenProps,
71
71
  sortingStrategy: childrenProps.viewType === 'card' ? _sortable.rectSortingStrategy : _sortable.verticalListSortingStrategy,
72
- className: (0, _emotion.cx)({
72
+ className: (0, _css.cx)({
73
73
  [styles.gridContainer]: childrenProps.viewType === 'card'
74
74
  })
75
75
  }, ({ items, item, index, isDisabled, DragHandle })=>/*#__PURE__*/ _react.createElement(_FetchingWrappedAssetCard.FetchingWrappedAssetCard, {
@@ -13,7 +13,7 @@ const _f36tokens = /*#__PURE__*/ _interop_require_default(require("@contentful/f
13
13
  const _core = require("@dnd-kit/core");
14
14
  const _sortable = require("@dnd-kit/sortable");
15
15
  const _utilities = require("@dnd-kit/utilities");
16
- const _emotion = require("emotion");
16
+ const _css = require("@emotion/css");
17
17
  const _useSortIDs = require("../utils/useSortIDs");
18
18
  function _interop_require_default(obj) {
19
19
  return obj && obj.__esModule ? obj : {
@@ -21,17 +21,17 @@ function _interop_require_default(obj) {
21
21
  };
22
22
  }
23
23
  const styles = {
24
- container: (0, _emotion.css)({
24
+ container: (0, _css.css)({
25
25
  position: 'relative'
26
26
  }),
27
- item: (0, _emotion.css)({
27
+ item: (0, _css.css)({
28
28
  position: 'relative',
29
29
  marginBottom: _f36tokens.default.spacingM
30
30
  }),
31
- isDragging: (0, _emotion.css)({
31
+ isDragging: (0, _css.css)({
32
32
  zIndex: _f36tokens.default.zIndexModal
33
33
  }),
34
- dragHandle: (0, _emotion.css)({
34
+ dragHandle: (0, _css.css)({
35
35
  display: 'flex'
36
36
  })
37
37
  };
@@ -61,7 +61,7 @@ const SortableLink = ({ id, items, item, isDisabled = false, index, children })=
61
61
  return /*#__PURE__*/ _react.default.createElement("div", {
62
62
  ref: setNodeRef,
63
63
  style: style,
64
- className: (0, _emotion.cx)(styles.item, {
64
+ className: (0, _css.cx)(styles.item, {
65
65
  [styles.isDragging]: isDragging
66
66
  })
67
67
  }, children({
@@ -108,7 +108,7 @@ const SortableLinkList = ({ items, isDisabled, className, children, onSortStart,
108
108
  items: sortIDs,
109
109
  strategy: sortingStrategy
110
110
  }, /*#__PURE__*/ _react.default.createElement("div", {
111
- className: (0, _emotion.cx)(styles.container, className)
111
+ className: (0, _css.cx)(styles.container, className)
112
112
  }, items.map((item, index)=>{
113
113
  const id = sortIDs[index]?.id;
114
114
  return /*#__PURE__*/ _react.default.createElement(SortableLink, {
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { rectSortingStrategy, verticalListSortingStrategy } from '@dnd-kit/sortable';
3
- import { css, cx } from 'emotion';
3
+ import { css, cx } from '@emotion/css';
4
4
  import { MultipleReferenceEditor } from '../common/MultipleReferenceEditor';
5
5
  import { SortableLinkList } from '../common/SortableLinkList';
6
6
  import { FetchingWrappedAssetCard } from './WrappedAssetCard/FetchingWrappedAssetCard';
@@ -3,7 +3,7 @@ import tokens from '@contentful/f36-tokens';
3
3
  import { DndContext } from '@dnd-kit/core';
4
4
  import { SortableContext, useSortable } from '@dnd-kit/sortable';
5
5
  import { CSS } from '@dnd-kit/utilities';
6
- import { css, cx } from 'emotion';
6
+ import { css, cx } from '@emotion/css';
7
7
  import { useSortIDs } from '../utils/useSortIDs';
8
8
  const styles = {
9
9
  container: css({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-reference",
3
- "version": "6.22.4-canary.21+dabb1a7b",
3
+ "version": "7.0.0",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -69,5 +69,5 @@
69
69
  "publishConfig": {
70
70
  "registry": "https://npm.pkg.github.com/"
71
71
  },
72
- "gitHead": "dabb1a7b240f576a01f589a34c05bf41edb2cda2"
72
+ "gitHead": "edde3372ed00ed0fd6a798233284618983383869"
73
73
  }