@measured/puck 0.14.1-canary.5c05f94 → 0.14.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -33158,6 +33158,7 @@ var ViewportControls = ({
|
|
33158
33158
|
onViewportChange,
|
33159
33159
|
onZoom
|
33160
33160
|
}) => {
|
33161
|
+
var _a, _b;
|
33161
33162
|
const { viewports } = useAppContext();
|
33162
33163
|
const defaultsContainAutoZoom = defaultZoomOptions.find(
|
33163
33164
|
(option) => option.value === autoZoom
|
@@ -33191,7 +33192,7 @@ var ViewportControls = ({
|
|
33191
33192
|
IconButton,
|
33192
33193
|
{
|
33193
33194
|
title: "Zoom viewport out",
|
33194
|
-
disabled: zoom <= zoomOptions[0].value,
|
33195
|
+
disabled: zoom <= ((_a = zoomOptions[0]) == null ? void 0 : _a.value),
|
33195
33196
|
onClick: (e) => {
|
33196
33197
|
e.stopPropagation();
|
33197
33198
|
onZoom(
|
@@ -33208,7 +33209,7 @@ var ViewportControls = ({
|
|
33208
33209
|
IconButton,
|
33209
33210
|
{
|
33210
33211
|
title: "Zoom viewport in",
|
33211
|
-
disabled: zoom >= zoomOptions[zoomOptions.length - 1].value,
|
33212
|
+
disabled: zoom >= ((_b = zoomOptions[zoomOptions.length - 1]) == null ? void 0 : _b.value),
|
33212
33213
|
onClick: (e) => {
|
33213
33214
|
e.stopPropagation();
|
33214
33215
|
onZoom(
|
package/package.json
CHANGED