@webex/cc-task 1.28.0-next.9 → 1.28.0-rtt.2

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.
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { RealtimeTranscriptProps } from '../task.types';
3
+ declare const RealtimeTranscript: React.FunctionComponent<RealtimeTranscriptProps>;
4
+ export { RealtimeTranscript };
@@ -1,5 +1,5 @@
1
1
  import { AddressBookEntriesResponse, AddressBookEntrySearchParams, ITask } from '@webex/contact-center';
2
- import { useCallControlProps, UseTaskListProps, UseTaskProps, useOutdialCallProps, TargetType } from './task.types';
2
+ import { useCallControlProps, UseTaskListProps, UseTaskProps, UseRealtimeTranscriptInternalProps, RealtimeTranscriptEntry, useOutdialCallProps, TargetType } from './task.types';
3
3
  import { BuddyDetails, DestinationType, PaginatedListParams, Participant } from '@webex/cc-store';
4
4
  import { OutdialAniEntriesResponse } from '@webex/contact-center/dist/types/services/config/types';
5
5
  export declare const useTaskList: (props: UseTaskListProps) => {
@@ -9,6 +9,13 @@ export declare const useTaskList: (props: UseTaskListProps) => {
9
9
  onTaskSelect: (task: ITask) => void;
10
10
  isBrowser: boolean;
11
11
  };
12
+ export declare const useRealtimeTranscript: (props: UseRealtimeTranscriptInternalProps) => {
13
+ ivrTranscript: string;
14
+ liveTranscriptEntries: RealtimeTranscriptEntry[];
15
+ activeTab: import("@webex/cc-components/dist/types/components/task/task.types").TranscriptTab;
16
+ onTabChange: (tab: import("@webex/cc-components/dist/types/components/task/task.types").TranscriptTab) => void;
17
+ className: string;
18
+ };
12
19
  export declare const useIncomingTask: (props: UseTaskProps) => {
13
20
  incomingTask: ITask;
14
21
  accept: () => void;
@@ -3,4 +3,5 @@ import { TaskList } from './TaskList';
3
3
  import { CallControl } from './CallControl';
4
4
  import { OutdialCall } from './OutdialCall';
5
5
  import { CallControlCAD } from './CallControlCAD';
6
- export { IncomingTask, TaskList, CallControl, OutdialCall, CallControlCAD };
6
+ import { RealtimeTranscript } from './ReatimeTranscript';
7
+ export { IncomingTask, TaskList, CallControl, OutdialCall, CallControlCAD, RealtimeTranscript };
@@ -1,11 +1,19 @@
1
- import { TaskProps, ControlProps, OutdialCallProps } from '@webex/cc-components';
1
+ import { TaskProps, ControlProps, OutdialCallProps, RealtimeTranscriptComponentProps, RealtimeTranscriptEntry, TranscriptTab } from '@webex/cc-components';
2
+ import { RealtimeTranscriptLine } from '@webex/cc-store';
2
3
  export type UseTaskProps = Pick<TaskProps, 'incomingTask' | 'deviceType' | 'logger'> & Partial<Pick<TaskProps, 'onAccepted' | 'onRejected'>>;
3
4
  export type UseTaskListProps = Pick<TaskProps, 'cc' | 'taskList' | 'deviceType' | 'logger'> & Partial<Pick<TaskProps, 'onTaskAccepted' | 'onTaskDeclined' | 'onTaskSelected'>>;
4
5
  export type IncomingTaskProps = Pick<TaskProps, 'incomingTask'> & Partial<Pick<TaskProps, 'onAccepted' | 'onRejected'>>;
5
6
  export type TaskListProps = Partial<Pick<TaskProps, 'onTaskAccepted' | 'onTaskDeclined' | 'onTaskSelected'>>;
7
+ export type RealtimeTranscriptProps = Pick<RealtimeTranscriptComponentProps, 'ivrTranscript' | 'liveTranscriptEntries'> & Partial<Pick<RealtimeTranscriptComponentProps, 'activeTab' | 'onTabChange' | 'className'>>;
8
+ export type UseRealtimeTranscriptProps = RealtimeTranscriptProps;
9
+ export type UseRealtimeTranscriptInternalProps = UseRealtimeTranscriptProps & {
10
+ currentTaskId?: string;
11
+ realtimeTranscriptLines?: RealtimeTranscriptLine[];
12
+ };
6
13
  export type CallControlProps = Partial<Pick<ControlProps, 'onHoldResume' | 'onEnd' | 'onWrapUp' | 'onRecordingToggle' | 'callControlClassName' | 'callControlConsultClassName' | 'onToggleMute' | 'conferenceEnabled' | 'consultTransferOptions'>>;
7
14
  export type useCallControlProps = Pick<ControlProps, 'currentTask' | 'logger' | 'deviceType' | 'featureFlags' | 'isMuted' | 'conferenceEnabled' | 'agentId'> & Partial<Pick<ControlProps, 'onHoldResume' | 'onEnd' | 'onWrapUp' | 'onRecordingToggle' | 'onToggleMute'>>;
8
15
  export type useOutdialCallProps = Pick<OutdialCallProps, 'cc' | 'logger'>;
16
+ export type { RealtimeTranscriptEntry, TranscriptTab };
9
17
  export interface OutdialProps {
10
18
  /**
11
19
  * Flag to determine if the address book is enabled.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@webex/cc-task",
3
3
  "description": "Webex Contact Center Widgets: Task",
4
4
  "license": "Cisco's General Terms (https://www.cisco.com/site/us/en/about/legal/contract-experience/index.html)",
5
- "version": "1.28.0-next.9",
5
+ "version": "1.28.0-rtt.2",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/types/index.d.ts",
8
8
  "publishConfig": {
@@ -23,8 +23,8 @@
23
23
  "deploy:npm": "yarn npm publish"
24
24
  },
25
25
  "dependencies": {
26
- "@webex/cc-components": "1.28.0-next.9",
27
- "@webex/cc-store": "1.28.0-next.3",
26
+ "@webex/cc-components": "1.28.0-rtt.2",
27
+ "@webex/cc-store": "1.28.0-rtt.2",
28
28
  "mobx-react-lite": "^4.1.0",
29
29
  "react-error-boundary": "^6.0.0"
30
30
  },
@@ -39,7 +39,7 @@
39
39
  "@testing-library/react": "16.0.1",
40
40
  "@types/jest": "29.5.14",
41
41
  "@types/react-test-renderer": "18",
42
- "@webex/test-fixtures": "0.0.0-next.0",
42
+ "@webex/test-fixtures": "0.0.0-rtt.1",
43
43
  "babel-jest": "29.7.0",
44
44
  "babel-loader": "9.2.1",
45
45
  "eslint": "^9.20.1",