@blocklet/pages-kit 0.4.84 → 0.4.86
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/lib/cjs/components/CustomComponentRenderer/state.js +2 -2
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/cjs/utils/inject-global-components.js +9 -6
- package/lib/cjs/utils/typescript/builtin-module-transformer.js +4 -4
- package/lib/esm/components/CustomComponentRenderer/state.js +1 -1
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/utils/inject-global-components.js +9 -6
- package/lib/esm/utils/typescript/builtin-module-transformer.js +2 -2
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/lib/types/utils/typescript/builtin-module-transformer.d.ts +1 -1
- package/package.json +3 -3
|
@@ -33,7 +33,7 @@ exports.transpileAndLoadScript = transpileAndLoadScript;
|
|
|
33
33
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
34
34
|
const css_1 = require("@emotion/css");
|
|
35
35
|
const material_1 = require("@mui/material");
|
|
36
|
-
const
|
|
36
|
+
const isEmpty_1 = __importDefault(require("lodash/isEmpty"));
|
|
37
37
|
const set_1 = __importDefault(require("lodash/set"));
|
|
38
38
|
const react_1 = require("react");
|
|
39
39
|
const react_helmet_1 = require("react-helmet");
|
|
@@ -332,7 +332,7 @@ function useTranspileComponent({ componentId, locale, properties, dev: { default
|
|
|
332
332
|
componentId,
|
|
333
333
|
getComponent: (componentId) => {
|
|
334
334
|
// setting properties from code if it's not set from components props
|
|
335
|
-
if (propertiesFromCode && (0,
|
|
335
|
+
if (propertiesFromCode && (0, isEmpty_1.default)(components?.[componentId]?.data?.properties)) {
|
|
336
336
|
return {
|
|
337
337
|
...components?.[componentId]?.data,
|
|
338
338
|
properties: propertiesFromCode,
|