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/pb-ui.js CHANGED
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('lodash'), require('uuid'), require('pako'), require('react'), require('qs'), require('@emotion/css'), require('@ant-design/pro-components'), require('react-dom'), require('hls.js'), require('eventemitter3')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'lodash', 'uuid', 'pako', 'react', 'qs', '@emotion/css', '@ant-design/pro-components', 'react-dom', 'hls.js', 'eventemitter3'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.PUI = {}, global.lodash, global.uuid$1, global.pako, global.React, global.qs, global.css, global.proComponents, global.ReactDOM, global.Hls, global.EventEmitter));
5
- })(this, (function (exports, lodash, uuid$1, pako, React, qs, css, proComponents, ReactDOM, Hls, EventEmitter) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('lodash'), require('uuid'), require('pako'), require('react'), require('qs'), require('@emotion/css'), require('@ant-design/pro-components'), require('react-dom'), require('eventemitter3'), require('hls.js')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'lodash', 'uuid', 'pako', 'react', 'qs', '@emotion/css', '@ant-design/pro-components', 'react-dom', 'eventemitter3', 'hls.js'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.PUI = {}, global.lodash, global.uuid$1, global.pako, global.React, global.qs, global.css, global.proComponents, global.ReactDOM, global.EventEmitter, global.Hls));
5
+ })(this, (function (exports, lodash, uuid$1, pako, React, qs, css, proComponents, ReactDOM, EventEmitter, Hls) { 'use strict';
6
6
 
7
7
  function _interopNamespaceDefault(e) {
8
8
  var n = Object.create(null);
@@ -8380,10 +8380,10 @@
8380
8380
  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'),
8381
8381
  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),
8382
8382
  React.createElement("div", { hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.info) || (product === null || product === void 0 ? void 0 : product.info) === '') },
8383
- 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
8384
- bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
8385
- collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
8386
- necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
8383
+ 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
8384
+ bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
8385
+ collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
8386
+ necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
8387
8387
  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 }))));
8388
8388
  };
8389
8389
  const renderBtn = () => {
@@ -8834,7 +8834,7 @@
8834
8834
  const productInfoText = ({ isPost }) => {
8835
8835
  return (React.createElement("div", { hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.info) || (product === null || product === void 0 ? void 0 : product.info) === '') },
8836
8836
  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) ||
8837
- `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
8837
+ `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
8838
8838
  Made in Italy` })));
8839
8839
  };
8840
8840
  return (React.createElement("div", { className: 'pb-commondityDiroNew' },
@@ -12118,22 +12118,22 @@ Made in Italy` })));
12118
12118
  setIsPauseVideo(false);
12119
12119
  if (!videoRef.current.src) {
12120
12120
  const videoSrc = rec.video.url;
12121
- if (videoSrc.includes('.m3u8')) {
12122
- if (Hls.isSupported()) {
12123
- const hls = new Hls();
12124
- hls.loadSource(videoSrc);
12125
- hls.attachMedia(videoRef.current);
12126
- }
12127
- else if (videoRef.current.canPlayType('application/vnd.apple.mpegurl')) {
12128
- videoRef.current.src = videoSrc;
12129
- }
12130
- else {
12131
- videoRef.current.src = videoSrc;
12132
- }
12133
- }
12134
- else {
12135
- videoRef.current.src = videoSrc;
12136
- }
12121
+ // if (videoSrc.includes('.m3u8')) {
12122
+ // if (Hls.isSupported()) {
12123
+ // const hls = new Hls();
12124
+ // hls.loadSource(videoSrc);
12125
+ // hls.attachMedia(videoRef.current);
12126
+ // hls.on(Hls.Events.MANIFEST_PARSED, function () {
12127
+ // videoRef?.current?.play();
12128
+ // });
12129
+ // } else if (videoRef.current.canPlayType('application/vnd.apple.mpegurl')) {
12130
+ // videoRef.current.src = videoSrc;
12131
+ // } else {
12132
+ // videoRef.current.src = videoSrc;
12133
+ // }
12134
+ // } else {
12135
+ videoRef.current.src = videoSrc;
12136
+ // }
12137
12137
  videoRef.current.setAttribute('x5-playsinline', 'true');
12138
12138
  videoRef.current.setAttribute('webkit-playsinline', 'true');
12139
12139
  }