@webex/cc-components 1.28.0-ccwidgets.69 → 1.28.0-ccwidgets.71
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.
|
@@ -30,16 +30,27 @@ export interface TaskProps {
|
|
|
30
30
|
}) => void;
|
|
31
31
|
/**
|
|
32
32
|
* Handler for task accepted in TaskList
|
|
33
|
+
* @param task - The accepted task
|
|
33
34
|
*/
|
|
34
35
|
onTaskAccepted?: (task: ITask) => void;
|
|
35
36
|
/**
|
|
36
37
|
* Handler for task declined in TaskList
|
|
38
|
+
* @param task - The declined task
|
|
37
39
|
*/
|
|
38
40
|
onTaskDeclined?: (task: ITask) => void;
|
|
39
41
|
/**
|
|
40
42
|
* Handler for task selected in TaskList
|
|
41
|
-
|
|
42
|
-
|
|
43
|
+
* @param task - The selected task
|
|
44
|
+
* @param isClicked - Indicates if the task was clicked
|
|
45
|
+
* This is used to differentiate between selection via click and programmatic selection.
|
|
46
|
+
* This is useful for handling selection logic differently based on user interaction.
|
|
47
|
+
* For example, if the task is selected programmatically, you might not want to trigger
|
|
48
|
+
* certain UI updates that are only relevant for user-initiated selections.
|
|
49
|
+
*/
|
|
50
|
+
onTaskSelected?: ({ task, isClicked }: {
|
|
51
|
+
task: ITask;
|
|
52
|
+
isClicked: boolean;
|
|
53
|
+
}) => void;
|
|
43
54
|
/**
|
|
44
55
|
* accept incoming task action
|
|
45
56
|
*/
|
|
@@ -97,14 +108,37 @@ export interface ControlProps {
|
|
|
97
108
|
currentTask: ITask;
|
|
98
109
|
/**
|
|
99
110
|
* Function to handle hold/resume actions.
|
|
111
|
+
* @param isHeld - Boolean indicating whether the task is held.
|
|
112
|
+
* @param task - The current task being handled.
|
|
113
|
+
* @returns void
|
|
100
114
|
*/
|
|
101
|
-
onHoldResume?: (
|
|
115
|
+
onHoldResume?: ({ isHeld, task }: {
|
|
116
|
+
isHeld: boolean;
|
|
117
|
+
task: ITask;
|
|
118
|
+
}) => void;
|
|
119
|
+
/**
|
|
120
|
+
* Function to handle recording toggle actions.
|
|
121
|
+
* @param isRecording - Boolean indicating whether the task is being recorded.
|
|
122
|
+
* @param task - The current task being handled.
|
|
123
|
+
* @return void
|
|
124
|
+
*/
|
|
125
|
+
onRecordingToggle?: ({ isRecording, task }: {
|
|
126
|
+
isRecording: boolean;
|
|
127
|
+
task: ITask;
|
|
128
|
+
}) => void;
|
|
102
129
|
/**
|
|
103
130
|
* Function to handle ending the task.
|
|
131
|
+
* @param task - The current task being handled.
|
|
132
|
+
* @returns void
|
|
104
133
|
*/
|
|
105
|
-
onEnd?: (
|
|
134
|
+
onEnd?: ({ task }: {
|
|
135
|
+
task: ITask;
|
|
136
|
+
}) => void;
|
|
106
137
|
/**
|
|
107
138
|
* Function to handle wrapping up the task.
|
|
139
|
+
* @param task - The current task being handled.
|
|
140
|
+
* @param wrapUpReason - The reason for wrapping up the task.
|
|
141
|
+
* @returns void
|
|
108
142
|
*/
|
|
109
143
|
onWrapUp?: ({ task, wrapUpReason }: {
|
|
110
144
|
task: ITask;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webex/cc-components",
|
|
3
3
|
"description": "Webex Contact Center UI Components Library for your custom contact center solutions",
|
|
4
|
-
"version": "1.28.0-ccwidgets.
|
|
4
|
+
"version": "1.28.0-ccwidgets.71",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@r2wc/react-to-web-component": "2.0.3",
|
|
28
|
-
"@webex/cc-store": "1.28.0-ccwidgets.
|
|
28
|
+
"@webex/cc-store": "1.28.0-ccwidgets.71"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@babel/core": "7.25.2",
|