@ory/elements-react 1.0.0-next.37 → 1.0.0-next.39
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 +20 -0
- package/dist/index.js +37 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +37 -17
- package/dist/index.mjs.map +1 -1
- package/dist/theme/default/index.js +61 -56
- package/dist/theme/default/index.js.map +1 -1
- package/dist/theme/default/index.mjs +24 -10
- package/dist/theme/default/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/theme/default/tailwind/defaults.d.mts +0 -737
- package/dist/theme/default/tailwind/defaults.d.ts +0 -737
|
@@ -217,7 +217,7 @@ function LoginCardFooter() {
|
|
|
217
217
|
return null;
|
|
218
218
|
}
|
|
219
219
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
220
|
-
formState.current === "provide_identifier" && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: [
|
|
220
|
+
formState.current === "provide_identifier" && config.project.registration_enabled && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: [
|
|
221
221
|
intl.formatMessage({
|
|
222
222
|
id: "login.registration-label",
|
|
223
223
|
defaultMessage: "No account?"
|
|
@@ -228,7 +228,7 @@ function LoginCardFooter() {
|
|
|
228
228
|
{
|
|
229
229
|
className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
|
|
230
230
|
href: initFlowUrl(config.sdk.url, "registration", flow),
|
|
231
|
-
"data-testid": "ory/screen/
|
|
231
|
+
"data-testid": "ory/screen/login/action/register",
|
|
232
232
|
children: intl.formatMessage({
|
|
233
233
|
id: "login.registration-button",
|
|
234
234
|
defaultMessage: "Sign up"
|
|
@@ -458,7 +458,7 @@ function useCardHeaderText(container, opts) {
|
|
|
458
458
|
);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
if (nodes.find((node) => node.group === "oidc")) {
|
|
461
|
+
if (nodes.find((node) => node.group === "oidc" || node.group === "saml")) {
|
|
462
462
|
parts.push(
|
|
463
463
|
intl.formatMessage({
|
|
464
464
|
id: "card.header.parts.oidc"
|
|
@@ -711,7 +711,7 @@ function cn(...inputs) {
|
|
|
711
711
|
// src/theme/default/components/form/index.tsx
|
|
712
712
|
var import_react_intl4 = require("react-intl");
|
|
713
713
|
var import_elements_react6 = require("@ory/elements-react");
|
|
714
|
-
var
|
|
714
|
+
var import_client_fetch7 = require("@ory/client-fetch");
|
|
715
715
|
|
|
716
716
|
// src/theme/default/components/form/social.tsx
|
|
717
717
|
var import_elements_react5 = require("@ory/elements-react");
|
|
@@ -948,6 +948,7 @@ function Spinner({ className }) {
|
|
|
948
948
|
}
|
|
949
949
|
|
|
950
950
|
// src/theme/default/components/form/social.tsx
|
|
951
|
+
var import_client_fetch6 = require("@ory/client-fetch");
|
|
951
952
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
952
953
|
function extractProvider(context) {
|
|
953
954
|
if (context && typeof context === "object" && "provider" in context && typeof context.provider === "string") {
|
|
@@ -978,7 +979,9 @@ function DefaultButtonSocial({
|
|
|
978
979
|
const {
|
|
979
980
|
formState: { isSubmitting }
|
|
980
981
|
} = (0, import_react_hook_form2.useFormContext)();
|
|
981
|
-
const oidcNodeCount = (_a = ui.nodes.filter(
|
|
982
|
+
const oidcNodeCount = (_a = ui.nodes.filter(
|
|
983
|
+
(node2) => node2.group === import_client_fetch6.UiNodeGroupEnum.Oidc || node2.group === import_client_fetch6.UiNodeGroupEnum.Saml
|
|
984
|
+
).length) != null ? _a : 0;
|
|
982
985
|
const Logo = logos2[attributes.value.split("-")[0]];
|
|
983
986
|
const showLabel = _showLabel != null ? _showLabel : oidcNodeCount % 3 !== 0 && oidcNodeCount % 4 !== 0;
|
|
984
987
|
const provider = (_c = extractProvider((_b = node.meta.label) == null ? void 0 : _b.context)) != null ? _c : "";
|
|
@@ -1061,7 +1064,7 @@ function DefaultMessageContainer({ children }) {
|
|
|
1061
1064
|
"section",
|
|
1062
1065
|
{
|
|
1063
1066
|
className: cn(
|
|
1064
|
-
flowType ===
|
|
1067
|
+
flowType === import_client_fetch7.FlowType.Settings ? "text-center" : "text-left"
|
|
1065
1068
|
),
|
|
1066
1069
|
children
|
|
1067
1070
|
}
|
|
@@ -1193,7 +1196,7 @@ function DefaultAuthMethodListItem({
|
|
|
1193
1196
|
}
|
|
1194
1197
|
|
|
1195
1198
|
// src/theme/default/components/form/button.tsx
|
|
1196
|
-
var
|
|
1199
|
+
var import_client_fetch8 = require("@ory/client-fetch");
|
|
1197
1200
|
var import_elements_react7 = require("@ory/elements-react");
|
|
1198
1201
|
var import_class_variance_authority = require("class-variance-authority");
|
|
1199
1202
|
var import_react_hook_form3 = require("react-hook-form");
|
|
@@ -1252,7 +1255,7 @@ var DefaultButton = ({
|
|
|
1252
1255
|
} = attributes;
|
|
1253
1256
|
const [clicked, setClicked] = (0, import_react4.useState)(false);
|
|
1254
1257
|
const intl = (0, import_react_intl6.useIntl)();
|
|
1255
|
-
const label = (0,
|
|
1258
|
+
const label = (0, import_client_fetch8.getNodeLabel)(node);
|
|
1256
1259
|
const {
|
|
1257
1260
|
formState: { isSubmitting },
|
|
1258
1261
|
setValue
|
|
@@ -1292,7 +1295,7 @@ var DefaultButton = ({
|
|
|
1292
1295
|
DefaultButton.displayName = "DefaultButton";
|
|
1293
1296
|
|
|
1294
1297
|
// src/theme/default/components/form/checkbox.tsx
|
|
1295
|
-
var
|
|
1298
|
+
var import_client_fetch9 = require("@ory/client-fetch");
|
|
1296
1299
|
var import_elements_react8 = require("@ory/elements-react");
|
|
1297
1300
|
var import_react_hook_form4 = require("react-hook-form");
|
|
1298
1301
|
var import_react_intl8 = require("react-intl");
|
|
@@ -1439,7 +1442,7 @@ var DefaultCheckbox = ({
|
|
|
1439
1442
|
...attributes
|
|
1440
1443
|
} = initialAttributes;
|
|
1441
1444
|
const intl = (0, import_react_intl8.useIntl)();
|
|
1442
|
-
const label = (0,
|
|
1445
|
+
const label = (0, import_client_fetch9.getNodeLabel)(node);
|
|
1443
1446
|
const { register } = (0, import_react_hook_form4.useForm)();
|
|
1444
1447
|
const hasError = node.messages.some((m) => m.type === "error");
|
|
1445
1448
|
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("label", { className: "flex items-start gap-3 self-stretch antialiased", children: [
|
|
@@ -1497,7 +1500,7 @@ function DefaultImage({ attributes }) {
|
|
|
1497
1500
|
}
|
|
1498
1501
|
|
|
1499
1502
|
// src/theme/default/components/form/input.tsx
|
|
1500
|
-
var
|
|
1503
|
+
var import_client_fetch10 = require("@ory/client-fetch");
|
|
1501
1504
|
var import_elements_react9 = require("@ory/elements-react");
|
|
1502
1505
|
var import_react5 = require("react");
|
|
1503
1506
|
var import_react_hook_form5 = require("react-hook-form");
|
|
@@ -1531,7 +1534,7 @@ var DefaultInput = ({
|
|
|
1531
1534
|
attributes,
|
|
1532
1535
|
onClick
|
|
1533
1536
|
}) => {
|
|
1534
|
-
const label = (0,
|
|
1537
|
+
const label = (0, import_client_fetch10.getNodeLabel)(node);
|
|
1535
1538
|
const { register } = (0, import_react_hook_form5.useFormContext)();
|
|
1536
1539
|
const {
|
|
1537
1540
|
value,
|
|
@@ -1574,7 +1577,7 @@ var DefaultInput = ({
|
|
|
1574
1577
|
className: cn(
|
|
1575
1578
|
"relative flex justify-stretch",
|
|
1576
1579
|
// The settings flow input fields are supposed to be dense, so we don't need the extra padding we want on the user flows.
|
|
1577
|
-
flowType ===
|
|
1580
|
+
flowType === import_client_fetch10.FlowType.Settings && "max-w-[488px]"
|
|
1578
1581
|
),
|
|
1579
1582
|
children: [
|
|
1580
1583
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
@@ -1628,7 +1631,7 @@ function PasswordToggle({
|
|
|
1628
1631
|
}
|
|
1629
1632
|
|
|
1630
1633
|
// src/theme/default/components/form/label.tsx
|
|
1631
|
-
var
|
|
1634
|
+
var import_client_fetch11 = require("@ory/client-fetch");
|
|
1632
1635
|
var import_elements_react10 = require("@ory/elements-react");
|
|
1633
1636
|
var import_react_hook_form6 = require("react-hook-form");
|
|
1634
1637
|
var import_react_intl10 = require("react-intl");
|
|
@@ -1645,7 +1648,7 @@ function DefaultLabel({
|
|
|
1645
1648
|
...rest
|
|
1646
1649
|
}) {
|
|
1647
1650
|
const intl = (0, import_react_intl10.useIntl)();
|
|
1648
|
-
const label = (0,
|
|
1651
|
+
const label = (0, import_client_fetch11.getNodeLabel)(node);
|
|
1649
1652
|
const { Message } = (0, import_elements_react10.useComponents)();
|
|
1650
1653
|
const { config, flowType, flow } = (0, import_elements_react10.useOryFlow)();
|
|
1651
1654
|
const { setValue, formState } = (0, import_react_hook_form6.useFormContext)();
|
|
@@ -1670,7 +1673,7 @@ function DefaultLabel({
|
|
|
1670
1673
|
children: (0, import_elements_react10.uiTextToFormattedMessage)(label, intl)
|
|
1671
1674
|
}
|
|
1672
1675
|
),
|
|
1673
|
-
isPassword && config.project.recovery_enabled && flowType ===
|
|
1676
|
+
isPassword && config.project.recovery_enabled && flowType === import_client_fetch11.FlowType.Login && // TODO: make it possible to override with a custom component
|
|
1674
1677
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
1675
1678
|
"a",
|
|
1676
1679
|
{
|
|
@@ -1696,19 +1699,19 @@ function DefaultLabel({
|
|
|
1696
1699
|
] }),
|
|
1697
1700
|
children,
|
|
1698
1701
|
node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Message.Content, { message }, message.id)),
|
|
1699
|
-
fieldError && (0,
|
|
1702
|
+
fieldError && (0, import_client_fetch11.instanceOfUiText)(fieldError) && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Message.Content, { message: fieldError })
|
|
1700
1703
|
] });
|
|
1701
1704
|
}
|
|
1702
1705
|
|
|
1703
1706
|
// src/theme/default/components/form/link-button.tsx
|
|
1704
|
-
var
|
|
1707
|
+
var import_client_fetch12 = require("@ory/client-fetch");
|
|
1705
1708
|
var import_elements_react11 = require("@ory/elements-react");
|
|
1706
1709
|
var import_react6 = require("react");
|
|
1707
1710
|
var import_react_intl11 = require("react-intl");
|
|
1708
1711
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
1709
1712
|
var DefaultLinkButton = (0, import_react6.forwardRef)(({ attributes, node }, ref) => {
|
|
1710
1713
|
const intl = (0, import_react_intl11.useIntl)();
|
|
1711
|
-
const label = (0,
|
|
1714
|
+
const label = (0, import_client_fetch12.getNodeLabel)(node);
|
|
1712
1715
|
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
1713
1716
|
"a",
|
|
1714
1717
|
{
|
|
@@ -1772,7 +1775,7 @@ InputOTPSlot.displayName = "InputOTPSlot";
|
|
|
1772
1775
|
|
|
1773
1776
|
// src/theme/default/components/form/pin-code-input.tsx
|
|
1774
1777
|
var import_elements_react12 = require("@ory/elements-react");
|
|
1775
|
-
var
|
|
1778
|
+
var import_client_fetch13 = require("@ory/client-fetch");
|
|
1776
1779
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
1777
1780
|
var DefaultPinCodeInput = ({ attributes }) => {
|
|
1778
1781
|
const { setValue, watch } = (0, import_react_hook_form7.useFormContext)();
|
|
@@ -1796,7 +1799,7 @@ var DefaultPinCodeInput = ({ attributes }) => {
|
|
|
1796
1799
|
className: cn(
|
|
1797
1800
|
"w-full flex gap-2 justify-stretch",
|
|
1798
1801
|
// The settings flow input fields are supposed to be dense, so we don't need the extra padding we want on the user flows.
|
|
1799
|
-
flowType ===
|
|
1802
|
+
flowType === import_client_fetch13.FlowType.Settings && "max-w-[488px]"
|
|
1800
1803
|
),
|
|
1801
1804
|
children: [...Array(elements)].map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(InputOTPSlot, { index }, index))
|
|
1802
1805
|
}
|
|
@@ -1918,9 +1921,9 @@ var settings_default = SvgSettings;
|
|
|
1918
1921
|
var import_react7 = require("react");
|
|
1919
1922
|
|
|
1920
1923
|
// src/util/client.ts
|
|
1921
|
-
var
|
|
1924
|
+
var import_client_fetch14 = require("@ory/client-fetch");
|
|
1922
1925
|
function frontendClient(sdkUrl, opts = {}) {
|
|
1923
|
-
const config = new
|
|
1926
|
+
const config = new import_client_fetch14.Configuration({
|
|
1924
1927
|
...opts,
|
|
1925
1928
|
basePath: sdkUrl,
|
|
1926
1929
|
headers: {
|
|
@@ -1928,7 +1931,7 @@ function frontendClient(sdkUrl, opts = {}) {
|
|
|
1928
1931
|
...opts.headers
|
|
1929
1932
|
}
|
|
1930
1933
|
});
|
|
1931
|
-
return new
|
|
1934
|
+
return new import_client_fetch14.FrontendApi(config);
|
|
1932
1935
|
}
|
|
1933
1936
|
|
|
1934
1937
|
// src/theme/default/utils/logout.ts
|
|
@@ -2624,7 +2627,7 @@ function DefaultAuthMethodListContainer({
|
|
|
2624
2627
|
}
|
|
2625
2628
|
|
|
2626
2629
|
// src/theme/default/components/form/captcha.tsx
|
|
2627
|
-
var
|
|
2630
|
+
var import_client_fetch15 = require("@ory/client-fetch");
|
|
2628
2631
|
var import_react_turnstile = require("@marsidev/react-turnstile");
|
|
2629
2632
|
var import_react11 = require("react");
|
|
2630
2633
|
var import_react_hook_form13 = require("react-hook-form");
|
|
@@ -2633,14 +2636,14 @@ var DefaultCaptcha = ({ node }) => {
|
|
|
2633
2636
|
const { setValue } = (0, import_react_hook_form13.useFormContext)();
|
|
2634
2637
|
const ref = (0, import_react11.useRef)();
|
|
2635
2638
|
const nodes = [];
|
|
2636
|
-
if ((0,
|
|
2639
|
+
if ((0, import_client_fetch15.isUiNodeInputAttributes)(node.attributes)) {
|
|
2637
2640
|
if (node.attributes.name === "transient_payload.captcha_turnstile_response") {
|
|
2638
2641
|
nodes.push(
|
|
2639
2642
|
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(DefaultInput, { node, attributes: node.attributes }, 1)
|
|
2640
2643
|
);
|
|
2641
2644
|
}
|
|
2642
2645
|
}
|
|
2643
|
-
if ((0,
|
|
2646
|
+
if ((0, import_client_fetch15.isUiNodeInputAttributes)(node.attributes) && node.attributes.name === "captcha_turnstile_options") {
|
|
2644
2647
|
const options = JSON.parse(node.attributes.value);
|
|
2645
2648
|
nodes.push(
|
|
2646
2649
|
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
@@ -2720,7 +2723,7 @@ function getOryComponents(overrides) {
|
|
|
2720
2723
|
}
|
|
2721
2724
|
|
|
2722
2725
|
// src/theme/default/flows/error.tsx
|
|
2723
|
-
var
|
|
2726
|
+
var import_client_fetch34 = require("@ory/client-fetch");
|
|
2724
2727
|
var import_react15 = require("react");
|
|
2725
2728
|
|
|
2726
2729
|
// src/context/intl-context.tsx
|
|
@@ -2730,11 +2733,11 @@ var import_react_intl20 = require("react-intl");
|
|
|
2730
2733
|
var import_react13 = require("react");
|
|
2731
2734
|
|
|
2732
2735
|
// src/context/form-state.ts
|
|
2733
|
-
var
|
|
2736
|
+
var import_client_fetch17 = require("@ory/client-fetch");
|
|
2734
2737
|
var import_react12 = require("react");
|
|
2735
2738
|
|
|
2736
2739
|
// src/components/card/card-two-step.utils.ts
|
|
2737
|
-
var
|
|
2740
|
+
var import_client_fetch16 = require("@ory/client-fetch");
|
|
2738
2741
|
|
|
2739
2742
|
// src/context/flow-context.tsx
|
|
2740
2743
|
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
@@ -2747,14 +2750,14 @@ var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
|
2747
2750
|
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
2748
2751
|
|
|
2749
2752
|
// src/components/form/form-provider.tsx
|
|
2750
|
-
var
|
|
2753
|
+
var import_client_fetch20 = require("@ory/client-fetch");
|
|
2751
2754
|
var import_react_hook_form14 = require("react-hook-form");
|
|
2752
2755
|
|
|
2753
2756
|
// src/components/form/form-helpers.ts
|
|
2754
|
-
var
|
|
2757
|
+
var import_client_fetch18 = require("@ory/client-fetch");
|
|
2755
2758
|
|
|
2756
2759
|
// src/components/form/form-resolver.ts
|
|
2757
|
-
var
|
|
2760
|
+
var import_client_fetch19 = require("@ory/client-fetch");
|
|
2758
2761
|
|
|
2759
2762
|
// src/components/form/form-provider.tsx
|
|
2760
2763
|
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
@@ -2769,32 +2772,32 @@ var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
|
2769
2772
|
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
2770
2773
|
|
|
2771
2774
|
// src/components/card/card-two-step.tsx
|
|
2772
|
-
var
|
|
2775
|
+
var import_client_fetch31 = require("@ory/client-fetch");
|
|
2773
2776
|
var import_react_hook_form19 = require("react-hook-form");
|
|
2774
2777
|
|
|
2775
2778
|
// src/components/form/form.tsx
|
|
2776
|
-
var
|
|
2779
|
+
var import_client_fetch27 = require("@ory/client-fetch");
|
|
2777
2780
|
var import_react_hook_form16 = require("react-hook-form");
|
|
2778
2781
|
var import_react_intl13 = require("react-intl");
|
|
2779
2782
|
|
|
2780
2783
|
// src/components/form/useOryFormSubmit.ts
|
|
2781
|
-
var
|
|
2784
|
+
var import_client_fetch26 = require("@ory/client-fetch");
|
|
2782
2785
|
var import_react_hook_form15 = require("react-hook-form");
|
|
2783
2786
|
|
|
2784
2787
|
// src/util/onSubmitLogin.ts
|
|
2785
|
-
var
|
|
2788
|
+
var import_client_fetch21 = require("@ory/client-fetch");
|
|
2786
2789
|
|
|
2787
2790
|
// src/util/onSubmitRecovery.ts
|
|
2788
|
-
var
|
|
2791
|
+
var import_client_fetch22 = require("@ory/client-fetch");
|
|
2789
2792
|
|
|
2790
2793
|
// src/util/onSubmitRegistration.ts
|
|
2791
|
-
var
|
|
2794
|
+
var import_client_fetch23 = require("@ory/client-fetch");
|
|
2792
2795
|
|
|
2793
2796
|
// src/util/onSubmitSettings.ts
|
|
2794
|
-
var
|
|
2797
|
+
var import_client_fetch24 = require("@ory/client-fetch");
|
|
2795
2798
|
|
|
2796
2799
|
// src/util/onSubmitVerification.ts
|
|
2797
|
-
var
|
|
2800
|
+
var import_client_fetch25 = require("@ory/client-fetch");
|
|
2798
2801
|
|
|
2799
2802
|
// src/components/form/form.tsx
|
|
2800
2803
|
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
@@ -2803,16 +2806,17 @@ var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
|
2803
2806
|
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
2804
2807
|
|
|
2805
2808
|
// src/components/form/nodes/input.tsx
|
|
2806
|
-
var
|
|
2809
|
+
var import_client_fetch28 = require("@ory/client-fetch");
|
|
2807
2810
|
var import_react14 = require("react");
|
|
2808
2811
|
var import_react_hook_form17 = require("react-hook-form");
|
|
2809
2812
|
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
2810
2813
|
|
|
2811
2814
|
// src/components/form/nodes/node.tsx
|
|
2812
|
-
var
|
|
2815
|
+
var import_client_fetch29 = require("@ory/client-fetch");
|
|
2813
2816
|
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
2814
2817
|
|
|
2815
2818
|
// src/components/form/social.tsx
|
|
2819
|
+
var import_client_fetch30 = require("@ory/client-fetch");
|
|
2816
2820
|
var import_react_hook_form18 = require("react-hook-form");
|
|
2817
2821
|
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
2818
2822
|
|
|
@@ -2827,13 +2831,14 @@ var import_react_hook_form20 = require("react-hook-form");
|
|
|
2827
2831
|
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
2828
2832
|
|
|
2829
2833
|
// src/components/generic/divider.tsx
|
|
2834
|
+
var import_client_fetch32 = require("@ory/client-fetch");
|
|
2830
2835
|
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
2831
2836
|
|
|
2832
2837
|
// src/components/generic/page-header.tsx
|
|
2833
2838
|
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
2834
2839
|
|
|
2835
2840
|
// src/components/settings/settings-card.tsx
|
|
2836
|
-
var
|
|
2841
|
+
var import_client_fetch33 = require("@ory/client-fetch");
|
|
2837
2842
|
var import_react_intl19 = require("react-intl");
|
|
2838
2843
|
|
|
2839
2844
|
// src/components/settings/oidc-settings.tsx
|
|
@@ -5094,14 +5099,14 @@ function useStandardize(error) {
|
|
|
5094
5099
|
timestamp: /* @__PURE__ */ new Date()
|
|
5095
5100
|
};
|
|
5096
5101
|
}
|
|
5097
|
-
if ((0,
|
|
5102
|
+
if ((0, import_client_fetch34.instanceOfFlowError)(error)) {
|
|
5098
5103
|
const parsed = error.error;
|
|
5099
5104
|
return {
|
|
5100
5105
|
...parsed,
|
|
5101
5106
|
id: error.id,
|
|
5102
5107
|
timestamp: error.created_at
|
|
5103
5108
|
};
|
|
5104
|
-
} else if (error.error && (0,
|
|
5109
|
+
} else if (error.error && (0, import_client_fetch34.instanceOfGenericError)(error.error)) {
|
|
5105
5110
|
return {
|
|
5106
5111
|
code: (_a = error.error.code) != null ? _a : 500,
|
|
5107
5112
|
message: error.error.message,
|
|
@@ -5222,7 +5227,7 @@ function ErrorLogo({ config }) {
|
|
|
5222
5227
|
}
|
|
5223
5228
|
|
|
5224
5229
|
// src/theme/default/flows/login.tsx
|
|
5225
|
-
var
|
|
5230
|
+
var import_client_fetch35 = require("@ory/client-fetch");
|
|
5226
5231
|
var import_elements_react19 = require("@ory/elements-react");
|
|
5227
5232
|
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
5228
5233
|
function Login({
|
|
@@ -5237,7 +5242,7 @@ function Login({
|
|
|
5237
5242
|
{
|
|
5238
5243
|
config,
|
|
5239
5244
|
flow,
|
|
5240
|
-
flowType:
|
|
5245
|
+
flowType: import_client_fetch35.FlowType.Login,
|
|
5241
5246
|
components,
|
|
5242
5247
|
children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_elements_react19.OryTwoStepCard, {})
|
|
5243
5248
|
}
|
|
@@ -5245,7 +5250,7 @@ function Login({
|
|
|
5245
5250
|
}
|
|
5246
5251
|
|
|
5247
5252
|
// src/theme/default/flows/recovery.tsx
|
|
5248
|
-
var
|
|
5253
|
+
var import_client_fetch36 = require("@ory/client-fetch");
|
|
5249
5254
|
var import_elements_react20 = require("@ory/elements-react");
|
|
5250
5255
|
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
5251
5256
|
function Recovery({
|
|
@@ -5260,7 +5265,7 @@ function Recovery({
|
|
|
5260
5265
|
{
|
|
5261
5266
|
config,
|
|
5262
5267
|
flow,
|
|
5263
|
-
flowType:
|
|
5268
|
+
flowType: import_client_fetch36.FlowType.Recovery,
|
|
5264
5269
|
components,
|
|
5265
5270
|
children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_elements_react20.OryTwoStepCard, {})
|
|
5266
5271
|
}
|
|
@@ -5268,7 +5273,7 @@ function Recovery({
|
|
|
5268
5273
|
}
|
|
5269
5274
|
|
|
5270
5275
|
// src/theme/default/flows/registration.tsx
|
|
5271
|
-
var
|
|
5276
|
+
var import_client_fetch37 = require("@ory/client-fetch");
|
|
5272
5277
|
var import_elements_react21 = require("@ory/elements-react");
|
|
5273
5278
|
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
5274
5279
|
function Registration({
|
|
@@ -5283,7 +5288,7 @@ function Registration({
|
|
|
5283
5288
|
{
|
|
5284
5289
|
config,
|
|
5285
5290
|
flow,
|
|
5286
|
-
flowType:
|
|
5291
|
+
flowType: import_client_fetch37.FlowType.Registration,
|
|
5287
5292
|
components,
|
|
5288
5293
|
children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_elements_react21.OryTwoStepCard, {})
|
|
5289
5294
|
}
|
|
@@ -5291,7 +5296,7 @@ function Registration({
|
|
|
5291
5296
|
}
|
|
5292
5297
|
|
|
5293
5298
|
// src/theme/default/flows/settings.tsx
|
|
5294
|
-
var
|
|
5299
|
+
var import_client_fetch38 = require("@ory/client-fetch");
|
|
5295
5300
|
var import_elements_react22 = require("@ory/elements-react");
|
|
5296
5301
|
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
5297
5302
|
function Settings({
|
|
@@ -5306,7 +5311,7 @@ function Settings({
|
|
|
5306
5311
|
{
|
|
5307
5312
|
config,
|
|
5308
5313
|
flow,
|
|
5309
|
-
flowType:
|
|
5314
|
+
flowType: import_client_fetch38.FlowType.Settings,
|
|
5310
5315
|
components,
|
|
5311
5316
|
children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(import_jsx_runtime98.Fragment, { children: [
|
|
5312
5317
|
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_elements_react22.HeadlessPageHeader, {}),
|
|
@@ -5317,7 +5322,7 @@ function Settings({
|
|
|
5317
5322
|
}
|
|
5318
5323
|
|
|
5319
5324
|
// src/theme/default/flows/verification.tsx
|
|
5320
|
-
var
|
|
5325
|
+
var import_client_fetch39 = require("@ory/client-fetch");
|
|
5321
5326
|
var import_elements_react23 = require("@ory/elements-react");
|
|
5322
5327
|
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
5323
5328
|
function Verification({
|
|
@@ -5332,7 +5337,7 @@ function Verification({
|
|
|
5332
5337
|
{
|
|
5333
5338
|
config,
|
|
5334
5339
|
flow,
|
|
5335
|
-
flowType:
|
|
5340
|
+
flowType: import_client_fetch39.FlowType.Verification,
|
|
5336
5341
|
components,
|
|
5337
5342
|
children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_elements_react23.OryTwoStepCard, {})
|
|
5338
5343
|
}
|