pb-sxp-ui 1.0.76 → 1.0.78

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
@@ -12944,7 +12944,7 @@ var Tagbar$1 = memo(Tagbar);
12944
12944
  * @Author: binruan@chatlabs.com
12945
12945
  * @Date: 2024-01-15 19:03:09
12946
12946
  * @LastEditors: binruan@chatlabs.com
12947
- * @LastEditTime: 2024-05-30 11:35:35
12947
+ * @LastEditTime: 2024-06-06 18:42:24
12948
12948
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
12949
12949
  *
12950
12950
  */
@@ -13004,7 +13004,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
13004
13004
  };
13005
13005
  const firstRef = useRef();
13006
13006
  useEffect(() => {
13007
- var _a, _b, _c;
13007
+ var _a, _b, _c, _d;
13008
13008
  if (!firstRef.current && !videoRef && (playerRef === null || playerRef === void 0 ? void 0 : playerRef.current) && (data === null || data === void 0 ? void 0 : data.length) > 0) {
13009
13009
  firstRef.current = true;
13010
13010
  const player = TCPlayer('player-container-id', {
@@ -13016,11 +13016,13 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
13016
13016
  preload: 'auto',
13017
13017
  posterImage: false,
13018
13018
  bigPlayButton: true,
13019
- sources: [
13020
- {
13021
- src: (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data[0]) === null || _a === void 0 ? void 0 : _a.video) === null || _b === void 0 ? void 0 : _b.url) !== null && _c !== void 0 ? _c : ''
13022
- }
13023
- ]
13019
+ sources: ((_b = (_a = data === null || data === void 0 ? void 0 : data[0]) === null || _a === void 0 ? void 0 : _a.video) === null || _b === void 0 ? void 0 : _b.url)
13020
+ ? [
13021
+ {
13022
+ src: (_d = (_c = data === null || data === void 0 ? void 0 : data[0]) === null || _c === void 0 ? void 0 : _c.video) === null || _d === void 0 ? void 0 : _d.url
13023
+ }
13024
+ ]
13025
+ : []
13024
13026
  });
13025
13027
  player === null || player === void 0 ? void 0 : player.ready(() => {
13026
13028
  setVideoRef(player);