@plasmicapp/loader-react 1.0.179 → 1.0.181
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 -5
- 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 -5
- package/dist/loader-react.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/loader-react.esm.js
CHANGED
|
@@ -13,7 +13,7 @@ import * as jsxRuntime from 'react/jsx-runtime';
|
|
|
13
13
|
import pascalcase from 'pascalcase';
|
|
14
14
|
import { isFragment } from 'react-is';
|
|
15
15
|
import prepass from 'react-ssr-prepass';
|
|
16
|
-
import
|
|
16
|
+
import { renderToString as renderToString$1 } from 'react-dom/server';
|
|
17
17
|
|
|
18
18
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
19
19
|
try {
|
|
@@ -1454,7 +1454,10 @@ function PlasmicRootProvider(props) {
|
|
|
1454
1454
|
},
|
|
1455
1455
|
variation: variation
|
|
1456
1456
|
});
|
|
1457
|
-
}, [loader, variation]);
|
|
1457
|
+
}, [loader, variation]); // @ts-ignore
|
|
1458
|
+
|
|
1459
|
+
var user = props.user,
|
|
1460
|
+
userAuthToken = props.userAuthToken;
|
|
1458
1461
|
var value = useMemo(function () {
|
|
1459
1462
|
return {
|
|
1460
1463
|
globalVariants: mergeGlobalVariantsSpec(globalVariants != null ? globalVariants : [], getGlobalVariantsFromSplits(splits, variation != null ? variation : {})),
|
|
@@ -1462,9 +1465,11 @@ function PlasmicRootProvider(props) {
|
|
|
1462
1465
|
loader: loader,
|
|
1463
1466
|
variation: variation,
|
|
1464
1467
|
translator: translator,
|
|
1465
|
-
Head: Head
|
|
1468
|
+
Head: Head,
|
|
1469
|
+
user: user,
|
|
1470
|
+
userAuthToken: userAuthToken
|
|
1466
1471
|
};
|
|
1467
|
-
}, [globalVariants, variation, globalContextsProps, loader, splits, translator, Head]);
|
|
1472
|
+
}, [globalVariants, variation, globalContextsProps, loader, splits, translator, Head, user, userAuthToken]);
|
|
1468
1473
|
return createElement(PlasmicQueryDataProvider, {
|
|
1469
1474
|
prefetchedCache: prefetchedQueryData,
|
|
1470
1475
|
suspense: suspenseForQueryData
|
|
@@ -2829,7 +2834,7 @@ function renderToString(loader, lookup, opts) {
|
|
|
2829
2834
|
}
|
|
2830
2835
|
|
|
2831
2836
|
var element = makeElement(loader, lookup, opts);
|
|
2832
|
-
return
|
|
2837
|
+
return renderToString$1(element);
|
|
2833
2838
|
}
|
|
2834
2839
|
function extractPlasmicQueryDataFromElement(_x5, _x6, _x7) {
|
|
2835
2840
|
return _extractPlasmicQueryDataFromElement.apply(this, arguments);
|