@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.
Files changed (76) hide show
  1. package/CHANGELOG.md +15 -1
  2. package/dist/AtlasProvider.js +17 -1
  3. package/dist/AtlasProvider.js.map +1 -1
  4. package/dist/access.d.ts +26 -0
  5. package/dist/access.js +58 -0
  6. package/dist/access.js.map +1 -0
  7. package/dist/account-factors.d.ts +14 -0
  8. package/dist/account-factors.js +195 -0
  9. package/dist/account-factors.js.map +1 -0
  10. package/dist/account.d.ts +12 -1
  11. package/dist/account.js +92 -3
  12. package/dist/account.js.map +1 -1
  13. package/dist/app-launcher.d.ts +11 -0
  14. package/dist/app-launcher.js +28 -0
  15. package/dist/app-launcher.js.map +1 -0
  16. package/dist/billing.d.ts +25 -4
  17. package/dist/billing.js +40 -22
  18. package/dist/billing.js.map +1 -1
  19. package/dist/compat-amplify.d.ts +116 -0
  20. package/dist/compat-amplify.js +212 -0
  21. package/dist/compat-amplify.js.map +1 -0
  22. package/dist/compat-baas.d.ts +155 -0
  23. package/dist/compat-baas.js +401 -0
  24. package/dist/compat-baas.js.map +1 -0
  25. package/dist/compat-firebase.d.ts +67 -0
  26. package/dist/compat-firebase.js +166 -0
  27. package/dist/compat-firebase.js.map +1 -0
  28. package/dist/compat-msal.d.ts +84 -0
  29. package/dist/compat-msal.js +158 -0
  30. package/dist/compat-msal.js.map +1 -0
  31. package/dist/compat.d.ts +7 -1
  32. package/dist/compat.js +9 -1
  33. package/dist/compat.js.map +1 -1
  34. package/dist/components.d.ts +12 -1
  35. package/dist/components.js +26 -2
  36. package/dist/components.js.map +1 -1
  37. package/dist/connected-accounts.d.ts +36 -0
  38. package/dist/connected-accounts.js +108 -0
  39. package/dist/connected-accounts.js.map +1 -0
  40. package/dist/delegated-ui.d.ts +49 -0
  41. package/dist/delegated-ui.js +42 -0
  42. package/dist/delegated-ui.js.map +1 -0
  43. package/dist/flow.d.ts +37 -1
  44. package/dist/flow.js +111 -2
  45. package/dist/flow.js.map +1 -1
  46. package/dist/i18n.js +14 -0
  47. package/dist/i18n.js.map +1 -1
  48. package/dist/index.d.ts +3 -0
  49. package/dist/index.js +9 -1
  50. package/dist/index.js.map +1 -1
  51. package/dist/marketing.d.ts +31 -0
  52. package/dist/marketing.js +64 -0
  53. package/dist/marketing.js.map +1 -0
  54. package/dist/mfa-steps.d.ts +9 -0
  55. package/dist/mfa-steps.js +51 -0
  56. package/dist/mfa-steps.js.map +1 -1
  57. package/dist/organization-admin.d.ts +38 -0
  58. package/dist/organization-admin.js +192 -0
  59. package/dist/organization-admin.js.map +1 -0
  60. package/dist/organization.d.ts +8 -1
  61. package/dist/organization.js +15 -2
  62. package/dist/organization.js.map +1 -1
  63. package/dist/profile-completion.d.ts +11 -0
  64. package/dist/profile-completion.js +49 -0
  65. package/dist/profile-completion.js.map +1 -0
  66. package/dist/profile-traits.d.ts +37 -0
  67. package/dist/profile-traits.js +143 -0
  68. package/dist/profile-traits.js.map +1 -0
  69. package/dist/sign-up.js +48 -7
  70. package/dist/sign-up.js.map +1 -1
  71. package/dist/styles.js +7 -4
  72. package/dist/styles.js.map +1 -1
  73. package/dist/types.d.ts +8 -0
  74. package/dist/version.d.ts +1 -1
  75. package/dist/version.js +1 -1
  76. 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;right: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;}
85
- .atlas-menu-item{display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;font-size:.875rem;font-family:inherit;text-align:left;text-decoration:none;color:var(--atlas-color-text,#1c1c1f);background:transparent;border:none;border-radius:6px;cursor:pointer;}
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-left:1.1em;display:flex;flex-direction:column;gap:calc(var(--atlas-space-unit) * 1.5);}
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-left:0;padding-right:0;}
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);}
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":";;;AAkMA,8CAgBC;AAlND;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,sCAA2C;AAC3C,uDAAyG;AAE5F,QAAA,sBAAsB,GAAG,mBAAmB,CAAC;AAE7C,QAAA,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkE7B,CAAC,IAAI,EAAE,CAAC;AAET;;;;;;;;;;;;;;;GAeG;AACU,QAAA,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmD/B,CAAC,IAAI,EAAE,CAAC;AAET;;;;GAIG;AACH;;;GAGG;AACU,QAAA,cA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AAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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.19.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.19.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.20.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.23.1",
20
- "@atlasauth/localizations": "0.10.0",
21
- "@atlasauth/authz": "0.2.0"
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"