@contentful/field-editor-reference 7.0.10 → 8.0.1-canary.10

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.
@@ -202,7 +202,9 @@ const CreateEntryMenuTrigger = ({ contentTypes, suggestedContentTypeId, contentT
202
202
  },
203
203
  ref: menuListRef,
204
204
  testId: "add-entry-menu"
205
- }, Boolean(customDropdownItems) && /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, customDropdownItems, /*#__PURE__*/ _react.default.createElement(_f36components.Menu.Divider, null)), title && /*#__PURE__*/ _react.default.createElement(_f36components.Menu.SectionTitle, {
205
+ }, Boolean(customDropdownItems) && /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/ _react.default.createElement("div", {
206
+ className: styles.inputWrapper
207
+ }, customDropdownItems), /*#__PURE__*/ _react.default.createElement(_f36components.Menu.Divider, null)), title && /*#__PURE__*/ _react.default.createElement(_f36components.Menu.SectionTitle, {
206
208
  className: styles.title
207
209
  }, title), isSearchable && /*#__PURE__*/ _react.default.createElement("div", {
208
210
  ref: textField,
@@ -84,11 +84,14 @@ function CombinedEntryLinkActions(props) {
84
84
  onSelect: (contentTypeId)=>{
85
85
  return contentTypeId ? props.onCreate(contentTypeId) : Promise.resolve();
86
86
  },
87
- customDropdownItems: props.canLinkEntity ? /*#__PURE__*/ _react.createElement(_f36components.Menu.Item, {
87
+ customDropdownItems: props.canLinkEntity ? /*#__PURE__*/ _react.createElement(_f36components.Button, {
88
+ startIcon: /*#__PURE__*/ _react.createElement(_f36icons.PlusIcon, null),
89
+ size: "small",
88
90
  testId: testIds.linkExisting,
89
91
  onClick: ()=>{
90
92
  props.onLinkExisting();
91
- }
93
+ },
94
+ isFullWidth: true
92
95
  }, "Add existing content") : undefined
93
96
  });
94
97
  } else if (props.canLinkEntity) {
@@ -146,7 +146,9 @@ export const CreateEntryMenuTrigger = ({ contentTypes, suggestedContentTypeId, c
146
146
  },
147
147
  ref: menuListRef,
148
148
  testId: "add-entry-menu"
149
- }, Boolean(customDropdownItems) && /*#__PURE__*/ React.createElement(React.Fragment, null, customDropdownItems, /*#__PURE__*/ React.createElement(Menu.Divider, null)), title && /*#__PURE__*/ React.createElement(Menu.SectionTitle, {
149
+ }, Boolean(customDropdownItems) && /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement("div", {
150
+ className: styles.inputWrapper
151
+ }, customDropdownItems), /*#__PURE__*/ React.createElement(Menu.Divider, null)), title && /*#__PURE__*/ React.createElement(Menu.SectionTitle, {
150
152
  className: styles.title
151
153
  }, title), isSearchable && /*#__PURE__*/ React.createElement("div", {
152
154
  ref: textField,
@@ -33,11 +33,14 @@ function CombinedEntryLinkActions(props) {
33
33
  onSelect: (contentTypeId)=>{
34
34
  return contentTypeId ? props.onCreate(contentTypeId) : Promise.resolve();
35
35
  },
36
- customDropdownItems: props.canLinkEntity ? /*#__PURE__*/ React.createElement(Menu.Item, {
36
+ customDropdownItems: props.canLinkEntity ? /*#__PURE__*/ React.createElement(Button, {
37
+ startIcon: /*#__PURE__*/ React.createElement(PlusIcon, null),
38
+ size: "small",
37
39
  testId: testIds.linkExisting,
38
40
  onClick: ()=>{
39
41
  props.onLinkExisting();
40
- }
42
+ },
43
+ isFullWidth: true
41
44
  }, "Add existing content") : undefined
42
45
  });
43
46
  } else if (props.canLinkEntity) {
@@ -1,4 +1,4 @@
1
- import { AssetProps, EntryProps } from 'contentful-management/types';
1
+ import { AssetProps, EntryProps } from 'contentful-management';
2
2
  import * as contentTypes from './content-type';
3
3
  import * as locales from './locale';
4
4
  import * as spaces from './space';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-reference",
3
- "version": "7.0.10",
3
+ "version": "8.0.1-canary.10+328e769c",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -39,7 +39,7 @@
39
39
  "@contentful/f36-components": "^6.7.1",
40
40
  "@contentful/f36-icons": "^6.7.1",
41
41
  "@contentful/f36-tokens": "^6.1.2",
42
- "@contentful/field-editor-shared": "^3.1.4",
42
+ "@contentful/field-editor-shared": "^4.0.0",
43
43
  "@contentful/mimetype": "^2.2.29",
44
44
  "@dnd-kit/core": "^6.0.8",
45
45
  "@dnd-kit/sortable": "^8.0.0",
@@ -47,7 +47,7 @@
47
47
  "@emotion/css": "^11.13.5",
48
48
  "@tanstack/react-query": "^4.3.9",
49
49
  "constate": "^3.3.2",
50
- "contentful-management": "^11.66.0",
50
+ "contentful-management": "^12.3.0",
51
51
  "lodash": "^4.17.15",
52
52
  "moment": "^2.20.0",
53
53
  "p-queue": "^4.0.0",
@@ -56,7 +56,7 @@
56
56
  },
57
57
  "devDependencies": {
58
58
  "@contentful/app-sdk": "^4.42.0",
59
- "@contentful/field-editor-test-utils": "^2.0.1",
59
+ "@contentful/field-editor-test-utils": "^3.0.0",
60
60
  "@lingui/core": "5.3.0",
61
61
  "@testing-library/react-hooks": "^8.0.1",
62
62
  "@testing-library/user-event": "^13.1.9"
@@ -69,5 +69,5 @@
69
69
  "publishConfig": {
70
70
  "registry": "https://npm.pkg.github.com/"
71
71
  },
72
- "gitHead": "49c6f5bd0ee3a9e1a8a8a6573698380282ca8d1d"
72
+ "gitHead": "328e769cea72b012d16abff4bce5b4bacc313009"
73
73
  }