@molecule/app-angular 3.7.2 → 3.8.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/README.md +116 -82
- package/dist/hooks/use-async.d.ts +3 -1
- package/dist/hooks/use-async.d.ts.map +1 -1
- package/dist/hooks/use-async.js +2 -0
- package/dist/hooks/use-async.js.map +1 -1
- package/dist/hooks/use-auth.d.ts +5 -2
- package/dist/hooks/use-auth.d.ts.map +1 -1
- package/dist/hooks/use-auth.js +5 -2
- package/dist/hooks/use-auth.js.map +1 -1
- package/dist/hooks/use-forms.d.ts +12 -6
- package/dist/hooks/use-forms.d.ts.map +1 -1
- package/dist/hooks/use-forms.js +68 -21
- package/dist/hooks/use-forms.js.map +1 -1
- package/dist/hooks/use-store.d.ts +18 -1
- package/dist/hooks/use-store.d.ts.map +1 -1
- package/dist/hooks/use-store.js +4 -15
- package/dist/hooks/use-store.js.map +1 -1
- package/dist/hooks/use-theme.d.ts.map +1 -1
- package/dist/hooks/use-theme.js +43 -10
- package/dist/hooks/use-theme.js.map +1 -1
- package/dist/hooks/use-translation.d.ts +5 -0
- package/dist/hooks/use-translation.d.ts.map +1 -1
- package/dist/hooks/use-translation.js +31 -4
- package/dist/hooks/use-translation.js.map +1 -1
- package/dist/index.d.ts +38 -15
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +38 -15
- package/dist/index.js.map +1 -1
- package/dist/link.d.ts +6 -1
- package/dist/link.d.ts.map +1 -1
- package/dist/link.js +11 -4
- package/dist/link.js.map +1 -1
- package/dist/services/forms.service.d.ts.map +1 -1
- package/dist/services/forms.service.js +0 -3
- package/dist/services/forms.service.js.map +1 -1
- package/dist/services/promise.service.d.ts +8 -4
- package/dist/services/promise.service.d.ts.map +1 -1
- package/dist/services/promise.service.js +2 -1
- package/dist/services/promise.service.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-11-
|
|
6
|
+
Generated: 2026-11-20T06:32:15.073Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-angular
|
|
@@ -22,28 +22,21 @@ interfaces with Angular's idioms (services, DI, RxJS observables, etc.).
|
|
|
22
22
|
|
|
23
23
|
```typescript
|
|
24
24
|
// main.ts — wire concrete providers into Angular DI:
|
|
25
|
+
import { Component, inject } from '@angular/core'
|
|
25
26
|
import { bootstrapApplication } from '@angular/platform-browser'
|
|
26
|
-
import {
|
|
27
|
+
import {
|
|
28
|
+
MoleculeAuthService,
|
|
29
|
+
MoleculeThemeService,
|
|
30
|
+
provideMolecule,
|
|
31
|
+
t,
|
|
32
|
+
} from '@molecule/app-angular'
|
|
27
33
|
import { createJWTAuthClient } from '@molecule/app-auth'
|
|
28
34
|
import { provider as stateProvider } from '@molecule/app-state-zustand'
|
|
29
35
|
import { provider as themeProvider } from '@molecule/app-theme-css-variables'
|
|
30
36
|
|
|
31
37
|
const authClient = createJWTAuthClient({ baseURL: '/api' })
|
|
32
38
|
|
|
33
|
-
bootstrapApplication(AppComponent, {
|
|
34
|
-
providers: [
|
|
35
|
-
provideMolecule({
|
|
36
|
-
state: stateProvider,
|
|
37
|
-
auth: authClient,
|
|
38
|
-
theme: themeProvider,
|
|
39
|
-
}),
|
|
40
|
-
],
|
|
41
|
-
})
|
|
42
|
-
|
|
43
39
|
// dashboard.component.ts — inject the Molecule services:
|
|
44
|
-
import { Component, inject } from '@angular/core'
|
|
45
|
-
import { MoleculeAuthService, MoleculeThemeService, t } from '@molecule/app-angular'
|
|
46
|
-
|
|
47
40
|
@Component({
|
|
48
41
|
selector: 'app-dashboard',
|
|
49
42
|
template: `
|
|
@@ -56,7 +49,7 @@ import { MoleculeAuthService, MoleculeThemeService, t } from '@molecule/app-angu
|
|
|
56
49
|
</div>
|
|
57
50
|
`,
|
|
58
51
|
})
|
|
59
|
-
class DashboardComponent {
|
|
52
|
+
export class DashboardComponent {
|
|
60
53
|
// Expose the reactive t() so template bindings re-evaluate on locale change.
|
|
61
54
|
protected readonly t = t
|
|
62
55
|
|
|
@@ -70,8 +63,38 @@ class DashboardComponent {
|
|
|
70
63
|
void this.authService.logout()
|
|
71
64
|
}
|
|
72
65
|
}
|
|
66
|
+
|
|
67
|
+
// app.component.ts — the root that mounts the dashboard:
|
|
68
|
+
@Component({
|
|
69
|
+
selector: 'app-root',
|
|
70
|
+
imports: [DashboardComponent],
|
|
71
|
+
template: '<app-dashboard />',
|
|
72
|
+
})
|
|
73
|
+
export class AppComponent {}
|
|
74
|
+
|
|
75
|
+
bootstrapApplication(AppComponent, {
|
|
76
|
+
providers: [
|
|
77
|
+
provideMolecule({
|
|
78
|
+
state: stateProvider,
|
|
79
|
+
auth: authClient,
|
|
80
|
+
theme: themeProvider,
|
|
81
|
+
}),
|
|
82
|
+
],
|
|
83
|
+
})
|
|
73
84
|
```
|
|
74
85
|
|
|
86
|
+
**Session restore:** `useAuth().status === 'loading'` is undecided: wait for
|
|
87
|
+
it and redirect only on `status === 'unauthenticated'`. `'unavailable'` keeps
|
|
88
|
+
the session candidate for retry, but `isAuthenticated` can be false and
|
|
89
|
+
`user` can be null. A restore failure other than 401/403 never signs out.
|
|
90
|
+
`provideMolecule({ auth })` starts the bundled client's restore when a
|
|
91
|
+
consumer first reads the session, so the app entry can mount its root without
|
|
92
|
+
calling `initialize()`. A cached token and user render signed-in content
|
|
93
|
+
immediately, and a visitor without a session candidate renders signed-out
|
|
94
|
+
content immediately. Set `awaitSession: true` to hold bootstrap — and so
|
|
95
|
+
every page's first render — while a token-only or cookie-only restore is
|
|
96
|
+
undecided.
|
|
97
|
+
|
|
75
98
|
## Type
|
|
76
99
|
|
|
77
100
|
`framework`
|
|
@@ -748,46 +771,21 @@ interface HttpClient {
|
|
|
748
771
|
*/
|
|
749
772
|
getAuthToken(): string | null
|
|
750
773
|
|
|
751
|
-
/**
|
|
752
|
-
* Registers the LIVE token resolver every request of this client reads, or clears it with
|
|
753
|
-
* `null`.
|
|
754
|
-
*
|
|
755
|
-
* `@molecule/app-http`'s `setAuthTokenSource()` calls this on every client it bonds, and the
|
|
756
|
-
* client MUST consult the resolver again each time it assembles a request (and report it from
|
|
757
|
-
* `getAuthToken()`). A session can change with no auth event and no observable state change —
|
|
758
|
-
* `authClient.setSession()` with the same profile data, or the OAuth callback's
|
|
759
|
-
* `setAccessToken()` — so a token pushed only at bond time or on `login`/`logout` events
|
|
760
|
-
* leaves every later request carrying the PREVIOUS session's bearer while the UI shows the
|
|
761
|
-
* new one.
|
|
762
|
-
*
|
|
763
|
-
* The resolved token takes the static token's place, with the same precedence: an
|
|
764
|
-
* `Authorization` header passed per request or in the client's default headers wins over it
|
|
765
|
-
* exactly where it won over a static token in this transport.
|
|
766
|
-
*
|
|
767
|
-
* A resolver that returns `null` (or `undefined`) means "this session has no body token": the
|
|
768
|
-
* request carries no `Authorization` header of the client's own. A cookie-session API issues
|
|
769
|
-
* no bearer, and the server prefers the header over the fresh cookie, so a kept bearer
|
|
770
|
-
* authenticates as the prior — possibly deleted — session.
|
|
771
|
-
*
|
|
772
|
-
* Optional, so an implementation written against the previous interface still conforms.
|
|
773
|
-
* `setAuthTokenSource()` follows such a client through a request interceptor instead, pushing
|
|
774
|
-
* the source with `setAuthToken` before each request: that request carries the change only
|
|
775
|
-
* when the transport applies its token after running its interceptors, so a transport that
|
|
776
|
-
* applies it earlier sends a session adopted mid-page from the following request on.
|
|
777
|
-
*
|
|
778
|
-
* @param resolver - Returns the current access token (or null/undefined), or `null` to clear.
|
|
779
|
-
*/
|
|
774
|
+
/** Registers the LIVE token resolver every request of this client reads, or clears it with `null`. */
|
|
780
775
|
setAuthTokenResolver?(resolver: AuthTokenResolver | null): void
|
|
781
776
|
|
|
782
777
|
/**
|
|
783
|
-
* Registers a handler for authentication errors (401).
|
|
778
|
+
* Registers a handler for authentication errors (401), with the rejected request's metadata.
|
|
784
779
|
*
|
|
780
|
+
* @param handler - Receives the method, URL and credential state of the rejected request.
|
|
785
781
|
* @returns An unsubscribe function.
|
|
786
782
|
*/
|
|
787
|
-
onAuthError(handler: () => void): () => void
|
|
783
|
+
onAuthError(handler: (event: HttpAuthErrorEvent) => void): () => void
|
|
788
784
|
}
|
|
789
785
|
```
|
|
790
786
|
|
|
787
|
+
_(The longest member comment is shortened to its first sentence to fit; the full declaration is in `node_modules/@molecule/app-http/dist/client.d.ts`.)_
|
|
788
|
+
|
|
791
789
|
#### `I18nProvider`
|
|
792
790
|
|
|
793
791
|
i18n provider interface.
|
|
@@ -1327,6 +1325,16 @@ interface Router {
|
|
|
1327
1325
|
*/
|
|
1328
1326
|
generatePath(name: string, params?: RouteParams, query?: QueryParams): string
|
|
1329
1327
|
|
|
1328
|
+
/**
|
|
1329
|
+
* The `href` an anchor to the in-app `path` carries, as the native router's own link
|
|
1330
|
+
* writes it (its base path prefixed, or `#/…` under a hash history), so a middle-click,
|
|
1331
|
+
* a new tab or a copied link opens the same page a click does.
|
|
1332
|
+
*
|
|
1333
|
+
* @param path - Pathname with optional query string and hash, as passed to `navigate`.
|
|
1334
|
+
* @returns The `href`.
|
|
1335
|
+
*/
|
|
1336
|
+
createHref(path: string): string
|
|
1337
|
+
|
|
1330
1338
|
/**
|
|
1331
1339
|
* Subscribes to route changes.
|
|
1332
1340
|
*/
|
|
@@ -2704,6 +2712,18 @@ interface UseStoreOptions<T, S = T> {
|
|
|
2704
2712
|
}
|
|
2705
2713
|
```
|
|
2706
2714
|
|
|
2715
|
+
#### `SelectingStoreOptions`
|
|
2716
|
+
|
|
2717
|
+
Options for {@link useStore} that pick part of the store: a selector is
|
|
2718
|
+
required, so the selected type `S` always comes from it.
|
|
2719
|
+
|
|
2720
|
+
```typescript
|
|
2721
|
+
interface SelectingStoreOptions<T, S> extends UseStoreOptions<T, S> {
|
|
2722
|
+
/** Picks the value the hook returns from the store's state. */
|
|
2723
|
+
selector: (state: T) => S
|
|
2724
|
+
}
|
|
2725
|
+
```
|
|
2726
|
+
|
|
2707
2727
|
#### `UseThemeResult`
|
|
2708
2728
|
|
|
2709
2729
|
What {@link useTheme} returns: the current theme, its name and mode as
|
|
@@ -2735,6 +2755,11 @@ interface UseTranslationResult {
|
|
|
2735
2755
|
* method itself) that reads the provider on every call AND the locale
|
|
2736
2756
|
* notifications signal, so a template, `computed` or `effect` that calls it
|
|
2737
2757
|
* re-runs on a locale switch the way React re-renders on one.
|
|
2758
|
+
*
|
|
2759
|
+
* Its identity follows the active locale, like React's `useTranslation().t`:
|
|
2760
|
+
* a value memoized on it (a `computed`, a child bound `t` as an input)
|
|
2761
|
+
* refreshes after a switch, while an `addTranslations` for the same locale
|
|
2762
|
+
* keeps it. `useT()` is the one-identity form.
|
|
2738
2763
|
*/
|
|
2739
2764
|
readonly t: I18nProvider['t']
|
|
2740
2765
|
/** The active locale code. */
|
|
@@ -3045,18 +3070,16 @@ interface PlatformService {
|
|
|
3045
3070
|
Promise state manager.
|
|
3046
3071
|
|
|
3047
3072
|
```typescript
|
|
3048
|
-
interface PromiseStateManager<T> {
|
|
3073
|
+
interface PromiseStateManager<T, Args extends unknown[] = unknown[]> {
|
|
3049
3074
|
state$: Observable<PromiseState<T>>
|
|
3050
3075
|
getState: () => PromiseState<T>
|
|
3051
|
-
call: (...args:
|
|
3076
|
+
call: (...args: Args) => Promise<T>
|
|
3052
3077
|
cancel: (message?: string) => void
|
|
3053
3078
|
reset: () => void
|
|
3054
3079
|
destroy: () => void
|
|
3055
3080
|
}
|
|
3056
3081
|
```
|
|
3057
3082
|
|
|
3058
|
-
**Returns:** The result.
|
|
3059
|
-
|
|
3060
3083
|
#### `PushService`
|
|
3061
3084
|
|
|
3062
3085
|
Push service interface.
|
|
@@ -3314,10 +3337,13 @@ that calls `navigate()`. Needs the router from `provideMolecule({ router })`.
|
|
|
3314
3337
|
selector: 'a[molLink]',
|
|
3315
3338
|
standalone: true,
|
|
3316
3339
|
inputs: ['molLink', 'replace', 'state'],
|
|
3317
|
-
host: { '[attr.href]': '
|
|
3340
|
+
host: { '[attr.href]': 'href' },
|
|
3318
3341
|
})
|
|
3319
3342
|
export class Link implements OnInit {
|
|
3320
|
-
/**
|
|
3343
|
+
/**
|
|
3344
|
+
* The destination: an app path (`/settings?tab=billing#plan`) or a URL. An app path's `href` is
|
|
3345
|
+
* the one the router writes for it (`routerLinkHref`), base path included.
|
|
3346
|
+
*/
|
|
3321
3347
|
molLink = ''
|
|
3322
3348
|
/** Replace the current history entry instead of pushing one. */
|
|
3323
3349
|
replace?: boolean
|
|
@@ -3325,6 +3351,11 @@ export class Link implements OnInit {
|
|
|
3325
3351
|
state?: unknown
|
|
3326
3352
|
|
|
3327
3353
|
private readonly router = useRouterInstance()
|
|
3354
|
+
|
|
3355
|
+
/** The anchor's `href`: the one the router writes for an app path, base path included. */
|
|
3356
|
+
get href(): string {
|
|
3357
|
+
return routerLinkHref(this.molLink, this.router)
|
|
3358
|
+
}
|
|
3328
3359
|
private readonly element = inject<ElementRef<HTMLAnchorElement>>(ElementRef)
|
|
3329
3360
|
private readonly renderer = inject(Renderer2)
|
|
3330
3361
|
private readonly destroyRef = inject(DestroyRef)
|
|
@@ -3603,8 +3634,7 @@ class MoleculeFormInstance<T extends FormValuesConstraint<T>> {
|
|
|
3603
3634
|
* @param value - The new value to set for the field.
|
|
3604
3635
|
*/
|
|
3605
3636
|
setValue<K extends keyof T>(name: K, value: T[K]): void {
|
|
3606
|
-
|
|
3607
|
-
this.controller.setValue(name as any, value as any)
|
|
3637
|
+
this.controller.setValue(name as string, value)
|
|
3608
3638
|
}
|
|
3609
3639
|
|
|
3610
3640
|
/**
|
|
@@ -3614,8 +3644,7 @@ class MoleculeFormInstance<T extends FormValuesConstraint<T>> {
|
|
|
3614
3644
|
* @returns The error message for the field, or `undefined` if the field has no error.
|
|
3615
3645
|
*/
|
|
3616
3646
|
getError(name: keyof T): string | undefined {
|
|
3617
|
-
|
|
3618
|
-
return this.controller.getError(name as any)
|
|
3647
|
+
return this.controller.getError(name as string)
|
|
3619
3648
|
}
|
|
3620
3649
|
|
|
3621
3650
|
/**
|
|
@@ -3626,8 +3655,7 @@ class MoleculeFormInstance<T extends FormValuesConstraint<T>> {
|
|
|
3626
3655
|
*/
|
|
3627
3656
|
setError(name: keyof T, error: string | undefined): void {
|
|
3628
3657
|
if (error !== undefined) {
|
|
3629
|
-
|
|
3630
|
-
this.controller.setError(name as any, error)
|
|
3658
|
+
this.controller.setError(name as string, error)
|
|
3631
3659
|
} else {
|
|
3632
3660
|
this.controller.clearError(name)
|
|
3633
3661
|
}
|
|
@@ -4695,12 +4723,9 @@ state, so it is not proof that an outstanding request has stopped. Use an
|
|
|
4695
4723
|
app-owned queue when every click must be accepted in order.
|
|
4696
4724
|
|
|
4697
4725
|
```typescript
|
|
4698
|
-
function usePromise<
|
|
4699
|
-
asyncFn:
|
|
4700
|
-
): [
|
|
4701
|
-
UsePromiseState<Awaited<ReturnType<T>>>,
|
|
4702
|
-
(...args: Parameters<T>) => Promise<Awaited<ReturnType<T>>>,
|
|
4703
|
-
]
|
|
4726
|
+
function usePromise<V, A extends unknown[]>(
|
|
4727
|
+
asyncFn: (...args: A) => Promise<V>,
|
|
4728
|
+
): [UsePromiseState<V>, (...args: A) => Promise<V>]
|
|
4704
4729
|
```
|
|
4705
4730
|
|
|
4706
4731
|
- `asyncFn` — The async function to wrap.
|
|
@@ -4849,8 +4874,11 @@ function useAuthClient<
|
|
|
4849
4874
|
Authentication state and actions. Call it in an injection context (a
|
|
4850
4875
|
component field initializer or constructor).
|
|
4851
4876
|
|
|
4852
|
-
`status === 'loading'` is undecided
|
|
4853
|
-
|
|
4877
|
+
`status === 'loading'` is undecided: wait for it and redirect only on
|
|
4878
|
+
`status === 'unauthenticated'`. `'unavailable'` keeps the session candidate
|
|
4879
|
+
for retry, but `isAuthenticated` can be false and `user` can be null while a
|
|
4880
|
+
token/cookie-only restore has no cached profile. A restore failure other than
|
|
4881
|
+
401/403 never signs out.
|
|
4854
4882
|
|
|
4855
4883
|
The options may be a signal: `autoRefresh` turning on through it probes once
|
|
4856
4884
|
(when the visitor is signed out and decided), the way React re-renders
|
|
@@ -4916,15 +4944,18 @@ function useForm<T extends FormValuesConstraint<T> = Record<string, unknown>>(
|
|
|
4916
4944
|
|
|
4917
4945
|
Watches one field's value. Call it in an injection context.
|
|
4918
4946
|
|
|
4947
|
+
The controller and name may be signals, so a new controller or field is
|
|
4948
|
+
followed the way React re-renders `useWatch` with new arguments.
|
|
4949
|
+
|
|
4919
4950
|
```typescript
|
|
4920
4951
|
function useWatch<T extends FormValuesConstraint<T>, K extends keyof T>(
|
|
4921
|
-
form: FormController<T
|
|
4922
|
-
name: K
|
|
4952
|
+
form: MaybeSignal<FormController<T>>,
|
|
4953
|
+
name: MaybeSignal<K>,
|
|
4923
4954
|
): Signal<T[K]>
|
|
4924
4955
|
```
|
|
4925
4956
|
|
|
4926
|
-
- `form` — Form controller.
|
|
4927
|
-
- `name` — Field name to watch.
|
|
4957
|
+
- `form` — Form controller (or a signal of it).
|
|
4958
|
+
- `name` — Field name to watch (or a signal of it).
|
|
4928
4959
|
|
|
4929
4960
|
**Returns:** The current field value as a signal.
|
|
4930
4961
|
|
|
@@ -4932,15 +4963,18 @@ function useWatch<T extends FormValuesConstraint<T>, K extends keyof T>(
|
|
|
4932
4963
|
|
|
4933
4964
|
Reads one field's state. Call it in an injection context.
|
|
4934
4965
|
|
|
4966
|
+
The controller and name may be signals, so a new controller or field is
|
|
4967
|
+
followed the way React re-renders `useFieldState` with new arguments.
|
|
4968
|
+
|
|
4935
4969
|
```typescript
|
|
4936
4970
|
function useFieldState<T extends FormValuesConstraint<T>>(
|
|
4937
|
-
form: FormController<T
|
|
4938
|
-
name: keyof T
|
|
4971
|
+
form: MaybeSignal<FormController<T>>,
|
|
4972
|
+
name: MaybeSignal<keyof T>,
|
|
4939
4973
|
): Signal<FieldState<T[keyof T]>>
|
|
4940
4974
|
```
|
|
4941
4975
|
|
|
4942
|
-
- `form` — Form controller.
|
|
4943
|
-
- `name` — Field name.
|
|
4976
|
+
- `form` — Form controller (or a signal of it).
|
|
4977
|
+
- `name` — Field name (or a signal of it).
|
|
4944
4978
|
|
|
4945
4979
|
**Returns:** The field state as a signal.
|
|
4946
4980
|
|
|
@@ -5581,10 +5615,10 @@ previous selected value the equality function compares survives the change,
|
|
|
5581
5615
|
as React's ref does.
|
|
5582
5616
|
|
|
5583
5617
|
```typescript
|
|
5584
|
-
function useStore<T
|
|
5618
|
+
function useStore<T>(
|
|
5585
5619
|
store: MaybeSignal<Store<T>>,
|
|
5586
|
-
options?: MaybeSignal<UseStoreOptions<T,
|
|
5587
|
-
): Signal<
|
|
5620
|
+
options?: MaybeSignal<UseStoreOptions<T, T>>,
|
|
5621
|
+
): Signal<T>
|
|
5588
5622
|
```
|
|
5589
5623
|
|
|
5590
5624
|
- `store` — The store to subscribe to (or a signal of it).
|
|
@@ -6126,9 +6160,9 @@ function createPlatformService(): PlatformService
|
|
|
6126
6160
|
Creates a promise state manager for tracking async function state.
|
|
6127
6161
|
|
|
6128
6162
|
```typescript
|
|
6129
|
-
function createPromiseState<
|
|
6130
|
-
asyncFn: T
|
|
6131
|
-
): PromiseStateManager<
|
|
6163
|
+
function createPromiseState<Args extends unknown[], T>(
|
|
6164
|
+
asyncFn: (...args: Args) => Promise<T>,
|
|
6165
|
+
): PromiseStateManager<T, Args>
|
|
6132
6166
|
```
|
|
6133
6167
|
|
|
6134
6168
|
- `asyncFn` — The async function to track
|
|
@@ -6348,7 +6382,7 @@ Peer dependencies:
|
|
|
6348
6382
|
- `@molecule/app-logger` ^1.0.1
|
|
6349
6383
|
- `@molecule/app-platform` ^1.0.1
|
|
6350
6384
|
- `@molecule/app-push` ^1.0.1
|
|
6351
|
-
- `@molecule/app-routing` ^1.
|
|
6385
|
+
- `@molecule/app-routing` ^1.4.0
|
|
6352
6386
|
- `@molecule/app-state` ^1.2.0
|
|
6353
6387
|
- `@molecule/app-storage` ^1.1.1
|
|
6354
6388
|
- `@molecule/app-theme` ^1.0.1
|
|
@@ -45,11 +45,13 @@ export interface UsePromiseState<T> {
|
|
|
45
45
|
* state, so it is not proof that an outstanding request has stopped. Use an
|
|
46
46
|
* app-owned queue when every click must be accepted in order.
|
|
47
47
|
*
|
|
48
|
+
* @template V - What the async function resolves with.
|
|
49
|
+
* @template A - The async function's parameters.
|
|
48
50
|
* @param asyncFn - The async function to wrap.
|
|
49
51
|
* @returns A tuple of `[state, wrappedFunction]`; the state object is updated
|
|
50
52
|
* in place for this instance's lifetime.
|
|
51
53
|
*/
|
|
52
|
-
export declare const usePromise: <
|
|
54
|
+
export declare const usePromise: <V, A extends unknown[]>(asyncFn: (...args: A) => Promise<V>) => [UsePromiseState<V>, (...args: A) => Promise<V>];
|
|
53
55
|
/**
|
|
54
56
|
* An async-capable setState function: a value, an updater receiving the
|
|
55
57
|
* previous state, or a promise resolving to either. Errors from a resolved
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-async.d.ts","sourceRoot":"","sources":["../../src/hooks/use-async.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAwC,KAAK,MAAM,EAAa,MAAM,eAAe,CAAA;AAE5F,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAElF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAE5D,OAAO,EAAE,KAAK,WAAW,EAAmB,MAAM,oBAAoB,CAAA;AAGtE;;;;GAIG;AACH,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,2DAA2D;IAC3D,MAAM,EAAE,aAAa,CAAA;IACrB,gFAAgF;IAChF,KAAK,EAAE,CAAC,GAAG,IAAI,CAAA;IACf,2EAA2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,EAClC,SAAS,WAAW,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,KAC9C,wBAAwB,CAAC,CAAC,CA6C5B,CAAA"}
|
package/dist/hooks/use-async.js
CHANGED
|
@@ -28,6 +28,8 @@ import { useExternalStore } from './external-store.js';
|
|
|
28
28
|
* state, so it is not proof that an outstanding request has stopped. Use an
|
|
29
29
|
* app-owned queue when every click must be accepted in order.
|
|
30
30
|
*
|
|
31
|
+
* @template V - What the async function resolves with.
|
|
32
|
+
* @template A - The async function's parameters.
|
|
31
33
|
* @param asyncFn - The async function to wrap.
|
|
32
34
|
* @returns A tuple of `[state, wrappedFunction]`; the state object is updated
|
|
33
35
|
* in place for this instance's lifetime.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-async.js","sourceRoot":"","sources":["../../src/hooks/use-async.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAe,SAAS,EAAE,MAAM,eAAe,CAAA;AAG5F,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAGzE,OAAO,EAAoB,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAoBtD
|
|
1
|
+
{"version":3,"file":"use-async.js","sourceRoot":"","sources":["../../src/hooks/use-async.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAe,SAAS,EAAE,MAAM,eAAe,CAAA;AAG5F,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAGzE,OAAO,EAAoB,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAoBtD;;;;;;;;;;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E,CAAC,IAAO,EAAE,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC;QACtC,MAAM,EAAE,CAAC,MAAyB,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC;KACjE,CAAA;AACH,CAAC,CAAA"}
|
package/dist/hooks/use-auth.d.ts
CHANGED
|
@@ -59,8 +59,11 @@ export interface UseAuthResult<T = unknown, TRegister extends RegisterExtraShape
|
|
|
59
59
|
* Authentication state and actions. Call it in an injection context (a
|
|
60
60
|
* component field initializer or constructor).
|
|
61
61
|
*
|
|
62
|
-
* `status === 'loading'` is undecided
|
|
63
|
-
*
|
|
62
|
+
* `status === 'loading'` is undecided: wait for it and redirect only on
|
|
63
|
+
* `status === 'unauthenticated'`. `'unavailable'` keeps the session candidate
|
|
64
|
+
* for retry, but `isAuthenticated` can be false and `user` can be null while a
|
|
65
|
+
* token/cookie-only restore has no cached profile. A restore failure other than
|
|
66
|
+
* 401/403 never signs out.
|
|
64
67
|
*
|
|
65
68
|
* The options may be a signal: `autoRefresh` turning on through it probes once
|
|
66
69
|
* (when the visitor is signed out and decided), the way React re-renders
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-auth.d.ts","sourceRoot":"","sources":["../../src/hooks/use-auth.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAwC,KAAK,MAAM,EAAqB,MAAM,eAAe,CAAA;AAEpG,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EACnB,MAAM,oBAAoB,CAAA;AAG3B,OAAO,EAAE,KAAK,WAAW,EAAmB,MAAM,oBAAoB,CAAA;AAGtE;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,CAAC,GAAG,OAAO,EACX,SAAS,SAAS,kBAAkB,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,KACn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O,KAAK,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,CAEvD;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAAC,OAAO,CAAC,CAEpD"}
|
package/dist/hooks/use-auth.js
CHANGED
|
@@ -23,8 +23,11 @@ export function useAuthClient() {
|
|
|
23
23
|
* Authentication state and actions. Call it in an injection context (a
|
|
24
24
|
* component field initializer or constructor).
|
|
25
25
|
*
|
|
26
|
-
* `status === 'loading'` is undecided
|
|
27
|
-
*
|
|
26
|
+
* `status === 'loading'` is undecided: wait for it and redirect only on
|
|
27
|
+
* `status === 'unauthenticated'`. `'unavailable'` keeps the session candidate
|
|
28
|
+
* for retry, but `isAuthenticated` can be false and `user` can be null while a
|
|
29
|
+
* token/cookie-only restore has no cached profile. A restore failure other than
|
|
30
|
+
* 401/403 never signs out.
|
|
28
31
|
*
|
|
29
32
|
* The options may be a signal: `autoRefresh` turning on through it probes once
|
|
30
33
|
* (when the visitor is signed out and decided), the way React re-renders
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-auth.js","sourceRoot":"","sources":["../../src/hooks/use-auth.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAe,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAYpG,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAoB,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE1C;;;;;;GAMG;AACH,MAAM,UAAU,aAAa;IAI3B,OAAO,cAAc,CAAC,WAAW,EAAE,wBAAwB,CAA6B,CAAA;AAC1F,CAAC;AA8CD
|
|
1
|
+
{"version":3,"file":"use-auth.js","sourceRoot":"","sources":["../../src/hooks/use-auth.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,O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EAAE,QAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC;QAC1C,KAAK;QACL,MAAM;QACN,QAAQ;QACR,OAAO;QACP,aAAa;QACb,OAAO;QACP,UAAU;KACX,CAAA;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,OAAO;IACrB,OAAO,OAAO,EAAK,CAAC,IAAI,CAAA;AAC1B,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,kBAAkB;IAChC,OAAO,OAAO,EAAE,CAAC,eAAe,CAAA;AAClC,CAAC"}
|
|
@@ -158,17 +158,23 @@ export declare function useForm<T extends FormValuesConstraint<T> = Record<strin
|
|
|
158
158
|
/**
|
|
159
159
|
* Watches one field's value. Call it in an injection context.
|
|
160
160
|
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
161
|
+
* The controller and name may be signals, so a new controller or field is
|
|
162
|
+
* followed the way React re-renders `useWatch` with new arguments.
|
|
163
|
+
*
|
|
164
|
+
* @param form - Form controller (or a signal of it).
|
|
165
|
+
* @param name - Field name to watch (or a signal of it).
|
|
163
166
|
* @returns The current field value as a signal.
|
|
164
167
|
*/
|
|
165
|
-
export declare function useWatch<T extends FormValuesConstraint<T>, K extends keyof T>(form: FormController<T
|
|
168
|
+
export declare function useWatch<T extends FormValuesConstraint<T>, K extends keyof T>(form: MaybeSignal<FormController<T>>, name: MaybeSignal<K>): Signal<T[K]>;
|
|
166
169
|
/**
|
|
167
170
|
* Reads one field's state. Call it in an injection context.
|
|
168
171
|
*
|
|
169
|
-
*
|
|
170
|
-
*
|
|
172
|
+
* The controller and name may be signals, so a new controller or field is
|
|
173
|
+
* followed the way React re-renders `useFieldState` with new arguments.
|
|
174
|
+
*
|
|
175
|
+
* @param form - Form controller (or a signal of it).
|
|
176
|
+
* @param name - Field name (or a signal of it).
|
|
171
177
|
* @returns The field state as a signal.
|
|
172
178
|
*/
|
|
173
|
-
export declare function useFieldState<T extends FormValuesConstraint<T>>(form: FormController<T
|
|
179
|
+
export declare function useFieldState<T extends FormValuesConstraint<T>>(form: MaybeSignal<FormController<T>>, name: MaybeSignal<keyof T>): Signal<FieldState<T[keyof T]>>;
|
|
174
180
|
//# sourceMappingURL=use-forms.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-forms.d.ts","sourceRoot":"","sources":["../../src/hooks/use-forms.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAwC,KAAK,MAAM,EAAqB,MAAM,eAAe,CAAA;AAEpG,OAAO,KAAK,EACV,iBAAiB,EACjB,UAAU,EACV,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,SAAS,EACT,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EAChB,MAAM,qBAAqB,CAAA;AAO5B,OAAO,EAAE,KAAK,WAAW,EAAmB,MAAM,oBAAoB,CAAA;AAGtE;;;;;;;;;GASG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,CAAC,CAAE,SAAQ,WAAW,CAAC,CAAC,CAAC;IACvF,+GAA+G;IAC/G,YAAY,CAAC,EAAE,gBAAgB,CAAA;IAC/B,gHAAgH;IAChH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,CAAA;IACpD;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,cAAc,CAAC,CAAC,CAAC,CAAA;CAC5D;AAED;;;;;GAKG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI,CAAA;AAEvE;;;;;GAKG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,CAAC;IAE9D,4BAA4B;IAC5B,QAAQ,CAAC,S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