@ory/elements-react 1.0.0-next.10 → 1.0.0-next.11
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/.eslintrc.js +2 -0
- package/CHANGELOG.md +15 -0
- package/api-report/elements-react-theme.api.json +25 -70
- package/api-report/elements-react-theme.api.md +14 -12
- package/api-report/elements-react.api.json +1084 -2281
- package/api-report/elements-react.api.md +162 -224
- package/api-report/temp/elements-react.api.md +17 -17
- package/dist/index.d.mts +324 -2011
- package/dist/index.d.ts +324 -2011
- package/dist/index.js +6155 -809
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6156 -797
- package/dist/index.mjs.map +1 -1
- package/dist/theme/default/index.d.mts +9 -9
- package/dist/theme/default/index.d.ts +9 -9
- package/dist/theme/default/index.js +86 -91
- package/dist/theme/default/index.js.map +1 -1
- package/dist/theme/default/index.mjs +82 -74
- package/dist/theme/default/index.mjs.map +1 -1
- package/package.json +5 -2
package/.eslintrc.js
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## 1.0.0-next.11 (2024-10-22)
|
|
2
|
+
|
|
3
|
+
Breaking Changes: This update includes breaking changes to the naming of some variables and functions. Please refer to [Advisory: ory elements‐react upgrade guide to v1.0.0‐next.11](https://github.com/ory/elements/wiki/Advisory:-ory-elements%E2%80%90react-upgrade-guide-to-v1.0.0%E2%80%90next.11) for more information.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 🚀 Features
|
|
7
|
+
|
|
8
|
+
- add elements v1 packages
|
|
9
|
+
|
|
10
|
+
- add useSession hook
|
|
11
|
+
|
|
12
|
+
### ❤️ Thank You
|
|
13
|
+
|
|
14
|
+
- Jonas Hungershausen
|
|
15
|
+
|
|
1
16
|
## 1.0.0-next.10 (2024-10-14)
|
|
2
17
|
|
|
3
18
|
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
{
|
|
185
185
|
"kind": "Reference",
|
|
186
186
|
"text": "OryCardProps",
|
|
187
|
-
"canonicalReference": "@ory/elements-react!~
|
|
187
|
+
"canonicalReference": "@ory/elements-react!~OryCardRootProps:type"
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
190
|
"kind": "Content",
|
|
@@ -377,8 +377,8 @@
|
|
|
377
377
|
},
|
|
378
378
|
{
|
|
379
379
|
"kind": "Reference",
|
|
380
|
-
"text": "
|
|
381
|
-
"canonicalReference": "@ory/elements-react!~
|
|
380
|
+
"text": "OryFormRootProps",
|
|
381
|
+
"canonicalReference": "@ory/elements-react!~OryFormRootProps:type"
|
|
382
382
|
},
|
|
383
383
|
{
|
|
384
384
|
"kind": "Content",
|
|
@@ -428,8 +428,8 @@
|
|
|
428
428
|
},
|
|
429
429
|
{
|
|
430
430
|
"kind": "Reference",
|
|
431
|
-
"text": "
|
|
432
|
-
"canonicalReference": "@ory/elements-react!~
|
|
431
|
+
"text": "OryMessageContentProps",
|
|
432
|
+
"canonicalReference": "@ory/elements-react!~OryMessageContentProps:type"
|
|
433
433
|
},
|
|
434
434
|
{
|
|
435
435
|
"kind": "Content",
|
|
@@ -599,21 +599,12 @@
|
|
|
599
599
|
},
|
|
600
600
|
{
|
|
601
601
|
"kind": "Reference",
|
|
602
|
-
"text": "
|
|
603
|
-
"canonicalReference": "
|
|
602
|
+
"text": "OryFlowComponentOverrides",
|
|
603
|
+
"canonicalReference": "@ory/elements-react!~OryFlowComponentOverrides:type"
|
|
604
604
|
},
|
|
605
605
|
{
|
|
606
606
|
"kind": "Content",
|
|
607
|
-
"text": "
|
|
608
|
-
},
|
|
609
|
-
{
|
|
610
|
-
"kind": "Reference",
|
|
611
|
-
"text": "OryFlowComponents",
|
|
612
|
-
"canonicalReference": "@ory/elements-react!~OryFlowComponents:type"
|
|
613
|
-
},
|
|
614
|
-
{
|
|
615
|
-
"kind": "Content",
|
|
616
|
-
"text": ">;\n config: "
|
|
607
|
+
"text": ";\n config: "
|
|
617
608
|
},
|
|
618
609
|
{
|
|
619
610
|
"kind": "Reference",
|
|
@@ -634,7 +625,7 @@
|
|
|
634
625
|
"name": "ErrorFlowContextProps",
|
|
635
626
|
"typeTokenRange": {
|
|
636
627
|
"startIndex": 1,
|
|
637
|
-
"endIndex":
|
|
628
|
+
"endIndex": 8
|
|
638
629
|
}
|
|
639
630
|
},
|
|
640
631
|
{
|
|
@@ -730,21 +721,12 @@
|
|
|
730
721
|
},
|
|
731
722
|
{
|
|
732
723
|
"kind": "Reference",
|
|
733
|
-
"text": "
|
|
734
|
-
"canonicalReference": "
|
|
724
|
+
"text": "OryFlowComponentOverrides",
|
|
725
|
+
"canonicalReference": "@ory/elements-react!~OryFlowComponentOverrides:type"
|
|
735
726
|
},
|
|
736
727
|
{
|
|
737
728
|
"kind": "Content",
|
|
738
|
-
"text": "
|
|
739
|
-
},
|
|
740
|
-
{
|
|
741
|
-
"kind": "Reference",
|
|
742
|
-
"text": "OryFlowComponents",
|
|
743
|
-
"canonicalReference": "@ory/elements-react!~OryFlowComponents:type"
|
|
744
|
-
},
|
|
745
|
-
{
|
|
746
|
-
"kind": "Content",
|
|
747
|
-
"text": ">;\n config: "
|
|
729
|
+
"text": ";\n config: "
|
|
748
730
|
},
|
|
749
731
|
{
|
|
750
732
|
"kind": "Reference",
|
|
@@ -765,7 +747,7 @@
|
|
|
765
747
|
"name": "LoginFlowContextProps",
|
|
766
748
|
"typeTokenRange": {
|
|
767
749
|
"startIndex": 1,
|
|
768
|
-
"endIndex":
|
|
750
|
+
"endIndex": 8
|
|
769
751
|
}
|
|
770
752
|
},
|
|
771
753
|
{
|
|
@@ -885,21 +867,12 @@
|
|
|
885
867
|
},
|
|
886
868
|
{
|
|
887
869
|
"kind": "Reference",
|
|
888
|
-
"text": "
|
|
889
|
-
"canonicalReference": "
|
|
870
|
+
"text": "OryFlowComponentOverrides",
|
|
871
|
+
"canonicalReference": "@ory/elements-react!~OryFlowComponentOverrides:type"
|
|
890
872
|
},
|
|
891
873
|
{
|
|
892
874
|
"kind": "Content",
|
|
893
|
-
"text": "
|
|
894
|
-
},
|
|
895
|
-
{
|
|
896
|
-
"kind": "Reference",
|
|
897
|
-
"text": "OryFlowComponents",
|
|
898
|
-
"canonicalReference": "@ory/elements-react!~OryFlowComponents:type"
|
|
899
|
-
},
|
|
900
|
-
{
|
|
901
|
-
"kind": "Content",
|
|
902
|
-
"text": ">;\n config: "
|
|
875
|
+
"text": ";\n config: "
|
|
903
876
|
},
|
|
904
877
|
{
|
|
905
878
|
"kind": "Reference",
|
|
@@ -920,7 +893,7 @@
|
|
|
920
893
|
"name": "RecoveryFlowContextProps",
|
|
921
894
|
"typeTokenRange": {
|
|
922
895
|
"startIndex": 1,
|
|
923
|
-
"endIndex":
|
|
896
|
+
"endIndex": 8
|
|
924
897
|
}
|
|
925
898
|
},
|
|
926
899
|
{
|
|
@@ -1085,21 +1058,12 @@
|
|
|
1085
1058
|
},
|
|
1086
1059
|
{
|
|
1087
1060
|
"kind": "Reference",
|
|
1088
|
-
"text": "
|
|
1089
|
-
"canonicalReference": "
|
|
1090
|
-
},
|
|
1091
|
-
{
|
|
1092
|
-
"kind": "Content",
|
|
1093
|
-
"text": "<"
|
|
1094
|
-
},
|
|
1095
|
-
{
|
|
1096
|
-
"kind": "Reference",
|
|
1097
|
-
"text": "OryFlowComponents",
|
|
1098
|
-
"canonicalReference": "@ory/elements-react!~OryFlowComponents:type"
|
|
1061
|
+
"text": "OryFlowComponentOverrides",
|
|
1062
|
+
"canonicalReference": "@ory/elements-react!~OryFlowComponentOverrides:type"
|
|
1099
1063
|
},
|
|
1100
1064
|
{
|
|
1101
1065
|
"kind": "Content",
|
|
1102
|
-
"text": "
|
|
1066
|
+
"text": ";\n config: "
|
|
1103
1067
|
},
|
|
1104
1068
|
{
|
|
1105
1069
|
"kind": "Reference",
|
|
@@ -1120,7 +1084,7 @@
|
|
|
1120
1084
|
"name": "SettingsFlowContextProps",
|
|
1121
1085
|
"typeTokenRange": {
|
|
1122
1086
|
"startIndex": 1,
|
|
1123
|
-
"endIndex":
|
|
1087
|
+
"endIndex": 8
|
|
1124
1088
|
}
|
|
1125
1089
|
},
|
|
1126
1090
|
{
|
|
@@ -1216,21 +1180,12 @@
|
|
|
1216
1180
|
},
|
|
1217
1181
|
{
|
|
1218
1182
|
"kind": "Reference",
|
|
1219
|
-
"text": "
|
|
1220
|
-
"canonicalReference": "
|
|
1221
|
-
},
|
|
1222
|
-
{
|
|
1223
|
-
"kind": "Content",
|
|
1224
|
-
"text": "<"
|
|
1225
|
-
},
|
|
1226
|
-
{
|
|
1227
|
-
"kind": "Reference",
|
|
1228
|
-
"text": "OryFlowComponents",
|
|
1229
|
-
"canonicalReference": "@ory/elements-react!~OryFlowComponents:type"
|
|
1183
|
+
"text": "OryFlowComponentOverrides",
|
|
1184
|
+
"canonicalReference": "@ory/elements-react!~OryFlowComponentOverrides:type"
|
|
1230
1185
|
},
|
|
1231
1186
|
{
|
|
1232
1187
|
"kind": "Content",
|
|
1233
|
-
"text": "
|
|
1188
|
+
"text": ";\n config: "
|
|
1234
1189
|
},
|
|
1235
1190
|
{
|
|
1236
1191
|
"kind": "Reference",
|
|
@@ -1251,7 +1206,7 @@
|
|
|
1251
1206
|
"name": "VerificationFlowContextProps",
|
|
1252
1207
|
"typeTokenRange": {
|
|
1253
1208
|
"startIndex": 1,
|
|
1254
|
-
"endIndex":
|
|
1209
|
+
"endIndex": 8
|
|
1255
1210
|
}
|
|
1256
1211
|
}
|
|
1257
1212
|
]
|
|
@@ -27,10 +27,10 @@ import { UiNodeTextAttributes } from '@ory/client-fetch';
|
|
|
27
27
|
import { UiText } from '@ory/client-fetch';
|
|
28
28
|
import { VerificationFlow } from '@ory/client-fetch';
|
|
29
29
|
|
|
30
|
-
// Warning: (ae-forgotten-export) The symbol "
|
|
30
|
+
// Warning: (ae-forgotten-export) The symbol "OryCardRootProps" needs to be exported by the entry point index.d.ts
|
|
31
31
|
//
|
|
32
32
|
// @public (undocumented)
|
|
33
|
-
export function DefaultCard({ children }:
|
|
33
|
+
export function DefaultCard({ children }: OryCardRootProps): react_jsx_runtime.JSX.Element;
|
|
34
34
|
|
|
35
35
|
// Warning: (ae-forgotten-export) The symbol "OryCardContentProps" needs to be exported by the entry point index.d.ts
|
|
36
36
|
//
|
|
@@ -46,15 +46,15 @@ export function DefaultCardHeader(): react_jsx_runtime.JSX.Element;
|
|
|
46
46
|
// @public (undocumented)
|
|
47
47
|
export function DefaultCardLogo(): react_jsx_runtime.JSX.Element;
|
|
48
48
|
|
|
49
|
-
// Warning: (ae-forgotten-export) The symbol "
|
|
49
|
+
// Warning: (ae-forgotten-export) The symbol "OryFormRootProps" needs to be exported by the entry point index.d.ts
|
|
50
50
|
//
|
|
51
51
|
// @public (undocumented)
|
|
52
|
-
export function DefaultFormContainer({ children, onSubmit, action, method, }: PropsWithChildren<
|
|
52
|
+
export function DefaultFormContainer({ children, onSubmit, action, method, }: PropsWithChildren<OryFormRootProps>): react_jsx_runtime.JSX.Element;
|
|
53
53
|
|
|
54
|
-
// Warning: (ae-forgotten-export) The symbol "
|
|
54
|
+
// Warning: (ae-forgotten-export) The symbol "OryMessageContentProps" needs to be exported by the entry point index.d.ts
|
|
55
55
|
//
|
|
56
56
|
// @public (undocumented)
|
|
57
|
-
export function DefaultMessage({ message }:
|
|
57
|
+
export function DefaultMessage({ message }: OryMessageContentProps): react_jsx_runtime.JSX.Element;
|
|
58
58
|
|
|
59
59
|
// @public (undocumented)
|
|
60
60
|
export function DefaultMessageContainer({ children }: PropsWithChildren): react_jsx_runtime.JSX.Element | null;
|
|
@@ -66,7 +66,7 @@ export { Error_2 as Error }
|
|
|
66
66
|
// @public (undocumented)
|
|
67
67
|
export type ErrorFlowContextProps = {
|
|
68
68
|
error: FlowError;
|
|
69
|
-
components?:
|
|
69
|
+
components?: OryFlowComponentOverrides;
|
|
70
70
|
config: OryClientConfiguration;
|
|
71
71
|
};
|
|
72
72
|
|
|
@@ -76,10 +76,12 @@ export function Login({ flow, config, children, components: flowOverrideComponen
|
|
|
76
76
|
// @public (undocumented)
|
|
77
77
|
export type LoginFlowContextProps = {
|
|
78
78
|
flow: LoginFlow;
|
|
79
|
-
components?:
|
|
79
|
+
components?: OryFlowComponentOverrides;
|
|
80
80
|
config: OryClientConfiguration;
|
|
81
81
|
};
|
|
82
82
|
|
|
83
|
+
// Warning: (ae-forgotten-export) The symbol "OryFlowComponents" needs to be exported by the entry point index.d.ts
|
|
84
|
+
//
|
|
83
85
|
// @public (undocumented)
|
|
84
86
|
export const OryDefaultComponents: OryFlowComponents;
|
|
85
87
|
|
|
@@ -89,7 +91,7 @@ export function Recovery({ flow, config, children, components: flowOverrideCompo
|
|
|
89
91
|
// @public (undocumented)
|
|
90
92
|
export type RecoveryFlowContextProps = {
|
|
91
93
|
flow: RecoveryFlow;
|
|
92
|
-
components?:
|
|
94
|
+
components?: OryFlowComponentOverrides;
|
|
93
95
|
config: OryClientConfiguration;
|
|
94
96
|
};
|
|
95
97
|
|
|
@@ -104,7 +106,7 @@ export function Settings({ flow, config, children, components: flowOverrideCompo
|
|
|
104
106
|
// @public (undocumented)
|
|
105
107
|
export type SettingsFlowContextProps = {
|
|
106
108
|
flow: SettingsFlow;
|
|
107
|
-
components?:
|
|
109
|
+
components?: OryFlowComponentOverrides;
|
|
108
110
|
config: OryClientConfiguration;
|
|
109
111
|
};
|
|
110
112
|
|
|
@@ -114,13 +116,13 @@ export function Verification({ flow, config, children, components: flowOverrideC
|
|
|
114
116
|
// @public (undocumented)
|
|
115
117
|
export type VerificationFlowContextProps = {
|
|
116
118
|
flow: VerificationFlow;
|
|
117
|
-
components?:
|
|
119
|
+
components?: OryFlowComponentOverrides;
|
|
118
120
|
config: OryClientConfiguration;
|
|
119
121
|
};
|
|
120
122
|
|
|
121
123
|
// Warnings were encountered during analysis:
|
|
122
124
|
//
|
|
123
|
-
// dist/theme/default/index.d.ts:25:5 - (ae-forgotten-export) The symbol "
|
|
125
|
+
// dist/theme/default/index.d.ts:25:5 - (ae-forgotten-export) The symbol "OryFlowComponentOverrides" needs to be exported by the entry point index.d.ts
|
|
124
126
|
// dist/theme/default/index.d.ts:26:5 - (ae-forgotten-export) The symbol "OryClientConfiguration" needs to be exported by the entry point index.d.ts
|
|
125
127
|
|
|
126
128
|
// (No @packageDocumentation comment for this package)
|