pb-sxp-ui 1.15.9 → 1.15.10
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 +11 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -10
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +6 -6
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +6 -6
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +11 -10
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +6 -6
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/WaterFall/List.js +3 -3
- package/es/core/components/SxpPageRender/WaterFall/index.js +2 -2
- package/es/materials/sxp/HashTag/index.d.ts +2 -4
- package/es/materials/sxp/HashTag/material.js +2 -1
- package/es/materials/sxp/HashTag/settingRender.js +1 -1
- package/lib/core/components/SxpPageRender/WaterFall/List.js +3 -3
- package/lib/core/components/SxpPageRender/WaterFall/index.js +2 -2
- package/lib/materials/sxp/HashTag/index.d.ts +2 -4
- package/lib/materials/sxp/HashTag/material.js +2 -1
- package/lib/materials/sxp/HashTag/settingRender.js +1 -1
- package/package.json +1 -1
@@ -10,7 +10,7 @@ import { useEventReport } from '../../../../core/hooks/useEventReport';
|
|
10
10
|
import { getPriceText } from '../../../../core/utils/materials';
|
11
11
|
const WaterfallFlowItem = (props) => {
|
12
12
|
var _a;
|
13
|
-
const { rec, index, list, reportTagsView, textStyles, space, openFixedSize } = props;
|
13
|
+
const { rec, index, list, reportTagsView, textStyles, space, openFixedSize, fixedSizeRatio } = props;
|
14
14
|
const { swiperRef, setRtcList, setOpenHashtag, sxpParameter, globalConfig } = useSxpDataSource();
|
15
15
|
const [showVideo, setShowVideo] = useState(false);
|
16
16
|
const imgDom = useRef(null);
|
@@ -104,11 +104,11 @@ const WaterfallFlowItem = (props) => {
|
|
104
104
|
}, 0);
|
105
105
|
};
|
106
106
|
return (React.createElement("div", { ref: ref, className: 'list-content-listItem', key: index, onClick: handleClickToDetail, style: { marginBottom: space } },
|
107
|
-
React.createElement("div", { className:
|
107
|
+
React.createElement("div", { className: fixedSizeRatio === '1' ? 'list-content-listItem-picture' : 'list-content-listItem-picture1609' },
|
108
108
|
showVideo && (React.createElement("div", { style: { display: 'none' } },
|
109
109
|
React.createElement("video", { ref: videoDom, crossOrigin: 'anonymous', className: 'list-content-listItem-picture-img' }),
|
110
110
|
React.createElement("canvas", { ref: canvasRef }))),
|
111
|
-
React.createElement(FormatImage, { loading: 'lazy', className:
|
111
|
+
React.createElement(FormatImage, { loading: 'lazy', className: fixedSizeRatio === '1' ? 'list-content-listItem-picture-img' : 'list-content-listItem-picture1609-img', ref: imgDom })),
|
112
112
|
React.createElement("div", { className: 'list-content-listItem-info' },
|
113
113
|
React.createElement("div", { className: `${'list-content-listItem-info-title'} ${priceText ? 'list-content-listItem-info-nowrap' : ''}`, style: textStyles === null || textStyles === void 0 ? void 0 : textStyles.title, dangerouslySetInnerHTML: {
|
114
114
|
__html: setFontForText(title, textStyles === null || textStyles === void 0 ? void 0 : textStyles.title)
|
@@ -8,7 +8,7 @@ import List from './List';
|
|
8
8
|
import { useSxpDataSource } from '../../../../core/hooks';
|
9
9
|
import { useEventReport } from '../../../../core/hooks/useEventReport';
|
10
10
|
const WaterFall = (props) => {
|
11
|
-
var _a
|
11
|
+
var _a;
|
12
12
|
const { waterFallData, setOpenHashtag, openHashtag, swiperRef, setWaterFallData, cacheRtcList, setRtcList, cacheActiveIndex, rtcList, setCacheRtcList, setIsFromHashtag, isFromHashtag, bffEventReport, themeTag, selectTag, bffFbReport } = useSxpDataSource();
|
13
13
|
const { backMainFeed } = useEventReport();
|
14
14
|
const modalEleRef = useRef(null);
|
@@ -97,6 +97,6 @@ const WaterFall = (props) => {
|
|
97
97
|
display: openHashtag ? 'block' : 'none'
|
98
98
|
} },
|
99
99
|
React.createElement(Navbar, { icon: left, styles: { top: '32px' }, textStyle: (_a = props === null || props === void 0 ? void 0 : props.textStyles) === null || _a === void 0 ? void 0 : _a.hashTagTitle, onClose: handleClose }),
|
100
|
-
(
|
100
|
+
(props === null || props === void 0 ? void 0 : props.openFixedSize) || (props === null || props === void 0 ? void 0 : props.openFixedSize) === undefined ? (React.createElement(List, Object.assign({ key: waterFallData, reportTagsView: reportTagsView }, props))) : (React.createElement(WaterfallList, Object.assign({ key: waterFallData, reportTagsView: reportTagsView }, props)))), modalEleRef.current);
|
101
101
|
};
|
102
102
|
export default memo(WaterFall);
|
@@ -14,10 +14,8 @@ export interface IHashTagProps {
|
|
14
14
|
};
|
15
15
|
buttonBgStyle: CSSProperties;
|
16
16
|
showBanner?: boolean;
|
17
|
-
openFixedSize?:
|
18
|
-
|
19
|
-
ratio: string;
|
20
|
-
};
|
17
|
+
openFixedSize?: boolean;
|
18
|
+
fixedSizeRatio?: '1' | '2';
|
21
19
|
}
|
22
20
|
declare const _default: React.NamedExoticComponent<IHashTagProps>;
|
23
21
|
export default _default;
|
@@ -12,7 +12,7 @@ const useEventReport_1 = require("../../../../core/hooks/useEventReport");
|
|
12
12
|
const materials_1 = require("../../../../core/utils/materials");
|
13
13
|
const WaterfallFlowItem = (props) => {
|
14
14
|
var _a;
|
15
|
-
const { rec, index, list, reportTagsView, textStyles, space, openFixedSize } = props;
|
15
|
+
const { rec, index, list, reportTagsView, textStyles, space, openFixedSize, fixedSizeRatio } = props;
|
16
16
|
const { swiperRef, setRtcList, setOpenHashtag, sxpParameter, globalConfig } = (0, hooks_1.useSxpDataSource)();
|
17
17
|
const [showVideo, setShowVideo] = (0, react_1.useState)(false);
|
18
18
|
const imgDom = (0, react_1.useRef)(null);
|
@@ -106,11 +106,11 @@ const WaterfallFlowItem = (props) => {
|
|
106
106
|
}, 0);
|
107
107
|
};
|
108
108
|
return (react_1.default.createElement("div", { ref: ref, className: 'list-content-listItem', key: index, onClick: handleClickToDetail, style: { marginBottom: space } },
|
109
|
-
react_1.default.createElement("div", { className:
|
109
|
+
react_1.default.createElement("div", { className: fixedSizeRatio === '1' ? 'list-content-listItem-picture' : 'list-content-listItem-picture1609' },
|
110
110
|
showVideo && (react_1.default.createElement("div", { style: { display: 'none' } },
|
111
111
|
react_1.default.createElement("video", { ref: videoDom, crossOrigin: 'anonymous', className: 'list-content-listItem-picture-img' }),
|
112
112
|
react_1.default.createElement("canvas", { ref: canvasRef }))),
|
113
|
-
react_1.default.createElement(FormatImage_1.default, { loading: 'lazy', className:
|
113
|
+
react_1.default.createElement(FormatImage_1.default, { loading: 'lazy', className: fixedSizeRatio === '1' ? 'list-content-listItem-picture-img' : 'list-content-listItem-picture1609-img', ref: imgDom })),
|
114
114
|
react_1.default.createElement("div", { className: 'list-content-listItem-info' },
|
115
115
|
react_1.default.createElement("div", { className: `${'list-content-listItem-info-title'} ${priceText ? 'list-content-listItem-info-nowrap' : ''}`, style: textStyles === null || textStyles === void 0 ? void 0 : textStyles.title, dangerouslySetInnerHTML: {
|
116
116
|
__html: (0, tool_1.setFontForText)(title, textStyles === null || textStyles === void 0 ? void 0 : textStyles.title)
|
@@ -11,7 +11,7 @@ const List_1 = tslib_1.__importDefault(require("./List"));
|
|
11
11
|
const hooks_1 = require("../../../../core/hooks");
|
12
12
|
const useEventReport_1 = require("../../../../core/hooks/useEventReport");
|
13
13
|
const WaterFall = (props) => {
|
14
|
-
var _a
|
14
|
+
var _a;
|
15
15
|
const { waterFallData, setOpenHashtag, openHashtag, swiperRef, setWaterFallData, cacheRtcList, setRtcList, cacheActiveIndex, rtcList, setCacheRtcList, setIsFromHashtag, isFromHashtag, bffEventReport, themeTag, selectTag, bffFbReport } = (0, hooks_1.useSxpDataSource)();
|
16
16
|
const { backMainFeed } = (0, useEventReport_1.useEventReport)();
|
17
17
|
const modalEleRef = (0, react_1.useRef)(null);
|
@@ -100,6 +100,6 @@ const WaterFall = (props) => {
|
|
100
100
|
display: openHashtag ? 'block' : 'none'
|
101
101
|
} },
|
102
102
|
react_1.default.createElement(Navbar_1.default, { icon: left_png_1.default, styles: { top: '32px' }, textStyle: (_a = props === null || props === void 0 ? void 0 : props.textStyles) === null || _a === void 0 ? void 0 : _a.hashTagTitle, onClose: handleClose }),
|
103
|
-
(
|
103
|
+
(props === null || props === void 0 ? void 0 : props.openFixedSize) || (props === null || props === void 0 ? void 0 : props.openFixedSize) === undefined ? (react_1.default.createElement(List_1.default, Object.assign({ key: waterFallData, reportTagsView: reportTagsView }, props))) : (react_1.default.createElement(WaterfallList_1.default, Object.assign({ key: waterFallData, reportTagsView: reportTagsView }, props)))), modalEleRef.current);
|
104
104
|
};
|
105
105
|
exports.default = (0, react_1.memo)(WaterFall);
|
@@ -14,10 +14,8 @@ export interface IHashTagProps {
|
|
14
14
|
};
|
15
15
|
buttonBgStyle: CSSProperties;
|
16
16
|
showBanner?: boolean;
|
17
|
-
openFixedSize?:
|
18
|
-
|
19
|
-
ratio: string;
|
20
|
-
};
|
17
|
+
openFixedSize?: boolean;
|
18
|
+
fixedSizeRatio?: '1' | '2';
|
21
19
|
}
|
22
20
|
declare const _default: React.NamedExoticComponent<IHashTagProps>;
|
23
21
|
export default _default;
|