@plasmicapp/loader-react 1.0.226 → 1.0.227

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.
@@ -1142,7 +1142,8 @@ function PlasmicRootProvider(props) {
1142
1142
  // @ts-ignore
1143
1143
  var user = props.user,
1144
1144
  userAuthToken = props.userAuthToken,
1145
- isUserLoading = props.isUserLoading;
1145
+ isUserLoading = props.isUserLoading,
1146
+ authRedirectUri = props.authRedirectUri;
1146
1147
  var value = React.useMemo(function () {
1147
1148
  return {
1148
1149
  globalVariants: mergeGlobalVariantsSpec(globalVariants != null ? globalVariants : [], getGlobalVariantsFromSplits(splits, variation != null ? variation : {})),
@@ -1153,9 +1154,10 @@ function PlasmicRootProvider(props) {
1153
1154
  Head: Head,
1154
1155
  user: user,
1155
1156
  userAuthToken: userAuthToken,
1156
- isUserLoading: isUserLoading
1157
+ isUserLoading: isUserLoading,
1158
+ authRedirectUri: authRedirectUri
1157
1159
  };
1158
- }, [globalVariants, variation, globalContextsProps, loader, splits, translator, Head, user, userAuthToken, isUserLoading]);
1160
+ }, [globalVariants, variation, globalContextsProps, loader, splits, translator, Head, user, userAuthToken, isUserLoading, authRedirectUri]);
1159
1161
  return React.createElement(PlasmicQuery.PlasmicQueryDataProvider, {
1160
1162
  prefetchedCache: prefetchedQueryData,
1161
1163
  suspense: suspenseForQueryData
@@ -2266,7 +2268,7 @@ function usePlasmicComponent(spec, opts) {
2266
2268
  return component;
2267
2269
  }
2268
2270
 
2269
- var _excluded = ["loader", "globalContextsProps", "variation", "userAuthToken", "isUserLoading"];
2271
+ var _excluded = ["loader", "globalContextsProps", "variation", "userAuthToken", "isUserLoading", "authRedirectUri"];
2270
2272
  var PlasmicComponentContext = /*#__PURE__*/React.createContext(false);
2271
2273
  function PlasmicComponent(props) {
2272
2274
  var component = props.component,
@@ -2284,6 +2286,7 @@ function PlasmicComponent(props) {
2284
2286
  variation = rootContext.variation,
2285
2287
  userAuthToken = rootContext.userAuthToken,
2286
2288
  isUserLoading = rootContext.isUserLoading,
2289
+ authRedirectUri = rootContext.authRedirectUri,
2287
2290
  rest = _objectWithoutPropertiesLoose(rootContext, _excluded);
2288
2291
  var Component = usePlasmicComponent({
2289
2292
  name: component,
@@ -2334,7 +2337,8 @@ function PlasmicComponent(props) {
2334
2337
  });
2335
2338
  element = React.createElement(ReactWebRootProvider, Object.assign({}, rest, {
2336
2339
  userAuthToken: userAuthToken,
2337
- isUserLoading: isUserLoading
2340
+ isUserLoading: isUserLoading,
2341
+ authRedirectUri: authRedirectUri
2338
2342
  }), React.createElement(MaybeWrap, {
2339
2343
  cond: !!GlobalContextsProvider,
2340
2344
  wrapper: function wrapper(children) {
@@ -2345,7 +2349,7 @@ function PlasmicComponent(props) {
2345
2349
  }, element)));
2346
2350
  }
2347
2351
  return element;
2348
- }, [Component, componentProps, loader, isRootLoader, component, projectId, globalContextsProps, userAuthToken, isUserLoading]);
2352
+ }, [Component, componentProps, loader, isRootLoader, component, projectId, globalContextsProps, userAuthToken, isUserLoading, authRedirectUri]);
2349
2353
  return element;
2350
2354
  }
2351
2355
  function MaybeWrap(props) {