@ory/elements-react 1.0.0-next.18 → 1.0.0-next.19
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 +10 -0
- package/api-report/elements-react.api.json +78 -20
- package/api-report/elements-react.api.md +33 -14
- package/api-report/temp/elements-react.api.md +33 -14
- package/dist/index.d.mts +31 -15
- package/dist/index.d.ts +31 -15
- package/dist/index.js +535 -376
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +536 -377
- package/dist/index.mjs.map +1 -1
- package/dist/theme/default/index.css +39 -12
- package/dist/theme/default/index.css.map +1 -1
- package/dist/theme/default/index.js +176 -110
- package/dist/theme/default/index.js.map +1 -1
- package/dist/theme/default/index.mjs +179 -113
- package/dist/theme/default/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1043,6 +1043,55 @@
|
|
|
1043
1043
|
"endIndex": 2
|
|
1044
1044
|
}
|
|
1045
1045
|
},
|
|
1046
|
+
{
|
|
1047
|
+
"kind": "TypeAlias",
|
|
1048
|
+
"canonicalReference": "@ory/elements-react!OryCardSettingsSectionProps:type",
|
|
1049
|
+
"docComment": "",
|
|
1050
|
+
"excerptTokens": [
|
|
1051
|
+
{
|
|
1052
|
+
"kind": "Content",
|
|
1053
|
+
"text": "type OryCardSettingsSectionProps = "
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"kind": "Reference",
|
|
1057
|
+
"text": "PropsWithChildren",
|
|
1058
|
+
"canonicalReference": "@types/react!React.PropsWithChildren:type"
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
"kind": "Content",
|
|
1062
|
+
"text": " & {\n action: string;\n method: string;\n onSubmit: "
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
"kind": "Reference",
|
|
1066
|
+
"text": "FormEventHandler",
|
|
1067
|
+
"canonicalReference": "@types/react!React.FormEventHandler:type"
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
"kind": "Content",
|
|
1071
|
+
"text": "<"
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
"kind": "Reference",
|
|
1075
|
+
"text": "HTMLFormElement",
|
|
1076
|
+
"canonicalReference": "!HTMLFormElement:interface"
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
"kind": "Content",
|
|
1080
|
+
"text": ">;\n}"
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
"kind": "Content",
|
|
1084
|
+
"text": ";"
|
|
1085
|
+
}
|
|
1086
|
+
],
|
|
1087
|
+
"fileUrlPath": "dist/index.d.ts",
|
|
1088
|
+
"releaseTag": "Public",
|
|
1089
|
+
"name": "OryCardSettingsSectionProps",
|
|
1090
|
+
"typeTokenRange": {
|
|
1091
|
+
"startIndex": 1,
|
|
1092
|
+
"endIndex": 7
|
|
1093
|
+
}
|
|
1094
|
+
},
|
|
1046
1095
|
{
|
|
1047
1096
|
"kind": "Function",
|
|
1048
1097
|
"canonicalReference": "@ory/elements-react!OryCardValidationMessages:function(1)",
|
|
@@ -1499,8 +1548,8 @@
|
|
|
1499
1548
|
},
|
|
1500
1549
|
{
|
|
1501
1550
|
"kind": "Reference",
|
|
1502
|
-
"text": "
|
|
1503
|
-
"canonicalReference": "@ory/elements-react!
|
|
1551
|
+
"text": "OryCardSettingsSectionProps",
|
|
1552
|
+
"canonicalReference": "@ory/elements-react!OryCardSettingsSectionProps:type"
|
|
1504
1553
|
},
|
|
1505
1554
|
{
|
|
1506
1555
|
"kind": "Content",
|
|
@@ -2223,7 +2272,7 @@
|
|
|
2223
2272
|
"excerptTokens": [
|
|
2224
2273
|
{
|
|
2225
2274
|
"kind": "Content",
|
|
2226
|
-
"text": "declare function OryFormSection({ children, nodes }: "
|
|
2275
|
+
"text": "declare function OryFormSection({ children, nodes, ...rest }: "
|
|
2227
2276
|
},
|
|
2228
2277
|
{
|
|
2229
2278
|
"kind": "Reference",
|
|
@@ -2253,7 +2302,7 @@
|
|
|
2253
2302
|
"overloadIndex": 1,
|
|
2254
2303
|
"parameters": [
|
|
2255
2304
|
{
|
|
2256
|
-
"parameterName": "{ children, nodes }",
|
|
2305
|
+
"parameterName": "{ children, nodes, ...rest }",
|
|
2257
2306
|
"parameterTypeTokenRange": {
|
|
2258
2307
|
"startIndex": 1,
|
|
2259
2308
|
"endIndex": 2
|
|
@@ -2341,7 +2390,16 @@
|
|
|
2341
2390
|
},
|
|
2342
2391
|
{
|
|
2343
2392
|
"kind": "Content",
|
|
2344
|
-
"text": "<
|
|
2393
|
+
"text": "<"
|
|
2394
|
+
},
|
|
2395
|
+
{
|
|
2396
|
+
"kind": "Reference",
|
|
2397
|
+
"text": "OryFormProps$1",
|
|
2398
|
+
"canonicalReference": "@ory/elements-react!~OryFormProps$1:type"
|
|
2399
|
+
},
|
|
2400
|
+
{
|
|
2401
|
+
"kind": "Content",
|
|
2402
|
+
"text": " & {\n nodes?: "
|
|
2345
2403
|
},
|
|
2346
2404
|
{
|
|
2347
2405
|
"kind": "Reference",
|
|
@@ -2362,7 +2420,7 @@
|
|
|
2362
2420
|
"name": "OryFormSectionProps",
|
|
2363
2421
|
"typeTokenRange": {
|
|
2364
2422
|
"startIndex": 1,
|
|
2365
|
-
"endIndex":
|
|
2423
|
+
"endIndex": 7
|
|
2366
2424
|
}
|
|
2367
2425
|
},
|
|
2368
2426
|
{
|
|
@@ -3058,7 +3116,7 @@
|
|
|
3058
3116
|
},
|
|
3059
3117
|
{
|
|
3060
3118
|
"kind": "Content",
|
|
3061
|
-
"text": "{\n linkButtons: "
|
|
3119
|
+
"text": "{\n linkButtons: ("
|
|
3062
3120
|
},
|
|
3063
3121
|
{
|
|
3064
3122
|
"kind": "Reference",
|
|
@@ -3067,7 +3125,7 @@
|
|
|
3067
3125
|
},
|
|
3068
3126
|
{
|
|
3069
3127
|
"kind": "Content",
|
|
3070
|
-
"text": "[];\n unlinkButtons: "
|
|
3128
|
+
"text": " & {\n onClick: () => void;\n })[];\n unlinkButtons: ("
|
|
3071
3129
|
},
|
|
3072
3130
|
{
|
|
3073
3131
|
"kind": "Reference",
|
|
@@ -3076,7 +3134,7 @@
|
|
|
3076
3134
|
},
|
|
3077
3135
|
{
|
|
3078
3136
|
"kind": "Content",
|
|
3079
|
-
"text": "[];\n}"
|
|
3137
|
+
"text": " & {\n onClick: () => void;\n })[];\n}"
|
|
3080
3138
|
},
|
|
3081
3139
|
{
|
|
3082
3140
|
"kind": "Content",
|
|
@@ -3111,7 +3169,7 @@
|
|
|
3111
3169
|
},
|
|
3112
3170
|
{
|
|
3113
3171
|
"kind": "Content",
|
|
3114
|
-
"text": " & {\n onClick: () => void;\n };\n removeButtons: "
|
|
3172
|
+
"text": " & {\n onClick: () => void;\n };\n removeButtons: ("
|
|
3115
3173
|
},
|
|
3116
3174
|
{
|
|
3117
3175
|
"kind": "Reference",
|
|
@@ -3120,7 +3178,7 @@
|
|
|
3120
3178
|
},
|
|
3121
3179
|
{
|
|
3122
3180
|
"kind": "Content",
|
|
3123
|
-
"text": "[];\n}"
|
|
3181
|
+
"text": " & {\n onClick: () => void;\n })[];\n}"
|
|
3124
3182
|
},
|
|
3125
3183
|
{
|
|
3126
3184
|
"kind": "Content",
|
|
@@ -3146,7 +3204,7 @@
|
|
|
3146
3204
|
},
|
|
3147
3205
|
{
|
|
3148
3206
|
"kind": "Content",
|
|
3149
|
-
"text": "{\n codes: string[];\n regnerateButton
|
|
3207
|
+
"text": "{\n codes: string[];\n regnerateButton: "
|
|
3150
3208
|
},
|
|
3151
3209
|
{
|
|
3152
3210
|
"kind": "Reference",
|
|
@@ -3155,7 +3213,7 @@
|
|
|
3155
3213
|
},
|
|
3156
3214
|
{
|
|
3157
3215
|
"kind": "Content",
|
|
3158
|
-
"text": ";\n revealButton
|
|
3216
|
+
"text": " | undefined;\n revealButton: "
|
|
3159
3217
|
},
|
|
3160
3218
|
{
|
|
3161
3219
|
"kind": "Reference",
|
|
@@ -3164,7 +3222,7 @@
|
|
|
3164
3222
|
},
|
|
3165
3223
|
{
|
|
3166
3224
|
"kind": "Content",
|
|
3167
|
-
"text": ";\n}"
|
|
3225
|
+
"text": " | undefined;\n onRegenerate: () => void;\n onReveal: () => void;\n}"
|
|
3168
3226
|
},
|
|
3169
3227
|
{
|
|
3170
3228
|
"kind": "Content",
|
|
@@ -3199,7 +3257,7 @@
|
|
|
3199
3257
|
},
|
|
3200
3258
|
{
|
|
3201
3259
|
"kind": "Content",
|
|
3202
|
-
"text": ";\n totpSecret: "
|
|
3260
|
+
"text": " | undefined;\n totpSecret: "
|
|
3203
3261
|
},
|
|
3204
3262
|
{
|
|
3205
3263
|
"kind": "Reference",
|
|
@@ -3208,7 +3266,7 @@
|
|
|
3208
3266
|
},
|
|
3209
3267
|
{
|
|
3210
3268
|
"kind": "Content",
|
|
3211
|
-
"text": ";\n totpInput: "
|
|
3269
|
+
"text": " | undefined;\n totpInput: "
|
|
3212
3270
|
},
|
|
3213
3271
|
{
|
|
3214
3272
|
"kind": "Reference",
|
|
@@ -3217,7 +3275,7 @@
|
|
|
3217
3275
|
},
|
|
3218
3276
|
{
|
|
3219
3277
|
"kind": "Content",
|
|
3220
|
-
"text": "
|
|
3278
|
+
"text": " | undefined;\n totpUnlink: "
|
|
3221
3279
|
},
|
|
3222
3280
|
{
|
|
3223
3281
|
"kind": "Reference",
|
|
@@ -3226,7 +3284,7 @@
|
|
|
3226
3284
|
},
|
|
3227
3285
|
{
|
|
3228
3286
|
"kind": "Content",
|
|
3229
|
-
"text": ";\n}"
|
|
3287
|
+
"text": " | undefined;\n onUnlink: () => void;\n}"
|
|
3230
3288
|
},
|
|
3231
3289
|
{
|
|
3232
3290
|
"kind": "Content",
|
|
@@ -3270,7 +3328,7 @@
|
|
|
3270
3328
|
},
|
|
3271
3329
|
{
|
|
3272
3330
|
"kind": "Content",
|
|
3273
|
-
"text": " & {\n onClick: () => void;\n };\n removeButtons: "
|
|
3331
|
+
"text": " & {\n onClick: () => void;\n };\n removeButtons: ("
|
|
3274
3332
|
},
|
|
3275
3333
|
{
|
|
3276
3334
|
"kind": "Reference",
|
|
@@ -3279,7 +3337,7 @@
|
|
|
3279
3337
|
},
|
|
3280
3338
|
{
|
|
3281
3339
|
"kind": "Content",
|
|
3282
|
-
"text": "[];\n}"
|
|
3340
|
+
"text": " & {\n onClick: () => void;\n })[];\n}"
|
|
3283
3341
|
},
|
|
3284
3342
|
{
|
|
3285
3343
|
"kind": "Content",
|
|
@@ -138,6 +138,13 @@ export type OryCardLogoProps = Record<string, never>;
|
|
|
138
138
|
// @public (undocumented)
|
|
139
139
|
export type OryCardProps = PropsWithChildren;
|
|
140
140
|
|
|
141
|
+
// @public (undocumented)
|
|
142
|
+
export type OryCardSettingsSectionProps = PropsWithChildren & {
|
|
143
|
+
action: string;
|
|
144
|
+
method: string;
|
|
145
|
+
onSubmit: FormEventHandler<HTMLFormElement>;
|
|
146
|
+
};
|
|
147
|
+
|
|
141
148
|
// @public (undocumented)
|
|
142
149
|
export function OryCardValidationMessages({ ...props }: OryMessageRootProps): react_jsx_runtime.JSX.Element | null;
|
|
143
150
|
|
|
@@ -189,7 +196,7 @@ export type OryFlowComponents = {
|
|
|
189
196
|
Logo: ComponentType<OryCardLogoProps>;
|
|
190
197
|
Divider: ComponentType<OryCardDividerProps>;
|
|
191
198
|
AuthMethodListItem: ComponentType<OryCardAuthMethodListItemProps>;
|
|
192
|
-
SettingsSection: ComponentType<
|
|
199
|
+
SettingsSection: ComponentType<OryCardSettingsSectionProps>;
|
|
193
200
|
SettingsSectionContent: ComponentType<OryFormSectionContentProps>;
|
|
194
201
|
SettingsSectionFooter: ComponentType<OryFormSectionFooterProps>;
|
|
195
202
|
};
|
|
@@ -256,7 +263,7 @@ export type OryFormRootProps = ComponentPropsWithoutRef<"form"> & {
|
|
|
256
263
|
};
|
|
257
264
|
|
|
258
265
|
// @public (undocumented)
|
|
259
|
-
export function OryFormSection({ children, nodes }: OryFormSectionProps): react_jsx_runtime.JSX.Element;
|
|
266
|
+
export function OryFormSection({ children, nodes, ...rest }: OryFormSectionProps): react_jsx_runtime.JSX.Element;
|
|
260
267
|
|
|
261
268
|
// @public (undocumented)
|
|
262
269
|
export type OryFormSectionContentProps = PropsWithChildren<{
|
|
@@ -269,8 +276,10 @@ export type OryFormSectionFooterProps = PropsWithChildren<{
|
|
|
269
276
|
text?: string;
|
|
270
277
|
}>;
|
|
271
278
|
|
|
279
|
+
// Warning: (ae-forgotten-export) The symbol "OryFormProps$1" needs to be exported by the entry point index.d.ts
|
|
280
|
+
//
|
|
272
281
|
// @public (undocumented)
|
|
273
|
-
export type OryFormSectionProps = PropsWithChildren<{
|
|
282
|
+
export type OryFormSectionProps = PropsWithChildren<OryFormProps$1 & {
|
|
274
283
|
nodes?: UiNode[];
|
|
275
284
|
}>;
|
|
276
285
|
|
|
@@ -352,8 +361,12 @@ export function OrySettingsCard(): react_jsx_runtime.JSX.Element;
|
|
|
352
361
|
|
|
353
362
|
// @public (undocumented)
|
|
354
363
|
export type OrySettingsOidcProps = {
|
|
355
|
-
linkButtons: UiNode
|
|
356
|
-
|
|
364
|
+
linkButtons: (UiNode & {
|
|
365
|
+
onClick: () => void;
|
|
366
|
+
})[];
|
|
367
|
+
unlinkButtons: (UiNode & {
|
|
368
|
+
onClick: () => void;
|
|
369
|
+
})[];
|
|
357
370
|
};
|
|
358
371
|
|
|
359
372
|
// @public (undocumented)
|
|
@@ -361,23 +374,27 @@ export type OrySettingsPasskeyProps = {
|
|
|
361
374
|
triggerButton: UiNode & {
|
|
362
375
|
onClick: () => void;
|
|
363
376
|
};
|
|
364
|
-
removeButtons: UiNode
|
|
377
|
+
removeButtons: (UiNode & {
|
|
378
|
+
onClick: () => void;
|
|
379
|
+
})[];
|
|
365
380
|
};
|
|
366
381
|
|
|
367
382
|
// @public (undocumented)
|
|
368
383
|
export type OrySettingsRecoveryCodesProps = {
|
|
369
384
|
codes: string[];
|
|
370
|
-
regnerateButton
|
|
371
|
-
revealButton
|
|
385
|
+
regnerateButton: UiNode | undefined;
|
|
386
|
+
revealButton: UiNode | undefined;
|
|
387
|
+
onRegenerate: () => void;
|
|
388
|
+
onReveal: () => void;
|
|
372
389
|
};
|
|
373
390
|
|
|
374
391
|
// @public (undocumented)
|
|
375
392
|
export type OrySettingsTotpProps = {
|
|
376
|
-
totpImage: UiNode;
|
|
377
|
-
totpSecret: UiNode;
|
|
378
|
-
totpInput: UiNode;
|
|
379
|
-
|
|
380
|
-
|
|
393
|
+
totpImage: UiNode | undefined;
|
|
394
|
+
totpSecret: UiNode | undefined;
|
|
395
|
+
totpInput: UiNode | undefined;
|
|
396
|
+
totpUnlink: UiNode | undefined;
|
|
397
|
+
onUnlink: () => void;
|
|
381
398
|
};
|
|
382
399
|
|
|
383
400
|
// @public (undocumented)
|
|
@@ -386,7 +403,9 @@ export type OrySettingsWebauthnProps = {
|
|
|
386
403
|
triggerButton: UiNode & {
|
|
387
404
|
onClick: () => void;
|
|
388
405
|
};
|
|
389
|
-
removeButtons: UiNode
|
|
406
|
+
removeButtons: (UiNode & {
|
|
407
|
+
onClick: () => void;
|
|
408
|
+
})[];
|
|
390
409
|
};
|
|
391
410
|
|
|
392
411
|
// @public (undocumented)
|
|
@@ -138,6 +138,13 @@ export type OryCardLogoProps = Record<string, never>;
|
|
|
138
138
|
// @public (undocumented)
|
|
139
139
|
export type OryCardProps = PropsWithChildren;
|
|
140
140
|
|
|
141
|
+
// @public (undocumented)
|
|
142
|
+
export type OryCardSettingsSectionProps = PropsWithChildren & {
|
|
143
|
+
action: string;
|
|
144
|
+
method: string;
|
|
145
|
+
onSubmit: FormEventHandler<HTMLFormElement>;
|
|
146
|
+
};
|
|
147
|
+
|
|
141
148
|
// @public (undocumented)
|
|
142
149
|
export function OryCardValidationMessages({ ...props }: OryMessageRootProps): react_jsx_runtime.JSX.Element | null;
|
|
143
150
|
|
|
@@ -189,7 +196,7 @@ export type OryFlowComponents = {
|
|
|
189
196
|
Logo: ComponentType<OryCardLogoProps>;
|
|
190
197
|
Divider: ComponentType<OryCardDividerProps>;
|
|
191
198
|
AuthMethodListItem: ComponentType<OryCardAuthMethodListItemProps>;
|
|
192
|
-
SettingsSection: ComponentType<
|
|
199
|
+
SettingsSection: ComponentType<OryCardSettingsSectionProps>;
|
|
193
200
|
SettingsSectionContent: ComponentType<OryFormSectionContentProps>;
|
|
194
201
|
SettingsSectionFooter: ComponentType<OryFormSectionFooterProps>;
|
|
195
202
|
};
|
|
@@ -256,7 +263,7 @@ export type OryFormRootProps = ComponentPropsWithoutRef<"form"> & {
|
|
|
256
263
|
};
|
|
257
264
|
|
|
258
265
|
// @public (undocumented)
|
|
259
|
-
export function OryFormSection({ children, nodes }: OryFormSectionProps): react_jsx_runtime.JSX.Element;
|
|
266
|
+
export function OryFormSection({ children, nodes, ...rest }: OryFormSectionProps): react_jsx_runtime.JSX.Element;
|
|
260
267
|
|
|
261
268
|
// @public (undocumented)
|
|
262
269
|
export type OryFormSectionContentProps = PropsWithChildren<{
|
|
@@ -269,8 +276,10 @@ export type OryFormSectionFooterProps = PropsWithChildren<{
|
|
|
269
276
|
text?: string;
|
|
270
277
|
}>;
|
|
271
278
|
|
|
279
|
+
// Warning: (ae-forgotten-export) The symbol "OryFormProps$1" needs to be exported by the entry point index.d.ts
|
|
280
|
+
//
|
|
272
281
|
// @public (undocumented)
|
|
273
|
-
export type OryFormSectionProps = PropsWithChildren<{
|
|
282
|
+
export type OryFormSectionProps = PropsWithChildren<OryFormProps$1 & {
|
|
274
283
|
nodes?: UiNode[];
|
|
275
284
|
}>;
|
|
276
285
|
|
|
@@ -352,8 +361,12 @@ export function OrySettingsCard(): react_jsx_runtime.JSX.Element;
|
|
|
352
361
|
|
|
353
362
|
// @public (undocumented)
|
|
354
363
|
export type OrySettingsOidcProps = {
|
|
355
|
-
linkButtons: UiNode
|
|
356
|
-
|
|
364
|
+
linkButtons: (UiNode & {
|
|
365
|
+
onClick: () => void;
|
|
366
|
+
})[];
|
|
367
|
+
unlinkButtons: (UiNode & {
|
|
368
|
+
onClick: () => void;
|
|
369
|
+
})[];
|
|
357
370
|
};
|
|
358
371
|
|
|
359
372
|
// @public (undocumented)
|
|
@@ -361,23 +374,27 @@ export type OrySettingsPasskeyProps = {
|
|
|
361
374
|
triggerButton: UiNode & {
|
|
362
375
|
onClick: () => void;
|
|
363
376
|
};
|
|
364
|
-
removeButtons: UiNode
|
|
377
|
+
removeButtons: (UiNode & {
|
|
378
|
+
onClick: () => void;
|
|
379
|
+
})[];
|
|
365
380
|
};
|
|
366
381
|
|
|
367
382
|
// @public (undocumented)
|
|
368
383
|
export type OrySettingsRecoveryCodesProps = {
|
|
369
384
|
codes: string[];
|
|
370
|
-
regnerateButton
|
|
371
|
-
revealButton
|
|
385
|
+
regnerateButton: UiNode | undefined;
|
|
386
|
+
revealButton: UiNode | undefined;
|
|
387
|
+
onRegenerate: () => void;
|
|
388
|
+
onReveal: () => void;
|
|
372
389
|
};
|
|
373
390
|
|
|
374
391
|
// @public (undocumented)
|
|
375
392
|
export type OrySettingsTotpProps = {
|
|
376
|
-
totpImage: UiNode;
|
|
377
|
-
totpSecret: UiNode;
|
|
378
|
-
totpInput: UiNode;
|
|
379
|
-
|
|
380
|
-
|
|
393
|
+
totpImage: UiNode | undefined;
|
|
394
|
+
totpSecret: UiNode | undefined;
|
|
395
|
+
totpInput: UiNode | undefined;
|
|
396
|
+
totpUnlink: UiNode | undefined;
|
|
397
|
+
onUnlink: () => void;
|
|
381
398
|
};
|
|
382
399
|
|
|
383
400
|
// @public (undocumented)
|
|
@@ -386,7 +403,9 @@ export type OrySettingsWebauthnProps = {
|
|
|
386
403
|
triggerButton: UiNode & {
|
|
387
404
|
onClick: () => void;
|
|
388
405
|
};
|
|
389
|
-
removeButtons: UiNode
|
|
406
|
+
removeButtons: (UiNode & {
|
|
407
|
+
onClick: () => void;
|
|
408
|
+
})[];
|
|
390
409
|
};
|
|
391
410
|
|
|
392
411
|
// @public (undocumented)
|
package/dist/index.d.mts
CHANGED
|
@@ -120,32 +120,42 @@ declare function OrySettingsCard(): react_jsx_runtime.JSX.Element;
|
|
|
120
120
|
|
|
121
121
|
type OrySettingsRecoveryCodesProps = {
|
|
122
122
|
codes: string[];
|
|
123
|
-
regnerateButton
|
|
124
|
-
revealButton
|
|
123
|
+
regnerateButton: UiNode | undefined;
|
|
124
|
+
revealButton: UiNode | undefined;
|
|
125
|
+
onRegenerate: () => void;
|
|
126
|
+
onReveal: () => void;
|
|
125
127
|
};
|
|
126
128
|
type OrySettingsTotpProps = {
|
|
127
|
-
totpImage: UiNode;
|
|
128
|
-
totpSecret: UiNode;
|
|
129
|
-
totpInput: UiNode;
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
totpImage: UiNode | undefined;
|
|
130
|
+
totpSecret: UiNode | undefined;
|
|
131
|
+
totpInput: UiNode | undefined;
|
|
132
|
+
totpUnlink: UiNode | undefined;
|
|
133
|
+
onUnlink: () => void;
|
|
132
134
|
};
|
|
133
135
|
type OrySettingsOidcProps = {
|
|
134
|
-
linkButtons: UiNode
|
|
135
|
-
|
|
136
|
+
linkButtons: (UiNode & {
|
|
137
|
+
onClick: () => void;
|
|
138
|
+
})[];
|
|
139
|
+
unlinkButtons: (UiNode & {
|
|
140
|
+
onClick: () => void;
|
|
141
|
+
})[];
|
|
136
142
|
};
|
|
137
143
|
type OrySettingsWebauthnProps = {
|
|
138
144
|
nameInput: UiNode;
|
|
139
145
|
triggerButton: UiNode & {
|
|
140
146
|
onClick: () => void;
|
|
141
147
|
};
|
|
142
|
-
removeButtons: UiNode
|
|
148
|
+
removeButtons: (UiNode & {
|
|
149
|
+
onClick: () => void;
|
|
150
|
+
})[];
|
|
143
151
|
};
|
|
144
152
|
type OrySettingsPasskeyProps = {
|
|
145
153
|
triggerButton: UiNode & {
|
|
146
154
|
onClick: () => void;
|
|
147
155
|
};
|
|
148
|
-
removeButtons: UiNode
|
|
156
|
+
removeButtons: (UiNode & {
|
|
157
|
+
onClick: () => void;
|
|
158
|
+
})[];
|
|
149
159
|
};
|
|
150
160
|
|
|
151
161
|
type OryFormGroupsProps = PropsWithChildren<{
|
|
@@ -160,10 +170,16 @@ type OryMessageContentProps = {
|
|
|
160
170
|
type OryMessageRootProps = DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
161
171
|
declare function OryCardValidationMessages({ ...props }: OryMessageRootProps): react_jsx_runtime.JSX.Element | null;
|
|
162
172
|
|
|
163
|
-
type
|
|
173
|
+
type OryFormProps$1 = Omit<ComponentPropsWithoutRef<"form">, "action" | "method" | "onSubmit">;
|
|
174
|
+
type OryFormSectionProps = PropsWithChildren<OryFormProps$1 & {
|
|
164
175
|
nodes?: UiNode[];
|
|
165
176
|
}>;
|
|
166
|
-
|
|
177
|
+
type OryCardSettingsSectionProps = PropsWithChildren & {
|
|
178
|
+
action: string;
|
|
179
|
+
method: string;
|
|
180
|
+
onSubmit: FormEventHandler<HTMLFormElement>;
|
|
181
|
+
};
|
|
182
|
+
declare function OryFormSection({ children, nodes, ...rest }: OryFormSectionProps): react_jsx_runtime.JSX.Element;
|
|
167
183
|
|
|
168
184
|
type OryFormOidcButtonsProps = PropsWithChildren<{
|
|
169
185
|
hideDivider?: boolean;
|
|
@@ -259,7 +275,7 @@ type OryFlowComponents = {
|
|
|
259
275
|
/**
|
|
260
276
|
* The SettingsSection component is rendered around each section of the settings.
|
|
261
277
|
*/
|
|
262
|
-
SettingsSection: ComponentType<
|
|
278
|
+
SettingsSection: ComponentType<OryCardSettingsSectionProps>;
|
|
263
279
|
/**
|
|
264
280
|
* The SettingsSectionContent component is rendered around the content of each section of the settings.
|
|
265
281
|
*/
|
|
@@ -563,4 +579,4 @@ type OryProviderProps = {
|
|
|
563
579
|
} & OryFlowContainer & PropsWithChildren;
|
|
564
580
|
declare function OryProvider({ children, components: Components, ...oryFlowProps }: OryProviderProps): react_jsx_runtime.JSX.Element;
|
|
565
581
|
|
|
566
|
-
export { type ErrorFlowContainer, type FlowContainerSetter, type FlowContextValue, type FormState, type FormStateAction, type FormValues, HeadlessPageHeader, type IntlConfig, type LoginFlowContainer, type OnSubmitHandlerProps, OryCard, type OryCardAuthMethodListItemProps, OryCardContent, type OryCardContentProps, type OryCardDividerProps, OryCardFooter, type OryCardFooterProps, OryCardHeader, type OryCardHeaderProps, type OryCardLogoProps, type OryCardRootProps as OryCardProps, OryCardValidationMessages, type OryClientConfiguration, type OryFlowComponentOverrides, type OryFlowComponents, type OryFlowContainer, OryForm, OryFormGroupDivider, type OryFormGroupProps, OryFormGroups, type OryFormGroupsProps, OryFormOidcButtons, type OryFormOidcButtonsProps, type OryFormOidcRootProps, type OryFormProps, type OryFormRootProps, OryFormSection, type OryFormSectionContentProps, type OryFormSectionFooterProps, type OryFormSectionProps, OryFormSocialButtonsForm, locales as OryLocales, type OryMessageContentProps, type OryMessageRootProps, type OryNodeAnchorProps, type OryNodeButtonProps, type OryNodeImageProps, type OryNodeInputProps, type OryNodeLabelProps, type OryNodeOidcButtonProps, type OryNodeTextProps, type OryPageHeaderProps, OryProvider, type OryProviderProps, OrySettingsCard, type OrySettingsOidcProps, type OrySettingsPasskeyProps, type OrySettingsRecoveryCodesProps, type OrySettingsTotpProps, type OrySettingsWebauthnProps, OryTwoStepCard, type RecoveryFlowContainer, type RegistrationFlowContainer, type SettingsFlowContainer, type VerificationFlowContainer, messageTestId, uiTextToFormattedMessage, useComponents, useNodeSorter, useOryFlow };
|
|
582
|
+
export { type ErrorFlowContainer, type FlowContainerSetter, type FlowContextValue, type FormState, type FormStateAction, type FormValues, HeadlessPageHeader, type IntlConfig, type LoginFlowContainer, type OnSubmitHandlerProps, OryCard, type OryCardAuthMethodListItemProps, OryCardContent, type OryCardContentProps, type OryCardDividerProps, OryCardFooter, type OryCardFooterProps, OryCardHeader, type OryCardHeaderProps, type OryCardLogoProps, type OryCardRootProps as OryCardProps, type OryCardSettingsSectionProps, OryCardValidationMessages, type OryClientConfiguration, type OryFlowComponentOverrides, type OryFlowComponents, type OryFlowContainer, OryForm, OryFormGroupDivider, type OryFormGroupProps, OryFormGroups, type OryFormGroupsProps, OryFormOidcButtons, type OryFormOidcButtonsProps, type OryFormOidcRootProps, type OryFormProps, type OryFormRootProps, OryFormSection, type OryFormSectionContentProps, type OryFormSectionFooterProps, type OryFormSectionProps, OryFormSocialButtonsForm, locales as OryLocales, type OryMessageContentProps, type OryMessageRootProps, type OryNodeAnchorProps, type OryNodeButtonProps, type OryNodeImageProps, type OryNodeInputProps, type OryNodeLabelProps, type OryNodeOidcButtonProps, type OryNodeTextProps, type OryPageHeaderProps, OryProvider, type OryProviderProps, OrySettingsCard, type OrySettingsOidcProps, type OrySettingsPasskeyProps, type OrySettingsRecoveryCodesProps, type OrySettingsTotpProps, type OrySettingsWebauthnProps, OryTwoStepCard, type RecoveryFlowContainer, type RegistrationFlowContainer, type SettingsFlowContainer, type VerificationFlowContainer, messageTestId, uiTextToFormattedMessage, useComponents, useNodeSorter, useOryFlow };
|
package/dist/index.d.ts
CHANGED
|
@@ -120,32 +120,42 @@ declare function OrySettingsCard(): react_jsx_runtime.JSX.Element;
|
|
|
120
120
|
|
|
121
121
|
type OrySettingsRecoveryCodesProps = {
|
|
122
122
|
codes: string[];
|
|
123
|
-
regnerateButton
|
|
124
|
-
revealButton
|
|
123
|
+
regnerateButton: UiNode | undefined;
|
|
124
|
+
revealButton: UiNode | undefined;
|
|
125
|
+
onRegenerate: () => void;
|
|
126
|
+
onReveal: () => void;
|
|
125
127
|
};
|
|
126
128
|
type OrySettingsTotpProps = {
|
|
127
|
-
totpImage: UiNode;
|
|
128
|
-
totpSecret: UiNode;
|
|
129
|
-
totpInput: UiNode;
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
totpImage: UiNode | undefined;
|
|
130
|
+
totpSecret: UiNode | undefined;
|
|
131
|
+
totpInput: UiNode | undefined;
|
|
132
|
+
totpUnlink: UiNode | undefined;
|
|
133
|
+
onUnlink: () => void;
|
|
132
134
|
};
|
|
133
135
|
type OrySettingsOidcProps = {
|
|
134
|
-
linkButtons: UiNode
|
|
135
|
-
|
|
136
|
+
linkButtons: (UiNode & {
|
|
137
|
+
onClick: () => void;
|
|
138
|
+
})[];
|
|
139
|
+
unlinkButtons: (UiNode & {
|
|
140
|
+
onClick: () => void;
|
|
141
|
+
})[];
|
|
136
142
|
};
|
|
137
143
|
type OrySettingsWebauthnProps = {
|
|
138
144
|
nameInput: UiNode;
|
|
139
145
|
triggerButton: UiNode & {
|
|
140
146
|
onClick: () => void;
|
|
141
147
|
};
|
|
142
|
-
removeButtons: UiNode
|
|
148
|
+
removeButtons: (UiNode & {
|
|
149
|
+
onClick: () => void;
|
|
150
|
+
})[];
|
|
143
151
|
};
|
|
144
152
|
type OrySettingsPasskeyProps = {
|
|
145
153
|
triggerButton: UiNode & {
|
|
146
154
|
onClick: () => void;
|
|
147
155
|
};
|
|
148
|
-
removeButtons: UiNode
|
|
156
|
+
removeButtons: (UiNode & {
|
|
157
|
+
onClick: () => void;
|
|
158
|
+
})[];
|
|
149
159
|
};
|
|
150
160
|
|
|
151
161
|
type OryFormGroupsProps = PropsWithChildren<{
|
|
@@ -160,10 +170,16 @@ type OryMessageContentProps = {
|
|
|
160
170
|
type OryMessageRootProps = DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
161
171
|
declare function OryCardValidationMessages({ ...props }: OryMessageRootProps): react_jsx_runtime.JSX.Element | null;
|
|
162
172
|
|
|
163
|
-
type
|
|
173
|
+
type OryFormProps$1 = Omit<ComponentPropsWithoutRef<"form">, "action" | "method" | "onSubmit">;
|
|
174
|
+
type OryFormSectionProps = PropsWithChildren<OryFormProps$1 & {
|
|
164
175
|
nodes?: UiNode[];
|
|
165
176
|
}>;
|
|
166
|
-
|
|
177
|
+
type OryCardSettingsSectionProps = PropsWithChildren & {
|
|
178
|
+
action: string;
|
|
179
|
+
method: string;
|
|
180
|
+
onSubmit: FormEventHandler<HTMLFormElement>;
|
|
181
|
+
};
|
|
182
|
+
declare function OryFormSection({ children, nodes, ...rest }: OryFormSectionProps): react_jsx_runtime.JSX.Element;
|
|
167
183
|
|
|
168
184
|
type OryFormOidcButtonsProps = PropsWithChildren<{
|
|
169
185
|
hideDivider?: boolean;
|
|
@@ -259,7 +275,7 @@ type OryFlowComponents = {
|
|
|
259
275
|
/**
|
|
260
276
|
* The SettingsSection component is rendered around each section of the settings.
|
|
261
277
|
*/
|
|
262
|
-
SettingsSection: ComponentType<
|
|
278
|
+
SettingsSection: ComponentType<OryCardSettingsSectionProps>;
|
|
263
279
|
/**
|
|
264
280
|
* The SettingsSectionContent component is rendered around the content of each section of the settings.
|
|
265
281
|
*/
|
|
@@ -563,4 +579,4 @@ type OryProviderProps = {
|
|
|
563
579
|
} & OryFlowContainer & PropsWithChildren;
|
|
564
580
|
declare function OryProvider({ children, components: Components, ...oryFlowProps }: OryProviderProps): react_jsx_runtime.JSX.Element;
|
|
565
581
|
|
|
566
|
-
export { type ErrorFlowContainer, type FlowContainerSetter, type FlowContextValue, type FormState, type FormStateAction, type FormValues, HeadlessPageHeader, type IntlConfig, type LoginFlowContainer, type OnSubmitHandlerProps, OryCard, type OryCardAuthMethodListItemProps, OryCardContent, type OryCardContentProps, type OryCardDividerProps, OryCardFooter, type OryCardFooterProps, OryCardHeader, type OryCardHeaderProps, type OryCardLogoProps, type OryCardRootProps as OryCardProps, OryCardValidationMessages, type OryClientConfiguration, type OryFlowComponentOverrides, type OryFlowComponents, type OryFlowContainer, OryForm, OryFormGroupDivider, type OryFormGroupProps, OryFormGroups, type OryFormGroupsProps, OryFormOidcButtons, type OryFormOidcButtonsProps, type OryFormOidcRootProps, type OryFormProps, type OryFormRootProps, OryFormSection, type OryFormSectionContentProps, type OryFormSectionFooterProps, type OryFormSectionProps, OryFormSocialButtonsForm, locales as OryLocales, type OryMessageContentProps, type OryMessageRootProps, type OryNodeAnchorProps, type OryNodeButtonProps, type OryNodeImageProps, type OryNodeInputProps, type OryNodeLabelProps, type OryNodeOidcButtonProps, type OryNodeTextProps, type OryPageHeaderProps, OryProvider, type OryProviderProps, OrySettingsCard, type OrySettingsOidcProps, type OrySettingsPasskeyProps, type OrySettingsRecoveryCodesProps, type OrySettingsTotpProps, type OrySettingsWebauthnProps, OryTwoStepCard, type RecoveryFlowContainer, type RegistrationFlowContainer, type SettingsFlowContainer, type VerificationFlowContainer, messageTestId, uiTextToFormattedMessage, useComponents, useNodeSorter, useOryFlow };
|
|
582
|
+
export { type ErrorFlowContainer, type FlowContainerSetter, type FlowContextValue, type FormState, type FormStateAction, type FormValues, HeadlessPageHeader, type IntlConfig, type LoginFlowContainer, type OnSubmitHandlerProps, OryCard, type OryCardAuthMethodListItemProps, OryCardContent, type OryCardContentProps, type OryCardDividerProps, OryCardFooter, type OryCardFooterProps, OryCardHeader, type OryCardHeaderProps, type OryCardLogoProps, type OryCardRootProps as OryCardProps, type OryCardSettingsSectionProps, OryCardValidationMessages, type OryClientConfiguration, type OryFlowComponentOverrides, type OryFlowComponents, type OryFlowContainer, OryForm, OryFormGroupDivider, type OryFormGroupProps, OryFormGroups, type OryFormGroupsProps, OryFormOidcButtons, type OryFormOidcButtonsProps, type OryFormOidcRootProps, type OryFormProps, type OryFormRootProps, OryFormSection, type OryFormSectionContentProps, type OryFormSectionFooterProps, type OryFormSectionProps, OryFormSocialButtonsForm, locales as OryLocales, type OryMessageContentProps, type OryMessageRootProps, type OryNodeAnchorProps, type OryNodeButtonProps, type OryNodeImageProps, type OryNodeInputProps, type OryNodeLabelProps, type OryNodeOidcButtonProps, type OryNodeTextProps, type OryPageHeaderProps, OryProvider, type OryProviderProps, OrySettingsCard, type OrySettingsOidcProps, type OrySettingsPasskeyProps, type OrySettingsRecoveryCodesProps, type OrySettingsTotpProps, type OrySettingsWebauthnProps, OryTwoStepCard, type RecoveryFlowContainer, type RegistrationFlowContainer, type SettingsFlowContainer, type VerificationFlowContainer, messageTestId, uiTextToFormattedMessage, useComponents, useNodeSorter, useOryFlow };
|