@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 CHANGED
@@ -12322,12 +12322,12 @@ declare function PlasmicSlot<T extends keyof JSX.IntrinsicElements = "div">(prop
12322
12322
  as?: T;
12323
12323
  defaultContents?: React$1.ReactNode;
12324
12324
  value?: React$1.ReactNode;
12325
- }): React$1.JSX.Element | null;
12325
+ }): string | number | true | any[] | React$1.ReactElement<any, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null;
12326
12326
  declare function renderPlasmicSlot<T extends keyof JSX.IntrinsicElements = "div">(opts: {
12327
12327
  as?: T;
12328
12328
  defaultContents?: React$1.ReactNode;
12329
12329
  value?: React$1.ReactNode;
12330
- }): React$1.JSX.Element | null;
12330
+ }): string | number | true | any[] | React$1.ReactElement<any, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null;
12331
12331
 
12332
12332
  type Queries = {
12333
12333
  [name: string]: string;
package/dist/index.cjs.js CHANGED
@@ -723,7 +723,8 @@ function wrapFlexContainerChildren(children, hasGap) {
723
723
  }
724
724
  }
725
725
  function createPlasmicElement(override, defaultRoot, defaultProps, wrapChildrenInFlex) {
726
- if (!override || Object.keys(override).length === 0) {
726
+ if (!override ||
727
+ (typeof override === "object" && Object.keys(override).length === 0)) {
727
728
  return createElementWithChildren(defaultRoot, defaultProps, defaultProps.children);
728
729
  }
729
730
  var override2 = deriveOverride(override);
@@ -1561,7 +1562,7 @@ function renderPlasmicSlot(opts) {
1561
1562
  if (nonEmptyProps.length === 0) {
1562
1563
  // No attrs to apply to the slot (which means the slot is unstyled), then
1563
1564
  // just render the content directly; no need for style wrapper.
1564
- return React__namespace.createElement(React__namespace.Fragment, null, content);
1565
+ return content;
1565
1566
  }
1566
1567
  return React__namespace.createElement(as || "span", mergeProps({ className: "__wab_slot" }, rest), content);
1567
1568
  }