@contentful/field-editor-reference 6.9.0 → 6.10.1
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/dist/cjs/entries/WrappedEntryCard/FetchingWrappedEntryCard.js +3 -1
- package/dist/cjs/resources/MultipleResourceReferenceEditor.js +1 -0
- package/dist/esm/entries/WrappedEntryCard/FetchingWrappedEntryCard.js +4 -2
- package/dist/esm/resources/MultipleResourceReferenceEditor.js +1 -0
- package/package.json +3 -3
|
@@ -97,6 +97,7 @@ function FetchingWrappedEntryCard(props) {
|
|
|
97
97
|
activeRelease,
|
|
98
98
|
releases
|
|
99
99
|
});
|
|
100
|
+
const { releaseAction } = (0, _fieldeditorshared.getEntryReleaseStatus)(props.entryId, locales, activeRelease);
|
|
100
101
|
const size = props.viewType === 'link' ? 'small' : 'default';
|
|
101
102
|
const { getEntity } = (0, _EntityStore.useEntityLoader)();
|
|
102
103
|
const getAsset = (assetId)=>getEntity('Asset', assetId);
|
|
@@ -176,7 +177,8 @@ function FetchingWrappedEntryCard(props) {
|
|
|
176
177
|
activeLocales: props.activeLocales,
|
|
177
178
|
releaseLocalesStatusMap,
|
|
178
179
|
isReleasesLoading: isActiveReleaseLoading,
|
|
179
|
-
activeRelease
|
|
180
|
+
activeRelease,
|
|
181
|
+
releaseAction
|
|
180
182
|
};
|
|
181
183
|
const { hasCardEditActions, hasCardMoveActions, hasCardRemoveActions } = props;
|
|
182
184
|
function renderDefaultCard(props) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { EntryCard } from '@contentful/f36-components';
|
|
3
|
-
import { parseReleaseParams, useLocalePublishStatus, useActiveReleaseLocalesStatuses } from '@contentful/field-editor-shared';
|
|
3
|
+
import { parseReleaseParams, useLocalePublishStatus, useActiveReleaseLocalesStatuses, getEntryReleaseStatus } from '@contentful/field-editor-shared';
|
|
4
4
|
import get from 'lodash/get';
|
|
5
5
|
import { useEntity, useEntityLoader } from '../../common/EntityStore';
|
|
6
6
|
import { MissingEntityCard } from '../../components';
|
|
@@ -41,6 +41,7 @@ export function FetchingWrappedEntryCard(props) {
|
|
|
41
41
|
activeRelease,
|
|
42
42
|
releases
|
|
43
43
|
});
|
|
44
|
+
const { releaseAction } = getEntryReleaseStatus(props.entryId, locales, activeRelease);
|
|
44
45
|
const size = props.viewType === 'link' ? 'small' : 'default';
|
|
45
46
|
const { getEntity } = useEntityLoader();
|
|
46
47
|
const getAsset = (assetId)=>getEntity('Asset', assetId);
|
|
@@ -120,7 +121,8 @@ export function FetchingWrappedEntryCard(props) {
|
|
|
120
121
|
activeLocales: props.activeLocales,
|
|
121
122
|
releaseLocalesStatusMap,
|
|
122
123
|
isReleasesLoading: isActiveReleaseLoading,
|
|
123
|
-
activeRelease
|
|
124
|
+
activeRelease,
|
|
125
|
+
releaseAction
|
|
124
126
|
};
|
|
125
127
|
const { hasCardEditActions, hasCardMoveActions, hasCardRemoveActions } = props;
|
|
126
128
|
function renderDefaultCard(props) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-reference",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.10.1",
|
|
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.
|
|
41
|
+
"@contentful/field-editor-shared": "^2.9.0",
|
|
42
42
|
"@contentful/mimetype": "^2.2.29",
|
|
43
43
|
"@dnd-kit/core": "^6.0.8",
|
|
44
44
|
"@dnd-kit/modifiers": "^7.0.0",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"registry": "https://npm.pkg.github.com/"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "c43c17b9bb1036b1d5aec267ad45adc8c136d528"
|
|
70
70
|
}
|