pb-sxp-ui 1.15.5 → 1.15.7

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 CHANGED
@@ -12114,9 +12114,10 @@ var settingRender$9 = [
12114
12114
  ];
12115
12115
 
12116
12116
  const ConsentDetail$1 = (_a) => {
12117
+ var _b;
12117
12118
  var { content, isTel, style } = _a; __rest(_a, ["content", "isTel", "style"]);
12118
12119
  return (React.createElement("article", { className: 'consentDetail-article', dangerouslySetInnerHTML: {
12119
- __html: typeof content === 'string' ? content : ''
12120
+ __html: (_b = content === null || content === void 0 ? void 0 : content.html) !== null && _b !== void 0 ? _b : content
12120
12121
  }, onClick: (e) => {
12121
12122
  e.stopPropagation();
12122
12123
  }, style: style }));
@@ -16941,9 +16942,9 @@ const Click$1 = (_a) => {
16941
16942
  React.createElement("button", { style: acceptButton === null || acceptButton === void 0 ? void 0 : acceptButton.style, onClick: handleClickAccept, dangerouslySetInnerHTML: {
16942
16943
  __html: setFontForText(acceptButton === null || acceptButton === void 0 ? void 0 : acceptButton.text, acceptButton === null || acceptButton === void 0 ? void 0 : acceptButton.style)
16943
16944
  } }),
16944
- React.createElement("button", { hidden: !showRejectButton, style: rejectButton === null || rejectButton === void 0 ? void 0 : rejectButton.style, onClick: handleClickReject, dangerouslySetInnerHTML: {
16945
+ showRejectButton && (React.createElement("button", { style: rejectButton === null || rejectButton === void 0 ? void 0 : rejectButton.style, onClick: handleClickReject, dangerouslySetInnerHTML: {
16945
16946
  __html: setFontForText(rejectButton === null || rejectButton === void 0 ? void 0 : rejectButton.text, rejectButton === null || rejectButton === void 0 ? void 0 : rejectButton.style)
16946
- } }))))))));
16947
+ } })))))))));
16947
16948
  };
16948
16949
  var ClickComponent = React.memo(Click$1);
16949
16950
 
@@ -18412,11 +18413,11 @@ var NavBack$1 = React.memo(NavBack);
18412
18413
  * @Author: binruan@chatlabs.com
18413
18414
  * @Date: 2024-03-20 10:27:31
18414
18415
  * @LastEditors: binruan@chatlabs.com
18415
- * @LastEditTime: 2025-02-21 17:25:25
18416
+ * @LastEditTime: 2025-02-25 15:51:17
18416
18417
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
18417
18418
  *
18418
18419
  */
18419
- const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.innerHeight, containerWidth = window.innerWidth, tempMap, resolver, data = [], ctaType, tipText, nudge, _schema, hashTagStyle, hashTagRightMargin, tagList = [], defaultData, isAbTestPage }) => {
18420
+ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.innerHeight, containerWidth = window.innerWidth, tempMap, resolver, data = [], ctaType, tipText, nudge, _schema, hashTagStyle, hashTagRightMargin, tagList = [], defaultData }) => {
18420
18421
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
18421
18422
  const mutedIcon = useIconLink('/pb_static/5beaaa5ce7f3477b99db3838619cc471.png');
18422
18423
  const unmutedIcon = useIconLink('/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png');
@@ -18951,8 +18952,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18951
18952
  isReload,
18952
18953
  renderToggleButton
18953
18954
  ]);
