@smart-factor/gem-ui-components 0.0.131 → 0.0.133

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.
@@ -2,7 +2,7 @@ import './assets/SignEditor.css';var N4 = Object.defineProperty;
2
2
  var I4 = (o, e, t) => e in o ? N4(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
3
  var Eu = (o, e, t) => I4(o, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { jsx as Vt, jsxs as ia, Fragment as o_ } from "react/jsx-runtime";
5
- import { G as Ib, u as i_, a as rA, Q as uc, b as hs, c as Lp, D as KE, B as sp, d as ow, e as M4, z as Dc, f as a_, s as $E, I as Of, A as WE, F as O4, U as Ax, g as q4, h as R4, i as Q4, j as G4, T as V4, K as D4, k as H4 } from "./index-qjWASEA1.js";
5
+ import { G as Ib, u as i_, a as rA, Q as uc, b as hs, c as Lp, D as KE, B as sp, d as ow, e as M4, z as Dc, f as a_, s as $E, I as Of, A as WE, F as O4, U as Ax, g as q4, h as R4, i as Q4, j as G4, T as V4, K as D4, k as H4 } from "./index-DS7hqtfK.js";
6
6
  import { q as XE, s as Di, I as tu, J as r_, H as YE, S as lp } from "./Stack-Bsa5WF4E.js";
7
7
  import { createContext as U4, useContext as z4, useState as vl, useCallback as zu, useEffect as oc, useMemo as cp, useRef as K4 } from "react";
8
8
  import "react-dom";
@@ -11,20 +11,8 @@ export declare class SessionService {
11
11
  static readonly IS_AUTHENTICATED_KEY = "isAuthenticated";
12
12
  static readonly X_AUTH_LOGIN_KEY = "x-auth-login";
13
13
  static readonly X_AUTH_TOKEN_KEY = "x-auth-token";
14
- /**
15
- * Returns true if the current page was opened because of session termination
16
- * (e.g. user clicked "Renew session" in the SessionModal).
17
- */
18
14
  static wasOpenedDueToSessionTermination(): boolean;
19
- /**
20
- * Marks the session as terminated (isAuthenticated = false), clears auth data,
21
- * and broadcasts so the SessionModal opens.
22
- */
23
15
  static terminate(): void;
24
- /**
25
- * Initializes session: logs in with credentials (via auth API), then broadcasts renewed.
26
- * Use this as the single entry point for "log in" so session is steered only from SessionService.
27
- */
28
16
  static init(login: string, password: string): Promise<AuthResult>;
29
17
  static isSessionTerminated(): boolean;
30
18
  }
@@ -4,10 +4,6 @@ export type SessionInitVariables = {
4
4
  login: string;
5
5
  password: string;
6
6
  };
7
- export type SessionInitResult = {
8
- login: string;
9
- token: string;
10
- };
11
7
  /**
12
8
  * Hook to initialize session (log in) via SessionService.init.
13
9
  * Use this so session is steered only from SessionService; no direct auth usage in UI.