@plasmicapp/loader-react 1.0.225 → 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.
- package/dist/loader-react.cjs.development.js +10 -6
- package/dist/loader-react.cjs.development.js.map +1 -1
- package/dist/loader-react.cjs.production.min.js +1 -1
- package/dist/loader-react.cjs.production.min.js.map +1 -1
- package/dist/loader-react.esm.js +10 -6
- package/dist/loader-react.esm.js.map +1 -1
- package/package.json +4 -4
package/dist/loader-react.esm.js
CHANGED
|
@@ -1139,7 +1139,8 @@ function PlasmicRootProvider(props) {
|
|
|
1139
1139
|
// @ts-ignore
|
|
1140
1140
|
var user = props.user,
|
|
1141
1141
|
userAuthToken = props.userAuthToken,
|
|
1142
|
-
isUserLoading = props.isUserLoading
|
|
1142
|
+
isUserLoading = props.isUserLoading,
|
|
1143
|
+
authRedirectUri = props.authRedirectUri;
|
|
1143
1144
|
var value = useMemo(function () {
|
|
1144
1145
|
return {
|
|
1145
1146
|
globalVariants: mergeGlobalVariantsSpec(globalVariants != null ? globalVariants : [], getGlobalVariantsFromSplits(splits, variation != null ? variation : {})),
|
|
@@ -1150,9 +1151,10 @@ function PlasmicRootProvider(props) {
|
|
|
1150
1151
|
Head: Head,
|
|
1151
1152
|
user: user,
|
|
1152
1153
|
userAuthToken: userAuthToken,
|
|
1153
|
-
isUserLoading: isUserLoading
|
|
1154
|
+
isUserLoading: isUserLoading,
|
|
1155
|
+
authRedirectUri: authRedirectUri
|
|
1154
1156
|
};
|
|
1155
|
-
}, [globalVariants, variation, globalContextsProps, loader, splits, translator, Head, user, userAuthToken, isUserLoading]);
|
|
1157
|
+
}, [globalVariants, variation, globalContextsProps, loader, splits, translator, Head, user, userAuthToken, isUserLoading, authRedirectUri]);
|
|
1156
1158
|
return createElement(PlasmicQueryDataProvider, {
|
|
1157
1159
|
prefetchedCache: prefetchedQueryData,
|
|
1158
1160
|
suspense: suspenseForQueryData
|
|
@@ -2263,7 +2265,7 @@ function usePlasmicComponent(spec, opts) {
|
|
|
2263
2265
|
return component;
|
|
2264
2266
|
}
|
|
2265
2267
|
|
|
2266
|
-
var _excluded = ["loader", "globalContextsProps", "variation", "userAuthToken", "isUserLoading"];
|
|
2268
|
+
var _excluded = ["loader", "globalContextsProps", "variation", "userAuthToken", "isUserLoading", "authRedirectUri"];
|
|
2267
2269
|
var PlasmicComponentContext = /*#__PURE__*/createContext(false);
|
|
2268
2270
|
function PlasmicComponent(props) {
|
|
2269
2271
|
var component = props.component,
|
|
@@ -2281,6 +2283,7 @@ function PlasmicComponent(props) {
|
|
|
2281
2283
|
variation = rootContext.variation,
|
|
2282
2284
|
userAuthToken = rootContext.userAuthToken,
|
|
2283
2285
|
isUserLoading = rootContext.isUserLoading,
|
|
2286
|
+
authRedirectUri = rootContext.authRedirectUri,
|
|
2284
2287
|
rest = _objectWithoutPropertiesLoose(rootContext, _excluded);
|
|
2285
2288
|
var Component = usePlasmicComponent({
|
|
2286
2289
|
name: component,
|
|
@@ -2331,7 +2334,8 @@ function PlasmicComponent(props) {
|
|
|
2331
2334
|
});
|
|
2332
2335
|
element = createElement(ReactWebRootProvider, Object.assign({}, rest, {
|
|
2333
2336
|
userAuthToken: userAuthToken,
|
|
2334
|
-
isUserLoading: isUserLoading
|
|
2337
|
+
isUserLoading: isUserLoading,
|
|
2338
|
+
authRedirectUri: authRedirectUri
|
|
2335
2339
|
}), createElement(MaybeWrap, {
|
|
2336
2340
|
cond: !!GlobalContextsProvider,
|
|
2337
2341
|
wrapper: function wrapper(children) {
|
|
@@ -2342,7 +2346,7 @@ function PlasmicComponent(props) {
|
|
|
2342
2346
|
}, element)));
|
|
2343
2347
|
}
|
|
2344
2348
|
return element;
|
|
2345
|
-
}, [Component, componentProps, loader, isRootLoader, component, projectId, globalContextsProps, userAuthToken, isUserLoading]);
|
|
2349
|
+
}, [Component, componentProps, loader, isRootLoader, component, projectId, globalContextsProps, userAuthToken, isUserLoading, authRedirectUri]);
|
|
2346
2350
|
return element;
|
|
2347
2351
|
}
|
|
2348
2352
|
function MaybeWrap(props) {
|