-
Notifications
You must be signed in to change notification settings - Fork 449
Expand file tree
/
Copy pathinternal.ts
More file actions
35 lines (29 loc) · 1.32 KB
/
internal.ts
File metadata and controls
35 lines (29 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import type { InternalClerkScriptProps } from '@clerk/shared/types';
import type React from 'react';
import { ClerkProvider } from './contexts/ClerkProvider';
import type { ClerkProviderProps, Ui } from './types';
export { setErrorThrowerOptions } from './errors/errorThrower';
export { MultisessionAppSupport } from './components/controlComponents';
export { useRoutingProps } from './hooks/useRoutingProps';
export { useDerivedAuth } from './hooks/useAuth';
export { IS_REACT_SHARED_VARIANT_COMPATIBLE } from './utils/versionCheck';
export {
clerkJSScriptUrl,
buildClerkJSScriptAttributes,
clerkUIScriptUrl,
buildClerkUIScriptAttributes,
setClerkJSLoadingErrorPackageName,
// Deprecated aliases - will be removed in a future major version
clerkJsScriptUrl,
buildClerkJsScriptAttributes,
setClerkJsLoadingErrorPackageName,
} from '@clerk/shared/loadClerkJsScript';
export type { Ui } from './types';
export type { InternalClerkScriptProps } from '@clerk/shared/types';
/**
* A wider-typed version of ClerkProvider that accepts internal script props.
* Framework SDKs should use this instead of the public ClerkProvider.
*/
export const InternalClerkProvider = ClerkProvider as unknown as (<TUi extends Ui = Ui>(
props: ClerkProviderProps<TUi> & InternalClerkScriptProps,
) => React.JSX.Element) & { displayName: string };