@webex/cc-components 1.28.0-ccwidgets.71 → 1.28.0-ccwidgets.73

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.
@@ -134,10 +134,38 @@ export interface IStationLoginProps {
134
134
  * Called when save ends (true=success, false=error)
135
135
  */
136
136
  onSaveEnd?: (isComplete: boolean) => void;
137
+ /**
138
+ * Handler to set the selected device type
139
+ */
140
+ setSelectedDeviceType: (deviceType: string) => void;
141
+ /**
142
+ * The selected device type for login
143
+ */
144
+ selectedDeviceType: string;
145
+ /**
146
+ * The entered dial number value
147
+ */
148
+ dialNumberValue: string;
149
+ /**
150
+ * Handler to set the entered dial number value
151
+ */
152
+ setDialNumberValue: (value: string) => void;
153
+ /**
154
+ * Handler to set the selected team ID
155
+ */
156
+ setSelectedTeamId: (teamId: string) => void;
157
+ /**
158
+ * The selected team ID for login
159
+ */
160
+ selectedTeamId: string;
161
+ /**
162
+ * The selected option for login type (e.g., 'Extension', 'Agent DN', etc.)
163
+ */
164
+ selectedOption: string;
137
165
  }
138
166
  export interface LoginOptionsState {
139
167
  deviceType: string;
140
168
  dialNumber: string;
141
169
  teamId: string;
142
170
  }
143
- export type StationLoginComponentProps = Pick<IStationLoginProps, 'teams' | 'loginOptions' | 'login' | 'logout' | 'loginSuccess' | 'loginFailure' | 'logoutSuccess' | 'setDeviceType' | 'setDialNumber' | 'setTeam' | 'isAgentLoggedIn' | 'handleContinue' | 'deviceType' | 'dialNumber' | 'dialNumberRegex' | 'showMultipleLoginAlert' | 'onCCSignOut' | 'teamId' | 'setTeamId' | 'logger' | 'profileMode' | 'originalLoginOptions' | 'currentLoginOptions' | 'setCurrentLoginOptions' | 'isLoginOptionsChanged' | 'saveLoginOptions' | 'saveError'>;
171
+ export type StationLoginComponentProps = Pick<IStationLoginProps, 'teams' | 'loginOptions' | 'login' | 'logout' | 'loginSuccess' | 'loginFailure' | 'logoutSuccess' | 'setDeviceType' | 'setDialNumber' | 'setTeam' | 'isAgentLoggedIn' | 'handleContinue' | 'deviceType' | 'dialNumberRegex' | 'showMultipleLoginAlert' | 'onCCSignOut' | 'setTeamId' | 'logger' | 'profileMode' | 'originalLoginOptions' | 'currentLoginOptions' | 'setCurrentLoginOptions' | 'isLoginOptionsChanged' | 'saveLoginOptions' | 'saveError' | 'setSelectedDeviceType' | 'selectedDeviceType' | 'dialNumberValue' | 'setDialNumberValue' | 'setSelectedTeamId' | 'selectedTeamId' | 'selectedOption'>;
@@ -0,0 +1,35 @@
1
+ declare const handleModals: (modalRef: any, ccSignOutModalRef: any, saveConfirmDialogRef: any, showMultipleLoginAlert: any, showCCSignOutModal: any, showSaveConfirmDialog: any) => void;
2
+ /**
3
+ * Handler for the Contact Center modal continue button
4
+ * @param modalRef
5
+ * @param callback
6
+ *
7
+ * Handler for the Contact Center modal continue button
8
+ * Closes the dialog if it is currently open and calls the provided callback function
9
+ */
10
+ declare const continueClicked: (modalRef: any, callback: any) => void;
11
+ /**
12
+ * Handler for the Contact Center logout confirmation modal cancel button
13
+ *
14
+ * Closes the dialog if it is currently open
15
+ */
16
+ declare const ccCancelButtonClicked: (ccSignOutModalRef: React.RefObject<HTMLDialogElement>, setShowCCSignOutModal: (show: boolean) => void) => void;
17
+ declare const updateDialNumberLabel: (selectedOption: string, setDialNumberLabel: (label: string) => void, setDialNumberPlaceholder: (placeholder: string) => void) => void;
18
+ /**
19
+ * Runs validation tests on a string given as a Dial Number
20
+ * @param {string} input
21
+ * @returns {boolean} whether or not to show a validation error
22
+ */
23
+ declare const validateDialNumber: (input: string, dialNumberRegex: null | string, setDNErrorText: (error: string) => void) => boolean;
24
+ declare const createStationLoginRefs: () => {
25
+ multiSignInModalRef: import("react").MutableRefObject<HTMLDialogElement>;
26
+ ccSignOutModalRef: import("react").MutableRefObject<HTMLDialogElement>;
27
+ saveConfirmDialogRef: import("react").MutableRefObject<HTMLDialogElement>;
28
+ };
29
+ declare const saveConfirmCancelClicked: (saveConfirmDialogRef: any, setShowSaveConfirmDialog: any) => void;
30
+ declare const handleSaveConfirm: (saveConfirmDialogRef: any, setShowSaveConfirmDialog: any, saveLoginOptions: any) => void;
31
+ declare const handleLoginOptionChanged: (event: any, setDeviceType: any, setSelectedDeviceType: any, updateDialNumberLabel: any, setDialNumber: any, setDialNumberValue: any, setCurrentLoginOptions: any, originalLoginOptions: any, setDialNumberLabel: any, setDialNumberPlaceholder: any, setShowDNError: any, setSelectedTeamId: any, setTeamId: any, logger: any, selectedTeamId: any) => void;
32
+ declare const handleDNInputChanged: (event: any, setDialNumberValue: any, setDialNumber: any, setShowDNError: any, setDNErrorText: any, dialNumberRegex: any, setCurrentLoginOptions: any, selectedDeviceType: any, logger: any) => void;
33
+ declare const handleTeamSelectChanged: (event: any, setSelectedTeamId: any, setTeamId: any, setCurrentLoginOptions: any, setTeam: any, logger: any) => void;
34
+ declare const handleOnCCSignOut: (ccSignOutModalRef: React.RefObject<HTMLDialogElement>, onCCSignOut: any) => void;
35
+ export { handleModals, continueClicked, ccCancelButtonClicked, updateDialNumberLabel, validateDialNumber, createStationLoginRefs, saveConfirmCancelClicked, handleSaveConfirm, handleLoginOptionChanged, handleDNInputChanged, handleTeamSelectChanged, handleOnCCSignOut, };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import './call-control-cad.styles.scss';
3
- import type { CallControlComponentProps } from '../task.types';
3
+ import { CallControlComponentProps } from '../task.types';
4
4
  declare const CallControlCADComponent: React.FC<CallControlComponentProps>;
5
5
  export default CallControlCADComponent;
@@ -6,6 +6,7 @@ import IncomingTaskComponent from './components/task/IncomingTask/incoming-task'
6
6
  import TaskListComponent from './components/task/TaskList/task-list';
7
7
  import OutdialCallComponent from './components/task/OutdialCall/outdial-call';
8
8
  export { UserStateComponent, StationLoginComponent, CallControlComponent, CallControlCADComponent, IncomingTaskComponent, TaskListComponent, OutdialCallComponent, };
9
+ export * from './components/StationLogin/constants';
9
10
  export * from './components/StationLogin/station-login.types';
10
11
  export * from './components/UserState/user-state.types';
11
12
  export * from './components/task/task.types';