@streamlayer/react 0.40.1 → 0.40.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/app/useStreamLayerApp.d.ts +9 -1
- package/lib/cjs/gamification-feature.js +1 -1
- package/lib/cjs/index2.js +9 -9
- package/lib/cjs/masters2.js +28 -28
- package/lib/cjs/useStreamLayerApp.js +1 -1
- package/lib/dist/cjs/gamification-feature.js +1 -1
- package/lib/dist/cjs/masters.js +41 -41
- package/lib/dist/es/gamification-feature.js +336 -326
- package/lib/dist/es/masters.js +5821 -5777
- package/lib/dist/index.d.ts +18 -3
- package/lib/es/gamification-feature.js +316 -306
- package/lib/es/index2.js +48 -35
- package/lib/es/masters2.js +2154 -2147
- package/lib/es/useStreamLayerApp.js +18 -9
- package/package.json +6 -6
package/lib/dist/index.d.ts
CHANGED
|
@@ -661,7 +661,9 @@ declare module "../../sdk-web-core/src/deepLink/index" {
|
|
|
661
661
|
* Bypass authorization, used for login with external token.
|
|
662
662
|
* Automatically login user if SDK initialized and READY.
|
|
663
663
|
*/
|
|
664
|
-
export const deepLink: (instance: StreamLayerContext, opts:
|
|
664
|
+
export const deepLink: (instance: StreamLayerContext, opts: {
|
|
665
|
+
onDeepLinkHandled?: DeepLinkCallback;
|
|
666
|
+
}, done: () => void) => void;
|
|
665
667
|
}
|
|
666
668
|
declare module "../../sdk-web-core/src/auth/bypass/index" {
|
|
667
669
|
import { AbstractAuthenticationProvider } from '../../sdk-web-interfaces/src/index.ts';
|
|
@@ -789,7 +791,9 @@ declare module "../../sdk-web-core/src/videoPlayer/index" {
|
|
|
789
791
|
controlVideoPlayer: VideoPlayerCallback;
|
|
790
792
|
}
|
|
791
793
|
}
|
|
792
|
-
export const videoPlayer: (instance: StreamLayerContext, opts:
|
|
794
|
+
export const videoPlayer: (instance: StreamLayerContext, opts: {
|
|
795
|
+
videoPlayerController?: VideoPlayerCallback;
|
|
796
|
+
}, done: () => void) => void;
|
|
793
797
|
}
|
|
794
798
|
declare module "../../sdk-web-core/src/index" {
|
|
795
799
|
import { StreamLayerContext } from '../../sdk-web-interfaces/src/index.ts';
|
|
@@ -1598,6 +1602,7 @@ declare module "../../sdk-web-features/src/index" {
|
|
|
1598
1602
|
}
|
|
1599
1603
|
declare module "../../sdk-web/src/index" {
|
|
1600
1604
|
import { StreamLayerContext } from '../../sdk-web-interfaces/src/index.ts';
|
|
1605
|
+
import type { DeepLinkCallback, VideoPlayerCallback } from '../../sdk-web-core/src/index.ts';
|
|
1601
1606
|
import avvio from 'avvio';
|
|
1602
1607
|
import './polyfills/raf';
|
|
1603
1608
|
export type StreamLayerInstance = avvio.mixedInstance<StreamLayerContext>;
|
|
@@ -1605,16 +1610,26 @@ declare module "../../sdk-web/src/index" {
|
|
|
1605
1610
|
type DoneFn = Function;
|
|
1606
1611
|
export function StreamLayer(sdkKey: string, production?: boolean, autoEnable?: boolean, meta?: {
|
|
1607
1612
|
version?: string;
|
|
1613
|
+
onDeepLinkHandled?: DeepLinkCallback;
|
|
1614
|
+
videoPlayerController?: VideoPlayerCallback;
|
|
1608
1615
|
}): avvio.Avvio<StreamLayerContext>;
|
|
1609
1616
|
}
|
|
1610
1617
|
declare module "app/useStreamLayerApp" {
|
|
1611
1618
|
import type { StreamLayerSDK, StreamLayerPlugin } from '../../sdk-web-interfaces/src/index.ts';
|
|
1619
|
+
import type { DeepLinkCallback, VideoPlayerCallback } from '../../sdk-web-core/src/index.ts';
|
|
1612
1620
|
global {
|
|
1613
1621
|
interface Window {
|
|
1614
1622
|
sl: unknown;
|
|
1615
1623
|
}
|
|
1616
1624
|
}
|
|
1617
|
-
export const useStreamLayerApp: (sdkKey
|
|
1625
|
+
export const useStreamLayerApp: ({ sdkKey, plugins, production, autoEnable, onDeepLinkHandled, videoPlayerController, }: {
|
|
1626
|
+
sdkKey: string;
|
|
1627
|
+
plugins?: Set<StreamLayerPlugin> | undefined;
|
|
1628
|
+
production?: boolean | undefined;
|
|
1629
|
+
autoEnable?: boolean | undefined;
|
|
1630
|
+
onDeepLinkHandled?: DeepLinkCallback | undefined;
|
|
1631
|
+
videoPlayerController?: VideoPlayerCallback | undefined;
|
|
1632
|
+
}) => StreamLayerSDK | null;
|
|
1618
1633
|
}
|
|
1619
1634
|
declare module "app/provider" {
|
|
1620
1635
|
import type { StreamLayerSDK, StreamLayerPlugin } from '../../sdk-web-interfaces/src/index.ts';
|