@ory/elements-react 1.0.0-next.16 → 1.0.0-next.18
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.
- package/CHANGELOG.md +44 -0
- package/api-report/elements-react-client.api.json +144 -16
- package/api-report/elements-react-client.api.md +19 -8
- package/api-report/elements-react-theme.api.json +197 -0
- package/api-report/elements-react-theme.api.md +17 -2
- package/api-report/elements-react.api.json +7 -3
- package/api-report/elements-react.api.md +4 -2
- package/api-report/temp/elements-react-client.api.md +33 -0
- package/api-report/temp/elements-react-theme.api.md +149 -0
- package/api-report/temp/elements-react.api.md +423 -0
- package/dist/client/config.d.mts +21 -0
- package/dist/client/config.d.ts +21 -0
- package/dist/client/config.js +77 -0
- package/dist/client/config.js.map +1 -0
- package/dist/client/config.mjs +51 -0
- package/dist/client/config.mjs.map +1 -0
- package/dist/client/frontendClient.d.mts +3 -1
- package/dist/client/frontendClient.d.ts +3 -1
- package/dist/client/frontendClient.js +14 -2
- package/dist/client/frontendClient.js.map +1 -1
- package/dist/client/frontendClient.mjs +14 -2
- package/dist/client/frontendClient.mjs.map +1 -1
- package/dist/client/index.d.mts +3 -1
- package/dist/client/index.d.ts +3 -1
- package/dist/client/index.js +4 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +5 -0
- package/dist/client/index.mjs.map +1 -1
- package/dist/client/session-provider.d.mts +62 -0
- package/dist/client/session-provider.d.ts +62 -0
- package/dist/client/session-provider.js +96 -0
- package/dist/client/session-provider.js.map +1 -0
- package/dist/client/session-provider.mjs +71 -0
- package/dist/client/session-provider.mjs.map +1 -0
- package/dist/client/useSession.d.mts +22 -31
- package/dist/client/useSession.d.ts +22 -31
- package/dist/client/useSession.js +7 -49
- package/dist/client/useSession.js.map +1 -1
- package/dist/client/useSession.mjs +8 -49
- package/dist/client/useSession.mjs.map +1 -1
- package/dist/index.d.mts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +148 -62
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +151 -65
- package/dist/index.mjs.map +1 -1
- package/dist/theme/default/index.css +358 -251
- package/dist/theme/default/index.css.map +1 -1
- package/dist/theme/default/index.d.mts +14 -3
- package/dist/theme/default/index.d.ts +14 -3
- package/dist/theme/default/index.js +932 -837
- package/dist/theme/default/index.js.map +1 -1
- package/dist/theme/default/index.mjs +815 -715
- package/dist/theme/default/index.mjs.map +1 -1
- package/jest.config.ts +7 -1
- package/package.json +2 -1
- package/postcss.config.ts +1 -0
- package/tailwind.config.ts +14 -13
- package/tsconfig.json +4 -3
- package/variables-processed.json +385 -187
- package/.eslintrc.js +0 -63
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,47 @@
|
|
|
1
|
+
## 1.0.0-next.18 (2024-12-30)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- add page and app router examples ([#307](https://github.com/ory/elements/pull/307))
|
|
6
|
+
- ⚠️ add getServerSession and SessionProvider ([#309](https://github.com/ory/elements/pull/309))
|
|
7
|
+
- add @ory/nextjs package ([#303](https://github.com/ory/elements/pull/303))
|
|
8
|
+
|
|
9
|
+
### 🩹 Fixes
|
|
10
|
+
|
|
11
|
+
- align font sizes to design & use updated variable names ([#318](https://github.com/ory/elements/pull/318))
|
|
12
|
+
- properly set default value for checkboxes ([#314](https://github.com/ory/elements/pull/314))
|
|
13
|
+
- passkey and webauthn in settings flow ([#317](https://github.com/ory/elements/pull/317))
|
|
14
|
+
|
|
15
|
+
### ⚠️ Breaking Changes
|
|
16
|
+
|
|
17
|
+
- ⚠️ add getServerSession and SessionProvider ([#309](https://github.com/ory/elements/pull/309))
|
|
18
|
+
|
|
19
|
+
### ❤️ Thank You
|
|
20
|
+
|
|
21
|
+
- hackerman @aeneasr
|
|
22
|
+
- Jonas Hungershausen
|
|
23
|
+
|
|
24
|
+
## 1.0.0-next.17 (2024-11-27)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### 🚀 Features
|
|
28
|
+
|
|
29
|
+
- allow overriding OIDC logos
|
|
30
|
+
|
|
31
|
+
- enable proper account linking flows
|
|
32
|
+
|
|
33
|
+
- **core:** add react-hook form resolver
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### 🩹 Fixes
|
|
37
|
+
|
|
38
|
+
- handle recovery brute force protection
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### ❤️ Thank You
|
|
42
|
+
|
|
43
|
+
- Jonas Hungershausen
|
|
44
|
+
|
|
1
45
|
## 1.0.0-next.16 (2024-11-26)
|
|
2
46
|
|
|
3
47
|
|
|
@@ -173,53 +173,181 @@
|
|
|
173
173
|
"preserveMemberOrder": false,
|
|
174
174
|
"members": [
|
|
175
175
|
{
|
|
176
|
-
"kind": "
|
|
177
|
-
"canonicalReference": "@ory/elements-react!
|
|
178
|
-
"docComment": "
|
|
176
|
+
"kind": "TypeAlias",
|
|
177
|
+
"canonicalReference": "@ory/elements-react!SessionContextData:type",
|
|
178
|
+
"docComment": "",
|
|
179
179
|
"excerptTokens": [
|
|
180
180
|
{
|
|
181
181
|
"kind": "Content",
|
|
182
|
-
"text": "
|
|
182
|
+
"text": "type SessionContextData = "
|
|
183
183
|
},
|
|
184
184
|
{
|
|
185
185
|
"kind": "Content",
|
|
186
|
-
"text": "{\n
|
|
186
|
+
"text": "{\n isLoading: boolean;\n initialized: boolean;\n session: "
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"kind": "Reference",
|
|
190
|
+
"text": "Session",
|
|
191
|
+
"canonicalReference": "@ory/client-fetch!Session:interface"
|
|
187
192
|
},
|
|
188
193
|
{
|
|
189
194
|
"kind": "Content",
|
|
190
|
-
"text": "
|
|
195
|
+
"text": " | null;\n error: "
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"kind": "Reference",
|
|
199
|
+
"text": "Error",
|
|
200
|
+
"canonicalReference": "!Error:interface"
|
|
191
201
|
},
|
|
192
202
|
{
|
|
193
203
|
"kind": "Content",
|
|
194
|
-
"text": "
|
|
204
|
+
"text": " | undefined;\n refetch: () => "
|
|
195
205
|
},
|
|
196
206
|
{
|
|
197
207
|
"kind": "Reference",
|
|
198
|
-
"text": "
|
|
199
|
-
"canonicalReference": "
|
|
208
|
+
"text": "Promise",
|
|
209
|
+
"canonicalReference": "!Promise:interface"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"kind": "Content",
|
|
213
|
+
"text": "<void>;\n}"
|
|
200
214
|
},
|
|
201
215
|
{
|
|
202
216
|
"kind": "Content",
|
|
203
|
-
"text": "
|
|
217
|
+
"text": ";"
|
|
204
218
|
}
|
|
205
219
|
],
|
|
206
|
-
"fileUrlPath": "dist/client/
|
|
220
|
+
"fileUrlPath": "dist/client/session-provider.d.ts",
|
|
221
|
+
"releaseTag": "Public",
|
|
222
|
+
"name": "SessionContextData",
|
|
223
|
+
"typeTokenRange": {
|
|
224
|
+
"startIndex": 1,
|
|
225
|
+
"endIndex": 8
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"kind": "Function",
|
|
230
|
+
"canonicalReference": "@ory/elements-react!SessionProvider:function(1)",
|
|
231
|
+
"docComment": "/**\n * A provider that fetches the session from the Ory Network and provides it to the children.\n *\n * To use this provider, wrap your application in it:\n * ```tsx\n * import { SessionProvider } from \"@ory/elements-react\"\n *\n * export default function App() {\n * return (\n * <SessionProvider>\n * <MyApp />\n * </SessionProvider>\n * )\n * }\n * ```\n *\n * If you have a session from the server, you can pass it to the provider:\n * ```tsx\n * <SessionProvider session={serverSession}>\n * ```\n *\n * @param props - The provider props\n *\n * @see\n *\n * {@link useSession}\n */\n",
|
|
232
|
+
"excerptTokens": [
|
|
233
|
+
{
|
|
234
|
+
"kind": "Content",
|
|
235
|
+
"text": "declare function SessionProvider({ "
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"kind": "Reference",
|
|
239
|
+
"text": "session",
|
|
240
|
+
"canonicalReference": "@ory/elements-react!~__type#session"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"kind": "Content",
|
|
244
|
+
"text": ": initialSession, children, baseUrl, }: "
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"kind": "Reference",
|
|
248
|
+
"text": "SessionProviderProps",
|
|
249
|
+
"canonicalReference": "@ory/elements-react!SessionProviderProps:type"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"kind": "Content",
|
|
253
|
+
"text": "): "
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"kind": "Reference",
|
|
257
|
+
"text": "react_jsx_runtime.JSX.Element",
|
|
258
|
+
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"kind": "Content",
|
|
262
|
+
"text": ";"
|
|
263
|
+
}
|
|
264
|
+
],
|
|
265
|
+
"fileUrlPath": "dist/client/session-provider.d.ts",
|
|
207
266
|
"returnTypeTokenRange": {
|
|
208
|
-
"startIndex":
|
|
267
|
+
"startIndex": 5,
|
|
209
268
|
"endIndex": 6
|
|
210
269
|
},
|
|
211
270
|
"releaseTag": "Public",
|
|
212
271
|
"overloadIndex": 1,
|
|
213
272
|
"parameters": [
|
|
214
273
|
{
|
|
215
|
-
"parameterName": "
|
|
274
|
+
"parameterName": "{ session: initialSession, children, baseUrl, }",
|
|
216
275
|
"parameterTypeTokenRange": {
|
|
217
|
-
"startIndex":
|
|
218
|
-
"endIndex":
|
|
276
|
+
"startIndex": 3,
|
|
277
|
+
"endIndex": 4
|
|
219
278
|
},
|
|
220
|
-
"isOptional":
|
|
279
|
+
"isOptional": false
|
|
280
|
+
}
|
|
281
|
+
],
|
|
282
|
+
"name": "SessionProvider"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"kind": "TypeAlias",
|
|
286
|
+
"canonicalReference": "@ory/elements-react!SessionProviderProps:type",
|
|
287
|
+
"docComment": "",
|
|
288
|
+
"excerptTokens": [
|
|
289
|
+
{
|
|
290
|
+
"kind": "Content",
|
|
291
|
+
"text": "type SessionProviderProps = "
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"kind": "Content",
|
|
295
|
+
"text": "{\n session?: "
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"kind": "Reference",
|
|
299
|
+
"text": "Session",
|
|
300
|
+
"canonicalReference": "@ory/client-fetch!Session:interface"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"kind": "Content",
|
|
304
|
+
"text": " | null;\n baseUrl?: string;\n} & "
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"kind": "Reference",
|
|
308
|
+
"text": "React.PropsWithChildren",
|
|
309
|
+
"canonicalReference": "@types/react!React.PropsWithChildren:type"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"kind": "Content",
|
|
313
|
+
"text": ";"
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
"fileUrlPath": "dist/client/session-provider.d.ts",
|
|
317
|
+
"releaseTag": "Public",
|
|
318
|
+
"name": "SessionProviderProps",
|
|
319
|
+
"typeTokenRange": {
|
|
320
|
+
"startIndex": 1,
|
|
321
|
+
"endIndex": 5
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"kind": "Function",
|
|
326
|
+
"canonicalReference": "@ory/elements-react!useSession:function(1)",
|
|
327
|
+
"docComment": "/**\n * A hook to get the current session from the Ory Network.\n *\n * Usage:\n * ```ts\n * const session = useSession()\n *\n * if (session.state == \"loading\") {\n * return <div>Loading...</div>\n * }\n *\n * if (session.state == \"authenticated\") {\n * return <div>Session: {session.session.id}</div>\n * }\n * ```\n *\n * :::note This is a client-side hook and must be used within a React component. On the server, you can use the getServerSession function from `@ory/nextjs` and hydrate SessionProvider with the session. :::\n *\n * @returns The current session, and error or loading state.\n */\n",
|
|
328
|
+
"excerptTokens": [
|
|
329
|
+
{
|
|
330
|
+
"kind": "Content",
|
|
331
|
+
"text": "declare function useSession(): "
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"kind": "Reference",
|
|
335
|
+
"text": "SessionContextData",
|
|
336
|
+
"canonicalReference": "@ory/elements-react!SessionContextData:type"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"kind": "Content",
|
|
340
|
+
"text": ";"
|
|
221
341
|
}
|
|
222
342
|
],
|
|
343
|
+
"fileUrlPath": "dist/client/useSession.d.ts",
|
|
344
|
+
"returnTypeTokenRange": {
|
|
345
|
+
"startIndex": 1,
|
|
346
|
+
"endIndex": 2
|
|
347
|
+
},
|
|
348
|
+
"releaseTag": "Public",
|
|
349
|
+
"overloadIndex": 1,
|
|
350
|
+
"parameters": [],
|
|
223
351
|
"name": "useSession"
|
|
224
352
|
}
|
|
225
353
|
]
|
|
@@ -4,19 +4,30 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
8
|
import { Session } from '@ory/client-fetch';
|
|
8
9
|
|
|
9
|
-
// @public
|
|
10
|
-
export
|
|
11
|
-
sdk: {
|
|
12
|
-
url: string;
|
|
13
|
-
};
|
|
14
|
-
}) => {
|
|
15
|
-
session: Session | undefined;
|
|
16
|
-
error: string | undefined;
|
|
10
|
+
// @public (undocumented)
|
|
11
|
+
export type SessionContextData = {
|
|
17
12
|
isLoading: boolean;
|
|
13
|
+
initialized: boolean;
|
|
14
|
+
session: Session | null;
|
|
15
|
+
error: Error | undefined;
|
|
16
|
+
refetch: () => Promise<void>;
|
|
18
17
|
};
|
|
19
18
|
|
|
19
|
+
// @public
|
|
20
|
+
export function SessionProvider({ session: initialSession, children, baseUrl, }: SessionProviderProps): react_jsx_runtime.JSX.Element;
|
|
21
|
+
|
|
22
|
+
// @public (undocumented)
|
|
23
|
+
export type SessionProviderProps = {
|
|
24
|
+
session?: Session | null;
|
|
25
|
+
baseUrl?: string;
|
|
26
|
+
} & React.PropsWithChildren;
|
|
27
|
+
|
|
28
|
+
// @public
|
|
29
|
+
export function useSession(): SessionContextData;
|
|
30
|
+
|
|
20
31
|
// (No @packageDocumentation comment for this package)
|
|
21
32
|
|
|
22
33
|
```
|
|
@@ -172,6 +172,156 @@
|
|
|
172
172
|
"name": "",
|
|
173
173
|
"preserveMemberOrder": false,
|
|
174
174
|
"members": [
|
|
175
|
+
{
|
|
176
|
+
"kind": "Function",
|
|
177
|
+
"canonicalReference": "@ory/elements-react!DefaultButtonSocial:function(1)",
|
|
178
|
+
"docComment": "",
|
|
179
|
+
"excerptTokens": [
|
|
180
|
+
{
|
|
181
|
+
"kind": "Content",
|
|
182
|
+
"text": "declare function DefaultButtonSocial({ attributes, node, onClick, "
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"kind": "Reference",
|
|
186
|
+
"text": "showLabel",
|
|
187
|
+
"canonicalReference": "@ory/elements-react!~__type#showLabel"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"kind": "Content",
|
|
191
|
+
"text": ": _showLabel, "
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"kind": "Reference",
|
|
195
|
+
"text": "logos",
|
|
196
|
+
"canonicalReference": "@ory/elements-react!~__type#logos"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"kind": "Content",
|
|
200
|
+
"text": ": providedLogos, }: "
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"kind": "Reference",
|
|
204
|
+
"text": "DefaultSocialButtonProps",
|
|
205
|
+
"canonicalReference": "@ory/elements-react!~DefaultSocialButtonProps:type"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"kind": "Content",
|
|
209
|
+
"text": "): "
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"kind": "Reference",
|
|
213
|
+
"text": "react_jsx_runtime.JSX.Element",
|
|
214
|
+
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"kind": "Content",
|
|
218
|
+
"text": ";"
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
"fileUrlPath": "dist/theme/default/index.d.ts",
|
|
222
|
+
"returnTypeTokenRange": {
|
|
223
|
+
"startIndex": 7,
|
|
224
|
+
"endIndex": 8
|
|
225
|
+
},
|
|
226
|
+
"releaseTag": "Public",
|
|
227
|
+
"overloadIndex": 1,
|
|
228
|
+
"parameters": [
|
|
229
|
+
{
|
|
230
|
+
"parameterName": "{ attributes, node, onClick, showLabel: _showLabel, logos: providedLogos, }",
|
|
231
|
+
"parameterTypeTokenRange": {
|
|
232
|
+
"startIndex": 5,
|
|
233
|
+
"endIndex": 6
|
|
234
|
+
},
|
|
235
|
+
"isOptional": false
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
"name": "DefaultButtonSocial"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"kind": "Namespace",
|
|
242
|
+
"canonicalReference": "@ory/elements-react!DefaultButtonSocial:namespace",
|
|
243
|
+
"docComment": "",
|
|
244
|
+
"excerptTokens": [
|
|
245
|
+
{
|
|
246
|
+
"kind": "Content",
|
|
247
|
+
"text": "declare namespace DefaultButtonSocial "
|
|
248
|
+
}
|
|
249
|
+
],
|
|
250
|
+
"fileUrlPath": "dist/theme/default/index.d.ts",
|
|
251
|
+
"releaseTag": "Public",
|
|
252
|
+
"name": "DefaultButtonSocial",
|
|
253
|
+
"preserveMemberOrder": false,
|
|
254
|
+
"members": [
|
|
255
|
+
{
|
|
256
|
+
"kind": "Function",
|
|
257
|
+
"canonicalReference": "@ory/elements-react!DefaultButtonSocial.WithLogos:function(1)",
|
|
258
|
+
"docComment": "",
|
|
259
|
+
"excerptTokens": [
|
|
260
|
+
{
|
|
261
|
+
"kind": "Content",
|
|
262
|
+
"text": "WithLogos: (logos: "
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"kind": "Reference",
|
|
266
|
+
"text": "Record",
|
|
267
|
+
"canonicalReference": "!Record:type"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"kind": "Content",
|
|
271
|
+
"text": "<string, "
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"kind": "Reference",
|
|
275
|
+
"text": "ElementType",
|
|
276
|
+
"canonicalReference": "@types/react!React.ElementType:type"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"kind": "Content",
|
|
280
|
+
"text": ">"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"kind": "Content",
|
|
284
|
+
"text": ") => "
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"kind": "Content",
|
|
288
|
+
"text": "(props: "
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"kind": "Reference",
|
|
292
|
+
"text": "DefaultSocialButtonProps",
|
|
293
|
+
"canonicalReference": "@ory/elements-react!~DefaultSocialButtonProps:type"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"kind": "Content",
|
|
297
|
+
"text": ") => "
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"kind": "Reference",
|
|
301
|
+
"text": "react_jsx_runtime.JSX.Element",
|
|
302
|
+
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
303
|
+
}
|
|
304
|
+
],
|
|
305
|
+
"returnTypeTokenRange": {
|
|
306
|
+
"startIndex": 6,
|
|
307
|
+
"endIndex": 10
|
|
308
|
+
},
|
|
309
|
+
"releaseTag": "Public",
|
|
310
|
+
"overloadIndex": 1,
|
|
311
|
+
"parameters": [
|
|
312
|
+
{
|
|
313
|
+
"parameterName": "logos",
|
|
314
|
+
"parameterTypeTokenRange": {
|
|
315
|
+
"startIndex": 1,
|
|
316
|
+
"endIndex": 5
|
|
317
|
+
},
|
|
318
|
+
"isOptional": false
|
|
319
|
+
}
|
|
320
|
+
],
|
|
321
|
+
"name": "WithLogos"
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
},
|
|
175
325
|
{
|
|
176
326
|
"kind": "Function",
|
|
177
327
|
"canonicalReference": "@ory/elements-react!DefaultCard:function(1)",
|
|
@@ -328,6 +478,53 @@
|
|
|
328
478
|
"parameters": [],
|
|
329
479
|
"name": "DefaultCardHeader"
|
|
330
480
|
},
|
|
481
|
+
{
|
|
482
|
+
"kind": "Function",
|
|
483
|
+
"canonicalReference": "@ory/elements-react!DefaultCardLayout:function(1)",
|
|
484
|
+
"docComment": "",
|
|
485
|
+
"excerptTokens": [
|
|
486
|
+
{
|
|
487
|
+
"kind": "Content",
|
|
488
|
+
"text": "declare function DefaultCardLayout({ children }: "
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"kind": "Reference",
|
|
492
|
+
"text": "PropsWithChildren",
|
|
493
|
+
"canonicalReference": "@types/react!React.PropsWithChildren:type"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"kind": "Content",
|
|
497
|
+
"text": "): "
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"kind": "Reference",
|
|
501
|
+
"text": "react_jsx_runtime.JSX.Element",
|
|
502
|
+
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"kind": "Content",
|
|
506
|
+
"text": ";"
|
|
507
|
+
}
|
|
508
|
+
],
|
|
509
|
+
"fileUrlPath": "dist/theme/default/index.d.ts",
|
|
510
|
+
"returnTypeTokenRange": {
|
|
511
|
+
"startIndex": 3,
|
|
512
|
+
"endIndex": 4
|
|
513
|
+
},
|
|
514
|
+
"releaseTag": "Public",
|
|
515
|
+
"overloadIndex": 1,
|
|
516
|
+
"parameters": [
|
|
517
|
+
{
|
|
518
|
+
"parameterName": "{ children }",
|
|
519
|
+
"parameterTypeTokenRange": {
|
|
520
|
+
"startIndex": 1,
|
|
521
|
+
"endIndex": 2
|
|
522
|
+
},
|
|
523
|
+
"isOptional": false
|
|
524
|
+
}
|
|
525
|
+
],
|
|
526
|
+
"name": "DefaultCardLayout"
|
|
527
|
+
},
|
|
331
528
|
{
|
|
332
529
|
"kind": "Function",
|
|
333
530
|
"canonicalReference": "@ory/elements-react!DefaultCardLogo:function(1)",
|
|
@@ -8,6 +8,7 @@ import { ComponentPropsWithoutRef } from 'react';
|
|
|
8
8
|
import { ComponentType } from 'react';
|
|
9
9
|
import { ConfigurationParameters } from '@ory/client-fetch';
|
|
10
10
|
import { DetailedHTMLProps } from 'react';
|
|
11
|
+
import { ElementType } from 'react';
|
|
11
12
|
import { FlowError } from '@ory/client-fetch';
|
|
12
13
|
import { FormEventHandler } from 'react';
|
|
13
14
|
import { HTMLAttributes } from 'react';
|
|
@@ -28,6 +29,17 @@ import { UiText } from '@ory/client-fetch';
|
|
|
28
29
|
import { VariantProps } from 'class-variance-authority';
|
|
29
30
|
import { VerificationFlow } from '@ory/client-fetch';
|
|
30
31
|
|
|
32
|
+
// Warning: (ae-forgotten-export) The symbol "DefaultSocialButtonProps" needs to be exported by the entry point index.d.ts
|
|
33
|
+
//
|
|
34
|
+
// @public (undocumented)
|
|
35
|
+
export function DefaultButtonSocial({ attributes, node, onClick, showLabel: _showLabel, logos: providedLogos, }: DefaultSocialButtonProps): react_jsx_runtime.JSX.Element;
|
|
36
|
+
|
|
37
|
+
// @public (undocumented)
|
|
38
|
+
export namespace DefaultButtonSocial {
|
|
39
|
+
var // (undocumented)
|
|
40
|
+
WithLogos: (logos: Record<string, ElementType>) => (props: DefaultSocialButtonProps) => react_jsx_runtime.JSX.Element;
|
|
41
|
+
}
|
|
42
|
+
|
|
31
43
|
// Warning: (ae-forgotten-export) The symbol "OryCardRootProps" needs to be exported by the entry point index.d.ts
|
|
32
44
|
//
|
|
33
45
|
// @public (undocumented)
|
|
@@ -44,6 +56,9 @@ export function DefaultCardFooter(): react_jsx_runtime.JSX.Element | null;
|
|
|
44
56
|
// @public (undocumented)
|
|
45
57
|
export function DefaultCardHeader(): react_jsx_runtime.JSX.Element;
|
|
46
58
|
|
|
59
|
+
// @public (undocumented)
|
|
60
|
+
export function DefaultCardLayout({ children }: PropsWithChildren): react_jsx_runtime.JSX.Element;
|
|
61
|
+
|
|
47
62
|
// @public (undocumented)
|
|
48
63
|
export function DefaultCardLogo(): react_jsx_runtime.JSX.Element;
|
|
49
64
|
|
|
@@ -126,8 +141,8 @@ export type VerificationFlowContextProps = {
|
|
|
126
141
|
|
|
127
142
|
// Warnings were encountered during analysis:
|
|
128
143
|
//
|
|
129
|
-
// dist/theme/default/index.d.ts:
|
|
130
|
-
// dist/theme/default/index.d.ts:
|
|
144
|
+
// dist/theme/default/index.d.ts:38:5 - (ae-forgotten-export) The symbol "OryFlowComponentOverrides" needs to be exported by the entry point index.d.ts
|
|
145
|
+
// dist/theme/default/index.d.ts:39:5 - (ae-forgotten-export) The symbol "OryClientConfiguration" needs to be exported by the entry point index.d.ts
|
|
131
146
|
|
|
132
147
|
// (No @packageDocumentation comment for this package)
|
|
133
148
|
|
|
@@ -1535,8 +1535,8 @@
|
|
|
1535
1535
|
},
|
|
1536
1536
|
{
|
|
1537
1537
|
"kind": "Reference",
|
|
1538
|
-
"text": "
|
|
1539
|
-
"canonicalReference": "@ory/elements-react!
|
|
1538
|
+
"text": "OryFormSectionFooterProps",
|
|
1539
|
+
"canonicalReference": "@ory/elements-react!OryFormSectionFooterProps:type"
|
|
1540
1540
|
},
|
|
1541
1541
|
{
|
|
1542
1542
|
"kind": "Content",
|
|
@@ -2308,6 +2308,10 @@
|
|
|
2308
2308
|
"text": "PropsWithChildren",
|
|
2309
2309
|
"canonicalReference": "@types/react!React.PropsWithChildren:type"
|
|
2310
2310
|
},
|
|
2311
|
+
{
|
|
2312
|
+
"kind": "Content",
|
|
2313
|
+
"text": "<{\n text?: string;\n}>"
|
|
2314
|
+
},
|
|
2311
2315
|
{
|
|
2312
2316
|
"kind": "Content",
|
|
2313
2317
|
"text": ";"
|
|
@@ -2318,7 +2322,7 @@
|
|
|
2318
2322
|
"name": "OryFormSectionFooterProps",
|
|
2319
2323
|
"typeTokenRange": {
|
|
2320
2324
|
"startIndex": 1,
|
|
2321
|
-
"endIndex":
|
|
2325
|
+
"endIndex": 3
|
|
2322
2326
|
}
|
|
2323
2327
|
},
|
|
2324
2328
|
{
|
|
@@ -191,7 +191,7 @@ export type OryFlowComponents = {
|
|
|
191
191
|
AuthMethodListItem: ComponentType<OryCardAuthMethodListItemProps>;
|
|
192
192
|
SettingsSection: ComponentType<OryFormSectionProps>;
|
|
193
193
|
SettingsSectionContent: ComponentType<OryFormSectionContentProps>;
|
|
194
|
-
SettingsSectionFooter: ComponentType<
|
|
194
|
+
SettingsSectionFooter: ComponentType<OryFormSectionFooterProps>;
|
|
195
195
|
};
|
|
196
196
|
Form: {
|
|
197
197
|
Root: ComponentType<OryFormRootProps>;
|
|
@@ -265,7 +265,9 @@ export type OryFormSectionContentProps = PropsWithChildren<{
|
|
|
265
265
|
}>;
|
|
266
266
|
|
|
267
267
|
// @public (undocumented)
|
|
268
|
-
export type OryFormSectionFooterProps = PropsWithChildren
|
|
268
|
+
export type OryFormSectionFooterProps = PropsWithChildren<{
|
|
269
|
+
text?: string;
|
|
270
|
+
}>;
|
|
269
271
|
|
|
270
272
|
// @public (undocumented)
|
|
271
273
|
export type OryFormSectionProps = PropsWithChildren<{
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
## API Report File for "@ory/elements-react"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
|
+
import { Session } from '@ory/client-fetch';
|
|
9
|
+
|
|
10
|
+
// @public (undocumented)
|
|
11
|
+
export type SessionContextData = {
|
|
12
|
+
isLoading: boolean;
|
|
13
|
+
initialized: boolean;
|
|
14
|
+
session: Session | null;
|
|
15
|
+
error: Error | undefined;
|
|
16
|
+
refetch: () => Promise<void>;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
// @public
|
|
20
|
+
export function SessionProvider({ session: initialSession, children, baseUrl, }: SessionProviderProps): react_jsx_runtime.JSX.Element;
|
|
21
|
+
|
|
22
|
+
// @public (undocumented)
|
|
23
|
+
export type SessionProviderProps = {
|
|
24
|
+
session?: Session | null;
|
|
25
|
+
baseUrl?: string;
|
|
26
|
+
} & React.PropsWithChildren;
|
|
27
|
+
|
|
28
|
+
// @public
|
|
29
|
+
export function useSession(): SessionContextData;
|
|
30
|
+
|
|
31
|
+
// (No @packageDocumentation comment for this package)
|
|
32
|
+
|
|
33
|
+
```
|