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 +12 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -10
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +4 -4
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +12 -10
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +4 -4
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageCore/index.js +1 -1
- package/es/core/components/SxpPageRender/index.d.ts +3 -4
- package/es/core/components/SxpPageRender/index.js +5 -5
- package/es/materials/sxp/consentPopup/Click/index.d.ts +5 -1
- package/es/materials/sxp/consentPopup/Click/index.js +2 -2
- package/es/materials/sxp/consentPopup/Swipe/index.d.ts +5 -1
- package/es/materials/sxp/popup/ConsentDetail/index.d.ts +5 -1
- package/es/materials/sxp/popup/ConsentDetail/index.js +2 -1
- package/lib/core/components/SxpPageCore/index.js +1 -1
- package/lib/core/components/SxpPageRender/index.d.ts +3 -4
- package/lib/core/components/SxpPageRender/index.js +4 -4
- package/lib/materials/sxp/consentPopup/Click/index.d.ts +5 -1
- package/lib/materials/sxp/consentPopup/Click/index.js +2 -2
- package/lib/materials/sxp/consentPopup/Swipe/index.d.ts +5 -1
- package/lib/materials/sxp/popup/ConsentDetail/index.d.ts +5 -1
- package/lib/materials/sxp/popup/ConsentDetail/index.js +2 -1
- package/package.json +1 -1
package/dist/pb-ui.js
CHANGED
@@ -12107,9 +12107,10 @@ Made in Italy` })));
|
|
12107
12107
|
];
|
12108
12108
|
|
12109
12109
|
const ConsentDetail$1 = (_a) => {
|
12110
|
+
var _b;
|
12110
12111
|
var { content, isTel, style } = _a; __rest(_a, ["content", "isTel", "style"]);
|
12111
12112
|
return (React.createElement("article", { className: 'consentDetail-article', dangerouslySetInnerHTML: {
|
12112
|
-
__html:
|
12113
|
+
__html: (_b = content === null || content === void 0 ? void 0 : content.html) !== null && _b !== void 0 ? _b : content
|
12113
12114
|
}, onClick: (e) => {
|
12114
12115
|
e.stopPropagation();
|
12115
12116
|
}, style: style }));
|
@@ -16934,9 +16935,9 @@ Made in Italy` })));
|
|
16934
16935
|
React.createElement("button", { style: acceptButton === null || acceptButton === void 0 ? void 0 : acceptButton.style, onClick: handleClickAccept, dangerouslySetInnerHTML: {
|
16935
16936
|
__html: setFontForText(acceptButton === null || acceptButton === void 0 ? void 0 : acceptButton.text, acceptButton === null || acceptButton === void 0 ? void 0 : acceptButton.style)
|
16936
16937
|
} }),
|
16937
|
-
React.createElement("button", {
|
16938
|
+
showRejectButton && (React.createElement("button", { style: rejectButton === null || rejectButton === void 0 ? void 0 : rejectButton.style, onClick: handleClickReject, dangerouslySetInnerHTML: {
|
16938
16939
|
__html: setFontForText(rejectButton === null || rejectButton === void 0 ? void 0 : rejectButton.text, rejectButton === null || rejectButton === void 0 ? void 0 : rejectButton.style)
|
16939
|
-
} }))))))));
|
16940
|
+
} })))))))));
|
16940
16941
|
};
|
16941
16942
|
var ClickComponent = React.memo(Click$1);
|
16942
16943
|
|
@@ -18405,11 +18406,11 @@ Made in Italy` })));
|
|
18405
18406
|
* @Author: binruan@chatlabs.com
|
18406
18407
|
* @Date: 2024-03-20 10:27:31
|
18407
18408
|
* @LastEditors: binruan@chatlabs.com
|
18408
|
-
* @LastEditTime: 2025-02-
|
18409
|
+
* @LastEditTime: 2025-02-25 15:51:17
|
18409
18410
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
18410
18411
|
*
|
18411
18412
|
*/
|
18412
|
-
const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.innerHeight, containerWidth = window.innerWidth, tempMap, resolver, data = [], ctaType, tipText, nudge, _schema, hashTagStyle, hashTagRightMargin, tagList = [], defaultData
|
18413
|
+
const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.innerHeight, containerWidth = window.innerWidth, tempMap, resolver, data = [], ctaType, tipText, nudge, _schema, hashTagStyle, hashTagRightMargin, tagList = [], defaultData }) => {
|
18413
18414
|
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;
|
18414
18415
|
const mutedIcon = useIconLink('/pb_static/5beaaa5ce7f3477b99db3838619cc471.png');
|
18415
18416
|
const unmutedIcon = useIconLink('/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png');
|
@@ -18944,8 +18945,8 @@ Made in Italy` })));
|
|
18944
18945
|
isReload,
|
18945
18946
|
renderToggleButton
|
18946
18947
|
]);
|
18947
|
-
return (React.createElement(
|
18948
|
-
React.createElement("img", { width: 64, height: 64, src: loadingImage, alt: 'loading...', style: { objectFit: 'contain' } }))) : (React.createElement("div", {
|
18948
|
+
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' } },
|
18949
|
+
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` })) },
|
18949
18950
|
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: () => {
|
18950
18951
|
const isEq = lodash.isEqual(rtcList, cacheRtcList);
|
18951
18952
|
if (!isEq && cacheRtcList && (cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.length)) {
|
@@ -19007,6 +19008,7 @@ Made in Italy` })));
|
|
19007
19008
|
React.createElement(ConsentPopup, { resolver: resolver, globalConfig: globalConfig }),
|
19008
19009
|
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 } })))))));
|
19009
19010
|
};
|
19011
|
+
var SxpPageRender$1 = React.memo(SxpPageRender);
|
19010
19012
|
|
19011
19013
|
const PictureGroup = ({ imgUrls, width, height, imgUrlsPostConfig, rec, index }) => {
|
19012
19014
|
return (React.createElement(Swiper, { defaultValue: 0, direction: 'horizontal', modules: [Pagination, Autoplay], pagination: {
|
@@ -19470,7 +19472,7 @@ Made in Italy` })));
|
|
19470
19472
|
* @Author: binruan@chatlabs.com
|
19471
19473
|
* @Date: 2024-01-15 19:03:09
|
19472
19474
|
* @LastEditors: binruan@chatlabs.com
|
19473
|
-
* @LastEditTime: 2025-02-
|
19475
|
+
* @LastEditTime: 2025-02-24 15:47:44
|
19474
19476
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageCore\index.tsx
|
19475
19477
|
*
|
19476
19478
|
*/
|
@@ -19499,7 +19501,7 @@ Made in Italy` })));
|
|
19499
19501
|
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 }) => {
|
19500
19502
|
var _a;
|
19501
19503
|
return (React.createElement(React.Fragment, null,
|
19502
|
-
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
|
19504
|
+
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 })),
|
19503
19505
|
React.createElement(Popup, null)));
|
19504
19506
|
} })));
|
19505
19507
|
};
|
@@ -19518,7 +19520,7 @@ Made in Italy` })));
|
|
19518
19520
|
exports.Modal = Modal$1;
|
19519
19521
|
exports.SxpDataSourceProvider = SxpDataSourceProvider$1;
|
19520
19522
|
exports.SxpPageCore = index;
|
19521
|
-
exports.SxpPageRender = SxpPageRender;
|
19523
|
+
exports.SxpPageRender = SxpPageRender$1;
|
19522
19524
|
exports.core = index$2;
|
19523
19525
|
exports.default = Pagebuilder;
|
19524
19526
|
exports.materials = _materials_;
|