@adonis-agora/authkit-react 0.20.1 → 0.22.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.
@@ -5,126 +5,9 @@ export interface SignInButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonE
5
5
  showWhenAuthenticated?: boolean;
6
6
  }
7
7
  export declare function SignInButton({ children, returnTo, showWhenAuthenticated, className, ...rest }: SignInButtonProps): import("react").DetailedReactHTMLElement<{
8
- id?: string | undefined | undefined;
9
- name?: string | undefined | undefined;
10
- value?: string | number | readonly string[] | undefined;
11
- form?: string | undefined | undefined;
12
- slot?: string | undefined | undefined;
13
- style?: import("react").CSSProperties | undefined;
14
- title?: string | undefined | undefined;
15
- role?: import("react").AriaRole | undefined;
16
- hidden?: boolean | undefined | undefined;
17
- resource?: string | undefined | undefined;
18
- disabled?: boolean | undefined | undefined;
19
- formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
20
- formEncType?: string | undefined | undefined;
21
- formMethod?: string | undefined | undefined;
22
- formNoValidate?: boolean | undefined | undefined;
23
- formTarget?: string | undefined | undefined;
24
- type: string;
25
- defaultChecked?: boolean | undefined | undefined;
26
- defaultValue?: string | number | readonly string[] | undefined;
27
- suppressContentEditableWarning?: boolean | undefined | undefined;
28
- suppressHydrationWarning?: boolean | undefined | undefined;
29
- accessKey?: string | undefined | undefined;
30
- autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
31
- autoFocus?: boolean | undefined | undefined;
32
- contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
33
- contextMenu?: string | undefined | undefined;
34
- dir?: string | undefined | undefined;
35
- draggable?: (boolean | "true" | "false") | undefined;
36
- enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
37
- lang?: string | undefined | undefined;
38
- nonce?: string | undefined | undefined;
39
- spellCheck?: (boolean | "true" | "false") | undefined;
40
- tabIndex?: number | undefined | undefined;
41
- translate?: "yes" | "no" | undefined | undefined;
42
- radioGroup?: string | undefined | undefined;
43
- about?: string | undefined | undefined;
44
- content?: string | undefined | undefined;
45
- datatype?: string | undefined | undefined;
46
- inlist?: any;
47
- prefix?: string | undefined | undefined;
48
- property?: string | undefined | undefined;
49
- rel?: string | undefined | undefined;
50
- rev?: string | undefined | undefined;
51
- typeof?: string | undefined | undefined;
52
- vocab?: string | undefined | undefined;
53
- autoCorrect?: string | undefined | undefined;
54
- autoSave?: string | undefined | undefined;
55
- color?: string | undefined | undefined;
56
- itemProp?: string | undefined | undefined;
57
- itemScope?: boolean | undefined | undefined;
58
- itemType?: string | undefined | undefined;
59
- itemID?: string | undefined | undefined;
60
- itemRef?: string | undefined | undefined;
61
- results?: number | undefined | undefined;
62
- security?: string | undefined | undefined;
63
- unselectable?: "on" | "off" | undefined | undefined;
64
- popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
65
- popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
66
- popoverTarget?: string | undefined | undefined;
67
- inert?: boolean | undefined | undefined;
68
- inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
69
- is?: string | undefined | undefined;
70
- exportparts?: string | undefined | undefined;
71
- part?: string | undefined | undefined;
72
- "aria-activedescendant"?: string | undefined | undefined;
73
- "aria-atomic"?: (boolean | "true" | "false") | undefined;
74
- "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
75
- "aria-braillelabel"?: string | undefined | undefined;
76
- "aria-brailleroledescription"?: string | undefined | undefined;
77
- "aria-busy"?: (boolean | "true" | "false") | undefined;
78
- "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
79
- "aria-colcount"?: number | undefined | undefined;
80
- "aria-colindex"?: number | undefined | undefined;
81
- "aria-colindextext"?: string | undefined | undefined;
82
- "aria-colspan"?: number | undefined | undefined;
83
- "aria-controls"?: string | undefined | undefined;
84
- "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
85
- "aria-describedby"?: string | undefined | undefined;
86
- "aria-description"?: string | undefined | undefined;
87
- "aria-details"?: string | undefined | undefined;
88
- "aria-disabled"?: (boolean | "true" | "false") | undefined;
89
- "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
90
- "aria-errormessage"?: string | undefined | undefined;
91
- "aria-expanded"?: (boolean | "true" | "false") | undefined;
92
- "aria-flowto"?: string | undefined | undefined;
93
- "aria-grabbed"?: (boolean | "true" | "false") | undefined;
94
- "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
95
- "aria-hidden"?: (boolean | "true" | "false") | undefined;
96
- "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
97
- "aria-keyshortcuts"?: string | undefined | undefined;
98
- "aria-label"?: string | undefined | undefined;
99
- "aria-labelledby"?: string | undefined | undefined;
100
- "aria-level"?: number | undefined | undefined;
101
- "aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
102
- "aria-modal"?: (boolean | "true" | "false") | undefined;
103
- "aria-multiline"?: (boolean | "true" | "false") | undefined;
104
- "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
105
- "aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
106
- "aria-owns"?: string | undefined | undefined;
107
- "aria-placeholder"?: string | undefined | undefined;
108
- "aria-posinset"?: number | undefined | undefined;
109
- "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
110
- "aria-readonly"?: (boolean | "true" | "false") | undefined;
111
- "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
112
- "aria-required"?: (boolean | "true" | "false") | undefined;
113
- "aria-roledescription"?: string | undefined | undefined;
114
- "aria-rowcount"?: number | undefined | undefined;
115
- "aria-rowindex"?: number | undefined | undefined;
116
- "aria-rowindextext"?: string | undefined | undefined;
117
- "aria-rowspan"?: number | undefined | undefined;
118
- "aria-selected"?: (boolean | "true" | "false") | undefined;
119
- "aria-setsize"?: number | undefined | undefined;
120
- "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
121
- "aria-valuemax"?: number | undefined | undefined;
122
- "aria-valuemin"?: number | undefined | undefined;
123
- "aria-valuenow"?: number | undefined | undefined;
124
- "aria-valuetext"?: string | undefined | undefined;
125
8
  dangerouslySetInnerHTML?: {
126
9
  __html: string | TrustedHTML;
127
- } | undefined | undefined;
10
+ } | undefined;
128
11
  onCopy?: import("react").ClipboardEventHandler<HTMLButtonElement> | undefined;
