pb-sxp-ui 1.0.10 → 1.0.12
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 +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +7 -7
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +1 -1
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/WaterFall/index.js +1 -1
- package/es/core/components/SxpPageRender/index.js +4 -4
- package/lib/core/components/SxpPageRender/WaterFall/index.js +1 -1
- package/lib/core/components/SxpPageRender/index.js +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -11677,7 +11677,7 @@ var img$1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeA
|
|
11677
11677
|
* @Author: binruan@chatlabs.com
|
11678
11678
|
* @Date: 2024-01-10 10:58:24
|
11679
11679
|
* @LastEditors: binruan@chatlabs.com
|
11680
|
-
* @LastEditTime: 2024-04-15
|
11680
|
+
* @LastEditTime: 2024-04-15 16:48:54
|
11681
11681
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\WaterFall\index.tsx
|
11682
11682
|
*
|
11683
11683
|
*/
|
@@ -11704,7 +11704,7 @@ const WaterFall = (props) => {
|
|
11704
11704
|
if (!isEq && cacheRtcList && (cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.length)) {
|
11705
11705
|
setRtcList === null || setRtcList === void 0 ? void 0 : setRtcList(cacheRtcList);
|
11706
11706
|
}
|
11707
|
-
reportTagsView(0);
|
11707
|
+
reportTagsView(cacheActiveIndex || 0);
|
11708
11708
|
setWaterFallData === null || setWaterFallData === void 0 ? void 0 : setWaterFallData(undefined);
|
11709
11709
|
setIsFromHashtag === null || setIsFromHashtag === void 0 ? void 0 : setIsFromHashtag(false);
|
11710
11710
|
setTimeout(() => {
|
@@ -12474,7 +12474,7 @@ const Nudge = ({ nudge }) => {
|
|
12474
12474
|
* @Author: binruan@chatlabs.com
|
12475
12475
|
* @Date: 2024-01-15 19:03:09
|
12476
12476
|
* @LastEditors: binruan@chatlabs.com
|
12477
|
-
* @LastEditTime: 2024-04-
|
12477
|
+
* @LastEditTime: 2024-04-15 17:07:42
|
12478
12478
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
12479
12479
|
*
|
12480
12480
|
*/
|
@@ -12640,12 +12640,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
12640
12640
|
return (React.createElement(PictureGroup$1, { key: rec.video.itemId, imgUrls: rec.video.imgUrls, width: containerWidth, height: height, rec: rec, index: index, onReportViewImageEnd: handleReportViewImageEnd, onViewImageStartEvent: handleViewImageStartEvent }));
|
12641
12641
|
}
|
12642
12642
|
if (rec.product && Array.isArray(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) && ((_c = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _c === void 0 ? void 0 : _c.length) > 0) {
|
12643
|
-
return (_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _d === void 0 ? void 0 : _d.map((value,
|
12643
|
+
return (_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _d === void 0 ? void 0 : _d.map((value, idx) => {
|
12644
12644
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
12645
12645
|
const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
|
12646
12646
|
const Component = withBindDataSource(t);
|
12647
12647
|
const defaulSetting = (_b = t === null || t === void 0 ? void 0 : t.extend) === null || _b === void 0 ? void 0 : _b.defaulSetting;
|
12648
|
-
return (React.createElement(Component, Object.assign({ key: index
|
12648
|
+
return (React.createElement(Component, Object.assign({ key: `${index}${idx}`, textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_c = value === null || value === void 0 ? void 0 : value.item) === null || _c === void 0 ? void 0 : _c.textStyle), bindDatas: (_e = (_d = value === null || value === void 0 ? void 0 : value.item) === null || _d === void 0 ? void 0 : _d.bindDatas) !== null && _e !== void 0 ? _e : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_f = value === null || value === void 0 ? void 0 : value.item) === null || _f === void 0 ? void 0 : _f.props, { event: ((_g = value === null || value === void 0 ? void 0 : value.item) === null || _g === void 0 ? void 0 : _g.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, viewTime: viewTime.current, rec: rec, isPost: true, tipText: tipText, style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_h = value === null || value === void 0 ? void 0 : value.item) === null || _h === void 0 ? void 0 : _h.style), { height: '100%', overflow: 'auto' }), index: index })));
|
12649
12649
|
});
|
12650
12650
|
}
|
12651
12651
|
return null;
|
@@ -12694,7 +12694,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
12694
12694
|
imageEndTime: `${endTime}`,
|
12695
12695
|
playDuration: `${duration}`,
|
12696
12696
|
contentTags: JSON.stringify((_f = item.video.tags) !== null && _f !== void 0 ? _f : []),
|
12697
|
-
position: activeIndex,
|
12697
|
+
position: activeIndex + '',
|
12698
12698
|
contentFormat: 'image',
|
12699
12699
|
traceInfo: item.video.traceInfo
|
12700
12700
|
}
|
@@ -12762,7 +12762,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
12762
12762
|
contentName: (_e = item.video.title) !== null && _e !== void 0 ? _e : '',
|
12763
12763
|
imageStartTime: `${startTime}`,
|
12764
12764
|
contentTags: JSON.stringify((_f = item.video.tags) !== null && _f !== void 0 ? _f : []),
|
12765
|
-
position: activeIndex,
|
12765
|
+
position: activeIndex + '',
|
12766
12766
|
contentFormat: 'image',
|
12767
12767
|
traceInfo: item.video.traceInfo
|
12768
12768
|
}
|