@tivio/sdk-react 10.2.0 → 10.3.0
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/README.md +3 -1
- package/README.md.bak +3 -1
- package/dist/index.d.ts +23 -3
- package/dist/index.js +1 -1
- package/dist/sdk-react.d.ts +23 -3
- package/package.json +2 -2
package/dist/sdk-react.d.ts
CHANGED
|
@@ -694,6 +694,17 @@ export declare interface BaseInteractiveWidget<TAnswer extends BaseQuestionAnswe
|
|
|
694
694
|
* disruption to existing consumers.
|
|
695
695
|
*/
|
|
696
696
|
readonly isWaitingForStart: boolean;
|
|
697
|
+
/**
|
|
698
|
+
* Delay (in seconds) applied to the audience-facing
|
|
699
|
+
* state relative to the live state, so end users see widget transitions in sync
|
|
700
|
+
* with their delayed video stream.
|
|
701
|
+
*/
|
|
702
|
+
readonly audienceDelayInSeconds: number;
|
|
703
|
+
/**
|
|
704
|
+
* Number of users currently active on the video this widget belongs to.
|
|
705
|
+
* Sourced live from the video document (`activeUsers.value`).
|
|
706
|
+
*/
|
|
707
|
+
readonly activeUsers?: number;
|
|
697
708
|
answerQuestion(answerId: string): void;
|
|
698
709
|
submitAnswer(request: Pick<SubmitAnswerRequest, 'answerOptionId' | 'answerText'>): Promise<void>;
|
|
699
710
|
verifyJoinCode(joinCode: string, shouldJoinPlayer?: boolean): Promise<boolean>;
|
|
@@ -1514,7 +1525,9 @@ export declare enum CustomerId {
|
|
|
1514
1525
|
JANA_HANZ = "JANA_HANZ",
|
|
1515
1526
|
MYSTICO = "MYSTICO",
|
|
1516
1527
|
MORAVEC = "MORAVEC",
|
|
1517
|
-
JAN_TUNA = "JAN_TUNA"
|
|
1528
|
+
JAN_TUNA = "JAN_TUNA",
|
|
1529
|
+
PODNIKATELSKY_MINDSET = "PODNIKATELSKY_MINDSET",
|
|
1530
|
+
PETR_HOFMAN = "PETR_HOFMAN"
|
|
1518
1531
|
}
|
|
1519
1532
|
|
|
1520
1533
|
/**
|
|
@@ -4878,7 +4891,7 @@ export declare interface PollWidget<TScene extends InteractiveWidgetScene = Inte
|
|
|
4878
4891
|
readonly type: InteractiveWidgetType.POLL;
|
|
4879
4892
|
}
|
|
4880
4893
|
|
|
4881
|
-
export declare type PollWidgetState = InteractiveWidgetState.IDLE | InteractiveWidgetState.CURRENT_QUESTION | InteractiveWidgetState.
|
|
4894
|
+
export declare type PollWidgetState = InteractiveWidgetState.IDLE | InteractiveWidgetState.CURRENT_QUESTION | InteractiveWidgetState.RESOLVED_QUESTION | InteractiveWidgetState.RESET_GAME | InteractiveWidgetState.NEXT_STATE;
|
|
4882
4895
|
|
|
4883
4896
|
/**
|
|
4884
4897
|
* @public
|
|
@@ -5568,7 +5581,9 @@ export declare interface QuestionRepository {
|
|
|
5568
5581
|
readonly selectedAnswerId: string | undefined;
|
|
5569
5582
|
isSubmitted: boolean;
|
|
5570
5583
|
isSubmitting: boolean;
|
|
5571
|
-
setCurrentQuestion: (question: CurrentQuestion | null, role: InteractiveWidgetRole,
|
|
5584
|
+
setCurrentQuestion: (question: CurrentQuestion | null, role: InteractiveWidgetRole,
|
|
5585
|
+
/** Time limit for the question. Omit/undefined means no timer (e.g. polls). */
|
|
5586
|
+
secondsToAnswer: number | undefined, shouldEnterAtTimestampMs?: number, shouldAdjustEndTimestampMs?: boolean) => void;
|
|
5572
5587
|
selectAnswer: (answerId: string | undefined) => void;
|
|
5573
5588
|
setShowCountdown: (showCountdown: boolean) => void;
|
|
5574
5589
|
reset: () => void;
|
|
@@ -9503,6 +9518,11 @@ export declare interface VoucherInfoBasePublic {
|
|
|
9503
9518
|
isExpired: boolean;
|
|
9504
9519
|
status: VoucherInfoPublicStatus;
|
|
9505
9520
|
fullDiscount?: boolean;
|
|
9521
|
+
/**
|
|
9522
|
+
* Video the voucher relates to, when the voucher document references one
|
|
9523
|
+
* (`videoRef`). Present for both subscription and transaction vouchers.
|
|
9524
|
+
*/
|
|
9525
|
+
videoId?: string;
|
|
9506
9526
|
}
|
|
9507
9527
|
|
|
9508
9528
|
export declare type VoucherInfoPublic = VoucherInfoSubscriptionPublic | VoucherInfoTransactionPublic;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tivio/sdk-react",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.3.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@material-ui/core": "^4.11.2",
|
|
42
42
|
"@material-ui/icons": "^4.11.2",
|
|
43
43
|
"@sentry/browser": "^6.1.0",
|
|
44
|
-
"@tivio/common": "1.1.
|
|
44
|
+
"@tivio/common": "1.1.139",
|
|
45
45
|
"dayjs": "^1.11.0",
|
|
46
46
|
"es7-object-polyfill": "^1.0.1",
|
|
47
47
|
"firebase": "8.10.1",
|