@measured/puck-plugin-heading-analyzer 0.14.2-canary.3f7fc52 → 0.14.2-canary.4dbd487
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +8 -6
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -72937,10 +72937,10 @@ var require_dist2 = __commonJS({
|
|
72937
72937
|
var getItem2 = (selector, data, dynamicProps = {}) => {
|
72938
72938
|
if (!selector.zone || selector.zone === rootDroppableId2) {
|
72939
72939
|
const item2 = data.content[selector.index];
|
72940
|
-
return __spreadProps2(__spreadValues2({}, item2), { props: dynamicProps[item2.props.id] || item2.props });
|
72940
|
+
return (item2 == null ? void 0 : item2.props) ? __spreadProps2(__spreadValues2({}, item2), { props: dynamicProps[item2.props.id] || item2.props }) : void 0;
|
72941
72941
|
}
|
72942
72942
|
const item = setupZone2(data, selector.zone).zones[selector.zone][selector.index];
|
72943
|
-
return __spreadProps2(__spreadValues2({}, item), { props: dynamicProps[item.props.id] || item.props });
|
72943
|
+
return (item == null ? void 0 : item.props) ? __spreadProps2(__spreadValues2({}, item), { props: dynamicProps[item.props.id] || item.props }) : void 0;
|
72944
72944
|
};
|
72945
72945
|
init_react_import2();
|
72946
72946
|
var defaultViewports2 = [
|
@@ -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 =
|
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 =
|
75960
|
+
label: (_a2 = componentConf["label"]) != null ? _a2 : componentName,
|
75959
75961
|
index: i2
|
75960
75962
|
},
|
75961
75963
|
componentName
|
@@ -77468,10 +77470,10 @@ var setupZone = (data, zoneKey) => {
|
|
77468
77470
|
var getItem = (selector, data, dynamicProps = {}) => {
|
77469
77471
|
if (!selector.zone || selector.zone === rootDroppableId) {
|
77470
77472
|
const item2 = data.content[selector.index];
|
77471
|
-
return __spreadProps(__spreadValues({}, item2), { props: dynamicProps[item2.props.id] || item2.props });
|
77473
|
+
return (item2 == null ? void 0 : item2.props) ? __spreadProps(__spreadValues({}, item2), { props: dynamicProps[item2.props.id] || item2.props }) : void 0;
|
77472
77474
|
}
|
77473
77475
|
const item = setupZone(data, selector.zone).zones[selector.zone][selector.index];
|
77474
|
-
return __spreadProps(__spreadValues({}, item), { props: dynamicProps[item.props.id] || item.props });
|
77476
|
+
return (item == null ? void 0 : item.props) ? __spreadProps(__spreadValues({}, item), { props: dynamicProps[item.props.id] || item.props }) : void 0;
|
77475
77477
|
};
|
77476
77478
|
|
77477
77479
|
// ../core/lib/get-zone-id.ts
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@measured/puck-plugin-heading-analyzer",
|
3
|
-
"version": "0.14.2-canary.
|
3
|
+
"version": "0.14.2-canary.4dbd487",
|
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.
|
21
|
+
"@measured/puck": "^0.14.2-canary.4dbd487",
|
22
22
|
"@types/react": "^18.2.0",
|
23
23
|
"@types/react-dom": "^18.2.0",
|
24
24
|
"eslint": "^7.32.0",
|