@ory/elements-react 1.0.0-next.10 → 1.0.0-next.12

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 CHANGED
@@ -39,6 +39,8 @@ module.exports = {
39
39
  caughtErrorsIgnorePattern: "^_",
40
40
  },
41
41
  ],
42
+ // TODO(jonas): prettier and eslint sometimes disagree about this
43
+ "no-extra-semi": "off",
42
44
  },
43
45
  env: {
44
46
  jest: true,
package/CHANGELOG.md CHANGED
@@ -1,3 +1,50 @@
1
+ ## 1.0.0-next.12 (2024-10-29)
2
+
3
+
4
+ ### 🚀 Features
5
+
6
+ - add elements v1 packages
7
+
8
+ - add useSession hook
9
+
10
+ - add page header component with user menu
11
+
12
+ - support links in checkbox/boolean nodes
13
+
14
+ - add settings flow components
15
+
16
+
17
+ ### 🩹 Fixes
18
+
19
+ - use correct node to detect two step registration
20
+
21
+ - use translations in more missing places
22
+
23
+ - short-circuit code login on two step card
24
+
25
+ - duplicate resend button on recovery & verification
26
+
27
+
28
+ ### ❤️ Thank You
29
+
30
+ - Jonas Hungershausen
31
+ - Miłosz
32
+
33
+ ## 1.0.0-next.11 (2024-10-22)
34
+
35
+ 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.
36
+
37
+
38
+ ### 🚀 Features
39
+
40
+ - add elements v1 packages
41
+
42
+ - add useSession hook
43
+
44
+ ### ❤️ Thank You
45
+
46
+ - Jonas Hungershausen
47
+
1
48
  ## 1.0.0-next.10 (2024-10-14)
2
49
 
3
50
 
@@ -184,7 +184,7 @@
184
184
  {
185
185
  "kind": "Reference",
186
186
  "text": "OryCardProps",
187
- "canonicalReference": "@ory/elements-react!~OryCardProps:type"
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": "HeadlessFormProps",
381
- "canonicalReference": "@ory/elements-react!~HeadlessFormProps:type"
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": "HeadlessMessageProps",
432
- "canonicalReference": "@ory/elements-react!~HeadlessMessageProps:type"
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": "Partial",
603
- "canonicalReference": "!Partial:type"
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": 10
628
+ "endIndex": 8
638
629
  }
639
630
  },
640
631
  {
@@ -730,21 +721,12 @@
730
721
  },
731
722
  {
732
723
  "kind": "Reference",
733
- "text": "Partial",
734
- "canonicalReference": "!Partial:type"
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": 10
750
+ "endIndex": 8
769
751
  }
770
752
  },
771
753
  {
@@ -885,21 +867,12 @@
885
867
  },
886
868
  {
887
869
  "kind": "Reference",
888
- "text": "Partial",
889
- "canonicalReference": "!Partial:type"
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": 10
896
+ "endIndex": 8
924
897
  }
925
898
  },
926
899
  {
@@ -1085,21 +1058,12 @@
1085
1058
  },
1086
1059
  {
1087
1060
  "kind": "Reference",
1088
- "text": "Partial",
1089
- "canonicalReference": "!Partial:type"
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": ">;\n config: "
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": 10
1087
+ "endIndex": 8
1124
1088
  }
1125
1089
  },
1126
1090
  {
@@ -1216,21 +1180,12 @@
1216
1180
  },
1217
1181
  {
1218
1182
  "kind": "Reference",
1219
- "text": "Partial",
1220
- "canonicalReference": "!Partial:type"
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": ">;\n config: "
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": 10
1209
+ "endIndex": 8
1255
1210
  }
1256
1211
  }
1257
1212
  ]
@@ -25,12 +25,13 @@ import { UiNodeImageAttributes } from '@ory/client-fetch';
25
25
  import { UiNodeInputAttributes } from '@ory/client-fetch';
26
26
  import { UiNodeTextAttributes } from '@ory/client-fetch';
27
27
  import { UiText } from '@ory/client-fetch';
28
+ import { VariantProps } from 'class-variance-authority';
28
29
  import { VerificationFlow } from '@ory/client-fetch';
29
30
 
30
- // Warning: (ae-forgotten-export) The symbol "OryCardProps" needs to be exported by the entry point index.d.ts
31
+ // Warning: (ae-forgotten-export) The symbol "OryCardRootProps" needs to be exported by the entry point index.d.ts
31
32
  //
32
33
  // @public (undocumented)
33
- export function DefaultCard({ children }: OryCardProps): react_jsx_runtime.JSX.Element;
34
+ export function DefaultCard({ children }: OryCardRootProps): react_jsx_runtime.JSX.Element;
34
35
 
