@commercetools-uikit/rich-text-utils 15.1.0 → 15.1.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.
|
@@ -400,7 +400,10 @@ var deserializeElement = function deserializeElement(el) {
|
|
|
400
400
|
}, children));
|
|
401
401
|
}
|
|
402
402
|
|
|
403
|
-
return wrapWithParagraphIfRootElement(el,
|
|
403
|
+
return wrapWithParagraphIfRootElement(el, // children mapping to cover nested elements within text e.g. <span>Some <span>text</span></span>
|
|
404
|
+
_mapInstanceProperty__default["default"](children).call(children, function (child) {
|
|
405
|
+
return slate.Text.isText(child) ? slateHyperscript.jsx('text', attrs, child) : slateHyperscript.jsx('element', attrs, child);
|
|
406
|
+
}));
|
|
404
407
|
}
|
|
405
408
|
}
|
|
406
409
|
|
|
@@ -3244,7 +3247,7 @@ RichTextEditorBody.defaultProps = defaultProps;
|
|
|
3244
3247
|
var RichTextEditorBody$1 = RichTextEditorBody;
|
|
3245
3248
|
|
|
3246
3249
|
// NOTE: This string will be replaced on build time with the package version.
|
|
3247
|
-
var version = "15.1.
|
|
3250
|
+
var version = "15.1.1";
|
|
3248
3251
|
|
|
3249
3252
|
exports.Element = Element;
|
|
3250
3253
|
exports.HiddenInput = HiddenInput$1;
|
|
@@ -399,7 +399,10 @@ var deserializeElement = function deserializeElement(el) {
|
|
|
399
399
|
}, children));
|
|
400
400
|
}
|
|
401
401
|
|
|
402
|
-
return wrapWithParagraphIfRootElement(el,
|
|
402
|
+
return wrapWithParagraphIfRootElement(el, // children mapping to cover nested elements within text e.g. <span>Some <span>text</span></span>
|
|
403
|
+
_mapInstanceProperty__default["default"](children).call(children, function (child) {
|
|
404
|
+
return slate.Text.isText(child) ? slateHyperscript.jsx('text', attrs, child) : slateHyperscript.jsx('element', attrs, child);
|
|
405
|
+
}));
|
|
403
406
|
}
|
|
404
407
|
}
|
|
405
408
|
|
|
@@ -3119,7 +3122,7 @@ RichTextEditorBody.defaultProps = defaultProps;
|
|
|
3119
3122
|
var RichTextEditorBody$1 = RichTextEditorBody;
|
|
3120
3123
|
|
|
3121
3124
|
// NOTE: This string will be replaced on build time with the package version.
|
|
3122
|
-
var version = "15.1.
|
|
3125
|
+
var version = "15.1.1";
|
|
3123
3126
|
|
|
3124
3127
|
exports.Element = Element;
|
|
3125
3128
|
exports.HiddenInput = HiddenInput$1;
|
|
@@ -363,7 +363,10 @@ var deserializeElement = function deserializeElement(el) {
|
|
|
363
363
|
}, children));
|
|
364
364
|
}
|
|
365
365
|
|
|
366
|
-
return wrapWithParagraphIfRootElement(el,
|
|
366
|
+
return wrapWithParagraphIfRootElement(el, // children mapping to cover nested elements within text e.g. <span>Some <span>text</span></span>
|
|
367
|
+
_mapInstanceProperty(children).call(children, function (child) {
|
|
368
|
+
return Text.isText(child) ? jsx('text', attrs, child) : jsx('element', attrs, child);
|
|
369
|
+
}));
|
|
367
370
|
}
|
|
368
371
|
}
|
|
369
372
|
|
|
@@ -3207,6 +3210,6 @@ RichTextEditorBody.defaultProps = defaultProps;
|
|
|
3207
3210
|
var RichTextEditorBody$1 = RichTextEditorBody;
|
|
3208
3211
|
|
|
3209
3212
|
// NOTE: This string will be replaced on build time with the package version.
|
|
3210
|
-
var version = "15.1.
|
|
3213
|
+
var version = "15.1.1";
|
|
3211
3214
|
|
|
3212
3215
|
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": "15.1.
|
|
4
|
+
"version": "15.1.1",
|
|
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.17.2",
|
|
26
26
|
"@babel/runtime-corejs3": "^7.17.2",
|
|
27
|
-
"@commercetools-uikit/design-system": "15.1.
|
|
28
|
-
"@commercetools-uikit/icons": "15.1.
|
|
29
|
-
"@commercetools-uikit/input-utils": "15.1.
|
|
30
|
-
"@commercetools-uikit/spacings-inline": "15.1.
|
|
31
|
-
"@commercetools-uikit/tooltip": "15.1.
|
|
32
|
-
"@commercetools-uikit/utils": "15.1.
|
|
27
|
+
"@commercetools-uikit/design-system": "15.1.1",
|
|
28
|
+
"@commercetools-uikit/icons": "15.1.1",
|
|
29
|
+
"@commercetools-uikit/input-utils": "15.1.1",
|
|
30
|
+
"@commercetools-uikit/spacings-inline": "15.1.1",
|
|
31
|
+
"@commercetools-uikit/tooltip": "15.1.1",
|
|
32
|
+
"@commercetools-uikit/utils": "15.1.1",
|
|
33
33
|
"@emotion/react": "^11.4.0",
|
|
34
34
|
"@emotion/styled": "^11.3.0",
|
|
35
35
|
"@types/escape-html": "1.0.2",
|