@ray-js/ipc-player-integration 0.0.31-beta.1 → 0.0.31-beta.2
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/lib/ui/context.d.ts +1 -0
- package/lib/ui/context.js +2 -1
- package/lib/ui/hooks.js +3 -2
- package/lib/ui/ui.d.ts +1 -0
- package/lib/ui/ui.js +5 -2
- package/package.json +1 -1
package/lib/ui/context.d.ts
CHANGED
package/lib/ui/context.js
CHANGED
package/lib/ui/hooks.js
CHANGED
|
@@ -2,7 +2,8 @@ import { useContext } from 'react';
|
|
|
2
2
|
import { UIEventContext } from './context';
|
|
3
3
|
export const useComponentHideState = () => {
|
|
4
4
|
const {
|
|
5
|
-
componentHideState
|
|
5
|
+
componentHideState,
|
|
6
|
+
refreshElement
|
|
6
7
|
} = useContext(UIEventContext);
|
|
7
|
-
return [componentHideState];
|
|
8
|
+
return [componentHideState || refreshElement];
|
|
8
9
|
};
|
package/lib/ui/ui.d.ts
CHANGED
package/lib/ui/ui.js
CHANGED
|
@@ -66,7 +66,8 @@ export const IPCPlayerIntegration = /*#__PURE__*/React.memo(props => {
|
|
|
66
66
|
defaultAutoPlay = true,
|
|
67
67
|
limitFlow = false,
|
|
68
68
|
showFlowLowTip = false,
|
|
69
|
-
extend = {}
|
|
69
|
+
extend = {},
|
|
70
|
+
refreshElement = false
|
|
70
71
|
} = props;
|
|
71
72
|
const {
|
|
72
73
|
event
|
|
@@ -805,7 +806,8 @@ export const IPCPlayerIntegration = /*#__PURE__*/React.memo(props => {
|
|
|
805
806
|
return /*#__PURE__*/React.createElement(UIEventContext.Provider, {
|
|
806
807
|
value: {
|
|
807
808
|
event: eventRef.current,
|
|
808
|
-
componentHideState
|
|
809
|
+
componentHideState,
|
|
810
|
+
refreshElement
|
|
809
811
|
}
|
|
810
812
|
}, /*#__PURE__*/React.createElement(View, {
|
|
811
813
|
className: clsx('ipc-player-content', isSmallScreen && 'ipc-player-content-small-screen', className),
|
|
@@ -856,6 +858,7 @@ export const IPCPlayerIntegration = /*#__PURE__*/React.memo(props => {
|
|
|
856
858
|
,
|
|
857
859
|
privateState: privateState,
|
|
858
860
|
onPlayerTap: data => {
|
|
861
|
+
console.log('sdhsajdhsahdsa=========');
|
|
859
862
|
if (disablePlayerTap.current) {
|
|
860
863
|
console.log('playerTap 事件已禁止');
|
|
861
864
|
return;
|