@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.
@@ -3,9 +3,9 @@ export declare function PlasmicSlot<T extends keyof JSX.IntrinsicElements = "div
3
3
  as?: T;
4
4
  defaultContents?: React.ReactNode;
5
5
  value?: React.ReactNode;
6
- }): React.JSX.Element | null;
6
+ }): string | number | true | any[] | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null;
7
7
  export declare function renderPlasmicSlot<T extends keyof JSX.IntrinsicElements = "div">(opts: {
8
8
  as?: T;
9
9
  defaultContents?: React.ReactNode;
10
10
  value?: React.ReactNode;
11
- }): React.JSX.Element | null;
11
+ }): string | number | true | any[] | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicapp/react-web",
3
- "version": "0.2.282",
3
+ "version": "0.2.284",
4
4
  "description": "plasmic library for rendering in the presentational style",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
@@ -157,5 +157,5 @@
157
157
  "react": ">=16.8.0",
158
158
  "react-dom": ">=16.8.0"
159
159
  },
160
- "gitHead": "1db3a3b08d369312fc417bf1da9c675dc50cfed1"
160
+ "gitHead": "551e4cd8c4364a271198fbcbe3c7789c87aed90f"
161
161
  }
@@ -213,7 +213,8 @@ function wrapFlexContainerChildren(children, hasGap) {
213
213
  }
214
214
  }
215
215
  function createPlasmicElement(override, defaultRoot, defaultProps, wrapChildrenInFlex) {
216
- if (!override || Object.keys(override).length === 0) {
216
+ if (!override ||
217
+ (typeof override === "object" && Object.keys(override).length === 0)) {
217
218
  return createElementWithChildren(defaultRoot, defaultProps, defaultProps.children);
218
219
  }
219
220
  var override2 = deriveOverride(override);
@@ -561,7 +562,7 @@ function renderPlasmicSlot(opts) {
561
562
  if (nonEmptyProps.length === 0) {
562
563
  // No attrs to apply to the slot (which means the slot is unstyled), then
563
564
  // just render the content directly; no need for style wrapper.
564
- return React.createElement(React.Fragment, null, content);
565
+ return content;
565
566
  }
566
567
  return React.createElement(as || "span", mergeProps({ className: "__wab_slot" }, rest), content);
567
568
  }