@ory/elements-react 1.0.0-next.9 → 1.0.0-pr.6c5e72b6

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.
Files changed (78) hide show
  1. package/CHANGELOG.md +601 -0
  2. package/DEVELOPMENT.md +95 -0
  3. package/LICENSE +201 -0
  4. package/README.md +359 -32
  5. package/babel.config.js +10 -0
  6. package/dist/client/config.d.mts +21 -0
  7. package/dist/client/config.d.ts +21 -0
  8. package/dist/client/config.js +77 -0
  9. package/dist/client/config.js.map +1 -0
  10. package/dist/client/config.mjs +51 -0
  11. package/dist/client/config.mjs.map +1 -0
  12. package/dist/client/frontendClient.d.mts +10 -0
  13. package/dist/client/frontendClient.d.ts +10 -0
  14. package/dist/client/frontendClient.js +75 -0
  15. package/dist/client/frontendClient.js.map +1 -0
  16. package/dist/client/frontendClient.mjs +54 -0
  17. package/dist/client/frontendClient.mjs.map +1 -0
  18. package/dist/client/index.d.mts +5 -0
  19. package/dist/client/index.d.ts +5 -0
  20. package/dist/client/index.js +33 -0
  21. package/dist/client/index.js.map +1 -0
  22. package/dist/client/index.mjs +10 -0
  23. package/dist/client/index.mjs.map +1 -0
  24. package/dist/client/session-provider.d.mts +62 -0
  25. package/dist/client/session-provider.d.ts +62 -0
  26. package/dist/client/session-provider.js +96 -0
  27. package/dist/client/session-provider.js.map +1 -0
  28. package/dist/client/session-provider.mjs +71 -0
  29. package/dist/client/session-provider.mjs.map +1 -0
  30. package/dist/client/useSession.d.mts +32 -0
  31. package/dist/client/useSession.d.ts +32 -0
  32. package/dist/client/useSession.js +37 -0
  33. package/dist/client/useSession.js.map +1 -0
  34. package/dist/client/useSession.mjs +13 -0
  35. package/dist/client/useSession.mjs.map +1 -0
  36. package/dist/index.d.mts +531 -1888
  37. package/dist/index.d.ts +531 -1888
  38. package/dist/index.js +4335 -2566
  39. package/dist/index.js.map +1 -1
  40. package/dist/index.mjs +4329 -2552
  41. package/dist/index.mjs.map +1 -1
  42. package/dist/theme/default/index.css +995 -308
  43. package/dist/theme/default/index.css.map +1 -1
  44. package/dist/theme/default/index.d.mts +54 -15
  45. package/dist/theme/default/index.d.ts +54 -15
  46. package/dist/theme/default/index.js +5745 -784
  47. package/dist/theme/default/index.js.map +1 -1
  48. package/dist/theme/default/index.mjs +5847 -770
  49. package/dist/theme/default/index.mjs.map +1 -1
  50. package/dist/theme/default/tailwind/defaults.d.mts +737 -0
  51. package/dist/theme/default/tailwind/defaults.d.ts +737 -0
  52. package/dist/theme/default/tailwind/defaults.js +219 -0
  53. package/dist/theme/default/tailwind/defaults.js.map +1 -0
  54. package/dist/theme/default/tailwind/defaults.mjs +196 -0
  55. package/dist/theme/default/tailwind/defaults.mjs.map +1 -0
  56. package/package.json +39 -14
  57. package/tailwind/defaults.ts +34 -0
  58. package/tailwind/generated/README.md +2 -0
  59. package/tailwind/generated/default-variables.css +216 -0
  60. package/tailwind/generated/variables-processed.json +161 -0
  61. package/tsconfig.json +10 -9
  62. package/tsconfig.runtime.json +4 -0
  63. package/.eslintrc.js +0 -61
  64. package/.vscode/i18n-ally-reviews.yml +0 -3
  65. package/.vscode/settings.json +0 -4
  66. package/api-report/elements-react-theme.api.json +0 -1260
  67. package/api-report/elements-react-theme.api.md +0 -128
  68. package/api-report/elements-react.api.json +0 -4262
  69. package/api-report/elements-react.api.md +0 -393
  70. package/api-report/temp/elements-react-theme.api.md +0 -130
  71. package/api-report/temp/elements-react.api.md +0 -328
  72. package/config/api-extractor-core.json +0 -457
  73. package/config/api-extractor-theme.json +0 -463
  74. package/jest.config.ts +0 -16
  75. package/postcss.config.ts +0 -6
  76. package/tailwind.config.ts +0 -54
  77. package/tsconfig.spec.json +0 -20
  78. package/variables-processed.json +0 -193
