@ory/elements-react 1.0.0-next.29 → 1.0.0-next.30

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 (166) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/index.d.mts +3 -6
  3. package/dist/index.d.ts +3 -6
  4. package/dist/index.js +253 -299
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.mjs +253 -299
  7. package/dist/index.mjs.map +1 -1
  8. package/dist/theme/default/index.js +258 -248
  9. package/dist/theme/default/index.js.map +1 -1
  10. package/dist/theme/default/index.mjs +215 -205
  11. package/dist/theme/default/index.mjs.map +1 -1
  12. package/package.json +3 -3
  13. package/.storybook/global.css +0 -7
  14. package/.storybook/main.ts +0 -50
  15. package/.storybook/preview-head.html +0 -15
  16. package/.storybook/preview.tsx +0 -68
  17. package/.storybook/public/InterVariable.woff2 +0 -0
  18. package/.storybook/public/inter.css +0 -8
  19. package/.stub-responses/login/1fa/all-methods/initial-form.json +0 -247
  20. package/.stub-responses/login/1fa/all-methods/missing-email.json +0 -265
  21. package/.stub-responses/login/1fa/all-methods/wrong-credentials.json +0 -254
  22. package/.stub-responses/login/1fa/code/code-input.json +0 -135
  23. package/.stub-responses/login/1fa/code/initial-form.json +0 -173
  24. package/.stub-responses/login/1fa/code/invalid-account.json +0 -182
  25. package/.stub-responses/login/1fa/code/missing-email.json +0 -182
  26. package/.stub-responses/login/1fa/code/wrong-credentials.json +0 -124
  27. package/.stub-responses/login/1fa/none/initial-form.json +0 -33
  28. package/.stub-responses/login/1fa/oidc/initial-form.json +0 -279
  29. package/.stub-responses/login/1fa/passkey/initial-form.json +0 -122
  30. package/.stub-responses/login/1fa/password/initial-form.json +0 -154
  31. package/.stub-responses/login/1fa/password/missing-email.json +0 -172
  32. package/.stub-responses/login/1fa/password/wrong-credentials.json +0 -163
  33. package/.stub-responses/login/1fa/webauthn/initial-form.json +0 -76
  34. package/.stub-responses/login/1fa/webauthn/invalid-account.json +0 -83
  35. package/.stub-responses/login/1fa/webauthn/show-trigger.json +0 -105
  36. package/.stub-responses/recovery/disabled/initial-form.json +0 -9
  37. package/.stub-responses/recovery/none/initial-form.json +0 -9
  38. package/.stub-responses/registration/one-step/all-methods/initial-form.json +0 -334
  39. package/.stub-responses/registration/one-step/all-methods/missing-fields.json +0 -343
  40. package/.stub-responses/registration/one-step/disabled/initial-form.json +0 -10
  41. package/.stub-responses/registration/one-step/none/initial-form.json +0 -14
  42. package/.stub-responses/registration/one-step/oidc/initial-form.json +0 -338
  43. package/.stub-responses/registration/one-step/passkey/initial-form.json +0 -177
  44. package/.stub-responses/registration/one-step/password/initial-form.json +0 -154
  45. package/.stub-responses/registration/one-step/password/missing-fields.json +0 -172
  46. package/.stub-responses/registration/one-step/password/second-step.json +0 -164
  47. package/.stub-responses/registration/one-step/webauthn/initial-form.json +0 -185
  48. package/.stub-responses/registration/two-step/all-methods/enter-password.json +0 -242
  49. package/.stub-responses/registration/two-step/all-methods/initial-form.json +0 -180
  50. package/.stub-responses/registration/two-step/all-methods/missing-fields.json +0 -189
  51. package/.stub-responses/registration/two-step/all-methods/password-validation-error.json +0 -244
  52. package/.stub-responses/registration/two-step/password/enter-password.json +0 -108
  53. package/.stub-responses/registration/two-step/password/initial-form.json +0 -134
  54. package/.stub-responses/registration/two-step/password/missing-fields.json +0 -143
  55. package/.stub-responses/registration/two-step/password/password-validation-error.json +0 -110
  56. package/.stub-responses/settings/all-methods/change-password.json +0 -381
  57. package/.stub-responses/settings/all-methods/change-trait.json +0 -377
  58. package/.stub-responses/settings/all-methods/initial-form.json +0 -368
  59. package/.stub-responses/settings/oidc/with-provider.json +0 -230
  60. package/.stub-responses/settings/passkey/initial-form.json +0 -256
  61. package/.stub-responses/settings/webauthn/initial-form.json +0 -263
  62. package/.stub-responses/verification/disabled/initial-form.json +0 -9
  63. package/.stub-responses/verification/none/initial-form.json +0 -9
  64. package/stories/components/login/1fa/all.stories.ts +0 -46
  65. package/stories/components/login/1fa/code.stories.ts +0 -64
  66. package/stories/components/login/1fa/custom.stories.tsx +0 -72
  67. package/stories/components/login/1fa/none.stories.tsx +0 -28
  68. package/stories/components/login/1fa/oidc.stories.tsx +0 -143
  69. package/stories/components/login/1fa/passkey.stories.ts +0 -28
  70. package/stories/components/login/1fa/password.stories.ts +0 -46
  71. package/stories/components/login/1fa/webauthn.stories.ts +0 -46
  72. package/stories/components/registration/one-step/all-methods.stories.ts +0 -37
  73. package/stories/components/registration/one-step/password.stories.ts +0 -37
  74. package/stories/components/registration/one-step/webauthn.stories.ts +0 -28
  75. package/stories/components/registration/two-step/all-methods.stories.ts +0 -55
  76. package/stories/components/registration/two-step/password.stories.ts +0 -55
  77. package/stories/components/settings/all.stories.ts +0 -46
  78. package/stories/components/settings/oidc.stories.ts +0 -28
  79. package/stories/components/settings/passkey.stories.ts +0 -28
  80. package/stories/components/settings/webauthn.stories.ts +0 -28
  81. package/stories/pages/error.tsx +0 -29
  82. package/stories/utils.ts +0 -20
  83. package/storybook-static/InterVariable.woff2 +0 -0
  84. package/storybook-static/assets/Color-ERTF36HU-BdkKyVuV.js +0 -1
  85. package/storybook-static/assets/DocsRenderer-CFRXHY34-YqKt61zP.js +0 -595
  86. package/storybook-static/assets/all-methods.stories-B-rqPBX2.js +0 -11
  87. package/storybook-static/assets/all-methods.stories-CmMlhzsx.js +0 -21
  88. package/storybook-static/assets/all.stories-CtQ0yCQi.js +0 -16
  89. package/storybook-static/assets/all.stories-DgIVCzcZ.js +0 -16
  90. package/storybook-static/assets/chunk-H6MOWX77-DTQOW814.js +0 -1
  91. package/storybook-static/assets/code.stories-BbEryDcA.js +0 -26
  92. package/storybook-static/assets/custom.stories-DH2zHar9.js +0 -6
  93. package/storybook-static/assets/entry-preview-CcFGVifh.js +0 -10
  94. package/storybook-static/assets/entry-preview-docs-CyY-8bLe.js +0 -54
  95. package/storybook-static/assets/iframe-C5GAfuxh.js +0 -2
  96. package/storybook-static/assets/index-BVoBHvaS.js +0 -8
  97. package/storybook-static/assets/index-CfOt2XX2.js +0 -24
  98. package/storybook-static/assets/index-DPRSEdy-.js +0 -1
  99. package/storybook-static/assets/index-DrFu-skq.js +0 -6
  100. package/storybook-static/assets/index-FeUjBnvO.js +0 -1
  101. package/storybook-static/assets/index-uubelm5h.js +0 -9
  102. package/storybook-static/assets/initial-form-DWp_1F-f.js +0 -1
  103. package/storybook-static/assets/jsx-runtime-QvZ8i92b.js +0 -9
  104. package/storybook-static/assets/none.stories-TAeRhzd5.js +0 -6
  105. package/storybook-static/assets/oidc.stories-CniWBy7t.js +0 -58
  106. package/storybook-static/assets/oidc.stories-jhWzAyoQ.js +0 -6
  107. package/storybook-static/assets/passkey.stories-CBtjoVSN.js +0 -6
  108. package/storybook-static/assets/passkey.stories-CQU2Xw_t.js +0 -6
  109. package/storybook-static/assets/password.stories-0s6cDl0o.js +0 -11
  110. package/storybook-static/assets/password.stories-B2Wtckz_.js +0 -16
  111. package/storybook-static/assets/password.stories-DX0gkWjH.js +0 -21
  112. package/storybook-static/assets/preview-BBWR9nbA.js +0 -1
  113. package/storybook-static/assets/preview-BPAmP-pY.js +0 -2
  114. package/storybook-static/assets/preview-BWzBA1C2.js +0 -396
  115. package/storybook-static/assets/preview-BXtF2ySE.js +0 -234
  116. package/storybook-static/assets/preview-Cur_8nCX.css +0 -1
  117. package/storybook-static/assets/preview-D77C14du.js +0 -34
  118. package/storybook-static/assets/preview-DCjDUH0w.js +0 -27
  119. package/storybook-static/assets/preview-DFmD0pui.js +0 -1
  120. package/storybook-static/assets/preview-DGUiP6tS.js +0 -7
  121. package/storybook-static/assets/preview-aVwhiz9X.js +0 -1
  122. package/storybook-static/assets/react-18-CtsMCmcS.js +0 -1
  123. package/storybook-static/assets/settings-BqEFC2-V.css +0 -1
  124. package/storybook-static/assets/settings-Bx4osEmB.js +0 -2304
  125. package/storybook-static/assets/webauthn.stories-BzodmV0c.js +0 -6
  126. package/storybook-static/assets/webauthn.stories-DglGm7Ys.js +0 -6
  127. package/storybook-static/assets/webauthn.stories-G9E76Wjj.js +0 -16
  128. package/storybook-static/favicon.svg +0 -1
  129. package/storybook-static/iframe.html +0 -654
  130. package/storybook-static/index.html +0 -173
  131. package/storybook-static/index.json +0 -1
  132. package/storybook-static/inter.css +0 -8
  133. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  134. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  135. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  136. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  137. package/storybook-static/preview-stats.json +0 -2344
  138. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +0 -3
  139. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
  140. package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +0 -12
  141. package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
  142. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +0 -394
  143. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +0 -0
  144. package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js +0 -3
  145. package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js.LEGAL.txt +0 -0
  146. package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js +0 -3
  147. package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js.LEGAL.txt +0 -0
  148. package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js +0 -3
  149. package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js.LEGAL.txt +0 -0
  150. package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js +0 -3
  151. package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js.LEGAL.txt +0 -0
  152. package/storybook-static/sb-addons/interactions-8/manager-bundle.js +0 -211
  153. package/storybook-static/sb-addons/interactions-8/manager-bundle.js.LEGAL.txt +0 -0
  154. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
  155. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
  156. package/storybook-static/sb-common-assets/favicon.svg +0 -1
  157. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  158. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  159. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  160. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  161. package/storybook-static/sb-manager/globals-module-info.js +0 -1006
  162. package/storybook-static/sb-manager/globals-runtime.js +0 -54400
  163. package/storybook-static/sb-manager/globals.js +0 -48
  164. package/storybook-static/sb-manager/runtime.js +0 -12089
  165. package/storybook-static/sb-preview/globals.js +0 -33
  166. package/storybook-static/sb-preview/runtime.js +0 -9498
