@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.
- package/dist/index.js +4 -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 =
|
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 =
|
32571
|
+
label: (_a2 = componentConf["label"]) != null ? _a2 : componentName,
|
32570
32572
|
index: i
|
32571
32573
|
},
|
32572
32574
|
componentName
|
package/package.json
CHANGED