@commercetools-uikit/rich-text-utils 16.7.4 → 16.7.5
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.
|
@@ -332,7 +332,7 @@ const deserializeElement = el => {
|
|
|
332
332
|
}
|
|
333
333
|
if (TEXT_TAGS[nodeName]) {
|
|
334
334
|
const attrs = TEXT_TAGS[nodeName]();
|
|
335
|
-
return _mapInstanceProperty__default["default"](children).call(children, child => slateHyperscript.jsx('text', attrs, child));
|
|
335
|
+
return _mapInstanceProperty__default["default"](children).call(children, child => slateHyperscript.jsx('text', attrs, slate.Text.isText(child) ? child : 'Invalid markup'));
|
|
336
336
|
}
|
|
337
337
|
return children;
|
|
338
338
|
};
|
|
@@ -2669,7 +2669,7 @@ RichTextEditorBody.defaultProps = defaultProps;
|
|
|
2669
2669
|
var RichTextEditorBody$1 = RichTextEditorBody;
|
|
2670
2670
|
|
|
2671
2671
|
// NOTE: This string will be replaced on build time with the package version.
|
|
2672
|
-
var version = "16.7.
|
|
2672
|
+
var version = "16.7.5";
|
|
2673
2673
|
|
|
2674
2674
|
exports.Element = Element;
|
|
2675
2675
|
exports.HiddenInput = HiddenInput$1;
|
|
@@ -331,7 +331,7 @@ const deserializeElement = el => {
|
|
|
331
331
|
}
|
|
332
332
|
if (TEXT_TAGS[nodeName]) {
|
|
333
333
|
const attrs = TEXT_TAGS[nodeName]();
|
|
334
|
-
return _mapInstanceProperty__default["default"](children).call(children, child => slateHyperscript.jsx('text', attrs, child));
|
|
334
|
+
return _mapInstanceProperty__default["default"](children).call(children, child => slateHyperscript.jsx('text', attrs, slate.Text.isText(child) ? child : 'Invalid markup'));
|
|
335
335
|
}
|
|
336
336
|
return children;
|
|
337
337
|
};
|
|
@@ -2545,7 +2545,7 @@ RichTextEditorBody.defaultProps = defaultProps;
|
|
|
2545
2545
|
var RichTextEditorBody$1 = RichTextEditorBody;
|
|
2546
2546
|
|
|
2547
2547
|
// NOTE: This string will be replaced on build time with the package version.
|
|
2548
|
-
var version = "16.7.
|
|
2548
|
+
var version = "16.7.5";
|
|
2549
2549
|
|
|
2550
2550
|
exports.Element = Element;
|
|
2551
2551
|
exports.HiddenInput = HiddenInput$1;
|
|
@@ -295,7 +295,7 @@ const deserializeElement = el => {
|
|
|
295
295
|
}
|
|
296
296
|
if (TEXT_TAGS[nodeName]) {
|
|
297
297
|
const attrs = TEXT_TAGS[nodeName]();
|
|
298
|
-
return _mapInstanceProperty(children).call(children, child => jsx('text', attrs, child));
|
|
298
|
+
return _mapInstanceProperty(children).call(children, child => jsx('text', attrs, Text.isText(child) ? child : 'Invalid markup'));
|
|
299
299
|
}
|
|
300
300
|
return children;
|
|
301
301
|
};
|
|
@@ -2632,6 +2632,6 @@ RichTextEditorBody.defaultProps = defaultProps;
|
|
|
2632
2632
|
var RichTextEditorBody$1 = RichTextEditorBody;
|
|
2633
2633
|
|
|
2634
2634
|
// NOTE: This string will be replaced on build time with the package version.
|
|
2635
|
-
var version = "16.7.
|
|
2635
|
+
var version = "16.7.5";
|
|
2636
2636
|
|
|
2637
2637
|
export { Element, HiddenInput$1 as HiddenInput, Leaf, RichTextEditorBody$1 as RichTextBody, focusEditor, html$1 as html, isBlockActive, isRichTextEmpty as isEmpty, isMarkActive, index as localized, resetEditor, toggleBlock, toggleMark, validSlateStateAdapter, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/rich-text-utils",
|
|
3
3
|
"description": "Utilities for working with rich-text components.",
|
|
4
|
-
"version": "16.7.
|
|
4
|
+
"version": "16.7.5",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@babel/runtime": "^7.20.13",
|
|
26
26
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
27
|
-
"@commercetools-uikit/design-system": "16.7.
|
|
28
|
-
"@commercetools-uikit/icons": "16.7.
|
|
29
|
-
"@commercetools-uikit/input-utils": "16.7.
|
|
30
|
-
"@commercetools-uikit/spacings-inline": "16.7.
|
|
31
|
-
"@commercetools-uikit/tooltip": "16.7.
|
|
32
|
-
"@commercetools-uikit/utils": "16.7.
|
|
27
|
+
"@commercetools-uikit/design-system": "16.7.5",
|
|
28
|
+
"@commercetools-uikit/icons": "16.7.5",
|
|
29
|
+
"@commercetools-uikit/input-utils": "16.7.5",
|
|
30
|
+
"@commercetools-uikit/spacings-inline": "16.7.5",
|
|
31
|
+
"@commercetools-uikit/tooltip": "16.7.5",
|
|
32
|
+
"@commercetools-uikit/utils": "16.7.5",
|
|
33
33
|
"@emotion/react": "^11.10.5",
|
|
34
34
|
"@emotion/styled": "^11.10.5",
|
|
35
35
|
"@types/escape-html": "1.0.2",
|
|
@@ -46,10 +46,12 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"react": "17.0.2",
|
|
49
|
+
"react-dom": "17.0.2",
|
|
49
50
|
"react-intl": "^6.3.2"
|
|
50
51
|
},
|
|
51
52
|
"peerDependencies": {
|
|
52
53
|
"react": "17.x",
|
|
54
|
+
"react-dom": "17.x",
|
|
53
55
|
"react-intl": "6.x"
|
|
54
56
|
}
|
|
55
57
|
}
|