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

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