@capxul/sdk-react 3.0.0 → 3.1.0

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.mts CHANGED
@@ -675,6 +675,7 @@ interface SendMoneySourceSlice {
675
675
  readonly selected: SendMoneySourceOption | null;
676
676
  readonly select: (id: string) => void;
677
677
  readonly error: SendMoneySourceError | null;
678
+ readonly isPending: boolean;
678
679
  }
679
680
  interface SendMoneyAssetOption {
680
681
  readonly id: string;
@@ -688,6 +689,7 @@ interface SendMoneyAssetSlice {
688
689
  readonly selected: SendMoneyAssetOption | null;
689
690
  readonly select: (id: string) => void;
690
691
  readonly error: SendMoneyAssetError | null;
692
+ readonly isPending: boolean;
691
693
  }
692
694
  interface SendMoneyAmountSlice {
693
695
  readonly value: string;
package/dist/index.mjs CHANGED
@@ -1913,13 +1913,15 @@ function useSendMoney(input) {
1913
1913
  options: sourceOptions,
1914
1914
  selected: selectedSource,
1915
1915
  select: selectSource,
1916
- error: meReading.kind === "unavailable" ? "read-failed" : null
1916
+ error: meReading.kind === "unavailable" ? "read-failed" : null,
1917
+ isPending: meReading.kind === "loading"
1917
1918
  },
1918
1919
  asset: {
1919
1920
  options: assetOptions,
1920
1921
  selected: selectedAssetOption,
1921
1922
  select: selectAsset,
1922
- error: accountQuery.error !== null ? "read-failed" : null
1923
+ error: accountQuery.error !== null ? "read-failed" : null,
1924
+ isPending: accountQuery.isPending && (actor.kind === "personal" || orgId !== void 0)
1923
1925
  },
1924
1926
  amount: {
1925
1927
  value: amountText,
@@ -2891,7 +2893,8 @@ function usePayrollRun(input) {
2891
2893
  options: assetOptions,
2892
2894
  selected: selectedAsset,
2893
2895
  select: selectAsset,
2894
- error: treasury.error === null ? null : "read-failed"
2896
+ error: treasury.error === null ? null : "read-failed",
2897
+ isPending: orgId !== void 0 && treasury.isPending
2895
2898
  },
2896
2899
  summary: {
2897
2900
  recipientCount: selected.length,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capxul/sdk-react",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Xelmar-tech/infrastructure.git",
@@ -26,7 +26,7 @@
26
26
  "access": "public"
27
27
  },
28
28
  "dependencies": {
29
- "@capxul/sdk": "3.0.0"
29
+ "@capxul/sdk": "3.1.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@tanstack/react-query": "^5.66.9",
@@ -43,8 +43,8 @@
43
43
  "vite": "npm:@voidzero-dev/vite-plus-core@0.3.0",
44
44
  "vite-plus": "0.3.0",
45
45
  "vitest": "4.1.11",
46
- "@capxul/errors": "0.0.2",
47
- "@capxul/types": "0.2.1",
46
+ "@capxul/errors": "0.2.0",
47
+ "@capxul/types": "0.2.3",
48
48
  "@capxul/typescript-config": "0.0.0"
49
49
  },
50
50
  "peerDependencies": {