@ikonai/sdk-react-ui 1.11.0 → 1.11.2

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.
@@ -103,7 +103,7 @@ export declare function parseOAuthError(): OAuthErrorResult | null;
103
103
  /**
104
104
  * True when the URL asks this tab to skip the local-dev auto-login (`?ikon-signed-out`).
105
105
  *
106
- * A local `ikon app run` signs the developer straight in, which is what you want while building —
106
+ * A local `ikon run` signs the developer straight in, which is what you want while building —
107
107
  * and exactly what you cannot have while checking the signed-out product. Without this, seeing the
108
108
  * public site means logging out by hand in a throwaway browser profile, so it tends not to happen
109
109
  * and the guest experience ships unlooked-at. Local dev only: it suppresses the injected developer
package/auth/storage.d.ts CHANGED
@@ -66,7 +66,7 @@ export declare function isSignedInBootLikely(): boolean;
66
66
  */
67
67
  export declare function clearAuthSession(): void;
68
68
  /**
69
- * Mark dev auto-login as having been attempted for the given `ikon app run` id (stored in sessionStorage
69
+ * Mark dev auto-login as having been attempted for the given `ikon run` id (stored in sessionStorage
70
70
  * so it survives the logout's localStorage.clear() + reload). A no-op when no run id is available.
71
71
  */
72
72
  export declare function markAutoLoginAttempted(runId: string | undefined): void;
package/auth/types.d.ts CHANGED
@@ -15,7 +15,7 @@ export type AuthMethod = LoginMethod | 'sso';
15
15
  * Authenticated user information.
16
16
  *
17
17
  * `provider` covers the interactive login methods plus 'anonymous' (guest backend session) and 'dev'
18
- * (local `ikon app run` developer auto-login).
18
+ * (local `ikon run` developer auto-login).
19
19
  */
20
20
  export interface AuthUser {
21
21
  id: string;
@@ -60,12 +60,12 @@ export interface AuthConfig {
60
60
  /** Optional custom auth URL. If not provided, derived from environment. */
61
61
  authUrl?: string;
62
62
  /**
63
- * Developer JWT injected by a local `ikon app run` to auto-login as the `ikon login` developer.
63
+ * Developer JWT injected by a local `ikon run` to auto-login as the `ikon login` developer.
64
64
  * Local dev only — never set in deployed builds.
65
65
  */
66
66
  devLoginToken?: string;
67
67
  /**
68
- * Unique id for the current `ikon app run`. Auto-login is suppressed once the user logs out within a
68
+ * Unique id for the current `ikon run`. Auto-login is suppressed once the user logs out within a
69
69
  * run, but a new run mints a new id and re-enables it. Paired with {@link devLoginToken}.
70
70
  */
71
71
  devLoginRunId?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"base-div.d.ts","sourceRoot":"","sources":["../../../../sdk/sdk-react-ui/src/base/base-div.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAmbnE,wBAAgB,qBAAqB,IAAI,uBAAuB,CAmD/D;AAsDD,wBAAgB,mBAAmB,IAAI,uBAAuB,EAAE,CAO/D"}
1
+ {"version":3,"file":"base-div.d.ts","sourceRoot":"","sources":["../../../../sdk/sdk-react-ui/src/base/base-div.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAocnE,wBAAgB,qBAAqB,IAAI,uBAAuB,CAmD/D;AAsDD,wBAAgB,mBAAmB,IAAI,uBAAuB,EAAE,CAO/D"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Arbitrates `std.focus-hint` nodes: the ranking, cooldown and announcement half of the FocusHint
3
+ * contract. The renderer submits one hint per effect run; the dispatcher decides whether it acts,
4
+ * and when.
5
+ *
6
+ * - Hints submitted in the same tick compete. Within each scroll container only the highest
7
+ * `ranking` scrolls it, on every re-send, which is what keeps a streaming reply followed. Focus
8
+ * and the announcement go to the highest-ranked hint with something new, a hint key or region
9
+ * text its region has not acted on yet. Ties go to the one submitted last, as rendering in
10
+ * document order did before.
11
+ * - `cooldownMs` is per region, the element the hint was placed in. A hint arriving inside the
12
+ * window is held and acts when the window ends, replacing any hint already held there, so a
13
+ * churning region acts at most once per window and still lands on its latest state.
14
+ * - The announcement waits until the region's text has been still for a settle window (the longer
15
+ * of `ANNOUNCEMENT_SETTLE_MS` and the cooldown), so a streamed reply is read once it stops, not
16
+ * every time a chunk lands. It says what arrived: only the appended part when the text extends
17
+ * what that region last announced, otherwise the whole text. Past the cap the oldest part is
18
+ * dropped, so the newest content is what is read.
19
+ * - The announcement goes through one shared, visually hidden live region per politeness, so it
20
+ * reaches a screen reader whatever the hinted element's own markup is.
21
+ */
22
+ export type FocusHintPoliteness = 'polite' | 'assertive';
23
+ export interface FocusHintSubmission {
24
+ /** The element the hint was placed in: its text is announced and its cooldown is kept. */
25
+ readonly region: HTMLElement;
26
+ readonly hintKey: string | undefined;
27
+ readonly ranking: number;
28
+ readonly cooldownMs: number;
29
+ /** Null for a hint that does not scroll. */
30
+ readonly scrollGroup: object | null;
31
+ /** Null for a hint that moves focus without an announcement. */
32
+ readonly politeness: FocusHintPoliteness | null;
33
+ /** Scrolls the region into view, returning what undoes its listeners. */
34
+ scroll(): (() => void) | undefined;
35
+ focus(): void;
36
+ }
37
+ export interface FocusHintHandle {
38
+ cancel(): void;
39
+ }
40
+ export declare function submitFocusHint(submission: FocusHintSubmission): FocusHintHandle;
41
+ //# sourceMappingURL=focus-hint-dispatch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focus-hint-dispatch.d.ts","sourceRoot":"","sources":["../../../../sdk/sdk-react-ui/src/base/focus-hint-dispatch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,WAAW,CAAC;AAEzD,MAAM,WAAW,mBAAmB;IAClC,0FAA0F;IAC1F,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,4CAA4C;IAC5C,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,gEAAgE;IAChE,QAAQ,CAAC,UAAU,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAChD,yEAAyE;IACzE,MAAM,IAAI,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IACnC,KAAK,IAAI,IAAI,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,IAAI,IAAI,CAAC;CAChB;AA8CD,wBAAgB,eAAe,CAAC,UAAU,EAAE,mBAAmB,GAAG,eAAe,CAoBhF"}