@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/package.json CHANGED
@@ -13,5 +13,5 @@
13
13
  },
14
14
  "license": "MIT",
15
15
  "dependencies": {},
16
- "version": "1.2.0-beta.3"
16
+ "version": "1.2.0-beta.5"
17
17
  }
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
- }, "strip", ZodTypeAny, {
1700
- authenticate: string;
1701
- authorize: string;
1702
- accessToken: string;
1703
- endSession: string;
1704
- userInfo: string;
1705
- revoke: string;
1706
- sessions: string;
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: string;
1709
- authorize: string;
1710
- accessToken: string;
1711
- endSession: string;
1712
- userInfo: string;
1713
- revoke: string;
1714
- sessions: string;
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
- }, "strip", ZodTypeAny, {
1718
- timeout: number;
1731
+ timeout: ZodOptional<ZodNumber>;
1732
+ }, "strict", ZodTypeAny, {
1719
1733
  baseUrl: string;
1720
1734
  paths?: {
1721
- authenticate: string;
1722
- authorize: string;
1723
- accessToken: string;
1724
- endSession: string;
1725
- userInfo: string;
1726
- revoke: string;
1727
- sessions: string;
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: string;
1734
- authorize: string;
1735
- accessToken: string;
1736
- endSession: string;
1737
- userInfo: string;
1738
- revoke: string;
1739
- sessions: string;
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
- }, "strip", ZodTypeAny, {
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: string;
1807
- authorize: string;
1808
- accessToken: string;
1809
- endSession: string;
1810
- userInfo: string;
1811
- revoke: string;
1812
- sessions: string;
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: string;
1852
- authorize: string;
1853
- accessToken: string;
1854
- endSession: string;
1855
- userInfo: string;
1856
- revoke: string;
1857
- sessions: string;
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
- }, "strip", ZodTypeAny, {
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
- }, "strip", ZodTypeAny, {
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: 'Open Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
49
- Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', Segoe UI Emoji,
50
- Segoe UI Symbol, Noto Color Emoji; /* 4 */
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
  }