pb-sxp-ui 1.15.25 → 1.15.27

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.js CHANGED
@@ -10220,7 +10220,7 @@ const ExpandableText = ({ text, maxStr = 108, style, className, onClick, foldTex
10220
10220
  (_a = observerRef.current) === null || _a === void 0 ? void 0 : _a.disconnect();
10221
10221
  };
10222
10222
  }, [checkOverflow]);
10223
- return (React.createElement("div", { className: className, style: Object.assign(Object.assign({}, textStyle), { transform: 'translate3d(0px, 0px, 0px)', overflow: 'hidden' }), hidden: !text || text === '' },
10223
+ return (React.createElement("div", { className: className, style: Object.assign(Object.assign({}, textStyle), { transform: 'translate3d(0px, 0px, 0px)', overflow: 'hidden', position: 'relative' }), hidden: !text || text === '' },
10224
10224
  React.createElement("div", { ref: clampRef, style: Object.assign(Object.assign({}, (!isShowMore &&
10225
10225
  isPost && {
10226
10226
  WebkitLineClamp: textLineClamp,
@@ -10240,7 +10240,8 @@ const ExpandableText = ({ text, maxStr = 108, style, className, onClick, foldTex
10240
10240
  visibility: 'hidden',
10241
10241
  position: 'absolute',
10242
10242
  opacity: 0,
10243
- clipPath: 'inset(100%)'
10243
+ clipPath: 'inset(100%)',
10244
+ transform: 'translateX(-9999px)'
10244
10245
  }, dangerouslySetInnerHTML: { __html: setFontForText(text === null || text === void 0 ? void 0 : text.replace(/\n/g, '</br>'), textStyle) } }),
10245
10246
  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: {
10246
10247
  __html: setFontForText(isShowMore ? unfoldText || 'show less' : foldText || 'show more', textStyle)
@@ -18042,7 +18043,7 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
18042
18043
  const renderLoading = useMemo(() => {
18043
18044
  if (!waiting || !isLoadFinish)
18044
18045
  return;
18045
- return (React.createElement("img", { style: {
18046
+ return (React.createElement(FormatImage$1, { style: {
18046
18047
  position: 'absolute',
18047
18048
  top: '50%',
18048
18049
  left: 0,
@@ -20166,3 +20167,4 @@ var index = memo(SxpPageCore);
20166
20167
  */
20167
20168
 
20168
20169
  export { index$2 as DiyPortalPreview, index$1 as DiyStoryPreview, EditorDataProvider, Modal$1 as Modal, SxpDataSourceProvider$1 as SxpDataSourceProvider, index as SxpPageCore, SxpPageRender$1 as SxpPageRender, index$3 as core, Pagebuilder as default, _materials_ as materials, useEditorDataProvider };
20170
+ //# sourceMappingURL=index.js.map