package/CHANGELOG.md CHANGED
@@ -1,3 +1,604 @@
1
+ ## 1.0.0-rc.5 (2025-05-16)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - properly detect OIDC account linking ([#538](https://github.com/ory/elements/pull/538))
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - Jonas Hungershausen
10
+
11
+ ## 1.0.0-rc.4 (2025-05-15)
12
+
13
+ ### 🩹 Fixes
14
+
15
+ - properly handle missing fields in OIDC registration ([#534](https://github.com/ory/elements/pull/534))
16
+ - incorrect if branching in handle error ([#533](https://github.com/ory/elements/pull/533))
17
+ - re-enable method chooser on mfa method active screens ([#530](https://github.com/ory/elements/pull/530))
18
+
19
+ ### ❤️ Thank You
20
+
21
+ - hackerman @aeneasr
22
+ - Jonas Hungershausen
23
+
24
+ ## 1.0.0-rc.3 (2025-05-09)
25
+
26
+ ### 🩹 Fixes
27
+
28
+ - captcha reloading and duplication ([#518](https://github.com/ory/elements/pull/518))
29
+ - ⚠️ rework configuration management ([#515](https://github.com/ory/elements/pull/515))
30
+ - add missing testids to method selector and checkbox ([#517](https://github.com/ory/elements/pull/517))
31
+
32
+ ### ⚠️ Breaking Changes
33
+
34
+ - ⚠️ rework configuration management ([#515](https://github.com/ory/elements/pull/515))
35
+
36
+ ### ❤️ Thank You
37
+
38
+ - hackerman @aeneasr
39
+ - Jonas Hungershausen
40
+
41
+ ## 1.0.0-rc.2 (2025-04-30)
42
+
43
+ ### 🚀 Features
44
+
45
+ - method translation for totp, code, webauthn ([#500](https://github.com/ory/elements/pull/500))
46
+ - add all missing stories ([#480](https://github.com/ory/elements/pull/480))
47
+ - preview deployments for example apps ([#488](https://github.com/ory/elements/pull/488))
48
+ - add back button to settings page ([#464](https://github.com/ory/elements/pull/464))
49
+
50
+ ### 🩹 Fixes
51
+
52
+ - ⚠️ align configuration types to Ory Network APIs ([#423](https://github.com/ory/elements/pull/423))
53
+ - sort captcha before submit button ([#507](https://github.com/ory/elements/pull/507))
54
+ - cors credentials in default client ([#508](https://github.com/ory/elements/pull/508))
55
+ - back button should return to application ([#465](https://github.com/ory/elements/pull/465))
56
+ - adjust design of generic OIDC provider ([#492](https://github.com/ory/elements/pull/492))
57
+ - use proper id for react element arrays ([#495](https://github.com/ory/elements/pull/495))
58
+ - add test id to header messages ([#489](https://github.com/ory/elements/pull/489))
59
+ - re-add missing error message when no methods provided ([#460](https://github.com/ory/elements/pull/460))
60
+ - resend not working for registration ([#468](https://github.com/ory/elements/pull/468))
61
+ - add missing color class to registration footer ([#473](https://github.com/ory/elements/pull/473))
62
+ - resend not working for registration ([#467](https://github.com/ory/elements/pull/467))
63
+
64
+ ### ⚠️ Breaking Changes
65
+
66
+ - ⚠️ align configuration types to Ory Network APIs ([#423](https://github.com/ory/elements/pull/423))
67
+
68
+ ### ❤️ Thank You
69
+
70
+ - hackerman @aeneasr
71
+ - Jonas Hungershausen
72
+
73
+ ## 1.0.0-rc.1 (2025-04-21)
74
+
75
+ ### 🩹 Fixes
76
+
77
+ - re-add missing error message when no methods provided ([#460](https://github.com/ory/elements/pull/460))
78
+ - resend not working for registration ([#468](https://github.com/ory/elements/pull/468))
79
+ - add missing color class to registration footer ([#473](https://github.com/ory/elements/pull/473))
80
+ - resend not working for registration ([#467](https://github.com/ory/elements/pull/467))
81
+
82
+ ### ❤️ Thank You
83
+
84
+ - hackerman @aeneasr
85
+ - Jonas Hungershausen
86
+
87
+ ## 1.0.0-rc.0 (2025-04-17)
88
+
89
+ ### 🚀 Features
90
+
91
+ - add missing translations for de, es and fr ([#456](https://github.com/ory/elements/pull/456))
92
+
93
+ ### 🩹 Fixes
94
+
95
+ - correctly set input field value ([#447](https://github.com/ory/elements/pull/447))
96
+ - add missing settings padding ([#446](https://github.com/ory/elements/pull/446))
97
+ - always omit conflicting keys ([#444](https://github.com/ory/elements/pull/444))
98
+
99
+ ### ❤️ Thank You
100
+
101
+ - hackerman @aeneasr
102
+ - Jonas Hungershausen
103
+
104
+ ## 1.0.0-next.46 (2025-04-16)
105
+
106
+ ### 🩹 Fixes
107
+
108
+ - missing hidden field regression ([#439](https://github.com/ory/elements/pull/439))
109
+ - use correct testid ([#438](https://github.com/ory/elements/pull/438))
110
+
111
+ ### ❤️ Thank You
112
+
113
+ - hackerman @aeneasr
114
+
115
+ ## 1.0.0-next.45 (2025-04-15)
116
+
117
+ ### 🩹 Fixes
118
+
119
+ - add missing test id to scope checkbox label ([#437](https://github.com/ory/elements/pull/437))
120
+ - add missing captcha group to all methods ([#432](https://github.com/ory/elements/pull/432))
121
+
122
+ ### ❤️ Thank You
123
+
124
+ - hackerman @aeneasr
125
+ - Jonas Hungershausen
126
+
127
+ ## 1.0.0-next.44 (2025-04-10)
128
+
129
+ ### 🩹 Fixes
130
+
131
+ - use currentColor in eye icons ([#433](https://github.com/ory/elements/pull/433))
132
+
133
+ ### ❤️ Thank You
134
+
135
+ - Jonas Hungershausen
136
+
137
+ ## 1.0.0-next.43 (2025-04-10)
138
+
139
+ ### 🚀 Features
140
+
141
+ - add missing French translations ([#401](https://github.com/ory/elements/pull/401))
142
+
143
+ ### 🩹 Fixes
144
+
145
+ - two-step registration back button ([#428](https://github.com/ory/elements/pull/428))
146
+ - resolve wcag2aa color contrast issues ([#367](https://github.com/ory/elements/pull/367))
147
+
148
+ ### ❤️ Thank You
149
+
150
+ - hackerman @aeneasr
151
+ - Jonas Hungershausen
152
+ - Jordan Labrosse
153
+
154
+ ## 1.0.0-next.41 (2025-04-07)
155
+
156
+ ### 🩹 Fixes
157
+
158
+ - resolve wcag2aa color contrast issues ([#367](https://github.com/ory/elements/pull/367))
159
+
160
+ ### ❤️ Thank You
161
+
162
+ - Jonas Hungershausen
163
+ - Jordan Labrosse
164
+
165
+ ## 1.0.0-next.40 (2025-04-02)
166
+
167
+ ### 🚀 Features
168
+
169
+ - support SAML-native ([#395](https://github.com/ory/elements/pull/395))
170
+
171
+ ### ❤️ Thank You
172
+
173
+ - hackerman @aeneasr
174
+
175
+ ## 1.0.0-next.39 (2025-03-25)
176
+
177
+ ### 🚀 Features
178
+
179
+ - add SAML group handling ([#390](https://github.com/ory/elements/pull/390))
180
+
181
+ ### ❤️ Thank You
182
+
183
+ - hackerman @aeneasr
184
+
185
+ ## 1.0.0-next.38 (2025-03-24)
186
+
187
+ ### 🩹 Fixes
188
+
189
+ - hide registration link again ([#387](https://github.com/ory/elements/pull/387))
190
+
191
+ ### ❤️ Thank You
192
+
193
+ - hackerman @aeneasr
194
+
195
+ ## 1.0.0-next.37 (2025-03-12)
196
+
197
+ ### 🩹 Fixes
198
+
199
+ - correctly render test id for error card ([#386](https://github.com/ory/elements/pull/386))
200
+
201
+ ### ❤️ Thank You
202
+
203
+ - Jonas Hungershausen
204
+
205
+ ## 1.0.0-next.36 (2025-03-12)
206
+
207
+ ### 🩹 Fixes
208
+
209
+ - handle error messages for selected methods ([#385](https://github.com/ory/elements/pull/385))
210
+
211
+ ### ❤️ Thank You
212
+
213
+ - Pierre Caillaud @pcaillaudm
214
+
215
+ ## 1.0.0-next.35 (2025-03-12)
216
+
217
+ ### 🚀 Features
218
+
219
+ - add more intelligent error screen ([#383](https://github.com/ory/elements/pull/383))
220
+
221
+ ### ❤️ Thank You
222
+
223
+ - Jonas Hungershausen
224
+
225
+ ## 1.0.0-next.34 (2025-03-12)
226
+
227
+ ### 🩹 Fixes
228
+
229
+ - use correct import paths ([#384](https://github.com/ory/elements/pull/384))
230
+
231
+ ### ❤️ Thank You
232
+
233
+ - hackerman @aeneasr
234
+
235
+ ## 1.0.0-next.33 (2025-03-07)
236
+
237
+ ### 🚀 Features
238
+
239
+ - add password toggle to input ([#378](https://github.com/ory/elements/pull/378))
240
+
241
+ ### 🩹 Fixes
242
+
243
+ - validation message regression ([#380](https://github.com/ory/elements/pull/380))
244
+
245
+ ### ❤️ Thank You
246
+
247
+ - Jonas Hungershausen
248
+ - Pierre Caillaud @pcaillaudm
249
+
250
+ ## 1.0.0-next.32 (2025-03-06)
251
+
252
+ ### 🚀 Features
253
+
254
+ - use method selector in 2fa login ([#377](https://github.com/ory/elements/pull/377))
255
+
256
+ ### ❤️ Thank You
257
+
258
+ - Pierre Caillaud @pcaillaudm
259
+
260
+ ## 1.0.0-next.31 (2025-03-06)
261
+
262
+ ### 🚀 Features
263
+
264
+ - support captchas natively in new and old elements ([#372](https://github.com/ory/elements/pull/372))
265
+
266
+ ### 🩹 Fixes
267
+
268
+ - center text on OIDC buttons and debounce state update ([#366](https://github.com/ory/elements/pull/366))
269
+
270
+ ### ❤️ Thank You
271
+
272
+ - hackerman @aeneasr
273
+ - Jonas Hungershausen
274
+
275
+ ## 1.0.0-next.30 (2025-03-05)
276
+
277
+ ### 🩹 Fixes
278
+
279
+ - show possible OIDC connections on login method selector ([#362](https://github.com/ory/elements/pull/362))
280
+ - add correct x/twitter OIDC logo ([#364](https://github.com/ory/elements/pull/364))
281
+
282
+ ### ❤️ Thank You
283
+
284
+ - Jonas Hungershausen
285
+
286
+ ## 1.0.0-next.29 (2025-02-27)
287
+
288
+ ### 🩹 Fixes
289
+
290
+ - remove untranslated aria label from auth list item ([#365](https://github.com/ory/elements/pull/365))
291
+ - spacing in auth method list ([#359](https://github.com/ory/elements/pull/359))
292
+
293
+ ### ❤️ Thank You
294
+
295
+ - Jonas Hungershausen
296
+
297
+ ## 1.0.0-next.28 (2025-02-20)
298
+
299
+ ### 🩹 Fixes
300
+
301
+ - safari click handler and redirect handling ([#361](https://github.com/ory/elements/pull/361))
302
+
303
+ ### ❤️ Thank You
304
+
305
+ - Jonas Hungershausen
306
+
307
+ ## 1.0.0-next.27 (2025-02-18)
308
+
309
+ ### 🩹 Fixes
310
+
311
+ - translate {property} in missing property validation message ([#357](https://github.com/ory/elements/pull/357))
312
+ - invisible LinkedIn icon ([#355](https://github.com/ory/elements/pull/355))
313
+ - in initFlowUrl carry over login challenge ([#347](https://github.com/ory/elements/pull/347))
314
+ - define a fallback font stack ([#349](https://github.com/ory/elements/pull/349))
315
+ - show correct OIDC provider logo ([#350](https://github.com/ory/elements/pull/350))
316
+ - brand logic in social sign in icon ([#348](https://github.com/ory/elements/pull/348))
317
+
318
+ ### ❤️ Thank You
319
+
320
+ - Henning Perl @hperl
321
+ - Jonas Hungershausen
322
+
323
+ ## 1.0.0-next.26 (2025-02-18)
324
+
325
+ ### 🩹 Fixes
326
+
327
+ - translate {property} in missing property validation message ([#357](https://github.com/ory/elements/pull/357))
328
+ - invisible LinkedIn icon ([#355](https://github.com/ory/elements/pull/355))
329
+ - in initFlowUrl carry over login challenge ([#347](https://github.com/ory/elements/pull/347))
330
+ - show correct OIDC provider logo ([#350](https://github.com/ory/elements/pull/350))
331
+
332
+ ### ❤️ Thank You
333
+
334
+ - Henning Perl @hperl
335
+ - Jonas Hungershausen
336
+
337
+ ## 1.0.0-next.25 (2025-01-29)
338
+
339
+ ### 🚀 Features
340
+
341
+ - expose get flow factory ([#333](https://github.com/ory/elements/pull/333))
342
+
343
+ ### 🩹 Fixes
344
+
345
+ - make OIDC remove button loading state specific ([#339](https://github.com/ory/elements/pull/339))
346
+ - only show loading indicator on clicked button ([#335](https://github.com/ory/elements/pull/335))
347
+ - don't short circuit code method selector ([#336](https://github.com/ory/elements/pull/336))
348
+
349
+ ### ❤️ Thank You
350
+
351
+ - hackerman @aeneasr
352
+ - Jonas Hungershausen
353
+
354
+ ## 1.0.0-next.24 (2025-01-22)
355
+
356
+ ### 🩹 Fixes
357
+
358
+ - only show loading indicator on clicked button ([#335](https://github.com/ory/elements/pull/335))
359
+ - don't short circuit code method selector ([#336](https://github.com/ory/elements/pull/336))
360
+
361
+ ### ❤️ Thank You
362
+
363
+ - hackerman @aeneasr
364
+ - Jonas Hungershausen
365
+
366
+ ## 1.0.0-next.23 (2025-01-21)
367
+
368
+ ### 🩹 Fixes
369
+
370
+ - don't short circuit code method selector ([#336](https://github.com/ory/elements/pull/336))
371
+
372
+ ### ❤️ Thank You
373
+
374
+ - hackerman @aeneasr
375
+ - Jonas Hungershausen
376
+
377
+ ## 1.0.0-next.3 (2025-01-21)
378
+
379
+ ### 🚀 Features
380
+
381
+ - expose get flow factory ([#333](https://github.com/ory/elements/pull/333))
382
+
383
+ ### ❤️ Thank You
384
+
385
+ - hackerman @aeneasr
386
+
387
+ ## 1.0.0-next.21 (2025-01-18)
388
+
389
+ This was a version bump only for @ory/elements-react to align it with other projects, there were no code changes.
390
+
391
+ ## 1.0.0-next.20 (2025-01-16)
392
+
393
+ ### 🚀 Features
394
+
395
+ - handle state transition edge cases ([f2e4023](https://github.com/ory/elements/commit/f2e4023))
396
+ - user experience improvements and e2e test coverage ([f68744c](https://github.com/ory/elements/commit/f68744c))
397
+ - do not show two-step selector if only one method exists ([6453673](https://github.com/ory/elements/commit/6453673))
398
+
399
+ ### 🩹 Fixes
400
+
401
+ - better validation for code method ([b0d8e2c](https://github.com/ory/elements/commit/b0d8e2c))
402
+
403
+ ### ❤️ Thank You
404
+
405
+ - aeneasr @aeneasr
406
+
407
+ ## 1.0.0-next.19 (2024-12-31)
408
+
409
+ ### 🩹 Fixes
410
+
411
+ - properly handle form submits in settings flow ([#322](https://github.com/ory/elements/pull/322))
412
+
413
+ ### ❤️ Thank You
414
+
415
+ - Jonas Hungershausen
416
+
417
+ ## 1.0.0-next.18 (2024-12-30)
418
+
419
+ ### 🚀 Features
420
+
421
+ - add page and app router examples ([#307](https://github.com/ory/elements/pull/307))
422
+ - ⚠️ add getServerSession and SessionProvider ([#309](https://github.com/ory/elements/pull/309))
423
+ - add @ory/nextjs package ([#303](https://github.com/ory/elements/pull/303))
424
+
425
+ ### 🩹 Fixes
426
+
427
+ - align font sizes to design & use updated variable names ([#318](https://github.com/ory/elements/pull/318))
428
+ - properly set default value for checkboxes ([#314](https://github.com/ory/elements/pull/314))
429
+ - passkey and webauthn in settings flow ([#317](https://github.com/ory/elements/pull/317))
430
+
431
+ ### ⚠️ Breaking Changes
432
+
433
+ - ⚠️ add getServerSession and SessionProvider ([#309](https://github.com/ory/elements/pull/309))
434
+
435
+ ### ❤️ Thank You
436
+
437
+ - hackerman @aeneasr
438
+ - Jonas Hungershausen
439
+
440
+ ## 1.0.0-next.17 (2024-11-27)
441
+
442
+
443
+ ### 🚀 Features
444
+
445
+ - allow overriding OIDC logos
446
+
447
+ - enable proper account linking flows
448
+
449
+ - **core:** add react-hook form resolver
450
+
451
+
452
+ ### 🩹 Fixes
453
+
454
+ - handle recovery brute force protection
455
+
456
+
457
+ ### ❤️ Thank You
458
+
459
+ - Jonas Hungershausen
460
+
461
+ ## 1.0.0-next.16 (2024-11-26)
462
+
463
+
464
+ ### 🚀 Features
465
+
466
+ - allow overriding of field messages
467
+
468
+ - add test ids to components
469
+
470
+
471
+ ### 🩹 Fixes
472
+
473
+ - use --font-sans CSS variable for font
474
+
475
+ - registration & login flow form states
476
+
477
+ - missing resend button on login & registration
478
+
479
+ - password validation error form state
480
+
481
+ - current identifier button overflowing on long values
482
+
483
+
484
+ ### ❤️ Thank You
485
+
486
+ - Jonas Hungershausen
487
+
488
+ ## 1.0.0-next.15 (2024-11-18)
489
+
490
+
491
+ ### 🩹 Fixes
492
+
493
+ - use --font-sans CSS variable for font
494
+
495
+ - registration & login flow form states
496
+
497
+
498
+ ### ❤️ Thank You
499
+
500
+ - Jonas Hungershausen
501
+
502
+ ## 1.0.0-next.14 (2024-11-08)
503
+
504
+
505
+ ### 🚀 Features
506
+
507
+ - force OIDC account selection on settings
508
+
509
+
510
+ ### 🩹 Fixes
511
+
512
+ - redirect to login if session expired during settings
513
+
514
+
515
+ ### ❤️ Thank You
516
+
517
+ - Jonas Hungershausen
518
+
519
+ ## 1.0.0-next.13 (2024-11-05)
520
+
521
+
522
+ ### 🩹 Fixes
523
+
524
+ - ⚠️ move useSession hook to /client entry point
525
+
526
+ - oidc linking & unlinking form properties
527
+
528
+ - hide two step registration message
529
+
530
+ - implement component merging instead of usign lodash
531
+
532
+ - replace translation merge with custom function
533
+
534
+
535
+ #### ⚠️ Breaking Changes
536
+
537
+ - ⚠️ move useSession hook to /client entry point
538
+
539
+ ### ❤️ Thank You
540
+
541
+ - Jonas Hungershausen
542
+
543
+ ## 1.0.0-next.12 (2024-10-29)
544
+
545
+
546
+ ### 🚀 Features
547
+
548
+ - add elements v1 packages
549
+
550
+ - add useSession hook
551
+
552
+ - add page header component with user menu
553
+
554
+ - support links in checkbox/boolean nodes
555
+
556
+ - add settings flow components
557
+
558
+
559
+ ### 🩹 Fixes
560
+
561
+ - use correct node to detect two step registration
562
+
563
+ - use translations in more missing places
564
+
565
+ - short-circuit code login on two step card
566
+
567
+ - duplicate resend button on recovery & verification
568
+
569
+
570
+ ### ❤️ Thank You
571
+
572
+ - Jonas Hungershausen
573
+ - Miłosz
574
+
575
+ ## 1.0.0-next.11 (2024-10-22)
576
+
577
+ 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.
578
+
579
+
580
+ ### 🚀 Features
581
+
582
+ - add elements v1 packages
583
+
584
+ - add useSession hook
585
+
586
+ ### ❤️ Thank You
587
+
588
+ - Jonas Hungershausen
589
+
590
+ ## 1.0.0-next.10 (2024-10-14)
591
+
592
+
593
+ ### 🩹 Fixes
594
+
595
+ - add missing translations in all places
596
+
597
+
598
+ ### ❤️ Thank You
599
+
600
+ - Jonas Hungershausen
601
+
1
602
  ## 1.0.0-next.9 (2024-10-10)
2
603
 
3
604
 
package/DEVELOPMENT.md ADDED
@@ -0,0 +1,95 @@
1
+ # Developing @ory/elements-react
2
+
3
+ Ory Elements is built inside this monorepo and hooked up to the other packages
4
+ via nx and npm workspaces.
5
+
6
+ To start a hot reloading development mode:
7
+
8
+ ```bash
9
+ npx nx dev @ory/elements-react
10
+ ```
11
+
12
+ ## API Extractor
13
+
14
+ To make sure there are no unintended changes to the API contract, we use
15
+ [API Extractor](https://api-extractor.com/) to generate API reports, that are
16
+ checked into the repository. The CI of each PR includes a check that this API
17
+ report would not change after merging the PR.
18
+
19
+ If the report would change, the CI fails. If that happens, you can re-generate
20
+ all reports by running
21
+
22
+ ```bash
23
+ npx nx api-extractor-refresh @ory/elements-react
24
+ ```
25
+
26
+ Inspect the resulting changes carefully, and make sure it is in line with what
27
+ you expected. Add the changes to your PR.
28
+
29
+ ## Tests
30
+
31
+ Unit tests use Jest and react-testing-library. To run the tests locally,
32
+ execute:
33
+
34
+ ```bash
35
+ npx nx build @ory/elements-react
36
+ ```
37
+
38
+ ### Test selectors
39
+
40
+ To select DOM elements use a `data-testid` selector. Nomenclature mandates `/`
41
+ as separators and a prefix of `ory/`:
42
+
43
+ - `ory/form/` is the prefix for form elements;
44
+ - `ory/screen/` is the prefix for elements on specific screens;
45
+ - `ory/screen/` is the prefix for translatable messages (e.g. validation
46
+ errors).
47
+
48
+ ## Stories
49
+
50
+ Each flow has its own story in the `packages/elements-react-stories` package. To
51
+ run the storybook development environment, execute:
52
+
53
+ ```bash
54
+ npx nx storybook @ory/elements-react
55
+ ```
56
+
57
+ You can also build the Storybook using:
58
+
59
+ ```bash
60
+ npx nx build @ory/elements-react
61
+ ```
62
+
63
+ The stories use stub responses
64
+
65
+ ## Releasing
66
+
67
+ @ory/elements-react and @ory/nextjs is released using nx releases.
68
+
69
+ There is a helper script located in `./scripts/release.sh`.
70
+
71
+ Usage:
72
+
73
+ ```bash
74
+ ./scripts/release.sh <project> <tag>
75
+
76
+ ./scripts/release.sh @ory/elements-react next # next release preview (-next.X)
77
+ ./scripts/release.sh @ory/elements-react rc # release candidate (-rc.X)
78
+ ```
79
+
80
+ The script asks the user before executing each steps. Please double check
81
+ CHANGELOG.md and dry run outputs. nx also creates git tags and commits, that
82
+ should be commited. The script will do that automatically.
83
+
84
+ ### Pre-releasing unmerged changes
85
+
86
+ You can release a PR's changes to npm to test them in a different repository,
87
+ etc. These versions are released on the `pr` npm tag, and will have the version
88
+ `0.0.0-pr.<git hash>`. These releases wont be pushed to master, but you might
89
+ have to revert the `package.json` and `package-lock.json` files.
90
+
91
+ Usage:
92
+
93
+ ```bash
94
+ ./scripts/release.sh @ory/elements-react pr
95
+ ```