@plasmicapp/loader-react 1.0.199 → 1.0.201
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/PlasmicRootProvider.d.ts +2 -1
- package/dist/loader-react.cjs.development.js +3 -2
- 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 +3 -2
- package/dist/loader-react.esm.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { PlasmicDataSourceContextValue } from '@plasmicapp/data-sources-context';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { ComponentRenderData, InternalPlasmicComponentLoader, PlasmicComponentLoader } from './loader';
|
|
3
|
-
interface PlasmicRootContextValue {
|
|
4
|
+
interface PlasmicRootContextValue extends PlasmicDataSourceContextValue {
|
|
4
5
|
globalVariants?: GlobalVariantSpec[];
|
|
5
6
|
globalContextsProps?: Record<string, any>;
|
|
6
7
|
loader: InternalPlasmicComponentLoader;
|
|
@@ -2543,7 +2543,7 @@ function usePlasmicComponent(spec, opts) {
|
|
|
2543
2543
|
return component;
|
|
2544
2544
|
}
|
|
2545
2545
|
|
|
2546
|
-
var _excluded = ["loader", "globalContextsProps", "variation"];
|
|
2546
|
+
var _excluded = ["loader", "globalContextsProps", "variation", "userAuthToken"];
|
|
2547
2547
|
var PlasmicComponentContext = /*#__PURE__*/React.createContext(false);
|
|
2548
2548
|
function PlasmicComponent(props) {
|
|
2549
2549
|
var component = props.component,
|
|
@@ -2561,6 +2561,7 @@ function PlasmicComponent(props) {
|
|
|
2561
2561
|
var loader = rootContext.loader,
|
|
2562
2562
|
globalContextsProps = rootContext.globalContextsProps,
|
|
2563
2563
|
variation = rootContext.variation,
|
|
2564
|
+
userAuthToken = rootContext.userAuthToken,
|
|
2564
2565
|
rest = _objectWithoutPropertiesLoose(rootContext, _excluded);
|
|
2565
2566
|
|
|
2566
2567
|
var Component = usePlasmicComponent({
|
|
@@ -2624,7 +2625,7 @@ function PlasmicComponent(props) {
|
|
|
2624
2625
|
}
|
|
2625
2626
|
|
|
2626
2627
|
return element;
|
|
2627
|
-
}, [Component, componentProps, loader, isRootLoader, component, projectId, globalContextsProps]);
|
|
2628
|
+
}, [Component, componentProps, loader, isRootLoader, component, projectId, globalContextsProps, userAuthToken]);
|
|
2628
2629
|
return element;
|
|
2629
2630
|
}
|
|
2630
2631
|
|