@redneckz/wildless-cms-uni-blocks 0.14.62 → 0.14.63
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/bundle/bundle.umd.js +3 -2
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/ui-kit/RichText/RichText.js +2 -1
- package/dist/ui-kit/RichText/RichText.js.map +1 -1
- package/lib/ui-kit/RichText/RichText.js +2 -1
- package/lib/ui-kit/RichText/RichText.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +3 -2
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/ui-kit/RichText/RichText.js +2 -1
- package/mobile/dist/ui-kit/RichText/RichText.js.map +1 -1
- package/mobile/lib/ui-kit/RichText/RichText.js +2 -1
- package/mobile/lib/ui-kit/RichText/RichText.js.map +1 -1
- package/mobile/src/ui-kit/RichText/RichText.tsx +4 -1
- package/package.json +1 -1
- package/src/ui-kit/RichText/RichText.tsx +4 -1
|
@@ -6,6 +6,7 @@ const style_1 = require("../../utils/style");
|
|
|
6
6
|
const getHtmlText_1 = require("./getHtmlText");
|
|
7
7
|
exports.RichText = (0, uni_jsx_1.JSX)((props) => {
|
|
8
8
|
const { __html = '', richVersion = '' } = props;
|
|
9
|
-
|
|
9
|
+
/* Attribute [data-component] need for correct render in wcms editor. Do not remove. */
|
|
10
|
+
return (0, getHtmlText_1.getHtmlText)(__html) ? ((0, jsx_runtime_1.jsx)("div", { "data-component": "rich-text-container", children: (0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)(richVersion, 'md-container'), dangerouslySetInnerHTML: { __html } }) })) : null;
|
|
10
11
|
});
|
|
11
12
|
//# sourceMappingURL=RichText.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichText.js","sourceRoot":"","sources":["../../../src/ui-kit/RichText/RichText.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,6CAA0C;AAC1C,+CAA4C;AAG/B,QAAA,QAAQ,GAAG,IAAA,aAAG,EAAgB,CAAC,KAAK,EAAE,EAAE;IACnD,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,WAAW,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC;IAEhD,OAAO,IAAA,yBAAW,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAC3B,gCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,WAAW,EAAE,cAAc,CAAC,EAAE,uBAAuB,EAAE,EAAE,MAAM,EAAE,GAAI,
|
|
1
|
+
{"version":3,"file":"RichText.js","sourceRoot":"","sources":["../../../src/ui-kit/RichText/RichText.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,6CAA0C;AAC1C,+CAA4C;AAG/B,QAAA,QAAQ,GAAG,IAAA,aAAG,EAAgB,CAAC,KAAK,EAAE,EAAE;IACnD,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,WAAW,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC;IAEhD,uFAAuF;IACvF,OAAO,IAAA,yBAAW,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAC3B,kDAAoB,qBAAqB,YACvC,gCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,WAAW,EAAE,cAAc,CAAC,EAAE,uBAAuB,EAAE,EAAE,MAAM,EAAE,GAAI,GACvF,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC,CAAC"}
|
|
@@ -4,6 +4,7 @@ import { style } from '../../utils/style.js';
|
|
|
4
4
|
import { getHtmlText } from './getHtmlText.js';
|
|
5
5
|
export const RichText = JSX((props) => {
|
|
6
6
|
const { __html = '', richVersion = '' } = props;
|
|
7
|
-
|
|
7
|
+
/* Attribute [data-component] need for correct render in wcms editor. Do not remove. */
|
|
8
|
+
return getHtmlText(__html) ? (_jsx("div", { "data-component": "rich-text-container", children: _jsx("div", { className: style(richVersion, 'md-container'), dangerouslySetInnerHTML: { __html } }) })) : null;
|
|
8
9
|
});
|
|
9
10
|
//# sourceMappingURL=RichText.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichText.js","sourceRoot":"","sources":["../../../src/ui-kit/RichText/RichText.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAgB,CAAC,KAAK,EAAE,EAAE;IACnD,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,WAAW,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC;IAEhD,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAC3B,cAAK,SAAS,EAAE,KAAK,CAAC,WAAW,EAAE,cAAc,CAAC,EAAE,uBAAuB,EAAE,EAAE,MAAM,EAAE,GAAI,
|
|
1
|
+
{"version":3,"file":"RichText.js","sourceRoot":"","sources":["../../../src/ui-kit/RichText/RichText.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAgB,CAAC,KAAK,EAAE,EAAE;IACnD,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,WAAW,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC;IAEhD,uFAAuF;IACvF,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAC3B,gCAAoB,qBAAqB,YACvC,cAAK,SAAS,EAAE,KAAK,CAAC,WAAW,EAAE,cAAc,CAAC,EAAE,uBAAuB,EAAE,EAAE,MAAM,EAAE,GAAI,GACvF,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC,CAAC"}
|
|
@@ -6,7 +6,10 @@ import { type RichTextProps } from './RichTextProps';
|
|
|
6
6
|
export const RichText = JSX<RichTextProps>((props) => {
|
|
7
7
|
const { __html = '', richVersion = '' } = props;
|
|
8
8
|
|
|
9
|
+
/* Attribute [data-component] need for correct render in wcms editor. Do not remove. */
|
|
9
10
|
return getHtmlText(__html) ? (
|
|
10
|
-
<div
|
|
11
|
+
<div data-component="rich-text-container">
|
|
12
|
+
<div className={style(richVersion, 'md-container')} dangerouslySetInnerHTML={{ __html }} />
|
|
13
|
+
</div>
|
|
11
14
|
) : null;
|
|
12
15
|
});
|
package/package.json
CHANGED
|
@@ -6,7 +6,10 @@ import { type RichTextProps } from './RichTextProps';
|
|
|
6
6
|
export const RichText = JSX<RichTextProps>((props) => {
|
|
7
7
|
const { __html = '', richVersion = '' } = props;
|
|
8
8
|
|
|
9
|
+
/* Attribute [data-component] need for correct render in wcms editor. Do not remove. */
|
|
9
10
|
return getHtmlText(__html) ? (
|
|
10
|
-
<div
|
|
11
|
+
<div data-component="rich-text-container">
|
|
12
|
+
<div className={style(richVersion, 'md-container')} dangerouslySetInnerHTML={{ __html }} />
|
|
13
|
+
</div>
|
|
11
14
|
) : null;
|
|
12
15
|
});
|