@molecule/app-svelte 3.1.0 → 3.2.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 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-10-31T13:49:38.487Z
6
+ Generated: 2026-11-04T14:09:11.213Z
7
7
  -->
8
8
 
9
9
  # @molecule/app-svelte
@@ -151,165 +151,65 @@ Provides login/logout/register flows, token management, profile
151
151
  updates, and auth state subscription.
152
152
 
153
153
  ```typescript
154
- interface AuthClient<T = UserProfile, TRegister extends RegisterExtraShape<TRegister> = Record<never, never>> {
155
- /**
156
- * Returns the current authentication state snapshot.
157
- *
158
- * READING the state starts the client's one session restore when nobody has called
159
- * {@link initialize} yet — lazily and exactly once, sharing the promise an explicit
160
- * `initialize()` returns. A hook (`useAuth()`), a subscriber, `isAuthenticated()` and
161
- * `getUser()` are reads too, so a client whose entry file dropped the template's
162
- * `authClient.initialize()` line still restores instead of reporting `'loading'`
163
- * forever.
164
- */
165
- getState(): AuthState<T>;
166
- /**
167
- * Returns whether the user is currently authenticated.
168
- */
169
- isAuthenticated(): boolean;
170
- /**
171
- * Gets the current user.
172
- */
173
- getUser(): T | null;
174
- /**
175
- * Optional ownership marker for the current session. Compare values only within
176
- * this client: replacing or ending a session changes it, including re-adopting
177
- * the same token and user. Profile updates and same-session refreshes keep it.
178
- * Consumers can use it to discard stale async work without treating editable
179
- * user fields as an immutable account identifier. Providers without this
180
- * capability require the consumer's own stable identity check.
181
- */
182
- getSessionRevision?(): number;
183
- /**
184
- * Updates the cached user object (state + persistent storage) without
185
- * hitting the network. Intended for local refreshes after a per-app
186
- * mutation (e.g., the user just PATCHed their own profile and the
187
- * server returned the canonical row). A non-null profile does NOT change
188
- * tokens or sign the client in: `authenticated` and `status` are unchanged,
189
- * so an anonymous client stays anonymous. Use {@link login} /
190
- * {@link register} for a credential exchange, or {@link setSession} when
191
- * the token was issued outside the client.
192
- *
193
- * Passing `null` on a signed-in client, or while any session operation is
194
- * pending, ends the local session: it clears the access token, refresh token
195
- * and cached user, stops automatic refresh, and settles `authenticated: false`
196
- * with `status: 'unauthenticated'` in one notification. Every older operation
197
- * loses session ownership, and a persistent sign-out marker prevents a reload
198
- * from restoring its credentials or a late cookie. A late credential exchange
199
- * is revoked best-effort when a logout endpoint is configured, without blocking
200
- * the caller. This method does not otherwise call the server for a settled
201
- * session; use {@link logout} for explicit server revocation. On a settled
202
- * anonymous client, `null` only clears the cached profile and leaves tokens
203
- * and auth state unchanged.
204
- */
205
- setUser(user: T | null): void;
206
- /**
207
- * Gets the current access token.
208
- */
209
- getAccessToken(): string | null;
210
- /**
211
- * Stores the access token in the configured token storage adapter (in a
212
- * browser, Web Storage; `'memory'` where no browser store exists). Use this
213
- * to seed the token after an out-of-band exchange (e.g. the OAuth
214
- * code→token redirect) instead of writing to `localStorage` directly,
215
- * which would violate the storage contract and make a stored bearer token
216
- * JS-readable (XSS-exfiltratable). Pass `null` to clear it.
217
- *
218
- * This changes token storage only: passing `null` does not by itself sign a
219
- * signed-in client out, and a non-null token does not sign an anonymous
220
- * client in (`authenticated` and `status` are unchanged). Use {@link logout}
221
- * to end a session, or {@link setUser} with `null` for local-only sign-out.
222
- * Use {@link login} / {@link register} for a credential exchange, or call
223
- * {@link setSession} with the token and user to establish an already-issued
224
- * session.
225
- */
226
- setAccessToken(token: string | null): void;
227
- /**
228
- * Adopts a session an out-of-band exchange already established: stores the
229
- * access token (and the refresh token when given), caches the user, and
230
- * sets the COMPLETE state — `initialized`, `authenticated`, `status:
231
- * 'authenticated'`, no error — in one update, with one subscriber
232
- * notification. Every hook reading the shared client sees the user as
233
- * signed in immediately.
234
- *
235
- * This is the way to seed an OAuth/custom sign-in. Calling
236
- * {@link setAccessToken} and {@link setUser} instead does NOT sign the
237
- * client in.
238
- */
239
- setSession(session: AuthSessionSeed<T>): void;
240
- /**
241
- * Gets the refresh token.
242
- */
243
- getRefreshToken(): string | null;
244
- /**
245
- * Logs in with credentials.
246
- */
247
- login(credentials: LoginCredentials): Promise<AuthResult<T>>;
248
- /**
249
- * Logs out the current user. The server request is best-effort: a missing
250
- * logout route (404), any other HTTP failure, or a network error never makes
251
- * this method reject. It always clears the access token, refresh token and
252
- * cached user, stops automatic refresh, and publishes one settled
253
- * `authenticated: false`, `status: 'unauthenticated'` transition. Every pending
254
- * session operation loses ownership; a persistent marker prevents reload from
255
- * restoring an older session, and late credentials are revoked best-effort.
256
- *
257
- * When the API has no logout route, set {@link AuthClientConfigOptions.logoutEndpoint}
258
- * to `null` (or `''`) to skip the request. Local sign-out still happens.
259
- */
260
- logout(): Promise<void>;
261
- /**
262
- * Registers a new user. Accepts the base fields plus the app's own fields
263
- * (`TRegister`) at the top level — see {@link RegisterData}.
264
- */
265
- register(data: RegisterData<TRegister>): Promise<AuthResult<T>>;
266
- /**
267
- * Refreshes the access token.
268
- */
269
- refresh(): Promise<AuthResult<T>>;
270
- /**
271
- * Requests a password reset.
272
- */
273
- requestPasswordReset(data: PasswordResetRequest): Promise<void>;
274
- /**
275
- * Confirms a password reset.
276
- */
277
- confirmPasswordReset(data: PasswordResetConfirm): Promise<void>;
278
- /**
279
- * Updates the current user's profile.
280
- * Returns the saved profile: the answer applied onto the signed-in user field
281
- * by field, with or without an `id` — a field it carries replaces the value
282
- * (`null` clears it), one it omits or leaves `undefined` is kept, so a field
283
- * cleared by omission must arrive as `null`. A non-object answer is returned
284
- * as it came. An answer for a replaced or ended session leaves the current one
285
- * untouched.
286
- */
287
- updateProfile(data: Partial<T>): Promise<T>;
288
- /**
289
- * Changes the current user's password.
290
- */
291
- changePassword(oldPassword: string, newPassword: string): Promise<void>;
292
- /**
293
- * Initializes auth state (e.g., from stored tokens).
294
- *
295
- * LAZY and IDEMPOTENT: the first read of the state ({@link getState},
296
- * {@link subscribe}, `useAuth()`) starts this same restore when nobody has called
297
- * `initialize()`, and every later call shares the one promise instead of sending a
298
- * second request. An app that keeps the template's explicit call behaves exactly as
299
- * before; an app that loses that line still restores its session.
300
- *
301
- * With a stored token AND a stored user it marks the session `'authenticated'`
302
- * SYNCHRONOUSLY — before its first `await` — so the first render is the
303
- * signed-in UI and no page waits on a verification round trip. Any check
304
- * (a refresh, the cookie-restore probe) settles behind that render, and only an
305
- * explicit 401/403 ends the session; a network/5xx/404 failure keeps it and
306
- * reports `'unavailable'`. With no stored user the client stays `'loading'`
307
- * until the cookie restore decides.
308
- *
309
- * Do not put this call (or a `/me` request of your own) in front of the first
310
- // … truncated — the full declaration is in node_modules/@molecule/app-svelte/dist
154
+ interface AuthClient<
155
+ T = UserProfile,
156
+ TRegister extends RegisterExtraShape<TRegister> = Record<never, never>,
157
+ > {
158
+ /** Returns the current authentication state snapshot. */
159
+ getState(): AuthState<T>
160
+ /** Returns whether the user is currently authenticated. */
161
+ isAuthenticated(): boolean
162
+ /** Gets the current user. */
163
+ getUser(): T | null
164
+ /** Optional ownership marker for the current session. */
165
+ getSessionRevision?(): number
166
+ /** Updates the cached user object (state + persistent storage) without hitting the network. */
167
+ setUser(user: T | null): void
168
+ /** Gets the current access token. */
169
+ getAccessToken(): string | null
170
+ /** Stores the access token in the configured token storage adapter (in a browser, Web Storage; `'memory'` where no browser store exists). */
171
+ setAccessToken(token: string | null): void
172
+ /** Adopts a session an out-of-band exchange already established: stores the access token (and the refresh token when given), caches the user, and sets the COMPLET… */
173
+ setSession(session: AuthSessionSeed<T>): void
174
+ /** Gets the refresh token. */
175
+ getRefreshToken(): string | null
176
+ /** Logs in with credentials. */
177
+ login(credentials: LoginCredentials): Promise<AuthResult<T>>
178
+ /** Logs out the current user. */
179
+ logout(): Promise<void>
180
+ /** Registers a new user. */
181
+ register(data: RegisterData<TRegister>): Promise<AuthResult<T>>
182
+ /** Refreshes the access token. */
183
+ refresh(): Promise<AuthResult<T>>
184
+ /** Requests a password reset. */
185
+ requestPasswordReset(data: PasswordResetRequest): Promise<void>
186
+ /** Confirms a password reset. */
187
+ confirmPasswordReset(data: PasswordResetConfirm): Promise<void>
188
+ /** Updates the current user's profile. */
189
+ updateProfile(data: Partial<T>): Promise<T>
190
+ /** Changes the current user's password. */
191
+ changePassword(oldPassword: string, newPassword: string): Promise<void>
192
+ /** Initializes auth state (e.g., from stored tokens). */
193
+ initialize(): Promise<void>
194
+ /** Re-checks a restored session against the server, in the background — the boot-time validation an app with a stored token needs when a revoked or expired token… */
195
+ validateSession?(): Promise<void>
196
+ /** Resolves when the session restore started by `initialize()` has settled — the point after which the client knows whether this visitor is signed in. */
197
+ whenRestored?(): Promise<void>
198
+ /** Subscribes to auth state changes. */
199
+ subscribe(callback: (state: AuthState<T>) => void): () => void
200
+ /** Subscribes to auth state changes (alias for subscribe). */
201
+ onAuthChange(callback: (state: AuthState<T>) => void): () => void
202
+ /** Gets the current access token (alias for getAccessToken). */
203
+ getToken?(): string | null
204
+ /** Adds an auth event listener. */
205
+ addEventListener(listener: AuthEventListener<T>): () => void
206
+ /** Destroys the auth client. */
207
+ destroy(): void
208
+ }
311
209
  ```
