@webex/cc-task 1.28.0-ccwidgets.29 → 1.28.0-ccwidgets.31

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,3 +1,4 @@
1
1
  import React from 'react';
2
- declare const TaskList: React.FunctionComponent<{}>;
2
+ import { TaskListProps } from '../task.types';
3
+ declare const TaskList: React.FunctionComponent<TaskListProps>;
3
4
  export { TaskList };
@@ -19,4 +19,6 @@ export declare const useCallControl: (props: useCallControlProps) => {
19
19
  toggleHold: (hold: boolean) => void;
20
20
  toggleRecording: (pause: boolean) => void;
21
21
  wrapupCall: (wrapUpReason: string, auxCodeId: string) => void;
22
+ isHeld: boolean;
23
+ setIsHeld: import("react").Dispatch<import("react").SetStateAction<boolean>>;
22
24
  };
@@ -139,7 +139,16 @@ export interface ControlProps {
139
139
  * Selected login option
140
140
  */
141
141
  deviceType: string;
142
+ /**
143
+ * Flag to determine if the task is held
144
+ */
145
+ isHeld: boolean;
146
+ /**
147
+ * Function to set the held status of the task.
148
+ * @param isHeld - Boolean indicating whether the task is held.
149
+ */
150
+ setIsHeld: (isHeld: boolean) => void;
142
151
  }
143
152
  export type CallControlProps = Pick<ControlProps, 'onHoldResume' | 'onEnd' | 'onWrapUp'>;
144
- export type CallControlPresentationalProps = Pick<ControlProps, 'currentTask' | 'audioRef' | 'wrapupCodes' | 'wrapupRequired' | 'toggleHold' | 'toggleRecording' | 'endCall' | 'wrapupCall'>;
153
+ export type CallControlPresentationalProps = Pick<ControlProps, 'currentTask' | 'audioRef' | 'wrapupCodes' | 'wrapupRequired' | 'toggleHold' | 'toggleRecording' | 'endCall' | 'wrapupCall' | 'isHeld' | 'setIsHeld'>;
145
154
  export type useCallControlProps = Pick<ControlProps, 'currentTask' | 'onHoldResume' | 'onEnd' | 'onWrapUp' | 'logger' | 'deviceType'>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webex/cc-task",
3
3
  "description": "Webex Contact Center Widgets: Task",
4
- "version": "1.28.0-ccwidgets.29",
4
+ "version": "1.28.0-ccwidgets.31",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -20,7 +20,7 @@
20
20
  "test:styles": "eslint"
21
21
  },
22
22
  "dependencies": {
23
- "@webex/cc-store": "1.28.0-ccwidgets.29",
23
+ "@webex/cc-store": "1.28.0-ccwidgets.31",
24
24
  "mobx-react-lite": "^4.1.0"
25
25
  },
26
26
  "devDependencies": {