@tivio/sdk-react 10.2.1 → 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/dist/index.d.ts +17 -3
- package/dist/index.js +1 -1
- package/dist/sdk-react.d.ts +17 -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>;
|
|
@@ -1515,7 +1526,8 @@ export declare enum CustomerId {
|
|
|
1515
1526
|
MYSTICO = "MYSTICO",
|
|
1516
1527
|
MORAVEC = "MORAVEC",
|
|
1517
1528
|
JAN_TUNA = "JAN_TUNA",
|
|
1518
|
-
PODNIKATELSKY_MINDSET = "PODNIKATELSKY_MINDSET"
|
|
1529
|
+
PODNIKATELSKY_MINDSET = "PODNIKATELSKY_MINDSET",
|
|
1530
|
+
PETR_HOFMAN = "PETR_HOFMAN"
|
|
1519
1531
|
}
|
|
1520
1532
|
|
|
1521
1533
|
/**
|
|
@@ -4879,7 +4891,7 @@ export declare interface PollWidget<TScene extends InteractiveWidgetScene = Inte
|
|
|
4879
4891
|
readonly type: InteractiveWidgetType.POLL;
|
|
4880
4892
|
}
|
|
4881
4893
|
|
|
4882
|
-
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;
|
|
4883
4895
|
|
|
4884
4896
|
/**
|
|
4885
4897
|
* @public
|
|
@@ -5569,7 +5581,9 @@ export declare interface QuestionRepository {
|
|
|
5569
5581
|
readonly selectedAnswerId: string | undefined;
|
|
5570
5582
|
isSubmitted: boolean;
|
|
5571
5583
|
isSubmitting: boolean;
|
|
5572
|
-
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;
|
|
5573
5587
|
selectAnswer: (answerId: string | undefined) => void;
|
|
5574
5588
|
setShowCountdown: (showCountdown: boolean) => void;
|
|
5575
5589
|
reset: () => void;
|
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",
|