@plasmicapp/react-web 0.2.282 → 0.2.284
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/all.d.ts +2 -2
- 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/dist/render/PlasmicSlot.d.ts +2 -2
- package/package.json +2 -2
- package/skinny/dist/index.js +3 -2
- package/skinny/dist/index.js.map +1 -1
- package/skinny/dist/render/PlasmicSlot.d.ts +2 -2
package/dist/react-web.esm.js
CHANGED
|
@@ -705,7 +705,8 @@ function wrapFlexContainerChildren(children, hasGap) {
|
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
707
|
function createPlasmicElement(override, defaultRoot, defaultProps, wrapChildrenInFlex) {
|
|
708
|
-
if (!override ||
|
|
708
|
+
if (!override ||
|
|
709
|
+
(typeof override === "object" && Object.keys(override).length === 0)) {
|
|
709
710
|
return createElementWithChildren(defaultRoot, defaultProps, defaultProps.children);
|
|
710
711
|
}
|
|
711
712
|
var override2 = deriveOverride(override);
|
|
@@ -1543,7 +1544,7 @@ function renderPlasmicSlot(opts) {
|
|
|
1543
1544
|
if (nonEmptyProps.length === 0) {
|
|
1544
1545
|
// No attrs to apply to the slot (which means the slot is unstyled), then
|
|
1545
1546
|
// just render the content directly; no need for style wrapper.
|
|
1546
|
-
return
|
|
1547
|
+
return content;
|
|
1547
1548
|
}
|
|
1548
1549
|
return React.createElement(as || "span", mergeProps({ className: "__wab_slot" }, rest), content);
|
|
1549
1550
|
}
|