129
12
  onCopyCapture?: import("react").ClipboardEventHandler<HTMLButtonElement> | undefined;
130
13
  onCut?: import("react").ClipboardEventHandler<HTMLButtonElement> | undefined;
@@ -292,6 +175,123 @@ export declare function SignInButton({ children, returnTo, showWhenAuthenticated
292
175
  onTransitionRunCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
293
176
  onTransitionStart?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
294
177
  onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
178
+ "aria-activedescendant"?: string | undefined;
179
+ "aria-atomic"?: ("false" | "true" | boolean) | undefined;
180
+ "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
181
+ "aria-braillelabel"?: string | undefined;
182
+ "aria-brailleroledescription"?: string | undefined;
183
+ "aria-busy"?: ("false" | "true" | boolean) | undefined;
184
+ "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
185
+ "aria-colcount"?: number | undefined;
186
+ "aria-colindex"?: number | undefined;
187
+ "aria-colindextext"?: string | undefined;
188
+ "aria-colspan"?: number | undefined;
189
+ "aria-controls"?: string | undefined;
190
+ "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
191
+ "aria-describedby"?: string | undefined;
192
+ "aria-description"?: string | undefined;
193
+ "aria-details"?: string | undefined;
194
+ "aria-disabled"?: ("false" | "true" | boolean) | undefined;
195
+ "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
196
+ "aria-errormessage"?: string | undefined;
197
+ "aria-expanded"?: ("false" | "true" | boolean) | undefined;
198
+ "aria-flowto"?: string | undefined;
199
+ "aria-grabbed"?: ("false" | "true" | boolean) | undefined;
200
+ "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
201
+ "aria-hidden"?: ("false" | "true" | boolean) | undefined;
202
+ "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
203
+ "aria-keyshortcuts"?: string | undefined;
204
+ "aria-label"?: string | undefined;
205
+ "aria-labelledby"?: string | undefined;
206
+ "aria-level"?: number | undefined;
207
+ "aria-live"?: "off" | "assertive" | "polite" | undefined;
208
+ "aria-modal"?: ("false" | "true" | boolean) | undefined;
209
+ "aria-multiline"?: ("false" | "true" | boolean) | undefined;
210
+ "aria-multiselectable"?: ("false" | "true" | boolean) | undefined;
211
+ "aria-orientation"?: "horizontal" | "vertical" | undefined;
212
+ "aria-owns"?: string | undefined;
213
+ "aria-placeholder"?: string | undefined;
214
+ "aria-posinset"?: number | undefined;
215
+ "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
216
+ "aria-readonly"?: ("false" | "true" | boolean) | undefined;
217
+ "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
218
+ "aria-required"?: ("false" | "true" | boolean) | undefined;
219
+ "aria-roledescription"?: string | undefined;
220
+ "aria-rowcount"?: number | undefined;
221
+ "aria-rowindex"?: number | undefined;
222
+ "aria-rowindextext"?: string | undefined;
223
+ "aria-rowspan"?: number | undefined;
224
+ "aria-selected"?: ("false" | "true" | boolean) | undefined;
225
+ "aria-setsize"?: number | undefined;
226
+ "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
227
+ "aria-valuemax"?: number | undefined;
228
+ "aria-valuemin"?: number | undefined;
229
+ "aria-valuenow"?: number | undefined;
230
+ "aria-valuetext"?: string | undefined;
231
+ defaultChecked?: boolean | undefined;
232
+ defaultValue?: string | number | readonly string[] | undefined;
233
+ suppressContentEditableWarning?: boolean | undefined;
234
+ suppressHydrationWarning?: boolean | undefined;
235
+ accessKey?: string | undefined;
236
+ autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
237
+ autoFocus?: boolean | undefined;
238
+ contentEditable?: ("false" | "true" | boolean) | "inherit" | "plaintext-only" | undefined;
239
+ contextMenu?: string | undefined;
240
+ dir?: string | undefined;
241
+ draggable?: ("false" | "true" | boolean) | undefined;
242
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
243
+ hidden?: boolean | undefined;
244
+ id?: string | undefined;
245
+ lang?: string | undefined;
246
+ nonce?: string | undefined;
247
+ slot?: string | undefined;
248
+ spellCheck?: ("false" | "true" | boolean) | undefined;
249
+ style?: import("react").CSSProperties | undefined;
250
+ tabIndex?: number | undefined;
251
+ title?: string | undefined;
252
+ translate?: "yes" | "no" | undefined;
253
+ radioGroup?: string | undefined;
254
+ role?: import("react").AriaRole | undefined;
255
+ about?: string | undefined;
256
+ content?: string | undefined;
257
+ datatype?: string | undefined;
258
+ inlist?: any;
259
+ prefix?: string | undefined;
260
+ property?: string | undefined;
261
+ rel?: string | undefined;
262
+ resource?: string | undefined;
263
+ rev?: string | undefined;
264
+ typeof?: string | undefined;
265
+ vocab?: string | undefined;
266
+ autoCorrect?: string | undefined;
267
+ autoSave?: string | undefined;
268
+ color?: string | undefined;
269
+ itemProp?: string | undefined;
270
+ itemScope?: boolean | undefined;
271
+ itemType?: string | undefined;
272
+ itemID?: string | undefined;
273
+ itemRef?: string | undefined;
274
+ results?: number | undefined;
275
+ security?: string | undefined;
276
+ unselectable?: "on" | "off" | undefined;
277
+ popover?: "" | "auto" | "manual" | "hint" | undefined;
278
+ popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
279
+ popoverTarget?: string | undefined;
280
+ inert?: boolean | undefined;
281
+ inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
282
+ is?: string | undefined;
283
+ exportparts?: string | undefined;
284
+ part?: string | undefined;
285
+ disabled?: boolean | undefined;
286
+ form?: string | undefined;
287
+ formAction?: string | ((formData: FormData) => void | Promise<void>) | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS] | undefined;
288
+ formEncType?: string | undefined;
289
+ formMethod?: string | undefined;
290
+ formNoValidate?: boolean | undefined;
291
+ formTarget?: string | undefined;
292
+ name?: string | undefined;
293
+ value?: string | readonly string[] | number | undefined;
294
+ type: string;
295
295
  className: string;
296
296
  onClick: () => void;
297
297
  }, HTMLElement> | null;
