@getauthui/core 0.1.2 → 0.1.4
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 +25 -5
- package/dist/active-team.d.ts +4 -0
- package/dist/active-team.d.ts.map +1 -0
- package/dist/{authui-user-button-C64OcOdr.js → authui-user-button-CZBp3mFt.js} +1666 -810
- package/dist/authui.cdn.js +630 -283
- package/dist/authui.cdn.mjs +2609 -1753
- package/dist/authui.js +57 -48
- package/dist/components/authui-account.d.ts +15 -1
- package/dist/components/authui-account.d.ts.map +1 -1
- package/dist/components/authui-config.d.ts +1 -1
- package/dist/components/authui-config.d.ts.map +1 -1
- package/dist/components/authui-modal.d.ts +1 -0
- package/dist/components/authui-modal.d.ts.map +1 -1
- package/dist/components/authui-show.d.ts +10 -0
- package/dist/components/authui-show.d.ts.map +1 -1
- package/dist/components/authui-sign-in.d.ts +6 -0
- package/dist/components/authui-sign-in.d.ts.map +1 -1
- package/dist/components/authui-user-button.d.ts +10 -0
- package/dist/components/authui-user-button.d.ts.map +1 -1
- package/dist/components/sign-in.styles.d.ts.map +1 -1
- package/dist/errors.d.ts +6 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/i18n.d.ts.map +1 -1
- package/dist/icons.d.ts +3 -0
- package/dist/icons.d.ts.map +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/last-method.d.ts +7 -0
- package/dist/last-method.d.ts.map +1 -0
- package/dist/password-strength.d.ts +21 -0
- package/dist/password-strength.d.ts.map +1 -0
- package/dist/preview.d.ts.map +1 -1
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react.js +1 -1
- package/dist/store.d.ts +23 -0
- package/dist/store.d.ts.map +1 -1
- package/dist/styles/base.d.ts.map +1 -1
- package/dist/types.d.ts +63 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/authui.js
CHANGED
|
@@ -1,78 +1,87 @@
|
|
|
1
|
-
import { a as t, c as
|
|
2
|
-
import { A as m, b as
|
|
3
|
-
import * as
|
|
4
|
-
function
|
|
5
|
-
return t.configure(
|
|
1
|
+
import { a as t, c as n, o } from "./authui-user-button-CZBp3mFt.js";
|
|
2
|
+
import { A as m, b as C, d as v, e as E, f as w, g as M, h as L, i as b, j as O, C as T, E as x, F, P, k as _, l as B, m as j, n as k, p as q, q as y, r as R, s as z, t as D, u as G, v as H } from "./authui-user-button-CZBp3mFt.js";
|
|
3
|
+
import * as p from "appwrite";
|
|
4
|
+
function s(e) {
|
|
5
|
+
return t.configure(e), d;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
8
|
-
o(
|
|
7
|
+
function a(e) {
|
|
8
|
+
o(e);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
|
|
10
|
+
function u() {
|
|
11
|
+
n();
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function i() {
|
|
14
14
|
return t.signOut();
|
|
15
15
|
}
|
|
16
16
|
function c() {
|
|
17
17
|
return t.user;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function g() {
|
|
20
20
|
return t.getState();
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function A() {
|
|
23
23
|
return t.getClient();
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function f() {
|
|
26
26
|
return t.getAccount();
|
|
27
27
|
}
|
|
28
28
|
function h() {
|
|
29
29
|
return t.previewSignIn();
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
return t.on(
|
|
31
|
+
function I(e, r) {
|
|
32
|
+
return t.on(e, r);
|
|
33
33
|
}
|
|
34
|
-
const
|
|
35
|
-
init:
|
|
36
|
-
open:
|
|
37
|
-
close:
|
|
38
|
-
signOut:
|
|
34
|
+
const d = {
|
|
35
|
+
init: s,
|
|
36
|
+
open: a,
|
|
37
|
+
close: u,
|
|
38
|
+
signOut: i,
|
|
39
39
|
getUser: c,
|
|
40
|
-
getState:
|
|
41
|
-
getClient:
|
|
42
|
-
getAccount:
|
|
43
|
-
on:
|
|
40
|
+
getState: g,
|
|
41
|
+
getClient: A,
|
|
42
|
+
getAccount: f,
|
|
43
|
+
on: I,
|
|
44
44
|
previewSignIn: h,
|
|
45
45
|
store: t
|
|
46
46
|
};
|
|
47
47
|
export {
|
|
48
48
|
m as AuthStore,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
49
|
+
d as AuthUI,
|
|
50
|
+
C as AuthUIAccount,
|
|
51
|
+
v as AuthUIButton,
|
|
52
|
+
E as AuthUIConfigElement,
|
|
53
|
+
w as AuthUIElement,
|
|
54
|
+
M as AuthUIModal,
|
|
55
|
+
L as AuthUIShow,
|
|
56
|
+
b as AuthUISignIn,
|
|
57
|
+
O as AuthUIUserButton,
|
|
58
|
+
T as CRITICAL_FOUC_CSS,
|
|
59
|
+
x as ErrorTypes,
|
|
60
|
+
F as FOUC_CSS,
|
|
59
61
|
P as PreviewAccount,
|
|
60
|
-
|
|
62
|
+
p as appwrite,
|
|
61
63
|
t as authStore,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
_ as clearLastMethod,
|
|
65
|
+
u as close,
|
|
66
|
+
n as closeModal,
|
|
67
|
+
B as defaultStrings,
|
|
68
|
+
j as describeError,
|
|
69
|
+
f as getAccount,
|
|
70
|
+
A as getClient,
|
|
71
|
+
k as getLastMethod,
|
|
72
|
+
g as getState,
|
|
73
|
+
q as getStoredActiveTeamId,
|
|
69
74
|
c as getUser,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
75
|
+
s as init,
|
|
76
|
+
y as isConfigError,
|
|
77
|
+
I as on,
|
|
78
|
+
a as open,
|
|
73
79
|
o as openModal,
|
|
74
80
|
h as previewSignIn,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
81
|
+
R as providerLabel,
|
|
82
|
+
z as rememberLastMethod,
|
|
83
|
+
D as scorePassword,
|
|
84
|
+
G as setStoredActiveTeamId,
|
|
85
|
+
i as signOut,
|
|
86
|
+
H as toAuthUIError
|
|
78
87
|
};
|
|
@@ -35,8 +35,15 @@ export declare class AuthUIAccount extends AuthUIElement {
|
|
|
35
35
|
private sessions;
|
|
36
36
|
private identities;
|
|
37
37
|
private logs;
|
|
38
|
+
/** null = probing, true = show Activity, false = hide. */
|
|
38
39
|
private logsSupported;
|
|
40
|
+
private logsProbeStarted;
|
|
39
41
|
private confirmDelete;
|
|
42
|
+
private confirmRegenerate;
|
|
43
|
+
private confirmRemoveAuthenticator;
|
|
44
|
+
private confirmSignOutAll;
|
|
45
|
+
private confirmDisconnectId;
|
|
46
|
+
private verifyEmailCooldownUntil;
|
|
40
47
|
connectedCallback(): void;
|
|
41
48
|
protected willUpdate(changed: Map<string, unknown>): void;
|
|
42
49
|
/** Lazily load data for the active tab once a user is available. */
|
|
@@ -44,11 +51,17 @@ export declare class AuthUIAccount extends AuthUIElement {
|
|
|
44
51
|
private hydrate;
|
|
45
52
|
private get user();
|
|
46
53
|
private get isGuest();
|
|
54
|
+
private onTabsKeydown;
|
|
47
55
|
private select;
|
|
48
|
-
|
|
56
|
+
protected updated(changed: Map<string, unknown>): void;
|
|
57
|
+
private noticeTimer;
|
|
58
|
+
private setNotice;
|
|
59
|
+
private requireValid;
|
|
49
60
|
private run;
|
|
50
61
|
private loadSessions;
|
|
51
62
|
private loadIdentities;
|
|
63
|
+
/** Probe once so Activity is never shown on servers without /account/logs. */
|
|
64
|
+
private probeLogsSupport;
|
|
52
65
|
private loadLogs;
|
|
53
66
|
private factorsLoading;
|
|
54
67
|
private loadFactors;
|
|
@@ -67,6 +80,7 @@ export declare class AuthUIAccount extends AuthUIElement {
|
|
|
67
80
|
private onRecoveryCodes;
|
|
68
81
|
private onRegenerateRecoveryCodes;
|
|
69
82
|
private onCopyCodes;
|
|
83
|
+
private onCopySecret;
|
|
70
84
|
private onStepUpFactor;
|
|
71
85
|
private onStepUpVerify;
|
|
72
86
|
private onDeleteSession;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authui-account.d.ts","sourceRoot":"","sources":["../../src/components/authui-account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAG9D,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"authui-account.d.ts","sourceRoot":"","sources":["../../src/components/authui-account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAG9D,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAQ7C,KAAK,GAAG,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,aAAa,GAAG,UAAU,CAAC;AAO5E;;;GAGG;AACH,qBACa,aAAc,SAAQ,aAAa;IAC9C,MAAM,CAAC,MAAM,4BAiGX;IAEF,oDAAoD;IACvB,QAAQ,UAAS;IAClB,GAAG,EAAE,GAAG,CAAa;IAExC,OAAO,CAAC,MAAM,CAAkB;IAChC,OAAO,CAAC,IAAI,CAAM;IAClB,OAAO,CAAC,MAAM,CAAuB;IACrC,OAAO,CAAC,MAAM,CAA8B;IAG5C,OAAO,CAAC,SAAS,CAAM;IACvB,OAAO,CAAC,UAAU,CAAM;IACxB,OAAO,CAAC,aAAa,CAAM;IAC3B,OAAO,CAAC,UAAU,CAAM;IACxB,OAAO,CAAC,aAAa,CAAM;IAC3B,OAAO,CAAC,SAAS,CAAM;IACvB,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,SAAS,CAAM;IAGvB,OAAO,CAAC,WAAW,CAAM;IACzB,OAAO,CAAC,WAAW,CAAM;IACzB,OAAO,CAAC,kBAAkB,CAAM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AC;KACjC;CACF"}
|
|
@@ -3,7 +3,7 @@ import { AuthUIConfig } from '../types.js';
|
|
|
3
3
|
/**
|
|
4
4
|
* Declarative configuration. Drop it anywhere in the page:
|
|
5
5
|
*
|
|
6
|
-
* <authui-config endpoint="https://cloud.appwrite.io/v1" project="
|
|
6
|
+
* <authui-config endpoint="https://cloud.appwrite.io/v1" project="YOUR_PROJECT_ID"
|
|
7
7
|
* methods="email-password magic-url anonymous oauth:google oauth:github"></authui-config>
|
|
8
8
|
*/
|
|
9
9
|
export declare class AuthUIConfigElement extends LitElement {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authui-config.d.ts","sourceRoot":"","sources":["../../src/components/authui-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAO,MAAM,KAAK,CAAC;AAEtC,OAAO,KAAK,EACV,YAAY,EAKb,MAAM,aAAa,CAAC;AAErB;;;;;GAKG;AACH,qBACa,mBAAoB,SAAQ,UAAU;IACjD,MAAM,CAAC,MAAM,0BAIX;IAE0B,QAAQ,SAAM;IACd,OAAO,SAAM;IACc,WAAW,SAAM;IAClB,UAAU,SAAM;IACtE,oGAAoG;IACxE,OAAO,SAAoB;IACL,MAAM,SAAU;IACX,WAAW,SAAU;IAChD,GAAG,SAAU;IACiB,cAAc,SAAU;IACtD,IAAI,SAAM;IACV,IAAI,SAAM;IACV,KAAK,SAAU;IACf,MAAM,SAAM;IACZ,OAAO,SAAM;IACoB,iBAAiB,SAAM;IAChC,QAAQ,SAAM;IACZ,UAAU,SAAM;IAC1C,OAAO,SAAM;IAEzC,iBAAiB,IAAI,IAAI;IAKzB,SAAS,CAAC,OAAO,IAAI,IAAI;IAIzB,OAAO,CAAC,SAAS;
|
|
1
|
+
{"version":3,"file":"authui-config.d.ts","sourceRoot":"","sources":["../../src/components/authui-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAO,MAAM,KAAK,CAAC;AAEtC,OAAO,KAAK,EACV,YAAY,E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C,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF"}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import { LitElement, nothing } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* In-module FOUC guard. Prefer constructable stylesheets so strict CSP
|
|
4
|
+
* `style-src 'self'` does not block the rule. Fall back to a <style> tag
|
|
5
|
+
* for older browsers (Safari < 16.4). Pages that load the CDN as a deferred
|
|
6
|
+
* module should still put CRITICAL_FOUC_CSS in <head> so content stays
|
|
7
|
+
* hidden before this file executes.
|
|
8
|
+
*/
|
|
9
|
+
export declare const FOUC_CSS = "authui-show:not([ready]){display:none}";
|
|
10
|
+
/** Extra critical CSS for the page <head>, covering undefined custom elements. */
|
|
11
|
+
export declare const CRITICAL_FOUC_CSS: string;
|
|
2
12
|
/**
|
|
3
13
|
* Renders its children only while the auth status matches.
|
|
4
14
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authui-show.d.ts","sourceRoot":"","sources":["../../src/components/authui-show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,OAAO,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"authui-show.d.ts","sourceRoot":"","sources":["../../src/components/authui-show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,OAAO,EAAE,MAAM,KAAK,CAAC;AAKhD;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,2CAA2C,CAAC;AAEjE,kFAAkF;AAClF,eAAO,MAAM,iBAAiB,QAEqD,CAAC;AAwCpF;;;;;;;;;;;GAWG;AACH,qBACa,UAAW,SAAQ,UAAU;IACxC,qDAAqD;IACzB,IAAI,SAAM;IACtC,qDAAqD;IACzB,MAAM,SAAM;IAE/B,OAAO,CAAC,MAAM,CAA6C;IACpE,OAAO,CAAC,WAAW,CAA6B;IAEhD,iBAAiB,IAAI,IAAI;IAMzB,oBAAoB,IAAI,IAAI;IAM5B,gEAAgE;IAChE,IAAI,OAAO,IAAI,OAAO,CAOrB;IAED,SAAS,CAAC,OAAO,IAAI,IAAI;IAOzB,SAAS,CAAC,MAAM;CAGjB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAC;KAC3B;CACF"}
|
|
@@ -19,6 +19,8 @@ export declare class AuthUISignIn extends AuthUIElement {
|
|
|
19
19
|
private notice;
|
|
20
20
|
private showPassword;
|
|
21
21
|
private token;
|
|
22
|
+
private focusOnStep;
|
|
23
|
+
private resendCooldownUntil;
|
|
22
24
|
private challenge;
|
|
23
25
|
private recovery;
|
|
24
26
|
private firstInput?;
|
|
@@ -34,8 +36,11 @@ export declare class AuthUISignIn extends AuthUIElement {
|
|
|
34
36
|
/** React to store transitions: MFA pending, redirect results, sign in. */
|
|
35
37
|
private syncFromStore;
|
|
36
38
|
/** Navigate between screens and reset transient state. */
|
|
39
|
+
private dismissNotice;
|
|
37
40
|
go(step: Step): void;
|
|
38
41
|
private run;
|
|
42
|
+
/** Honour native constraint validation before calling Appwrite. */
|
|
43
|
+
private requireValid;
|
|
39
44
|
private onSignIn;
|
|
40
45
|
private onSignUp;
|
|
41
46
|
private onGuest;
|
|
@@ -69,6 +74,7 @@ export declare class AuthUISignIn extends AuthUIElement {
|
|
|
69
74
|
private renderReset;
|
|
70
75
|
private phraseBox;
|
|
71
76
|
private renderMagicUrl;
|
|
77
|
+
private onResendCode;
|
|
72
78
|
private renderCodeEntry;
|
|
73
79
|
private renderEmailOtp;
|
|
74
80
|
private renderPhone;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authui-sign-in.d.ts","sourceRoot":"","sources":["../../src/components/authui-sign-in.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGzD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAM7C,O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AW;IAyBnB,OAAO,CAAC,SAAS;CA8FlB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,YAAY,CAAC;KAChC;CACF"}
|
|
@@ -4,14 +4,24 @@ import { AuthUIElement } from './element.js';
|
|
|
4
4
|
* avatar with "Manage account" and "Sign out" while signed in.
|
|
5
5
|
*/
|
|
6
6
|
export declare class AuthUIUserButton extends AuthUIElement {
|
|
7
|
+
/** When set, list the user's Appwrite teams and let them pick an active one. */
|
|
8
|
+
showTeams: boolean;
|
|
7
9
|
static styles: import('lit').CSSResult[];
|
|
8
10
|
/** Avatar image URL; falls back to initials. */
|
|
9
11
|
src: string;
|
|
10
12
|
private menuOpen;
|
|
13
|
+
private teams;
|
|
14
|
+
private teamsLoading;
|
|
15
|
+
private activeTeamId;
|
|
11
16
|
connectedCallback(): void;
|
|
12
17
|
disconnectedCallback(): void;
|
|
13
18
|
private onDocumentClick;
|
|
14
19
|
private onKeydown;
|
|
20
|
+
private focusMenuItem;
|
|
21
|
+
protected updated(changed: Map<string, unknown>): void;
|
|
22
|
+
private toggleMenu;
|
|
23
|
+
private loadTeams;
|
|
24
|
+
private selectTeam;
|
|
15
25
|
protected render(): import('lit').TemplateResult<1>;
|
|
16
26
|
}
|
|
17
27
|
declare global {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authui-user-button.d.ts","sourceRoot":"","sources":["../../src/components/authui-user-button.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"authui-user-button.d.ts","sourceRoot":"","sources":["../../src/components/authui-user-button.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAK7C;;;GAGG;AACH,qBACa,gBAAiB,SAAQ,aAAa;IACjD,gFAAgF;IAC1B,SAAS,UAAS;IAExE,MAAM,CAAC,MAAM,4BA8GX;IAEF,gDAAgD;IACpB,GAAG,SAAM;IAE5B,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,KAAK,CAAyC;IACtD,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,YAAY,CAAuB;IAEpD,iBAAiB,IAAI,IAAI;IAOzB,oBAAoB,IAAI,IAAI;IAO5B,OAAO,CAAC,eAAe,CAErB;IAEF,OAAO,CAAC,SAAS,CAuCf;IAEF,OAAO,CAAC,aAAa;IAOrB,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAOtD,OAAO,CAAC,UAAU,CAGhB;YAEY,SAAS;IAiBvB,OAAO,CAAC,UAAU,CAUhB;IAEF,SAAS,CAAC,MAAM;CA4FjB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,gBAAgB,CAAC;KACxC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sign-in.styles.d.ts","sourceRoot":"","sources":["../../src/components/sign-in.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"sign-in.styles.d.ts","sourceRoot":"","sources":["../../src/components/sign-in.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,yBAsDxB,CAAC"}
|
package/dist/errors.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ export declare const ErrorTypes: {
|
|
|
25
25
|
readonly recoveryCodesNotFound: "user_recovery_codes_not_found";
|
|
26
26
|
readonly authenticatorNotFound: "user_authenticator_not_found";
|
|
27
27
|
readonly routeNotFound: "general_route_not_found";
|
|
28
|
+
readonly projectNotFound: "project_not_found";
|
|
29
|
+
readonly unknownOrigin: "general_unknown_origin";
|
|
28
30
|
readonly emailAlreadyVerified: "user_email_already_verified";
|
|
29
31
|
readonly sessionNotFound: "user_session_not_found";
|
|
30
32
|
readonly wafChallenged: "waf_request_challenged";
|
|
@@ -36,6 +38,7 @@ export declare const ErrorTypes: {
|
|
|
36
38
|
readonly authMethodUnsupported: "user_auth_method_unsupported";
|
|
37
39
|
readonly countMaxExceeded: "user_count_exceeded";
|
|
38
40
|
readonly targetAlreadyExists: "user_target_already_exists";
|
|
41
|
+
readonly argumentInvalid: "general_argument_invalid";
|
|
39
42
|
};
|
|
40
43
|
export declare function toAuthUIError(err: unknown): AuthUIError;
|
|
41
44
|
export declare function isErrorType(err: unknown, type: string): boolean;
|
|
@@ -44,5 +47,7 @@ export declare function isErrorType(err: unknown, type: string): boolean;
|
|
|
44
47
|
* Pass `context: "code"` when the user typed a one-time code so an invalid
|
|
45
48
|
* token reads as "wrong code" instead of "expired link".
|
|
46
49
|
*/
|
|
47
|
-
export declare function describeError(err: unknown, s: AuthUIStrings, context?: "link" | "code"): string;
|
|
50
|
+
export declare function describeError(err: unknown, s: AuthUIStrings, context?: "link" | "code" | "password"): string;
|
|
51
|
+
/** True when the error points at a wrong project, origin, endpoint or a dead network on first contact. */
|
|
52
|
+
export declare function isConfigError(err: unknown): boolean;
|
|
48
53
|
//# sourceMappingURL=errors.d.ts.map
|
package/dist/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,sDAAsD;AACtD,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,sDAAsD;AACtD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCb,CAAC;AAEX,wBAAgB,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG,WAAW,CAavD;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAE/D;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,GAAG,EAAE,OAAO,EACZ,CAAC,EAAE,aAAa,EAChB,OAAO,GAAE,MAAM,GAAG,MAAM,GAAG,UAAmB,GAC7C,MAAM,CA4DR;AAED,0GAA0G;AAC1G,wBAAgB,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAanD"}
|
package/dist/i18n.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../src/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,eAAO,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../src/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,eAAO,MAAM,cAAc,EAAE,aA8K5B,CAAC;AAEF,+CAA+C;AAC/C,wBAAgB,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAM,GAAG,MAAM,CAI7F;AAED,4CAA4C;AAC5C,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAkDjD,CAAC;AAEF,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEtD"}
|
package/dist/icons.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare const icons: {
|
|
|
15
15
|
settings: TemplateResult<1>;
|
|
16
16
|
x: TemplateResult<1>;
|
|
17
17
|
check: TemplateResult<1>;
|
|
18
|
+
users: TemplateResult<1>;
|
|
18
19
|
copy: TemplateResult<1>;
|
|
19
20
|
eye: TemplateResult<1>;
|
|
20
21
|
eyeOff: TemplateResult<1>;
|
|
@@ -35,4 +36,6 @@ export declare const brandIcons: Record<string, TemplateResult>;
|
|
|
35
36
|
export declare function providerIcon(provider: string): TemplateResult;
|
|
36
37
|
/** Circular alert glyph used by notices. */
|
|
37
38
|
export declare function toneIcon(tone: "success" | "error" | "info" | "warning"): TemplateResult;
|
|
39
|
+
/** First alphanumeric glyph for avatars; phone "+" falls back to the user icon. */
|
|
40
|
+
export declare function avatarInitial(label: string): string | TemplateResult<1>;
|
|
38
41
|
//# sourceMappingURL=icons.d.ts.map
|
package/dist/icons.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../src/icons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAiBrD,eAAO,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../src/icons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAiBrD,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkFjB,CAAC;AAMF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAuDrD,CAAC;AAEF,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,cAAc,CAE7D;AAED,4CAA4C;AAC5C,wBAAgB,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,cAAc,CAIvF;AAED,mFAAmF;AACnF,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,8BAG1C"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AuthUIConfig, AuthUIEventMap, AuthUIEventName, AuthUIView } from './types.js';
|
|
2
2
|
export { AuthUIElement } from './components/element.js';
|
|
3
3
|
export { AuthUIConfigElement } from './components/authui-config.js';
|
|
4
|
-
export { AuthUIShow } from './components/authui-show.js';
|
|
4
|
+
export { AuthUIShow, CRITICAL_FOUC_CSS, FOUC_CSS } from './components/authui-show.js';
|
|
5
5
|
export { AuthUISignIn } from './components/authui-sign-in.js';
|
|
6
6
|
export { AuthUIAccount } from './components/authui-account.js';
|
|
7
7
|
export { AuthUIModal } from './components/authui-modal.js';
|
|
@@ -9,7 +9,11 @@ export { AuthUIButton } from './components/authui-button.js';
|
|
|
9
9
|
export { AuthUIUserButton } from './components/authui-user-button.js';
|
|
10
10
|
export { authStore, AuthStore } from './store.js';
|
|
11
11
|
export { openModal, closeModal } from './modal-controller.js';
|
|
12
|
-
export { describeError, ErrorTypes, toAuthUIError } from './errors.js';
|
|
12
|
+
export { describeError, ErrorTypes, isConfigError, toAuthUIError } from './errors.js';
|
|
13
|
+
export { scorePassword } from './password-strength.js';
|
|
14
|
+
export { getLastMethod, rememberLastMethod, clearLastMethod } from './last-method.js';
|
|
15
|
+
export { getStoredActiveTeamId, setStoredActiveTeamId } from './active-team.js';
|
|
16
|
+
export type { PasswordStrength, PasswordStrengthLevel } from './password-strength.js';
|
|
13
17
|
export { PreviewAccount } from './preview.js';
|
|
14
18
|
export { defaultStrings, providerLabel } from './i18n.js';
|
|
15
19
|
/**
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC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AI3B,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE5F,0DAA0D;AAC1D,wBAAgB,IAAI,CAAC,MAAM,EAAE,YAAY;;;;;;;;;;;;EAGxC;AAED,qFAAqF;AACrF,wBAAgB,IAAI,CAAC,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAE5C;AAED,wBAAgB,KAAK,IAAI,IAAI,CAE5B;AAED,wBAAgB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAEvC;AAED,wBAAgB,OAAO,iFAEtB;AAED,wBAAgB,QAAQ,qCAEvB;AAED,wBAAgB,SAAS,qCAExB;AAED,6FAA6F;AAC7F,wBAAgB,UAAU,sCAEzB;AAED,iEAAiE;AACjE,wBAAgB,aAAa,kBAE5B;AAED,wBAAgB,EAAE,CAAC,CAAC,SAAS,eAAe,EAC1C,KAAK,EAAE,CAAC,EACR,QAAQ,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,IAAI,cAG9C;AAED,kEAAkE;AAClE,eAAO,MAAM,MAAM;;;;;;;;;;;;CAYlB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Persist the last successful sign-in method so the next visit can highlight it. */
|
|
2
|
+
export type LastMethodKey = "email-password" | "magic-url" | "email-otp" | "phone" | "anonymous" | `oauth:${string}`;
|
|
3
|
+
export declare function rememberLastMethod(method: string): void;
|
|
4
|
+
export declare function getLastMethod(): string | null;
|
|
5
|
+
/** Test helper. */
|
|
6
|
+
export declare function clearLastMethod(): void;
|
|
7
|
+
//# sourceMappingURL=last-method.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"last-method.d.ts","sourceRoot":"","sources":["../src/last-method.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAIrF,MAAM,MAAM,aAAa,GACvB,gBAAgB,GAAG,WAAW,GAAG,WAAW,GAAG,OAAO,GAAG,WAAW,GAAG,SAAS,MAAM,EAAE,CAAC;AAE3F,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAYvD;AAED,wBAAgB,aAAa,IAAI,MAAM,GAAG,IAAI,CAO7C;AAED,mBAAmB;AACnB,wBAAgB,eAAe,IAAI,IAAI,CAOtC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** Client-only password strength. No network, no dictionary API. */
|
|
2
|
+
export type PasswordStrengthLevel = 0 | 1 | 2 | 3 | 4;
|
|
3
|
+
export type PasswordStrengthLabelKey = "passwordStrengthTooWeak" | "passwordStrengthWeak" | "passwordStrengthFair" | "passwordStrengthStrong" | "passwordStrengthVeryStrong";
|
|
4
|
+
export interface PasswordStrength {
|
|
5
|
+
/** 0 (empty) … 4 (very strong). */
|
|
6
|
+
level: PasswordStrengthLevel;
|
|
7
|
+
/** 0–100 for the meter fill. */
|
|
8
|
+
percent: number;
|
|
9
|
+
labelKey: PasswordStrengthLabelKey;
|
|
10
|
+
checks: {
|
|
11
|
+
length: boolean;
|
|
12
|
+
long: boolean;
|
|
13
|
+
lower: boolean;
|
|
14
|
+
upper: boolean;
|
|
15
|
+
number: boolean;
|
|
16
|
+
symbol: boolean;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
/** Score a password for the live strength meter. */
|
|
20
|
+
export declare function scorePassword(password: string): PasswordStrength;
|
|
21
|
+
//# sourceMappingURL=password-strength.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"password-strength.d.ts","sourceRoot":"","sources":["../src/password-strength.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,MAAM,MAAM,qBAAqB,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEtD,MAAM,MAAM,wBAAwB,GAChC,yBAAyB,GACzB,sBAAsB,GACtB,sBAAsB,GACtB,wBAAwB,GACxB,4BAA4B,CAAC;AA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AM;;;;;;;;IAY9C,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;;;;;;;;IAK9C,aAAa,CAAC,MAAM,EAAE,MAAM;IAU5B,cAAc;IAId,cAAc;IAId,uBAAuB;IAIvB,uBAAuB;IAOvB,uBAAuB;IAIvB,uBAAuB;IAOvB,QAAQ;IAIR,WAAW,CAAC,KAAK,EAAE,MAAM;IAQzB,UAAU,CAAC,IAAI,EAAE,MAAM;IAOvB,WAAW,CAAC,KAAK,EAAE,MAAM;IAUzB,WAAW,CAAC,KAAK,EAAE,MAAM;IASzB,cAAc;IAQd,YAAY;IAaZ,YAAY;;;;IAOZ,aAAa,CAAC,SAAS,SAAY;IAYnC,cAAc;IAOd,cAAc;;;;IAOd,cAAc,CAAC,UAAU,EAAE,MAAM;IAOjC,QAAQ;;;;IASR,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC;IAU5C,kBAAkB,IAAI,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC;IAIlD,kBAAkB;IAQlB,SAAS,CAAC,GAAG,EAAE,OAAO;IAStB,sBAAsB,IAAI,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC;IAWjD,sBAAsB;IAStB,sBAAsB;IAQtB,sBAAsB,IAAI,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC;IAU1D,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC;IAOvD,sBAAsB,IAAI,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC;IAQhE,8CAA8C;IAC9C,KAAK,IAAI,IAAI;CAQd;AAED,6FAA6F;AAC7F,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAqBrD"}
|
package/dist/react/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare function useAuthUI(): {
|
|
|
12
12
|
mfaFactors: import("appwrite").Models.MfaFactors | null;
|
|
13
13
|
pending: import('../types.js').AuthUIPendingAction | null;
|
|
14
14
|
configured: boolean;
|
|
15
|
+
configError: string | null;
|
|
15
16
|
};
|
|
16
17
|
/** Configures Auth UI once and renders children. Put it near the root of your app. */
|
|
17
18
|
export declare function AuthUIProvider({ config, children, }: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAe,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzE,OAAO,gCAAgC,CAAC;AACxC,OAAO,8BAA8B,CAAC;AACtC,OAAO,iCAAiC,CAAC;AACzC,OAAO,iCAAiC,CAAC;AACzC,OAAO,+BAA+B,CAAC;AACvC,OAAO,gCAAgC,CAAC;AACxC,OAAO,qCAAqC,CAAC;AAE7C,iEAAiE;AACjE,wBAAgB,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAe,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzE,OAAO,gCAAgC,CAAC;AACxC,OAAO,8BAA8B,CAAC;AACtC,OAAO,iCAAiC,CAAC;AACzC,OAAO,iCAAiC,CAAC;AACzC,OAAO,+BAA+B,CAAC;AACvC,OAAO,gCAAgC,CAAC;AACxC,OAAO,qCAAqC,CAAC;AAE7C,iEAAiE;AACjE,wBAAgB,SAAS;;;;;;;;;;;EAUxB;AAED,sFAAsF;AACtF,wBAAgB,cAAc,CAAC,EAC7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/dist/react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElement as n, useEffect as i, Fragment as r, useState as s } from "react";
|
|
2
|
-
import { a as u, c as a, o as h } from "./authui-user-button-
|
|
2
|
+
import { a as u, c as a, o as h } from "./authui-user-button-CZBp3mFt.js";
|
|
3
3
|
function v() {
|
|
4
4
|
const [t, e] = s(() => u.getState());
|
|
5
5
|
return i(() => u.on("change", e), []), {
|
package/dist/store.d.ts
CHANGED
|
@@ -15,6 +15,11 @@ export declare class AuthStore {
|
|
|
15
15
|
private refreshPromise;
|
|
16
16
|
/** Configure the Appwrite client. Safe to call more than once; the last call wins. */
|
|
17
17
|
configure(config: AuthUIConfig): void;
|
|
18
|
+
/**
|
|
19
|
+
* Called by <authui-config> when it is on the page but missing endpoint or project.
|
|
20
|
+
* Moves status off "loading" so the UI can show a developer-facing message.
|
|
21
|
+
*/
|
|
22
|
+
notifyConfigIncomplete(): void;
|
|
18
23
|
private preview;
|
|
19
24
|
get isConfigured(): boolean;
|
|
20
25
|
/** True when running against the in-memory preview account. */
|
|
@@ -29,6 +34,19 @@ export declare class AuthStore {
|
|
|
29
34
|
* on the signed-in account. In preview mode this is the in-memory stand-in.
|
|
30
35
|
*/
|
|
31
36
|
getAccount(): Account | null;
|
|
37
|
+
private teams;
|
|
38
|
+
private activeTeamId;
|
|
39
|
+
/** List teams the signed-in user belongs to. Empty in preview or when signed out. */
|
|
40
|
+
listTeams(): Promise<Models.Team<Models.Preferences>[]>;
|
|
41
|
+
getActiveTeamId(): string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Remember the active team locally and emit `active-team`.
|
|
44
|
+
* Does not call Appwrite; membership is already required to appear in listTeams().
|
|
45
|
+
*/
|
|
46
|
+
setActiveTeam(team: {
|
|
47
|
+
$id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
} | null): void;
|
|
32
50
|
getStrings(): AuthUIStrings;
|
|
33
51
|
getState(): AuthUIState;
|
|
34
52
|
get user(): Models.User<Models.Preferences> | null;
|
|
@@ -40,6 +58,11 @@ export declare class AuthStore {
|
|
|
40
58
|
/** Re-fetch the current user and derive status. */
|
|
41
59
|
refresh(): Promise<void>;
|
|
42
60
|
private afterSignIn;
|
|
61
|
+
/**
|
|
62
|
+
* Drop a poisoned Appwrite session (e.g. after user_blocked). Deletes the
|
|
63
|
+
* current session when possible and clears the SDK fallback without reading it.
|
|
64
|
+
*/
|
|
65
|
+
private purgeLocalSession;
|
|
43
66
|
signInWithEmailPassword(email: string, password: string): Promise<void>;
|
|
44
67
|
signUp(email: string, password: string, name?: string): Promise<void>;
|
|
45
68
|
signInAnonymously(): Promise<void>;
|
package/dist/store.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../src/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../src/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAa,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAkBnE,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,cAAc,CAAC;AAKpE,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,WAAW,EACX,aAAa,EACb,iBAAiB,EAClB,MAAM,YAAY,CAAC;AAOpB,KAAK,QAAQ,CAAC,CAAC,SAAS,eAAe,IAAI,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AAW/E;;;GAGG;AACH,qBAAa,SAAS;IACpB,OAAO,CAAC,MAAM,CAAuB;IACrC,OAAO,CAAC,OAAO,CAAwB;IACvC,OAAO,CAAC,MAAM,CAA6B;IAC3C,OAAO,CAAC,KAAK,CAA+B;IAC5C,OAAO,CAAC,SAAS,CAAkD;IACnE,OAAO,C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GAAG,OAAO,CAAC,IAAI,CAAC;IAU3E,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC;IAYtC,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC;IAQtC,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAW1D,qGAAqG;IAC/F,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAYpC,4EAA4E;IAC5E,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAUnC,UAAU,CAAC,OAAO,EAAE,mBAAmB,GAAG,IAAI,GAAG,IAAI;IAIrD;;;OAGG;IACG,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC;IA6DxC,OAAO,CAAC,QAAQ;IAMhB,mBAAmB;IACnB,KAAK,IAAI,IAAI;CAUd;AAED,eAAO,MAAM,SAAS,WAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/styles/base.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/styles/base.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,IAAI,yBAoyBhB,CAAC"}
|