pb-sxp-ui 1.0.59 → 1.0.61

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.js CHANGED
@@ -8429,10 +8429,10 @@ const CommodityDetail$1 = (_a) => {
8429
8429
  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'),
8430
8430
  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),
8431
8431
  React.createElement("div", { hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.info) || (product === null || product === void 0 ? void 0 : product.info) === '') },
8432
- 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
8433
- bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
8434
- collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
8435
- necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
8432
+ 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
8433
+ bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
8434
+ collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
8435
+ necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
8436
8436
  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 }))));
8437
8437
  };
8438
8438
  const renderBtn = () => {
@@ -8610,9 +8610,19 @@ const getMediaValueByMode = (obj) => {
8610
8610
  };
8611
8611
 
8612
8612
  const Prompt$1 = (_a) => {
8613
- var { content, btnText, style, icon, isPopup, onClose, onClick } = _a, props = __rest(_a, ["content", "btnText", "style", "icon", "isPopup", "onClose", "onClick"]);
8613
+ var { content, btnText, style, icon, isPopup, isExternalLink, onClose, onClick } = _a, props = __rest(_a, ["content", "btnText", "style", "icon", "isPopup", "isExternalLink", "onClose", "onClick"]);
8614
+ const { popupDetailData } = useSxpDataSource();
8615
+ const { jumpToWeb } = useEventReport();
8614
8616
  const iconSrc = typeof icon === 'string' ? icon : getMediaValueByMode(icon);
8615
8617
  const handleOk = () => {
8618
+ var _a, _b, _c;
8619
+ if (isExternalLink) {
8620
+ const data = popupDetailData;
8621
+ const product = (_a = data === null || data === void 0 ? void 0 : data.video) === null || _a === void 0 ? void 0 : _a.bindProduct;
8622
+ const cta = (_c = (_b = data === null || data === void 0 ? void 0 : data.video) === null || _b === void 0 ? void 0 : _b.bindProduct) === null || _c === void 0 ? void 0 : _c.bindCta;
8623
+ const position = popupDetailData === null || popupDetailData === void 0 ? void 0 : popupDetailData.index;
8624
+ jumpToWeb(data, product, cta, position);
8625
+ }
8616
8626
  if (!isPopup) {
8617
8627
  onClose === null || onClose === void 0 ? void 0 : onClose();
8618
8628
  }
@@ -8892,7 +8902,7 @@ const CommodityDetailDiroNew$1 = (_a) => {
8892
8902
  const productInfoText = ({ isPost }) => {
8893
8903
  return (React.createElement("div", { hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.info) || (product === null || product === void 0 ? void 0 : product.info) === '') },
8894
8904
  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) ||
8895
- `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
8905
+ `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
8896
8906
  Made in Italy` })));
8897
8907
  };
8898
8908
  return (React.createElement("div", { className: 'pb-commondityDiroNew' },
@@ -12697,12 +12707,12 @@ const Tagbar = ({ tagList = [], setActiveIndex }) => {
12697
12707
  const handleSelectTag = (tag) => () => {
12698
12708
  if (tag === selectTag)
12699
12709
  return;
12700
- let hashTag;
12710
+ let themeTag;
12701
12711
  if (tag !== DEFAULT_TAG) {
12702
- hashTag = tag;
12712
+ themeTag = tag;
12703
12713
  }
12704
12714
  setLoading === null || setLoading === void 0 ? void 0 : setLoading(true);
12705
- getRecommendVideos === null || getRecommendVideos === void 0 ? void 0 : getRecommendVideos({ hashTag }).then((res) => {
12715
+ getRecommendVideos === null || getRecommendVideos === void 0 ? void 0 : getRecommendVideos({ themeTag }).then((res) => {
12706
12716
  var _a, _b, _c, _d;
12707
12717
  setRtcList === null || setRtcList === void 0 ? void 0 : setRtcList((_a = res === null || res === void 0 ? void 0 : res.recList) !== null && _a !== void 0 ? _a : []);
12708
12718
  setCacheRtcList === null || setCacheRtcList === void 0 ? void 0 : setCacheRtcList((_b = res === null || res === void 0 ? void 0 : res.recList) !== null && _b !== void 0 ? _b : []);