@webex/cc-station-login 1.28.0-ccwidgets.2 → 1.28.0-ccwidgets.3
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.
package/dist/helper.js
CHANGED
|
@@ -16,7 +16,9 @@ const useStationLogin = (props) => {
|
|
|
16
16
|
cc.stationLogin({ teamId: team, loginOption: deviceType, dialNumber: dialNumber })
|
|
17
17
|
.then((res) => {
|
|
18
18
|
setLoginSuccess(res);
|
|
19
|
-
loginCb
|
|
19
|
+
if (loginCb) {
|
|
20
|
+
loginCb();
|
|
21
|
+
}
|
|
20
22
|
}).catch((error) => {
|
|
21
23
|
console.error(error);
|
|
22
24
|
setLoginFailure(error);
|
|
@@ -26,7 +28,9 @@ const useStationLogin = (props) => {
|
|
|
26
28
|
cc.stationLogout({ logoutReason: 'User requested logout' })
|
|
27
29
|
.then((res) => {
|
|
28
30
|
setLogoutSuccess(res);
|
|
29
|
-
logoutCb
|
|
31
|
+
if (logoutCb) {
|
|
32
|
+
logoutCb();
|
|
33
|
+
}
|
|
30
34
|
}).catch((error) => {
|
|
31
35
|
console.error(error);
|
|
32
36
|
});
|
package/dist/helper.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helper.js","sourceRoot":"","sources":["../src/helper.ts"],"names":[],"mappings":";;;AAAA,iCAA+B;AAIxB,MAAM,eAAe,GAAG,CAAC,KAA2B,EAAE,EAAE;IAC7D,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;IAC9B,MAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;IAChC,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAC,EAAE,CAAC,CAAC;IACjD,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAC,EAAE,CAAC,CAAC;IACjD,MA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|
42
42
|
/**
|
|
43
43
|
* Callback function to be invoked once the agent login is successful
|
|
44
44
|
*/
|
|
45
|
-
onLogin
|
|
45
|
+
onLogin?: () => void;
|
|
46
46
|
/**
|
|
47
47
|
* Callback function to be invoked once the agent login is successful
|
|
48
48
|
*/
|
|
49
|
-
onLogout
|
|
49
|
+
onLogout?: () => void;
|
|
50
50
|
/**
|
|
51
51
|
* Handler to set device type
|
|
52
52
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webex/cc-station-login",
|
|
3
3
|
"description": "Webex Contact Center Widgets: Station Login",
|
|
4
|
-
"version": "1.28.0-ccwidgets.
|
|
4
|
+
"version": "1.28.0-ccwidgets.3",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@r2wc/react-to-web-component": "2.0.3",
|
|
21
|
-
"@webex/cc-store": "1.28.0-ccwidgets.
|
|
21
|
+
"@webex/cc-store": "1.28.0-ccwidgets.3",
|
|
22
22
|
"mobx-react": "9.1.1",
|
|
23
23
|
"react": "18.3.1",
|
|
24
24
|
"react-dom": "18.3.1"
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"**/tests/**/*.tsx"
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
|
-
"stableVersion": "1.28.0-ccwidgets.
|
|
54
|
+
"stableVersion": "1.28.0-ccwidgets.2"
|
|
55
55
|
}
|