@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/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1033,6 +1033,7 @@ declare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef
|
|
|
1033
1033
|
safeParse(data: unknown, params?: Partial<ParseParams>): SafeParseReturnType<Input, Output>;
|
|
1034
1034
|
parseAsync(data: unknown, params?: Partial<ParseParams>): Promise<Output>;
|
|
1035
1035
|
safeParseAsync(data: unknown, params?: Partial<ParseParams>): Promise<SafeParseReturnType<Input, Output>>;
|
|
1036
|
+
/** Alias of safeParseAsync */
|
|
1036
1037
|
spa: (data: unknown, params?: Partial<ParseParams> | undefined) => Promise<SafeParseReturnType<Input, Output>>;
|
|
1037
1038
|
refine<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, RefinedOutput, Input>;
|
|
1038
1039
|
refine(check: (arg: Output) => unknown | Promise<unknown>, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, Output, Input>;
|
|
@@ -1142,7 +1143,7 @@ interface ZodStringDef extends ZodTypeDef {
|
|
|
1142
1143
|
}
|
|
1143
1144
|
declare class ZodString extends ZodType<string, ZodStringDef> {
|
|
1144
1145
|
_parse(input: ParseInput): ParseReturnType<string>;
|
|
1145
|
-
protected _regex
|
|
1146
|
+
protected _regex(regex: RegExp, validation: StringValidation, message?: errorUtil.ErrMessage): ZodEffects<this, string, string>;
|
|
1146
1147
|
_addCheck(check: ZodStringCheck): ZodString;
|
|
1147
1148
|
email(message?: errorUtil.ErrMessage): ZodString;
|
|
1148
1149
|
url(message?: errorUtil.ErrMessage): ZodString;
|
|
@@ -1170,10 +1171,14 @@ declare class ZodString extends ZodType<string, ZodStringDef> {
|
|
|
1170
1171
|
min(minLength: number, message?: errorUtil.ErrMessage): ZodString;
|
|
1171
1172
|
max(maxLength: number, message?: errorUtil.ErrMessage): ZodString;
|
|
1172
1173
|
length(len: number, message?: errorUtil.ErrMessage): ZodString;
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1174
|
+
/**
|
|
1175
|
+
* @deprecated Use z.string().min(1) instead.
|
|
1176
|
+
* @see {@link ZodString.min}
|
|
1177
|
+
*/
|
|
1178
|
+
nonempty(message?: errorUtil.ErrMessage): ZodString;
|
|
1179
|
+
trim(): ZodString;
|
|
1180
|
+
toLowerCase(): ZodString;
|
|
1181
|
+
toUpperCase(): ZodString;
|
|
1177
1182
|
get isDatetime(): boolean;
|
|
1178
1183
|
get isEmail(): boolean;
|
|
1179
1184
|
get isURL(): boolean;
|
|
@@ -1345,9 +1350,21 @@ declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysPa
|
|
|
1345
1350
|
strict(message?: errorUtil.ErrMessage): ZodObject<T, "strict", Catchall>;
|
|
1346
1351
|
strip(): ZodObject<T, "strip", Catchall>;
|
|
1347
1352
|
passthrough(): ZodObject<T, "passthrough", Catchall>;
|
|
1353
|
+
/**
|
|
1354
|
+
* @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.
|
|
1355
|
+
* If you want to pass through unknown properties, use `.passthrough()` instead.
|
|
1356
|
+
*/
|
|
1348
1357
|
nonstrict: () => ZodObject<T, "passthrough", Catchall>;
|
|
1349
1358
|
extend<Augmentation extends ZodRawShape>(augmentation: Augmentation): ZodObject<objectUtil.extendShape<T, Augmentation>, UnknownKeys, Catchall>;
|
|
1359
|
+
/**
|
|
1360
|
+
* @deprecated Use `.extend` instead
|
|
1361
|
+
* */
|
|
1350
1362
|
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>>;
|
|
1363
|
+
/**
|
|
1364
|
+
* Prior to zod@1.0.12 there was a bug in the
|
|
1365
|
+
* inferred type of merged objects. Please
|
|
1366
|
+
* upgrade if you are experiencing issues.
|
|
1367
|
+
*/
|
|
1351
1368
|
merge<Incoming extends AnyZodObject, Augmentation extends Incoming["shape"]>(merging: Incoming): ZodObject<objectUtil.extendShape<T, Augmentation>, Incoming["_def"]["unknownKeys"], Incoming["_def"]["catchall"]>;
|
|
1352
1369
|
setKey<Key extends string, Schema extends ZodTypeAny>(key: Key, schema: Schema): ZodObject<T & {
|
|
1353
1370
|
[k in Key]: Schema;
|
|
@@ -1359,6 +1376,9 @@ declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysPa
|
|
|
1359
1376
|
omit<Mask extends {
|
|
1360
1377
|
[k in keyof T]?: true;
|
|
1361
1378
|
}>(mask: Mask): ZodObject<Omit<T, keyof Mask>, UnknownKeys, Catchall>;
|
|
1379
|
+
/**
|
|
1380
|
+
* @deprecated
|
|
1381
|
+
*/
|
|
1362
1382
|
deepPartial(): partialUtil.DeepPartial<this>;
|
|
1363
1383
|
partial(): ZodObject<{
|
|
1364
1384
|
[k in keyof T]: ZodOptional<T[k]>;
|
|
@@ -1994,6 +2014,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
1994
2014
|
closeModal: ZodOptional<ZodString>;
|
|
1995
2015
|
charactersCannotRepeatMoreThan: ZodOptional<ZodString>;
|
|
1996
2016
|
charactersCannotRepeatMoreThanCaseInsensitive: ZodOptional<ZodString>;
|
|
2017
|
+
checkYourEmail: ZodOptional<ZodString>;
|
|
1997
2018
|
chooseDifferentUsername: ZodOptional<ZodString>;
|
|
1998
2019
|
chooseYourDeviceForIdentityVerification: ZodOptional<ZodString>;
|
|
1999
2020
|
confirmPassword: ZodOptional<ZodString>;
|
|
@@ -2091,6 +2112,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2091
2112
|
closeModal?: string | undefined;
|
|
2092
2113
|
charactersCannotRepeatMoreThan?: string | undefined;
|
|
2093
2114
|
charactersCannotRepeatMoreThanCaseInsensitive?: string | undefined;
|
|
2115
|
+
checkYourEmail?: string | undefined;
|
|
2094
2116
|
chooseDifferentUsername?: string | undefined;
|
|
2095
2117
|
chooseYourDeviceForIdentityVerification?: string | undefined;
|
|
2096
2118
|
confirmPassword?: string | undefined;
|
|
@@ -2188,6 +2210,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2188
2210
|
closeModal?: string | undefined;
|
|
2189
2211
|
charactersCannotRepeatMoreThan?: string | undefined;
|
|
2190
2212
|
charactersCannotRepeatMoreThanCaseInsensitive?: string | undefined;
|
|
2213
|
+
checkYourEmail?: string | undefined;
|
|
2191
2214
|
chooseDifferentUsername?: string | undefined;
|
|
2192
2215
|
chooseYourDeviceForIdentityVerification?: string | undefined;
|
|
2193
2216
|
confirmPassword?: string | undefined;
|