@contentful/field-editor-reference 5.31.2 → 6.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.
- package/dist/cjs/assets/WrappedAssetCard/FetchingWrappedAssetCard.js +1 -1
- package/dist/cjs/entries/WrappedEntryCard/FetchingWrappedEntryCard.js +1 -1
- package/dist/esm/assets/WrappedAssetCard/FetchingWrappedAssetCard.js +2 -2
- package/dist/esm/entries/WrappedEntryCard/FetchingWrappedEntryCard.js +2 -2
- package/package.json +3 -3
|
@@ -63,7 +63,7 @@ function FetchingWrappedAssetCard(props) {
|
|
|
63
63
|
getEntityScheduledActions,
|
|
64
64
|
props.assetId
|
|
65
65
|
]);
|
|
66
|
-
const localesStatusMap = (0, _fieldeditorshared.
|
|
66
|
+
const localesStatusMap = (0, _fieldeditorshared.useLocalePublishStatus)(asset, props.sdk.locales);
|
|
67
67
|
_react.useEffect(()=>{
|
|
68
68
|
if (asset) {
|
|
69
69
|
props.onAction && props.onAction({
|
|
@@ -87,7 +87,7 @@ function FetchingWrappedEntryCard(props) {
|
|
|
87
87
|
getEntityScheduledActions,
|
|
88
88
|
props.entryId
|
|
89
89
|
]);
|
|
90
|
-
const localesStatusMap = (0, _fieldeditorshared.
|
|
90
|
+
const localesStatusMap = (0, _fieldeditorshared.useLocalePublishStatus)(entry, props.sdk.locales);
|
|
91
91
|
const size = props.viewType === 'link' ? 'small' : 'default';
|
|
92
92
|
const { getEntity } = (0, _EntityStore.useEntityLoader)();
|
|
93
93
|
const getAsset = (assetId)=>getEntity('Asset', assetId);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { AssetCard, EntryCard } from '@contentful/f36-components';
|
|
3
|
-
import {
|
|
3
|
+
import { useLocalePublishStatus } from '@contentful/field-editor-shared';
|
|
4
4
|
import { useEntity, useEntityLoader } from '../../common/EntityStore';
|
|
5
5
|
import { MissingAssetCard } from '../../components';
|
|
6
6
|
import { WrappedAssetCard } from './WrappedAssetCard';
|
|
@@ -12,7 +12,7 @@ export function FetchingWrappedAssetCard(props) {
|
|
|
12
12
|
getEntityScheduledActions,
|
|
13
13
|
props.assetId
|
|
14
14
|
]);
|
|
15
|
-
const localesStatusMap =
|
|
15
|
+
const localesStatusMap = useLocalePublishStatus(asset, props.sdk.locales);
|
|
16
16
|
React.useEffect(()=>{
|
|
17
17
|
if (asset) {
|
|
18
18
|
props.onAction && props.onAction({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { EntryCard } from '@contentful/f36-components';
|
|
3
|
-
import {
|
|
3
|
+
import { useLocalePublishStatus } 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';
|
|
@@ -31,7 +31,7 @@ export function FetchingWrappedEntryCard(props) {
|
|
|
31
31
|
getEntityScheduledActions,
|
|
32
32
|
props.entryId
|
|
33
33
|
]);
|
|
34
|
-
const localesStatusMap =
|
|
34
|
+
const localesStatusMap = useLocalePublishStatus(entry, props.sdk.locales);
|
|
35
35
|
const size = props.viewType === 'link' ? 'small' : 'default';
|
|
36
36
|
const { getEntity } = useEntityLoader();
|
|
37
37
|
const getAsset = (assetId)=>getEntity('Asset', assetId);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-reference",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
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": "^
|
|
41
|
+
"@contentful/field-editor-shared": "^2.0.0",
|
|
42
42
|
"@contentful/mimetype": "^2.2.29",
|
|
43
43
|
"@dnd-kit/core": "^6.0.8",
|
|
44
44
|
"@dnd-kit/modifiers": "^7.0.0",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"registry": "https://npm.pkg.github.com/"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "a06fd0066556b1f5ab6649ade3a75441e4792fd3"
|
|
68
68
|
}
|