@plasmicapp/react-web 0.2.228 → 0.2.229
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.cjs.js +13 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/react-web.esm.js +13 -1
- package/dist/react-web.esm.js.map +1 -1
- package/package.json +3 -3
- package/skinny/dist/index.js +2 -2
- package/skinny/dist/plume/checkbox/index.js +1 -1
- package/skinny/dist/plume/menu/index.js +1 -1
- package/skinny/dist/plume/menu-button/index.js +1 -1
- package/skinny/dist/plume/select/index.js +1 -1
- package/skinny/dist/plume/switch/index.js +1 -1
- package/skinny/dist/{ssr-04cb202c.js → ssr-b32a66e3.js} +15 -3
- package/skinny/dist/{ssr-04cb202c.js.map → ssr-b32a66e3.js.map} +1 -1
package/dist/react-web.esm.js
CHANGED
|
@@ -1644,7 +1644,19 @@ function PlasmicRootProvider(props) {
|
|
|
1644
1644
|
React.createElement(PlasmicDataSourceContextProvider, { value: dataSourceContextValue },
|
|
1645
1645
|
React.createElement(PlasmicTranslatorContext.Provider, { value: (_a = props.i18n) !== null && _a !== void 0 ? _a : props.translator },
|
|
1646
1646
|
React.createElement(PlasmicHeadContext.Provider, { value: props.Head },
|
|
1647
|
-
React.createElement(
|
|
1647
|
+
React.createElement(SafePlasmicLinkProvider, { Link: (_b = props.Link) !== null && _b !== void 0 ? _b : PlasmicLinkInternal }, children))))))));
|
|
1648
|
+
}
|
|
1649
|
+
/**
|
|
1650
|
+
* A PlasmicLinkProvider that anticipates PlasmicLinkProvider may not exist yet from
|
|
1651
|
+
* @plasmicapp/host if the user is using an older version
|
|
1652
|
+
*/
|
|
1653
|
+
function SafePlasmicLinkProvider(props) {
|
|
1654
|
+
if (PlasmicLinkProvider) {
|
|
1655
|
+
return React.createElement(PlasmicLinkProvider, __assign({}, props));
|
|
1656
|
+
}
|
|
1657
|
+
else {
|
|
1658
|
+
return React.createElement(React.Fragment, null, props.children);
|
|
1659
|
+
}
|
|
1648
1660
|
}
|
|
1649
1661
|
var useIsSSR = useIsSSR$1;
|
|
1650
1662
|
function useHasPlasmicRoot() {
|