propro-common-components 0.3.36 → 0.3.38

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/main.d.ts CHANGED
@@ -20,6 +20,7 @@ import { default as SignInSignUpFormLayout } from './plasmicComponents/SignInSig
20
20
  import { default as TextInputFromProPro } from './plasmicComponents/TextInputFromProPro';
21
21
  import { default as extensionAuth } from './utils/extensionAuth';
22
22
  import { handleAuth } from './utils/handleAuth';
23
+ import { clearWebAuthCookies } from './utils/clearWebAuthCookies';
23
24
  import { RUNNING_IN_TAURI } from './constants/tauriConstants';
24
25
  import { AUTH_CLIENTS, AUTH_REDIRECT_URIS, generateOAuthState, validateOAuthState } from './constants/authConstants';
25
26
  import { AuthContext, AuthProvider } from './context/AuthContext';
@@ -31,6 +32,6 @@ import { configureAuth, getAuthConfig, resetAuthConfig } from './utils/configure
31
32
  import { setPRCConfig, getPRCConfig } from './utils/config/index.config';
32
33
  import { IconLoader, IconType, PlasmicEmojiAndIconSelection, StyleType, getAvailableStyles, loadIcon, searchIcon } from 'propro-icons';
33
34
 
34
- export { AccountManagementComponent, AppContext, AppProvider, AuthProvider, AuthContext, AvatarMenu, Footer, IconLoader, ListGridSwitch, Loading, PlasmicEmojiAndIconSelection, PlasmicSignInSignUpForm, PrivateRoute, RUNNING_IN_TAURI, SignInSignUpForm, SignInSignUpFormLayout, TextInputFromProPro, axiosInstance, checkAccessToken, extensionAuth, // function suite for authentication with extensions.
35
+ export { AccountManagementComponent, AppContext, AppProvider, AuthProvider, AuthContext, AvatarMenu, Footer, IconLoader, ListGridSwitch, Loading, PlasmicEmojiAndIconSelection, PlasmicSignInSignUpForm, PrivateRoute, RUNNING_IN_TAURI, SignInSignUpForm, SignInSignUpFormLayout, TextInputFromProPro, axiosInstance, checkAccessToken, clearWebAuthCookies, extensionAuth, // function suite for authentication with extensions.
35
36
  getAvailableStyles, getCookie, getPRCConfig, getStorage, handleAuth, isUserLoggedIn, useIsUserLoggedIn, AUTH_CLIENTS, AUTH_REDIRECT_URIS, generateOAuthState, validateOAuthState, AuthCallbackHandler, AuthCallback, AuthLandingPage, createAuthRouteLoader, configureAuth, getAuthConfig, resetAuthConfig, loadIcon, logout, removeStorage, searchIcon, setCookie, setPRCConfig, setStorage, useGet, useMutate, useMutateWithKeepAlive, };
36
37
  export type { DefaultSignInSignUpFormProps, IconType, StyleType };
@@ -1,5 +1,5 @@
1
- import { A as s, a as t, b as o, c as n, d as i, e as r, f as g, g as u, h as A, i as c, j as h, F as I, L as l, k as S, P as C, l as d, R as m, S as p, m as P, T as L, n as R, o as U, p as v, q as f, r as x, s as T, t as k, u as F, v as N, w as E, x as M, z as _, C as b, D as G, E as H, G as O, H as j, I as w, J as y, K as D, M as K, N as q, O as z } from "./main-Ctmpbv6B.js";
2
- import { IconLoader as W, PlasmicEmojiAndIconSelection as B, getAvailableStyles as Q, loadIcon as V, searchIcon as X } from "propro-icons";
1
+ import { A as s, a as t, b as o, c as n, d as i, e as r, f as g, g as u, h as A, i as c, j as h, F as I, L as l, k as S, P as C, l as d, R as m, S as p, m as P, T as L, n as R, o as U, p as v, q as f, r as k, s as x, t as T, u as F, v as N, w as b, x as E, y as M, B as _, D as G, E as H, G as y, H as O, I as j, J as w, K as D, M as K, N as W, O as q, Q as B } from "./main-JUKjbgzl.js";
2
+ import { IconLoader as Q, PlasmicEmojiAndIconSelection as z, getAvailableStyles as V, loadIcon as X, searchIcon as Y } from "propro-icons";
3
3
  export {
4
4
  s as AUTH_CLIENTS,
5
5
  t as AUTH_REDIRECT_URIS,
@@ -13,10 +13,10 @@ export {
13
13
  c as AuthProvider,
14
14
  h as AvatarMenu,
15
15
  I as Footer,
16
- W as IconLoader,
16
+ Q as IconLoader,
17
17
  l as ListGridSwitch,
18
18
  S as Loading,
19
- B as PlasmicEmojiAndIconSelection,
19
+ z as PlasmicEmojiAndIconSelection,
20
20
  C as PlasmicSignInSignUpForm,
21
21
  d as PrivateRoute,
22
22
  m as RUNNING_IN_TAURI,
@@ -25,28 +25,29 @@ export {
25
25
  L as TextInputFromProPro,
26
26
  R as axiosInstance,
27
27
  U as checkAccessToken,
28
- v as configureAuth,
29
- f as createAuthRouteLoader,
28
+ v as clearWebAuthCookies,
29
+ f as configureAuth,
30
+ k as createAuthRouteLoader,
30
31
  x as extensionAuth,
31
32
  T as generateOAuthState,
32
- k as getAuthConfig,
33
- Q as getAvailableStyles,
34
- F as getCookie,
35
- N as getPRCConfig,
33
+ F as getAuthConfig,
34
+ V as getAvailableStyles,
35
+ N as getCookie,
36
+ b as getPRCConfig,
36
37
  E as getStorage,
37
38
  M as handleAuth,
38
39
  _ as isUserLoggedIn,
39
- V as loadIcon,
40
- b as logout,
41
- G as removeStorage,
42
- H as resetAuthConfig,
43
- X as searchIcon,
40
+ X as loadIcon,
41
+ G as logout,
42
+ H as removeStorage,
43
+ y as resetAuthConfig,
44
+ Y as searchIcon,
44
45
  O as setCookie,
45
46
  j as setPRCConfig,
46
47
  w as setStorage,
47
- y as useGet,
48
- D as useIsUserLoggedIn,
49
- K as useMutate,
48
+ D as useGet,
49
+ K as useIsUserLoggedIn,
50
+ W as useMutate,
50
51
  q as useMutateWithKeepAlive,
51
- z as validateOAuthState
52
+ B as validateOAuthState
52
53
  };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Best-effort server-side clearing of auth cookies before redirecting to the
3
+ * login page.
4
+ *
5
+ * Client-side removal (js-cookie / Cookie.remove) is host-only and cannot
6
+ * delete httpOnly cookies or domain cookies set on `.mapmap.app` / `.propro.so`,
7
+ * so stale sessions survive a redirect unless the server clears them.
8
+ *
9
+ * This is a fire-and-forget helper: failures are swallowed because the caller
10
+ * is about to navigate away to sign in anyway.
11
+ */
12
+ export declare function clearWebAuthCookies(): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "propro-common-components",
3
- "version": "0.3.36",
3
+ "version": "0.3.38",
4
4
  "type": "module",
5
5
  "main": "dist/propro-common-components.js",
6
6
  "types": "dist/main.d.ts",