@streamlayer/react-ui 1.33.1 → 1.33.3
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/app/Advertisement/index.d.ts +1 -1
- package/lib/app/app/Banner/index.d.ts +1 -1
- package/lib/app/app/Features/FeatureProvider.d.ts +2 -2
- package/lib/app/app/Features/Gamification/Leaderboard.d.ts +1 -1
- package/lib/app/app/Features/Gamification/Question.d.ts +2 -2
- package/lib/app/app/Features/Gamification/QuestionsList.d.ts +1 -1
- package/lib/app/app/Features/Gamification/Tabs.d.ts +1 -1
- package/lib/app/app/Features/Gamification/UserSummary.d.ts +1 -1
- package/lib/app/app/Features/Gamification/index.d.ts +2 -2
- package/lib/app/app/Features/index.d.ts +2 -2
- package/lib/app/app/InApp/index.d.ts +1 -1
- package/lib/app/app/Insight/index.d.ts +2 -2
- package/lib/app/app/Layout/index.d.ts +1 -1
- package/lib/app/app/Navigation/index.d.ts +1 -1
- package/lib/app/app/Notifications/Onboarding/Notification/index.d.ts +2 -2
- package/lib/app/app/Notifications/Onboarding/index.d.ts +2 -2
- package/lib/app/app/Notifications/index.d.ts +1 -1
- package/lib/app/app/Points/index.d.ts +1 -1
- package/lib/app/app/index.d.ts +1 -1
- package/lib/app/app/useApp.d.ts +1 -1
- package/lib/app/app/useAppContext.d.ts +1 -1
- package/lib/app/masters/BetPack/BetPackContent/QuestionScreen/index.d.ts +2 -2
- package/lib/app/masters/BetPack/BetPackContent/index.d.ts +1 -1
- package/lib/app/masters/BetPack/BetPackOverlay/index.d.ts +1 -1
- package/lib/app/masters/BetPack/index.d.ts +1 -1
- package/lib/app/masters/Features/FeatureProvider.d.ts +2 -2
- package/lib/app/masters/Features/Gamification/Question.d.ts +1 -1
- package/lib/app/masters/Features/Gamification/QuestionsList.d.ts +1 -1
- package/lib/app/masters/Features/Gamification/Tabs.d.ts +1 -1
- package/lib/app/masters/Features/Gamification/UserSummary.d.ts +1 -1
- package/lib/app/masters/Features/Gamification/index.d.ts +1 -1
- package/lib/app/masters/Features/index.d.ts +2 -2
- package/lib/app/masters/Notifications/Onboarding/Notification/index.d.ts +2 -2
- package/lib/app/masters/Notifications/Onboarding/index.d.ts +2 -2
- package/lib/app/masters/Notifications/index.d.ts +1 -1
- package/lib/app/masters/Points/index.d.ts +1 -1
- package/lib/app/masters/masters.d.ts +1 -1
- package/lib/app/masters/useMastersApp.d.ts +1 -1
- package/lib/app/masters/useMastersContext.d.ts +1 -1
- package/lib/app/useSdkFeature.d.ts +3 -3
- package/lib/app/webos/Advertisement/AdvertisementUI.d.ts +1 -1
- package/lib/app/webos/Advertisement/index.d.ts +1 -1
- package/lib/app/webos/ExposedPauseAd/PauseAd.d.ts +1 -1
- package/lib/app/webos/Question/index.d.ts +1 -1
- package/lib/app/webos/index.d.ts +1 -1
- package/lib/app/webos/ui/Sidebar/PromoAction.d.ts +1 -1
- package/lib/app/webos/ui/Sidebar/index.d.ts +2 -2
- package/lib/app/webos/ui/insight/index.d.ts +1 -1
- package/lib/core/hooks.d.ts +1 -1
- package/lib/core/provider.d.ts +3 -3
- package/lib/hooks/analytics.d.ts +1 -1
- package/lib/ui/advertisement/banner/index.d.ts +2 -2
- package/lib/ui/advertisement/index.d.ts +1 -1
- package/lib/ui/advertisement/mock.d.ts +1 -1
- package/lib/ui/advertisement/notification/index.d.ts +1 -1
- package/lib/ui/advertisement/notification/lower-third/index.d.ts +1 -1
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useVastAds.d.ts +1 -1
- package/lib/ui/advertisement/overlay/index.d.ts +2 -2
- package/lib/ui/close-btn/index.d.ts +1 -1
- package/lib/ui/gamification/constants.d.ts +1 -1
- package/lib/ui/gamification/detail/header/index.d.ts +1 -1
- package/lib/ui/gamification/insight/index.d.ts +1 -1
- package/lib/ui/gamification/insight-list/index.d.ts +1 -1
- package/lib/ui/gamification/leaderboard/list-item/index.d.ts +1 -1
- package/lib/ui/gamification/onboarding/index.d.ts +2 -2
- package/lib/ui/gamification/question/inapp/notification/AdNotification/NotificationMedia/index.d.ts +1 -1
- package/lib/ui/gamification/question/inapp/notification/AdNotification/index.d.ts +1 -1
- package/lib/ui/gamification/question/inapp/notification/NotificationMedia/index.d.ts +1 -1
- package/lib/ui/gamification/question/inapp/notification/index.d.ts +1 -1
- package/lib/ui/gamification/question/inapp/onboarding/index.d.ts +1 -1
- package/lib/ui/gamification/question/inapp/prediction-result/frames/index.d.ts +1 -1
- package/lib/ui/gamification/question/inapp/prediction-result/index.d.ts +1 -1
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/index.d.ts +1 -1
- package/lib/ui/gamification/question/inapp/prediction-result-ad/index.d.ts +1 -1
- package/lib/ui/gamification/question/index.d.ts +1 -1
- package/lib/ui/gamification/question/list/index.d.ts +1 -1
- package/lib/ui/gamification/question/notification/index.d.ts +1 -1
- package/lib/ui/gamification/question/notification/insight/index.d.ts +2 -2
- package/lib/ui/gamification/question/notification/prediction-result/index.d.ts +1 -1
- package/lib/ui/gamification/question/notification/tweet/index.d.ts +1 -1
- package/lib/ui/gamification/vote/feedback/index.d.ts +1 -1
- package/lib/ui/gamification/vote/index.d.ts +1 -1
- package/lib/ui/gamification/vote/vote-option/index.d.ts +1 -1
- package/lib/ui/gamification/vote/win-bar/index.d.ts +1 -1
- package/lib/ui/navigation/button/index.d.ts +1 -1
- package/lib/ui/questions/insight/index.d.ts +1 -1
- package/lib/ui/questions/twitter/index.d.ts +1 -1
- package/lib/useStreamLayerApp.d.ts +2 -2
- package/lib/utils/debug/components/bypassLogin.d.ts +1 -1
- package/lib/utils/debug/components/developer.d.ts +1 -1
- package/lib/utils/debug/components/eventInput.d.ts +1 -1
- package/lib/utils/debug/storage.d.ts +1 -1
- package/lib/utils/storage.d.ts +1 -1
- package/package.json +14 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StreamLayerSDK } from '
|
|
1
|
+
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
2
2
|
export declare const AdvertisementUIWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
3
|
export type StreamLayerSDKAdvertisementProps = {
|
|
4
4
|
isMobileScreen?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Features } from '
|
|
2
|
-
import { StreamLayerSDK } from '
|
|
1
|
+
import { Features } from '@streamlayer/sdk-web-features';
|
|
2
|
+
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
3
3
|
/** Here we check data, render loaders, load data and perform some side effects for the active feature */
|
|
4
4
|
export declare const FeatureProvider: React.FC<{
|
|
5
5
|
feature: Features;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ScrollNodeRef } from '../../..';
|
|
2
2
|
import { ScrollStore } from '../../../useSdkScroll';
|
|
3
|
-
import { Gamification } from '
|
|
3
|
+
import { Gamification } from '@streamlayer/feature-gamification';
|
|
4
4
|
export declare const Leaderboard: React.FC<{
|
|
5
5
|
gamification: Gamification;
|
|
6
6
|
scrollNode: ScrollNodeRef;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Gamification } from '
|
|
2
|
-
import { StreamLayerSDK } from '
|
|
1
|
+
import { Gamification } from '@streamlayer/feature-gamification';
|
|
2
|
+
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
3
3
|
export declare const Question: React.FC<{
|
|
4
4
|
gamification: Gamification;
|
|
5
5
|
sdk: StreamLayerSDK;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Gamification } from '
|
|
1
|
+
import { Gamification } from '@streamlayer/feature-gamification';
|
|
2
2
|
export declare const QuestionsList: React.FC<{
|
|
3
3
|
store: ReturnType<Exclude<Gamification['feedList'], undefined>['getStore']>;
|
|
4
4
|
openQuestion: (questionId: string) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AppNodeRef, ScrollNodeRef } from '../../..';
|
|
2
2
|
import { ResponsiveStore } from '../../../useSdkResponsive';
|
|
3
3
|
import { ScrollStore } from '../../../useSdkScroll';
|
|
4
|
-
import { Gamification } from '
|
|
4
|
+
import { Gamification } from '@streamlayer/feature-gamification';
|
|
5
5
|
export declare const Tabs: React.FC<{
|
|
6
6
|
appNode: AppNodeRef;
|
|
7
7
|
gamification: Gamification;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AppNodeRef, ScrollNodeRef } from '../../..';
|
|
2
2
|
import { ResponsiveStore } from '../../../useSdkResponsive';
|
|
3
3
|
import { ScrollStore } from '../../../useSdkScroll';
|
|
4
|
-
import { Gamification as GamificationClass } from '
|
|
5
|
-
import { StreamLayerSDK } from '
|
|
4
|
+
import { Gamification as GamificationClass } from '@streamlayer/feature-gamification';
|
|
5
|
+
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
6
6
|
export declare const GamificationOverlay: React.FC<{
|
|
7
7
|
gamification: GamificationClass;
|
|
8
8
|
className?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AppNodeRef, ScrollNodeRef } from '../..';
|
|
2
2
|
import { ResponsiveStore } from '../../useSdkResponsive';
|
|
3
3
|
import { ScrollStore } from '../../useSdkScroll';
|
|
4
|
-
import { Features } from '
|
|
5
|
-
import { StreamLayerSDK } from '
|
|
4
|
+
import { Features } from '@streamlayer/sdk-web-features';
|
|
5
|
+
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
6
6
|
/** render feature by type */
|
|
7
7
|
export declare const ActiveFeature: React.FC<{
|
|
8
8
|
sdk: StreamLayerSDK;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Gamification } from '
|
|
2
|
-
import { StreamLayerSDK } from '
|
|
1
|
+
import { Gamification } from '@streamlayer/feature-gamification';
|
|
2
|
+
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
3
3
|
export declare const QuestionWrap: {
|
|
4
4
|
__wyw_meta: unknown;
|
|
5
5
|
} & import('react').FC<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StreamLayerSDK } from '
|
|
1
|
+
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
2
2
|
export declare const SDKHeader: import('react').ForwardRefExoticComponent<{
|
|
3
3
|
sdk: StreamLayerSDK;
|
|
4
4
|
className?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Notification } from '
|
|
2
|
-
import { GameSettings } from '
|
|
1
|
+
import { Notification } from '@streamlayer/sdk-web-notifications';
|
|
2
|
+
import { GameSettings } from '@streamlayer/sdk-web-types';
|
|
3
3
|
export declare const Onboarding: React.FC<{
|
|
4
4
|
close: Notification['close'];
|
|
5
5
|
action: Notification['action'];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AppNodeRef } from '../../..';
|
|
2
2
|
import { ResponsiveStore } from '../../../useSdkResponsive';
|
|
3
|
-
import { StreamLayerSDK } from '
|
|
4
|
-
import { Notification } from '
|
|
3
|
+
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
4
|
+
import { Notification } from '@streamlayer/sdk-web-notifications';
|
|
5
5
|
export declare const Onboarding: React.FC<{
|
|
6
6
|
sdk: StreamLayerSDK;
|
|
7
7
|
notification: Notification;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AppNodeRef, ScrollNodeRef, HeaderNodeRef } from '../..';
|
|
2
2
|
import { ResponsiveStore } from '../../useSdkResponsive';
|
|
3
3
|
import { ScrollStore } from '../../useSdkScroll';
|
|
4
|
-
import { StreamLayerSDK } from '
|
|
4
|
+
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
5
5
|
export declare const SDKNotifications: React.FC<{
|
|
6
6
|
sdk: StreamLayerSDK;
|
|
7
7
|
scrollNode: ScrollNodeRef;
|
package/lib/app/app/index.d.ts
CHANGED
package/lib/app/app/useApp.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Gamification } from '
|
|
2
|
-
import { ExtendedQuestion } from '
|
|
1
|
+
import { Gamification } from '@streamlayer/feature-gamification';
|
|
2
|
+
import { ExtendedQuestion } from '@streamlayer/sdk-web-types';
|
|
3
3
|
export declare const QuestionScreen: React.FC<{
|
|
4
4
|
question: ExtendedQuestion;
|
|
5
5
|
vote: Gamification['submitAnswer'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Gamification } from '
|
|
1
|
+
import { Gamification } from '@streamlayer/feature-gamification';
|
|
2
2
|
import { BetPackEventCb } from '../';
|
|
3
3
|
export declare const BetPackContent: React.FC<{
|
|
4
4
|
gamification: Gamification;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { StreamLayerSDK } from '
|
|
2
|
+
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
3
3
|
import { AllowedMessageType } from './utils';
|
|
4
4
|
export { BetPackOverlay, type BetPackOverlayProps } from './BetPackOverlay';
|
|
5
5
|
export type BetPackEventCb = (event: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Features } from '
|
|
2
|
-
import { StreamLayerSDK } from '
|
|
1
|
+
import { Features } from '@streamlayer/sdk-web-features';
|
|
2
|
+
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
3
3
|
/** Here we check data, render loaders, load data and perform some side effects for the active feature */
|
|
4
4
|
export declare const FeatureProvider: React.FC<{
|
|
5
5
|
feature: Features;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Gamification } from '
|
|
1
|
+
import { Gamification } from '@streamlayer/feature-gamification';
|
|
2
2
|
export declare const QuestionsList: React.FC<{
|
|
3
3
|
store: ReturnType<Exclude<Gamification['feedList'], undefined>['getStore']>;
|
|
4
4
|
openQuestion: (questionId: string) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AppNodeRef } from '../../..';
|
|
2
2
|
import { ResponsiveStore } from '../../useSdkResponsive';
|
|
3
|
-
import { Gamification as GamificationClass } from '
|
|
3
|
+
import { Gamification as GamificationClass } from '@streamlayer/feature-gamification';
|
|
4
4
|
export declare const GamificationOverlay: React.FC<{
|
|
5
5
|
gamification: GamificationClass;
|
|
6
6
|
className?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AppNodeRef } from '../..';
|
|
2
|
-
import { Features } from '
|
|
3
|
-
import { StreamLayerSDK } from '
|
|
2
|
+
import { Features } from '@streamlayer/sdk-web-features';
|
|
3
|
+
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
4
4
|
import { ResponsiveStore } from '../useSdkResponsive';
|
|
5
5
|
/** render feature by type */
|
|
6
6
|
export declare const ActiveFeature: React.FC<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Notification } from '
|
|
2
|
-
import { GameSettings } from '
|
|
1
|
+
import { Notification } from '@streamlayer/sdk-web-notifications';
|
|
2
|
+
import { GameSettings } from '@streamlayer/sdk-web-types';
|
|
3
3
|
export declare const Onboarding: React.FC<{
|
|
4
4
|
close: Notification['close'];
|
|
5
5
|
action: Notification['action'];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AppNodeRef } from '../../..';
|
|
2
2
|
import { ResponsiveStore } from '../../useSdkResponsive';
|
|
3
|
-
import { StreamLayerSDK } from '
|
|
4
|
-
import { Notification } from '
|
|
3
|
+
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
4
|
+
import { Notification } from '@streamlayer/sdk-web-notifications';
|
|
5
5
|
export declare const Onboarding: React.FC<{
|
|
6
6
|
sdk: StreamLayerSDK;
|
|
7
7
|
notification: Notification;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AppNodeRef, ScrollNodeRef, HeaderNodeRef } from '../..';
|
|
2
2
|
import { ResponsiveStore } from '../useSdkResponsive';
|
|
3
3
|
import { ScrollStore } from '../useSdkScroll';
|
|
4
|
-
import { StreamLayerSDK } from '
|
|
4
|
+
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
5
5
|
export declare const SDKNotifications: React.FC<{
|
|
6
6
|
sdk: StreamLayerSDK;
|
|
7
7
|
scrollNode: ScrollNodeRef;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StreamLayerSDK } from '
|
|
1
|
+
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
2
2
|
import { LeaderBoardButtonId } from './Navigation/MastersNavigation';
|
|
3
3
|
export { StreamLayerMastersThemeProvider } from '../../ui/theme/masters';
|
|
4
4
|
export { MastersStreamLayerProvider } from './provider';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StreamLayerSDK } from '
|
|
1
|
+
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
2
2
|
import { AvailableOverlays } from './Navigation/MastersNavigation';
|
|
3
3
|
/**
|
|
4
4
|
* A hook that provides functionality for managing the StreamLayerSDK in the Masters app.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Features } from '
|
|
2
|
-
import { StreamLayerSDK } from '
|
|
3
|
-
import { FeatureType } from '
|
|
1
|
+
import { Features } from '@streamlayer/sdk-web-features';
|
|
2
|
+
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
3
|
+
import { FeatureType } from '@streamlayer/sdk-web-types';
|
|
4
4
|
/**
|
|
5
5
|
* A hook that manages the active feature of a StreamLayerSDK instance.
|
|
6
6
|
* @param sdk - The StreamLayerSDK instance to manage the feature for.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Advertisement } from '
|
|
1
|
+
import { Advertisement } from '@streamlayer/feature-gamification';
|
|
2
2
|
import { ControlVideoCb } from '../../../ui/video-player';
|
|
3
3
|
export declare const AdvertisementUI: React.FC<{
|
|
4
4
|
advertisement: Exclude<Advertisement['data'], undefined>;
|
package/lib/app/webos/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
import { StreamLayerSDK } from '
|
|
2
|
+
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
3
3
|
import { StreamLayerSDKAdvertisementWebOS } from './Advertisement';
|
|
4
4
|
import { PauseAd, PauseAdProps } from './ExposedPauseAd/PauseAd';
|
|
5
5
|
import { StreamLayerSDKQuestionWebOS } from './Question';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Advertisement } from '
|
|
2
|
-
import { PromotionOptions } from '
|
|
1
|
+
import { Advertisement } from '@streamlayer/feature-gamification';
|
|
2
|
+
import { PromotionOptions } from '@streamlayer/sdk-web-types';
|
|
3
3
|
import { ControlVideoCb } from '../../../../ui/video-player';
|
|
4
4
|
export type OverlayProps = {
|
|
5
5
|
promotionId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InsightHistory, Promotion } from '
|
|
1
|
+
import { InsightHistory, Promotion } from '@streamlayer/sdk-web-types';
|
|
2
2
|
import { VideoPlayerProps } from '../../../../ui/video-player';
|
|
3
3
|
export type InsightContentProps = InsightHistory & {
|
|
4
4
|
isDetail?: boolean;
|
package/lib/core/hooks.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StreamLayerOptions, StreamLayerSDK } from '
|
|
1
|
+
import { StreamLayerOptions, StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
2
2
|
export declare const useStreamLayer: () => StreamLayerSDK | null;
|
|
3
3
|
export declare const useStreamLayerEvent: () => import('react').MutableRefObject<string> | undefined;
|
|
4
4
|
export declare const useStreamLayerTheme: () => Pick<StreamLayerOptions, "theme" | "themeMode">;
|
package/lib/core/provider.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DeepLinkCallback } from '
|
|
2
|
-
import { StreamLayerSDK, StreamLayerPlugin } from '
|
|
3
|
-
export type { DeepLinkCallback } from '
|
|
1
|
+
import { DeepLinkCallback } from '@streamlayer/sdk-web-core';
|
|
2
|
+
import { StreamLayerSDK, StreamLayerPlugin } from '@streamlayer/sdk-web-interfaces';
|
|
3
|
+
export type { DeepLinkCallback } from '@streamlayer/sdk-web-core';
|
|
4
4
|
export type ContentActivateParams = {
|
|
5
5
|
stage: 'activate' | 'deactivate';
|
|
6
6
|
id: string;
|
package/lib/hooks/analytics.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventBusData } from '
|
|
1
|
+
import { EventBusData } from '@streamlayer/sdk-web-interfaces';
|
|
2
2
|
type Arguments<T> = T extends (...args: infer U) => void ? U : never;
|
|
3
3
|
export declare const useAnalyticsHandle: (options: EventBusData) => (<T extends Function>(callback?: T) => (...args: Arguments<T>) => any)[];
|
|
4
4
|
export declare const newTabLinkListener: (event: Event) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Advertisement } from '
|
|
2
|
-
import { Promotion } from '
|
|
1
|
+
import { Advertisement } from '@streamlayer/feature-gamification';
|
|
2
|
+
import { Promotion } from '@streamlayer/sdk-web-types';
|
|
3
3
|
export declare const Banner: React.FC<{
|
|
4
4
|
promotion: Promotion;
|
|
5
5
|
promotionId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Advertisement } from '
|
|
1
|
+
import { Advertisement } from '@streamlayer/feature-gamification';
|
|
2
2
|
import { ControlVideoCb } from '../video-player';
|
|
3
3
|
export declare const AdvertisementUI: React.FC<{
|
|
4
4
|
advertisement: Exclude<Advertisement['data'], undefined>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PromotionOptions } from '
|
|
1
|
+
import { PromotionOptions } from '@streamlayer/sdk-web-types';
|
|
2
2
|
export declare const promotionMock: PromotionOptions;
|
|
3
3
|
export declare const promotionMockWithVideo: PromotionOptions;
|
|
4
4
|
export declare const promotionMockWithGAM: PromotionOptions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QuestionNotification, PromotionNotification } from '
|
|
1
|
+
import { QuestionNotification, PromotionNotification } from '@streamlayer/sdk-web-types';
|
|
2
2
|
export declare const NotificationMedia: React.FC<{
|
|
3
3
|
src: string;
|
|
4
4
|
imagePosition: PromotionNotification['imagePosition'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QuestionNotification, PromotionNotification } from '
|
|
1
|
+
import { QuestionNotification, PromotionNotification } from '@streamlayer/sdk-web-types';
|
|
2
2
|
export declare const NotificationMedia: React.FC<{
|
|
3
3
|
src: string;
|
|
4
4
|
imagePosition: PromotionNotification['imagePosition'];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VastAd, VastCreativeLinear, VastResponse } from '@dailymotion/vast-client';
|
|
2
2
|
import { RefObject } from 'react';
|
|
3
|
-
import { PalNonceManager } from '
|
|
3
|
+
import { PalNonceManager } from '@streamlayer/feature-gamification/externalAd';
|
|
4
4
|
/**
|
|
5
5
|
* Get the first valid creative from an ad
|
|
6
6
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Advertisement } from '
|
|
2
|
-
import { PromotionOptions } from '
|
|
1
|
+
import { Advertisement } from '@streamlayer/feature-gamification';
|
|
2
|
+
import { PromotionOptions } from '@streamlayer/sdk-web-types';
|
|
3
3
|
import { ControlVideoCb } from '../../video-player';
|
|
4
4
|
export { OverlayContainer } from './styles';
|
|
5
5
|
export type OverlayProps = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CloseTimerAuto } from '
|
|
1
|
+
import { CloseTimerAuto } from '@streamlayer/sdk-web-types';
|
|
2
2
|
export declare const CloseButton: React.FC<{
|
|
3
3
|
close?: (e?: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
4
4
|
duration?: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LeaderboardItem as ILeaderboardItem } from '
|
|
1
|
+
import { LeaderboardItem as ILeaderboardItem } from '@streamlayer/sdk-web-types';
|
|
2
2
|
export type LeaderboardItemProps = Partial<ILeaderboardItem> & {
|
|
3
3
|
userId: string;
|
|
4
4
|
isCurrentUser?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Gamification } from '
|
|
2
|
-
import { StreamLayerSDK } from '
|
|
1
|
+
import { Gamification } from '@streamlayer/feature-gamification';
|
|
2
|
+
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
3
3
|
import { OnboardingStep } from './slides/onboarding-instructions';
|
|
4
4
|
import { OnboardingInviteCardProps } from './slides/onboarding-invite-card';
|
|
5
5
|
import { OnboardingRule } from './slides/onboarding-rules';
|
package/lib/ui/gamification/question/inapp/notification/AdNotification/NotificationMedia/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NotificationUseContentMedia, QuestionImages } from '
|
|
1
|
+
import { NotificationUseContentMedia, QuestionImages } from '@streamlayer/sdk-web-types';
|
|
2
2
|
export declare const MediaComponentWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & {
|
|
3
3
|
color?: string;
|
|
4
4
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Notification as NotificationProps } from '
|
|
1
|
+
import { Notification as NotificationProps } from '@streamlayer/sdk-web-notifications';
|
|
2
2
|
type InAppProps = NotificationProps['data'] & {
|
|
3
3
|
action: NotificationProps['action'];
|
|
4
4
|
close?: NotificationProps['close'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Notification as NotificationProps } from '
|
|
1
|
+
import { Notification as NotificationProps } from '@streamlayer/sdk-web-notifications';
|
|
2
2
|
type InAppProps = NotificationProps['data'] & {
|
|
3
3
|
action: NotificationProps['action'];
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NotificationData } from '
|
|
1
|
+
import { NotificationData } from '@streamlayer/sdk-web-notifications';
|
|
2
2
|
export declare const InAppOnboarding: React.FC<NotificationData['onboarding'] & {
|
|
3
3
|
open?: () => void;
|
|
4
4
|
close?: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NotificationData } from '
|
|
1
|
+
import { NotificationData } from '@streamlayer/sdk-web-notifications';
|
|
2
2
|
export declare const PredictionResultSteps: React.FC<NotificationData['question'] & {
|
|
3
3
|
close?: () => void;
|
|
4
4
|
action?: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Notification as NotificationProps } from '
|
|
1
|
+
import { Notification as NotificationProps } from '@streamlayer/sdk-web-notifications';
|
|
2
2
|
type InAppProps = NotificationProps['data'] & {
|
|
3
3
|
action: NotificationProps['action'];
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NotificationData } from '
|
|
1
|
+
import { NotificationData } from '@streamlayer/sdk-web-notifications';
|
|
2
2
|
export declare const PredictionResultSteps: React.FC<NotificationData['question'] & {
|
|
3
3
|
close?: () => void;
|
|
4
4
|
action?: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Notification as NotificationProps } from '
|
|
1
|
+
import { Notification as NotificationProps } from '@streamlayer/sdk-web-notifications';
|
|
2
2
|
type InAppProps = NotificationProps['data'] & {
|
|
3
3
|
action: NotificationProps['action'];
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QuestionType, QuestionStatus, PickHistory } from '
|
|
1
|
+
import { QuestionType, QuestionStatus, PickHistory } from '@streamlayer/sdk-web-types';
|
|
2
2
|
import { icons } from '../../icons';
|
|
3
3
|
export declare const QuestionSkeleton: React.FC;
|
|
4
4
|
export declare const QuestionTypeHeader: React.FC<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Gamification } from '
|
|
1
|
+
import { Gamification } from '@streamlayer/feature-gamification';
|
|
2
2
|
import { VideoPlayerProps } from '../../../video-player';
|
|
3
3
|
type FeedItem = Exclude<Awaited<ReturnType<Exclude<Gamification['feedList'], undefined>['getValue']>>, undefined>;
|
|
4
4
|
interface QuestionListProps {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Notification as NotificationProps } from '
|
|
1
|
+
import { Notification as NotificationProps } from '@streamlayer/sdk-web-notifications';
|
|
2
2
|
import { VideoPlayerProps } from '../../../video-player';
|
|
3
3
|
export declare const Notification: React.FC<NotificationProps & Pick<VideoPlayerProps, 'controlVideo'>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Notification } from '
|
|
2
|
-
import { InsightHistory, InstantView } from '
|
|
1
|
+
import { Notification } from '@streamlayer/sdk-web-notifications';
|
|
2
|
+
import { InsightHistory, InstantView } from '@streamlayer/sdk-web-types';
|
|
3
3
|
import { VideoPlayerProps } from '../../../../video-player';
|
|
4
4
|
export type InsightProps = InstantView & {
|
|
5
5
|
imageMode?: InsightHistory['imageMode'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NotificationData } from '
|
|
1
|
+
import { NotificationData } from '@streamlayer/sdk-web-notifications';
|
|
2
2
|
export declare const PredictionResult: React.FC<NotificationData['question'] & {
|
|
3
3
|
close?: () => void;
|
|
4
4
|
saveHeight: (h: number) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Notification } from '
|
|
1
|
+
import { Notification } from '@streamlayer/sdk-web-notifications';
|
|
2
2
|
import { TwitterContentProps } from '../../../../questions/twitter';
|
|
3
3
|
export declare const Tweet: React.FC<TwitterContentProps & {
|
|
4
4
|
action: Notification['action'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExtendedQuestionAnswer, QuestionType } from '
|
|
1
|
+
import { ExtendedQuestionAnswer, QuestionType } from '@streamlayer/sdk-web-types';
|
|
2
2
|
interface FeedbackProps {
|
|
3
3
|
feedbackMessages?: Partial<Record<'correctFeedback' | 'incorrectFeedback', {
|
|
4
4
|
description: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QuestionType, QuestionImages, QuestionStatus, ExtendedQuestionAnswer } from '
|
|
1
|
+
import { QuestionType, QuestionImages, QuestionStatus, ExtendedQuestionAnswer } from '@streamlayer/sdk-web-types';
|
|
2
2
|
export type VotingOptionProps = ExtendedQuestionAnswer & {
|
|
3
3
|
questionVoted: boolean;
|
|
4
4
|
youSelected: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InsightHistory, Promotion } from '
|
|
1
|
+
import { InsightHistory, Promotion } from '@streamlayer/sdk-web-types';
|
|
2
2
|
import { VideoPlayerProps } from '../../video-player';
|
|
3
3
|
export type InsightContentProps = InsightHistory & {
|
|
4
4
|
isDetail?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TweetHistory } from '
|
|
1
|
+
import { TweetHistory } from '@streamlayer/sdk-web-types';
|
|
2
2
|
import { VideoPlayerProps } from '../../video-player';
|
|
3
3
|
export declare const sanitizeContent: (text: string) => string;
|
|
4
4
|
export type TwitterContentProps = TweetHistory & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DeepLinkCallback, VideoPlayerCallback, OnContentActivateCallback } from '
|
|
2
|
-
import { StreamLayerSDK, StreamLayerPlugin } from '
|
|
1
|
+
import { DeepLinkCallback, VideoPlayerCallback, OnContentActivateCallback } from '@streamlayer/sdk-web-core';
|
|
2
|
+
import { StreamLayerSDK, StreamLayerPlugin } from '@streamlayer/sdk-web-interfaces';
|
|
3
3
|
declare global {
|
|
4
4
|
interface Window {
|
|
5
5
|
sl: unknown;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StreamLayerSDK } from '
|
|
1
|
+
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
2
2
|
import { DeveloperStorage } from '../../storage';
|
|
3
3
|
export declare const BypassLogin: React.FC<{
|
|
4
4
|
sdk: StreamLayerSDK;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StreamLayerSDK } from '
|
|
1
|
+
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
2
2
|
import { DeveloperStorage } from '../../storage';
|
|
3
3
|
export declare const EventInput: React.FC<{
|
|
4
4
|
sdk: StreamLayerSDK;
|
package/lib/utils/storage.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamlayer/react-ui",
|
|
3
|
-
"version": "1.33.
|
|
3
|
+
"version": "1.33.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
@@ -110,19 +110,19 @@
|
|
|
110
110
|
"react-countdown-circle-timer": "^3.2.1",
|
|
111
111
|
"react-countup": "^6.5.3",
|
|
112
112
|
"react-phone-number-input": "^3.4.8",
|
|
113
|
-
"@streamlayer/feature-gamification": "^1.23.
|
|
114
|
-
"@streamlayer/react-polyfills": "^0.1.
|
|
115
|
-
"@streamlayer/sdk-web": "^1.16.
|
|
116
|
-
"@streamlayer/sdk-web-analytics": "^1.14.
|
|
117
|
-
"@streamlayer/sdk-web-anonymous-auth": "^1.3.
|
|
118
|
-
"@streamlayer/sdk-web-api": "^1.14.
|
|
119
|
-
"@streamlayer/sdk-web-core": "^1.18.
|
|
120
|
-
"@streamlayer/sdk-web-features": "^1.0.
|
|
121
|
-
"@streamlayer/sdk-web-interfaces": "^1.8.
|
|
122
|
-
"@streamlayer/sdk-web-logger": "^1.0.
|
|
123
|
-
"@streamlayer/sdk-web-notifications": "^1.3.
|
|
124
|
-
"@streamlayer/sdk-web-storage": "^1.0.
|
|
125
|
-
"@streamlayer/sdk-web-types": "^1.16.
|
|
113
|
+
"@streamlayer/feature-gamification": "^1.23.8",
|
|
114
|
+
"@streamlayer/react-polyfills": "^0.1.53",
|
|
115
|
+
"@streamlayer/sdk-web": "^1.16.8",
|
|
116
|
+
"@streamlayer/sdk-web-analytics": "^1.14.3",
|
|
117
|
+
"@streamlayer/sdk-web-anonymous-auth": "^1.3.8",
|
|
118
|
+
"@streamlayer/sdk-web-api": "^1.14.8",
|
|
119
|
+
"@streamlayer/sdk-web-core": "^1.18.3",
|
|
120
|
+
"@streamlayer/sdk-web-features": "^1.0.93",
|
|
121
|
+
"@streamlayer/sdk-web-interfaces": "^1.8.8",
|
|
122
|
+
"@streamlayer/sdk-web-logger": "^1.0.93",
|
|
123
|
+
"@streamlayer/sdk-web-notifications": "^1.3.55",
|
|
124
|
+
"@streamlayer/sdk-web-storage": "^1.0.93",
|
|
125
|
+
"@streamlayer/sdk-web-types": "^1.16.8"
|
|
126
126
|
},
|
|
127
127
|
"nx": {
|
|
128
128
|
"implicitDependencies": [
|