pb-sxp-ui 1.15.25 → 1.15.26
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/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +2 -1
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +2 -1
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +4 -2
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +2 -1
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/ExpandableText.js +28 -30
- package/lib/core/components/SxpPageRender/ExpandableText.js +28 -30
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -10242,7 +10242,7 @@ const ExpandableText = ({ text, maxStr = 108, style, className, onClick, foldTex
|
|
10242
10242
|
(_a = observerRef.current) === null || _a === void 0 ? void 0 : _a.disconnect();
|
10243
10243
|
};
|
10244
10244
|
}, [checkOverflow]);
|
10245
|
-
return (React.createElement("div", { className: className, style: Object.assign(Object.assign({}, textStyle), { transform: 'translate3d(0px, 0px, 0px)', overflow: 'hidden' }), hidden: !text || text === '' },
|
10245
|
+
return (React.createElement("div", { className: className, style: Object.assign(Object.assign({}, textStyle), { transform: 'translate3d(0px, 0px, 0px)', overflow: 'hidden', position: 'relative' }), hidden: !text || text === '' },
|
10246
10246
|
React.createElement("div", { ref: clampRef, style: Object.assign(Object.assign({}, (!isShowMore &&
|
10247
10247
|
isPost && {
|
10248
10248
|
WebkitLineClamp: textLineClamp,
|
@@ -10262,7 +10262,8 @@ const ExpandableText = ({ text, maxStr = 108, style, className, onClick, foldTex
|
|
10262
10262
|
visibility: 'hidden',
|
10263
10263
|
position: 'absolute',
|
10264
10264
|
opacity: 0,
|
10265
|
-
clipPath: 'inset(100%)'
|
10265
|
+
clipPath: 'inset(100%)',
|
10266
|
+
transform: 'translateX(-9999px)'
|
10266
10267
|
}, dangerouslySetInnerHTML: { __html: setFontForText(text === null || text === void 0 ? void 0 : text.replace(/\n/g, '</br>'), textStyle) } }),
|
10267
10268
|
text && isPost && isShow && (React.createElement("button", { "aria-label": isShowMore ? unfoldText || 'show less' : foldText || 'show more', style: { textDecoration: 'underline', cursor: 'pointer' }, onClick: onClick !== null && onClick !== void 0 ? onClick : handleClick, dangerouslySetInnerHTML: {
|
10268
10269
|
__html: setFontForText(isShowMore ? unfoldText || 'show less' : foldText || 'show more', textStyle)
|
@@ -20198,3 +20199,4 @@ exports.core = index$3;
|
|
20198
20199
|
exports.default = Pagebuilder;
|
20199
20200
|
exports.materials = _materials_;
|
20200
20201
|
exports.useEditorDataProvider = useEditorDataProvider;
|
20202
|
+
//# sourceMappingURL=index.cjs.map
|