@ory/elements-react 1.0.0-next.12 → 1.0.0-next.14

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.
Files changed (44) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/api-report/elements-react-client.api.json +228 -0
  3. package/api-report/elements-react-client.api.md +22 -0
  4. package/api-report/elements-react-theme.api.json +47 -24
  5. package/api-report/elements-react-theme.api.md +5 -5
  6. package/api-report/elements-react.api.json +0 -33
  7. package/api-report/elements-react.api.md +0 -8
  8. package/api-report/temp/elements-react-client.api.md +22 -0
  9. package/api-report/temp/elements-react-theme.api.md +5 -5
  10. package/api-report/temp/elements-react.api.md +0 -8
  11. package/config/api-extractor-client.json +463 -0
  12. package/dist/client/frontendClient.d.mts +5 -0
  13. package/dist/client/frontendClient.d.ts +5 -0
  14. package/dist/client/frontendClient.js +40 -0
  15. package/dist/client/frontendClient.js.map +1 -0
  16. package/dist/client/frontendClient.mjs +19 -0
  17. package/dist/client/frontendClient.mjs.map +1 -0
  18. package/dist/client/index.d.mts +3 -0
  19. package/dist/client/index.d.ts +3 -0
  20. package/dist/client/index.js +29 -0
  21. package/dist/client/index.js.map +1 -0
  22. package/dist/client/index.mjs +5 -0
  23. package/dist/client/index.mjs.map +1 -0
  24. package/dist/client/useSession.d.mts +41 -0
  25. package/dist/client/useSession.d.ts +41 -0
  26. package/dist/client/useSession.js +79 -0
  27. package/dist/client/useSession.js.map +1 -0
  28. package/dist/client/useSession.mjs +54 -0
  29. package/dist/client/useSession.mjs.map +1 -0
  30. package/dist/index.d.mts +2 -18
  31. package/dist/index.d.ts +2 -18
  32. package/dist/index.js +31 -5565
  33. package/dist/index.js.map +1 -1
  34. package/dist/index.mjs +34 -5567
  35. package/dist/index.mjs.map +1 -1
  36. package/dist/theme/default/index.css +3 -0
  37. package/dist/theme/default/index.css.map +1 -1
  38. package/dist/theme/default/index.d.mts +3 -3
  39. package/dist/theme/default/index.d.ts +3 -3
  40. package/dist/theme/default/index.js +84 -62
  41. package/dist/theme/default/index.js.map +1 -1
  42. package/dist/theme/default/index.mjs +103 -83
  43. package/dist/theme/default/index.mjs.map +1 -1
  44. package/package.json +9 -2
@@ -829,9 +829,10 @@ function DefaultImage({ attributes }) {
829
829
  }
830
830
 
831
831
  // src/theme/default/components/form/input.tsx
832
- import { getNodeLabel as getNodeLabel3 } from "@ory/client-fetch";
832
+ import { FlowType as FlowType5, getNodeLabel as getNodeLabel3 } from "@ory/client-fetch";
833
833
  import {
834
- uiTextToFormattedMessage as uiTextToFormattedMessage5
834
+ uiTextToFormattedMessage as uiTextToFormattedMessage5,
835
+ useOryFlow as useOryFlow6
835
836
  } from "@ory/elements-react";
836
837
  import { useFormContext as useFormContext2 } from "react-hook-form";
837
838
  import { useIntl as useIntl8 } from "react-intl";
