@gravity-platform/unoverse-react 0.0.4 → 0.0.5
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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7268,7 +7268,7 @@ function UnoverseComponent({ client, uri, data, onAction, theme, isolate = true
|
|
|
7268
7268
|
const propDefaults2 = Object.fromEntries(
|
|
7269
7269
|
Object.entries(def.props ?? {}).map(([k, v]) => [k, v?.default])
|
|
7270
7270
|
);
|
|
7271
|
-
const merged = data ??
|
|
7271
|
+
const merged = { ...propDefaults2, ...data ?? {} };
|
|
7272
7272
|
const body = /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
7273
7273
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("style", { children: keyframesCss(activeTheme) }),
|
|
7274
7274
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { display: "contents", ...activeTheme.root }, children: renderNode(def.root, merged, onAction, activeTheme) })
|