pb-sxp-ui 1.0.35 → 1.0.37

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
@@ -6,8 +6,8 @@ import qs from 'qs';
6
6
  import { css } from '@emotion/css';
7
7
  import { BetaSchemaForm } from '@ant-design/pro-components';
8
8
  import * as ReactDOM from 'react-dom';
9
- import Hls from 'hls.js';
10
9
  import EventEmitter from 'eventemitter3';
10
+ import Hls from 'hls.js';
11
11
 
12
12
  /******************************************************************************
13
13
  Copyright (c) Microsoft Corporation.
@@ -8366,10 +8366,10 @@ const CommodityDetail$1 = (_a) => {
8366
8366
  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'),
8367
8367
  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),
8368
8368
  React.createElement("div", { hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.info) || (product === null || product === void 0 ? void 0 : product.info) === '') },
8369
- 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
8370
- bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
8371
- collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
8372
- necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
8369
+ 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
8370
+ bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
8371
+ collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
8372
+ necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
8373
8373
  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 }))));
8374
8374
  };
8375
8375
  const renderBtn = () => {
@@ -8820,7 +8820,7 @@ const CommodityDetailDiroNew$1 = (_a) => {
8820
8820
  const productInfoText = ({ isPost }) => {
8821
8821
  return (React.createElement("div", { hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.info) || (product === null || product === void 0 ? void 0 : product.info) === '') },
8822
8822
  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) ||
8823
- `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
8823
+ `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
8824
8824
  Made in Italy` })));
8825
8825
  };
8826
8826
  return (React.createElement("div", { className: 'pb-commondityDiroNew' },
@@ -12104,22 +12104,22 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
12104
12104
  setIsPauseVideo(false);
12105
12105
  if (!videoRef.current.src) {
12106
12106
  const videoSrc = rec.video.url;
12107
- if (videoSrc.includes('.m3u8')) {
12108
- if (Hls.isSupported()) {
12109
- const hls = new Hls();
12110
- hls.loadSource(videoSrc);
12111
- hls.attachMedia(videoRef.current);
12112
- }
12113
- else if (videoRef.current.canPlayType('application/vnd.apple.mpegurl')) {
12114
- videoRef.current.src = videoSrc;
12115
- }
12116
- else {
12117
- videoRef.current.src = videoSrc;
12118
- }
12119
- }
12120
- else {
12121
- videoRef.current.src = videoSrc;
12122
- }
12107
+ // if (videoSrc.includes('.m3u8')) {
12108
+ // if (Hls.isSupported()) {
12109
+ // const hls = new Hls();
12110
+ // hls.loadSource(videoSrc);
12111
+ // hls.attachMedia(videoRef.current);
12112
+ // hls.on(Hls.Events.MANIFEST_PARSED, function () {
12113
+ // videoRef?.current?.play();
12114
+ // });
12115
+ // } else if (videoRef.current.canPlayType('application/vnd.apple.mpegurl')) {
12116
+ // videoRef.current.src = videoSrc;
12117
+ // } else {
12118
+ // videoRef.current.src = videoSrc;
12119
+ // }
12120
+ // } else {
12121
+ videoRef.current.src = videoSrc;
12122
+ // }
12123
12123
  videoRef.current.setAttribute('x5-playsinline', 'true');
12124
12124
  videoRef.current.setAttribute('webkit-playsinline', 'true');
12125
12125
  }