pixuireactcomponents 1.5.32 → 1.5.34

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixuireactcomponents",
3
- "version": "1.5.32",
3
+ "version": "1.5.34",
4
4
  "description": "pixui react components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -25,5 +25,6 @@ export interface VideoPlayerProps {
25
25
  hideSliderDuration?: number;
26
26
  videoDuration?: number;
27
27
  compRef?: any;
28
+ maskComponent?: preact.ComponentChild | (() => preact.ComponentChild);
28
29
  }
29
30
  export declare const VideoPlayer: (props: VideoPlayerProps) => h.JSX.Element;
@@ -356,6 +356,7 @@ export var VideoPlayer = function (props) {
356
356
  }, onCanPlay: onplaying,
357
357
  //@ts-ignore
358
358
  onfirstframe: onFirstFrame, controls: true }),
359
+ props.maskComponent && (typeof props.maskComponent === 'function' ? props.maskComponent() : props.maskComponent),
359
360
  h("div", { style: screenClickerStyle, onClick: function (e) {
360
361
  videoLog('screenClickerStyle click');
361
362
  e.stopPropagation();
@@ -1,4 +1,4 @@
1
- import h from 'lib/dom';
1
+ import { h } from 'preact';
2
2
  export declare const LoadChecker: (props: {
3
3
  children?: h.JSX.Element | HTMLElement | h.JSX.Element[] | HTMLElement[] | undefined;
4
4
  rootClass?: string | undefined;
@@ -7,7 +7,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7
7
  }
8
8
  return to.concat(ar || Array.prototype.slice.call(from));
9
9
  };
10
- import h from 'lib/dom';
10
+ import { h } from 'preact';
11
11
  import { useEffect, useRef, useState } from 'preact/hooks';
12
12
  export var LoadChecker = function (props) {
13
13
  var children = props.children, _a = props.rootClass, rootClass = _a === void 0 ? '' : _a, _b = props.timeoutPeriod, timeoutPeriod = _b === void 0 ? 500 : _b, onLoad = props.onLoad, _c = props.enableCompLog, enableCompLog = _c === void 0 ? false : _c, _d = props.tag, tag = _d === void 0 ? '' : _d;