@webex/cc-components 1.28.0-ccwidgets.25 → 1.28.0-ccwidgets.27

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.
@@ -1,4 +1,4 @@
1
- import { IdleCode } from '@webex/cc-store';
1
+ import { IdleCode, ICustomState } from '@webex/cc-store';
2
2
  /**
3
3
  * Interface representing the state of a user.
4
4
  */
@@ -15,10 +15,7 @@ export interface IUserState {
15
15
  * @param status.state The state to set.
16
16
  * @returns void
17
17
  */
18
- setAgentStatus: (status: {
19
- auxCodeId: string;
20
- state: string;
21
- }) => void;
18
+ setAgentStatus: (auxCodeId: string) => void;
22
19
  /**
23
20
  * Boolean indicating if the agent status is being set.
24
21
  */
@@ -39,8 +36,18 @@ export interface IUserState {
39
36
  * The idle code of the current user state
40
37
  */
41
38
  currentState: string;
39
+ /**
40
+ * The custom state of the current user state
41
+ */
42
+ customState: ICustomState;
42
43
  /**
43
44
  * The preferred theme
44
45
  */
45
46
  currentTheme: string;
47
+ /**
48
+ * Function to handle state change
49
+ * @param state The state to change to
50
+ * @returns void
51
+ */
52
+ onStateChange: (state: string) => void;
46
53
  }