@contentful/field-editor-rich-text 3.21.0 → 3.22.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/plugins/EmbeddedEntityInline/FetchingWrappedInlineEntryCard.js +1 -1
- package/dist/cjs/plugins/EmbeddedResourceInline/FetchingWrappedResourceInlineCard.js +1 -1
- package/dist/cjs/plugins/Hyperlink/useEntityInfo.js +1 -1
- package/dist/esm/plugins/EmbeddedEntityInline/FetchingWrappedInlineEntryCard.js +1 -1
- package/dist/esm/plugins/EmbeddedResourceInline/FetchingWrappedResourceInlineCard.js +1 -1
- package/dist/esm/plugins/Hyperlink/useEntityInfo.js +1 -1
- package/package.json +4 -4
|
@@ -143,7 +143,7 @@ function FetchingWrappedInlineEntryCard(props) {
|
|
|
143
143
|
isSelected: props.isSelected
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
|
-
const entryStatus = getEntryStatus(entry.sys);
|
|
146
|
+
const entryStatus = getEntryStatus(entry.sys, props.sdk.field.locale);
|
|
147
147
|
if (entryStatus === 'deleted') {
|
|
148
148
|
return _react.createElement(_f36components.InlineEntryCard, {
|
|
149
149
|
title: "Content missing or inaccessible",
|
|
@@ -88,7 +88,7 @@ function FetchingWrappedResourceInlineCard(props) {
|
|
|
88
88
|
defaultTitle: 'Untitled'
|
|
89
89
|
});
|
|
90
90
|
const truncatedTitle = (0, _utils.truncateTitle)(title, 40);
|
|
91
|
-
const status = getEntryStatus(entry.sys);
|
|
91
|
+
const status = getEntryStatus(entry.sys, props.sdk.field.locale);
|
|
92
92
|
return _react.createElement(_f36components.InlineEntryCard, {
|
|
93
93
|
testId: _richtexttypes.INLINES.EMBEDDED_RESOURCE,
|
|
94
94
|
isSelected: props.isSelected,
|
|
@@ -38,7 +38,7 @@ async function fetchAllData({ sdk, entityId, entityType, localeCode, defaultLoca
|
|
|
38
38
|
defaultLocaleCode
|
|
39
39
|
});
|
|
40
40
|
const jobs = await sdk.space.getEntityScheduledActions(entityType, entityId);
|
|
41
|
-
const entityStatus = _fieldeditorshared.entityHelpers.getEntryStatus(entity.sys);
|
|
41
|
+
const entityStatus = _fieldeditorshared.entityHelpers.getEntryStatus(entity.sys, sdk.field.locale);
|
|
42
42
|
return {
|
|
43
43
|
jobs,
|
|
44
44
|
entity,
|
|
@@ -87,7 +87,7 @@ export function FetchingWrappedInlineEntryCard(props) {
|
|
|
87
87
|
isSelected: props.isSelected
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
|
-
const entryStatus = getEntryStatus(entry.sys);
|
|
90
|
+
const entryStatus = getEntryStatus(entry.sys, props.sdk.field.locale);
|
|
91
91
|
if (entryStatus === 'deleted') {
|
|
92
92
|
return React.createElement(InlineEntryCard, {
|
|
93
93
|
title: "Content missing or inaccessible",
|
|
@@ -37,7 +37,7 @@ export function FetchingWrappedResourceInlineCard(props) {
|
|
|
37
37
|
defaultTitle: 'Untitled'
|
|
38
38
|
});
|
|
39
39
|
const truncatedTitle = truncateTitle(title, 40);
|
|
40
|
-
const status = getEntryStatus(entry.sys);
|
|
40
|
+
const status = getEntryStatus(entry.sys, props.sdk.field.locale);
|
|
41
41
|
return React.createElement(InlineEntryCard, {
|
|
42
42
|
testId: INLINES.EMBEDDED_RESOURCE,
|
|
43
43
|
isSelected: props.isSelected,
|
|
@@ -28,7 +28,7 @@ async function fetchAllData({ sdk, entityId, entityType, localeCode, defaultLoca
|
|
|
28
28
|
defaultLocaleCode
|
|
29
29
|
});
|
|
30
30
|
const jobs = await sdk.space.getEntityScheduledActions(entityType, entityId);
|
|
31
|
-
const entityStatus = entityHelpers.getEntryStatus(entity.sys);
|
|
31
|
+
const entityStatus = entityHelpers.getEntryStatus(entity.sys, sdk.field.locale);
|
|
32
32
|
return {
|
|
33
33
|
jobs,
|
|
34
34
|
entity,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-rich-text",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.22.0",
|
|
4
4
|
"source": "./src/index.tsx",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"@contentful/f36-icons": "^4.1.1",
|
|
45
45
|
"@contentful/f36-tokens": "^4.0.0",
|
|
46
46
|
"@contentful/f36-utils": "^4.19.0",
|
|
47
|
-
"@contentful/field-editor-reference": "^5.
|
|
48
|
-
"@contentful/field-editor-shared": "^1.
|
|
47
|
+
"@contentful/field-editor-reference": "^5.28.0",
|
|
48
|
+
"@contentful/field-editor-shared": "^1.5.0",
|
|
49
49
|
"@contentful/rich-text-plain-text-renderer": "^16.0.4",
|
|
50
50
|
"@contentful/rich-text-types": "16.3.0",
|
|
51
51
|
"@popperjs/core": "^2.11.5",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"registry": "https://npm.pkg.github.com/"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "843655f104af6fb8c116869d59cd9f20e6f1ab14"
|
|
90
90
|
}
|