@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/index.d.ts CHANGED
@@ -527,6 +527,9 @@ declare type Subscriber<T> = (value: T) => void;
527
527
  /** Unsubscribes from value updates. */
528
528
  declare type Unsubscriber = () => void;
529
529
 
530
+ declare module '*.svelte' {
531
+ export { SvelteComponentDev as default } from 'svelte/internal';
532
+ }
530
533
 
531
534
  interface ComponentStoreValue {
532
535
  lastAction: 'close' | 'open' | 'mount' | null;
@@ -670,9 +673,10 @@ interface JourneyStoreValue {
670
673
  callbacks: CallbackMetadata[];
671
674
  step: StepMetadata;
672
675
  } | null;
673
- step: StepTypes;
676
+ step?: StepTypes;
674
677
  successful: boolean;
675
678
  response: Maybe<Step>;
679
+ recaptchaAction?: Maybe<string>;
676
680
  }
677
681
  interface StepMetadata {
678
682
  derived: {
@@ -1046,6 +1050,7 @@ declare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef
1046
1050
  safeParse(data: unknown, params?: Partial<ParseParams>): SafeParseReturnType<Input, Output>;
1047
1051
  parseAsync(data: unknown, params?: Partial<ParseParams>): Promise<Output>;
1048
1052
  safeParseAsync(data: unknown, params?: Partial<ParseParams>): Promise<SafeParseReturnType<Input, Output>>;
1053
+ /** Alias of safeParseAsync */
1049
1054
  spa: (data: unknown, params?: Partial<ParseParams> | undefined) => Promise<SafeParseReturnType<Input, Output>>;
1050
1055
  refine<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, RefinedOutput, Input>;
1051
1056
  refine(check: (arg: Output) => unknown | Promise<unknown>, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, Output, Input>;
@@ -1155,7 +1160,7 @@ interface ZodStringDef extends ZodTypeDef {
1155
1160
  }
1156
1161
  declare class ZodString extends ZodType<string, ZodStringDef> {
1157
1162
  _parse(input: ParseInput): ParseReturnType<string>;
1158
- protected _regex: (regex: RegExp, validation: StringValidation, message?: errorUtil.ErrMessage | undefined) => ZodEffects<this, string, string>;
1163
+ protected _regex(regex: RegExp, validation: StringValidation, message?: errorUtil.ErrMessage): ZodEffects<this, string, string>;
1159
1164
  _addCheck(check: ZodStringCheck): ZodString;
1160
1165
  email(message?: errorUtil.ErrMessage): ZodString;
1161
1166
  url(message?: errorUtil.ErrMessage): ZodString;
@@ -1183,10 +1188,14 @@ declare class ZodString extends ZodType<string, ZodStringDef> {
1183
1188
  min(minLength: number, message?: errorUtil.ErrMessage): ZodString;
1184
1189
  max(maxLength: number, message?: errorUtil.ErrMessage): ZodString;
1185
1190
  length(len: number, message?: errorUtil.ErrMessage): ZodString;
1186
- nonempty: (message?: errorUtil.ErrMessage | undefined) => ZodString;
1187
- trim: () => ZodString;
1188
- toLowerCase: () => ZodString;
1189
- toUpperCase: () => ZodString;
1191
+ /**
1192
+ * @deprecated Use z.string().min(1) instead.
1193
+ * @see {@link ZodString.min}
1194
+ */
1195
+ nonempty(message?: errorUtil.ErrMessage): ZodString;
1196
+ trim(): ZodString;
1197
+ toLowerCase(): ZodString;
1198
+ toUpperCase(): ZodString;
1190
1199
  get isDatetime(): boolean;
1191
1200
  get isEmail(): boolean;
1192
1201
  get isURL(): boolean;
@@ -1358,9 +1367,21 @@ declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysPa
1358
1367
  strict(message?: errorUtil.ErrMessage): ZodObject<T, "strict", Catchall>;
1359
1368
  strip(): ZodObject<T, "strip", Catchall>;
1360
1369
  passthrough(): ZodObject<T, "passthrough", Catchall>;
1370
+ /**
1371
+ * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.
1372
+ * If you want to pass through unknown properties, use `.passthrough()` instead.
1373
+ */
1361
1374
  nonstrict: () => ZodObject<T, "passthrough", Catchall>;
1362
1375
  extend<Augmentation extends ZodRawShape>(augmentation: Augmentation): ZodObject<objectUtil.extendShape<T, Augmentation>, UnknownKeys, Catchall>;
1376
+ /**
1377
+ * @deprecated Use `.extend` instead
1378
+ * */
1363
1379
  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>>;
1380
+ /**
1381
+ * Prior to zod@1.0.12 there was a bug in the
1382
+ * inferred type of merged objects. Please
1383
+ * upgrade if you are experiencing issues.
1384
+ */
1364
1385
  merge<Incoming extends AnyZodObject, Augmentation extends Incoming["shape"]>(merging: Incoming): ZodObject<objectUtil.extendShape<T, Augmentation>, Incoming["_def"]["unknownKeys"], Incoming["_def"]["catchall"]>;
1365
1386
  setKey<Key extends string, Schema extends ZodTypeAny>(key: Key, schema: Schema): ZodObject<T & {
1366
1387
  [k in Key]: Schema;
@@ -1372,6 +1393,9 @@ declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysPa
1372
1393
  omit<Mask extends {
1373
1394
  [k in keyof T]?: true;
1374
1395
  }>(mask: Mask): ZodObject<Omit<T, keyof Mask>, UnknownKeys, Catchall>;
1396
+ /**
1397
+ * @deprecated
1398
+ */
1375
1399
  deepPartial(): partialUtil.DeepPartial<this>;
1376
1400
  partial(): ZodObject<{
1377
1401
  [k in keyof T]: ZodOptional<T[k]>;
@@ -2007,6 +2031,7 @@ declare const partialStringsSchema: ZodObject<{
2007
2031
  closeModal: ZodOptional<ZodString>;
2008
2032
  charactersCannotRepeatMoreThan: ZodOptional<ZodString>;
2009
2033
  charactersCannotRepeatMoreThanCaseInsensitive: ZodOptional<ZodString>;
2034
+ checkYourEmail: ZodOptional<ZodString>;
2010
2035
  chooseDifferentUsername: ZodOptional<ZodString>;
2011
2036
  chooseYourDeviceForIdentityVerification: ZodOptional<ZodString>;
2012
2037
  confirmPassword: ZodOptional<ZodString>;
@@ -2104,6 +2129,7 @@ declare const partialStringsSchema: ZodObject<{
2104
2129
  closeModal?: string | undefined;
2105
2130
  charactersCannotRepeatMoreThan?: string | undefined;
2106
2131
  charactersCannotRepeatMoreThanCaseInsensitive?: string | undefined;
2132
+ checkYourEmail?: string | undefined;
2107
2133
  chooseDifferentUsername?: string | undefined;
2108
2134
  chooseYourDeviceForIdentityVerification?: string | undefined;
2109
2135
  confirmPassword?: string | undefined;
@@ -2201,6 +2227,7 @@ declare const partialStringsSchema: ZodObject<{
2201
2227
  closeModal?: string | undefined;
2202
2228
  charactersCannotRepeatMoreThan?: string | undefined;
2203
2229
  charactersCannotRepeatMoreThanCaseInsensitive?: string | undefined;
2230
+ checkYourEmail?: string | undefined;
2204
2231
  chooseDifferentUsername?: string | undefined;
2205
2232
  chooseYourDeviceForIdentityVerification?: string | undefined;
2206
2233
  confirmPassword?: string | undefined;
@@ -2295,6 +2322,7 @@ declare const partialStringsSchema: ZodObject<{
2295
2322
  declare const partialStyleSchema: ZodObject<{
2296
2323
  checksAndRadios: ZodOptional<ZodOptional<ZodUnion<[ZodLiteral<"animated">, ZodLiteral<"standard">]>>>;
2297
2324
  labels: ZodOptional<ZodOptional<ZodUnion<[ZodOptional<ZodLiteral<"floating">>, ZodLiteral<"stacked">]>>>;
2325
+ showPassword: ZodOptional<ZodOptional<ZodUnion<[ZodLiteral<"none">, ZodLiteral<"button">, ZodLiteral<"checkbox">]>>>;
2298
2326
  logo: ZodOptional<ZodOptional<ZodObject<{
2299
2327
  dark: ZodOptional<ZodString>;
2300
2328
  height: ZodOptional<ZodNumber>;
@@ -2328,6 +2356,7 @@ declare const partialStyleSchema: ZodObject<{
2328
2356
  }, "strict", ZodTypeAny, {
2329
2357
  checksAndRadios?: "standard" | "animated" | undefined;
2330
2358
  labels?: "floating" | "stacked" | undefined;
2359
+ showPassword?: "none" | "button" | "checkbox" | undefined;
2331
2360
  logo?: {
2332
2361
  dark?: string | undefined;
2333
2362
  height?: number | undefined;
@@ -2343,6 +2372,7 @@ declare const partialStyleSchema: ZodObject<{
2343
2372
  }, {
2344
2373
  checksAndRadios?: "standard" | "animated" | undefined;
2345
2374
  labels?: "floating" | "stacked" | undefined;
2375
+ showPassword?: "none" | "button" | "checkbox" | undefined;
2346
2376
  logo?: {
2347
2377
  dark?: string | undefined;
2348
2378
  height?: number | undefined;
@@ -2369,6 +2399,7 @@ interface JourneyOptionsStart {
2369
2399
  forgerock?: StepOptions;
2370
2400
  journey?: string;
2371
2401
  resumeUrl?: string;
2402
+ recaptchaAction?: string;
2372
2403
  }
2373
2404
  interface WidgetConfigOptions {
2374
2405
  forgerock?: TypeOf<typeof partialConfigSchema>;