35
36
  // Warning: (ae-forgotten-export) The symbol "OryCardContentProps" needs to be exported by the entry point index.d.ts
36
37
  //
@@ -46,15 +47,15 @@ export function DefaultCardHeader(): react_jsx_runtime.JSX.Element;
46
47
  // @public (undocumented)
47
48
  export function DefaultCardLogo(): react_jsx_runtime.JSX.Element;
48
49
 
49
- // Warning: (ae-forgotten-export) The symbol "HeadlessFormProps" needs to be exported by the entry point index.d.ts
50
+ // Warning: (ae-forgotten-export) The symbol "OryFormRootProps" needs to be exported by the entry point index.d.ts
50
51
  //
51
52
  // @public (undocumented)
52
- export function DefaultFormContainer({ children, onSubmit, action, method, }: PropsWithChildren<HeadlessFormProps>): react_jsx_runtime.JSX.Element;
53
+ export function DefaultFormContainer({ children, onSubmit, action, method, }: PropsWithChildren<OryFormRootProps>): react_jsx_runtime.JSX.Element;
53
54
 
54
- // Warning: (ae-forgotten-export) The symbol "HeadlessMessageProps" needs to be exported by the entry point index.d.ts
55
+ // Warning: (ae-forgotten-export) The symbol "OryMessageContentProps" needs to be exported by the entry point index.d.ts
55
56
  //
56
57
  // @public (undocumented)
57
- export function DefaultMessage({ message }: HeadlessMessageProps): react_jsx_runtime.JSX.Element;
58
+ export function DefaultMessage({ message }: OryMessageContentProps): react_jsx_runtime.JSX.Element;
58
59
 
59
60
  // @public (undocumented)
60
61
  export function DefaultMessageContainer({ children }: PropsWithChildren): react_jsx_runtime.JSX.Element | null;
@@ -66,7 +67,7 @@ export { Error_2 as Error }
66
67
  // @public (undocumented)
67
68
  export type ErrorFlowContextProps = {
68
69
  error: FlowError;
69
- components?: Partial<OryFlowComponents>;
70
+ components?: OryFlowComponentOverrides;
70
71
  config: OryClientConfiguration;
71
72
  };
72
73
 
@@ -76,10 +77,12 @@ export function Login({ flow, config, children, components: flowOverrideComponen
76
77
  // @public (undocumented)
77
78
  export type LoginFlowContextProps = {
78
79
  flow: LoginFlow;
79
- components?: Partial<OryFlowComponents>;
80
+ components?: OryFlowComponentOverrides;
80
81
  config: OryClientConfiguration;
81
82
  };
82
83
 
84
+ // Warning: (ae-forgotten-export) The symbol "OryFlowComponents" needs to be exported by the entry point index.d.ts
85
+ //
83
86
  // @public (undocumented)
84
87
  export const OryDefaultComponents: OryFlowComponents;
85
88
 
@@ -89,7 +92,7 @@ export function Recovery({ flow, config, children, components: flowOverrideCompo
89
92
  // @public (undocumented)
90
93
  export type RecoveryFlowContextProps = {
91
94
  flow: RecoveryFlow;
92
- components?: Partial<OryFlowComponents>;
95
+ components?: OryFlowComponentOverrides;
93
96
  config: OryClientConfiguration;
94
97
  };
95
98
 
@@ -104,7 +107,7 @@ export function Settings({ flow, config, children, components: flowOverrideCompo
104
107
  // @public (undocumented)
105
108
  export type SettingsFlowContextProps = {
106
109
  flow: SettingsFlow;
107
- components?: Partial<OryFlowComponents>;
110
+ components?: OryFlowComponentOverrides;
108
111
  config: OryClientConfiguration;
109
112
  };
110
113
 
@@ -114,13 +117,13 @@ export function Verification({ flow, config, children, components: flowOverrideC
114
117
  // @public (undocumented)
115
118
  export type VerificationFlowContextProps = {
116
119
  flow: VerificationFlow;
117
- components?: Partial<OryFlowComponents>;
120
+ components?: OryFlowComponentOverrides;
118
121
  config: OryClientConfiguration;
119
122
  };
120
123
 
121
124
  // Warnings were encountered during analysis:
122
125
  //
123
- // dist/theme/default/index.d.ts:25:5 - (ae-forgotten-export) The symbol "OryFlowComponents" needs to be exported by the entry point index.d.ts
126
+ // 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
127
  // 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
128
 
126
129
  // (No @packageDocumentation comment for this package)