pb-sxp-ui 1.0.34 → 1.0.35
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 +14 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -12
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +14 -12
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/DiyPortalPreview/index.d.ts +3 -1
- package/es/core/components/DiyPortalPreview/index.js +10 -8
- package/lib/core/components/DiyPortalPreview/index.d.ts +3 -1
- package/lib/core/components/DiyPortalPreview/index.js +10 -8
- package/package.json +1 -1
package/dist/pb-ui.js
CHANGED
@@ -11919,14 +11919,14 @@ Made in Italy` })));
|
|
11919
11919
|
Prompt: Prompt
|
11920
11920
|
});
|
11921
11921
|
|
11922
|
-
const defaultUnLikeIconPath = '/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png';
|
11923
|
-
const defaultLikeIconPath = '/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png';
|
11922
|
+
const defaultUnLikeIconPath$1 = '/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png';
|
11923
|
+
const defaultLikeIconPath$1 = '/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png';
|
11924
11924
|
const LikeButton = (_a) => {
|
11925
11925
|
var { active, activeIcon, unActicveIcon, recData, position } = _a, props = __rest(_a, ["active", "activeIcon", "unActicveIcon", "recData", "position"]);
|
11926
11926
|
const { mutateLike, mutateUnlike, bffEventReport } = useSxpDataSource();
|
11927
11927
|
const [state, setState] = React.useState(active);
|
11928
|
-
const likeIcon = useIconLink(defaultLikeIconPath);
|
11929
|
-
const unlikeIcon = useIconLink(defaultUnLikeIconPath);
|
11928
|
+
const likeIcon = useIconLink(defaultLikeIconPath$1);
|
11929
|
+
const unlikeIcon = useIconLink(defaultUnLikeIconPath$1);
|
11930
11930
|
const handleClick = lodash.debounce(() => __awaiter(void 0, void 0, void 0, function* () {
|
11931
11931
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
11932
11932
|
if (state) {
|
@@ -13204,9 +13204,9 @@ Made in Italy` })));
|
|
13204
13204
|
Object.values(_materials_).forEach((v) => {
|
13205
13205
|
RESOLVER$1[v.extend.type] = v;
|
13206
13206
|
});
|
13207
|
-
const
|
13208
|
-
|
13209
|
-
|
13207
|
+
const defaultUnLikeIconPath = '/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png';
|
13208
|
+
const defaultLikeIconPath = '/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png';
|
13209
|
+
const DiyPortalPreview = ({ data, globalConfig, tipText, nudge, tempMap, descStyle, hashTagStyle, containerHeight = 664, containerWidth = 375, appDomain }) => {
|
13210
13210
|
const height = React.useMemo(() => {
|
13211
13211
|
return (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.logoUrl) && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowLogo) ? containerHeight - 45 : containerHeight;
|
13212
13212
|
}, [globalConfig, containerHeight]);
|
@@ -13256,8 +13256,10 @@ Made in Italy` })));
|
|
13256
13256
|
}
|
13257
13257
|
return null;
|
13258
13258
|
};
|
13259
|
+
const likeIcon = useIconLink(defaultLikeIconPath, appDomain);
|
13260
|
+
const unlikeIcon = useIconLink(defaultUnLikeIconPath, appDomain);
|
13259
13261
|
const renderLikeButton = (rec, index) => {
|
13260
|
-
var _a, _b;
|
13262
|
+
var _a, _b, _c, _d;
|
13261
13263
|
if (!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowLike))
|
13262
13264
|
return;
|
13263
13265
|
let top = (_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIconY) !== null && _a !== void 0 ? _a : 400;
|
@@ -13265,15 +13267,15 @@ Made in Italy` })));
|
|
13265
13267
|
top += 40;
|
13266
13268
|
}
|
13267
13269
|
if (rec.video) {
|
13268
|
-
return (React.createElement(LikeButton$1, { key: rec.position, activeIcon: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIcon, unActicveIcon: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unlikeIcon, position: index, active: rec.isCollected, recData: rec, className: 'clc-sxp-like-button', style: {
|
13270
|
+
return (React.createElement(LikeButton$1, { key: rec.position, activeIcon: (_b = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIcon) !== null && _b !== void 0 ? _b : likeIcon, unActicveIcon: (_c = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unlikeIcon) !== null && _c !== void 0 ? _c : unlikeIcon, position: index, active: rec.isCollected, recData: rec, className: 'clc-sxp-like-button', style: {
|
13269
13271
|
top,
|
13270
|
-
right: (
|
13272
|
+
right: (_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIconX) !== null && _d !== void 0 ? _d : 0
|
13271
13273
|
} }));
|
13272
13274
|
}
|
13273
13275
|
return null;
|
13274
13276
|
};
|
13275
|
-
const mutedIcon = useIconLink('/pb_static/5beaaa5ce7f3477b99db3838619cc471.png');
|
13276
|
-
const unmutedIcon = useIconLink('/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png');
|
13277
|
+
const mutedIcon = useIconLink('/pb_static/5beaaa5ce7f3477b99db3838619cc471.png', appDomain);
|
13278
|
+
const unmutedIcon = useIconLink('/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png', appDomain);
|
13277
13279
|
const renderView = (rec, index) => {
|
13278
13280
|
var _a, _b, _c, _d;
|
13279
13281
|
return (React.createElement("div", { style: { position: 'relative' } },
|