@webex/cc-store 1.28.0-ccwidgets.112 → 1.28.0-ccwidgets.114

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.
@@ -89,6 +89,7 @@ interface IStore {
89
89
  }
90
90
  interface IStoreWrapper extends IStore {
91
91
  store: IStore;
92
+ onErrorCallback?: (widgetName: string, error: Error) => void;
92
93
  setCurrentTask(task: ITask): void;
93
94
  refreshTaskList(): void;
94
95
  setDeviceType(option: string): void;
@@ -108,6 +109,7 @@ interface IStoreWrapper extends IStore {
108
109
  setAgentProfile(profile: Profile): void;
109
110
  setTeamId(id: string): void;
110
111
  setIsMuted(value: boolean): void;
112
+ setOnError(callback: (widgetName: string, error: Error) => void): void;
111
113
  }
112
114
  interface IWrapupCode {
113
115
  id: string;
@@ -7,6 +7,7 @@ declare class StoreWrapper implements IStoreWrapper {
7
7
  onTaskRejected?: (task: ITask, reason: string) => void;
8
8
  onTaskAssigned?: (task: ITask) => void;
9
9
  onTaskSelected?: (task: ITask, isClicked: boolean) => void;
10
+ onErrorCallback?: (widgetName: string, error: Error) => void;
10
11
  constructor();
11
12
  get featureFlags(): {
12
13
  [key: string]: boolean;
@@ -53,6 +54,7 @@ declare class StoreWrapper implements IStoreWrapper {
53
54
  setLastIdleCodeChangeTimestamp: (timestamp: number) => void;
54
55
  setIsAgentLoggedIn: (value: boolean) => void;
55
56
  setCurrentTask: (task: ITask | null, isClicked?: boolean) => void;
57
+ setOnError: (callback: (widgetName: string, error: Error) => void) => void;
56
58
  refreshTaskList: () => void;
57
59
  setWrapupCodes: (wrapupCodes: IWrapupCode[]) => void;
58
60
  setConsultCompleted: (value: boolean) => void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webex/cc-store",
3
3
  "description": "Webex Contact Center Widgets: Widgets Store",
4
- "version": "1.28.0-ccwidgets.112",
4
+ "version": "1.28.0-ccwidgets.114",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/types/index.d.ts",
7
7
  "license": "MIT",
@@ -22,7 +22,7 @@
22
22
  "test:styles": "eslint"
23
23
  },
24
24
  "dependencies": {
25
- "@webex/contact-center": "3.8.1-next.41",
25
+ "@webex/contact-center": "3.9.0-next.4",
26
26
  "mobx": "6.13.5",
27
27
  "typescript": "5.6.3"
28
28
  },