@@ -1,256 +0,0 @@
1
- {
2
- "id": "3746249b-1abf-4b37-80a4-86468a0f570e",
3
- "type": "browser",
4
- "expires_at": "2024-10-29T10:45:45.450619Z",
5
- "issued_at": "2024-10-29T09:45:45.450619Z",
6
- "request_url": "https://jovial-ellis-fr202u7urp.projects.oryapis:8080/self-service/settings/browser?return_to=",
7
- "ui": {
8
- "action": "https://jovial-ellis-fr202u7urp.projects.oryapis:8080/self-service/settings?flow=3746249b-1abf-4b37-80a4-86468a0f570e",
9
- "method": "POST",
10
- "nodes": [
11
- {
12
- "type": "input",
13
- "group": "passkey",
14
- "attributes": {
15
- "name": "passkey_register_trigger",
16
- "type": "button",
17
- "value": "",
18
- "disabled": false,
19
- "onclick": "window.oryPasskeySettingsRegistration()",
20
- "onclickTrigger": "oryPasskeySettingsRegistration",
21
- "node_type": "input"
22
- },
23
- "messages": [],
24
- "meta": {
25
- "label": {
26
- "id": 1050019,
27
- "text": "Add passkey",
28
- "type": "info"
29
- }
30
- }
31
- },
32
- {
33
- "type": "input",
34
- "group": "passkey",
35
- "attributes": {
36
- "name": "passkey_remove",
37
- "type": "submit",
38
- "value": "7b37009edaa82701392d9c978a5f090b40f06bb1c6db3da5bdeba001d02edee5",
39
- "disabled": true,
40
- "node_type": "input"
41
- },
42
- "messages": [],
43
- "meta": {
44
- "label": {
45
- "id": 1050020,
46
- "text": "Remove passkey \"unnamed\"",
47
- "type": "info",
48
- "context": {
49
- "added_at": "2024-10-29T09:45:43Z",
50
- "added_at_unix": 1730195143,
51
- "display_name": "unnamed"
52
- }
53
- }
54
- }
55
- },
56
- {
57
- "type": "input",
58
- "group": "passkey",
59
- "attributes": {
60
- "name": "passkey_settings_register",
61
- "type": "hidden",
62
- "disabled": false,
63
- "node_type": "input"
64
- },
65
- "messages": [],
66
- "meta": {}
67
- },
68
- {
69
- "type": "input",
70
- "group": "passkey",
71
- "attributes": {
72
- "name": "passkey_create_data",
73
- "type": "hidden",
74
- "value": "{\"publicKey\":{\"rp\":{\"name\":\"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-iUgYEBNPNUCsXKUO-5-tests/elements/passkey.spec.ts\\u003eGenerate passkey API responses for Ory Elements Storybook\\u003epasskey states\",\"id\":\"jovial-ellis-fr202u7urp.projects.oryapis\"},\"user\":{\"name\":\"dev+orycye2eda2f162daf6142dd0.oz5977f4h40.72i7wc3wobt@ory.dev\",\"displayName\":\"dev+orycye2eda2f162daf6142dd0.oz5977f4h40.72i7wc3wobt@ory.dev\",\"id\":\"QWh3cjc2RTRwanhzejZrRUhPeTdOZ1JaZGswYVExc09ycTBNTm14VjhQRXFoOU9CRTZ0QlpFa214VUx5TUFJMQ\"},\"challenge\":\"4KcPlK1h6EhxqYI6Hu_vGbKzMRUlHva9UB8vSLfGx-A\",\"pubKeyCredParams\":[{\"type\":\"public-key\",\"alg\":-7},{\"type\":\"public-key\",\"alg\":-35},{\"type\":\"public-key\",\"alg\":-36},{\"type\":\"public-key\",\"alg\":-257},{\"type\":\"public-key\",\"alg\":-258},{\"type\":\"public-key\",\"alg\":-259},{\"type\":\"public-key\",\"alg\":-37},{\"type\":\"public-key\",\"alg\":-38},{\"type\":\"public-key\",\"alg\":-39},{\"type\":\"public-key\",\"alg\":-8}],\"timeout\":300000,\"authenticatorSelection\":{\"authenticatorAttachment\":\"platform\",\"requireResidentKey\":true,\"userVerification\":\"preferred\"}}}",
75
- "disabled": false,
76
- "node_type": "input"
77
- },
78
- "messages": [],
79
- "meta": {}
80
- },
81
- {
82
- "type": "input",
83
- "group": "default",
84
- "attributes": {
85
- "name": "csrf_token",
86
- "type": "hidden",
87
- "value": "lSS2gw7RYoSyDbOidb0F68kbJglKfFFJJdVX1jK1wprNdegMUoJ4y1+iMuK3LjqQLlgnvuOXeAwn43Us1R0JTA==",
88
- "required": true,
89
- "disabled": false,
90
- "node_type": "input"
91
- },
92
- "messages": [],
93
- "meta": {}
94
- },
95
- {
96
- "type": "input",
97
- "group": "profile",
98
- "attributes": {
99
- "name": "traits.email",
100
- "type": "email",
101
- "value": "dev+orycye2eda2f162daf6142dd0.oz5977f4h40.72i7wc3wobt@ory.dev",
102
- "required": true,
103
- "autocomplete": "email",
104
- "disabled": false,
105
- "node_type": "input"
106
- },
107
- "messages": [],
108
- "meta": {
109
- "label": {
110
- "id": 1070002,
111
- "text": "E-Mail",
112
- "type": "info",
113
- "context": {
114
- "title": "E-Mail"
115
- }
116
- }
117
- }
118
- },
119
- {
120
- "type": "input",
121
- "group": "profile",
122
- "attributes": {
123
- "name": "traits.tos",
124
- "type": "checkbox",
125
- "disabled": false,
126
- "node_type": "input"
127
- },
128
- "messages": [],
129
- "meta": {
130
- "label": {
131
- "id": 1070002,
132
- "text": "Accept the terms of service",
133
- "type": "info",
134
- "context": {
135
- "title": "Accept the terms of service"
136
- }
137
- }
138
- }
139
- },
140
- {
141
- "type": "input",
142
- "group": "profile",
143
- "attributes": {
144
- "name": "traits.phone",
145
- "type": "text",
146
- "disabled": false,
147
- "node_type": "input"
148
- },
149
- "messages": [],
150
- "meta": {
151
- "label": {
152
- "id": 1070002,
153
- "text": "Phone Number",
154
- "type": "info",
155
- "context": {
156
- "title": "Phone Number"
157
- }
158
- }
159
- }
160
- },
161
- {
162
- "type": "input",
163
- "group": "profile",
164
- "attributes": {
165
- "name": "traits.nested.name",
166
- "type": "text",
167
- "disabled": false,
168
- "node_type": "input"
169
- },
170
- "messages": [],
171
- "meta": {
172
- "label": {
173
- "id": 1070002,
174
- "text": "Name",
175
- "type": "info",
176
- "context": {
177
- "title": "Name"
178
- }
179
- }
180
- }
181
- },
182
- {
183
- "type": "input",
184
- "group": "profile",
185
- "attributes": {
186
- "name": "method",
187
- "type": "submit",
188
- "value": "profile",
189
- "disabled": false,
190
- "node_type": "input"
191
- },
192
- "messages": [],
193
- "meta": {
194
- "label": {
195
- "id": 1070003,
196
- "text": "Save",
197
- "type": "info"
198
- }
199
- }
200
- },
201
- {
202
- "type": "script",
203
- "group": "webauthn",
204
- "attributes": {
205
- "src": "https://jovial-ellis-fr202u7urp.projects.oryapis:8080/.well-known/ory/webauthn.js",
206
- "async": true,
207
- "referrerpolicy": "no-referrer",
208
- "crossorigin": "anonymous",
209
- "integrity": "sha512-MDzBlwh32rr+eus2Yf1BetIj94m+ULLbewYDulbZjczycs81klNed+qQWG2yi2N03KV5uZlRJJtWdV2x9JNHzQ==",
210
- "type": "text/javascript",
211
- "id": "webauthn_script",
212
- "nonce": "cbb55ce9-b93c-4ef8-bbe7-55a07001fd08",
213
- "node_type": "script"
214
- },
215
- "messages": [],
216
- "meta": {}
217
- }
218
- ]
219
- },
220
- "identity": {
221
- "id": "e92db581-33a0-426e-9310-7948eda0d8ca",
222
- "schema_id": "3295c9e92d19a78b10bfa45d7619eedcfb7d7ea4c2e8f163a21613da0ae6d4179f47fb58d1c23060f11126585f380ee9a9ce9a1d451f4b4de9ef33cc93ca763f",
223
- "schema_url": "https://jovial-ellis-fr202u7urp.projects.oryapis:8080/schemas/MzI5NWM5ZTkyZDE5YTc4YjEwYmZhNDVkNzYxOWVlZGNmYjdkN2VhNGMyZThmMTYzYTIxNjEzZGEwYWU2ZDQxNzlmNDdmYjU4ZDFjMjMwNjBmMTExMjY1ODVmMzgwZWU5YTljZTlhMWQ0NTFmNGI0ZGU5ZWYzM2NjOTNjYTc2M2Y",
224
- "state": "active",
225
- "state_changed_at": "2024-10-29T09:45:43.316519Z",
226
- "traits": {
227
- "email": "dev+orycye2eda2f162daf6142dd0.oz5977f4h40.72i7wc3wobt@ory.dev",
228
- "nested": {}
229
- },
230
- "verifiable_addresses": [
231
- {
232
- "id": "6b25e2e6-df9e-419f-8f2e-9e405b46a4f7",
233
- "value": "dev+orycye2eda2f162daf6142dd0.oz5977f4h40.72i7wc3wobt@ory.dev",
234
- "verified": false,
235
- "via": "email",
236
- "status": "sent",
237
- "created_at": "2024-10-29T09:45:43.321992Z",
238
- "updated_at": "2024-10-29T09:45:43.321992Z"
239
- }
240
- ],
241
- "recovery_addresses": [
242
- {
243
- "id": "424648af-419a-444d-8b05-1b525349e9d0",
244
- "value": "dev+orycye2eda2f162daf6142dd0.oz5977f4h40.72i7wc3wobt@ory.dev",
245
- "via": "email",
246
- "created_at": "2024-10-29T09:45:43.439928Z",
247
- "updated_at": "2024-10-29T09:45:43.439928Z"
248
- }
249
- ],
250
- "metadata_public": null,
251
- "created_at": "2024-10-29T09:45:43.318887Z",
252
- "updated_at": "2024-10-29T09:45:43.318887Z",
253
- "organization_id": null
254
- },
255
- "state": "show_form"
256
- }
@@ -1,263 +0,0 @@
1
- {
2
- "id": "60f4e8c2-fbb6-4b8b-b7f4-8c86199b828b",
3
- "type": "browser",
4
- "expires_at": "2024-10-29T10:45:50.970243Z",
5
- "issued_at": "2024-10-29T09:45:50.970243Z",
6
- "request_url": "https://romantic-tu-rf98ru5rql.projects.oryapis:8080/self-service/settings/browser?return_to=",
7
- "ui": {
8
- "action": "https://romantic-tu-rf98ru5rql.projects.oryapis:8080/self-service/settings?flow=60f4e8c2-fbb6-4b8b-b7f4-8c86199b828b",
9
- "method": "POST",
10
- "nodes": [
11
- {
12
- "type": "input",
13
- "group": "default",
14
- "attributes": {
15
- "name": "csrf_token",
16
- "type": "hidden",
17
- "value": "0daldcQZtQTCubGym72z4Lu7cLxdrB6fayrZQHBEDy0eLIEhAiDoynbmaqggV5WMtsicFEyzKyriKqgABn6ZsQ==",
18
- "required": true,
19
- "disabled": false,
20
- "node_type": "input"
21
- },
22
- "messages": [],
23
- "meta": {}
24
- },
25
- {
26
- "type": "input",
27
- "group": "profile",
28
- "attributes": {
29
- "name": "traits.email",
30
- "type": "email",
31
- "value": "dev+orycye2eda2f162daf6142dd0.nqwe2lavry0.f4h5y029idj@ory.dev",
32
- "required": true,
33
- "autocomplete": "email",
34
- "disabled": false,
35
- "node_type": "input"
36
- },
37
- "messages": [],
38
- "meta": {
39
- "label": {
40
- "id": 1070002,
41
- "text": "E-Mail",
42
- "type": "info",
43
- "context": {
44
- "title": "E-Mail"
45
- }
46
- }
47
- }
48
- },
49
- {
50
- "type": "input",
51
- "group": "profile",
52
- "attributes": {
53
- "name": "traits.tos",
54
- "type": "checkbox",
55
- "disabled": false,
56
- "node_type": "input"
57
- },
58
- "messages": [],
59
- "meta": {
60
- "label": {
61
- "id": 1070002,
62
- "text": "Accept the terms of service",
63
- "type": "info",
64
- "context": {
65
- "title": "Accept the terms of service"
66
- }
67
- }
68
- }
69
- },
70
- {
71
- "type": "input",
72
- "group": "profile",
73
- "attributes": {
74
- "name": "traits.phone",
75
- "type": "text",
76
- "disabled": false,
77
- "node_type": "input"
78
- },
79
- "messages": [],
80
- "meta": {
81
- "label": {
82
- "id": 1070002,
83
- "text": "Phone Number",
84
- "type": "info",
85
- "context": {
86
- "title": "Phone Number"
87
- }
88
- }
89
- }
90
- },
91
- {
92
- "type": "input",
93
- "group": "profile",
94
- "attributes": {
95
- "name": "traits.nested.name",
96
- "type": "text",
97
- "disabled": false,
98
- "node_type": "input"
99
- },
100
- "messages": [],
101
- "meta": {
102
- "label": {
103
- "id": 1070002,
104
- "text": "Name",
105
- "type": "info",
106
- "context": {
107
- "title": "Name"
108
- }
109
- }
110
- }
111
- },
112
- {
113
- "type": "input",
114
- "group": "profile",
115
- "attributes": {
116
- "name": "method",
117
- "type": "submit",
118
- "value": "profile",
119
- "disabled": false,
120
- "node_type": "input"
121
- },
122
- "messages": [],
123
- "meta": {
124
- "label": {
125
- "id": 1070003,
126
- "text": "Save",
127
- "type": "info"
128
- }
129
- }
130
- },
131
- {
132
- "type": "input",
133
- "group": "webauthn",
134
- "attributes": {
135
- "name": "webauthn_remove",
136
- "type": "submit",
137
- "value": "20520f3fd103c796ab8047412a2c2a84405fd6b18ea8458b5ef4c30934fe107c",
138
- "disabled": true,
139
- "node_type": "input"
140
- },
141
- "messages": [],
142
- "meta": {
143
- "label": {
144
- "id": 1050018,
145
- "text": "Remove security key \"unnamed\"",
146
- "type": "info",
147
- "context": {
148
- "added_at": "2024-10-29T09:45:47Z",
149
- "added_at_unix": 1730195147,
150
- "display_name": "unnamed"
151
- }
152
- }
153
- }
154
- },
155
- {
156
- "type": "input",
157
- "group": "webauthn",
158
- "attributes": {
159
- "name": "webauthn_register_displayname",
160
- "type": "text",
161
- "value": "",
162
- "disabled": false,
163
- "node_type": "input"
164
- },
165
- "messages": [],
166
- "meta": {
167
- "label": {
168
- "id": 1050013,
169
- "text": "Name of the security key",
170
- "type": "info"
171
- }
172
- }
173
- },
174
- {
175
- "type": "input",
176
- "group": "webauthn",
177
- "attributes": {
178
- "name": "webauthn_register",
179
- "type": "hidden",
180
- "value": "",
181
- "disabled": false,
182
- "node_type": "input"
183
- },
184
- "messages": [],
185
- "meta": {}
186
- },
187
- {
188
- "type": "input",
189
- "group": "webauthn",
190
- "attributes": {
191
- "name": "webauthn_register_trigger",
192
- "type": "button",
193
- "value": "{\"publicKey\":{\"rp\":{\"name\":\"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-Inm4ptsTsi1lsamq-2-tests/elements/webauthn.spec.ts\\u003eGenerate webauthn API responses for Ory Elements Storybook\\u003ewebauthn states\",\"id\":\"romantic-tu-rf98ru5rql.projects.oryapis\"},\"user\":{\"name\":\"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-Inm4ptsTsi1lsamq-2-tests/elements/webauthn.spec.ts\\u003eGenerate webauthn API responses for Ory Elements Storybook\\u003ewebauthn states\",\"displayName\":\"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-Inm4ptsTsi1lsamq-2-tests/elements/webauthn.spec.ts\\u003eGenerate webauthn API responses for Ory Elements Storybook\\u003ewebauthn states\",\"id\":\"hQzis_PrSXypRp3ut_GBjA\"},\"challenge\":\"8rDRfhrywkkApRhiRXpxmiuwqMsZObncWX7LdzkXaWY\",\"pubKeyCredParams\":[{\"type\":\"public-key\",\"alg\":-7},{\"type\":\"public-key\",\"alg\":-35},{\"type\":\"public-key\",\"alg\":-36},{\"type\":\"public-key\",\"alg\":-257},{\"type\":\"public-key\",\"alg\":-258},{\"type\":\"public-key\",\"alg\":-259},{\"type\":\"public-key\",\"alg\":-37},{\"type\":\"public-key\",\"alg\":-38},{\"type\":\"public-key\",\"alg\":-39},{\"type\":\"public-key\",\"alg\":-8}],\"timeout\":120000,\"authenticatorSelection\":{\"requireResidentKey\":false,\"userVerification\":\"discouraged\"}}}",
194
- "disabled": false,
195
- "onclick": "window.oryWebAuthnRegistration({\"publicKey\":{\"rp\":{\"name\":\"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-Inm4ptsTsi1lsamq-2-tests/elements/webauthn.spec.ts\\u003eGenerate webauthn API responses for Ory Elements Storybook\\u003ewebauthn states\",\"id\":\"romantic-tu-rf98ru5rql.projects.oryapis\"},\"user\":{\"name\":\"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-Inm4ptsTsi1lsamq-2-tests/elements/webauthn.spec.ts\\u003eGenerate webauthn API responses for Ory Elements Storybook\\u003ewebauthn states\",\"displayName\":\"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-Inm4ptsTsi1lsamq-2-tests/elements/webauthn.spec.ts\\u003eGenerate webauthn API responses for Ory Elements Storybook\\u003ewebauthn states\",\"id\":\"hQzis_PrSXypRp3ut_GBjA\"},\"challenge\":\"8rDRfhrywkkApRhiRXpxmiuwqMsZObncWX7LdzkXaWY\",\"pubKeyCredParams\":[{\"type\":\"public-key\",\"alg\":-7},{\"type\":\"public-key\",\"alg\":-35},{\"type\":\"public-key\",\"alg\":-36},{\"type\":\"public-key\",\"alg\":-257},{\"type\":\"public-key\",\"alg\":-258},{\"type\":\"public-key\",\"alg\":-259},{\"type\":\"public-key\",\"alg\":-37},{\"type\":\"public-key\",\"alg\":-38},{\"type\":\"public-key\",\"alg\":-39},{\"type\":\"public-key\",\"alg\":-8}],\"timeout\":120000,\"authenticatorSelection\":{\"requireResidentKey\":false,\"userVerification\":\"discouraged\"}}})",
196
- "onclickTrigger": "oryWebAuthnRegistration",
197
- "node_type": "input"
198
- },
199
- "messages": [],
200
- "meta": {
201
- "label": {
202
- "id": 1050012,
203
- "text": "Add security key",
204
- "type": "info"
205
- }
206
- }
207
- },
208
- {
209
- "type": "script",
210
- "group": "webauthn",
211
- "attributes": {
212
- "src": "https://romantic-tu-rf98ru5rql.projects.oryapis:8080/.well-known/ory/webauthn.js",
213
- "async": true,
214
- "referrerpolicy": "no-referrer",
215
- "crossorigin": "anonymous",
216
- "integrity": "sha512-MDzBlwh32rr+eus2Yf1BetIj94m+ULLbewYDulbZjczycs81klNed+qQWG2yi2N03KV5uZlRJJtWdV2x9JNHzQ==",
217
- "type": "text/javascript",
218
- "id": "webauthn_script",
219
- "nonce": "b15ab75b-973e-4f2f-a16c-afd3e9219b45",
220
- "node_type": "script"
221
- },
222
- "messages": [],
223
- "meta": {}
224
- }
225
- ]
226
- },
227
- "identity": {
228
- "id": "850ce2b3-f3eb-497c-a946-9deeb7f1818c",
229
- "schema_id": "3295c9e92d19a78b10bfa45d7619eedcfb7d7ea4c2e8f163a21613da0ae6d4179f47fb58d1c23060f11126585f380ee9a9ce9a1d451f4b4de9ef33cc93ca763f",
230
- "schema_url": "https://romantic-tu-rf98ru5rql.projects.oryapis:8080/schemas/MzI5NWM5ZTkyZDE5YTc4YjEwYmZhNDVkNzYxOWVlZGNmYjdkN2VhNGMyZThmMTYzYTIxNjEzZGEwYWU2ZDQxNzlmNDdmYjU4ZDFjMjMwNjBmMTExMjY1ODVmMzgwZWU5YTljZTlhMWQ0NTFmNGI0ZGU5ZWYzM2NjOTNjYTc2M2Y",
231
- "state": "active",
232
- "state_changed_at": "2024-10-29T09:45:47.097812Z",
233
- "traits": {
234
- "email": "dev+orycye2eda2f162daf6142dd0.nqwe2lavry0.f4h5y029idj@ory.dev",
235
- "nested": {}
236
- },
237
- "verifiable_addresses": [
238
- {
239
- "id": "cacbe442-fb85-4180-aff9-7b36a565bb7c",
240
- "value": "dev+orycye2eda2f162daf6142dd0.nqwe2lavry0.f4h5y029idj@ory.dev",
241
- "verified": false,
242
- "via": "email",
243
- "status": "sent",
244
- "created_at": "2024-10-29T09:45:47.104222Z",
245
- "updated_at": "2024-10-29T09:45:47.104222Z"
246
- }
247
- ],
248
- "recovery_addresses": [
249
- {
250
- "id": "f3401149-fb92-44d8-90f4-83cf7e2323cd",
251
- "value": "dev+orycye2eda2f162daf6142dd0.nqwe2lavry0.f4h5y029idj@ory.dev",
252
- "via": "email",
253
- "created_at": "2024-10-29T09:45:47.228338Z",
254
- "updated_at": "2024-10-29T09:45:47.228338Z"
255
- }
256
- ],
257
- "metadata_public": null,
258
- "created_at": "2024-10-29T09:45:47.099762Z",
259
- "updated_at": "2024-10-29T09:45:47.099762Z",
260
- "organization_id": null
261
- },
262
- "state": "show_form"
263
- }
@@ -1,9 +0,0 @@
1
- {
2
- "error": {
3
- "code": 400,
4
- "status": "Bad Request",
5
- "request": "2c6924c2-58d2-9660-861d-ca7f02405c7a",
6
- "reason": "Verification is not allowed because it was disabled.",
7
- "message": "The request was malformed or contained invalid parameters"
8
- }
9
- }
@@ -1,9 +0,0 @@
1
- {
2
- "error": {
3
- "code": 400,
4
- "status": "Bad Request",
5
- "request": "97508194-d067-969e-80ce-b9d19b88664c",
6
- "reason": "The active verification strategy code is not enabled. Please enable it in the configuration.",
7
- "message": "The request was malformed or contained invalid parameters"
8
- }
9
- }
@@ -1,46 +0,0 @@
1
- // Copyright © 2024 Ory Corp
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- import { LoginFlowFromJSON } from "@ory/client-fetch"
5
- import type { Meta, StoryObj } from "@storybook/react"
6
- import { config } from "../../../utils"
7
- import { Login } from "../../../../src/theme/default"
8
-
9
- const meta = {
10
- title: "Ory Elements/First Factor Login/Methods/Everything",
11
- component: Login,
12
- parameters: {
13
- layout: "centered",
14
- },
15
- } satisfies Meta<typeof Login>
16
-
17
- export default meta
18
-
19
- type Story = StoryObj<typeof meta>
20
-
21
- export const ShowForm: Story = {
22
- args: {
23
- flow: LoginFlowFromJSON(
24
- require("$snapshots/login/1fa/all-methods/initial-form.json"),
25
- ),
26
- config,
27
- },
28
- }
29
-
30
- export const ValidationMissingFields: Story = {
31
- args: {
32
- flow: LoginFlowFromJSON(
33
- require("$snapshots/login/1fa/all-methods/missing-email.json"),
34
- ),
35
- config,
36
- },
37
- }
38
-
39
- export const ValidationIncorrectCredentials: Story = {
40
- args: {
41
- flow: LoginFlowFromJSON(
42
- require("$snapshots/login/1fa/all-methods/wrong-credentials.json"),
43
- ),
44
- config,
45
- },
46
- }
@@ -1,64 +0,0 @@
1
- // Copyright © 2024 Ory Corp
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- import { LoginFlowFromJSON } from "@ory/client-fetch"
5
- import type { Meta, StoryObj } from "@storybook/react"
6
- import { config } from "../../../utils"
7
- import { Login } from "../../../../src/theme/default"
8
-
9
- const meta = {
10
- title: "Ory Elements/First Factor Login/Methods/Code",
11
- component: Login,
12
- parameters: {
13
- layout: "centered",
14
- },
15
- } satisfies Meta<typeof Login>
16
-
17
- export default meta
18
-
19
- type Story = StoryObj<typeof meta>
20
-
21
- export const ShowForm: Story = {
22
- args: {
23
- flow: LoginFlowFromJSON(
24
- require("$snapshots/login/1fa/code/initial-form.json"),
25
- ),
26
- config,
27
- },
28
- }
29
-
30
- export const ValidationMissingFields: Story = {
31
- args: {
32
- flow: LoginFlowFromJSON(
33
- require("$snapshots/login/1fa/code/missing-email.json"),
34
- ),
35
- config,
36
- },
37
- }
38
-
39
- export const ValidationInvalidAccount: Story = {
40
- args: {
41
- flow: LoginFlowFromJSON(
42
- require("$snapshots/login/1fa/code/invalid-account.json"),
43
- ),
44
- config,
45
- },
46
- }
47
-
48
- export const CodeInput: Story = {
49
- args: {
50
- flow: LoginFlowFromJSON(
51
- require("$snapshots/login/1fa/code/code-input.json"),
52
- ),
53
- config,
54
- },
55
- }
56
-
57
- export const ValidationIncorrectCode: Story = {
58
- args: {
59
- flow: LoginFlowFromJSON(
60
- require("$snapshots/login/1fa/code/wrong-credentials.json"),
61
- ),
62
- config,
63
- },
64
- }