odaptos_design_system 2.0.107 → 2.0.109

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.
@@ -40,6 +40,6 @@ export interface ChatProps extends HTMLAttributes<HTMLDivElement> {
40
40
  intervieweeName?: string;
41
41
  stopRecording: () => void;
42
42
  isObserver?: boolean;
43
- onClickScenario?: () => void;
43
+ contentFunc: (key: string) => string;
44
44
  }
45
- export declare const Chat: ({ chatTitle, welcomeTitle, welcomeDescription, startInterviewTitle, startInterviewBtnTitle, scenarioText, taskText, questionText, noteText, actionText, startInterviewIcon, startInterview, tasks, sendTask, currentTask, chatInputPlaceholder, chatInputValue, chatInputonChange, sendMessage, className, isTaskMode, isInterviewer, messages, idsTasksAlreadySent, customScrollingClassname, customContentClassname, disabledTask, disabledScenario, areAllTasksSend, isRecordingFinished, stopRecTitle, stopRecDescription, stopRecCTA, SusExplanationTitle, SusExplanationDescription, isSus, intervieweeName, stopRecording, isObserver, onClickScenario, ...props }: ChatProps) => React.JSX.Element;
45
+ export declare const Chat: ({ chatTitle, welcomeTitle, welcomeDescription, startInterviewTitle, startInterviewBtnTitle, scenarioText, taskText, questionText, noteText, actionText, startInterviewIcon, startInterview, tasks, sendTask, currentTask, chatInputPlaceholder, chatInputValue, chatInputonChange, sendMessage, className, isTaskMode, isInterviewer, messages, idsTasksAlreadySent, customScrollingClassname, customContentClassname, disabledTask, disabledScenario, areAllTasksSend, isRecordingFinished, stopRecTitle, stopRecDescription, stopRecCTA, SusExplanationTitle, SusExplanationDescription, isSus, intervieweeName, stopRecording, isObserver, contentFunc, ...props }: ChatProps) => React.JSX.Element;
@@ -0,0 +1,46 @@
1
+ import React from 'react';
2
+ export interface Message {
3
+ _id: string;
4
+ type: string;
5
+ from: {
6
+ name: string;
7
+ identity: 'interviewer' | 'interviewee';
8
+ };
9
+ body: string;
10
+ createdAt: string;
11
+ }
12
+ export interface Task {
13
+ _id: string;
14
+ type: 'task' | 'scenario';
15
+ index?: number;
16
+ body: string;
17
+ }
18
+ interface PipModeratedProps {
19
+ tasks: Task[];
20
+ messages: Message[];
21
+ contentFunc: (key: string) => string;
22
+ buttonText: string;
23
+ buttonIcon?: JSX.Element;
24
+ disabled?: boolean;
25
+ url?: string;
26
+ }
27
+ declare global {
28
+ interface Document {
29
+ readonly pictureInPictureEnabled: boolean;
30
+ readonly pictureInPictureElement: Element | null;
31
+ }
32
+ interface DocumentPictureInPicture {
33
+ window: Window;
34
+ document: Document;
35
+ }
36
+ interface Window {
37
+ documentPictureInPicture: {
38
+ requestWindow: (options: {
39
+ width: number;
40
+ height: number;
41
+ }) => Promise<DocumentPictureInPicture>;
42
+ };
43
+ }
44
+ }
45
+ export declare const PipModerated: React.FC<PipModeratedProps>;
46
+ export {};
@@ -1,4 +1,5 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
+ import type { Message, Task } from './PipModerated';
2
3
  export interface ScenarioProps extends HTMLAttributes<HTMLDivElement> {
3
4
  title: string;
4
5
  scenarioName?: string;
@@ -9,6 +10,8 @@ export interface ScenarioProps extends HTMLAttributes<HTMLDivElement> {
9
10
  className?: string;
10
11
  disabled?: boolean;
11
12
  isObserver?: boolean;
12
- onClickScenario?: () => void;
13
+ tasks: Task[];
14
+ messages: Message[];
15
+ contentFunc: (key: string) => string;
13
16
  }
14
- export declare const Scenario: ({ title, scenarioName, description, buttonText, buttonIcon, url, className, disabled, isObserver, onClickScenario, ...props }: ScenarioProps) => React.JSX.Element;
17
+ export declare const Scenario: ({ title, scenarioName, description, buttonText, buttonIcon, url, className, disabled, isObserver, tasks, messages, contentFunc, ...props }: ScenarioProps) => React.JSX.Element;