@ory/elements-react 1.0.0-next.38 → 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 +10 -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 +59 -54
- package/dist/theme/default/index.js.map +1 -1
- package/dist/theme/default/index.mjs +22 -8
- 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
|
@@ -412,7 +412,7 @@ function useCardHeaderText(container, opts) {
|
|
|
412
412
|
);
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
if (nodes.find((node) => node.group === "oidc")) {
|
|
415
|
+
if (nodes.find((node) => node.group === "oidc" || node.group === "saml")) {
|
|
416
416
|
parts.push(
|
|
417
417
|
intl.formatMessage({
|
|
418
418
|
id: "card.header.parts.oidc"
|
|
@@ -909,6 +909,7 @@ function Spinner({ className }) {
|
|
|
909
909
|
}
|
|
910
910
|
|
|
911
911
|
// src/theme/default/components/form/social.tsx
|
|
912
|
+
import { UiNodeGroupEnum as UiNodeGroupEnum3 } from "@ory/client-fetch";
|
|
912
913
|
import { Fragment as Fragment2, jsx as jsx27, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
913
914
|
function extractProvider(context) {
|
|
914
915
|
if (context && typeof context === "object" && "provider" in context && typeof context.provider === "string") {
|
|
@@ -939,7 +940,9 @@ function DefaultButtonSocial({
|
|
|
939
940
|
const {
|
|
940
941
|
formState: { isSubmitting }
|
|
941
942
|
} = useFormContext2();
|
|
942
|
-
const oidcNodeCount = (_a = ui.nodes.filter(
|
|
943
|
+
const oidcNodeCount = (_a = ui.nodes.filter(
|
|
944
|
+
(node2) => node2.group === UiNodeGroupEnum3.Oidc || node2.group === UiNodeGroupEnum3.Saml
|
|
945
|
+
).length) != null ? _a : 0;
|
|
943
946
|
const Logo = logos2[attributes.value.split("-")[0]];
|
|
944
947
|
const showLabel = _showLabel != null ? _showLabel : oidcNodeCount % 3 !== 0 && oidcNodeCount % 4 !== 0;
|
|
945
948
|
const provider = (_c = extractProvider((_b = node.meta.label) == null ? void 0 : _b.context)) != null ? _c : "";
|
|
@@ -2724,7 +2727,7 @@ import { FlowType as FlowType9 } from "@ory/client-fetch";
|
|
|
2724
2727
|
import { useReducer, useState as useState4 } from "react";
|
|
2725
2728
|
|
|
2726
2729
|
// src/components/card/card-two-step.utils.ts
|
|
2727
|
-
import { FlowType as FlowType8, UiNodeGroupEnum as
|
|
2730
|
+
import { FlowType as FlowType8, UiNodeGroupEnum as UiNodeGroupEnum4 } from "@ory/client-fetch";
|
|
2728
2731
|
|
|
2729
2732
|
// src/context/flow-context.tsx
|
|
2730
2733
|
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
@@ -2737,7 +2740,7 @@ import { jsx as jsx71 } from "react/jsx-runtime";
|
|
|
2737
2740
|
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
2738
2741
|
|
|
2739
2742
|
// src/components/form/form-provider.tsx
|
|
2740
|
-
import { UiNodeGroupEnum as
|
|
2743
|
+
import { UiNodeGroupEnum as UiNodeGroupEnum6 } from "@ory/client-fetch";
|
|
2741
2744
|
import { FormProvider, useForm as useForm2 } from "react-hook-form";
|
|
2742
2745
|
|
|
2743
2746
|
// src/components/form/form-helpers.ts
|
|
@@ -2759,7 +2762,12 @@ import { jsx as jsx75 } from "react/jsx-runtime";
|
|
|
2759
2762
|
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
2760
2763
|
|
|
2761
2764
|
// src/components/card/card-two-step.tsx
|
|
2762
|
-
import {
|
|
2765
|
+
import {
|
|
2766
|
+
isUiNodeInputAttributes as isUiNodeInputAttributes8,
|
|
2767
|
+
isUiNodeScriptAttributes as isUiNodeScriptAttributes3,
|
|
2768
|
+
UiNodeGroupEnum as UiNodeGroupEnum11,
|
|
2769
|
+
UiNodeInputAttributesTypeEnum as UiNodeInputAttributesTypeEnum2
|
|
2770
|
+
} from "@ory/client-fetch";
|
|
2763
2771
|
import { useFormContext as useFormContext17 } from "react-hook-form";
|
|
2764
2772
|
|
|
2765
2773
|
// src/components/form/form.tsx
|
|
@@ -2775,7 +2783,8 @@ import { useIntl as useIntl13 } from "react-intl";
|
|
|
2775
2783
|
|
|
2776
2784
|
// src/components/form/useOryFormSubmit.ts
|
|
2777
2785
|
import {
|
|
2778
|
-
FlowType as FlowType15
|
|
2786
|
+
FlowType as FlowType15,
|
|
2787
|
+
UiNodeGroupEnum as UiNodeGroupEnum7
|
|
2779
2788
|
} from "@ory/client-fetch";
|
|
2780
2789
|
import { useFormContext as useFormContext13 } from "react-hook-form";
|
|
2781
2790
|
|
|
@@ -2828,6 +2837,7 @@ import { jsx as jsx78 } from "react/jsx-runtime";
|
|
|
2828
2837
|
|
|
2829
2838
|
// src/components/form/nodes/input.tsx
|
|
2830
2839
|
import {
|
|
2840
|
+
UiNodeGroupEnum as UiNodeGroupEnum8,
|
|
2831
2841
|
UiNodeInputAttributesTypeEnum
|
|
2832
2842
|
} from "@ory/client-fetch";
|
|
2833
2843
|
import { useEffect as useEffect5, useRef as useRef3 } from "react";
|
|
@@ -2841,11 +2851,14 @@ import {
|
|
|
2841
2851
|
isUiNodeInputAttributes as isUiNodeInputAttributes7,
|
|
2842
2852
|
isUiNodeScriptAttributes as isUiNodeScriptAttributes2,
|
|
2843
2853
|
isUiNodeTextAttributes,
|
|
2844
|
-
UiNodeGroupEnum as
|
|
2854
|
+
UiNodeGroupEnum as UiNodeGroupEnum9
|
|
2845
2855
|
} from "@ory/client-fetch";
|
|
2846
2856
|
import { jsx as jsx80 } from "react/jsx-runtime";
|
|
2847
2857
|
|
|
2848
2858
|
// src/components/form/social.tsx
|
|
2859
|
+
import {
|
|
2860
|
+
UiNodeGroupEnum as UiNodeGroupEnum10
|
|
2861
|
+
} from "@ory/client-fetch";
|
|
2849
2862
|
import { useFormContext as useFormContext16 } from "react-hook-form";
|
|
2850
2863
|
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
2851
2864
|
|
|
@@ -2860,13 +2873,14 @@ import { useFormContext as useFormContext18 } from "react-hook-form";
|
|
|
2860
2873
|
import { jsx as jsx84 } from "react/jsx-runtime";
|
|
2861
2874
|
|
|
2862
2875
|
// src/components/generic/divider.tsx
|
|
2876
|
+
import { UiNodeGroupEnum as UiNodeGroupEnum12 } from "@ory/client-fetch";
|
|
2863
2877
|
import { jsx as jsx85 } from "react/jsx-runtime";
|
|
2864
2878
|
|
|
2865
2879
|
// src/components/generic/page-header.tsx
|
|
2866
2880
|
import { jsx as jsx86 } from "react/jsx-runtime";
|
|
2867
2881
|
|
|
2868
2882
|
// src/components/settings/settings-card.tsx
|
|
2869
|
-
import { UiNodeGroupEnum as
|
|
2883
|
+
import { UiNodeGroupEnum as UiNodeGroupEnum13 } from "@ory/client-fetch";
|
|
2870
2884
|
import { useIntl as useIntl19 } from "react-intl";
|
|
2871
2885
|
|
|
2872
2886
|
// src/components/settings/oidc-settings.tsx
|