@measured/puck 0.14.2-canary.3f7fc52 → 0.14.2-canary.64303c8
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.
- package/dist/index.js +7 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -29296,10 +29296,10 @@ var setupZone = (data, zoneKey) => {
|
|
29296
29296
|
var getItem = (selector, data, dynamicProps = {}) => {
|
29297
29297
|
if (!selector.zone || selector.zone === rootDroppableId) {
|
29298
29298
|
const item2 = data.content[selector.index];
|
29299
|
-
return __spreadProps(__spreadValues({}, item2), { props: dynamicProps[item2.props.id] || item2.props });
|
29299
|
+
return (item2 == null ? void 0 : item2.props) ? __spreadProps(__spreadValues({}, item2), { props: dynamicProps[item2.props.id] || item2.props }) : void 0;
|
29300
29300
|
}
|
29301
29301
|
const item = setupZone(data, selector.zone).zones[selector.zone][selector.index];
|
29302
|
-
return __spreadProps(__spreadValues({}, item), { props: dynamicProps[item.props.id] || item.props });
|
29302
|
+
return (item == null ? void 0 : item.props) ? __spreadProps(__spreadValues({}, item), { props: dynamicProps[item.props.id] || item.props }) : void 0;
|
29303
29303
|
};
|
29304
29304
|
|
29305
29305
|
// components/ViewportControls/default-viewports.ts
|
@@ -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
|
@@ -33380,7 +33382,7 @@ var Canvas = () => {
|
|
33380
33382
|
{
|
33381
33383
|
className: getClassName24("root"),
|
33382
33384
|
style: {
|
33383
|
-
width: iframe.enabled ? ui.viewports.current.width :
|
33385
|
+
width: iframe.enabled ? ui.viewports.current.width : "100%",
|
33384
33386
|
height: zoomConfig.rootHeight,
|
33385
33387
|
transform: iframe.enabled ? `scale(${zoomConfig.zoom})` : void 0,
|
33386
33388
|
transition: showTransition ? "width 150ms ease-out, height 150ms ease-out, transform 150ms ease-out" : "",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@measured/puck",
|
3
|
-
"version": "0.14.2-canary.
|
3
|
+
"version": "0.14.2-canary.64303c8",
|
4
4
|
"author": "Measured Corporation Ltd <hello@measured.co>",
|
5
5
|
"repository": "measuredco/puck",
|
6
6
|
"bugs": "https://github.com/measuredco/puck/issues",
|
@@ -60,7 +60,7 @@
|
|
60
60
|
},
|
61
61
|
"dependencies": {
|
62
62
|
"@measured/auto-frame-component": "0.1.1",
|
63
|
-
"@measured/dnd": "16.6.0-canary.
|
63
|
+
"@measured/dnd": "16.6.0-canary.a2766de",
|
64
64
|
"deep-diff": "^1.0.2",
|
65
65
|
"react-hotkeys-hook": "^4.4.1",
|
66
66
|
"react-spinners": "^0.13.8",
|