@brendanbank/atrium-host-bundle-utils 0.18.0 → 0.19.1
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 +5 -5
- package/dist/react/index.d.ts +20 -18
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +15 -13
- package/dist/react/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -87,9 +87,9 @@ function App() {
|
|
|
87
87
|
}
|
|
88
88
|
```
|
|
89
89
|
|
|
90
|
-
The hooks fetch atrium's fixed same-origin `/users/me/context`
|
|
91
|
-
endpoint — no path is configurable, since a host
|
|
92
|
-
atrium's SPA and hits the same origin. `<AtriumProvider>` reads from
|
|
90
|
+
The hooks fetch atrium's fixed same-origin `/api/users/me/context`
|
|
91
|
+
endpoint (atrium >= 0.19) — no path is configurable, since a host
|
|
92
|
+
bundle loads inside atrium's SPA and hits the same origin. `<AtriumProvider>` reads from
|
|
93
93
|
your existing `<QueryClientProvider>` by default — no second
|
|
94
94
|
QueryClient. Pass `client={hostQueryClient}` to wrap one inline; pass
|
|
95
95
|
`fetchUserContext={...}` to inject a custom fetcher (useful for tests
|
|
@@ -97,8 +97,8 @@ or hosts that want axios-shaped retry).
|
|
|
97
97
|
|
|
98
98
|
## Versioning
|
|
99
99
|
|
|
100
|
-
The package version tracks atrium's image version. Pin `^0.
|
|
101
|
-
"compatible with atrium 0.
|
|
100
|
+
The package version tracks atrium's image version. Pin `^0.19` for
|
|
101
|
+
"compatible with atrium 0.19.x"; bump together with the atrium image
|
|
102
102
|
to pick up new registry slots and SDK helpers.
|
|
103
103
|
|
|
104
104
|
## See also
|
package/dist/react/index.d.ts
CHANGED
|
@@ -2,22 +2,24 @@
|
|
|
2
2
|
* React hooks + provider for atrium host bundles.
|
|
3
3
|
*
|
|
4
4
|
* One TanStack Query subscription serves the whole host tree:
|
|
5
|
-
* `useMe()` fetches `/users/me/context` once and shares the
|
|
6
|
-
* with every `usePerm()`, `useRole()`, and `useUserContext()`
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* by
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
5
|
+
* `useMe()` fetches `/api/users/me/context` once and shares the
|
|
6
|
+
* result with every `usePerm()`, `useRole()`, and `useUserContext()`
|
|
7
|
+
* caller.
|
|
8
|
+
*
|
|
9
|
+
* The endpoint path is fixed by atrium — it's mounted under
|
|
10
|
+
* `/api/...` (atrium >= 0.19) and served from the same origin as the
|
|
11
|
+
* bundle. There's no `apiBase` prop because there's nothing for the
|
|
12
|
+
* host to configure: a host bundle that loads inside atrium's SPA
|
|
13
|
+
* fetches a same-origin relative path. Hosts that want to layer
|
|
14
|
+
* their own retry / headers / mock can pass `fetchUserContext`.
|
|
15
|
+
*
|
|
16
|
+
* The hooks reuse the host's enclosing `<QueryClientProvider>` if
|
|
17
|
+
* one is already mounted; pass `client={hostQueryClient}` to
|
|
17
18
|
* `<AtriumProvider>` only if you want this provider to wrap the
|
|
18
19
|
* QueryClient too. Two QueryClients (atrium's + the host's) is the
|
|
19
|
-
* intended state — atrium clears its cache on logout via
|
|
20
|
-
* and a shared client would lose host queries the user
|
|
20
|
+
* intended state — atrium clears its cache on logout via
|
|
21
|
+
* `qc.clear()`, and a shared client would lose host queries the user
|
|
22
|
+
* still wants.
|
|
21
23
|
*/
|
|
22
24
|
import { type ReactNode } from 'react';
|
|
23
25
|
import { type QueryClient, type UseQueryResult } from '@tanstack/react-query';
|
|
@@ -33,10 +35,10 @@ export interface AtriumProviderProps {
|
|
|
33
35
|
* inherit the caller's enclosing one. Use this only when the host
|
|
34
36
|
* hasn't already set up its own provider. */
|
|
35
37
|
client?: QueryClient;
|
|
36
|
-
/** Override the fetcher for `/users/me/context`. Useful for
|
|
37
|
-
* and for hosts that want to layer an axios interceptor or
|
|
38
|
-
* headers on top. The default uses `fetch` with
|
|
39
|
-
* 'include'`. */
|
|
38
|
+
/** Override the fetcher for `/api/users/me/context`. Useful for
|
|
39
|
+
* tests and for hosts that want to layer an axios interceptor or
|
|
40
|
+
* extra headers on top. The default uses `fetch` with
|
|
41
|
+
* `credentials: 'include'`. */
|
|
40
42
|
fetchUserContext?: () => Promise<UserContext | null>;
|
|
41
43
|
children: ReactNode;
|
|
42
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EACV,sBAAsB,EACtB,WAAW,EACZ,MAAM,gCAAgC,CAAC;AAExC,YAAY,EACV,sBAAsB,EACtB,WAAW,GACZ,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,UAAU,kBAAkB;IAC1B,gBAAgB,EAAE,MAAM,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CACrD;AAmBD,MAAM,WAAW,mBAAmB;IAClC;;;kDAG8C;IAC9C,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;;oCAGgC;IAChC,gBAAgB,CAAC,EAAE,MAAM,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACrD,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;qCAGqC;AACrC,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,gBAAgB,EAChB,QAAQ,GACT,EAAE,mBAAmB,2MAYrB;AAED;;iEAEiE;AACjE,eAAO,MAAM,YAAY,2BAA4B,CAAC;AAmBtD;;;;;;;;8BAQ8B;AAC9B,wBAAgB,KAAK,IAAI,cAAc,CAAC,WAAW,GAAG,IAAI,CAAC,CAQ1D;AAED;;iBAEiB;AACjB,wBAAgB,cAAc,IAAI,cAAc,CAAC,WAAW,GAAG,IAAI,CAAC,CAEnE;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,OAAO,IAAI,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAMnD;AAED;sEACsE;AACtE,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAG7C;AAED;;;qBAGqB;AACrB,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;;;uCAQmC;IACnC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAoEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA6Ca;AACb,wBAAgB,iBAAiB,IAAI,cAAc,CAMlD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAyCqE;AACrE,wBAAgB,iBAAiB,IAAI,CACnC,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,KACzB,IAAI,CAeR;AAED;;kDAEkD;AAClD,wBAAgB,kCAAkC,IAAI,IAAI,CAEzD;AAkDD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAqCyC;AACzC,wBAAgB,aAAa,IAAI,sBAAsB,CAMtD;AAED;;kDAEkD;AAClD,wBAAgB,8BAA8B,IAAI,IAAI,CAErD"}
|
package/dist/react/index.js
CHANGED
|
@@ -4,27 +4,29 @@
|
|
|
4
4
|
* React hooks + provider for atrium host bundles.
|
|
5
5
|
*
|
|
6
6
|
* One TanStack Query subscription serves the whole host tree:
|
|
7
|
-
* `useMe()` fetches `/users/me/context` once and shares the
|
|
8
|
-
* with every `usePerm()`, `useRole()`, and `useUserContext()`
|
|
7
|
+
* `useMe()` fetches `/api/users/me/context` once and shares the
|
|
8
|
+
* result with every `usePerm()`, `useRole()`, and `useUserContext()`
|
|
9
|
+
* caller.
|
|
9
10
|
*
|
|
10
|
-
* The endpoint path is fixed by atrium — it's mounted
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
11
|
+
* The endpoint path is fixed by atrium — it's mounted under
|
|
12
|
+
* `/api/...` (atrium >= 0.19) and served from the same origin as the
|
|
13
|
+
* bundle. There's no `apiBase` prop because there's nothing for the
|
|
14
|
+
* host to configure: a host bundle that loads inside atrium's SPA
|
|
15
|
+
* fetches a same-origin relative path. Hosts that want to layer
|
|
16
|
+
* their own retry / headers / mock can pass `fetchUserContext`.
|
|
16
17
|
*
|
|
17
|
-
* The hooks reuse the host's enclosing `<QueryClientProvider>` if
|
|
18
|
-
* is already mounted; pass `client={hostQueryClient}` to
|
|
18
|
+
* The hooks reuse the host's enclosing `<QueryClientProvider>` if
|
|
19
|
+
* one is already mounted; pass `client={hostQueryClient}` to
|
|
19
20
|
* `<AtriumProvider>` only if you want this provider to wrap the
|
|
20
21
|
* QueryClient too. Two QueryClients (atrium's + the host's) is the
|
|
21
|
-
* intended state — atrium clears its cache on logout via
|
|
22
|
-
* and a shared client would lose host queries the user
|
|
22
|
+
* intended state — atrium clears its cache on logout via
|
|
23
|
+
* `qc.clear()`, and a shared client would lose host queries the user
|
|
24
|
+
* still wants.
|
|
23
25
|
*/
|
|
24
26
|
import { createContext, createElement, useCallback, useContext, useMemo, useSyncExternalStore, } from 'react';
|
|
25
27
|
import { QueryClientProvider, useQuery, } from '@tanstack/react-query';
|
|
26
28
|
export { __atrium_t__ } from '../i18n';
|
|
27
|
-
const ME_CONTEXT_PATH = '/users/me/context';
|
|
29
|
+
const ME_CONTEXT_PATH = '/api/users/me/context';
|
|
28
30
|
async function defaultFetchUserContext() {
|
|
29
31
|
const res = await fetch(ME_CONTEXT_PATH, {
|
|
30
32
|
credentials: 'include',
|
package/dist/react/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,wCAAwC;AAExC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,wCAAwC;AAExC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,EACL,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EACV,OAAO,EACP,oBAAoB,GAErB,MAAM,OAAO,CAAC;AACf,OAAO,EACL,mBAAmB,EACnB,QAAQ,GAGT,MAAM,uBAAuB,CAAC;AAW/B,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAMvC,MAAM,eAAe,GAAG,uBAAuB,CAAC;AAEhD,KAAK,UAAU,uBAAuB;IACpC,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,eAAe,EAAE;QACvC,WAAW,EAAE,SAAS;QACtB,OAAO,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE;KACxC,CAAC,CAAC;IACH,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG;QAAE,OAAO,IAAI,CAAC;IAC1D,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;QACZ,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;QAC9C,MAAM,IAAI,KAAK,CAAC,GAAG,eAAe,KAAK,GAAG,CAAC,MAAM,IAAI,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;IACtE,CAAC;IACD,OAAO,CAAC,MA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,GAAG,IAAI,CAAC;AAC1B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brendanbank/atrium-host-bundle-utils",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Runtime helpers, Vite preset, and React hooks for atrium host bundles. Wraps the dual-tree mount pattern, the host-bundle Vite library config, and the /users/me/context hook so a host's main.tsx is ~10 lines of registration calls.",
|
|
3
|
+
"version": "0.19.1",
|
|
4
|
+
"description": "Runtime helpers, Vite preset, and React hooks for atrium host bundles. Wraps the dual-tree mount pattern, the host-bundle Vite library config, and the /api/users/me/context hook so a host's main.tsx is ~10 lines of registration calls.",
|
|
5
5
|
"license": "BSD-2-Clause",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@brendanbank/atrium-host-types": "0.
|
|
28
|
+
"@brendanbank/atrium-host-types": "0.19.1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@tanstack/react-query": "^5.0.0",
|