@measured/puck-plugin-heading-analyzer 0.14.2-canary.3f7fc52 → 0.14.2-canary.dc93789

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -75924,10 +75924,11 @@ var require_dist2 = __commonJS({
75924
75924
  children: category.components.map((componentName, i2) => {
75925
75925
  var _a2;
75926
75926
  matchedComponents.push(componentName);
75927
+ const componentConf = config.components[componentName] || {};
75927
75928
  return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
75928
75929
  ComponentList.Item,
75929
75930
  {
75930
- label: (_a2 = config.components[componentName]["label"]) != null ? _a2 : componentName,
75931
+ label: (_a2 = componentConf["label"]) != null ? _a2 : componentName,
75931
75932
  name: componentName,
75932
75933
  index: i2
75933
75934
  },
@@ -75951,11 +75952,12 @@ var require_dist2 = __commonJS({
75951
75952
  title: ((_c = ui.componentList.other) == null ? void 0 : _c.title) || "Other",
75952
75953
  children: remainingComponents.map((componentName, i2) => {
75953
75954
  var _a2;
75955
+ const componentConf = config.components[componentName] || {};
75954
75956
  return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
75955
75957
  ComponentList.Item,
75956
75958
  {
75957
75959
  name: componentName,
75958
- label: (_a2 = config.components[componentName]["label"]) != null ? _a2 : componentName,
75960
+ label: (_a2 = componentConf["label"]) != null ? _a2 : componentName,
75959
75961
  index: i2
75960
75962
  },
75961
75963
  componentName
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck-plugin-heading-analyzer",
3
- "version": "0.14.2-canary.3f7fc52",
3
+ "version": "0.14.2-canary.dc93789",
4
4
  "author": "Measured Corporation Ltd <hello@measured.co>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",
@@ -18,7 +18,7 @@
18
18
  "dist"
19
19
  ],
20
20
  "devDependencies": {
21
- "@measured/puck": "^0.14.2-canary.3f7fc52",
21
+ "@measured/puck": "^0.14.2-canary.dc93789",
22
22
  "@types/react": "^18.2.0",
23
23
  "@types/react-dom": "^18.2.0",
24
24
  "eslint": "^7.32.0",