@@ -4,126 +4,9 @@ export interface SignOutButtonProps extends Omit<ButtonHTMLAttributes<HTMLButton
4
4
  returnTo?: string;
5
5
  }
6
6
  export declare function SignOutButton({ children, returnTo, className, ...rest }: SignOutButtonProps): import("react").DetailedReactHTMLElement<{
7
- id?: string | undefined | undefined;
8
- name?: string | undefined | undefined;
9
- value?: string | number | readonly string[] | undefined;
10
- form?: string | undefined | undefined;
11
- slot?: string | undefined | undefined;
12
- style?: import("react").CSSProperties | undefined;
13
- title?: string | undefined | undefined;
14
- role?: import("react").AriaRole | undefined;
15
- hidden?: boolean | undefined | undefined;
16
- resource?: string | undefined | undefined;
17
- disabled?: boolean | undefined | undefined;
18
- formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
19
- formEncType?: string | undefined | undefined;
20
- formMethod?: string | undefined | undefined;
21
- formNoValidate?: boolean | undefined | undefined;
22
- formTarget?: string | undefined | undefined;
23
- type: string;
24
- defaultChecked?: boolean | undefined | undefined;
25
- defaultValue?: string | number | readonly string[] | undefined;
26
- suppressContentEditableWarning?: boolean | undefined | undefined;
27
- suppressHydrationWarning?: boolean | undefined | undefined;
28
- accessKey?: string | undefined | undefined;
29
- autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
30
- autoFocus?: boolean | undefined | undefined;
31
- contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
32
- contextMenu?: string | undefined | undefined;
33
- dir?: string | undefined | undefined;
34
- draggable?: (boolean | "true" | "false") | undefined;
35
- enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
36
- lang?: string | undefined | undefined;
37
- nonce?: string | undefined | undefined;
38
- spellCheck?: (boolean | "true" | "false") | undefined;
39
- tabIndex?: number | undefined | undefined;
40
- translate?: "yes" | "no" | undefined | undefined;
41
- radioGroup?: string | undefined | undefined;
42
- about?: string | undefined | undefined;
43
- content?: string | undefined | undefined;
44
- datatype?: string | undefined | undefined;
45
- inlist?: any;
46
- prefix?: string | undefined | undefined;
47
- property?: string | undefined | undefined;
48
- rel?: string | undefined | undefined;
49
- rev?: string | undefined | undefined;
50
- typeof?: string | undefined | undefined;
51
- vocab?: string | undefined | undefined;
52
- autoCorrect?: string | undefined | undefined;
53
- autoSave?: string | undefined | undefined;
54
- color?: string | undefined | undefined;
55
- itemProp?: string | undefined | undefined;
56
- itemScope?: boolean | undefined | undefined;
57
- itemType?: string | undefined | undefined;
58
- itemID?: string | undefined | undefined;
59
- itemRef?: string | undefined | undefined;
60
- results?: number | undefined | undefined;
61
- security?: string | undefined | undefined;
62
- unselectable?: "on" | "off" | undefined | undefined;
63
- popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
64
- popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
65
- popoverTarget?: string | undefined | undefined;
66
- inert?: boolean | undefined | undefined;
67
- inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
68
- is?: string | undefined | undefined;
69
- exportparts?: string | undefined | undefined;
70
- part?: string | undefined | undefined;
71
- "aria-activedescendant"?: string | undefined | undefined;
72
- "aria-atomic"?: (boolean | "true" | "false") | undefined;
73
- "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
74
- "aria-braillelabel"?: string | undefined | undefined;
75
- "aria-brailleroledescription"?: string | undefined | undefined;
76
- "aria-busy"?: (boolean | "true" | "false") | undefined;
77
- "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
78
- "aria-colcount"?: number | undefined | undefined;
79
- "aria-colindex"?: number | undefined | undefined;
80
- "aria-colindextext"?: string | undefined | undefined;
81
- "aria-colspan"?: number | undefined | undefined;
82
- "aria-controls"?: string | undefined | undefined;
83
- "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
84
- "aria-describedby"?: string | undefined | undefined;
85
- "aria-description"?: string | undefined | undefined;
86
- "aria-details"?: string | undefined | undefined;
87
- "aria-disabled"?: (boolean | "true" | "false") | undefined;
88
- "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
89
- "aria-errormessage"?: string | undefined | undefined;
90
- "aria-expanded"?: (boolean | "true" | "false") | undefined;
91
- "aria-flowto"?: string | undefined | undefined;
92
- "aria-grabbed"?: (boolean | "true" | "false") | undefined;
93
- "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
94
- "aria-hidden"?: (boolean | "true" | "false") | undefined;
95
- "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
96
- "aria-keyshortcuts"?: string | undefined | undefined;
97
- "aria-label"?: string | undefined | undefined;
98
- "aria-labelledby"?: string | undefined | undefined;
99
- "aria-level"?: number | undefined | undefined;
100
- "aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
101
- "aria-modal"?: (boolean | "true" | "false") | undefined;
102
- "aria-multiline"?: (boolean | "true" | "false") | undefined;
103
- "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
104
- "aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
105
- "aria-owns"?: string | undefined | undefined;
106
- "aria-placeholder"?: string | undefined | undefined;
107
- "aria-posinset"?: number | undefined | undefined;
108
- "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
109
- "aria-readonly"?: (boolean | "true" | "false") | undefined;
110
- "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
111
- "aria-required"?: (boolean | "true" | "false") | undefined;
112
- "aria-roledescription"?: string | undefined | undefined;
113
- "aria-rowcount"?: number | undefined | undefined;
114
- "aria-rowindex"?: number | undefined | undefined;
115
- "aria-rowindextext"?: string | undefined | undefined;
116
- "aria-rowspan"?: number | undefined | undefined;
117
- "aria-selected"?: (boolean | "true" | "false") | undefined;
118
- "aria-setsize"?: number | undefined | undefined;
119
- "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
120
- "aria-valuemax"?: number | undefined | undefined;
121
- "aria-valuemin"?: number | undefined | undefined;
122
- "aria-valuenow"?: number | undefined | undefined;
123
- "aria-valuetext"?: string | undefined | undefined;
124
7
  dangerouslySetInnerHTML?: {
125
8
  __html: string | TrustedHTML;
126
- } | undefined | undefined;
9
+ } | undefined;
127
10
  onCopy?: import("react").ClipboardEventHandler<HTMLButtonElement> | undefined;
