@contentful/field-editor-reference 4.6.1 → 4.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.
- package/CHANGELOG.md +18 -0
- package/dist/field-editor-reference.cjs.development.js +9 -5
- package/dist/field-editor-reference.cjs.development.js.map +1 -1
- package/dist/field-editor-reference.cjs.production.min.js +1 -1
- package/dist/field-editor-reference.cjs.production.min.js.map +1 -1
- package/dist/field-editor-reference.esm.js +9 -5
- package/dist/field-editor-reference.esm.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [4.6.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@4.6.3...@contentful/field-editor-reference@4.6.4) (2022-07-21)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- check the env alias for the field editor reference [ZEND-2488] ([#1194](https://github.com/contentful/field-editors/issues/1194)) ([0b8e1c7](https://github.com/contentful/field-editors/commit/0b8e1c7dc0ecc3644332fd89ef2daaff275655cb))
|
|
11
|
+
|
|
12
|
+
## [4.6.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@4.6.2...@contentful/field-editor-reference@4.6.3) (2022-07-19)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- drill props correctly ([#1190](https://github.com/contentful/field-editors/issues/1190)) ([f17742a](https://github.com/contentful/field-editors/commit/f17742a80f1d41f15a494fd84436deb745e4431d))
|
|
17
|
+
|
|
18
|
+
## [4.6.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@4.6.1...@contentful/field-editor-reference@4.6.2) (2022-07-18)
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
- click handler on children of sortable list ([#1188](https://github.com/contentful/field-editors/issues/1188)) ([7ebab54](https://github.com/contentful/field-editors/commit/7ebab54b2ecd301b3cf066615b124da72b46856a))
|
|
23
|
+
|
|
6
24
|
## [4.6.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@4.6.0...@contentful/field-editor-reference@4.6.1) (2022-07-18)
|
|
7
25
|
|
|
8
26
|
### Bug Fixes
|
|
@@ -1931,7 +1931,7 @@ var nonNilResources = function nonNilResources(map) {
|
|
|
1931
1931
|
|
|
1932
1932
|
function useEntitiesStore(props) {
|
|
1933
1933
|
var spaceId = props.sdk.ids.space;
|
|
1934
|
-
var environmentId = props.sdk.ids.environment;
|
|
1934
|
+
var environmentId = props.sdk.ids.environmentAlias || props.sdk.ids.environment;
|
|
1935
1935
|
|
|
1936
1936
|
var _React$useState = React.useState(function () {
|
|
1937
1937
|
return contentfulManagement.createClient({
|
|
@@ -3339,14 +3339,18 @@ var SortableLinkListInternal = /*#__PURE__*/reactSortableHoc.SortableContainer(f
|
|
|
3339
3339
|
}); // HOC does not support generics, so we mimic it via additional component
|
|
3340
3340
|
|
|
3341
3341
|
function SortableLinkList(props) {
|
|
3342
|
-
|
|
3342
|
+
// with the default distance of 0 the drag start event is "confused" with the click event,
|
|
3343
|
+
// so the latter one isn't fired and click handlers on child elements don't work
|
|
3344
|
+
return React__default.createElement(SortableLinkListInternal, Object.assign({
|
|
3345
|
+
distance: 1
|
|
3346
|
+
}, props), props.children);
|
|
3343
3347
|
}
|
|
3344
3348
|
|
|
3345
3349
|
function MultipleEntryReferenceEditor(props) {
|
|
3346
3350
|
return React.createElement(MultipleReferenceEditor, Object.assign({}, props, {
|
|
3347
3351
|
entityType: "Entry"
|
|
3348
3352
|
}), function (childrenProps) {
|
|
3349
|
-
return React.createElement(SortableLinkList, Object.assign({},
|
|
3353
|
+
return React.createElement(SortableLinkList, Object.assign({}, childrenProps, {
|
|
3350
3354
|
axis: "y",
|
|
3351
3355
|
useDragHandle: true
|
|
3352
3356
|
}), function (_ref) {
|
|
@@ -3356,7 +3360,7 @@ function MultipleEntryReferenceEditor(props) {
|
|
|
3356
3360
|
isDisabled = _ref.isDisabled,
|
|
3357
3361
|
DragHandle = _ref.DragHandle;
|
|
3358
3362
|
var lastIndex = items.length - 1;
|
|
3359
|
-
return React.createElement(FetchingWrappedEntryCard, Object.assign({},
|
|
3363
|
+
return React.createElement(FetchingWrappedEntryCard, Object.assign({}, childrenProps, {
|
|
3360
3364
|
key: item.sys.id + "-" + index,
|
|
3361
3365
|
index: index,
|
|
3362
3366
|
allContentTypes: childrenProps.allContentTypes,
|
|
@@ -3808,7 +3812,7 @@ function MultipleMediaEditor(props) {
|
|
|
3808
3812
|
index = _ref.index,
|
|
3809
3813
|
isDisabled = _ref.isDisabled,
|
|
3810
3814
|
DragHandle = _ref.DragHandle;
|
|
3811
|
-
return React.createElement(FetchingWrappedAssetCard, Object.assign({},
|
|
3815
|
+
return React.createElement(FetchingWrappedAssetCard, Object.assign({}, childrenProps, {
|
|
3812
3816
|
isDisabled: isDisabled,
|
|
3813
3817
|
key: item.sys.id + "-" + index,
|
|
3814
3818
|
assetId: item.sys.id,
|