|
1 |
| -import { Identity } from '@ory/kratos-client' |
2 |
| -import { UpdateRegistrationFlowBody } from '@ory/kratos-client' |
3 |
| -import { RegistrationFlow as KratosRegistrationFlow } from '@ory/kratos-client' |
4 |
| -import { ContinueWith as KratosContinueWith } from '@ory/kratos-client' |
5 |
| -import { UiNodeInputAttributes } from '@ory/kratos-client' |
6 |
| -import { AxiosError } from 'axios' |
7 |
| -import { PropsWithChildren } from 'react' |
8 |
| -import { FC } from 'react' |
9 |
| -import { useSearchParams } from 'next/navigation.js' |
10 |
| -import { useRouter } from 'next/navigation.js' |
11 |
| -import { useState } from 'react' |
12 |
| -import { useEffect } from 'react' |
13 |
| -import { useMemo } from 'react' |
14 |
| -import { useCallback } from 'react' |
15 |
| -import React from 'react' |
16 |
| - |
17 |
| -import { FlowProvider } from '../providers/index.js' |
18 |
| -import { ValuesProvider } from '../providers/index.js' |
19 |
| -import { ValuesStore } from '../providers/index.js' |
20 |
| -import { SubmitProvider } from '../providers/index.js' |
21 |
| -import { useKratosClient } from '../providers/index.js' |
22 |
| -import { handleFlowError } from './handle-errors.util.js' |
| 1 | +import type { Identity } from '@ory/kratos-client' |
| 2 | +import type { UpdateRegistrationFlowBody } from '@ory/kratos-client' |
| 3 | +import type { RegistrationFlow as KratosRegistrationFlow } from '@ory/kratos-client' |
| 4 | +import type { ContinueWith as KratosContinueWith } from '@ory/kratos-client' |
| 5 | +import type { UiNodeInputAttributes } from '@ory/kratos-client' |
| 6 | +import type { AxiosError } from 'axios' |
| 7 | +import type { PropsWithChildren } from 'react' |
| 8 | +import type { FC } from 'react' |
| 9 | + |
| 10 | +import { useSearchParams } from 'next/navigation.js' |
| 11 | +import { useRouter } from 'next/navigation.js' |
| 12 | +import { useState } from 'react' |
| 13 | +import { useEffect } from 'react' |
| 14 | +import { useMemo } from 'react' |
| 15 | +import { useCallback } from 'react' |
| 16 | +import React from 'react' |
| 17 | + |
| 18 | +import { FlowProvider } from '../providers/index.js' |
| 19 | +import { ValuesProvider } from '../providers/index.js' |
| 20 | +import { ValuesStore } from '../providers/index.js' |
| 21 | +import { SubmitProvider } from '../providers/index.js' |
| 22 | +import { useKratosClient } from '../providers/index.js' |
| 23 | +import { handleFlowError } from './handle-errors.util.js' |
23 | 24 |
|
24 | 25 | export interface RegistrationFlowProps {
|
25 | 26 | onError?: (error: { id: string }) => void
|
|
0 commit comments