@plasmicapp/react-web 0.2.227 → 0.2.228
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 +3 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/react-web.esm.js +3 -2
- package/dist/react-web.esm.js.map +1 -1
- package/package.json +2 -2
- 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-3ce4cefe.js → ssr-04cb202c.js} +5 -4
- package/skinny/dist/ssr-04cb202c.js.map +1 -0
- package/skinny/dist/ssr-3ce4cefe.js.map +0 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1402,12 +1402,13 @@ var PlasmicLink = React__default['default'].forwardRef(function PlasmicLink(prop
|
|
|
1402
1402
|
var _a;
|
|
1403
1403
|
// The usePlasmicLinkMaybe function may be undefined, if host is not up-to-date
|
|
1404
1404
|
var Link = (_a = host.usePlasmicLinkMaybe === null || host.usePlasmicLinkMaybe === void 0 ? void 0 : host.usePlasmicLinkMaybe()) !== null && _a !== void 0 ? _a : PlasmicLinkInternal;
|
|
1405
|
-
if (Link === PlasmicLink) {
|
|
1405
|
+
if (Link === PlasmicLink || Link === PlasmicLinkInternal) {
|
|
1406
1406
|
// Just in case, break the cycle
|
|
1407
1407
|
return React__default['default'].createElement(PlasmicLinkInternal, __assign({}, props, { ref: ref }));
|
|
1408
1408
|
}
|
|
1409
1409
|
else {
|
|
1410
|
-
|
|
1410
|
+
// Don't pass component/platform props to non-PlasmicLinkInternal
|
|
1411
|
+
return React__default['default'].createElement(Link, __assign({}, omit(props, "component", "platform"), { ref: ref }));
|
|
1411
1412
|
}
|
|
1412
1413
|
});
|
|
1413
1414
|
var PlasmicLinkInternal = React__default['default'].forwardRef(function PlasmicLinkInternal(props, ref) {
|