@contentful/field-editor-rich-text 3.17.2 → 3.17.4
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/DeserializeDocx/createDeserializeDocxPlugin.js +46 -0
- package/dist/cjs/plugins/DeserializeDocx/index.js +11 -0
- package/dist/cjs/plugins/Hyperlink/HyperlinkModal.js +3 -13
- package/dist/cjs/plugins/index.js +2 -2
- package/dist/cjs/plugins/shared/EmbeddedBlockUtil.js +10 -17
- package/dist/cjs/plugins/shared/EmbeddedInlineUtil.js +10 -17
- package/dist/esm/plugins/DeserializeDocx/createDeserializeDocxPlugin.js +36 -0
- package/dist/esm/plugins/DeserializeDocx/index.js +1 -0
- package/dist/esm/plugins/Hyperlink/HyperlinkModal.js +3 -13
- package/dist/esm/plugins/index.js +1 -1
- package/dist/esm/plugins/shared/EmbeddedBlockUtil.js +10 -17
- package/dist/esm/plugins/shared/EmbeddedInlineUtil.js +10 -17
- package/dist/types/plugins/DeserializeDocx/createDeserializeDocxPlugin.d.ts +2 -0
- package/dist/types/plugins/DeserializeDocx/index.d.ts +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "createDeserializeDocxPlugin", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return createDeserializeDocxPlugin;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _platecommon = require("@udecode/plate-common");
|
|
12
|
+
const _plateserializerdocx = require("@udecode/plate-serializer-docx");
|
|
13
|
+
const createDeserializeDocxPlugin = ()=>(0, _plateserializerdocx.createDeserializeDocxPlugin)({
|
|
14
|
+
inject: {
|
|
15
|
+
pluginsByKey: {
|
|
16
|
+
[_platecommon.KEY_DESERIALIZE_HTML]: {
|
|
17
|
+
editor: {
|
|
18
|
+
insertData: {
|
|
19
|
+
transformData: (data, { dataTransfer })=>{
|
|
20
|
+
const rtf = dataTransfer.getData('text/rtf');
|
|
21
|
+
const document = new DOMParser().parseFromString((0, _platecommon.preCleanHtml)(data), 'text/html');
|
|
22
|
+
const { body } = document;
|
|
23
|
+
if (!rtf && !(0, _plateserializerdocx.isDocxContent)(body)) {
|
|
24
|
+
return data;
|
|
25
|
+
}
|
|
26
|
+
(0, _plateserializerdocx.cleanDocxFootnotes)(body);
|
|
27
|
+
(0, _plateserializerdocx.cleanDocxImageElements)(document, rtf, body);
|
|
28
|
+
(0, _platecommon.cleanHtmlEmptyElements)(body);
|
|
29
|
+
(0, _plateserializerdocx.cleanDocxEmptyParagraphs)(body);
|
|
30
|
+
(0, _plateserializerdocx.cleanDocxQuotes)(body);
|
|
31
|
+
(0, _plateserializerdocx.cleanDocxSpans)(body);
|
|
32
|
+
(0, _platecommon.cleanHtmlTextNodes)(body);
|
|
33
|
+
(0, _plateserializerdocx.cleanDocxBrComments)(body);
|
|
34
|
+
(0, _platecommon.cleanHtmlBrElements)(body);
|
|
35
|
+
(0, _platecommon.cleanHtmlLinkElements)(body);
|
|
36
|
+
(0, _platecommon.cleanHtmlFontElements)(body);
|
|
37
|
+
(0, _plateserializerdocx.cleanDocxListElements)(body);
|
|
38
|
+
(0, _platecommon.copyBlockMarksToSpanChild)(body);
|
|
39
|
+
return (0, _platecommon.postCleanHtml)(body.innerHTML);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "createDeserializeDocxPlugin", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _createDeserializeDocxPlugin.createDeserializeDocxPlugin;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _createDeserializeDocxPlugin = require("./createDeserializeDocxPlugin");
|
|
@@ -151,16 +151,6 @@ function HyperlinkModal(props) {
|
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
|
-
function entityToResourceLink(entity) {
|
|
155
|
-
const { urn } = entity.sys;
|
|
156
|
-
return {
|
|
157
|
-
sys: {
|
|
158
|
-
urn,
|
|
159
|
-
type: 'ResourceLink',
|
|
160
|
-
linkType: 'Contentful:Entry'
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
154
|
function isResourceLink(link) {
|
|
165
155
|
return !!link && !!link.sys.urn;
|
|
166
156
|
}
|
|
@@ -185,10 +175,10 @@ function HyperlinkModal(props) {
|
|
|
185
175
|
const options = {
|
|
186
176
|
allowedResources: (0, _getAllowedResourcesForNodeType.default)(props.sdk.field, _richtexttypes.INLINES.RESOURCE_HYPERLINK)
|
|
187
177
|
};
|
|
188
|
-
const
|
|
189
|
-
if (
|
|
178
|
+
const entityLink = await props.sdk.dialogs.selectSingleResourceEntity(options);
|
|
179
|
+
if (entityLink) {
|
|
190
180
|
setLinkTarget('');
|
|
191
|
-
setLinkEntity(
|
|
181
|
+
setLinkEntity(entityLink);
|
|
192
182
|
}
|
|
193
183
|
}
|
|
194
184
|
async function selectAsset() {
|
|
@@ -16,10 +16,10 @@ _export(exports, {
|
|
|
16
16
|
return getPlugins;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
const _plateserializerdocx = require("@udecode/plate-serializer-docx");
|
|
20
19
|
const _Break = require("./Break");
|
|
21
20
|
const _CommandPalette = require("./CommandPalette");
|
|
22
21
|
const _useCommands = require("./CommandPalette/useCommands");
|
|
22
|
+
const _DeserializeDocx = require("./DeserializeDocx");
|
|
23
23
|
const _DragAndDrop = require("./DragAndDrop");
|
|
24
24
|
const _EmbeddedEntityBlock = require("./EmbeddedEntityBlock");
|
|
25
25
|
const _EmbeddedEntityInline = require("./EmbeddedEntityInline");
|
|
@@ -41,7 +41,7 @@ const _Tracking = require("./Tracking");
|
|
|
41
41
|
const _TrailingParagraph = require("./TrailingParagraph");
|
|
42
42
|
const _Voids = require("./Voids");
|
|
43
43
|
const getPlugins = (sdk, onAction, restrictedMarks)=>[
|
|
44
|
-
(0,
|
|
44
|
+
(0, _DeserializeDocx.createDeserializeDocxPlugin)(),
|
|
45
45
|
(0, _Tracking.createTrackingPlugin)(onAction),
|
|
46
46
|
(0, _DragAndDrop.createDragAndDropPlugin)(),
|
|
47
47
|
...Object.values((0, _useCommands.isCommandPromptPluginEnabled)(sdk)).some(Boolean) ? [
|
|
@@ -94,14 +94,14 @@ async function selectResourceEntityAndInsert(sdk, editor, logAction) {
|
|
|
94
94
|
const { field, dialogs } = sdk;
|
|
95
95
|
const config = (0, _config.newResourceEntitySelectorConfigFromRichTextField)(field, _richtexttypes.BLOCKS.EMBEDDED_RESOURCE);
|
|
96
96
|
const { selection } = editor;
|
|
97
|
-
const
|
|
98
|
-
if (!
|
|
97
|
+
const entityLink = await dialogs.selectSingleResourceEntity(config);
|
|
98
|
+
if (!entityLink) {
|
|
99
99
|
logAction('cancelCreateEmbedDialog', {
|
|
100
100
|
nodeType: _richtexttypes.BLOCKS.EMBEDDED_RESOURCE
|
|
101
101
|
});
|
|
102
102
|
} else {
|
|
103
103
|
(0, _internal.select)(editor, selection);
|
|
104
|
-
insertBlock(editor, _richtexttypes.BLOCKS.EMBEDDED_RESOURCE,
|
|
104
|
+
insertBlock(editor, _richtexttypes.BLOCKS.EMBEDDED_RESOURCE, entityLink);
|
|
105
105
|
ensureFollowingParagraph(editor, [
|
|
106
106
|
_richtexttypes.BLOCKS.EMBEDDED_RESOURCE
|
|
107
107
|
]);
|
|
@@ -127,27 +127,20 @@ function ensureFollowingParagraph(editor, nodeTypes) {
|
|
|
127
127
|
}
|
|
128
128
|
(0, _editor.moveToTheNextChar)(editor);
|
|
129
129
|
}
|
|
130
|
-
const getLink = (
|
|
131
|
-
if (nodeType === _richtexttypes.BLOCKS.EMBEDDED_RESOURCE) {
|
|
132
|
-
return {
|
|
133
|
-
urn: entity.sys.urn,
|
|
134
|
-
type: 'ResourceLink',
|
|
135
|
-
linkType: 'Contentful:Entry'
|
|
136
|
-
};
|
|
137
|
-
}
|
|
130
|
+
const getLink = (entity)=>{
|
|
138
131
|
return {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
132
|
+
sys: {
|
|
133
|
+
id: entity.sys.id,
|
|
134
|
+
type: 'Link',
|
|
135
|
+
linkType: entity.sys.type
|
|
136
|
+
}
|
|
142
137
|
};
|
|
143
138
|
};
|
|
144
139
|
const createNode = (nodeType, entity)=>{
|
|
145
140
|
return {
|
|
146
141
|
type: nodeType,
|
|
147
142
|
data: {
|
|
148
|
-
target:
|
|
149
|
-
sys: getLink(nodeType, entity)
|
|
150
|
-
}
|
|
143
|
+
target: nodeType === _richtexttypes.BLOCKS.EMBEDDED_RESOURCE ? entity : getLink(entity)
|
|
151
144
|
},
|
|
152
145
|
children: [
|
|
153
146
|
{
|
|
@@ -44,18 +44,13 @@ function getWithEmbeddedEntryInlineEvents(nodeType, sdk) {
|
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
const getLink = (
|
|
48
|
-
if (nodeType === _richtexttypes.INLINES.EMBEDDED_RESOURCE) {
|
|
49
|
-
return {
|
|
50
|
-
urn: entity.sys.urn,
|
|
51
|
-
type: 'ResourceLink',
|
|
52
|
-
linkType: 'Contentful:Entry'
|
|
53
|
-
};
|
|
54
|
-
}
|
|
47
|
+
const getLink = (entity)=>{
|
|
55
48
|
return {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
49
|
+
sys: {
|
|
50
|
+
id: entity.sys.id,
|
|
51
|
+
type: 'Link',
|
|
52
|
+
linkType: entity.sys.type
|
|
53
|
+
}
|
|
59
54
|
};
|
|
60
55
|
};
|
|
61
56
|
const createInlineEntryNode = (nodeType, entity)=>{
|
|
@@ -67,9 +62,7 @@ const createInlineEntryNode = (nodeType, entity)=>{
|
|
|
67
62
|
}
|
|
68
63
|
],
|
|
69
64
|
data: {
|
|
70
|
-
target:
|
|
71
|
-
sys: getLink(nodeType, entity)
|
|
72
|
-
}
|
|
65
|
+
target: nodeType === _richtexttypes.INLINES.EMBEDDED_RESOURCE ? entity : getLink(entity)
|
|
73
66
|
}
|
|
74
67
|
};
|
|
75
68
|
};
|
|
@@ -112,14 +105,14 @@ async function selectResourceEntityAndInsert(editor, sdk, logAction) {
|
|
|
112
105
|
withCreate: true
|
|
113
106
|
};
|
|
114
107
|
const { selection } = editor;
|
|
115
|
-
const
|
|
116
|
-
if (!
|
|
108
|
+
const entryLink = await dialogs.selectSingleResourceEntity(config);
|
|
109
|
+
if (!entryLink) {
|
|
117
110
|
logAction('cancelCreateEmbedDialog', {
|
|
118
111
|
nodeType
|
|
119
112
|
});
|
|
120
113
|
} else {
|
|
121
114
|
(0, _transforms.select)(editor, selection);
|
|
122
|
-
(0, _transforms.insertNodes)(editor, createInlineEntryNode(nodeType,
|
|
115
|
+
(0, _transforms.insertNodes)(editor, createInlineEntryNode(nodeType, entryLink));
|
|
123
116
|
logAction('insert', {
|
|
124
117
|
nodeType
|
|
125
118
|
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { KEY_DESERIALIZE_HTML, cleanHtmlBrElements, cleanHtmlEmptyElements, cleanHtmlFontElements, cleanHtmlLinkElements, cleanHtmlTextNodes, copyBlockMarksToSpanChild, postCleanHtml, preCleanHtml } from '@udecode/plate-common';
|
|
2
|
+
import { cleanDocxBrComments, cleanDocxEmptyParagraphs, cleanDocxFootnotes, cleanDocxImageElements, cleanDocxListElements, cleanDocxQuotes, cleanDocxSpans, createDeserializeDocxPlugin as originalCreateDeserializeDocxPlugin, isDocxContent } from '@udecode/plate-serializer-docx';
|
|
3
|
+
export const createDeserializeDocxPlugin = ()=>originalCreateDeserializeDocxPlugin({
|
|
4
|
+
inject: {
|
|
5
|
+
pluginsByKey: {
|
|
6
|
+
[KEY_DESERIALIZE_HTML]: {
|
|
7
|
+
editor: {
|
|
8
|
+
insertData: {
|
|
9
|
+
transformData: (data, { dataTransfer })=>{
|
|
10
|
+
const rtf = dataTransfer.getData('text/rtf');
|
|
11
|
+
const document = new DOMParser().parseFromString(preCleanHtml(data), 'text/html');
|
|
12
|
+
const { body } = document;
|
|
13
|
+
if (!rtf && !isDocxContent(body)) {
|
|
14
|
+
return data;
|
|
15
|
+
}
|
|
16
|
+
cleanDocxFootnotes(body);
|
|
17
|
+
cleanDocxImageElements(document, rtf, body);
|
|
18
|
+
cleanHtmlEmptyElements(body);
|
|
19
|
+
cleanDocxEmptyParagraphs(body);
|
|
20
|
+
cleanDocxQuotes(body);
|
|
21
|
+
cleanDocxSpans(body);
|
|
22
|
+
cleanHtmlTextNodes(body);
|
|
23
|
+
cleanDocxBrComments(body);
|
|
24
|
+
cleanHtmlBrElements(body);
|
|
25
|
+
cleanHtmlLinkElements(body);
|
|
26
|
+
cleanHtmlFontElements(body);
|
|
27
|
+
cleanDocxListElements(body);
|
|
28
|
+
copyBlockMarksToSpanChild(body);
|
|
29
|
+
return postCleanHtml(body.innerHTML);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createDeserializeDocxPlugin } from './createDeserializeDocxPlugin';
|
|
@@ -87,16 +87,6 @@ export function HyperlinkModal(props) {
|
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
|
-
function entityToResourceLink(entity) {
|
|
91
|
-
const { urn } = entity.sys;
|
|
92
|
-
return {
|
|
93
|
-
sys: {
|
|
94
|
-
urn,
|
|
95
|
-
type: 'ResourceLink',
|
|
96
|
-
linkType: 'Contentful:Entry'
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
90
|
function isResourceLink(link) {
|
|
101
91
|
return !!link && !!link.sys.urn;
|
|
102
92
|
}
|
|
@@ -121,10 +111,10 @@ export function HyperlinkModal(props) {
|
|
|
121
111
|
const options = {
|
|
122
112
|
allowedResources: getAllowedResourcesForNodeType(props.sdk.field, INLINES.RESOURCE_HYPERLINK)
|
|
123
113
|
};
|
|
124
|
-
const
|
|
125
|
-
if (
|
|
114
|
+
const entityLink = await props.sdk.dialogs.selectSingleResourceEntity(options);
|
|
115
|
+
if (entityLink) {
|
|
126
116
|
setLinkTarget('');
|
|
127
|
-
setLinkEntity(
|
|
117
|
+
setLinkEntity(entityLink);
|
|
128
118
|
}
|
|
129
119
|
}
|
|
130
120
|
async function selectAsset() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { createDeserializeDocxPlugin } from '@udecode/plate-serializer-docx';
|
|
2
1
|
import { createSoftBreakPlugin, createExitBreakPlugin, createResetNodePlugin } from './Break';
|
|
3
2
|
import { createCommandPalettePlugin } from './CommandPalette';
|
|
4
3
|
import { isCommandPromptPluginEnabled } from './CommandPalette/useCommands';
|
|
4
|
+
import { createDeserializeDocxPlugin } from './DeserializeDocx';
|
|
5
5
|
import { createDragAndDropPlugin } from './DragAndDrop';
|
|
6
6
|
import { createEmbeddedAssetBlockPlugin, createEmbeddedEntryBlockPlugin } from './EmbeddedEntityBlock';
|
|
7
7
|
import { createEmbeddedEntityInlinePlugin } from './EmbeddedEntityInline';
|
|
@@ -68,14 +68,14 @@ export async function selectResourceEntityAndInsert(sdk, editor, logAction) {
|
|
|
68
68
|
const { field, dialogs } = sdk;
|
|
69
69
|
const config = newResourceEntitySelectorConfigFromRichTextField(field, BLOCKS.EMBEDDED_RESOURCE);
|
|
70
70
|
const { selection } = editor;
|
|
71
|
-
const
|
|
72
|
-
if (!
|
|
71
|
+
const entityLink = await dialogs.selectSingleResourceEntity(config);
|
|
72
|
+
if (!entityLink) {
|
|
73
73
|
logAction('cancelCreateEmbedDialog', {
|
|
74
74
|
nodeType: BLOCKS.EMBEDDED_RESOURCE
|
|
75
75
|
});
|
|
76
76
|
} else {
|
|
77
77
|
select(editor, selection);
|
|
78
|
-
insertBlock(editor, BLOCKS.EMBEDDED_RESOURCE,
|
|
78
|
+
insertBlock(editor, BLOCKS.EMBEDDED_RESOURCE, entityLink);
|
|
79
79
|
ensureFollowingParagraph(editor, [
|
|
80
80
|
BLOCKS.EMBEDDED_RESOURCE
|
|
81
81
|
]);
|
|
@@ -101,27 +101,20 @@ function ensureFollowingParagraph(editor, nodeTypes) {
|
|
|
101
101
|
}
|
|
102
102
|
moveToTheNextChar(editor);
|
|
103
103
|
}
|
|
104
|
-
const getLink = (
|
|
105
|
-
if (nodeType === BLOCKS.EMBEDDED_RESOURCE) {
|
|
106
|
-
return {
|
|
107
|
-
urn: entity.sys.urn,
|
|
108
|
-
type: 'ResourceLink',
|
|
109
|
-
linkType: 'Contentful:Entry'
|
|
110
|
-
};
|
|
111
|
-
}
|
|
104
|
+
const getLink = (entity)=>{
|
|
112
105
|
return {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
106
|
+
sys: {
|
|
107
|
+
id: entity.sys.id,
|
|
108
|
+
type: 'Link',
|
|
109
|
+
linkType: entity.sys.type
|
|
110
|
+
}
|
|
116
111
|
};
|
|
117
112
|
};
|
|
118
113
|
const createNode = (nodeType, entity)=>{
|
|
119
114
|
return {
|
|
120
115
|
type: nodeType,
|
|
121
116
|
data: {
|
|
122
|
-
target:
|
|
123
|
-
sys: getLink(nodeType, entity)
|
|
124
|
-
}
|
|
117
|
+
target: nodeType === BLOCKS.EMBEDDED_RESOURCE ? entity : getLink(entity)
|
|
125
118
|
},
|
|
126
119
|
children: [
|
|
127
120
|
{
|
|
@@ -18,18 +18,13 @@ export function getWithEmbeddedEntryInlineEvents(nodeType, sdk) {
|
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
const getLink = (
|
|
22
|
-
if (nodeType === INLINES.EMBEDDED_RESOURCE) {
|
|
23
|
-
return {
|
|
24
|
-
urn: entity.sys.urn,
|
|
25
|
-
type: 'ResourceLink',
|
|
26
|
-
linkType: 'Contentful:Entry'
|
|
27
|
-
};
|
|
28
|
-
}
|
|
21
|
+
const getLink = (entity)=>{
|
|
29
22
|
return {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
23
|
+
sys: {
|
|
24
|
+
id: entity.sys.id,
|
|
25
|
+
type: 'Link',
|
|
26
|
+
linkType: entity.sys.type
|
|
27
|
+
}
|
|
33
28
|
};
|
|
34
29
|
};
|
|
35
30
|
const createInlineEntryNode = (nodeType, entity)=>{
|
|
@@ -41,9 +36,7 @@ const createInlineEntryNode = (nodeType, entity)=>{
|
|
|
41
36
|
}
|
|
42
37
|
],
|
|
43
38
|
data: {
|
|
44
|
-
target:
|
|
45
|
-
sys: getLink(nodeType, entity)
|
|
46
|
-
}
|
|
39
|
+
target: nodeType === INLINES.EMBEDDED_RESOURCE ? entity : getLink(entity)
|
|
47
40
|
}
|
|
48
41
|
};
|
|
49
42
|
};
|
|
@@ -86,14 +79,14 @@ export async function selectResourceEntityAndInsert(editor, sdk, logAction) {
|
|
|
86
79
|
withCreate: true
|
|
87
80
|
};
|
|
88
81
|
const { selection } = editor;
|
|
89
|
-
const
|
|
90
|
-
if (!
|
|
82
|
+
const entryLink = await dialogs.selectSingleResourceEntity(config);
|
|
83
|
+
if (!entryLink) {
|
|
91
84
|
logAction('cancelCreateEmbedDialog', {
|
|
92
85
|
nodeType
|
|
93
86
|
});
|
|
94
87
|
} else {
|
|
95
88
|
select(editor, selection);
|
|
96
|
-
insertNodes(editor, createInlineEntryNode(nodeType,
|
|
89
|
+
insertNodes(editor, createInlineEntryNode(nodeType, entryLink));
|
|
97
90
|
logAction('insert', {
|
|
98
91
|
nodeType
|
|
99
92
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createDeserializeDocxPlugin } from './createDeserializeDocxPlugin';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-rich-text",
|
|
3
|
-
"version": "3.17.
|
|
3
|
+
"version": "3.17.4",
|
|
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.1.1",
|
|
45
45
|
"@contentful/f36-tokens": "^4.0.0",
|
|
46
46
|
"@contentful/f36-utils": "^4.19.0",
|
|
47
|
-
"@contentful/field-editor-reference": "^5.22.
|
|
47
|
+
"@contentful/field-editor-reference": "^5.22.3",
|
|
48
48
|
"@contentful/field-editor-shared": "^1.4.5",
|
|
49
49
|
"@contentful/rich-text-plain-text-renderer": "^16.0.4",
|
|
50
50
|
"@contentful/rich-text-types": "16.3.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@udecode/plate-paragraph": "30.1.2",
|
|
58
58
|
"@udecode/plate-reset-node": "30.1.2",
|
|
59
59
|
"@udecode/plate-select": "30.1.2",
|
|
60
|
-
"@udecode/plate-serializer-docx": "
|
|
60
|
+
"@udecode/plate-serializer-docx": "30.1.2",
|
|
61
61
|
"@udecode/plate-serializer-html": "30.1.2",
|
|
62
62
|
"@udecode/plate-table": "30.1.2",
|
|
63
63
|
"@udecode/plate-trailing-block": "30.1.2",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"registry": "https://npm.pkg.github.com/"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "87df8d557b8011b5bd1fcf1560762469683fa32e"
|
|
90
90
|
}
|