@forgerock/login-widget 1.2.0-beta.8 → 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.8"
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;
@@ -1033,6 +1040,7 @@ declare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef
1033
1040
  safeParse(data: unknown, params?: Partial<ParseParams>): SafeParseReturnType<Input, Output>;
1034
1041
  parseAsync(data: unknown, params?: Partial<ParseParams>): Promise<Output>;
1035
1042
  safeParseAsync(data: unknown, params?: Partial<ParseParams>): Promise<SafeParseReturnType<Input, Output>>;
1043
+ /** Alias of safeParseAsync */
1036
1044
  spa: (data: unknown, params?: Partial<ParseParams> | undefined) => Promise<SafeParseReturnType<Input, Output>>;
1037
1045
  refine<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, RefinedOutput, Input>;
1038
1046
  refine(check: (arg: Output) => unknown | Promise<unknown>, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, Output, Input>;
@@ -1142,7 +1150,7 @@ interface ZodStringDef extends ZodTypeDef {
1142
1150
  }
1143
1151
  declare class ZodString extends ZodType<string, ZodStringDef> {
1144
1152
  _parse(input: ParseInput): ParseReturnType<string>;
1145
- protected _regex: (regex: RegExp, validation: StringValidation, message?: errorUtil.ErrMessage | undefined) => ZodEffects<this, string, string>;
1153
+ protected _regex(regex: RegExp, validation: StringValidation, message?: errorUtil.ErrMessage): ZodEffects<this, string, string>;
1146
1154
  _addCheck(check: ZodStringCheck): ZodString;
1147
1155
  email(message?: errorUtil.ErrMessage): ZodString;
1148
1156
  url(message?: errorUtil.ErrMessage): ZodString;
@@ -1170,10 +1178,14 @@ declare class ZodString extends ZodType<string, ZodStringDef> {
1170
1178
  min(minLength: number, message?: errorUtil.ErrMessage): ZodString;
1171
1179
  max(maxLength: number, message?: errorUtil.ErrMessage): ZodString;
1172
1180
  length(len: number, message?: errorUtil.ErrMessage): ZodString;
1173
- nonempty: (message?: errorUtil.ErrMessage | undefined) => ZodString;
1174
- trim: () => ZodString;
1175
- toLowerCase: () => ZodString;
1176
- toUpperCase: () => ZodString;
1181
+ /**
1182
+ * @deprecated Use z.string().min(1) instead.
1183
+ * @see {@link ZodString.min}
1184
+ */
1185
+ nonempty(message?: errorUtil.ErrMessage): ZodString;
1186
+ trim(): ZodString;
1187
+ toLowerCase(): ZodString;
1188
+ toUpperCase(): ZodString;
1177
1189
  get isDatetime(): boolean;
1178
1190
  get isEmail(): boolean;
1179
1191
  get isURL(): boolean;
@@ -1345,9 +1357,21 @@ declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysPa
1345
1357
  strict(message?: errorUtil.ErrMessage): ZodObject<T, "strict", Catchall>;
1346
1358
  strip(): ZodObject<T, "strip", Catchall>;
1347
1359
  passthrough(): ZodObject<T, "passthrough", Catchall>;
1360
+ /**
1361
+ * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.
1362
+ * If you want to pass through unknown properties, use `.passthrough()` instead.
1363
+ */
1348
1364
  nonstrict: () => ZodObject<T, "passthrough", Catchall>;
1349
1365
  extend<Augmentation extends ZodRawShape>(augmentation: Augmentation): ZodObject<objectUtil.extendShape<T, Augmentation>, UnknownKeys, Catchall>;
1366
+ /**
1367
+ * @deprecated Use `.extend` instead
1368
+ * */
1350
1369
  augment: <Augmentation extends ZodRawShape>(augmentation: Augmentation) => ZodObject<{ [k in keyof (Omit<T, keyof Augmentation> & Augmentation)]: (Omit<T, keyof Augmentation> & Augmentation)[k]; }, UnknownKeys, Catchall, objectOutputType<{ [k in keyof (Omit<T, keyof Augmentation> & Augmentation)]: (Omit<T, keyof Augmentation> & Augmentation)[k]; }, Catchall, UnknownKeys>, objectInputType<{ [k in keyof (Omit<T, keyof Augmentation> & Augmentation)]: (Omit<T, keyof Augmentation> & Augmentation)[k]; }, Catchall, UnknownKeys>>;
1370
+ /**
1371
+ * Prior to zod@1.0.12 there was a bug in the
1372
+ * inferred type of merged objects. Please
1373
+ * upgrade if you are experiencing issues.
1374
+ */
1351
1375
  merge<Incoming extends AnyZodObject, Augmentation extends Incoming["shape"]>(merging: Incoming): ZodObject<objectUtil.extendShape<T, Augmentation>, Incoming["_def"]["unknownKeys"], Incoming["_def"]["catchall"]>;
1352
1376
  setKey<Key extends string, Schema extends ZodTypeAny>(key: Key, schema: Schema): ZodObject<T & {
1353
1377
  [k in Key]: Schema;
@@ -1359,6 +1383,9 @@ declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysPa
1359
1383
  omit<Mask extends {
1360
1384
  [k in keyof T]?: true;
1361
1385
  }>(mask: Mask): ZodObject<Omit<T, keyof Mask>, UnknownKeys, Catchall>;
1386
+ /**
1387
+ * @deprecated
1388
+ */
1362
1389
  deepPartial(): partialUtil.DeepPartial<this>;
1363
1390
  partial(): ZodObject<{
1364
1391
  [k in keyof T]: ZodOptional<T[k]>;
@@ -1994,6 +2021,7 @@ declare const partialStringsSchema: ZodObject<{
1994
2021
  closeModal: ZodOptional<ZodString>;
1995
2022
  charactersCannotRepeatMoreThan: ZodOptional<ZodString>;
1996
2023
  charactersCannotRepeatMoreThanCaseInsensitive: ZodOptional<ZodString>;
2024
+ checkYourEmail: ZodOptional<ZodString>;
1997
2025
  chooseDifferentUsername: ZodOptional<ZodString>;
1998
2026
  chooseYourDeviceForIdentityVerification: ZodOptional<ZodString>;
1999
2027
  confirmPassword: ZodOptional<ZodString>;
@@ -2091,6 +2119,7 @@ declare const partialStringsSchema: ZodObject<{
2091
2119
  closeModal?: string | undefined;
2092
2120
  charactersCannotRepeatMoreThan?: string | undefined;
2093
2121
  charactersCannotRepeatMoreThanCaseInsensitive?: string | undefined;
2122
+ checkYourEmail?: string | undefined;
2094
2123
  chooseDifferentUsername?: string | undefined;
2095
2124
  chooseYourDeviceForIdentityVerification?: string | undefined;
2096
2125
  confirmPassword?: string | undefined;
@@ -2188,6 +2217,7 @@ declare const partialStringsSchema: ZodObject<{
2188
2217
  closeModal?: string | undefined;
2189
2218
  charactersCannotRepeatMoreThan?: string | undefined;
2190
2219
  charactersCannotRepeatMoreThanCaseInsensitive?: string | undefined;
2220
+ checkYourEmail?: string | undefined;
2191
2221
  chooseDifferentUsername?: string | undefined;
2192
2222
  chooseYourDeviceForIdentityVerification?: string | undefined;
2193
2223
  confirmPassword?: string | undefined;
@@ -2282,6 +2312,7 @@ declare const partialStringsSchema: ZodObject<{
2282
2312
  declare const partialStyleSchema: ZodObject<{
2283
2313
  checksAndRadios: ZodOptional<ZodOptional<ZodUnion<[ZodLiteral<"animated">, ZodLiteral<"standard">]>>>;
2284
2314
  labels: ZodOptional<ZodOptional<ZodUnion<[ZodOptional<ZodLiteral<"floating">>, ZodLiteral<"stacked">]>>>;
2315
+ showPassword: ZodOptional<ZodOptional<ZodUnion<[ZodLiteral<"none">, ZodLiteral<"button">, ZodLiteral<"checkbox">]>>>;
2285
2316
  logo: ZodOptional<ZodOptional<ZodObject<{
2286
2317
  dark: ZodOptional<ZodString>;
2287
2318
  height: ZodOptional<ZodNumber>;
@@ -2315,6 +2346,7 @@ declare const partialStyleSchema: ZodObject<{
2315
2346
  }, "strict", ZodTypeAny, {
2316
2347
  checksAndRadios?: "standard" | "animated" | undefined;
2317
2348
  labels?: "floating" | "stacked" | undefined;
2349
+ showPassword?: "none" | "button" | "checkbox" | undefined;
2318
2350
  logo?: {
2319
2351
  dark?: string | undefined;
2320
2352
  height?: number | undefined;
@@ -2330,6 +2362,7 @@ declare const partialStyleSchema: ZodObject<{
2330
2362
  }, {
2331
2363
  checksAndRadios?: "standard" | "animated" | undefined;
2332
2364
  labels?: "floating" | "stacked" | undefined;
2365
+ showPassword?: "none" | "button" | "checkbox" | undefined;
2333
2366
  logo?: {
2334
2367
  dark?: string | undefined;
2335
2368
  height?: number | undefined;
@@ -2356,6 +2389,7 @@ interface JourneyOptionsStart$1 {
2356
2389
  forgerock?: StepOptions;
2357
2390
  journey?: string;
2358
2391
  resumeUrl?: string;
2392
+ recaptchaAction?: string;
2359
2393
  }
2360
2394
  interface WidgetConfigOptions$1 {
2361
2395
  forgerock?: TypeOf<typeof partialConfigSchema>;