@webex/cc-components 1.28.0-next.44 → 1.28.0-next.45

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,10 @@
1
+ import { ConferenceParticipantDropTarget } from '@webex/cc-store';
2
+ export type ParticipantRosterSectionProps = {
3
+ heading: 'Customer' | 'Participants';
4
+ headingId: string;
5
+ targets: ConferenceParticipantDropTarget[];
6
+ pendingParticipantDropId: string | null;
7
+ participantDropIsPending: boolean;
8
+ rosterDropDisabled: boolean;
9
+ onParticipantDropRequest: (target: ConferenceParticipantDropTarget) => void;
10
+ };
@@ -1,4 +1,4 @@
1
- import { ILogger, ITask, IContactCenter, IWrapupCode, BuddyDetails, DestinationType, ContactServiceQueue, AddressBookEntry, EntryPointRecord, FetchPaginatedList, Participant, AddressBookEntrySearchParams, AddressBookEntriesResponse, TaskUIControls } from '@webex/cc-store';
1
+ import { ILogger, ITask, IContactCenter, IWrapupCode, BuddyDetails, DestinationType, ContactServiceQueue, AddressBookEntry, EntryPointRecord, FetchPaginatedList, Participant, ConferenceParticipantDropRoster, ConferenceParticipantDropTarget, AddressBookEntrySearchParams, AddressBookEntriesResponse, TaskUIControls } from '@webex/cc-store';
2
2
  import { CampaignErrorType } from './CampaignErrorDialog/campaign-error-dialog.types';
3
3
  type Enum<T extends Record<string, unknown>> = T[keyof T];
4
4
  /**
@@ -32,6 +32,10 @@ export declare const TARGET_TYPE: {
32
32
  readonly DIAL_NUMBER: "dialNumber";
33
33
  };
34
34
  export type TargetType = (typeof TARGET_TYPE)[keyof typeof TARGET_TYPE];
35
+ export type ParticipantDropAnnouncement = {
36
+ type: 'success' | 'error';
37
+ message: string;
38
+ };
35
39
  /**
36
40
  * Interface representing the TaskProps of a user.
37
41
  */
