odaptos_design_system 2.0.238 → 2.0.239

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.
@@ -1,17 +1,11 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
- import type { Message, Task } from './PipModerated';
3
2
  export interface ScenarioProps extends HTMLAttributes<HTMLDivElement> {
4
- title: string;
5
- scenarioName?: string;
6
- description?: string;
7
- buttonText?: string;
8
- buttonIcon?: JSX.Element;
9
- url: string;
10
- className?: string;
11
- disabled?: boolean;
12
- isObserver?: boolean;
13
- tasks: Task[];
14
- messages: Message[];
3
+ scenario: any;
4
+ isInterviewer: boolean;
15
5
  contentFunc: (key: string) => string;
6
+ isObserver: boolean;
7
+ sendScenario: (scenario: any) => void;
8
+ isAlreadySent: boolean;
9
+ isThereTaskSent?: boolean;
16
10
  }
17
- export declare const Scenario: ({ title, scenarioName, description, buttonText, buttonIcon, url, className, disabled, isObserver, tasks, messages, contentFunc, ...props }: ScenarioProps) => React.JSX.Element;
11
+ export declare const Scenario: ({ scenario, contentFunc, isInterviewer, isObserver, sendScenario, isAlreadySent, isThereTaskSent, }: ScenarioProps) => React.JSX.Element;
@@ -1,40 +1,11 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
- interface TaskItem {
3
- _id: string;
4
- description: string;
5
- url: string;
6
- name: string;
7
- notes: string;
8
- type: 'task' | 'question';
9
- timedTask: boolean;
10
- totalSeconds: number;
11
- successSeconds: number;
12
- failureSeconds: number;
13
- }
14
2
  export interface TaskProps extends HTMLAttributes<HTMLDivElement> {
15
- className?: string;
16
- taskNumber: string;
17
- taskTitle: string;
18
- taskDescription?: string;
19
- taskTitleTooltip: string;
20
- noteText?: string;
21
- actionText?: string;
22
- url?: string;
23
- notes?: string;
24
- state: 'idle' | 'active' | 'disabled' | 'done';
25
- isDone: boolean;
26
- task: TaskItem;
27
- sendTask: (task: TaskItem) => void;
28
- iconAction1?: JSX.Element;
29
- iconAction2?: JSX.Element;
30
- iconAction3?: JSX.Element;
31
- action1?: () => void;
32
- action2?: () => void;
33
- action3?: () => void;
34
- mainActionText?: string;
35
- mainAction?: () => void;
36
- isInterviewer?: boolean;
37
- isObserver?: boolean;
3
+ task: any;
4
+ state: 'active' | 'done';
5
+ isInterviewer: boolean;
6
+ contentFunc: (key: string) => string;
7
+ isObserver: boolean;
8
+ sendTask: (scenario: any) => void;
9
+ isNonModerated: boolean;
38
10
  }
39
- export declare const Task: ({ taskNumber, taskTitle, taskDescription, taskTitleTooltip, notes, noteText, actionText, url, className, task, sendTask, state, isDone, iconAction1, iconAction2, iconAction3, action1, action2, action3, mainActionText, mainAction, isInterviewer, isObserver, ...props }: TaskProps) => React.JSX.Element;
40
- export {};
11
+ export declare const Task: ({ task, state, contentFunc, isInterviewer, isObserver, sendTask, isNonModerated, }: TaskProps) => React.JSX.Element;
package/dist/index.d.ts CHANGED
@@ -33,7 +33,6 @@ export * from './Molecules/Accordion/Accordion';
33
33
  export * from './Molecules/ChatMessage/ChatMessage';
34
34
  export * from './Molecules/FeaturesTable/FeaturesTable';
35
35
  export * from './Molecules/FileUpload';
36
- export * from './Molecules/Interviews/Chat';
37
36
  export * from './Molecules/Interviews/ChatInput';
38
37
  export * from './Molecules/Interviews/CircledIconButton';
39
38
  export * from './Molecules/Interviews/ControlsBar';