@visma-swno/gaia-chat-ui 0.1.5 → 0.1.6
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/core/auth/auth.store.d.ts +1 -2
- package/dist/core/auth/auth.store.d.ts.map +1 -1
- package/dist/core/auth/auth.types.d.ts +1 -1
- package/dist/core/auth/auth.types.d.ts.map +1 -1
- package/dist/core/auth/auth.utils.d.ts +7 -0
- package/dist/core/auth/auth.utils.d.ts.map +1 -0
- package/dist/core/auth/strategies/visitor.strategy.d.ts +0 -1
- package/dist/core/auth/strategies/visitor.strategy.d.ts.map +1 -1
- package/dist/core/auth/strategies/visma-user.strategy.d.ts.map +1 -1
- package/dist/gaia-chat-ui.es.js +601 -548
- package/dist/gaia-chat-ui.es.js.map +1 -1
- package/dist/gaia-chat-ui.umd.js +100 -100
- package/dist/gaia-chat-ui.umd.js.map +1 -1
- package/package.json +2 -1
|
@@ -2,12 +2,11 @@ import { Store } from '../lib/store';
|
|
|
2
2
|
import { AuthState } from './auth.types';
|
|
3
3
|
export declare class AuthStore extends Store<AuthState> {
|
|
4
4
|
private readonly _authStorageKey;
|
|
5
|
-
private readonly
|
|
5
|
+
private readonly _refreshBufferMs;
|
|
6
6
|
private expirationTimer?;
|
|
7
7
|
constructor();
|
|
8
8
|
setToken(token: {
|
|
9
9
|
accessToken: string;
|
|
10
|
-
expires: Date;
|
|
11
10
|
isVisitor: boolean;
|
|
12
11
|
}): void;
|
|
13
12
|
clearToken(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.store.d.ts","sourceRoot":"","sources":["../../../src/core/auth/auth.store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAmB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"auth.store.d.ts","sourceRoot":"","sources":["../../../src/core/auth/auth.store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAmB,MAAM,cAAc,CAAC;AAG1D,qBAAa,SAAU,SAAQ,KAAK,CAAC,SAAS,CAAC;IAC7C,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA8B;IAC9D,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAc;IAC/C,OAAO,CAAC,eAAe,CAAC,CAAiB;;IAclC,QAAQ,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,OAAO,CAAA;KAAE;IAkB3D,UAAU;IAaV,aAAa,IAAI,OAAO;IAQxB,cAAc,IAAI,OAAO;IAIhC,OAAO,CAAC,eAAe;IAKvB,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,gBAAgB;IAmBxB,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,qBAAqB;CAS9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.types.d.ts","sourceRoot":"","sources":["../../../src/core/auth/auth.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,SAAU,SAAQ,KAAK;IACtC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"auth.types.d.ts","sourceRoot":"","sources":["../../../src/core/auth/auth.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,SAAU,SAAQ,KAAK;IACtC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the expiration time of a token in milliseconds
|
|
3
|
+
* @param token - The token to get the expiration time of
|
|
4
|
+
* @returns The expiration time of the token in milliseconds
|
|
5
|
+
*/
|
|
6
|
+
export declare const getTokenExpiration: (token: string) => number | null;
|
|
7
|
+
//# sourceMappingURL=auth.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.utils.d.ts","sourceRoot":"","sources":["../../../src/core/auth/auth.utils.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,OAAO,MAAM,kBAG/C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visitor.strategy.d.ts","sourceRoot":"","sources":["../../../../src/core/auth/strategies/visitor.strategy.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,MAAM,MAAM,oBAAoB,GAAG;IACjC,WAAW,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"visitor.strategy.d.ts","sourceRoot":"","sources":["../../../../src/core/auth/strategies/visitor.strategy.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,MAAM,MAAM,oBAAoB,GAAG;IACjC,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,qBAAa,eAAgB,YAAW,YAAY;IAC5C,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAahC,eAAe,IAAI,OAAO;IAIpB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAQxB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;CAG9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visma-user.strategy.d.ts","sourceRoot":"","sources":["../../../../src/core/auth/strategies/visma-user.strategy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,qBAAa,iBAAkB,YAAW,YAAY;IACxC,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAAV,UAAU,EAAE,MAAM;IAEzC,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"visma-user.strategy.d.ts","sourceRoot":"","sources":["../../../../src/core/auth/strategies/visma-user.strategy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,qBAAa,iBAAkB,YAAW,YAAY;IACxC,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAAV,UAAU,EAAE,MAAM;IAEzC,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAWhC,eAAe,IAAI,OAAO;IAIpB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAIxB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;CAG9B"}
|