@ory/elements-react 1.0.0-next.9 → 1.0.0-rc.1

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