@forgerock/login-widget 1.2.0-beta.8 → 1.2.0-beta.9
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/CHANGELOG.md +7 -0
- package/index.cjs +1406 -588
- package/index.cjs.map +1 -1
- package/index.d.ts +28 -5
- package/index.js +1406 -588
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +28 -5
package/index.d.ts
CHANGED
|
@@ -1046,6 +1046,7 @@ declare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef
|
|
|
1046
1046
|
safeParse(data: unknown, params?: Partial<ParseParams>): SafeParseReturnType<Input, Output>;
|
|
1047
1047
|
parseAsync(data: unknown, params?: Partial<ParseParams>): Promise<Output>;
|
|
1048
1048
|
safeParseAsync(data: unknown, params?: Partial<ParseParams>): Promise<SafeParseReturnType<Input, Output>>;
|
|
1049
|
+
/** Alias of safeParseAsync */
|
|
1049
1050
|
spa: (data: unknown, params?: Partial<ParseParams> | undefined) => Promise<SafeParseReturnType<Input, Output>>;
|
|
1050
1051
|
refine<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, RefinedOutput, Input>;
|
|
1051
1052
|
refine(check: (arg: Output) => unknown | Promise<unknown>, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, Output, Input>;
|
|
@@ -1155,7 +1156,7 @@ interface ZodStringDef extends ZodTypeDef {
|
|
|
1155
1156
|
}
|
|
1156
1157
|
declare class ZodString extends ZodType<string, ZodStringDef> {
|
|
1157
1158
|
_parse(input: ParseInput): ParseReturnType<string>;
|
|
1158
|
-
protected _regex
|
|
1159
|
+
protected _regex(regex: RegExp, validation: StringValidation, message?: errorUtil.ErrMessage): ZodEffects<this, string, string>;
|
|
1159
1160
|
_addCheck(check: ZodStringCheck): ZodString;
|
|
1160
1161
|
email(message?: errorUtil.ErrMessage): ZodString;
|
|
1161
1162
|
url(message?: errorUtil.ErrMessage): ZodString;
|
|
@@ -1183,10 +1184,14 @@ declare class ZodString extends ZodType<string, ZodStringDef> {
|
|
|
1183
1184
|
min(minLength: number, message?: errorUtil.ErrMessage): ZodString;
|
|
1184
1185
|
max(maxLength: number, message?: errorUtil.ErrMessage): ZodString;
|
|
1185
1186
|
length(len: number, message?: errorUtil.ErrMessage): ZodString;
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1187
|
+
/**
|
|
1188
|
+
* @deprecated Use z.string().min(1) instead.
|
|
1189
|
+
* @see {@link ZodString.min}
|
|
1190
|
+
*/
|
|
1191
|
+
nonempty(message?: errorUtil.ErrMessage): ZodString;
|
|
1192
|
+
trim(): ZodString;
|
|
1193
|
+
toLowerCase(): ZodString;
|
|
1194
|
+
toUpperCase(): ZodString;
|
|
1190
1195
|
get isDatetime(): boolean;
|
|
1191
1196
|
get isEmail(): boolean;
|
|
1192
1197
|
get isURL(): boolean;
|
|
@@ -1358,9 +1363,21 @@ declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysPa
|
|
|
1358
1363
|
strict(message?: errorUtil.ErrMessage): ZodObject<T, "strict", Catchall>;
|
|
1359
1364
|
strip(): ZodObject<T, "strip", Catchall>;
|
|
1360
1365
|
passthrough(): ZodObject<T, "passthrough", Catchall>;
|
|
1366
|
+
/**
|
|
1367
|
+
* @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.
|
|
1368
|
+
* If you want to pass through unknown properties, use `.passthrough()` instead.
|
|
1369
|
+
*/
|
|
1361
1370
|
nonstrict: () => ZodObject<T, "passthrough", Catchall>;
|
|
1362
1371
|
extend<Augmentation extends ZodRawShape>(augmentation: Augmentation): ZodObject<objectUtil.extendShape<T, Augmentation>, UnknownKeys, Catchall>;
|
|
1372
|
+
/**
|
|
1373
|
+
* @deprecated Use `.extend` instead
|
|
1374
|
+
* */
|
|
1363
1375
|
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>>;
|
|
1376
|
+
/**
|
|
1377
|
+
* Prior to zod@1.0.12 there was a bug in the
|
|
1378
|
+
* inferred type of merged objects. Please
|
|
1379
|
+
* upgrade if you are experiencing issues.
|
|
1380
|
+
*/
|
|
1364
1381
|
merge<Incoming extends AnyZodObject, Augmentation extends Incoming["shape"]>(merging: Incoming): ZodObject<objectUtil.extendShape<T, Augmentation>, Incoming["_def"]["unknownKeys"], Incoming["_def"]["catchall"]>;
|
|
1365
1382
|
setKey<Key extends string, Schema extends ZodTypeAny>(key: Key, schema: Schema): ZodObject<T & {
|
|
1366
1383
|
[k in Key]: Schema;
|
|
@@ -1372,6 +1389,9 @@ declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysPa
|
|
|
1372
1389
|
omit<Mask extends {
|
|
1373
1390
|
[k in keyof T]?: true;
|
|
1374
1391
|
}>(mask: Mask): ZodObject<Omit<T, keyof Mask>, UnknownKeys, Catchall>;
|
|
1392
|
+
/**
|
|
1393
|
+
* @deprecated
|
|
1394
|
+
*/
|
|
1375
1395
|
deepPartial(): partialUtil.DeepPartial<this>;
|
|
1376
1396
|
partial(): ZodObject<{
|
|
1377
1397
|
[k in keyof T]: ZodOptional<T[k]>;
|
|
@@ -2007,6 +2027,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2007
2027
|
closeModal: ZodOptional<ZodString>;
|
|
2008
2028
|
charactersCannotRepeatMoreThan: ZodOptional<ZodString>;
|
|
2009
2029
|
charactersCannotRepeatMoreThanCaseInsensitive: ZodOptional<ZodString>;
|
|
2030
|
+
checkYourEmail: ZodOptional<ZodString>;
|
|
2010
2031
|
chooseDifferentUsername: ZodOptional<ZodString>;
|
|
2011
2032
|
chooseYourDeviceForIdentityVerification: ZodOptional<ZodString>;
|
|
2012
2033
|
confirmPassword: ZodOptional<ZodString>;
|
|
@@ -2104,6 +2125,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2104
2125
|
closeModal?: string | undefined;
|
|
2105
2126
|
charactersCannotRepeatMoreThan?: string | undefined;
|
|
2106
2127
|
charactersCannotRepeatMoreThanCaseInsensitive?: string | undefined;
|
|
2128
|
+
checkYourEmail?: string | undefined;
|
|
2107
2129
|
chooseDifferentUsername?: string | undefined;
|
|
2108
2130
|
chooseYourDeviceForIdentityVerification?: string | undefined;
|
|
2109
2131
|
confirmPassword?: string | undefined;
|
|
@@ -2201,6 +2223,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2201
2223
|
closeModal?: string | undefined;
|
|
2202
2224
|
charactersCannotRepeatMoreThan?: string | undefined;
|
|
2203
2225
|
charactersCannotRepeatMoreThanCaseInsensitive?: string | undefined;
|
|
2226
|
+
checkYourEmail?: string | undefined;
|
|
2204
2227
|
chooseDifferentUsername?: string | undefined;
|
|
2205
2228
|
chooseYourDeviceForIdentityVerification?: string | undefined;
|
|
2206
2229
|
confirmPassword?: string | undefined;
|