@capxul/sdk-react 4.2.0-rc.5 → 4.2.0-rc.6

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,11 +1,11 @@
1
1
  {
2
2
  "source": {
3
- "commit": "72be9c2d5c9b2dcdd27fa5c5acb22163ddec5c44",
4
- "tree": "1529290d3427ecf12fece6ff70fbea35b077b6a9",
3
+ "commit": "8e8ae6c3c56c5d5260c469cf8e4e7bbe172a098f",
4
+ "tree": "6fcb3062a577d0af2b426b2e50ef92c0d9027701",
5
5
  "branch": "codex/programme-rc",
6
6
  "repository": "https://github.com/Xelmar-tech/infrastructure",
7
7
  "lockfileSha256": "5870f53b72706d103220c1bcf733cb4fb71196aea32a9cfbdc277d73cc959264"
8
8
  },
9
9
  "name": "@capxul/sdk-react",
10
- "version": "4.2.0-rc.5"
10
+ "version": "4.2.0-rc.6"
11
11
  }
@@ -851,6 +851,17 @@ function CapxulOnboardingController(props) {
851
851
  completePersonal: auth.completePersonal,
852
852
  cancel: navigation.profileCancel
853
853
  });
854
+ if (props.intent === "organization" && submitted.current && state.account.at !== "claimed") {
855
+ if (state.account.at === "failed") return slots.accountFailure({
856
+ state,
857
+ account: state.account,
858
+ ...state.account.retryable ? { retry: auth.retry } : {}
859
+ });
860
+ return slots.accountProgress({
861
+ state,
862
+ account: state.account
863
+ });
864
+ }
854
865
  if (props.intent === "organization" && !state.profileComplete) return props.organizationProfile === null ? slots.profile({
855
866
  intent: "organization",
856
867
  state,
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { a as useCapxulAuth, c as useCapxulIdentityOrNull, d as toInvocationControls, f as toInvocationOptions, h as useCapxul, i as entered, l as useCapxulSend, m as useCapxulClientOrNull, n as CapxulOnboardingController, o as useCapxulDestination, p as capxulKeys, r as CapxulProvider, s as useCapxulIdentity, t as CapxulAuthenticationController, u as useCapxulTransitions } from "./controllers-DHXq3gJY.mjs";
2
+ import { a as useCapxulAuth, c as useCapxulIdentityOrNull, d as toInvocationControls, f as toInvocationOptions, h as useCapxul, i as entered, l as useCapxulSend, m as useCapxulClientOrNull, n as CapxulOnboardingController, o as useCapxulDestination, p as capxulKeys, r as CapxulProvider, s as useCapxulIdentity, t as CapxulAuthenticationController, u as useCapxulTransitions } from "./controllers-BzB9gZ6P.mjs";
3
3
  import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
4
4
  import { useInfiniteQuery, useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
5
5
  import { CAPXUL_OPERATIONS, CapxulError, EVM_ADDRESS_RE, Errors, HANDLE_RE, PAYMENT_DIRECTIONS, PAYMENT_STATUSES, fingerprintPaymentIntent, formatMoney, isCapxulError, isClaimed, isClaimed as isClaimed$1, isMoneyParseError, isRestoring, isRestoring as isRestoring$1, parseMoney, paymentPhase, resolveIdentityDestination, toEvmAddress, toPartyId } from "@capxul/sdk";
@@ -1,4 +1,4 @@
1
- import { n as CapxulOnboardingController, r as CapxulProvider, t as CapxulAuthenticationController } from "../controllers-DHXq3gJY.mjs";
1
+ import { n as CapxulOnboardingController, r as CapxulProvider, t as CapxulAuthenticationController } from "../controllers-BzB9gZ6P.mjs";
2
2
  import "react";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { createCapxulTestClient } from "@capxul/sdk/testing";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capxul/sdk-react",
3
- "version": "4.2.0-rc.5",
3
+ "version": "4.2.0-rc.6",
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": "4.2.0-rc.5"
29
+ "@capxul/sdk": "4.2.0-rc.6"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@tanstack/react-query": "^5.66.9",
@@ -44,8 +44,8 @@
44
44
  "vite-plus": "0.3.0",
45
45
  "vitest": "4.1.11",
46
46
  "@capxul/errors": "0.3.0",
47
- "@capxul/typescript-config": "0.0.0",
48
- "@capxul/types": "0.3.0"
47
+ "@capxul/types": "0.3.0",
48
+ "@capxul/typescript-config": "0.0.0"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "@tanstack/react-query": "^5.66.9",