@webex/cc-user-state 1.28.0-next.51 → 1.28.0-next.53

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,6 +1,6 @@
1
1
  import store from '@webex/cc-store';
2
2
  import { UseUserStateProps } from './user-state.types';
3
- export declare const useUserState: ({ idleCodes, agentId, cc, currentState, customState, lastStateChangeTimestamp, logger, onStateChange, lastIdleCodeChangeTimestamp, }: UseUserStateProps) => {
3
+ export declare const useUserState: ({ idleCodes, agentId, cc, currentState, customState, lastStateChangeTimestamp, logger, onStateChange, lastIdleCodeChangeTimestamp, isCurrentStateExternallyManaged, wellnessIdleCodeLookupPending, }: UseUserStateProps) => {
4
4
  idleCodes: IdleCode[];
5
5
  setAgentStatus: (selectedCode: any) => void;
6
6
  isSettingAgentStatus: boolean;
@@ -1,3 +1,8 @@
1
1
  import { IUserState } from '@webex/cc-components';
2
2
  export type IUserStateProps = Pick<IUserState, 'onStateChange'>;
3
- export type UseUserStateProps = Pick<IUserState, 'idleCodes' | 'agentId' | 'cc' | 'currentState' | 'customState' | 'lastStateChangeTimestamp' | 'logger' | 'onStateChange' | 'lastIdleCodeChangeTimestamp'>;
3
+ export type UseUserStateProps = Pick<IUserState, 'idleCodes' | 'agentId' | 'cc' | 'currentState' | 'customState' | 'lastStateChangeTimestamp' | 'logger' | 'onStateChange' | 'lastIdleCodeChangeTimestamp'> & {
4
+ /** True when an SDK-owned lifecycle, rather than the dropdown, changed the current state. */
5
+ isCurrentStateExternallyManaged?: boolean;
6
+ /** True until the SDK identifies the system-owned wellness idle code. */
7
+ wellnessIdleCodeLookupPending?: boolean;
8
+ };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@webex/cc-user-state",
3
3
  "description": "Webex Contact Center Widgets: User State",
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.51",
5
+ "version": "1.28.0-next.53",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/types/index.d.ts",
8
8
  "publishConfig": {
@@ -23,8 +23,8 @@
23
23
  "deploy:npm": "yarn npm publish"
24
24
  },
25
25
  "dependencies": {
26
- "@webex/cc-components": "1.28.0-next.50",
27
- "@webex/cc-store": "1.28.0-next.33",
26
+ "@webex/cc-components": "1.28.0-next.52",
27
+ "@webex/cc-store": "1.28.0-next.34",
28
28
  "mobx-react-lite": "^4.1.0",
29
29
  "react-error-boundary": "^6.0.0",
30
30
  "typescript": "5.6.3"
@@ -40,7 +40,7 @@
40
40
  "@testing-library/react": "16.0.1",
41
41
  "@types/jest": "29.5.14",
42
42
  "@types/react-test-renderer": "18",
43
- "@webex/test-fixtures": "0.0.0-next.1",
43
+ "@webex/test-fixtures": "0.0.0-next.0",
44
44
  "babel-jest": "29.7.0",
45
45
  "babel-loader": "9.2.1",
46
46
  "eslint": "^9.20.1",