128
11
  onCopyCapture?: import("react").ClipboardEventHandler<HTMLButtonElement> | undefined;
129
12
  onCut?: import("react").ClipboardEventHandler<HTMLButtonElement> | undefined;
@@ -291,6 +174,123 @@ export declare function SignOutButton({ children, returnTo, className, ...rest }
291
174
  onTransitionRunCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
292
175
  onTransitionStart?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
293
176
  onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
177
+ "aria-activedescendant"?: string | undefined;
178
+ "aria-atomic"?: ("false" | "true" | boolean) | undefined;
179
+ "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
180
+ "aria-braillelabel"?: string | undefined;
181
+ "aria-brailleroledescription"?: string | undefined;
182
+ "aria-busy"?: ("false" | "true" | boolean) | undefined;
183
+ "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
184
+ "aria-colcount"?: number | undefined;
185
+ "aria-colindex"?: number | undefined;
186
+ "aria-colindextext"?: string | undefined;
187
+ "aria-colspan"?: number | undefined;
188
+ "aria-controls"?: string | undefined;
189
+ "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
190
+ "aria-describedby"?: string | undefined;
191
+ "aria-description"?: string | undefined;
192
+ "aria-details"?: string | undefined;
193
+ "aria-disabled"?: ("false" | "true" | boolean) | undefined;
194
+ "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
195
+ "aria-errormessage"?: string | undefined;
196
+ "aria-expanded"?: ("false" | "true" | boolean) | undefined;
197
+ "aria-flowto"?: string | undefined;
198
+ "aria-grabbed"?: ("false" | "true" | boolean) | undefined;
199
+ "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
200
+ "aria-hidden"?: ("false" | "true" | boolean) | undefined;
201
+ "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
202
+ "aria-keyshortcuts"?: string | undefined;
203
+ "aria-label"?: string | undefined;
204
+ "aria-labelledby"?: string | undefined;
205
+ "aria-level"?: number | undefined;
206
+ "aria-live"?: "off" | "assertive" | "polite" | undefined;
207
+ "aria-modal"?: ("false" | "true" | boolean) | undefined;
208
+ "aria-multiline"?: ("false" | "true" | boolean) | undefined;
209
+ "aria-multiselectable"?: ("false" | "true" | boolean) | undefined;
210
+ "aria-orientation"?: "horizontal" | "vertical" | undefined;
211
+ "aria-owns"?: string | undefined;
212
+ "aria-placeholder"?: string | undefined;
213
+ "aria-posinset"?: number | undefined;
214
+ "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
215
+ "aria-readonly"?: ("false" | "true" | boolean) | undefined;
216
+ "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
217
+ "aria-required"?: ("false" | "true" | boolean) | undefined;
218
+ "aria-roledescription"?: string | undefined;
219
+ "aria-rowcount"?: number | undefined;
220
+ "aria-rowindex"?: number | undefined;
221
+ "aria-rowindextext"?: string | undefined;
222
+ "aria-rowspan"?: number | undefined;
223
+ "aria-selected"?: ("false" | "true" | boolean) | undefined;
224
+ "aria-setsize"?: number | undefined;
225
+ "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
226
+ "aria-valuemax"?: number | undefined;
227
+ "aria-valuemin"?: number | undefined;
228
+ "aria-valuenow"?: number | undefined;
229
+ "aria-valuetext"?: string | undefined;
230
+ defaultChecked?: boolean | undefined;
231
+ defaultValue?: string | number | readonly string[] | undefined;
232
+ suppressContentEditableWarning?: boolean | undefined;
233
+ suppressHydrationWarning?: boolean | undefined;
234
+ accessKey?: string | undefined;
235
+ autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
236
+ autoFocus?: boolean | undefined;
237
+ contentEditable?: ("false" | "true" | boolean) | "inherit" | "plaintext-only" | undefined;
238
+ contextMenu?: string | undefined;
239
+ dir?: string | undefined;
240
+ draggable?: ("false" | "true" | boolean) | undefined;
241
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
242
+ hidden?: boolean | undefined;
243
+ id?: string | undefined;
244
+ lang?: string | undefined;
245
+ nonce?: string | undefined;
246
+ slot?: string | undefined;
247
+ spellCheck?: ("false" | "true" | boolean) | undefined;
248
+ style?: import("react").CSSProperties | undefined;
249
+ tabIndex?: number | undefined;
250
+ title?: string | undefined;
251
+ translate?: "yes" | "no" | undefined;
252
+ radioGroup?: string | undefined;
253
+ role?: import("react").AriaRole | undefined;
254
+ about?: string | undefined;
255
+ content?: string | undefined;
256
+ datatype?: string | undefined;
257
+ inlist?: any;
258
+ prefix?: string | undefined;
259
+ property?: string | undefined;
260
+ rel?: string | undefined;
261
+ resource?: string | undefined;
262
+ rev?: string | undefined;
263
+ typeof?: string | undefined;
264
+ vocab?: string | undefined;
265
+ autoCorrect?: string | undefined;
266
+ autoSave?: string | undefined;
267
+ color?: string | undefined;
268
+ itemProp?: string | undefined;
269
+ itemScope?: boolean | undefined;
270
+ itemType?: string | undefined;
271
+ itemID?: string | undefined;
272
+ itemRef?: string | undefined;
273
+ results?: number | undefined;
274
+ security?: string | undefined;
275
+ unselectable?: "on" | "off" | undefined;
276
+ popover?: "" | "auto" | "manual" | "hint" | undefined;
277
+ popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
278
+ popoverTarget?: string | undefined;
279
+ inert?: boolean | undefined;
280
+ inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
281
+ is?: string | undefined;
282
+ exportparts?: string | undefined;
283
+ part?: string | undefined;
284
+ disabled?: boolean | undefined;
285
+ form?: string | undefined;
286
+ formAction?: string | ((formData: FormData) => void | Promise<void>) | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS] | undefined;
287
+ formEncType?: string | undefined;
288
+ formMethod?: string | undefined;
289
+ formNoValidate?: boolean | undefined;
290
+ formTarget?: string | undefined;
291
+ name?: string | undefined;
292
+ value?: string | readonly string[] | number | undefined;
293
+ type: string;
294
294
  className: string;
