@contentful/field-editor-reference 2.20.10 → 2.21.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.
- package/CHANGELOG.md +41 -0
- package/dist/__fixtures__/FakeSdk.d.ts +51 -36
- package/dist/common/MultipleReferenceEditor.d.ts +3 -3
- package/dist/common/SingleReferenceEditor.d.ts +3 -3
- package/dist/common/useAccessApi.d.ts +1 -0
- package/dist/common/useContentTypePermissions.d.ts +2 -2
- package/dist/common/useEditorPermissions.d.ts +2 -2
- package/dist/components/LinkActions/LinkActions.d.ts +2 -2
- package/dist/components/LinkActions/LinkEntityActions.d.ts +2 -2
- package/dist/components/LinkActions/helpers.d.ts +11 -8
- package/dist/components/MissingEntityCard/MissingEntityCard.d.ts +2 -2
- package/dist/field-editor-reference.cjs.development.js +9 -7
- 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 -7
- package/dist/field-editor-reference.esm.js.map +1 -1
- package/dist/types.d.ts +8 -8
- package/package.json +6 -7
|
@@ -597,18 +597,18 @@ function CombinedAssetLinkActions(props) {
|
|
|
597
597
|
}, createElement(DropdownList, {
|
|
598
598
|
testId: testIds$1.dropdown
|
|
599
599
|
}, createElement(DropdownListItem, {
|
|
600
|
-
testId: testIds$1.
|
|
600
|
+
testId: testIds$1.linkExisting,
|
|
601
601
|
onClick: function onClick() {
|
|
602
602
|
setOpen(false);
|
|
603
|
-
props.
|
|
603
|
+
props.onLinkExisting();
|
|
604
604
|
}
|
|
605
|
-
}, "Add
|
|
606
|
-
testId: testIds$1.
|
|
605
|
+
}, "Add existing media"), createElement(DropdownListItem, {
|
|
606
|
+
testId: testIds$1.createAndLink,
|
|
607
607
|
onClick: function onClick() {
|
|
608
608
|
setOpen(false);
|
|
609
|
-
props.
|
|
609
|
+
props.onCreate();
|
|
610
610
|
}
|
|
611
|
-
}, "Add
|
|
611
|
+
}, "Add new media")));
|
|
612
612
|
}
|
|
613
613
|
|
|
614
614
|
var card = /*#__PURE__*/css({
|
|
@@ -3045,7 +3045,9 @@ function renderActions(props) {
|
|
|
3045
3045
|
testId: "card-action-edit"
|
|
3046
3046
|
}, "Edit"), entityFile && React__default.createElement(DropdownListItem, {
|
|
3047
3047
|
onClick: function onClick() {
|
|
3048
|
-
|
|
3048
|
+
if (typeof entityFile.url === 'string') {
|
|
3049
|
+
downloadAsset(entityFile.url);
|
|
3050
|
+
}
|
|
3049
3051
|
},
|
|
3050
3052
|
testId: "card-action-download"
|
|
3051
3053
|
}, "Download"), onRemove && React__default.createElement(DropdownListItem, {
|