312
210
 
211
+ _(Member comments are shortened to their first sentence to fit; the full declaration is in `node_modules/@molecule/app-svelte/dist`.)_
212
+
313
213
  #### `FormController`
314
214
 
315
215
  Form controller interface.
@@ -13,6 +13,15 @@ interface AuthStores<T, TRegister extends RegisterExtraShape<TRegister> = Record
13
13
  user: Readable<T | null>;
14
14
  isAuthenticated: Readable<boolean>;
15
15
  isLoading: Readable<boolean>;
16
+ /**
17
+ * True once the auth status has left `'loading'` — the session is decided: signed in,
18
+ * signed out, or unavailable. Gate a public page's first render on it
19
+ * (`{#if $sessionReady}`) so a handler that checks `user` never runs against a session
20
+ * restore still in flight. `'unavailable'` also becomes ready and may still have a
21
+ * null user. Without a session hint, an anonymous visitor settles in microtasks without
22
+ * a request.
23
+ */
24
+ sessionReady: Readable<boolean>;
16
25
  error?: Readable<string | null>;
17
26
  login: (credentials: LoginCredentials) => Promise<AuthResult<T>>;
18
27
  logout: () => Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/stores/auth.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAW,KAAK,QAAQ,EAAY,MAAM,cAAc,CAAA;AAE/D,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EACnB,MAAM,oBAAoB,CAAA;AAI3B;;GAEG;AACH,UAAU,UAAU,CAAC,CAAC,EAAE,SAAS,SAAS,kBAAkB,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC;IAC5F,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAA;IAC7B,IAAI,EAAE,QAAQ,CAAC,CAAC,GAAG,IAAI,CAAC,CAAA;IACxB,eAAe,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IAClC,SAAS,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IAC5B,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;IAC/B,KAAK,EAAE,CAAC,WAAW,EAAE,gBAAgB,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA;IAChE,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IAC3B,QAAQ,EAAE,CAAC,IAAI,EAAE,YAAY,CAAC,SAAS,CAAC,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA;IACnE,OAAO,EAAE,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA;CACtC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,gBAAgB,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IAAI,CAAC,CAAA;IAC/B,KAAK,EAAE,CAAC,WAAW,EAAE,gBAAgB,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA;IAChE,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IAC3B,QAAQ,EAAE,CAAC,IAAI,EAAE,YAAY,CAAC,SAAS,CAAC,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA;IACnE,OAAO,EAAE,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA;CACtC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,gBAAgB,CAC9B,CAAC,GAAG,OAAO,EACX,SAAS,SAAS,kBAAkB,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,KACnE,UAAU,CAAC,CAAC,EAAE,SAAS,CAAC,GAAG;IAC9B,KAAK,EAAE,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;CAC/B,CAwDA;AAED;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,CAAC,GAAG,OAAO,EACX,SAAS,SAAS,kBAAkB,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,EACtE,MAAM,EAAE,UAAU,CAAC,CAAC,EAAE,SAAS,CAAC,GAAG,UAAU,CAAC,CAAC,EAAE,SAAS,CAAC,CA6B5D"}