295
295
  onClick: () => void;
296
296
  }, HTMLElement> | null;
@@ -0,0 +1,8 @@
1
+ import type { AuthkitClient } from '../client/client.js';
2
+ import { type StartRegistrationFn } from './authenticate.js';
3
+ export interface RegisterPasskeyJsonDeps {
4
+ loadStartRegistration?: () => Promise<StartRegistrationFn>;
5
+ }
6
+ export declare function registerPasskeyJson(client: AuthkitClient, deps?: RegisterPasskeyJsonDeps): Promise<{
7
+ ok: boolean;
8
+ }>;
@@ -0,0 +1,8 @@
1
+ import { loadStartRegistration } from './authenticate.js';
2
+ export async function registerPasskeyJson(client, deps = {}) {
3
+ const loadFn = deps.loadStartRegistration ?? loadStartRegistration;
4
+ const optionsJSON = await client.account.mfa.passkeys.options();
5
+ const startRegistration = await loadFn();
6
+ const attestation = await startRegistration({ optionsJSON });
7
+ return client.account.mfa.passkeys.verify(attestation);
8
+ }
@@ -1,4 +1,5 @@
1
- import type { AccountAppsResult, AccountLoginMethodsResult, AccountMe, AccountMfaStatus, AccountOrgDetail, AccountOrgInvitationsResult, AccountOrgsResult, AccountPasskeysResult, AccountSecurityOverview, AccountSessionsResult, AccountTokensResult, ChangePasswordInput, CreateTokenInput, CreatedPatResult, EmailChangeResult, OkResult, RemovePasskeyResult, RequestEmailChangeInput, RevokeAllResult, RevokeAppResult, RevokeOthersResult, RevokeSessionResult, RevokeTokenResult, UpdateLoginMethodsResult, UpdateProfileInput, UpdateProfileResult, UserLoginMethodsInput } from '../../client/types.js';
1
+ import type { AcceptOrgInvitationResult, AccountAppsResult, AccountLoginMethodsResult, AccountMe, AccountMfaStatus, AccountOrgDetail, AccountOrgInvitationsResult, AccountOrgsResult, AccountPasskeysResult, AccountSecurityOverview, AccountSessionsResult, AccountTokensResult, ActivateOrgResult, ChangePasswordInput, CreateAccountOrgInput, CreatedAccountOrgResult, CreatedOrgInvitationResult, CreatedPatResult, CreateTokenInput, DeactivateOrgResult, EmailChangeResult, LeaveOrgResult, MfaConfirmResult, MfaDisableResult, MfaEnrollResult, MfaRecoveryCodesResult, OkResult, RemoveOrgMemberResult, RemovePasskeyResult, RequestEmailChangeInput, RevokeAllResult, RevokeAppResult, RevokeOrgInvitationResult, RevokeOthersResult, RevokeSessionResult, RevokeTokenResult, UpdateLoginMethodsResult, UpdateOrgMemberRoleResult, UpdateProfileInput, UpdateProfileResult, UserLoginMethodsInput } from '../../client/types.js';
2
+ import { type RegisterPasskeyJsonDeps } from '../../passkey/json_registration.js';
2
3
  export declare function useMeQueryOptions(): {
3
4
  queryKey: readonly ["authkit", "account", "me"];
4
5
  queryFn: () => Promise<AccountMe>;
@@ -94,3 +95,75 @@ export declare function useAccountOrgInvitationsQueryOptions(): {
94
95
  queryKey: readonly ["authkit", "account", "orgs", "invitations"];
95
96
  queryFn: () => Promise<AccountOrgInvitationsResult>;
96
97
  };
98
+ export declare function useAccountCreateOrgMutationOptions(): {
99
+ mutationKey: readonly ["authkit", "account", "orgs", "mutation", "create"];
100
+ mutationFn: (data: CreateAccountOrgInput) => Promise<CreatedAccountOrgResult>;
101
+ };
102
+ export declare function useAccountActivateOrgMutationOptions(): {
103
+ mutationKey: readonly ["authkit", "account", "orgs", "mutation", "activate"];
104
+ mutationFn: (orgId: string) => Promise<ActivateOrgResult>;
105
+ };
106
+ export declare function useAccountDeactivateOrgMutationOptions(): {
107
+ mutationKey: readonly ["authkit", "account", "orgs", "mutation", "deactivate"];
108
+ mutationFn: () => Promise<DeactivateOrgResult>;
109
+ };
110
+ export declare function useAccountLeaveOrgMutationOptions(): {
111
+ mutationKey: readonly ["authkit", "account", "orgs", "mutation", "leave"];
112
+ mutationFn: (orgId: string) => Promise<LeaveOrgResult>;
113
+ };
114
+ export declare function useAccountInviteOrgMemberMutationOptions(): {
115
+ mutationKey: readonly ["authkit", "account", "orgs", "mutation", "invite"];
116
+ mutationFn: (vars: {
117
+ orgId: string;
118
+ email: string;
119
+ role?: string;
120
+ }) => Promise<CreatedOrgInvitationResult>;
121
+ };
122
+ export declare function useAccountRevokeOrgInvitationMutationOptions(): {
123
+ mutationKey: readonly ["authkit", "account", "orgs", "mutation", "revoke-invitation"];
124
+ mutationFn: (vars: {
125
+ orgId: string;
126
+ invitationId: string;
127
+ }) => Promise<RevokeOrgInvitationResult>;
128
+ };
129
+ export declare function useAccountUpdateOrgMemberRoleMutationOptions(): {
130
+ mutationKey: readonly ["authkit", "account", "orgs", "mutation", "update-member-role"];
131
+ mutationFn: (vars: {
132
+ orgId: string;
133
+ accountId: string;
134
+ role: string;
135
+ }) => Promise<UpdateOrgMemberRoleResult>;
136
+ };
137
+ export declare function useAccountRemoveOrgMemberMutationOptions(): {
138
+ mutationKey: readonly ["authkit", "account", "orgs", "mutation", "remove-member"];
139
+ mutationFn: (vars: {
140
+ orgId: string;
141
+ accountId: string;
142
+ }) => Promise<RemoveOrgMemberResult>;
143
+ };
144
+ export declare function useAccountAcceptOrgInvitationMutationOptions(): {
145
+ mutationKey: readonly ["authkit", "account", "orgs", "mutation", "accept-invitation"];
146
+ mutationFn: (token: string) => Promise<AcceptOrgInvitationResult>;
147
+ };
148
+ export declare function useEnrollTotpMutationOptions(): {
149
+ mutationKey: readonly ["authkit", "account", "mfa", "mutation", "totp-enroll"];
150
+ mutationFn: () => Promise<MfaEnrollResult>;
151
+ };
152
+ export declare function useConfirmTotpMutationOptions(): {
153
+ mutationKey: readonly ["authkit", "account", "mfa", "mutation", "totp-confirm"];
154
+ mutationFn: (code: string) => Promise<MfaConfirmResult>;
155
+ };
156
+ export declare function useDisableTotpMutationOptions(): {
157
+ mutationKey: readonly ["authkit", "account", "mfa", "mutation", "totp-disable"];
158
+ mutationFn: () => Promise<MfaDisableResult>;
159
+ };
160
+ export declare function useRegenerateRecoveryCodesMutationOptions(): {
161
+ mutationKey: readonly ["authkit", "account", "mfa", "mutation", "recovery-codes"];
162
+ mutationFn: () => Promise<MfaRecoveryCodesResult>;
163
+ };
164
+ export declare function useRegisterPasskeyMutationOptions(deps?: RegisterPasskeyJsonDeps): {
165
+ mutationKey: readonly ["authkit", "account", "mfa", "mutation", "passkey-register"];
166
+ mutationFn: () => Promise<{
167
+ ok: boolean;
168
+ }>;
169
+ };