@blocklet/pages-kit 0.5.7 → 0.5.9

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.
@@ -22,6 +22,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
22
22
  __setModuleDefault(result, mod);
23
23
  return result;
24
24
  };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
25
28
  Object.defineProperty(exports, "__esModule", { value: true });
26
29
  exports.initDynamicParsePropertyValueHandlers = exports.RenderNestedComponent = void 0;
27
30
  exports.componentUMDName = componentUMDName;
@@ -31,10 +34,11 @@ exports.safeYamlParse = safeYamlParse;
31
34
  exports.parsePropertyValue = parsePropertyValue;
32
35
  exports.assignNullableFields = assignNullableFields;
33
36
  exports.getComponentDependencies = getComponentDependencies;
37
+ const snakeCase_1 = __importDefault(require("lodash/snakeCase"));
34
38
  const yaml = __importStar(require("yaml"));
35
39
  const common_1 = require("./common");
36
40
  function componentUMDName({ componentId }) {
37
- return `PagesCustomComponent${componentId}`;
41
+ return `PagesCustomComponent${(0, snakeCase_1.default)(componentId)}`;
38
42
  }
39
43
  function mergeComponent({ componentId, getComponent, locale, defaultLocale, properties: parameters, }) {
40
44
  let component = getComponent(componentId);