@ory/elements-react 1.0.0-next.43 → 1.0.0-next.45
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 +22 -0
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +56 -35
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +56 -35
- package/dist/index.mjs.map +1 -1
- package/dist/theme/default/index.d.mts +1 -1
- package/dist/theme/default/index.d.ts +1 -1
- package/dist/theme/default/index.js +8 -5
- package/dist/theme/default/index.js.map +1 -1
- package/dist/theme/default/index.mjs +17 -14
- package/dist/theme/default/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1130,11 +1130,13 @@ function DefaultFormContainer({
|
|
|
1130
1130
|
children,
|
|
1131
1131
|
onSubmit,
|
|
1132
1132
|
action,
|
|
1133
|
-
method
|
|
1133
|
+
method,
|
|
1134
|
+
"data-testid": dataTestId
|
|
1134
1135
|
}) {
|
|
1135
1136
|
return /* @__PURE__ */ jsx28(
|
|
1136
1137
|
"form",
|
|
1137
1138
|
{
|
|
1139
|
+
"data-testid": dataTestId,
|
|
1138
1140
|
onSubmit,
|
|
1139
1141
|
noValidate: true,
|
|
1140
1142
|
action,
|
|
@@ -1662,7 +1664,7 @@ import * as React24 from "react";
|
|
|
1662
1664
|
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
1663
1665
|
var SvgEyeOff = (props) => {
|
|
1664
1666
|
var _a, _b;
|
|
1665
|
-
return /* @__PURE__ */ jsx43("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx43("path", { stroke: "
|
|
1667
|
+
return /* @__PURE__ */ jsx43("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx43("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M10.585 10.587a2 2 0 0 0 2.829 2.828m3.267 3.258A8.7 8.7 0 0 1 12 18q-5.4 0-9-6 1.908-3.18 4.32-4.674m2.86-1.146A9 9 0 0 1 12 6q5.4 0 9 6-1 1.665-2.138 2.87M3 3l18 18" }) });
|
|
1666
1668
|
};
|
|
1667
1669
|
var eye_off_default = SvgEyeOff;
|
|
1668
1670
|
|
|
@@ -1671,9 +1673,9 @@ import * as React25 from "react";
|
|
|
1671
1673
|
import { jsx as jsx44, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
1672
1674
|
var SvgEye = (props) => {
|
|
1673
1675
|
var _a, _b;
|
|
1674
|
-
return /* @__PURE__ */ jsx44("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsxs23("g", { strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
1675
|
-
/* @__PURE__ */ jsx44("path", {
|
|
1676
|
-
/* @__PURE__ */ jsx44("path", {
|
|
1676
|
+
return /* @__PURE__ */ jsx44("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsxs23("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
1677
|
+
/* @__PURE__ */ jsx44("path", { d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
|
|
1678
|
+
/* @__PURE__ */ jsx44("path", { d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
|
|
1677
1679
|
] }) });
|
|
1678
1680
|
};
|
|
1679
1681
|
var eye_default = SvgEye;
|
|
@@ -2898,6 +2900,7 @@ function DefaultConsentScopeCheckbox({
|
|
|
2898
2900
|
defaultMessage: []
|
|
2899
2901
|
}),
|
|
2900
2902
|
className: "col-span-2",
|
|
2903
|
+
"data-testid": "ory/screen/consent/scope-checkbox-label",
|
|
2901
2904
|
children: /* @__PURE__ */ jsx74(
|
|
2902
2905
|
Switch.Root,
|
|
2903
2906
|
{
|
|
@@ -3088,7 +3091,7 @@ import {
|
|
|
3088
3091
|
} from "@ory/client-fetch";
|
|
3089
3092
|
|
|
3090
3093
|
// src/components/form/form.tsx
|
|
3091
|
-
import {
|
|
3094
|
+
import { jsx as jsx82, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
3092
3095
|
|
|
3093
3096
|
// src/components/form/messages.tsx
|
|
3094
3097
|
import { jsx as jsx83 } from "react/jsx-runtime";
|
|
@@ -3150,30 +3153,30 @@ import { useIntl as useIntl20 } from "react-intl";
|
|
|
3150
3153
|
// src/components/settings/oidc-settings.tsx
|
|
3151
3154
|
import { useIntl as useIntl15 } from "react-intl";
|
|
3152
3155
|
import { useFormContext as useFormContext20 } from "react-hook-form";
|
|
3153
|
-
import { Fragment as
|
|
3156
|
+
import { Fragment as Fragment6, jsx as jsx93, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
3154
3157
|
|
|
3155
3158
|
// src/components/settings/passkey-settings.tsx
|
|
3156
3159
|
import { useFormContext as useFormContext21 } from "react-hook-form";
|
|
3157
3160
|
import { useIntl as useIntl16 } from "react-intl";
|
|
3158
|
-
import { Fragment as
|
|
3161
|
+
import { Fragment as Fragment7, jsx as jsx94, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
3159
3162
|
|
|
3160
3163
|
// src/components/settings/recovery-codes-settings.tsx
|
|
3161
3164
|
import { useIntl as useIntl17 } from "react-intl";
|
|
3162
3165
|
import { useFormContext as useFormContext22 } from "react-hook-form";
|
|
3163
|
-
import { Fragment as
|
|
3166
|
+
import { Fragment as Fragment8, jsx as jsx95, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
3164
3167
|
|
|
3165
3168
|
// src/components/settings/totp-settings.tsx
|
|
3166
3169
|
import { useFormContext as useFormContext23 } from "react-hook-form";
|
|
3167
3170
|
import { useIntl as useIntl18 } from "react-intl";
|
|
3168
|
-
import { Fragment as
|
|
3171
|
+
import { Fragment as Fragment9, jsx as jsx96, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
3169
3172
|
|
|
3170
3173
|
// src/components/settings/webauthn-settings.tsx
|
|
3171
3174
|
import { useFormContext as useFormContext24 } from "react-hook-form";
|
|
3172
3175
|
import { useIntl as useIntl19 } from "react-intl";
|
|
3173
|
-
import { Fragment as
|
|
3176
|
+
import { Fragment as Fragment10, jsx as jsx97, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
3174
3177
|
|
|
3175
3178
|
// src/components/settings/settings-card.tsx
|
|
3176
|
-
import { Fragment as
|
|
3179
|
+
import { Fragment as Fragment11, jsx as jsx98, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
3177
3180
|
|
|
3178
3181
|
// src/locales/en.json
|
|
3179
3182
|
var en_default = {
|
|
@@ -5729,7 +5732,7 @@ import {
|
|
|
5729
5732
|
OryProvider as OryProvider4,
|
|
5730
5733
|
OrySettingsCard
|
|
5731
5734
|
} from "@ory/elements-react";
|
|
5732
|
-
import { Fragment as
|
|
5735
|
+
import { Fragment as Fragment12, jsx as jsx104, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
5733
5736
|
function Settings({
|
|
5734
5737
|
flow,
|
|
5735
5738
|
config,
|
|
@@ -5744,7 +5747,7 @@ function Settings({
|
|
|
5744
5747
|
flow,
|
|
5745
5748
|
flowType: FlowType21.Settings,
|
|
5746
5749
|
components,
|
|
5747
|
-
children: children != null ? children : /* @__PURE__ */ jsxs47(
|
|
5750
|
+
children: children != null ? children : /* @__PURE__ */ jsxs47(Fragment12, { children: [
|
|
5748
5751
|
/* @__PURE__ */ jsx104(HeadlessPageHeader, {}),
|
|
5749
5752
|
/* @__PURE__ */ jsx104(OrySettingsCard, {})
|
|
5750
5753
|
] })
|