@@ -419,6 +423,22 @@ export interface ControlProps {
419
423
  * List of participants in the conference excluding the agent themselves.
420
424
  */
421
425
  conferenceParticipants: Participant[];
426
+ /** Owner-aware conference roster used by the CallControlCAD Drop menu. */
427
+ conferenceParticipantDropRoster: ConferenceParticipantDropRoster | null;
428
+ /** Drop target currently waiting for routing-event completion. */
429
+ pendingParticipantDropId: string | null;
430
+ /** Generic screen-reader and visible feedback for the most recent Drop request. */
431
+ participantDropAnnouncement: ParticipantDropAnnouncement | null;
432
+ /** Customer target currently awaiting explicit confirmation. */
433
+ participantDropConfirmationTarget: ConferenceParticipantDropTarget | null;
434
+ /** Whether the current Customer confirmation action is unavailable. */
435
+ participantDropConfirmationDisabled: boolean;
436
+ /** Validates a Drop target, opening confirmation for Customer or invoking Drop immediately. */
437
+ requestParticipantDrop: (target: ConferenceParticipantDropTarget) => Promise<void>;
438
+ /** Confirms and invokes the currently selected Customer Drop. */
439
+ confirmParticipantDrop: () => Promise<void>;
440
+ /** Cancels the currently selected Customer Drop. */
441
+ cancelParticipantDropConfirmation: () => void;
422
442
  /** Fetch paginated address book entries for dial numbers */
423
443
  getAddressBookEntries?: FetchPaginatedList<AddressBookEntry>;
424
444
  /** Fetch paginated entry points */
@@ -434,7 +454,7 @@ export interface ControlProps {
434
454
  */
435
455
  agentId: string;
436
456
  }
437
- export type CallControlComponentProps = Pick<ControlProps, 'currentTask' | 'isHeld' | 'wrapupCodes' | 'toggleHold' | 'toggleRecording' | 'toggleMute' | 'isMuted' | 'endCall' | 'wrapupCall' | 'isRecording' | 'setIsRecording' | 'buddyAgents' | 'loadingBuddyAgents' | 'loadBuddyAgents' | 'transferCall' | 'consultCall' | 'consultConference' | 'switchToMainCall' | 'switchToConsult' | 'exitConference' | 'endConsultCall' | 'consultTransfer' | 'callControlAudio' | 'consultAgentName' | 'setConsultAgentName' | 'holdTime' | 'callControlClassName' | 'callControlConsultClassName' | 'startTimestamp' | 'stateTimerLabel' | 'stateTimerTimestamp' | 'consultTimerLabel' | 'consultTimerTimestamp' | 'allowConsultToQueue' | 'lastTargetType' | 'setLastTargetType' | 'controls' | 'logger' | 'secondsUntilAutoWrapup' | 'cancelAutoWrapup' | 'conferenceParticipants' | 'getAddressBookEntries' | 'getEntryPoints' | 'getQueuesFetcher' | 'consultTransferOptions' | 'conferenceEnabled'> & {
457
+ export type CallControlComponentProps = Pick<ControlProps, 'currentTask' | 'isHeld' | 'wrapupCodes' | 'toggleHold' | 'toggleRecording' | 'toggleMute' | 'isMuted' | 'endCall' | 'wrapupCall' | 'isRecording' | 'setIsRecording' | 'buddyAgents' | 'loadingBuddyAgents' | 'loadBuddyAgents' | 'transferCall' | 'consultCall' | 'consultConference' | 'switchToMainCall' | 'switchToConsult' | 'exitConference' | 'endConsultCall' | 'consultTransfer' | 'callControlAudio' | 'consultAgentName' | 'setConsultAgentName' | 'holdTime' | 'callControlClassName' | 'callControlConsultClassName' | 'startTimestamp' | 'stateTimerLabel' | 'stateTimerTimestamp' | 'consultTimerLabel' | 'consultTimerTimestamp' | 'allowConsultToQueue' | 'lastTargetType' | 'setLastTargetType' | 'controls' | 'logger' | 'secondsUntilAutoWrapup' | 'cancelAutoWrapup' | 'conferenceParticipants' | 'getAddressBookEntries' | 'getEntryPoints' | 'getQueuesFetcher' | 'consultTransferOptions' | 'conferenceEnabled'> & Partial<Pick<ControlProps, 'conferenceParticipantDropRoster' | 'pendingParticipantDropId' | 'participantDropAnnouncement' | 'participantDropConfirmationTarget' | 'participantDropConfirmationDisabled' | 'requestParticipantDrop' | 'confirmParticipantDrop' | 'cancelParticipantDropConfirmation'>> & {
438
458
  /**
439
459
  * Whether the current task is an accepted campaign preview call.
440
460
  * When `true`, the header renders the campaign icon and
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@webex/cc-components",
3
3
  "description": "Webex Contact Center UI Components Library for your custom contact center solutions",
4
4
  "license": "Cisco's General Terms (https://www.cisco.com/site/us/en/about/legal/contract-experience/index.html)",
5
- "version": "1.28.0-next.44",
5
+ "version": "1.28.0-next.45",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/types/index.d.ts",
8
8
  "publishConfig": {
@@ -37,8 +37,8 @@
37
37
  "dependencies": {
38
38
  "@momentum-ui/illustrations": "^1.24.0",
39
39
  "@r2wc/react-to-web-component": "2.0.3",
40
- "@webex/cc-store": "1.28.0-next.28",
41
- "@webex/cc-ui-logging": "1.28.0-next.29",
40
+ "@webex/cc-store": "1.28.0-next.29",
41
+ "@webex/cc-ui-logging": "1.28.0-next.30",
42
42
  "adaptivecards": "^3.0.0",
43
43
  "react-error-boundary": "^6.0.0",
44
44
  "swiper": "^12.1.2"