@forgerock/login-widget 1.2.0-beta.2 → 1.2.0-beta.4
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 +15 -0
- package/index.cjs +83 -30
- package/index.cjs.map +1 -1
- package/index.d.ts +18 -3
- package/index.js +83 -30
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +18 -3
- package/widget.css +312 -151
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1028,6 +1028,7 @@ declare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef
|
|
|
1028
1028
|
_refinement(refinement: RefinementEffect<Output>["refinement"]): ZodEffects<this, Output, Input>;
|
|
1029
1029
|
superRefine<RefinedOutput extends Output>(refinement: (arg: Output, ctx: RefinementCtx) => arg is RefinedOutput): ZodEffects<this, RefinedOutput, Input>;
|
|
1030
1030
|
superRefine(refinement: (arg: Output, ctx: RefinementCtx) => void): ZodEffects<this, Output, Input>;
|
|
1031
|
+
superRefine(refinement: (arg: Output, ctx: RefinementCtx) => Promise<void>): ZodEffects<this, Output, Input>;
|
|
1031
1032
|
constructor(def: Def);
|
|
1032
1033
|
optional(): ZodOptional<this>;
|
|
1033
1034
|
nullable(): ZodNullable<this>;
|
|
@@ -1047,6 +1048,7 @@ declare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef
|
|
|
1047
1048
|
}) => Output): ZodCatch<this>;
|
|
1048
1049
|
describe(description: string): this;
|
|
1049
1050
|
pipe<T extends ZodTypeAny>(target: T): ZodPipeline<this, T>;
|
|
1051
|
+
readonly(): ZodReadonly<this>;
|
|
1050
1052
|
isOptional(): boolean;
|
|
1051
1053
|
isNullable(): boolean;
|
|
1052
1054
|
}
|
|
@@ -1502,7 +1504,7 @@ declare type TransformEffect<T> = {
|
|
|
1502
1504
|
};
|
|
1503
1505
|
declare type PreprocessEffect<T> = {
|
|
1504
1506
|
type: "preprocess";
|
|
1505
|
-
transform: (arg: T) => any;
|
|
1507
|
+
transform: (arg: T, ctx: RefinementCtx) => any;
|
|
1506
1508
|
};
|
|
1507
1509
|
declare type Effect<T> = RefinementEffect<T> | TransformEffect<T> | PreprocessEffect<T>;
|
|
1508
1510
|
interface ZodEffectsDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
@@ -1515,7 +1517,7 @@ declare class ZodEffects<T extends ZodTypeAny, Output = output<T>, Input = input
|
|
|
1515
1517
|
sourceType(): T;
|
|
1516
1518
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
1517
1519
|
static create: <I extends ZodTypeAny>(schema: I, effect: Effect<I["_output"]>, params?: RawCreateParams) => ZodEffects<I, I["_output"], input<I>>;
|
|
1518
|
-
static createWithPreprocess: <I extends ZodTypeAny>(preprocess: (arg: unknown) => unknown, schema: I, params?: RawCreateParams) => ZodEffects<I, I["_output"], unknown>;
|
|
1520
|
+
static createWithPreprocess: <I extends ZodTypeAny>(preprocess: (arg: unknown, ctx: RefinementCtx) => unknown, schema: I, params?: RawCreateParams) => ZodEffects<I, I["_output"], unknown>;
|
|
1519
1521
|
}
|
|
1520
1522
|
|
|
1521
1523
|
interface ZodOptionalDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
@@ -1596,6 +1598,18 @@ declare class ZodPipeline<A extends ZodTypeAny, B extends ZodTypeAny> extends Zo
|
|
|
1596
1598
|
_parse(input: ParseInput): ParseReturnType<any>;
|
|
1597
1599
|
static create<A extends ZodTypeAny, B extends ZodTypeAny>(a: A, b: B): ZodPipeline<A, B>;
|
|
1598
1600
|
}
|
|
1601
|
+
declare type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {
|
|
1602
|
+
readonly [Symbol.toStringTag]: string;
|
|
1603
|
+
} | Date | Error | Generator | Promise<unknown> | RegExp;
|
|
1604
|
+
declare type MakeReadonly<T> = T extends Map<infer K, infer V> ? ReadonlyMap<K, V> : T extends Set<infer V> ? ReadonlySet<V> : T extends [infer Head, ...infer Tail] ? readonly [Head, ...Tail] : T extends Array<infer V> ? ReadonlyArray<V> : T extends BuiltIn ? T : Readonly<T>;
|
|
1605
|
+
interface ZodReadonlyDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
1606
|
+
innerType: T;
|
|
1607
|
+
typeName: ZodFirstPartyTypeKind.ZodReadonly;
|
|
1608
|
+
}
|
|
1609
|
+
declare class ZodReadonly<T extends ZodTypeAny> extends ZodType<MakeReadonly<T["_output"]>, ZodReadonlyDef<T>, T["_input"]> {
|
|
1610
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
1611
|
+
static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodReadonly<T_1>;
|
|
1612
|
+
}
|
|
1599
1613
|
declare enum ZodFirstPartyTypeKind {
|
|
1600
1614
|
ZodString = "ZodString",
|
|
1601
1615
|
ZodNumber = "ZodNumber",
|
|
@@ -1631,7 +1645,8 @@ declare enum ZodFirstPartyTypeKind {
|
|
|
1631
1645
|
ZodCatch = "ZodCatch",
|
|
1632
1646
|
ZodPromise = "ZodPromise",
|
|
1633
1647
|
ZodBranded = "ZodBranded",
|
|
1634
|
-
ZodPipeline = "ZodPipeline"
|
|
1648
|
+
ZodPipeline = "ZodPipeline",
|
|
1649
|
+
ZodReadonly = "ZodReadonly"
|
|
1635
1650
|
}
|
|
1636
1651
|
|
|
1637
1652
|
declare const partialConfigSchema: ZodObject<{
|