@atlasauth/angular 0.6.0 → 0.7.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.
@@ -1,4 +1,4 @@
1
- import type { SignOutEvent } from '@atlasauth/js';
1
+ import type { ReferralConsent, SignOutEvent } from '@atlasauth/js';
2
2
  import { InjectionToken } from '@angular/core';
3
3
  import type { Appearance } from './appearance';
4
4
  import type { Catalog } from './i18n';
@@ -9,6 +9,18 @@ import type { Catalog } from './i18n';
9
9
  export interface AtlasOptions {
10
10
  /** The instance's publishable key (`pk_…`). Required. */
11
11
  publishableKey: string;
12
+ /**
13
+ * Referral attribution: the prebuilt forms send the referral the visitor
14
+ * arrived with on sign-in / sign-up when the instance has referrals on.
15
+ * `false` turns that off.
16
+ */
17
+ referral?: false;
18
+ /**
19
+ * The app's own consent decision for the referral tracking cookie, used only
20
+ * when Cookie Munch is not on the page: `'granted'` (or a function returning
21
+ * it) lets the forms read the cookie. Default: the cookie is not read.
22
+ */
23
+ referralConsent?: ReferralConsent;
12
24
  /**
13
25
  * The instance's Frontend API: an absolute URL such as
14
26
  * `"https://auth.example.com"`, or `"same-origin"` / a path such as `"/atlas"`
@@ -8,6 +8,13 @@ import * as i0 from "@angular/core";
8
8
  */
9
9
  export declare class UserProfileComponent {
10
10
  protected readonly atlas: AtlasService;
11
+ protected readonly verifying: import("@angular/core").WritableSignal<string>;
12
+ protected readonly code: import("@angular/core").WritableSignal<string>;
13
+ protected readonly busy: import("@angular/core").WritableSignal<boolean>;
14
+ protected readonly verifyError: import("@angular/core").WritableSignal<string>;
15
+ private readonly client;
16
+ protected sendCode(id: string): Promise<void>;
17
+ protected confirmCode(): Promise<void>;
11
18
  protected t(key: string): string;
12
19
  protected cls(key: ElementKey, base: string): string;
13
20
  static ɵfac: i0.ɵɵFactoryDeclaration<UserProfileComponent, never>;
@@ -1,4 +1,4 @@
1
1
  import type { AtlasSdkInfo } from '@atlasauth/js';
2
2
  /** This package's version, sent as `X-Atlas-SDK` (kept in step with package.json by a test). */
3
- export declare const ATLAS_ANGULAR_VERSION = "0.6.0";
3
+ export declare const ATLAS_ANGULAR_VERSION = "0.7.0";
4
4
  export declare const ATLAS_ANGULAR_SDK: AtlasSdkInfo;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlasauth/angular",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Official Angular SDK for Atlas — the Angular peer of @atlasauth/react.",
5
5
  "license": "MIT",
6
6
  "module": "./dist/fesm2022/atlas-angular.mjs",
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "tslib": "^2.6.3",
22
22
  "@atlasauth/design": "0.2.0",
23
- "@atlasauth/js": "0.12.0",
23
+ "@atlasauth/js": "0.13.0",
24
24
  "@atlasauth/authz": "0.1.1"
25
25
  },
26
26
  "peerDependencies": {