@atlasauth/react 0.20.0 → 0.22.0
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/CHANGELOG.md +15 -1
- package/dist/AtlasProvider.js +17 -1
- package/dist/AtlasProvider.js.map +1 -1
- package/dist/access.d.ts +26 -0
- package/dist/access.js +58 -0
- package/dist/access.js.map +1 -0
- package/dist/account-factors.d.ts +14 -0
- package/dist/account-factors.js +195 -0
- package/dist/account-factors.js.map +1 -0
- package/dist/account.d.ts +12 -1
- package/dist/account.js +92 -3
- package/dist/account.js.map +1 -1
- package/dist/app-launcher.d.ts +11 -0
- package/dist/app-launcher.js +28 -0
- package/dist/app-launcher.js.map +1 -0
- package/dist/billing.d.ts +25 -4
- package/dist/billing.js +40 -22
- package/dist/billing.js.map +1 -1
- package/dist/compat-amplify.d.ts +116 -0
- package/dist/compat-amplify.js +212 -0
- package/dist/compat-amplify.js.map +1 -0
- package/dist/compat-baas.d.ts +155 -0
- package/dist/compat-baas.js +401 -0
- package/dist/compat-baas.js.map +1 -0
- package/dist/compat-firebase.d.ts +67 -0
- package/dist/compat-firebase.js +166 -0
- package/dist/compat-firebase.js.map +1 -0
- package/dist/compat-msal.d.ts +84 -0
- package/dist/compat-msal.js +158 -0
- package/dist/compat-msal.js.map +1 -0
- package/dist/compat.d.ts +7 -1
- package/dist/compat.js +9 -1
- package/dist/compat.js.map +1 -1
- package/dist/components.d.ts +12 -1
- package/dist/components.js +26 -2
- package/dist/components.js.map +1 -1
- package/dist/connected-accounts.d.ts +36 -0
- package/dist/connected-accounts.js +108 -0
- package/dist/connected-accounts.js.map +1 -0
- package/dist/delegated-ui.d.ts +49 -0
- package/dist/delegated-ui.js +42 -0
- package/dist/delegated-ui.js.map +1 -0
- package/dist/flow.d.ts +37 -1
- package/dist/flow.js +111 -2
- package/dist/flow.js.map +1 -1
- package/dist/i18n.js +14 -0
- package/dist/i18n.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/marketing.d.ts +31 -0
- package/dist/marketing.js +64 -0
- package/dist/marketing.js.map +1 -0
- package/dist/mfa-steps.d.ts +9 -0
- package/dist/mfa-steps.js +51 -0
- package/dist/mfa-steps.js.map +1 -1
- package/dist/organization-admin.d.ts +38 -0
- package/dist/organization-admin.js +192 -0
- package/dist/organization-admin.js.map +1 -0
- package/dist/organization.d.ts +8 -1
- package/dist/organization.js +15 -2
- package/dist/organization.js.map +1 -1
- package/dist/profile-completion.d.ts +11 -0
- package/dist/profile-completion.js +49 -0
- package/dist/profile-completion.js.map +1 -0
- package/dist/profile-traits.d.ts +37 -0
- package/dist/profile-traits.js +143 -0
- package/dist/profile-traits.js.map +1 -0
- package/dist/sign-up.js +48 -7
- package/dist/sign-up.js.map +1 -1
- package/dist/styles.js +7 -4
- package/dist/styles.js.map +1 -1
- package/dist/types.d.ts +8 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
package/dist/styles.js
CHANGED
|
@@ -38,6 +38,9 @@ exports.ATLAS_BASE_CSS = `
|
|
|
38
38
|
|
|
39
39
|
.atlas-card{display:flex;flex-direction:column;gap:calc(var(--atlas-spacing-unit,4px) * 4);width:100%;max-width:25rem;margin:0 auto;padding:calc(var(--atlas-spacing-unit,4px) * 8);background:var(--atlas-color-background,#fff);border:1px solid var(--atlas-color-border,#e4e4e9);border-radius:var(--atlas-border-radius,8px);box-shadow:0 1px 2px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.06);}
|
|
40
40
|
.atlas-card form{display:flex;flex-direction:column;gap:calc(var(--atlas-spacing-unit,4px) * 3);}
|
|
41
|
+
.atlas-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
|
|
42
|
+
.atlas-profile-traits,.atlas-profile-completion{display:flex;flex-direction:column;gap:calc(var(--atlas-spacing-unit,4px) * 3);}
|
|
43
|
+
.atlas-profile-traits fieldset{display:flex;flex-direction:column;gap:calc(var(--atlas-spacing-unit,4px) * 2);margin:0;padding:0;border:0;}
|
|
41
44
|
|
|
42
45
|
.atlas-title{margin:0;font-size:1.25rem;font-weight:600;text-align:center;color:var(--atlas-color-text,#1c1c1f);}
|
|
43
46
|
|
|
@@ -81,8 +84,8 @@ button.atlas-link:focus-visible{outline:2px solid var(--atlas-color-focus-ring,v
|
|
|
81
84
|
.atlas-avatar{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:none;border-radius:999px;overflow:hidden;background:var(--atlas-color-primary,#5b5bd6);color:var(--atlas-color-text-on-primary,#fff);font-weight:600;font-size:.875rem;cursor:pointer;}
|
|
82
85
|
.atlas-avatar img{width:100%;height:100%;object-fit:cover;display:block;}
|
|
83
86
|
|
|
84
|
-
.atlas-menu{position:absolute;
|
|
85
|
-
.atlas-menu-item{display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;font-size:.875rem;font-family:inherit;text-align:
|
|
87
|
+
.atlas-menu{position:absolute;inset-inline-end:0;top:100%;margin-top:6px;min-width:12rem;display:flex;flex-direction:column;padding:4px;background:var(--atlas-color-background,#fff);border:1px solid var(--atlas-color-border,#e4e4e9);border-radius:var(--atlas-border-radius,8px);box-shadow:0 8px 24px rgba(0,0,0,.12);z-index:50;}
|
|
88
|
+
.atlas-menu-item{display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;font-size:.875rem;font-family:inherit;text-align:start;text-decoration:none;color:var(--atlas-color-text,#1c1c1f);background:transparent;border:none;border-radius:6px;cursor:pointer;}
|
|
86
89
|
.atlas-menu-item:hover:not(:disabled){background:color-mix(in srgb,var(--atlas-color-text,#1c1c1f) 7%,transparent);}
|
|
87
90
|
.atlas-menu-item:disabled{opacity:.5;cursor:default;}
|
|
88
91
|
.atlas-audit-list{list-style:none;margin:8px 0;padding:0;display:flex;flex-direction:column;gap:2px;}
|
|
@@ -130,7 +133,7 @@ exports.ATLAS_DESIGN_CSS = `
|
|
|
130
133
|
:where(.atlas-root[data-atlas-design]) .atlas-section-title,:where(.atlas-root[data-atlas-design]) .atlas-plan-name{font-size:var(--atlas-font-size-lg);margin:0;}
|
|
131
134
|
:where(.atlas-root[data-atlas-design]) .atlas-subtitle,:where(.atlas-root[data-atlas-design]) .atlas-text{color:var(--atlas-color-muted);margin:0;}
|
|
132
135
|
:where(.atlas-root[data-atlas-design]) .atlas-link{color:var(--atlas-color-primary-text);}
|
|
133
|
-
:where(.atlas-root[data-atlas-design]) .atlas-list{margin:0;padding-
|
|
136
|
+
:where(.atlas-root[data-atlas-design]) .atlas-list{margin:0;padding-inline-start:1.1em;display:flex;flex-direction:column;gap:calc(var(--atlas-space-unit) * 1.5);}
|
|
134
137
|
:where(.atlas-root[data-atlas-design]) .atlas-list-item{color:var(--atlas-color-text);}
|
|
135
138
|
|
|
136
139
|
:where(.atlas-root[data-atlas-design]) .atlas-field{gap:calc(var(--atlas-space-unit) * 1.5);font-size:var(--atlas-font-size-sm);}
|
|
@@ -142,7 +145,7 @@ exports.ATLAS_DESIGN_CSS = `
|
|
|
142
145
|
:where(.atlas-root[data-atlas-design]) :is(.atlas-input:focus,.atlas-account-input:focus){border-color:var(--atlas-color-primary);}
|
|
143
146
|
:where(.atlas-root[data-atlas-design]) :is(.atlas-input,.atlas-account-input,.atlas-button,.atlas-button-secondary,.atlas-social-button,.atlas-menu-item,.atlas-tab,.atlas-avatar):focus-visible{outline:2px solid var(--atlas-focus-outline-color,var(--atlas-color-primary));outline-offset:2px;}
|
|
144
147
|
:where(.atlas-root[data-atlas-input="filled"]) :is(.atlas-input,.atlas-account-input){background:color-mix(in srgb,var(--atlas-color-text) 6%,var(--atlas-color-input-background));border-color:transparent;}
|
|
145
|
-
:where(.atlas-root[data-atlas-input="underline"]) :is(.atlas-input,.atlas-account-input){background:transparent;border-width:0 0 max(1px,var(--atlas-border-width)) 0;border-radius:0;padding-
|
|
148
|
+
:where(.atlas-root[data-atlas-input="underline"]) :is(.atlas-input,.atlas-account-input){background:transparent;border-width:0 0 max(1px,var(--atlas-border-width)) 0;border-radius:0;padding-inline-start:0;padding-inline-end:0;}
|
|
146
149
|
:where(.atlas-root[data-atlas-input="underline"]) :is(.atlas-input,.atlas-account-input):focus{box-shadow:0 1px 0 0 var(--atlas-color-primary);}
|
|
147
150
|
|
|
148
151
|
:where(.atlas-root[data-atlas-design]) .atlas-button{min-height:var(--atlas-control-height);font-size:var(--atlas-font-size-base);color:var(--atlas-color-text-on-primary,var(--atlas-color-primary-ink));background:var(--atlas-color-primary);border-width:var(--atlas-border-width);border-radius:var(--atlas-radius-control);text-transform:var(--atlas-button-text-transform);letter-spacing:var(--atlas-button-letter-spacing);}
|
package/dist/styles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":";;;AAqMA,8CAgBC;AArND;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,sCAA2C;AAC3C,uDAAyG;AAE5F,QAAA,sBAAsB,GAAG,mBAAmB,CAAC;AAE7C,QAAA,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqE7B,CAAC,IAAI,EAAE,CAAC;AAET;;;;;;;;;;;;;;;GAeG;AACU,QAAA,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmD/B,CAAC,IAAI,EAAE,CAAC;AAET;;;;GAIG;AACH;;;GAGG;AACU,QAAA,cAAc,GAAG;;;;;EAK5B,eAAU,EAAE,CAAC;AAEF,QAAA,gBAAgB,GAAG,GAAG,sBAAc,KAAK,wBAAgB,KAAK,sBAAc,EAAE,CAAC;AAE5F;;;;GAIG;AACH,IAAI,kBAAkB,GAAG,KAAK,CAAC;AAE/B,SAAgB,iBAAiB;IAC/B,IAAI,OAAO,QAAQ,KAAK,WAAW;QAAE,OAAO;IAC5C,sFAAsF;IACtF,IAAA,iCAAuB,EAAC,QAAQ,CAAC,CAAC;IAClC,IAAI,kBAAkB,IAAI,QAAQ,CAAC,cAAc,CAAC,8BAAsB,CAAC;QAAE,OAAO;IAClF,2EAA2E;IAC3E,kFAAkF;IAClF,IAAI,IAAA,4BAAkB,EAAC,QAAQ,EAAE,8BAAsB,EAAE,wBAAgB,CAAC,EAAE,CAAC;QAC3E,kBAAkB,GAAG,IAAI,CAAC;QAC1B,OAAO;IACT,CAAC;IACD,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAC9C,KAAK,CAAC,EAAE,GAAG,8BAAsB,CAAC;IAClC,IAAA,yBAAe,EAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IACjC,KAAK,CAAC,WAAW,GAAG,wBAAgB,CAAC;IACrC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AACnC,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -75,6 +75,14 @@ export interface AtlasBillingPlan {
|
|
|
75
75
|
trial_days?: number | null;
|
|
76
76
|
annual_available?: boolean;
|
|
77
77
|
annual_amount?: string | null;
|
|
78
|
+
/** A display-only promotion (label, percent_off | amount_off, ends_at, code). */
|
|
79
|
+
promotion?: {
|
|
80
|
+
label: string;
|
|
81
|
+
percent_off?: number;
|
|
82
|
+
amount_off?: number;
|
|
83
|
+
ends_at?: number;
|
|
84
|
+
code?: string;
|
|
85
|
+
} | null;
|
|
78
86
|
}
|
|
79
87
|
/** §commerce a stored Stripe invoice for the subject (billing history). */
|
|
80
88
|
export interface AtlasBillingInvoice {
|
package/dist/version.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ import type { AtlasSdkInfo } from '@atlasauth/js';
|
|
|
3
3
|
* This package's version, sent as `X-Atlas-SDK` so the Frontend API can answer
|
|
4
4
|
* an upgrade advisory. Kept in step with package.json by version.test.ts.
|
|
5
5
|
*/
|
|
6
|
-
export declare const ATLAS_REACT_VERSION = "0.
|
|
6
|
+
export declare const ATLAS_REACT_VERSION = "0.22.0";
|
|
7
7
|
/** How this SDK names itself to the Frontend API. */
|
|
8
8
|
export declare const ATLAS_REACT_SDK: AtlasSdkInfo;
|
package/dist/version.js
CHANGED
|
@@ -5,7 +5,7 @@ exports.ATLAS_REACT_SDK = exports.ATLAS_REACT_VERSION = void 0;
|
|
|
5
5
|
* This package's version, sent as `X-Atlas-SDK` so the Frontend API can answer
|
|
6
6
|
* an upgrade advisory. Kept in step with package.json by version.test.ts.
|
|
7
7
|
*/
|
|
8
|
-
exports.ATLAS_REACT_VERSION = '0.
|
|
8
|
+
exports.ATLAS_REACT_VERSION = '0.22.0';
|
|
9
9
|
/** How this SDK names itself to the Frontend API. */
|
|
10
10
|
exports.ATLAS_REACT_SDK = { name: '@atlasauth/react', version: exports.ATLAS_REACT_VERSION };
|
|
11
11
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlasauth/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@atlasauth/design": "0.3.0",
|
|
19
|
-
"@atlasauth/js": "0.
|
|
20
|
-
"@atlasauth/
|
|
21
|
-
"@atlasauth/
|
|
19
|
+
"@atlasauth/js": "0.25.0",
|
|
20
|
+
"@atlasauth/authz": "0.3.0",
|
|
21
|
+
"@atlasauth/localizations": "0.11.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": ">=18"
|