@webex/cc-station-login 1.28.0-ccwidgets.8 → 1.28.0-ccwidgets.80
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,11 @@
|
|
|
1
|
+
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* use-sync-external-store-shim.production.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
package/dist/types/helper.d.ts
CHANGED
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
import { UseStationLoginProps } from './station-login/station-login.types';
|
|
2
2
|
export declare const useStationLogin: (props: UseStationLoginProps) => {
|
|
3
3
|
name: string;
|
|
4
|
-
setDeviceType: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
5
|
-
setDialNumber: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
6
4
|
setTeam: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
7
5
|
login: () => void;
|
|
8
6
|
logout: () => void;
|
|
9
7
|
loginSuccess: StationLoginSuccess;
|
|
10
8
|
loginFailure: Error;
|
|
11
9
|
logoutSuccess: StationLogoutSuccess;
|
|
10
|
+
handleContinue: () => Promise<void>;
|
|
11
|
+
originalLoginOptions: LoginOptionsState;
|
|
12
|
+
currentLoginOptions: LoginOptionsState;
|
|
13
|
+
setCurrentLoginOptions: import("react").Dispatch<any>;
|
|
14
|
+
isLoginOptionsChanged: boolean;
|
|
15
|
+
saveLoginOptions: () => void;
|
|
16
|
+
saveError: string;
|
|
17
|
+
setSelectedDeviceType: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
18
|
+
selectedDeviceType: string;
|
|
19
|
+
dialNumberValue: string;
|
|
20
|
+
setDialNumberValue: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
21
|
+
setSelectedTeamId: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
22
|
+
selectedTeamId: string;
|
|
23
|
+
onCCSignOut: () => Promise<void>;
|
|
12
24
|
};
|
|
@@ -1,65 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
export interface IStationLoginProps {
|
|
6
|
-
/**
|
|
7
|
-
* The name of the station.
|
|
8
|
-
*/
|
|
9
|
-
name: string;
|
|
10
|
-
/**
|
|
11
|
-
* Webex instance.
|
|
12
|
-
*/
|
|
13
|
-
cc: IContactCenter;
|
|
14
|
-
/**
|
|
15
|
-
* Array of the team IDs that agent belongs to
|
|
16
|
-
*/
|
|
17
|
-
teams: Team[];
|
|
18
|
-
/**
|
|
19
|
-
* Station login options available for the agent
|
|
20
|
-
*/
|
|
21
|
-
loginOptions: string[];
|
|
22
|
-
/**
|
|
23
|
-
* Handler to initiate the agent login
|
|
24
|
-
*/
|
|
25
|
-
login: () => void;
|
|
26
|
-
/**
|
|
27
|
-
* Handler for agent logout
|
|
28
|
-
*/
|
|
29
|
-
logout: () => void;
|
|
30
|
-
/**
|
|
31
|
-
* Response data received on agent login success
|
|
32
|
-
*/
|
|
33
|
-
loginSuccess?: StationLoginSuccess;
|
|
34
|
-
/**
|
|
35
|
-
* Error received on agent login failure
|
|
36
|
-
*/
|
|
37
|
-
loginFailure?: Error;
|
|
38
|
-
/**
|
|
39
|
-
* Response data received on agent login success
|
|
40
|
-
*/
|
|
41
|
-
logoutSuccess?: StationLogoutSuccess;
|
|
42
|
-
/**
|
|
43
|
-
* Callback function to be invoked once the agent login is successful
|
|
44
|
-
*/
|
|
45
|
-
onLogin?: () => void;
|
|
46
|
-
/**
|
|
47
|
-
* Callback function to be invoked once the agent login is successful
|
|
48
|
-
*/
|
|
49
|
-
onLogout?: () => void;
|
|
50
|
-
/**
|
|
51
|
-
* Handler to set device type
|
|
52
|
-
*/
|
|
53
|
-
setDeviceType: (deviceType: string) => void;
|
|
54
|
-
/**
|
|
55
|
-
* Handler to set the entered dial number
|
|
56
|
-
*/
|
|
57
|
-
setDialNumber: (dn: string) => void;
|
|
58
|
-
/**
|
|
59
|
-
* Handler to set the selected agent team
|
|
60
|
-
*/
|
|
61
|
-
setTeam: (team: string) => void;
|
|
62
|
-
}
|
|
63
|
-
export type StationLoginPresentationalProps = Pick<IStationLoginProps, 'name' | 'teams' | 'loginOptions' | 'login' | 'logout' | 'loginSuccess' | 'loginFailure' | 'logoutSuccess' | 'setDeviceType' | 'setDialNumber' | 'setTeam'>;
|
|
64
|
-
export type UseStationLoginProps = Pick<IStationLoginProps, 'cc' | 'onLogin' | 'onLogout'>;
|
|
65
|
-
export type StationLoginProps = Pick<IStationLoginProps, 'onLogin' | 'onLogout'>;
|
|
1
|
+
import { IStationLoginProps } from '@webex/cc-components';
|
|
2
|
+
export type UseStationLoginProps = Pick<IStationLoginProps, 'cc' | 'onLogin' | 'onLogout' | 'logger' | 'deviceType' | 'dialNumber' | 'onSaveStart' | 'onSaveEnd' | 'teamId' | 'isAgentLoggedIn' | 'onCCSignOut' | 'doStationLogout'>;
|
|
3
|
+
export type StationLoginProps = Pick<IStationLoginProps, 'onLogin' | 'onLogout' | 'onCCSignOut' | 'profileMode' | 'onSaveStart' | 'onSaveEnd' | 'teamId' | 'doStationLogout'>;
|
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.80",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -16,10 +16,12 @@
|
|
|
16
16
|
"build": "yarn run -T tsc",
|
|
17
17
|
"build:src": "yarn run clean:dist && webpack",
|
|
18
18
|
"build:watch": "webpack --watch",
|
|
19
|
-
"test:unit": "jest"
|
|
19
|
+
"test:unit": "jest --coverage",
|
|
20
|
+
"test:styles": "eslint"
|
|
20
21
|
},
|
|
21
22
|
"dependencies": {
|
|
22
|
-
"@webex/cc-
|
|
23
|
+
"@webex/cc-components": "1.28.0-ccwidgets.80",
|
|
24
|
+
"@webex/cc-store": "1.28.0-ccwidgets.80",
|
|
23
25
|
"mobx-react-lite": "^4.1.0"
|
|
24
26
|
},
|
|
25
27
|
"devDependencies": {
|
|
@@ -27,36 +29,38 @@
|
|
|
27
29
|
"@babel/preset-env": "7.25.4",
|
|
28
30
|
"@babel/preset-react": "7.24.7",
|
|
29
31
|
"@babel/preset-typescript": "7.25.9",
|
|
32
|
+
"@eslint/js": "^9.20.0",
|
|
30
33
|
"@testing-library/dom": "10.4.0",
|
|
31
34
|
"@testing-library/jest-dom": "6.6.2",
|
|
32
35
|
"@testing-library/react": "16.0.1",
|
|
33
36
|
"@types/jest": "29.5.14",
|
|
37
|
+
"@types/node": "^22.13.13",
|
|
34
38
|
"@types/react-test-renderer": "18",
|
|
35
39
|
"babel-jest": "29.7.0",
|
|
36
40
|
"babel-loader": "9.2.1",
|
|
41
|
+
"eslint": "^9.20.1",
|
|
42
|
+
"eslint-config-prettier": "^10.0.1",
|
|
43
|
+
"eslint-config-standard": "^17.1.0",
|
|
44
|
+
"eslint-plugin-import": "^2.25.2",
|
|
45
|
+
"eslint-plugin-n": "^15.0.0 || ^16.0.0 ",
|
|
46
|
+
"eslint-plugin-prettier": "^5.2.3",
|
|
47
|
+
"eslint-plugin-promise": "^6.0.0",
|
|
48
|
+
"eslint-plugin-react": "^7.37.4",
|
|
37
49
|
"file-loader": "6.2.0",
|
|
50
|
+
"globals": "^16.0.0",
|
|
38
51
|
"jest": "29.7.0",
|
|
39
52
|
"jest-environment-jsdom": "29.7.0",
|
|
53
|
+
"prettier": "^3.5.1",
|
|
40
54
|
"ts-loader": "9.5.1",
|
|
41
55
|
"typescript": "5.6.3",
|
|
56
|
+
"typescript-eslint": "^8.24.1",
|
|
42
57
|
"webpack": "5.94.0",
|
|
43
58
|
"webpack-cli": "5.1.4",
|
|
44
59
|
"webpack-merge": "6.0.1"
|
|
45
60
|
},
|
|
46
61
|
"peerDependencies": {
|
|
62
|
+
"@momentum-ui/react-collaboration": ">=26.201.9",
|
|
47
63
|
"react": ">=18.3.1",
|
|
48
64
|
"react-dom": ">=18.3.1"
|
|
49
|
-
}
|
|
50
|
-
"jest": {
|
|
51
|
-
"testEnvironment": "jsdom",
|
|
52
|
-
"testMatch": [
|
|
53
|
-
"**/tests/**/*.ts",
|
|
54
|
-
"**/tests/**/*.tsx"
|
|
55
|
-
],
|
|
56
|
-
"verbose": true,
|
|
57
|
-
"moduleNameMapper": {
|
|
58
|
-
"^.+\\.(css|less|scss)$": "babel-jest"
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
"stableVersion": "1.28.0-ccwidgets.7"
|
|
65
|
+
}
|
|
62
66
|
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { StationLoginPresentationalProps } from './station-login.types';
|
|
3
|
-
import './station-login.style.scss';
|
|
4
|
-
declare const StationLoginPresentational: React.FunctionComponent<StationLoginPresentationalProps>;
|
|
5
|
-
export default StationLoginPresentational;
|