@capxul/sdk-react 4.20.0-beta.4 → 4.20.0-beta.40

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/README.md CHANGED
@@ -27,13 +27,16 @@ export function Providers({ children }: { children: React.ReactNode }) {
27
27
  - The provider restores Account readiness after a complete authenticated
28
28
  session. Account and Organization readiness transitions refresh active
29
29
  authenticated queries.
30
- - `CapxulAuthenticationController` and `CapxulOnboardingController` select
31
- app-owned slots and render no SDK-owned DOM. The onboarding controller keeps
32
- no Organization submission: after a reload the Core SDK reads the pending
33
- Organization from the backend and attaches it, so the app re-submits nothing.
34
- A claimed identity with no Organization and no app-held form step reports
35
- `organizationProgress` with `{ at: "loading", orgId: null }` until that
36
- attach lands.
30
+ - CapxulAuthenticationController and CapxulOnboardingController select
31
+ app-owned slots and render no SDK-owned DOM. Organization create begins a
32
+ backend setup and returns its exact ID. The Core SDK actor subscribes to
33
+ that setup. Awaiting authorization, attention, and failure reach actionable
34
+ slots; processing and rechecking reach a finite progress slot.
35
+ - CapxulDashboardAccess combines current setup with current org.me authority.
36
+ Initial and changed scopes wait for verified authority. Unchanged setup
37
+ snapshots reuse cached data. Background authority checks keep an already
38
+ verified ready dashboard mounted. Non-ready setup, sign-out, scope changes,
39
+ and authority errors close access. A revoked membership cannot keep a grant.
37
40
  - Rich-data hooks such as `useCapxulProfile`, `useCapxulOrgs`, members, roles,
38
41
  treasury, and money hooks remain TanStack Query projections. Personal
39
42
  holdings and activity reads start only after the Account is claimed.
@@ -56,6 +59,8 @@ export function Providers({ children }: { children: React.ReactNode }) {
56
59
  engine hook stays module-scoped. Both actor paths ship: a personal actor omits
57
60
  `.Source` and spends the personal Account; an organization actor holds the
58
61
  Budget the payment is drawn from and spends the treasury Account.
62
+ The submitted amount uses the selected registry AssetId and precision. This
63
+ includes 18-decimal WETH.
59
64
  - `CapxulContacts` is the compound address-book component. One root owns the
60
65
  book behaviour and draws nothing. The `.Summary`, `.List`, and `.Add` region
61
66
  parts each hand the screen one finished slice, and a `.List` row carries its
@@ -75,6 +80,9 @@ export function Providers({ children }: { children: React.ReactNode }) {
75
80
  and an amount the caller passed in `prefill` wins over it. Both engine hooks
76
81
  stay module-scoped.
77
82
 
83
+ Activity groups use AssetId. The SDK resolves symbols and precision only for
84
+ display and CSV output. Assets with the same peg remain separate.
85
+
78
86
  Payroll confirmation restores a saved run before enabling submission. An
79
87
  uncertain run keeps its period, amounts, recipients, and SDK request key across
80
88
  close/reopen and reload. Its fields remain fixed until Core confirms success or terminal closure.
@@ -98,6 +106,16 @@ The testing harness uses the real public provider and controllers and imports
98
106
  its client factory only through `@capxul/sdk/testing`; it owns no renderer or
99
107
  parallel identity state.
100
108
 
109
+ ## Activity documents
110
+
111
+ `CapxulActivity.Detail` exposes `documents`, `selectedDocument`, and
112
+ `selectDocument({ documentHash, contentHash })`. Selection defaults to the
113
+ instruction, then the Movement Memo. `renderDocument()` returns safe semantic
114
+ HTML. `downloadDocument()` returns exact bytes for a deliberate download.
115
+ The host owns the panel and download action. Do not log these results.
116
+ Account or Organization changes clear selection and cancel pending reads.
117
+ These methods replace the receipt-only selector and action.
118
+
101
119
  ## Documentation
102
120
 
103
121
  - [Maintainer context](./CONTEXT.md)