@forgerock/login-widget 1.2.0-beta.9 → 1.2.1

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/package.json CHANGED
@@ -13,5 +13,5 @@
13
13
  },
14
14
  "license": "MIT",
15
15
  "dependencies": {},
16
- "version": "1.2.0-beta.9"
16
+ "version": "1.2.1"
17
17
  }
package/types.d.ts CHANGED
@@ -619,13 +619,16 @@ interface CallbackMetadata {
619
619
  idx: number;
620
620
  platform?: Record<string, unknown>;
621
621
  }
622
+ interface StartOptions extends StepOptions {
623
+ recaptchaAction?: string;
624
+ }
622
625
  interface JourneyStore extends Pick<Writable<JourneyStoreValue$1>, 'subscribe'> {
623
626
  next: (prevStep?: StepTypes, nextOptions?: StepOptions) => void;
624
627
  pop: () => void;
625
628
  push: (changeOptions: StepOptions) => void;
626
629
  reset: () => void;
627
630
  resume: (url: string, resumeOptions?: StepOptions) => void;
628
- start: (startOptions?: StepOptions) => void;
631
+ start: (startOptions?: StartOptions) => void;
629
632
  }
630
633
  interface JourneyStoreValue$1 {
631
634
  completed: boolean;
@@ -640,9 +643,10 @@ interface JourneyStoreValue$1 {
640
643
  callbacks: CallbackMetadata[];
641
644
  step: StepMetadata;
642
645
  } | null;
643
- step: StepTypes;
646
+ step?: StepTypes;
644
647
  successful: boolean;
645
648
  response: Maybe<Step$1>;
649
+ recaptchaAction?: Maybe<string>;
646
650
  }
647
651
  interface StepMetadata {
648
652
  derived: {
@@ -657,6 +661,9 @@ interface StepMetadata {
657
661
  }
658
662
  type StepTypes = FRStep | FRLoginSuccess | FRLoginFailure | null;
659
663
 
664
+ declare module '*.svelte' {
665
+ export { SvelteComponentDev as default } from 'svelte/internal';
666
+ }
660
667
 
661
668
  interface ComponentStoreValue {
662
669
  lastAction: 'close' | 'open' | 'mount' | null;
@@ -2305,6 +2312,7 @@ declare const partialStringsSchema: ZodObject<{
2305
2312
  declare const partialStyleSchema: ZodObject<{
2306
2313
  checksAndRadios: ZodOptional<ZodOptional<ZodUnion<[ZodLiteral<"animated">, ZodLiteral<"standard">]>>>;
2307
2314
  labels: ZodOptional<ZodOptional<ZodUnion<[ZodOptional<ZodLiteral<"floating">>, ZodLiteral<"stacked">]>>>;
2315
+ showPassword: ZodOptional<ZodOptional<ZodUnion<[ZodLiteral<"none">, ZodLiteral<"button">, ZodLiteral<"checkbox">]>>>;
2308
2316
  logo: ZodOptional<ZodOptional<ZodObject<{
2309
2317
  dark: ZodOptional<ZodString>;
2310
2318
  height: ZodOptional<ZodNumber>;
@@ -2338,6 +2346,7 @@ declare const partialStyleSchema: ZodObject<{
2338
2346
  }, "strict", ZodTypeAny, {
2339
2347
  checksAndRadios?: "standard" | "animated" | undefined;
2340
2348
  labels?: "floating" | "stacked" | undefined;
2349
+ showPassword?: "none" | "button" | "checkbox" | undefined;
2341
2350
  logo?: {
2342
2351
  dark?: string | undefined;
2343
2352
  height?: number | undefined;
@@ -2353,6 +2362,7 @@ declare const partialStyleSchema: ZodObject<{
2353
2362
  }, {
2354
2363
  checksAndRadios?: "standard" | "animated" | undefined;
2355
2364
  labels?: "floating" | "stacked" | undefined;
2365
+ showPassword?: "none" | "button" | "checkbox" | undefined;
2356
2366
  logo?: {
2357
2367
  dark?: string | undefined;
2358
2368
  height?: number | undefined;
@@ -2379,6 +2389,7 @@ interface JourneyOptionsStart$1 {
2379
2389
  forgerock?: StepOptions;
2380
2390
  journey?: string;
2381
2391
  resumeUrl?: string;
2392
+ recaptchaAction?: string;
2382
2393
  }
2383
2394
  interface WidgetConfigOptions$1 {
2384
2395
  forgerock?: TypeOf<typeof partialConfigSchema>;