@ory/elements-react 1.0.0-next.9 → 1.0.0-pr.97a7df82

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