@neowhale/storefront 0.2.52 → 0.2.53

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.
@@ -380,10 +380,15 @@ var WhaleStorefront = (function (exports) {
380
380
  // src/shims/jsx-runtime-global.ts
381
381
  var R2 = globalThis.React;
382
382
  function jsx(type, props, key) {
383
+ if (props == null) props = {};
383
384
  const { children, ...rest } = props;
384
385
  if (key !== void 0) rest.key = key;
385
- if (children === void 0) return R2.createElement(type, rest);
386
- if (Array.isArray(children)) return R2.createElement(type, rest, ...children);
386
+ if (children === void 0 || children === null) {
387
+ return R2.createElement(type, rest);
388
+ }
389
+ if (Array.isArray(children)) {
390
+ return R2.createElement.apply(null, [type, rest].concat(children));
391
+ }
387
392
  return R2.createElement(type, rest, children);
388
393
  }
389
394
  var Fragment2 = R2.Fragment;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neowhale/storefront",
3
- "version": "0.2.52",
3
+ "version": "0.2.53",
4
4
  "description": "React/Next.js SDK for WhaleTools storefronts — cart, auth, analytics, and more",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",