pb-sxp-ui 1.0.46 → 1.0.47
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/LICENSE +21 -21
- package/README.md +111 -111
- package/dist/index.cjs +15 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -14
- 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 +15 -14
- 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.js +5 -3
- package/es/core/components/SxpPageCore/index.d.ts +1 -0
- package/es/core/components/SxpPageCore/index.js +2 -2
- package/es/core/components/SxpPageRender/index.d.ts +1 -0
- package/es/core/components/SxpPageRender/index.js +3 -3
- package/es/materials/sxp/popup/CommodityDetail/index.js +4 -4
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
- package/lib/core/components/DiyPortalPreview/index.js +5 -3
- package/lib/core/components/SxpPageCore/index.d.ts +1 -0
- package/lib/core/components/SxpPageCore/index.js +2 -2
- package/lib/core/components/SxpPageRender/index.d.ts +1 -0
- package/lib/core/components/SxpPageRender/index.js +3 -3
- package/lib/materials/sxp/popup/CommodityDetail/index.js +4 -4
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
- package/package.json +115 -115
package/dist/index.js
CHANGED
@@ -8394,10 +8394,10 @@ const CommodityDetail$1 = (_a) => {
|
|
8394
8394
|
React.createElement("div", { className: 'pb-commondity-content-title', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title, hidden: !!product && !(product === null || product === void 0 ? void 0 : product.title) }, (_b = product === null || product === void 0 ? void 0 : product.title) !== null && _b !== void 0 ? _b : 'Pendant in Yellow Gold with Diamonds, Medium'),
|
8395
8395
|
React.createElement("div", { className: 'pb-commondity-content-price', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price, hidden: !!product && !(product === null || product === void 0 ? void 0 : product.price) }, priceText),
|
8396
8396
|
React.createElement("div", { hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.info) || (product === null || product === void 0 ? void 0 : product.info) === '') },
|
8397
|
-
React.createElement(ExpandableText$1, { foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, onClick: () => setShowModal(true), isPost: isPost, text: (_c = product === null || product === void 0 ? void 0 : product.info) !== null && _c !== void 0 ? _c : `The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
|
8398
|
-
bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
|
8399
|
-
collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
|
8400
|
-
necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
|
8397
|
+
React.createElement(ExpandableText$1, { foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, onClick: () => setShowModal(true), isPost: isPost, text: (_c = product === null || product === void 0 ? void 0 : product.info) !== null && _c !== void 0 ? _c : `The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
|
8398
|
+
bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
|
8399
|
+
collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
|
8400
|
+
necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
|
8401
8401
|
18-karat gold, this necklace is embellished with hand-set diamonds.`, maxStr: 79, className: 'pb-commondity-content-info', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.info }))));
|
8402
8402
|
};
|
8403
8403
|
const renderBtn = () => {
|
@@ -8848,7 +8848,7 @@ const CommodityDetailDiroNew$1 = (_a) => {
|
|
8848
8848
|
const productInfoText = ({ isPost }) => {
|
8849
8849
|
return (React.createElement("div", { hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.info) || (product === null || product === void 0 ? void 0 : product.info) === '') },
|
8850
8850
|
React.createElement(ExpandableText$1, { isPost: isPost, onClick: () => setShowModal(true), className: 'pb-commondityDiroNew-info', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.info, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (product === null || product === void 0 ? void 0 : product.info) ||
|
8851
|
-
`Unveiled at the Spring-Summer 2023 fashion show, the Dior Toujours bag is distinguished by a casual and practical design. Crafted in black calfskin with Macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize essentials. Its leather strap closure keeps items secure while the D of the CD Lock closure twists to adjust the sides and enhance the bag's silhouette. The leather handles can be adjusted using the small notches in order to be able to carry the large bag by hand or wear it over the shoulder. CD Lock and strap closures D.I.O.R. charms Removable interior pouch Adjustable leather handles Dust bag included
|
8851
|
+
`Unveiled at the Spring-Summer 2023 fashion show, the Dior Toujours bag is distinguished by a casual and practical design. Crafted in black calfskin with Macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize essentials. Its leather strap closure keeps items secure while the D of the CD Lock closure twists to adjust the sides and enhance the bag's silhouette. The leather handles can be adjusted using the small notches in order to be able to carry the large bag by hand or wear it over the shoulder. CD Lock and strap closures D.I.O.R. charms Removable interior pouch Adjustable leather handles Dust bag included
|
8852
8852
|
Made in Italy` })));
|
8853
8853
|
};
|
8854
8854
|
return (React.createElement("div", { className: 'pb-commondityDiroNew' },
|
@@ -12677,7 +12677,7 @@ var Tagbar$1 = memo(Tagbar);
|
|
12677
12677
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
12678
12678
|
*
|
12679
12679
|
*/
|
12680
|
-
const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.innerHeight, containerWidth = window.innerWidth, tempMap, resolver, data = [], ctaType, tipText, nudge, _schema, hashTagStyle, tagList = [] }) => {
|
12680
|
+
const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.innerHeight, containerWidth = window.innerWidth, tempMap, resolver, data = [], ctaType, tipText, nudge, _schema, hashTagStyle, tagList = [], licenseUrl }) => {
|
12681
12681
|
var _a, _b, _c, _d, _e, _f, _g;
|
12682
12682
|
const { schema } = useEditor();
|
12683
12683
|
const [activeIndex, setActiveIndex] = useState(0);
|
@@ -12733,7 +12733,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
12733
12733
|
if (!firstRef.current && !videoRef) {
|
12734
12734
|
firstRef.current = true;
|
12735
12735
|
const player = TCPlayer('player-container-id', {
|
12736
|
-
licenseUrl
|
12736
|
+
licenseUrl, // license 地址,参考准备工作部分,在视立方控制台申请 license 后可获得 licenseUrl
|
12737
12737
|
controls: false,
|
12738
12738
|
autoplay: false,
|
12739
12739
|
loop: false,
|
@@ -12746,7 +12746,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
12746
12746
|
setVideoRef(player);
|
12747
12747
|
});
|
12748
12748
|
}
|
12749
|
-
}, [videoRef]);
|
12749
|
+
}, [videoRef, licenseUrl]);
|
12750
12750
|
useEffect(() => {
|
12751
12751
|
if (!isInit)
|
12752
12752
|
handleH5EnterLink();
|
@@ -13479,15 +13479,16 @@ const DiyPortalPreview = ({ data = [], globalConfig, tipText, nudge, tempMap, de
|
|
13479
13479
|
renderBottom(rec, index),
|
13480
13480
|
renderLikeButton(rec, index)));
|
13481
13481
|
};
|
13482
|
-
return (React.createElement("div", {
|
13482
|
+
return (React.createElement("div", { className: css({
|
13483
13483
|
width: '100%',
|
13484
13484
|
height: containerHeight,
|
13485
13485
|
display: 'flex',
|
13486
13486
|
boxSizing: 'border-box',
|
13487
13487
|
gap: 16,
|
13488
13488
|
pointerEvents: 'none',
|
13489
|
-
userSelect: 'none'
|
13490
|
-
|
13489
|
+
userSelect: 'none',
|
13490
|
+
transform: 'scale(0.7) translateX(-22%) translateY(-140px)'
|
13491
|
+
}) }, data === null || data === void 0 ? void 0 : data.map((rec, index) => {
|
13491
13492
|
return renderView(rec, index);
|
13492
13493
|
})));
|
13493
13494
|
};
|
@@ -13562,7 +13563,7 @@ const Popup = () => {
|
|
13562
13563
|
* @Author: binruan@chatlabs.com
|
13563
13564
|
* @Date: 2024-01-15 19:03:09
|
13564
13565
|
* @LastEditors: binruan@chatlabs.com
|
13565
|
-
* @LastEditTime: 2024-
|
13566
|
+
* @LastEditTime: 2024-04-30 11:06:08
|
13566
13567
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageCore\index.tsx
|
13567
13568
|
*
|
13568
13569
|
*/
|
@@ -13578,7 +13579,7 @@ const RESOLVER = {};
|
|
13578
13579
|
Object.values(_materials_).forEach((v) => {
|
13579
13580
|
RESOLVER[v.extend.type] = v;
|
13580
13581
|
});
|
13581
|
-
const SxpPageCore = ({ data, maxSize = 10, defaultSize = 10, hashTagSize = 20, loadingImage, appDomain }) => {
|
13582
|
+
const SxpPageCore = ({ data, maxSize = 10, defaultSize = 10, hashTagSize = 20, loadingImage, appDomain, licenseUrl }) => {
|
13582
13583
|
var _a, _b, _c, _d, _e, _f;
|
13583
13584
|
const utmVal = useMemo(() => {
|
13584
13585
|
var _a;
|
@@ -13589,7 +13590,7 @@ const SxpPageCore = ({ data, maxSize = 10, defaultSize = 10, hashTagSize = 20, l
|
|
13589
13590
|
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, render: ({ rtcList, tagList }) => {
|
13590
13591
|
var _a;
|
13591
13592
|
return (React.createElement(React.Fragment, null,
|
13592
|
-
React.createElement(SxpPageRender, Object.assign({}, (_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.sxpPageConf, { tagList: tagList, data: rtcList, resolver: RESOLVER })),
|
13593
|
+
React.createElement(SxpPageRender, Object.assign({}, (_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.sxpPageConf, { tagList: tagList, data: rtcList, resolver: RESOLVER, licenseUrl: licenseUrl })),
|
13593
13594
|
React.createElement(Popup, null)));
|
13594
13595
|
} })));
|
13595
13596
|
};
|