@forgerock/login-widget 1.2.0-beta.3 → 1.2.0-beta.5
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 +118 -46
- package/index.cjs.map +1 -1
- package/index.d.ts +77 -62
- package/index.js +118 -46
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +77 -62
- package/widget.css +18 -4
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<{
|
|
@@ -1689,55 +1704,55 @@ declare const partialConfigSchema: ZodObject<{
|
|
|
1689
1704
|
serverConfig: ZodOptional<ZodObject<{
|
|
1690
1705
|
baseUrl: ZodString;
|
|
1691
1706
|
paths: ZodOptional<ZodObject<{
|
|
1692
|
-
authenticate: ZodString
|
|
1693
|
-
authorize: ZodString
|
|
1694
|
-
accessToken: ZodString
|
|
1695
|
-
endSession: ZodString
|
|
1696
|
-
userInfo: ZodString
|
|
1697
|
-
revoke: ZodString
|
|
1698
|
-
sessions: ZodString
|
|
1699
|
-
}, "
|
|
1700
|
-
authenticate
|
|
1701
|
-
authorize
|
|
1702
|
-
accessToken
|
|
1703
|
-
endSession
|
|
1704
|
-
userInfo
|
|
1705
|
-
revoke
|
|
1706
|
-
sessions
|
|
1707
|
+
authenticate: ZodOptional<ZodString>;
|
|
1708
|
+
authorize: ZodOptional<ZodString>;
|
|
1709
|
+
accessToken: ZodOptional<ZodString>;
|
|
1710
|
+
endSession: ZodOptional<ZodString>;
|
|
1711
|
+
userInfo: ZodOptional<ZodString>;
|
|
1712
|
+
revoke: ZodOptional<ZodString>;
|
|
1713
|
+
sessions: ZodOptional<ZodString>;
|
|
1714
|
+
}, "strict", ZodTypeAny, {
|
|
1715
|
+
authenticate?: string | undefined;
|
|
1716
|
+
authorize?: string | undefined;
|
|
1717
|
+
accessToken?: string | undefined;
|
|
1718
|
+
endSession?: string | undefined;
|
|
1719
|
+
userInfo?: string | undefined;
|
|
1720
|
+
revoke?: string | undefined;
|
|
1721
|
+
sessions?: string | undefined;
|
|
1707
1722
|
}, {
|
|
1708
|
-
authenticate
|
|
1709
|
-
authorize
|
|
1710
|
-
accessToken
|
|
1711
|
-
endSession
|
|
1712
|
-
userInfo
|
|
1713
|
-
revoke
|
|
1714
|
-
sessions
|
|
1723
|
+
authenticate?: string | undefined;
|
|
1724
|
+
authorize?: string | undefined;
|
|
1725
|
+
accessToken?: string | undefined;
|
|
1726
|
+
endSession?: string | undefined;
|
|
1727
|
+
userInfo?: string | undefined;
|
|
1728
|
+
revoke?: string | undefined;
|
|
1729
|
+
sessions?: string | undefined;
|
|
1715
1730
|
}>>;
|
|
1716
|
-
timeout: ZodNumber
|
|
1717
|
-
}, "
|
|
1718
|
-
timeout: number;
|
|
1731
|
+
timeout: ZodOptional<ZodNumber>;
|
|
1732
|
+
}, "strict", ZodTypeAny, {
|
|
1719
1733
|
baseUrl: string;
|
|
1720
1734
|
paths?: {
|
|
1721
|
-
authenticate
|
|
1722
|
-
authorize
|
|
1723
|
-
accessToken
|
|
1724
|
-
endSession
|
|
1725
|
-
userInfo
|
|
1726
|
-
revoke
|
|
1727
|
-
sessions
|
|
1735
|
+
authenticate?: string | undefined;
|
|
1736
|
+
authorize?: string | undefined;
|
|
1737
|
+
accessToken?: string | undefined;
|
|
1738
|
+
endSession?: string | undefined;
|
|
1739
|
+
userInfo?: string | undefined;
|
|
1740
|
+
revoke?: string | undefined;
|
|
1741
|
+
sessions?: string | undefined;
|
|
1728
1742
|
} | undefined;
|
|
1743
|
+
timeout?: number | undefined;
|
|
1729
1744
|
}, {
|
|
1730
|
-
timeout: number;
|
|
1731
1745
|
baseUrl: string;
|
|
1732
1746
|
paths?: {
|
|
1733
|
-
authenticate
|
|
1734
|
-
authorize
|
|
1735
|
-
accessToken
|
|
1736
|
-
endSession
|
|
1737
|
-
userInfo
|
|
1738
|
-
revoke
|
|
1739
|
-
sessions
|
|
1747
|
+
authenticate?: string | undefined;
|
|
1748
|
+
authorize?: string | undefined;
|
|
1749
|
+
accessToken?: string | undefined;
|
|
1750
|
+
endSession?: string | undefined;
|
|
1751
|
+
userInfo?: string | undefined;
|
|
1752
|
+
revoke?: string | undefined;
|
|
1753
|
+
sessions?: string | undefined;
|
|
1740
1754
|
} | undefined;
|
|
1755
|
+
timeout?: number | undefined;
|
|
1741
1756
|
}>>;
|
|
1742
1757
|
support: ZodOptional<ZodOptional<ZodUnion<[ZodLiteral<"legacy">, ZodLiteral<"modern">]>>>;
|
|
1743
1758
|
tokenStore: ZodOptional<ZodOptional<ZodUnion<[ZodObject<{
|
|
@@ -1759,7 +1774,7 @@ declare const partialConfigSchema: ZodObject<{
|
|
|
1759
1774
|
}>>>;
|
|
1760
1775
|
set: ZodFunction<ZodTuple<[ZodString], ZodUnknown>, ZodPromise<ZodVoid>>;
|
|
1761
1776
|
remove: ZodFunction<ZodTuple<[ZodString], ZodUnknown>, ZodPromise<ZodVoid>>;
|
|
1762
|
-
}, "
|
|
1777
|
+
}, "strict", ZodTypeAny, {
|
|
1763
1778
|
set: (args_0: string, ...args_1: unknown[]) => Promise<void>;
|
|
1764
1779
|
remove: (args_0: string, ...args_1: unknown[]) => Promise<void>;
|
|
1765
1780
|
get: (args_0: string, ...args_1: unknown[]) => Promise<{
|
|
@@ -1800,17 +1815,17 @@ declare const partialConfigSchema: ZodObject<{
|
|
|
1800
1815
|
redirectUri?: string | undefined;
|
|
1801
1816
|
scope?: string | undefined;
|
|
1802
1817
|
serverConfig?: {
|
|
1803
|
-
timeout: number;
|
|
1804
1818
|
baseUrl: string;
|
|
1805
1819
|
paths?: {
|
|
1806
|
-
authenticate
|
|
1807
|
-
authorize
|
|
1808
|
-
accessToken
|
|
1809
|
-
endSession
|
|
1810
|
-
userInfo
|
|
1811
|
-
revoke
|
|
1812
|
-
sessions
|
|
1820
|
+
authenticate?: string | undefined;
|
|
1821
|
+
authorize?: string | undefined;
|
|
1822
|
+
accessToken?: string | undefined;
|
|
1823
|
+
endSession?: string | undefined;
|
|
1824
|
+
userInfo?: string | undefined;
|
|
1825
|
+
revoke?: string | undefined;
|
|
1826
|
+
sessions?: string | undefined;
|
|
1813
1827
|
} | undefined;
|
|
1828
|
+
timeout?: number | undefined;
|
|
1814
1829
|
} | undefined;
|
|
1815
1830
|
support?: "legacy" | "modern" | undefined;
|
|
1816
1831
|
tokenStore?: "localStorage" | "sessionStorage" | {
|
|
@@ -1845,17 +1860,17 @@ declare const partialConfigSchema: ZodObject<{
|
|
|
1845
1860
|
redirectUri?: string | undefined;
|
|
1846
1861
|
scope?: string | undefined;
|
|
1847
1862
|
serverConfig?: {
|
|
1848
|
-
timeout: number;
|
|
1849
1863
|
baseUrl: string;
|
|
1850
1864
|
paths?: {
|
|
1851
|
-
authenticate
|
|
1852
|
-
authorize
|
|
1853
|
-
accessToken
|
|
1854
|
-
endSession
|
|
1855
|
-
userInfo
|
|
1856
|
-
revoke
|
|
1857
|
-
sessions
|
|
1865
|
+
authenticate?: string | undefined;
|
|
1866
|
+
authorize?: string | undefined;
|
|
1867
|
+
accessToken?: string | undefined;
|
|
1868
|
+
endSession?: string | undefined;
|
|
1869
|
+
userInfo?: string | undefined;
|
|
1870
|
+
revoke?: string | undefined;
|
|
1871
|
+
sessions?: string | undefined;
|
|
1858
1872
|
} | undefined;
|
|
1873
|
+
timeout?: number | undefined;
|
|
1859
1874
|
} | undefined;
|
|
1860
1875
|
support?: "legacy" | "modern" | undefined;
|
|
1861
1876
|
tokenStore?: "localStorage" | "sessionStorage" | {
|
|
@@ -2242,14 +2257,14 @@ declare const partialStyleSchema: ZodObject<{
|
|
|
2242
2257
|
}>>>;
|
|
2243
2258
|
sections: ZodOptional<ZodOptional<ZodObject<{
|
|
2244
2259
|
header: ZodOptional<ZodBoolean>;
|
|
2245
|
-
}, "
|
|
2260
|
+
}, "strict", ZodTypeAny, {
|
|
2246
2261
|
header?: boolean | undefined;
|
|
2247
2262
|
}, {
|
|
2248
2263
|
header?: boolean | undefined;
|
|
2249
2264
|
}>>>;
|
|
2250
2265
|
stage: ZodOptional<ZodOptional<ZodObject<{
|
|
2251
2266
|
icon: ZodOptional<ZodBoolean>;
|
|
2252
|
-
}, "
|
|
2267
|
+
}, "strict", ZodTypeAny, {
|
|
2253
2268
|
icon?: boolean | undefined;
|
|
2254
2269
|
}, {
|
|
2255
2270
|
icon?: boolean | undefined;
|
package/widget.css
CHANGED
|
@@ -45,9 +45,22 @@
|
|
|
45
45
|
-moz-tab-size: 4; /* 3 */
|
|
46
46
|
-o-tab-size: 4;
|
|
47
47
|
tab-size: 4; /* 3 */
|
|
48
|
-
font-family:
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
font-family:
|
|
49
|
+
'Open Sans',
|
|
50
|
+
ui-sans-serif,
|
|
51
|
+
system-ui,
|
|
52
|
+
-apple-system,
|
|
53
|
+
BlinkMacSystemFont,
|
|
54
|
+
'Segoe UI',
|
|
55
|
+
Roboto,
|
|
56
|
+
'Helvetica Neue',
|
|
57
|
+
Arial,
|
|
58
|
+
'Noto Sans',
|
|
59
|
+
sans-serif,
|
|
60
|
+
'Apple Color Emoji',
|
|
61
|
+
Segoe UI Emoji,
|
|
62
|
+
Segoe UI Symbol,
|
|
63
|
+
Noto Color Emoji; /* 4 */
|
|
51
64
|
}
|
|
52
65
|
/*
|
|
53
66
|
1. Add the correct height in Firefox.
|
|
@@ -85,7 +98,8 @@ Base link color when inside of localized content.
|
|
|
85
98
|
--tw-text-opacity: 1;
|
|
86
99
|
color: rgb(37 99 235 / var(--tw-text-opacity));
|
|
87
100
|
}
|
|
88
|
-
:where(.tw_dark) a
|
|
101
|
+
:where(.tw_dark) :where(.fr_widget-root) a,
|
|
102
|
+
:where(.tw_dark) :where(.fr_widget-root) a {
|
|
89
103
|
--tw-text-opacity: 1;
|
|
90
104
|
color: rgb(96 165 250 / var(--tw-text-opacity));
|
|
91
105
|
}
|