@webex/cc-components 1.28.0-next.42 → 1.28.0-next.44
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/index.js +129 -129
- package/dist/types/components/StationLogin/E911Modal/e911-modal.constants.d.ts +11 -0
- package/dist/types/components/StationLogin/E911Modal/e911-modal.d.ts +5 -0
- package/dist/types/components/StationLogin/E911Modal/e911-modal.types.d.ts +5 -0
- package/dist/types/components/task/CallControl/CallControlCustom/consult-transfer-popover-hooks.d.ts +10 -22
- package/dist/types/components/task/task.types.d.ts +7 -6
- package/dist/types/index.d.ts +3 -1
- package/dist/wc.js +60 -60
- package/package.json +3 -3
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const E911ModalLabels: {
|
|
2
|
+
TITLE: string;
|
|
3
|
+
WARNING_TITLE: string;
|
|
4
|
+
WARNING_MESSAGE: string;
|
|
5
|
+
DIALING_TITLE: string;
|
|
6
|
+
DIALING_MESSAGE: string;
|
|
7
|
+
CHECKBOX_LABEL: string;
|
|
8
|
+
CANCEL: string;
|
|
9
|
+
SAVE_AND_CONTINUE: string;
|
|
10
|
+
SAVE_ERROR_MESSAGE: string;
|
|
11
|
+
};
|
package/dist/types/components/task/CallControl/CallControlCustom/consult-transfer-popover-hooks.d.ts
CHANGED
|
@@ -1,48 +1,36 @@
|
|
|
1
|
-
import { ILogger, FetchPaginatedList
|
|
1
|
+
import { ILogger, FetchPaginatedList } from '@webex/cc-store';
|
|
2
2
|
import { CategoryType, UseConsultTransferParams } from '../../task.types';
|
|
3
3
|
/**
|
|
4
|
-
* React hook to load
|
|
4
|
+
* React hook to load and manage paginated SDK data with optional search.
|
|
5
5
|
*
|
|
6
|
-
* @template T - The item type returned by the provided `fetchFunction
|
|
7
|
-
* @template U - The transformed item type stored internally and returned to consumers.
|
|
6
|
+
* @template T - The item type returned by the provided `fetchFunction`.
|
|
8
7
|
* @param fetchFunction - Fetcher that returns a paginated list of items of type T.
|
|
9
|
-
* @param transformFunction - Mapper that converts each T into U for UI consumption.
|
|
10
8
|
* @param categoryName - Human-readable name used for logging/telemetry.
|
|
11
9
|
* @param logger - Optional logger instance for diagnostics.
|
|
12
|
-
* @returns An object containing
|
|
10
|
+
* @returns An object containing SDK response data, pagination state and helpers.
|
|
13
11
|
*/
|
|
14
|
-
export declare const usePaginatedData: <T
|
|
15
|
-
data:
|
|
12
|
+
export declare const usePaginatedData: <T>(fetchFunction: FetchPaginatedList<T> | undefined, categoryName: string, logger?: ILogger) => {
|
|
13
|
+
data: T[];
|
|
16
14
|
page: number;
|
|
17
15
|
hasMore: boolean;
|
|
18
16
|
loading: boolean;
|
|
19
17
|
loadData: (currentPage?: any, search?: any, reset?: any) => Promise<void>;
|
|
20
18
|
reset: () => void;
|
|
21
19
|
};
|
|
22
|
-
export declare function useConsultTransferPopover({
|
|
20
|
+
export declare function useConsultTransferPopover({ availableCategories, getAddressBookEntries, getEntryPoints, getQueues, logger, }: UseConsultTransferParams): {
|
|
23
21
|
selectedCategory: CategoryType;
|
|
24
22
|
searchQuery: string;
|
|
25
23
|
loadMoreRef: import("react").MutableRefObject<HTMLDivElement>;
|
|
26
24
|
dialNumbers: AddressBookEntry[];
|
|
27
25
|
hasMoreDialNumbers: boolean;
|
|
28
26
|
loadingDialNumbers: boolean;
|
|
29
|
-
entryPoints:
|
|
30
|
-
id: string;
|
|
31
|
-
name: string;
|
|
32
|
-
}[];
|
|
27
|
+
entryPoints: EntryPointRecord[];
|
|
33
28
|
hasMoreEntryPoints: boolean;
|
|
34
29
|
loadingEntryPoints: boolean;
|
|
35
|
-
queuesData:
|
|
36
|
-
id: string;
|
|
37
|
-
name: string;
|
|
38
|
-
description?: string;
|
|
39
|
-
}[];
|
|
30
|
+
queuesData: ContactServiceQueue[];
|
|
40
31
|
hasMoreQueues: boolean;
|
|
41
32
|
loadingQueues: boolean;
|
|
42
33
|
handleSearchChange: (value: string) => void;
|
|
43
|
-
|
|
44
|
-
handleQueuesClick: () => void;
|
|
45
|
-
handleDialNumberClick: () => void;
|
|
46
|
-
handleEntryPointClick: () => void;
|
|
34
|
+
handleCategoryChange: (category: CategoryType) => void;
|
|
47
35
|
handleReload: () => void;
|
|
48
36
|
};
|
|
@@ -297,7 +297,7 @@ export interface ControlProps {
|
|
|
297
297
|
/**
|
|
298
298
|
* Function to load buddy agents
|
|
299
299
|
*/
|
|
300
|
-
loadBuddyAgents: () => Promise<void>;
|
|
300
|
+
loadBuddyAgents: (action?: 'Consult' | 'Transfer') => Promise<void>;
|
|
301
301
|
/**
|
|
302
302
|
* Function to transfer the call to a destination.
|
|
303
303
|
* @param destination - The destination to transfer the call to.
|
|
@@ -423,7 +423,7 @@ export interface ControlProps {
|
|
|
423
423
|
getAddressBookEntries?: FetchPaginatedList<AddressBookEntry>;
|
|
424
424
|
/** Fetch paginated entry points */
|
|
425
425
|
getEntryPoints?: FetchPaginatedList<EntryPointRecord>;
|
|
426
|
-
/** Fetch paginated queues
|
|
426
|
+
/** Fetch paginated consult/transfer queues from the SDK-owned policy */
|
|
427
427
|
getQueuesFetcher?: FetchPaginatedList<ContactServiceQueue>;
|
|
428
428
|
/**
|
|
429
429
|
* Options to configure consult/transfer popover behavior.
|
|
@@ -498,6 +498,7 @@ export type OutdialCallComponentProps = Pick<OutdialCallProps, 'logger' | 'start
|
|
|
498
498
|
export interface ConsultTransferListComponentProps {
|
|
499
499
|
title: string;
|
|
500
500
|
subtitle?: string;
|
|
501
|
+
presence?: 'active' | 'away';
|
|
501
502
|
buttonIcon: string;
|
|
502
503
|
onButtonPress: () => void;
|
|
503
504
|
className?: string;
|
|
@@ -522,7 +523,7 @@ export interface ConsultTransferPopoverComponentProps {
|
|
|
522
523
|
buttonIcon: string;
|
|
523
524
|
buddyAgents: BuddyDetails[];
|
|
524
525
|
loadingBuddyAgents: boolean;
|
|
525
|
-
loadBuddyAgents?: () => Promise<void>;
|
|
526
|
+
loadBuddyAgents?: (action?: 'Consult' | 'Transfer') => Promise<void>;
|
|
526
527
|
getAddressBookEntries?: FetchPaginatedList<AddressBookEntry>;
|
|
527
528
|
getEntryPoints?: FetchPaginatedList<EntryPointRecord>;
|
|
528
529
|
getQueues?: FetchPaginatedList<ContactServiceQueue>;
|
|
@@ -530,7 +531,8 @@ export interface ConsultTransferPopoverComponentProps {
|
|
|
530
531
|
onQueueSelect: (queueId: string, queueName: string, allowParticipantsToInteract: boolean) => void;
|
|
531
532
|
onEntryPointSelect: (entryPointId: string, entryPointName: string, allowParticipantsToInteract: boolean) => void;
|
|
532
533
|
onDialNumberSelect: (dialNumber: string, allowParticipantsToInteract: boolean) => void;
|
|
533
|
-
|
|
534
|
+
action: 'Consult' | 'Transfer';
|
|
535
|
+
availableDestinations: TaskUIControls['consultTransferDestinations']['consult'];
|
|
534
536
|
/** Options governing popover visibility/behavior */
|
|
535
537
|
consultTransferOptions?: ConsultTransferOptions;
|
|
536
538
|
isConferenceInProgress?: boolean;
|
|
@@ -714,8 +716,7 @@ export declare const CATEGORY_AGENTS: CategoryType;
|
|
|
714
716
|
* Parameters for `useConsultTransferPopover` hook.
|
|
715
717
|
*/
|
|
716
718
|
export type UseConsultTransferParams = {
|
|
717
|
-
|
|
718
|
-
showEntryPointTab: boolean;
|
|
719
|
+
availableCategories: CategoryType[];
|
|
719
720
|
getAddressBookEntries?: FetchPaginatedList<AddressBookEntry>;
|
|
720
721
|
getEntryPoints?: FetchPaginatedList<EntryPointRecord>;
|
|
721
722
|
getQueues?: FetchPaginatedList<ContactServiceQueue>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -9,9 +9,11 @@ import CampaignErrorDialogComponent from './components/task/CampaignErrorDialog/
|
|
|
9
9
|
import CampaignCountdownComponent from './components/task/CampaignCountdown/campaign-countdown';
|
|
10
10
|
import CampaignTaskComponent from './components/task/CampaignTask/campaign-task';
|
|
11
11
|
import RealTimeTranscriptComponent from './components/task/RealTimeTranscript/real-time-transcript';
|
|
12
|
+
import E911Modal from './components/StationLogin/E911Modal/e911-modal';
|
|
12
13
|
import AIAssistantComponent from './components/AIAssistant/ai-assistant';
|
|
13
|
-
export { UserStateComponent, StationLoginComponent, CallControlComponent, CallControlCADComponent, IncomingTaskComponent, TaskListComponent, OutdialCallComponent, CampaignErrorDialogComponent, CampaignCountdownComponent, CampaignTaskComponent, RealTimeTranscriptComponent, AIAssistantComponent, };
|
|
14
|
+
export { UserStateComponent, StationLoginComponent, CallControlComponent, CallControlCADComponent, IncomingTaskComponent, TaskListComponent, OutdialCallComponent, CampaignErrorDialogComponent, CampaignCountdownComponent, CampaignTaskComponent, RealTimeTranscriptComponent, E911Modal, AIAssistantComponent, };
|
|
14
15
|
export * from './components/StationLogin/constants';
|
|
16
|
+
export * from './components/StationLogin/E911Modal/e911-modal.types';
|
|
15
17
|
export * from './components/StationLogin/station-login.types';
|
|
16
18
|
export * from './components/UserState/user-state.types';
|
|
17
19
|
export * from './components/task/task.types';
|