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/dist/pb-ui.js CHANGED
@@ -8408,10 +8408,10 @@
8408
8408
  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'),
8409
8409
  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),
8410
8410
  React.createElement("div", { hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.info) || (product === null || product === void 0 ? void 0 : product.info) === '') },
8411
- 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
8412
- bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
8413
- collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
8414
- necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
8411
+ 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
8412
+ bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
8413
+ collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
8414
+ necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
8415
8415
  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 }))));
8416
8416
  };
8417
8417
  const renderBtn = () => {
@@ -8862,7 +8862,7 @@
8862
8862
  const productInfoText = ({ isPost }) => {
8863
8863
  return (React.createElement("div", { hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.info) || (product === null || product === void 0 ? void 0 : product.info) === '') },
8864
8864
  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) ||
8865
- `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
8865
+ `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
8866
8866
  Made in Italy` })));
8867
8867
  };
8868
8868
  return (React.createElement("div", { className: 'pb-commondityDiroNew' },
@@ -12691,7 +12691,7 @@ Made in Italy` })));
12691
12691
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
12692
12692
  *
12693
12693
  */
12694
- const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.innerHeight, containerWidth = window.innerWidth, tempMap, resolver, data = [], ctaType, tipText, nudge, _schema, hashTagStyle, tagList = [] }) => {
12694
+ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.innerHeight, containerWidth = window.innerWidth, tempMap, resolver, data = [], ctaType, tipText, nudge, _schema, hashTagStyle, tagList = [], licenseUrl }) => {
12695
12695
  var _a, _b, _c, _d, _e, _f, _g;
12696
12696
  const { schema } = useEditor();
12697
12697
  const [activeIndex, setActiveIndex] = React.useState(0);
@@ -12747,7 +12747,7 @@ Made in Italy` })));
12747
12747
  if (!firstRef.current && !videoRef) {
12748
12748
  firstRef.current = true;
12749
12749
  const player = TCPlayer('player-container-id', {
12750
- licenseUrl: 'https://license.vod2.myqcloud.com/license/v2/1325816236_1/v_cube.license', // license 地址,参考准备工作部分,在视立方控制台申请 license 后可获得 licenseUrl
12750
+ licenseUrl, // license 地址,参考准备工作部分,在视立方控制台申请 license 后可获得 licenseUrl
12751
12751
  controls: false,
12752
12752
  autoplay: false,
12753
12753
  loop: false,
@@ -12760,7 +12760,7 @@ Made in Italy` })));
12760
12760
  setVideoRef(player);
12761
12761
  });
12762
12762
  }
12763
- }, [videoRef]);
12763
+ }, [videoRef, licenseUrl]);
12764
12764
  React.useEffect(() => {
12765
12765
  if (!isInit)
12766
12766
  handleH5EnterLink();
@@ -13493,15 +13493,16 @@ Made in Italy` })));
13493
13493
  renderBottom(rec, index),
13494
13494
  renderLikeButton(rec, index)));
13495
13495
  };
13496
- return (React.createElement("div", { style: {
13496
+ return (React.createElement("div", { className: css.css({
13497
13497
  width: '100%',
13498
13498
  height: containerHeight,
13499
13499
  display: 'flex',
13500
13500
  boxSizing: 'border-box',
13501
13501
  gap: 16,
13502
13502
  pointerEvents: 'none',
13503
- userSelect: 'none'
13504
- } }, data === null || data === void 0 ? void 0 : data.map((rec, index) => {
13503
+ userSelect: 'none',
13504
+ transform: 'scale(0.7) translateX(-22%) translateY(-140px)'
13505
+ }) }, data === null || data === void 0 ? void 0 : data.map((rec, index) => {
13505
13506
  return renderView(rec, index);
13506
13507
  })));
13507
13508
  };
@@ -13576,7 +13577,7 @@ Made in Italy` })));
13576
13577
  * @Author: binruan@chatlabs.com
13577
13578
  * @Date: 2024-01-15 19:03:09
13578
13579
  * @LastEditors: binruan@chatlabs.com
13579
- * @LastEditTime: 2024-03-25 17:24:59
13580
+ * @LastEditTime: 2024-04-30 11:06:08
13580
13581
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageCore\index.tsx
13581
13582
  *
13582
13583
  */
@@ -13592,7 +13593,7 @@ Made in Italy` })));
13592
13593
  Object.values(_materials_).forEach((v) => {
13593
13594
  RESOLVER[v.extend.type] = v;
13594
13595
  });
13595
- const SxpPageCore = ({ data, maxSize = 10, defaultSize = 10, hashTagSize = 20, loadingImage, appDomain }) => {
13596
+ const SxpPageCore = ({ data, maxSize = 10, defaultSize = 10, hashTagSize = 20, loadingImage, appDomain, licenseUrl }) => {
13596
13597
  var _a, _b, _c, _d, _e, _f;
13597
13598
  const utmVal = React.useMemo(() => {
13598
13599
  var _a;
@@ -13603,7 +13604,7 @@ Made in Italy` })));
13603
13604
  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 }) => {
13604
13605
  var _a;
13605
13606
  return (React.createElement(React.Fragment, null,
13606
- 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 })),
13607
+ 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 })),
13607
13608
  React.createElement(Popup, null)));
13608
13609
  } })));
13609
13610
  };