@ory/elements-react 1.0.0-next.44 → 1.0.0-next.46
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 +23 -0
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +73 -42
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +73 -42
- 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 +13 -3
- package/dist/theme/default/index.js.map +1 -1
- package/dist/theme/default/index.mjs +15 -5
- package/dist/theme/default/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -27,7 +27,7 @@ declare namespace DefaultButtonSocial {
|
|
|
27
27
|
var WithLogos: (logos: Record<string, ElementType>) => (props: DefaultSocialButtonProps) => react_jsx_runtime.JSX.Element;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
declare function DefaultFormContainer({ children, onSubmit, action, method, }: PropsWithChildren<OryFormRootProps>): react_jsx_runtime.JSX.Element;
|
|
30
|
+
declare function DefaultFormContainer({ children, onSubmit, action, method, "data-testid": dataTestId, }: PropsWithChildren<OryFormRootProps>): react_jsx_runtime.JSX.Element;
|
|
31
31
|
declare function DefaultMessageContainer({ children }: PropsWithChildren): react_jsx_runtime.JSX.Element | null;
|
|
32
32
|
declare function DefaultMessage({ message }: OryMessageContentProps): react_jsx_runtime.JSX.Element;
|
|
33
33
|
|
|
@@ -27,7 +27,7 @@ declare namespace DefaultButtonSocial {
|
|
|
27
27
|
var WithLogos: (logos: Record<string, ElementType>) => (props: DefaultSocialButtonProps) => react_jsx_runtime.JSX.Element;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
declare function DefaultFormContainer({ children, onSubmit, action, method, }: PropsWithChildren<OryFormRootProps>): react_jsx_runtime.JSX.Element;
|
|
30
|
+
declare function DefaultFormContainer({ children, onSubmit, action, method, "data-testid": dataTestId, }: PropsWithChildren<OryFormRootProps>): react_jsx_runtime.JSX.Element;
|
|
31
31
|
declare function DefaultMessageContainer({ children }: PropsWithChildren): react_jsx_runtime.JSX.Element | null;
|
|
32
32
|
declare function DefaultMessage({ message }: OryMessageContentProps): react_jsx_runtime.JSX.Element;
|
|
33
33
|
|
|
@@ -703,7 +703,7 @@ function DefaultCurrentIdentifierButton() {
|
|
|
703
703
|
name: screenSelectionNode.attributes.name,
|
|
704
704
|
value: screenSelectionNode.attributes.value,
|
|
705
705
|
title: `Adjust ${nodeBackButton == null ? void 0 : nodeBackButton.value}`,
|
|
706
|
-
"data-testid":
|
|
706
|
+
"data-testid": `ory/screen/${flowType}/action/restart`,
|
|
707
707
|
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { className: "inline-flex min-h-5 items-center gap-2 overflow-hidden text-ellipsis", children: [
|
|
708
708
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
709
709
|
arrow_left_default,
|
|
@@ -726,7 +726,7 @@ function DefaultCurrentIdentifierButton() {
|
|
|
726
726
|
...attributes,
|
|
727
727
|
href: initFlowUrl2,
|
|
728
728
|
title: `Adjust ${nodeBackButton == null ? void 0 : nodeBackButton.value}`,
|
|
729
|
-
"data-testid":
|
|
729
|
+
"data-testid": `ory/screen/${flowType}/action/restart`,
|
|
730
730
|
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { className: "inline-flex min-h-5 items-center gap-2 overflow-hidden text-ellipsis", children: [
|
|
731
731
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
732
732
|
arrow_left_default,
|
|
@@ -1090,6 +1090,12 @@ function DefaultButtonSocial({
|
|
|
1090
1090
|
node_type: _ignoredNodeType,
|
|
1091
1091
|
type: _ignoredType,
|
|
1092
1092
|
name: _ignoredName,
|
|
1093
|
+
onclickTrigger: _ignoredOnClickTrigger,
|
|
1094
|
+
onclick: _onClick,
|
|
1095
|
+
onload: _ignoredOnLoad,
|
|
1096
|
+
onloadTrigger: _ignoredOnLoadTrigger,
|
|
1097
|
+
maxlength: _ignoredMaxLength,
|
|
1098
|
+
autocomplete: _ignoredAutocomplete,
|
|
1093
1099
|
...props
|
|
1094
1100
|
} = attributes;
|
|
1095
1101
|
const {
|
|
@@ -1164,11 +1170,13 @@ function DefaultFormContainer({
|
|
|
1164
1170
|
children,
|
|
1165
1171
|
onSubmit,
|
|
1166
1172
|
action,
|
|
1167
|
-
method
|
|
1173
|
+
method,
|
|
1174
|
+
"data-testid": dataTestId
|
|
1168
1175
|
}) {
|
|
1169
1176
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1170
1177
|
"form",
|
|
1171
1178
|
{
|
|
1179
|
+
"data-testid": dataTestId,
|
|
1172
1180
|
onSubmit,
|
|
1173
1181
|
noValidate: true,
|
|
1174
1182
|
action,
|
|
@@ -1398,6 +1406,7 @@ var DefaultButton = ({
|
|
|
1398
1406
|
label: _ignoredLabel,
|
|
1399
1407
|
node_type: _ignoredNodeType,
|
|
1400
1408
|
maxlength: _ignoredMaxLength,
|
|
1409
|
+
onclick: _ignoredOnClick,
|
|
1401
1410
|
// End of skipped attributes
|
|
1402
1411
|
...rest
|
|
1403
1412
|
} = attributes;
|
|
@@ -2910,6 +2919,7 @@ function DefaultConsentScopeCheckbox({
|
|
|
2910
2919
|
defaultMessage: []
|
|
2911
2920
|
}),
|
|
2912
2921
|
className: "col-span-2",
|
|
2922
|
+
"data-testid": "ory/screen/consent/scope-checkbox-label",
|
|
2913
2923
|
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
2914
2924
|
Switch.Root,
|
|
2915
2925
|
{
|