@connectedxm/client 6.5.2 → 6.5.3

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.d.ts CHANGED
@@ -2003,8 +2003,6 @@ interface OrganizationConfig {
2003
2003
  CUSTOM: OrganizationOAuth[];
2004
2004
  FIELDS: {
2005
2005
  PHONE: boolean;
2006
- TITLE: boolean;
2007
- COMPANY: boolean;
2008
2006
  INTERNAL_REF_ID: boolean;
2009
2007
  };
2010
2008
  };
package/dist/index.js CHANGED
@@ -7967,21 +7967,25 @@ var useConnectedMutation = (mutation, options) => {
7967
7967
  } = useConnected();
7968
7968
  const queryClient = useQueryClient2();
7969
7969
  return useMutation({
7970
- mutationFn: (data) => mutation({
7971
- queryClient,
7972
- clientApiParams: {
7973
- apiUrl,
7974
- getToken,
7975
- organizationId,
7976
- getExecuteAs,
7977
- locale
7970
+ mutationFn: (data, context) => mutation(
7971
+ {
7972
+ queryClient,
7973
+ clientApiParams: {
7974
+ apiUrl,
7975
+ getToken,
7976
+ organizationId,
7977
+ getExecuteAs,
7978
+ locale
7979
+ },
7980
+ ...data
7978
7981
  },
7979
- ...data
7980
- }),
7982
+ context
7983
+ ),
7981
7984
  ...options,
7982
- onError: (error, variables, context) => {
7985
+ onError: (error, variables, onMutateResult, context) => {
7983
7986
  if (onMutationError) onMutationError(error, variables, context);
7984
- if (options?.onError) options.onError(error, variables, context);
7987
+ if (options?.onError)
7988
+ options.onError(error, variables, onMutateResult, context);
7985
7989
  }
7986
7990
  });
7987
7991
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/client",
3
- "version": "6.5.2",
3
+ "version": "6.5.3",
4
4
  "description": "Client API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",
@@ -23,8 +23,8 @@
23
23
  "upgrade": "ncu -i --format group"
24
24
  },
25
25
  "dependencies": {
26
- "axios": "^1.11.0",
27
- "immer": "^10.1.1"
26
+ "axios": "^1.12.2",
27
+ "immer": "^10.1.3"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@tanstack/react-query": "^5.0.0",
@@ -47,21 +47,21 @@
47
47
  }
48
48
  },
49
49
  "devDependencies": {
50
- "@swc/core": "^1.13.2",
51
- "@tanstack/react-query": "^5.83.0",
52
- "@types/react": "^19.1.8",
53
- "@typescript-eslint/eslint-plugin": "^8.38.0",
54
- "@typescript-eslint/parser": "^8.38.0",
55
- "eslint": "^9.31.0",
50
+ "@swc/core": "^1.13.5",
51
+ "@tanstack/react-query": "^5.90.5",
52
+ "@types/react": "^19.2.2",
53
+ "@typescript-eslint/eslint-plugin": "^8.46.2",
54
+ "@typescript-eslint/parser": "^8.46.2",
55
+ "eslint": "^9.38.0",
56
56
  "eslint-plugin-react": "^7.37.5",
57
57
  "eslint-plugin-react-hooks": "^5.2.0",
58
- "react": "^19.1.0",
58
+ "react": "^19.2.0",
59
59
  "react-use-websocket": "^4.13.0",
60
60
  "tsup": "^8.5.0",
61
- "typescript": "^5.8.3",
61
+ "typescript": "^5.9.3",
62
62
  "vitest": "^3.2.4"
63
63
  },
64
64
  "optionalDependencies": {
65
- "@rollup/rollup-linux-x64-gnu": "4.45.1"
65
+ "@rollup/rollup-linux-x64-gnu": "4.52.5"
66
66
  }
67
67
  }