18954
- return (React.createElement(React.Fragment, null, isAbTestPage && loading ? (React.createElement("div", { style: { height, width: containerWidth, display: 'flex', justifyContent: 'center', alignItems: 'center' } },
18955
- React.createElement("img", { width: 64, height: 64, src: loadingImage, alt: 'loading...', style: { objectFit: 'contain' } }))) : (React.createElement("div", { id: 'sxp-render', className: 'clc-sxp-container', style: Object.assign({}, ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.textUnderlineOffset) && { textUnderlineOffset: `${globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.textUnderlineOffset}px` })) },
18955
+ return (React.createElement("div", { id: 'sxp-render' }, (data === null || data === void 0 ? void 0 : data.length) < 1 && loading ? (React.createElement("div", { style: { height, width: containerWidth, display: 'flex', justifyContent: 'center', alignItems: 'center' } },
18956
+ React.createElement("img", { width: 64, height: 64, src: loadingImage, alt: 'loading...', style: { objectFit: 'contain' } }))) : (React.createElement("div", { className: 'clc-sxp-container', style: Object.assign({}, ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.textUnderlineOffset) && { textUnderlineOffset: `${globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.textUnderlineOffset}px` })) },
18956
18957
  waterFallData && (React.createElement(Navbar$1, { icon: img, styles: { background: 'rgba(0,0,0,.3)', color: '#fff', top: `${minusHeight}px` }, textStyle: Object.assign(Object.assign({}, (_e = (_d = (_c = (_b = (_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.item) === null || _c === void 0 ? void 0 : _c.props) === null || _d === void 0 ? void 0 : _d.textStyles) === null || _e === void 0 ? void 0 : _e.hashTagTitle), { color: '#fff' }), onClose: () => {
18957
18958
  const isEq = lodash.isEqual(rtcList, cacheRtcList);
18958
18959
  if (!isEq && cacheRtcList && (cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.length)) {
@@ -19014,6 +19015,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19014
19015
  React.createElement(ConsentPopup, { resolver: resolver, globalConfig: globalConfig }),
19015
19016
  openMultiPosts && (React.createElement(MultiPosts$2, Object.assign({}, (_x = (_w = (_v = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _v === void 0 ? void 0 : _v[0]) === null || _w === void 0 ? void 0 : _w.item) === null || _x === void 0 ? void 0 : _x.props, (_0 = (_z = (_y = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _y === void 0 ? void 0 : _y[0]) === null || _z === void 0 ? void 0 : _z.item) === null || _0 === void 0 ? void 0 : _0.event, { style: { position: 'fixed', top: 0, left: 0, right: 0 } })))))));
19016
19017
  };
19018
+ var SxpPageRender$1 = React.memo(SxpPageRender);
19017
19019
 
19018
19020
  const PictureGroup = ({ imgUrls, width, height, imgUrlsPostConfig, rec, index }) => {
19019
19021
  return (React.createElement(Swiper, { defaultValue: 0, direction: 'horizontal', modules: [Pagination, Autoplay], pagination: {
@@ -19477,7 +19479,7 @@ const Popup = () => {
19477
19479
  * @Author: binruan@chatlabs.com
19478
19480
  * @Date: 2024-01-15 19:03:09
19479
19481
  * @LastEditors: binruan@chatlabs.com
19480
- * @LastEditTime: 2025-02-21 17:44:37
19482
+ * @LastEditTime: 2025-02-24 15:47:44
19481
19483
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageCore\index.tsx
19482
19484
  *
19483
19485
  */
@@ -19506,7 +19508,7 @@ const SxpPageCore = ({ data, maxSize = 10, defaultSize = 10, hashTagSize = 20, l
19506
19508
  React.createElement(SxpDataSourceProvider$1, { utmVal: utmVal, dataSources: data === null || data === void 0 ? void 0 : data.data_sources, sxpParameter: data === null || data === void 0 ? void 0 : data.sxp_parameter, maxSize: (_b = (_a = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _a === void 0 ? void 0 : _a.personalized_recommend) !== null && _b !== void 0 ? _b : maxSize, defaultSize: (_d = (_c = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _c === void 0 ? void 0 : _c.default_recommend) !== null && _d !== void 0 ? _d : defaultSize, hashTagSize: (_f = (_e = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _e === void 0 ? void 0 : _e.hash_tag_size) !== null && _f !== void 0 ? _f : hashTagSize, loadingImage: loadingImage, appDomain: appDomain, enabledMetaConversionApi: enabledMetaConversionApi, utmParameter: data === null || data === void 0 ? void 0 : data.utm_parameter, data: data, dataList: dataList, onUpdateSchema: (d) => setSchema(d), onUpdateChannel: (d) => setChannel(d), render: ({ rtcList, tagList, pageData }) => {
19507
19509
  var _a;
19508
19510
  return (React.createElement(React.Fragment, null,
19509
- React.createElement(SxpPageRender, Object.assign({ defaultData: data }, (_a = pageData === null || pageData === void 0 ? void 0 : pageData.data) === null || _a === void 0 ? void 0 : _a.sxpPageConf, { tagList: tagList, data: rtcList, resolver: RESOLVER, isAbTestPage: dataList && (dataList === null || dataList === void 0 ? void 0 : dataList.length) > 1 })),
19511
+ React.createElement(SxpPageRender$1, Object.assign({ defaultData: data }, (_a = pageData === null || pageData === void 0 ? void 0 : pageData.data) === null || _a === void 0 ? void 0 : _a.sxpPageConf, { tagList: tagList, data: rtcList, resolver: RESOLVER })),
19510
19512
  React.createElement(Popup, null)));
19511
19513
  } })));
19512
19514
  };
@@ -19525,7 +19527,7 @@ exports.EditorDataProvider = EditorDataProvider;
19525
19527
  exports.Modal = Modal$1;
19526
19528
  exports.SxpDataSourceProvider = SxpDataSourceProvider$1;
19527
19529
  exports.SxpPageCore = index;
19528
- exports.SxpPageRender = SxpPageRender;
19530
+ exports.SxpPageRender = SxpPageRender$1;
19529
19531
  exports.core = index$2;
19530
19532
  exports.default = Pagebuilder;
19531
19533
  exports.materials = _materials_;