@@ -845,6 +846,7 @@ var DefaultInput = ({
845
846
  const { register } = useFormContext2();
846
847
  const { value, autocomplete, name, maxlength, ...rest } = attributes;
847
848
  const intl = useIntl8();
849
+ const { flowType } = useOryFlow6();
848
850
  const formattedLabel = label ? intl.formatMessage(
849
851
  {
850
852
  id: "input.placeholder",
@@ -862,18 +864,23 @@ var DefaultInput = ({
862
864
  maxLength: maxlength,
863
865
  autoComplete: autocomplete,
864
866
  placeholder: formattedLabel,
865
- className: "antialiased disabled:text-forms-fg-disabled disabled:bg-forms-bg-disabled bg-forms-bg-default rounded-border-radius-forms border px-3 py-2.5 md:px-4 md:py-4 border-forms-border-default leading-tight hover:border-forms-border-hover transition-colors text-sm",
867
+ className: cn(
868
+ "antialiased disabled:text-forms-fg-disabled disabled:bg-forms-bg-disabled bg-forms-bg-default rounded-border-radius-forms border border-forms-border-default leading-tight hover:border-forms-border-hover transition-colors text-sm",
869
+ "px-3 py-2.5",
870
+ // The settings flow input fields are supposed to be dense, so we don't need the extra padding we want on the user flows.
871
+ flowType === FlowType5.Settings ? "max-w-[488px]" : "md:px-4 md:py-4"
872
+ ),
866
873
  ...register(name, { value })
867
874
  }
868
875
  );
869
876
  };
870
877
 
871
878
  // src/theme/default/components/form/label.tsx
872
- import { FlowType as FlowType5, getNodeLabel as getNodeLabel4 } from "@ory/client-fetch";
879
+ import { FlowType as FlowType6, getNodeLabel as getNodeLabel4 } from "@ory/client-fetch";
873
880
  import {
874
881
  messageTestId as messageTestId2,
875
882
  uiTextToFormattedMessage as uiTextToFormattedMessage6,
876
- useOryFlow as useOryFlow6
883
+ useOryFlow as useOryFlow7
877
884
  } from "@ory/elements-react";
878
885
  import { useIntl as useIntl9 } from "react-intl";
879
886
  import { jsx as jsx22, jsxs as jsxs11 } from "react/jsx-runtime";
@@ -885,7 +892,7 @@ function DefaultLabel({
885
892
  }) {
886
893
  const intl = useIntl9();
887
894
  const label = getNodeLabel4(node);
888
- const { config, flowType } = useOryFlow6();
895
+ const { config, flowType } = useOryFlow7();
889
896
  const isPassword = attributes.type === "password";
890
897
  const isCode = attributes.name === "code";
891
898
  return /* @__PURE__ */ jsxs11("span", { className: "flex flex-col antialiased gap-1", children: [
@@ -900,7 +907,7 @@ function DefaultLabel({
900
907
  children: uiTextToFormattedMessage6(label, intl)
901
908
  }
902
909
  ),
903
- isPassword && config.project.recovery_enabled && flowType === FlowType5.Login && // TODO: make it possible to override with a custom component
910
+ isPassword && config.project.recovery_enabled && flowType === FlowType6.Login && // TODO: make it possible to override with a custom component
904
911
  /* @__PURE__ */ jsx22(
905
912
  "a",
906
913
  {
@@ -1042,7 +1049,7 @@ var DefaultPinCodeInput = ({ attributes }) => {
1042
1049
  // src/theme/default/components/form/social.tsx
1043
1050
  import {
1044
1051
  uiTextToFormattedMessage as uiTextToFormattedMessage8,
1045
- useOryFlow as useOryFlow7
1052
+ useOryFlow as useOryFlow8
1046
1053
  } from "@ory/elements-react";
1047
1054
 
1048
1055
  // src/theme/default/provider-logos/apple.svg
@@ -1249,7 +1256,7 @@ function DefaultButtonSocial({
1249
1256
  } = attributes;
1250
1257
  const {
1251
1258
  flow: { ui }
1252
- } = useOryFlow7();
1259
+ } = useOryFlow8();
1253
1260
  const intl = useIntl11();
1254
1261
  const oidcNodeCount = (_a = ui.nodes.filter((node2) => node2.group === "oidc").length) != null ? _a : 0;
1255
1262
  const Logo = provider_logos_default[attributes.value];
@@ -1564,6 +1571,7 @@ function DefaultSettingsTotp(props) {
1564
1571
  }
1565
1572
 
1566
1573
  // src/theme/default/components/settings/settings-oidc.tsx
1574
+ import { useFormContext as useFormContext4 } from "react-hook-form";
1567
1575
  import { jsx as jsx51, jsxs as jsxs31 } from "react/jsx-runtime";
1568
1576
  function DefaultSettingsOidc({
1569
1577
  linkButtons,
@@ -1571,6 +1579,7 @@ function DefaultSettingsOidc({
1571
1579
  }) {
1572
1580
  const hasLinkButtons = linkButtons.length > 0;
1573
1581
  const hasUnlinkButtons = unlinkButtons.length > 0;
1582
+ const { setValue } = useFormContext4();
1574
1583
  return /* @__PURE__ */ jsxs31("div", { className: "flex flex-col gap-8", children: [
1575
1584
  hasLinkButtons && /* @__PURE__ */ jsx51("div", { className: "flex gap-3 items-start [&>button]:w-[79px]", children: linkButtons.map((button) => {
1576
1585
  const attrs = button.attributes;
@@ -1579,7 +1588,11 @@ function DefaultSettingsOidc({
1579
1588
  {
1580
1589
  showLabel: false,
1581
1590
  node: button,
1582
- attributes: attrs
1591
+ attributes: attrs,
1592
+ onClick: () => {
1593
+ setValue("link", attrs.value);
1594
+ setValue("method", "oidc");
1595
+ }
1583
1596
  },
1584
1597
  attrs.value
1585
1598
  );
@@ -1589,13 +1602,24 @@ function DefaultSettingsOidc({
1589
1602
  var _a, _b;
1590
1603
  const attrs = button.attributes;
1591
1604
  const provider = (_b = extractProvider((_a = button.meta.label) == null ? void 0 : _a.context)) != null ? _b : "";
1592
- const Logo = provider_logos_default[attrs.value];
1605
+ const Logo = attrs.value in provider_logos_default ? provider_logos_default[attrs.value] : provider_logos_default.generic;
1593
1606
  return /* @__PURE__ */ jsxs31("div", { className: "flex justify-between", children: [
1594
1607
  /* @__PURE__ */ jsxs31("div", { className: "flex gap-6 items-center", children: [
1595
1608
  /* @__PURE__ */ jsx51(Logo, { size: 32 }),
1596
1609
  /* @__PURE__ */ jsx51("p", { className: "text-dialog-fg-subtle text-sm font-medium", children: provider })
1597
1610
  ] }),
1598
- /* @__PURE__ */ jsx51("button", { ...attrs, type: "submit", children: /* @__PURE__ */ jsx51(trash_default, { className: "cursor-pointer text-links-link-mute-default hover:text-links-link-mute-hover" }) })
1611
+ /* @__PURE__ */ jsx51(
1612
+ "button",
1613
+ {
1614
+ ...attrs,
1615
+ type: "submit",
1616
+ onClick: () => {
1617
+ setValue("unlink", attrs.value);
1618
+ setValue("method", "oidc");
1619
+ },
1620
+ children: /* @__PURE__ */ jsx51(trash_default, { className: "cursor-pointer text-links-link-mute-default hover:text-links-link-mute-hover" })
1621
+ }
1622
+ )
1599
1623
  ] }, attrs.value);
1600
1624
  })
1601
1625
  ] });
@@ -1734,15 +1758,12 @@ function DefaultSettingsPasskey({
1734
1758
  }
1735
1759
 
1736
1760
  // src/theme/default/components/generic/page-header.tsx
1737
- import {
1738
- useComponents as useComponents2,
1739
- useSession
1740
- } from "@ory/elements-react";
1761
+ import { useComponents as useComponents2 } from "@ory/elements-react";
1741
1762
 
1742
1763
  // src/theme/default/components/ui/user-menu.tsx
1743
1764
  import { DropdownMenuLabel as DropdownMenuLabel2 } from "@radix-ui/react-dropdown-menu";
1744
1765
  import { useCallback, useEffect, useState as useState2 } from "react";
1745
- import { useOryFlow as useOryFlow8 } from "@ory/elements-react";
1766
+ import { useOryFlow as useOryFlow9 } from "@ory/elements-react";
1746
1767
 
1747
1768
  // src/util/client.ts
1748
1769
  import {
@@ -1910,7 +1931,7 @@ UserAvatar.displayName = "UserAvatar";
1910
1931
  // src/theme/default/components/ui/user-menu.tsx
1911
1932
  import { jsx as jsx60, jsxs as jsxs35 } from "react/jsx-runtime";
1912
1933
  var UserMenu = ({ session }) => {
1913
- const { config } = useOryFlow8();
1934
+ const { config } = useOryFlow9();
1914
1935
  const initials = getUserInitials(session);
1915
1936
  const [logoutFlow, setLogoutFlow] = useState2();
1916
1937
  const fetchLogoutFlow = useCallback(async () => {
@@ -1943,6 +1964,7 @@ var UserMenu = ({ session }) => {
1943
1964
  };
1944
1965
 
1945
1966
  // src/theme/default/components/generic/page-header.tsx
1967
+ import { useSession } from "@ory/elements-react/client";
1946
1968
  import { jsx as jsx61, jsxs as jsxs36 } from "react/jsx-runtime";
1947
1969
  var DefaultPageHeader = (_props) => {
1948
1970
  const { Card } = useComponents2();
@@ -1954,49 +1976,52 @@ var DefaultPageHeader = (_props) => {
1954
1976
  };
1955
1977
 
1956
1978
  // src/theme/default/components/default-components.tsx
1957
- var OryDefaultComponents = {
1958
- Card: {
1959
- Root: DefaultCard,
1960
- Footer: DefaultCardFooter,
1961
- Header: DefaultCardHeader,
1962
- Content: DefaultCardContent,
1963
- Logo: DefaultCardLogo,
1964
- Divider: DefaultHorizontalDivider,
1965
- AuthMethodListItem: DefaultAuthMethodListItem,
1966
- SettingsSection: DefaultFormSection,
1967
- SettingsSectionContent: DefaultFormSectionContent,
1968
- SettingsSectionFooter: DefaultFormSectionFooter
1969
- },
1970
- Node: {
1971
- Button: DefaultButton,
1972
- OidcButton: DefaultButtonSocial,
1973
- CurrentIdentifierButton: DefaultCurrentIdentifierButton,
1974
- Input: DefaultInput,
1975
- CodeInput: DefaultPinCodeInput,
1976
- Image: DefaultImage,
1977
- Label: DefaultLabel,
1978
- Checkbox: DefaultCheckbox,
1979
- Text: DefaultText,
1980
- Anchor: DefaultLinkButton
1981
- },
1982
- Form: {
1983
- Root: DefaultFormContainer,
1984
- Group: DefaultGroupContainer,
1985
- OidcRoot: DefaultSocialButtonContainer,
1986
- RecoveryCodesSettings: DefaultSettingsRecoveryCodes,
1987
- TotpSettings: DefaultSettingsTotp,
1988
- OidcSettings: DefaultSettingsOidc,
1989
- WebauthnSettings: DefaultSettingsWebauthn,
1990
- PasskeySettings: DefaultSettingsPasskey
1991
- },
1992
- Message: {
1993
- Root: DefaultMessageContainer,
1994
- Content: DefaultMessage
1995
- },
1996
- Page: {
1997
- Header: DefaultPageHeader
1998
- }
1999
- };
1979
+ function getOryComponents(overrides) {
1980
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha;
1981
+ return {
1982
+ Card: {
1983
+ Root: (_b = (_a = overrides == null ? void 0 : overrides.Card) == null ? void 0 : _a.Root) != null ? _b : DefaultCard,
1984
+ Footer: (_d = (_c = overrides == null ? void 0 : overrides.Card) == null ? void 0 : _c.Footer) != null ? _d : DefaultCardFooter,
1985
+ Header: (_f = (_e = overrides == null ? void 0 : overrides.Card) == null ? void 0 : _e.Header) != null ? _f : DefaultCardHeader,
1986
+ Content: (_h = (_g = overrides == null ? void 0 : overrides.Card) == null ? void 0 : _g.Content) != null ? _h : DefaultCardContent,
1987
+ Logo: (_j = (_i = overrides == null ? void 0 : overrides.Card) == null ? void 0 : _i.Logo) != null ? _j : DefaultCardLogo,
1988
+ Divider: (_l = (_k = overrides == null ? void 0 : overrides.Card) == null ? void 0 : _k.Divider) != null ? _l : DefaultHorizontalDivider,
1989
+ AuthMethodListItem: (_n = (_m = overrides == null ? void 0 : overrides.Card) == null ? void 0 : _m.AuthMethodListItem) != null ? _n : DefaultAuthMethodListItem,
1990
+ SettingsSection: (_p = (_o = overrides == null ? void 0 : overrides.Card) == null ? void 0 : _o.SettingsSection) != null ? _p : DefaultFormSection,
1991
+ SettingsSectionContent: (_r = (_q = overrides == null ? void 0 : overrides.Card) == null ? void 0 : _q.SettingsSectionContent) != null ? _r : DefaultFormSectionContent,
1992
+ SettingsSectionFooter: (_t = (_s = overrides == null ? void 0 : overrides.Card) == null ? void 0 : _s.SettingsSectionFooter) != null ? _t : DefaultFormSectionFooter
1993
+ },
1994
+ Node: {
1995
+ Button: (_v = (_u = overrides == null ? void 0 : overrides.Node) == null ? void 0 : _u.Button) != null ? _v : DefaultButton,
1996
+ OidcButton: (_x = (_w = overrides == null ? void 0 : overrides.Node) == null ? void 0 : _w.OidcButton) != null ? _x : DefaultButtonSocial,
1997
+ CurrentIdentifierButton: (_z = (_y = overrides == null ? void 0 : overrides.Node) == null ? void 0 : _y.CurrentIdentifierButton) != null ? _z : DefaultCurrentIdentifierButton,
1998
+ Input: (_B = (_A = overrides == null ? void 0 : overrides.Node) == null ? void 0 : _A.Input) != null ? _B : DefaultInput,
1999
+ CodeInput: (_D = (_C = overrides == null ? void 0 : overrides.Node) == null ? void 0 : _C.CodeInput) != null ? _D : DefaultPinCodeInput,
2000
+ Image: (_F = (_E = overrides == null ? void 0 : overrides.Node) == null ? void 0 : _E.Image) != null ? _F : DefaultImage,
2001
+ Label: (_H = (_G = overrides == null ? void 0 : overrides.Node) == null ? void 0 : _G.Label) != null ? _H : DefaultLabel,
2002
+ Checkbox: (_J = (_I = overrides == null ? void 0 : overrides.Node) == null ? void 0 : _I.Checkbox) != null ? _J : DefaultCheckbox,
2003
+ Text: (_L = (_K = overrides == null ? void 0 : overrides.Node) == null ? void 0 : _K.Text) != null ? _L : DefaultText,
2004
+ Anchor: (_N = (_M = overrides == null ? void 0 : overrides.Node) == null ? void 0 : _M.Anchor) != null ? _N : DefaultLinkButton
2005
+ },
2006
+ Form: {
2007
+ Root: (_P = (_O = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _O.Root) != null ? _P : DefaultFormContainer,
2008
+ Group: (_R = (_Q = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _Q.Group) != null ? _R : DefaultGroupContainer,
2009
+ OidcRoot: (_T = (_S = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _S.OidcRoot) != null ? _T : DefaultSocialButtonContainer,
2010
+ RecoveryCodesSettings: (_V = (_U = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _U.RecoveryCodesSettings) != null ? _V : DefaultSettingsRecoveryCodes,
2011
+ TotpSettings: (_X = (_W = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _W.TotpSettings) != null ? _X : DefaultSettingsTotp,
2012
+ OidcSettings: (_Z = (_Y = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _Y.OidcSettings) != null ? _Z : DefaultSettingsOidc,
2013
+ WebauthnSettings: (_$ = (__ = overrides == null ? void 0 : overrides.Form) == null ? void 0 : __.WebauthnSettings) != null ? _$ : DefaultSettingsWebauthn,
2014
+ PasskeySettings: (_ba = (_aa = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _aa.PasskeySettings) != null ? _ba : DefaultSettingsPasskey
2015
+ },
2016
+ Message: {
2017
+ Root: (_da = (_ca = overrides == null ? void 0 : overrides.Message) == null ? void 0 : _ca.Root) != null ? _da : DefaultMessageContainer,
2018
+ Content: (_fa = (_ea = overrides == null ? void 0 : overrides.Message) == null ? void 0 : _ea.Content) != null ? _fa : DefaultMessage
2019
+ },
2020
+ Page: {
2021
+ Header: (_ha = (_ga = overrides == null ? void 0 : overrides.Page) == null ? void 0 : _ga.Header) != null ? _ha : DefaultPageHeader
2022
+ }
2023
+ };
2024
+ }
2000
2025
 
2001
2026
  // src/theme/default/flows/error.tsx
2002
2027
  import { jsx as jsx62 } from "react/jsx-runtime";
@@ -2008,12 +2033,11 @@ function Error({
2008
2033
  }
2009
2034
 
2010
2035
  // src/theme/default/flows/login.tsx
2011
- import { FlowType as FlowType6 } from "@ory/client-fetch";
2036
+ import { FlowType as FlowType7 } from "@ory/client-fetch";
2012
2037
  import {
2013
2038
  OryProvider,
2014
2039
  OryTwoStepCard
2015
2040
  } from "@ory/elements-react";
2016
- import merge from "lodash.merge";
2017
2041
  import { jsx as jsx63 } from "react/jsx-runtime";
2018
2042
  function Login({
2019
2043
  flow,
@@ -2021,13 +2045,13 @@ function Login({
2021
2045
  children,
2022
2046
  components: flowOverrideComponents
2023
2047
  }) {
2024
- const components = flowOverrideComponents ? merge({}, OryDefaultComponents, flowOverrideComponents) : OryDefaultComponents;
2048
+ const components = getOryComponents(flowOverrideComponents);
2025
2049
  return /* @__PURE__ */ jsx63(
2026
2050
  OryProvider,
2027
2051
  {
2028
2052
  config,
2029
2053
  flow,
2030
- flowType: FlowType6.Login,
2054
+ flowType: FlowType7.Login,
2031
2055
  components,
2032
2056
  children: children != null ? children : /* @__PURE__ */ jsx63(OryTwoStepCard, {})
2033
2057
  }
@@ -2035,12 +2059,11 @@ function Login({
2035
2059
  }
2036
2060
 
2037
2061
  // src/theme/default/flows/recovery.tsx
2038
- import { FlowType as FlowType7 } from "@ory/client-fetch";
2062
+ import { FlowType as FlowType8 } from "@ory/client-fetch";
2039
2063
  import {
2040
2064
  OryProvider as OryProvider2,
2041
2065
  OryTwoStepCard as OryTwoStepCard2
2042
2066
  } from "@ory/elements-react";
2043
- import merge2 from "lodash.merge";
2044
2067
  import { jsx as jsx64 } from "react/jsx-runtime";
2045
2068
  function Recovery({
2046
2069
  flow,
@@ -2048,13 +2071,13 @@ function Recovery({
2048
2071
  children,
2049
2072
  components: flowOverrideComponents
2050
2073
  }) {
2051
- const components = flowOverrideComponents ? merge2({}, OryDefaultComponents, flowOverrideComponents) : OryDefaultComponents;
2074
+ const components = getOryComponents(flowOverrideComponents);
2052
2075
  return /* @__PURE__ */ jsx64(
2053
2076
  OryProvider2,
2054
2077
  {
2055
2078
  config,
2056
2079
  flow,
2057
- flowType: FlowType7.Recovery,
2080
+ flowType: FlowType8.Recovery,
2058
2081
  components,
2059
2082
  children: children != null ? children : /* @__PURE__ */ jsx64(OryTwoStepCard2, {})
2060
2083
  }
@@ -2062,12 +2085,11 @@ function Recovery({
2062
2085
  }
2063
2086
 
2064
2087
  // src/theme/default/flows/registration.tsx
2065
- import { FlowType as FlowType8 } from "@ory/client-fetch";
2088
+ import { FlowType as FlowType9 } from "@ory/client-fetch";
2066
2089
  import {
2067
2090
  OryProvider as OryProvider3,
2068
2091
  OryTwoStepCard as OryTwoStepCard3
2069
2092
  } from "@ory/elements-react";
2070
- import merge3 from "lodash.merge";
2071
2093
  import { jsx as jsx65 } from "react/jsx-runtime";
2072
2094
  function Registration({
2073
2095
  flow,
@@ -2075,13 +2097,13 @@ function Registration({
2075
2097
  components: flowOverrideComponents,
2076
2098
  config
2077
2099
  }) {
2078
- const components = flowOverrideComponents ? merge3({}, OryDefaultComponents, flowOverrideComponents) : OryDefaultComponents;
2100
+ const components = getOryComponents(flowOverrideComponents);
2079
2101
  return /* @__PURE__ */ jsx65(
2080
2102
  OryProvider3,
2081
2103
  {
2082
2104
  config,
2083
2105
  flow,
2084
- flowType: FlowType8.Registration,
2106
+ flowType: FlowType9.Registration,
2085
2107
  components,
2086
2108
  children: children != null ? children : /* @__PURE__ */ jsx65(OryTwoStepCard3, {})
2087
2109
  }
@@ -2089,13 +2111,12 @@ function Registration({
2089
2111
  }
2090
2112
 
2091
2113
  // src/theme/default/flows/settings.tsx
2092
- import { FlowType as FlowType9 } from "@ory/client-fetch";
2114
+ import { FlowType as FlowType10 } from "@ory/client-fetch";
2093
2115
  import {
2094
2116
  HeadlessPageHeader,
2095
2117
  OryProvider as OryProvider4,
2096
2118
  OrySettingsCard
2097
2119
  } from "@ory/elements-react";
2098
- import merge4 from "lodash.merge";
2099
2120
  import { Fragment as Fragment3, jsx as jsx66, jsxs as jsxs37 } from "react/jsx-runtime";
2100
2121
  function Settings({
2101
2122
  flow,
@@ -2103,13 +2124,13 @@ function Settings({
2103
2124
  children,
2104
2125
  components: flowOverrideComponents
2105
2126
  }) {
2106
- const components = flowOverrideComponents ? merge4({}, OryDefaultComponents, flowOverrideComponents) : OryDefaultComponents;
2127
+ const components = getOryComponents(flowOverrideComponents);
2107
2128
  return /* @__PURE__ */ jsx66(
2108
2129
  OryProvider4,
2109
2130
  {
2110
2131
  config,
2111
2132
  flow,
2112
- flowType: FlowType9.Settings,
2133
+ flowType: FlowType10.Settings,
2113
2134
  components,
2114
2135
  children: children != null ? children : /* @__PURE__ */ jsxs37(Fragment3, { children: [
2115
2136
  /* @__PURE__ */ jsx66(HeadlessPageHeader, {}),
@@ -2120,12 +2141,11 @@ function Settings({
2120
2141
  }
2121
2142
 
2122
2143
  // src/theme/default/flows/verification.tsx
2123
- import { FlowType as FlowType10 } from "@ory/client-fetch";
2144
+ import { FlowType as FlowType11 } from "@ory/client-fetch";
2124
2145
  import {
2125
2146
  OryProvider as OryProvider5,
2126
2147
  OryTwoStepCard as OryTwoStepCard4
2127
2148
  } from "@ory/elements-react";
2128
- import merge5 from "lodash.merge";
2129
2149
  import { jsx as jsx67 } from "react/jsx-runtime";
2130
2150
  function Verification({
2131
2151
  flow,
@@ -2133,13 +2153,13 @@ function Verification({
2133
2153
  children,
2134
2154
  components: flowOverrideComponents
2135
2155
  }) {
2136
- const components = flowOverrideComponents ? merge5({}, OryDefaultComponents, flowOverrideComponents) : OryDefaultComponents;
2156
+ const components = getOryComponents(flowOverrideComponents);
2137
2157
  return /* @__PURE__ */ jsx67(
2138
2158
  OryProvider5,
2139
2159
  {
2140
2160
  config,
2141
2161
  flow,
2142
- flowType: FlowType10.Verification,
2162
+ flowType: FlowType11.Verification,
2143
2163
  components,
2144
2164
  children: children != null ? children : /* @__PURE__ */ jsx67(OryTwoStepCard4, {})
2145
2165
  }
@@ -2156,10 +2176,10 @@ export {
2156
2176
  DefaultMessageContainer,
2157
2177
  Error,
2158
2178
  Login,
2159
- OryDefaultComponents,
2160
2179
  Recovery,
2161
2180
  Registration,
2162
2181
  Settings,
2163
- Verification
2182
+ Verification,
2183
+ getOryComponents
2164
2184
  };
2165
2185
  //# sourceMappingURL=index.mjs.map