@@ -28,15 +28,22 @@ export function createAuthStores() {
28
28
  const client = getAuthClient();
29
29
  // Main state store
30
30
  const state = readable(client.getState(), (set) => {
31
- return client.onAuthChange(() => {
31
+ const unsubscribe = client.onAuthChange(() => {
32
32
  set(client.getState());
33
33
  });
34
+ // Refresh after subscribing, including after a period with no subscribers.
35
+ set(client.getState());
36
+ return unsubscribe;
34
37
  });
35
38
  // Derived stores
36
39
  const user = derived(state, ($state) => $state.user);
37
40
  const isAuthenticated = derived(state, ($state) => $state.authenticated);
38
41
  const isLoading = derived(state, ($state) => $state.loading);
39
42
  const error = derived(state, ($state) => $state.error);
43
+ // The session is decided — signed in, signed out, or unavailable. Derived from the SAME
44
+ // state store as `user`, so the flip and the user it decided land in one update: a page
45
+ // gated on `$sessionReady` reads the restored user when restoration succeeds.
46
+ const sessionReady = derived(state, ($state) => $state.status !== 'loading');
40
47
  // Actions
41
48
  const login = (credentials) => {
42
49
  return client.login(credentials);
@@ -55,6 +62,7 @@ export function createAuthStores() {
55
62
  user,
56
63
  isAuthenticated,
57
64
  isLoading,
65
+ sessionReady,
58
66
  error,
59
67
  login,
60
68
  logout,
@@ -72,18 +80,23 @@ export function createAuthStores() {
72
80
  */
73
81
  export function createAuthStoresFromClient(client) {
74
82
  const state = readable(client.getState(), (set) => {
75
- return client.onAuthChange(() => {
83
+ const unsubscribe = client.onAuthChange(() => {
76
84
  set(client.getState());
77
85
  });
86
+ // A readable caches its last value while stopped; auth keeps changing.
87
+ set(client.getState());
88
+ return unsubscribe;
78
89
  });
79
90
  const user = derived(state, ($state) => $state.user);
80
91
  const isAuthenticated = derived(state, ($state) => $state.authenticated);
81
92
  const isLoading = derived(state, ($state) => $state.loading);
93
+ const sessionReady = derived(state, ($state) => $state.status !== 'loading');
82
94
  return {
83
95
  state,
84
96
  user,
85
97
  isAuthenticated,
86
98
  isLoading,
99
+ sessionReady,
87
100
  login: (credentials) => client.login(credentials),
88
101
  logout: () => client.logout(),
89
102
  register: (data) => client.register(data),
@@ -1 +1 @@
1
- {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/stores/auth.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAiB,QAAQ,EAAE,MAAM,cAAc,CAAA;AAW/D,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAiB7C;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,gBAAgB;IAM9B,MAAM,MAAM,GAAG,aAAa,EAAgB,CAAA;IAE5C,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A;IAC1E,MAAM,YAAY,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,MAAoB,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,KAAK,SAAS,CAAC,CAAA;IAE1F,OAAO;QACL,KAAK;QACL,IAAI;QACJ,eAAe;QACf,SAAS;QACT,YAAY;QACZ,KAAK,EAAE,CAAC,WAA6B,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC;QACnE,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE;QAC7B,QAAQ,EAAE,CAAC,IAA6B,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;QAClE,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE;KAChC,CAAA;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/app-svelte",
3
- "version": "3.1.0",
3
+ "version": "3.2.1",
4
4
  "description": "Svelte framework bindings for molecule.dev",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",