@contentful/field-editor-rich-text 4.4.0 → 4.4.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/plugins/shared/FetchingWrappedAssetCard.js +5 -1
- package/dist/cjs/plugins/shared/FetchingWrappedEntryCard.js +5 -1
- package/dist/cjs/plugins/shared/FetchingWrappedResourceCard.js +5 -1
- package/dist/esm/plugins/shared/FetchingWrappedAssetCard.js +6 -2
- package/dist/esm/plugins/shared/FetchingWrappedEntryCard.js +6 -2
- package/dist/esm/plugins/shared/FetchingWrappedResourceCard.js +6 -2
- package/package.json +3 -3
|
@@ -74,7 +74,11 @@ const InternalAssetCard = _react.memo((props)=>{
|
|
|
74
74
|
isClickable: false,
|
|
75
75
|
useLocalizedEntityStatus: props.sdk.parameters.instance.useLocalizedEntityStatus,
|
|
76
76
|
localesStatusMap: props.localesStatusMap,
|
|
77
|
-
activeLocales: activeLocales
|
|
77
|
+
activeLocales: activeLocales,
|
|
78
|
+
renderDragHandle: !props.isDisabled ? (dragHandleProps)=>_react.createElement(_f36components.DragHandle, {
|
|
79
|
+
label: "drag embedded asset",
|
|
80
|
+
...dragHandleProps
|
|
81
|
+
}) : undefined
|
|
78
82
|
});
|
|
79
83
|
}, _fastdeepequal.default);
|
|
80
84
|
InternalAssetCard.displayName = 'InternalAssetCard';
|
|
@@ -78,7 +78,11 @@ const InternalEntryCard = _react.memo((props)=>{
|
|
|
78
78
|
isClickable: false,
|
|
79
79
|
useLocalizedEntityStatus: sdk.parameters.instance.useLocalizedEntityStatus,
|
|
80
80
|
localesStatusMap: props.localesStatusMap,
|
|
81
|
-
activeLocales: activeLocales
|
|
81
|
+
activeLocales: activeLocales,
|
|
82
|
+
renderDragHandle: !props.isDisabled ? (dragHandleProps)=>_react.createElement(_f36components.DragHandle, {
|
|
83
|
+
label: "drag embedded entry",
|
|
84
|
+
...dragHandleProps
|
|
85
|
+
}) : undefined
|
|
82
86
|
});
|
|
83
87
|
}, _fastdeepequal.default);
|
|
84
88
|
InternalEntryCard.displayName = 'ReferenceCard';
|
|
@@ -79,7 +79,11 @@ const InternalEntryCard = _react.memo((props)=>{
|
|
|
79
79
|
onRemove: props.isDisabled ? undefined : props.onRemove,
|
|
80
80
|
isClickable: false,
|
|
81
81
|
getEntityScheduledActions: ()=>Promise.resolve([]),
|
|
82
|
-
useLocalizedEntityStatus: props.sdk.parameters.instance.useLocalizedEntityStatus
|
|
82
|
+
useLocalizedEntityStatus: props.sdk.parameters.instance.useLocalizedEntityStatus,
|
|
83
|
+
renderDragHandle: !props.isDisabled ? (dragHandleProps)=>_react.createElement(_f36components.DragHandle, {
|
|
84
|
+
label: "drag resource entry",
|
|
85
|
+
...dragHandleProps
|
|
86
|
+
}) : undefined
|
|
83
87
|
});
|
|
84
88
|
}, _fastdeepequal.default);
|
|
85
89
|
InternalEntryCard.displayName = 'ReferenceCard';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { AssetCard } from '@contentful/f36-components';
|
|
2
|
+
import { AssetCard, DragHandle } from '@contentful/f36-components';
|
|
3
3
|
import { useEntity, useEntityLoader, MissingEntityCard, WrappedAssetCard } from '@contentful/field-editor-reference';
|
|
4
4
|
import { useLocalePublishStatus, useActiveLocales } from '@contentful/field-editor-shared';
|
|
5
5
|
import areEqual from 'fast-deep-equal';
|
|
@@ -18,7 +18,11 @@ const InternalAssetCard = React.memo((props)=>{
|
|
|
18
18
|
isClickable: false,
|
|
19
19
|
useLocalizedEntityStatus: props.sdk.parameters.instance.useLocalizedEntityStatus,
|
|
20
20
|
localesStatusMap: props.localesStatusMap,
|
|
21
|
-
activeLocales: activeLocales
|
|
21
|
+
activeLocales: activeLocales,
|
|
22
|
+
renderDragHandle: !props.isDisabled ? (dragHandleProps)=>React.createElement(DragHandle, {
|
|
23
|
+
label: "drag embedded asset",
|
|
24
|
+
...dragHandleProps
|
|
25
|
+
}) : undefined
|
|
22
26
|
});
|
|
23
27
|
}, areEqual);
|
|
24
28
|
InternalAssetCard.displayName = 'InternalAssetCard';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { EntryCard } from '@contentful/f36-components';
|
|
2
|
+
import { DragHandle, EntryCard } from '@contentful/f36-components';
|
|
3
3
|
import { useEntity, MissingEntityCard, WrappedEntryCard, useEntityLoader } from '@contentful/field-editor-reference';
|
|
4
4
|
import { useLocalePublishStatus, useActiveLocales } from '@contentful/field-editor-shared';
|
|
5
5
|
import areEqual from 'fast-deep-equal';
|
|
@@ -22,7 +22,11 @@ const InternalEntryCard = React.memo((props)=>{
|
|
|
22
22
|
isClickable: false,
|
|
23
23
|
useLocalizedEntityStatus: sdk.parameters.instance.useLocalizedEntityStatus,
|
|
24
24
|
localesStatusMap: props.localesStatusMap,
|
|
25
|
-
activeLocales: activeLocales
|
|
25
|
+
activeLocales: activeLocales,
|
|
26
|
+
renderDragHandle: !props.isDisabled ? (dragHandleProps)=>React.createElement(DragHandle, {
|
|
27
|
+
label: "drag embedded entry",
|
|
28
|
+
...dragHandleProps
|
|
29
|
+
}) : undefined
|
|
26
30
|
});
|
|
27
31
|
}, areEqual);
|
|
28
32
|
InternalEntryCard.displayName = 'ReferenceCard';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { EntryCard } from '@contentful/f36-components';
|
|
2
|
+
import { DragHandle, EntryCard } from '@contentful/f36-components';
|
|
3
3
|
import { ResourceEntityErrorCard, WrappedEntryCard, useResource } from '@contentful/field-editor-reference';
|
|
4
4
|
import areEqual from 'fast-deep-equal';
|
|
5
5
|
const InternalEntryCard = React.memo((props)=>{
|
|
@@ -23,7 +23,11 @@ const InternalEntryCard = React.memo((props)=>{
|
|
|
23
23
|
onRemove: props.isDisabled ? undefined : props.onRemove,
|
|
24
24
|
isClickable: false,
|
|
25
25
|
getEntityScheduledActions: ()=>Promise.resolve([]),
|
|
26
|
-
useLocalizedEntityStatus: props.sdk.parameters.instance.useLocalizedEntityStatus
|
|
26
|
+
useLocalizedEntityStatus: props.sdk.parameters.instance.useLocalizedEntityStatus,
|
|
27
|
+
renderDragHandle: !props.isDisabled ? (dragHandleProps)=>React.createElement(DragHandle, {
|
|
28
|
+
label: "drag resource entry",
|
|
29
|
+
...dragHandleProps
|
|
30
|
+
}) : undefined
|
|
27
31
|
});
|
|
28
32
|
}, areEqual);
|
|
29
33
|
InternalEntryCard.displayName = 'ReferenceCard';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-rich-text",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.1",
|
|
4
4
|
"source": "./src/index.tsx",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@contentful/f36-icons": "^4.29.0",
|
|
45
45
|
"@contentful/f36-tokens": "^4.0.5",
|
|
46
46
|
"@contentful/f36-utils": "^4.24.3",
|
|
47
|
-
"@contentful/field-editor-reference": "^6.6.
|
|
47
|
+
"@contentful/field-editor-reference": "^6.6.1",
|
|
48
48
|
"@contentful/field-editor-shared": "^2.4.0",
|
|
49
49
|
"@contentful/rich-text-plain-text-renderer": "^17.0.0",
|
|
50
50
|
"@contentful/rich-text-types": "^17.0.0",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"registry": "https://npm.pkg.github.com/"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "a92c11aaf9967c63fe3f8b30a0566b15d7430f43"
|
|
90
90
|
}
|