@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.
@@ -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(PlasmicLinkProvider, { Link: (_b = props.Link) !== null && _b !== void 0 ? _b : PlasmicLinkInternal }, children))))))));
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() {