@molecule/app-bonds-default-react 1.1.4 → 1.1.7
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/auth.d.ts +4 -4
- package/dist/auth.d.ts.map +1 -1
- package/package.json +40 -40
package/dist/auth.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AuthClient, AuthClientConfig, UserProfile } from '@molecule/app-auth';
|
|
1
|
+
import type { AuthClient, AuthClientConfig, RegisterExtraShape, UserProfile } from '@molecule/app-auth';
|
|
2
2
|
import type { HttpClient } from '@molecule/app-http';
|
|
3
3
|
/**
|
|
4
4
|
* Builds the default fetch-based HTTP client + wires it into
|
|
@@ -76,7 +76,7 @@ export declare function createDefaultHttpClientWithAuthBearer(opts: {
|
|
|
76
76
|
* custom field then fails at the `createDefaultAuthClient<MyUser>(authConfig)`
|
|
77
77
|
* call instead of shipping a signed-in page that reads `undefined`.
|
|
78
78
|
*/
|
|
79
|
-
export declare function createDefaultAuthClient<TUser extends UserProfile = UserProfile, TRegister extends
|
|
79
|
+
export declare function createDefaultAuthClient<TUser extends UserProfile = UserProfile, TRegister extends RegisterExtraShape<TRegister> = Record<never, never>>(authConfig: AuthClientConfig<TUser>): {
|
|
80
80
|
authClient: AuthClient<TUser, TRegister>;
|
|
81
81
|
setupAuthDefault: () => void;
|
|
82
82
|
};
|
|
@@ -99,7 +99,7 @@ export declare function createDefaultAuthClient<TUser extends UserProfile = User
|
|
|
99
99
|
* with no `Authorization` header). The source is applied to the client WHENEVER it is
|
|
100
100
|
* bonded, so setup order no longer decides whether the first request is authorized.
|
|
101
101
|
*/
|
|
102
|
-
export declare function createDefaultAuthClientWithHttpSync<TUser extends UserProfile = UserProfile, TRegister extends
|
|
102
|
+
export declare function createDefaultAuthClientWithHttpSync<TUser extends UserProfile = UserProfile, TRegister extends RegisterExtraShape<TRegister> = Record<never, never>>(authConfig: AuthClientConfig<TUser>): {
|
|
103
103
|
authClient: AuthClient<TUser, TRegister>;
|
|
104
104
|
setupAuthDefault: () => void;
|
|
105
105
|
};
|
|
@@ -124,7 +124,7 @@ export declare function createDefaultAuthClientWithHttpSync<TUser extends UserPr
|
|
|
124
124
|
* {@link registerAuthGate}), so a page that fetches viewer-dependent data on
|
|
125
125
|
* mount cannot race it and answer for an anonymous viewer.
|
|
126
126
|
*/
|
|
127
|
-
export declare function createDefaultAuthClientWithFetchClient<TUser extends UserProfile = UserProfile, TRegister extends
|
|
127
|
+
export declare function createDefaultAuthClientWithFetchClient<TUser extends UserProfile = UserProfile, TRegister extends RegisterExtraShape<TRegister> = Record<never, never>>(authConfig: AuthClientConfig<TUser>, fetchClientOptions: {
|
|
128
128
|
baseURL: string;
|
|
129
129
|
withCredentials?: boolean;
|
|
130
130
|
}): {
|
package/dist/auth.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,EACZ,MAAM,oBAAoB,CAAA;AAE3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAuCpD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG;IACxD,UAAU,EAAE,UAAU,CAAA;IACtB,gBAAgB,EAAE,MAAM,IAAI,CAAA;CAC7B,CAMA;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,qCAAqC,CAAC,IAAI,EAAE;IAC1D,OAAO,EAAE,MAAM,CAAA;IACf,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,EAAE,MAAM,MAAM,GAA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,CAAC,CAAA;IACxC,gBAAgB,EAAE,MAAM,IAAI,CAAA;CAC7B,CA2BA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-bonds-default-react",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"description": "Default app-side bond wirings for React+Tailwind+react-router+localStorage+Arimo font+molecule icons. 5 setup functions consolidating 665 byte-identical per-app bond wiring files across the fleet.",
|
|
5
5
|
"homepage": "https://www.molecule.dev/packages/app-bonds-default-react",
|
|
6
6
|
"type": "module",
|
|
@@ -38,46 +38,46 @@
|
|
|
38
38
|
"directory": "packages/app/infrastructure/bonds-default-react"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@molecule/app-auth": "1.
|
|
42
|
-
"@molecule/app-charts-chartjs": "1.0.
|
|
43
|
-
"@molecule/app-client-search": "1.0.
|
|
44
|
-
"@molecule/app-client-search-minisearch": "1.0.
|
|
45
|
-
"@molecule/app-code-editor": "1.0.
|
|
46
|
-
"@molecule/app-code-editor-monaco": "1.0.
|
|
47
|
-
"@molecule/app-command-palette": "1.0.
|
|
48
|
-
"@molecule/app-command-palette-cmdk": "1.0.
|
|
49
|
-
"@molecule/app-drag-drop": "1.0.
|
|
50
|
-
"@molecule/app-drag-drop-dndkit": "1.0.
|
|
51
|
-
"@molecule/app-fonts": "1.2.
|
|
52
|
-
"@molecule/app-fonts-arimo": "1.0.
|
|
53
|
-
"@molecule/app-http": "1.4.
|
|
54
|
-
"@molecule/app-icons": "1.0.
|
|
55
|
-
"@molecule/app-icons-molecule": "1.0.
|
|
56
|
-
"@molecule/app-keyboard-shortcuts": "1.0.
|
|
57
|
-
"@molecule/app-keyboard-shortcuts-hotkeys": "1.0.
|
|
58
|
-
"@molecule/app-maps-leaflet": "1.0.
|
|
59
|
-
"@molecule/app-realtime": "1.0.
|
|
60
|
-
"@molecule/app-realtime-socketio": "1.1.
|
|
61
|
-
"@molecule/app-routing": "1.0.
|
|
62
|
-
"@molecule/app-routing-react-router": "1.
|
|
63
|
-
"@molecule/app-state": "1.0.
|
|
64
|
-
"@molecule/app-storage": "1.0.
|
|
65
|
-
"@molecule/app-storage-localstorage": "1.0.
|
|
66
|
-
"@molecule/app-theme": "1.0.
|
|
67
|
-
"@molecule/app-theme-css-variables": "1.0.
|
|
68
|
-
"@molecule/app-ui": "1.3.
|
|
69
|
-
"@molecule/app-ui-tailwind": "1.2.
|
|
70
|
-
"@molecule/app-video-hls": "1.0.
|
|
71
|
-
"@molecule/app-virtual-scroll": "1.0.
|
|
72
|
-
"@molecule/app-virtual-scroll-tanstack": "1.0.
|
|
73
|
-
"@types/node": "26.
|
|
74
|
-
"@types/react": "19.
|
|
75
|
-
"@types/react-dom": "19.
|
|
76
|
-
"happy-dom": "
|
|
77
|
-
"react": "19.
|
|
78
|
-
"react-dom": "19.
|
|
41
|
+
"@molecule/app-auth": "1.8.2",
|
|
42
|
+
"@molecule/app-charts-chartjs": "1.0.3",
|
|
43
|
+
"@molecule/app-client-search": "1.0.3",
|
|
44
|
+
"@molecule/app-client-search-minisearch": "1.0.4",
|
|
45
|
+
"@molecule/app-code-editor": "1.0.3",
|
|
46
|
+
"@molecule/app-code-editor-monaco": "1.0.4",
|
|
47
|
+
"@molecule/app-command-palette": "1.0.3",
|
|
48
|
+
"@molecule/app-command-palette-cmdk": "1.0.3",
|
|
49
|
+
"@molecule/app-drag-drop": "1.0.3",
|
|
50
|
+
"@molecule/app-drag-drop-dndkit": "1.0.3",
|
|
51
|
+
"@molecule/app-fonts": "1.2.2",
|
|
52
|
+
"@molecule/app-fonts-arimo": "1.0.5",
|
|
53
|
+
"@molecule/app-http": "1.4.1",
|
|
54
|
+
"@molecule/app-icons": "1.0.3",
|
|
55
|
+
"@molecule/app-icons-molecule": "1.0.3",
|
|
56
|
+
"@molecule/app-keyboard-shortcuts": "1.0.3",
|
|
57
|
+
"@molecule/app-keyboard-shortcuts-hotkeys": "1.0.3",
|
|
58
|
+
"@molecule/app-maps-leaflet": "1.0.3",
|
|
59
|
+
"@molecule/app-realtime": "1.0.4",
|
|
60
|
+
"@molecule/app-realtime-socketio": "1.1.1",
|
|
61
|
+
"@molecule/app-routing": "1.0.4",
|
|
62
|
+
"@molecule/app-routing-react-router": "1.1.1",
|
|
63
|
+
"@molecule/app-state": "1.0.4",
|
|
64
|
+
"@molecule/app-storage": "1.0.4",
|
|
65
|
+
"@molecule/app-storage-localstorage": "1.0.3",
|
|
66
|
+
"@molecule/app-theme": "1.0.4",
|
|
67
|
+
"@molecule/app-theme-css-variables": "1.0.4",
|
|
68
|
+
"@molecule/app-ui": "1.3.8",
|
|
69
|
+
"@molecule/app-ui-tailwind": "1.2.7",
|
|
70
|
+
"@molecule/app-video-hls": "1.0.3",
|
|
71
|
+
"@molecule/app-virtual-scroll": "1.0.3",
|
|
72
|
+
"@molecule/app-virtual-scroll-tanstack": "1.0.3",
|
|
73
|
+
"@types/node": "26.6.5",
|
|
74
|
+
"@types/react": "19.3.0",
|
|
75
|
+
"@types/react-dom": "19.3.0",
|
|
76
|
+
"happy-dom": "21.0.4",
|
|
77
|
+
"react": "19.3.1",
|
|
78
|
+
"react-dom": "19.3.1",
|
|
79
79
|
"typescript": "6.0.3",
|
|
80
|
-
"vitest": "4.1.
|
|
80
|
+
"vitest": "4.1.12"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"@molecule/app-auth": "^1.0.1",
|