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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/index.js +4 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -32535,10 +32535,11 @@ var useComponentList = (config, ui) => {
32535
32535
  children: category.components.map((componentName, i) => {
32536
32536
  var _a2;
32537
32537
  matchedComponents.push(componentName);
32538
+ const componentConf = config.components[componentName] || {};
32538
32539
  return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
32539
32540
  ComponentList.Item,
32540
32541
  {
32541
- label: (_a2 = config.components[componentName]["label"]) != null ? _a2 : componentName,
32542
+ label: (_a2 = componentConf["label"]) != null ? _a2 : componentName,
32542
32543
  name: componentName,
32543
32544
  index: i
32544
32545
  },
@@ -32562,11 +32563,12 @@ var useComponentList = (config, ui) => {
32562
32563
  title: ((_c = ui.componentList.other) == null ? void 0 : _c.title) || "Other",
32563
32564
  children: remainingComponents.map((componentName, i) => {
32564
32565
  var _a2;
32566
+ const componentConf = config.components[componentName] || {};
32565
32567
  return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
32566
32568
  ComponentList.Item,
32567
32569
  {
32568
32570
  name: componentName,
32569
- label: (_a2 = config.components[componentName]["label"]) != null ? _a2 : componentName,
32571
+ label: (_a2 = componentConf["label"]) != null ? _a2 : componentName,
32570
32572
  index: i
32571
32573
  },
32572
32574
  componentName
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck",
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",