@clerk/react 6.3.0 → 6.4.0-snapshot.v20260413204347

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/dist/index.mjs CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  RedirectToTasks,
13
13
  RedirectToUserProfile,
14
14
  Show
15
- } from "./chunk-YD67K53M.mjs";
15
+ } from "./chunk-BBXSNLGY.mjs";
16
16
  import {
17
17
  APIKeys,
18
18
  CreateOrganization,
@@ -53,7 +53,7 @@ import {
53
53
  useUser,
54
54
  useWaitlist,
55
55
  withClerk
56
- } from "./chunk-A7DRZKIX.mjs";
56
+ } from "./chunk-MRQEENKP.mjs";
57
57
  import {
58
58
  setErrorThrowerOptions
59
59
  } from "./chunk-RQWALB2R.mjs";
@@ -5,7 +5,7 @@ export { Ui } from '@clerk/ui/internal';
5
5
  import React from 'react';
6
6
  import { ClerkProviderProps } from './types.mjs';
7
7
  import { ErrorThrowerOptions } from '@clerk/shared/error';
8
- export { M as MultisessionAppSupport, u as useDerivedAuth } from './useAuth-BYiDKD-3.mjs';
8
+ export { M as MultisessionAppSupport, O as OAuthConsent, u as useDerivedAuth } from './useAuth-BbaIEAB3.mjs';
9
9
  export { useOAuthConsent } from '@clerk/shared/react';
10
10
  export { buildClerkJSScriptAttributes, buildClerkJsScriptAttributes, buildClerkUIScriptAttributes, clerkJSScriptUrl, clerkJsScriptUrl, clerkUIScriptUrl, setClerkJSLoadingErrorPackageName, setClerkJsLoadingErrorPackageName } from '@clerk/shared/loadClerkJsScript';
11
11
  import '@clerk/shared/ui';
@@ -5,7 +5,7 @@ export { Ui } from '@clerk/ui/internal';
5
5
  import React from 'react';
6
6
  import { ClerkProviderProps } from './types.js';
7
7
  import { ErrorThrowerOptions } from '@clerk/shared/error';
8
- export { M as MultisessionAppSupport, u as useDerivedAuth } from './useAuth-DcwU7ADV.js';
8
+ export { M as MultisessionAppSupport, O as OAuthConsent, u as useDerivedAuth } from './useAuth-DFblXGN7.js';
9
9
  export { useOAuthConsent } from '@clerk/shared/react';
10
10
  export { buildClerkJSScriptAttributes, buildClerkJsScriptAttributes, buildClerkUIScriptAttributes, clerkJSScriptUrl, clerkJsScriptUrl, clerkUIScriptUrl, setClerkJSLoadingErrorPackageName, setClerkJsLoadingErrorPackageName } from '@clerk/shared/loadClerkJsScript';
11
11
  import '@clerk/shared/ui';
package/dist/internal.js CHANGED
@@ -41,6 +41,7 @@ __export(internal_exports, {
41
41
  IS_REACT_SHARED_VARIANT_COMPATIBLE: () => IS_REACT_SHARED_VARIANT_COMPATIBLE,
42
42
  InternalClerkProvider: () => InternalClerkProvider,
43
43
  MultisessionAppSupport: () => MultisessionAppSupport,
44
+ OAuthConsent: () => OAuthConsent,
44
45
  buildClerkJSScriptAttributes: () => import_loadClerkJsScript2.buildClerkJSScriptAttributes,
45
46
  buildClerkJsScriptAttributes: () => import_loadClerkJsScript2.buildClerkJsScriptAttributes,
46
47
  buildClerkUIScriptAttributes: () => import_loadClerkJsScript2.buildClerkUIScriptAttributes,
@@ -1222,6 +1223,27 @@ var APIKeys = withClerk(
1222
1223
  },
1223
1224
  { component: "ApiKeys", renderWhileLoading: true }
1224
1225
  );
1226
+ var OAuthConsent = withClerk(
1227
+ ({ clerk, component, fallback, ...props }) => {
1228
+ const mountingStatus = useWaitForComponentMount(component);
1229
+ const shouldShowFallback = mountingStatus === "rendering" || !clerk.loaded;
1230
+ const rendererRootProps = {
1231
+ ...shouldShowFallback && fallback && { style: { display: "none" } }
1232
+ };
1233
+ return /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, shouldShowFallback && fallback, clerk.loaded && /* @__PURE__ */ import_react11.default.createElement(
1234
+ ClerkHostRenderer,
1235
+ {
1236
+ component,
1237
+ mount: clerk.__internal_mountOAuthConsent,
1238
+ unmount: clerk.__internal_unmountOAuthConsent,
1239
+ updateProps: clerk.__internal_updateProps,
1240
+ props,
1241
+ rootProps: rendererRootProps
1242
+ }
1243
+ ));
1244
+ },
1245
+ { component: "OAuthConsent", renderWhileLoading: true }
1246
+ );
1225
1247
  var UserAvatar = withClerk(
1226
1248
  ({ clerk, component, fallback, ...props }) => {
1227
1249
  const mountingStatus = useWaitForComponentMount(component);
@@ -1614,7 +1636,7 @@ if (typeof globalThis.__BUILD_DISABLE_RHC__ === "undefined") {
1614
1636
  }
1615
1637
  var SDK_METADATA = {
1616
1638
  name: "@clerk/react",
1617
- version: "6.3.0",
1639
+ version: "6.4.0-snapshot.v20260413204347",
1618
1640
  environment: process.env.NODE_ENV
1619
1641
  };
1620
1642
  var _status, _domain, _proxyUrl, _publishableKey, _eventBus, _stateProxy, _instance, _IsomorphicClerk_instances, waitForClerkJS_fn;
@@ -3208,6 +3230,7 @@ var InternalClerkProvider = ClerkProvider;
3208
3230
  IS_REACT_SHARED_VARIANT_COMPATIBLE,
3209
3231
  InternalClerkProvider,
3210
3232
  MultisessionAppSupport,
3233
+ OAuthConsent,
3211
3234
  buildClerkJSScriptAttributes,
3212
3235
  buildClerkJsScriptAttributes,
3213
3236
  buildClerkUIScriptAttributes,