@realsee/live 0.4.0-alpha.4 → 0.4.0-alpha.5
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/realsee-live.cjs.development.js +10 -8
- package/dist/realsee-live.cjs.development.js.map +1 -1
- package/dist/realsee-live.cjs.production.js +1 -1
- package/dist/realsee-live.cjs.production.js.map +1 -1
- package/dist/realsee-live.esm.js +10 -8
- package/dist/realsee-live.esm.js.map +1 -1
- package/dist/realsee-live.umd.development.js +10 -8
- package/dist/realsee-live.umd.development.js.map +1 -1
- package/dist/realsee-live.umd.production.js +1 -1
- package/dist/realsee-live.umd.production.js.map +1 -1
- package/dist/typings/react/LiveReact.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { JSBridgeProtocol } from '@realsee/jsbridge-x';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { KeyframeTypes, LiveEventType, WebSocketEventType } from '../live/EventType';
|
|
3
4
|
import { Live, LiveActionReactCallback } from '../live/Live';
|
|
@@ -25,6 +26,7 @@ export declare type LiveProviderPropTypes<Snapshot> = {
|
|
|
25
26
|
*/
|
|
26
27
|
export interface LiveReact</* 帧数据 */ Snapshot> {
|
|
27
28
|
live: Live<Snapshot>;
|
|
29
|
+
jsBridge: JSBridgeProtocol;
|
|
28
30
|
/**
|
|
29
31
|
* @description **LiveProvider** 基于 [React Context](https://reactjs.org/docs/context.html) 对 {@link Live }进行封装,你可以以 [React Hooks](https://reactjs.org/docs/hooks-intro.html) 的方式对 {@link Live } 实例进行操作、数据监听等。
|
|
30
32
|
*
|
package/package.json
CHANGED