@blocklet/pages-kit 0.2.428 → 0.2.429
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.
|
@@ -50,7 +50,7 @@ exports.customComponentStates = void 0;
|
|
|
50
50
|
exports.useComponent = useComponent;
|
|
51
51
|
exports.transpileAndLoadScript = transpileAndLoadScript;
|
|
52
52
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
53
|
-
const
|
|
53
|
+
const css_1 = require("@emotion/css");
|
|
54
54
|
const set_1 = __importDefault(require("lodash/set"));
|
|
55
55
|
const react_1 = require("react");
|
|
56
56
|
const zustand_1 = require("zustand");
|
|
@@ -69,7 +69,7 @@ function importCustomComponent(m, { componentId }) {
|
|
|
69
69
|
else if (!css)
|
|
70
70
|
Component = m.default;
|
|
71
71
|
else {
|
|
72
|
-
Component = (props) => ((0, jsx_runtime_1.jsxs)(
|
|
72
|
+
Component = (props) => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("style", { children: css }), (0, jsx_runtime_1.jsx)(m.default, Object.assign({}, props, { className: (0, css_1.cx)(props.className, `CustomComponent_${componentId}`) }))] }));
|
|
73
73
|
}
|
|
74
74
|
return Component;
|
|
75
75
|
}
|