@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/index.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>;
|
|
@@ -1473,7 +1484,8 @@ export declare enum CustomerId {
|
|
|
1473
1484
|
MYSTICO = "MYSTICO",
|
|
1474
1485
|
MORAVEC = "MORAVEC",
|
|
1475
1486
|
JAN_TUNA = "JAN_TUNA",
|
|
1476
|
-
PODNIKATELSKY_MINDSET = "PODNIKATELSKY_MINDSET"
|
|
1487
|
+
PODNIKATELSKY_MINDSET = "PODNIKATELSKY_MINDSET",
|
|
1488
|
+
PETR_HOFMAN = "PETR_HOFMAN"
|
|
1477
1489
|
}
|
|
1478
1490
|
|
|
1479
1491
|
export declare interface CustomScript {
|
|
@@ -4475,7 +4487,7 @@ export declare interface PollWidget<TScene extends InteractiveWidgetScene = Inte
|
|
|
4475
4487
|
readonly type: InteractiveWidgetType.POLL;
|
|
4476
4488
|
}
|
|
4477
4489
|
|
|
4478
|
-
export declare type PollWidgetState = InteractiveWidgetState.IDLE | InteractiveWidgetState.CURRENT_QUESTION | InteractiveWidgetState.
|
|
4490
|
+
export declare type PollWidgetState = InteractiveWidgetState.IDLE | InteractiveWidgetState.CURRENT_QUESTION | InteractiveWidgetState.RESOLVED_QUESTION | InteractiveWidgetState.RESET_GAME | InteractiveWidgetState.NEXT_STATE;
|
|
4479
4491
|
|
|
4480
4492
|
/**
|
|
4481
4493
|
* @public
|
|
@@ -5165,7 +5177,9 @@ export declare interface QuestionRepository {
|
|
|
5165
5177
|
readonly selectedAnswerId: string | undefined;
|
|
5166
5178
|
isSubmitted: boolean;
|
|
5167
5179
|
isSubmitting: boolean;
|
|
5168
|
-
setCurrentQuestion: (question: CurrentQuestion | null, role: InteractiveWidgetRole,
|
|
5180
|
+
setCurrentQuestion: (question: CurrentQuestion | null, role: InteractiveWidgetRole,
|
|
5181
|
+
/** Time limit for the question. Omit/undefined means no timer (e.g. polls). */
|
|
5182
|
+
secondsToAnswer: number | undefined, shouldEnterAtTimestampMs?: number, shouldAdjustEndTimestampMs?: boolean) => void;
|
|
5169
5183
|
selectAnswer: (answerId: string | undefined) => void;
|
|
5170
5184
|
setShowCountdown: (showCountdown: boolean) => void;
|
|
5171
5185
|
reset: () => void;
|