@measured/puck 0.17.0-canary.9de5e5e → 0.17.0-canary.bda6153

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,9 @@ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
8
  var __getProtoOf = Object.getPrototypeOf;
9
9
  var __hasOwnProp = Object.prototype.hasOwnProperty;
10
10
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
+ var __typeError = (msg) => {
12
+ throw TypeError(msg);
13
+ };
11
14
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
15
  var __spreadValues = (a, b) => {
13
16
  for (var prop in b || (b = {}))
@@ -55,6 +58,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
55
58
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
56
59
  mod
57
60
  ));
61
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
62
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
63
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
64
+ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
58
65
  var __async = (__this, __arguments, generator) => {
59
66
  return new Promise((resolve, reject) => {
60
67
  var fulfilled = (value) => {
@@ -236,6 +243,9 @@ export {
236
243
  __objRest,
237
244
  __commonJS,
238
245
  __toESM,
246
+ __privateGet,
247
+ __privateAdd,
248
+ __privateSet,
239
249
  __async,
240
250
  init_react_import,
241
251
  rootDroppableId,
package/dist/index.css CHANGED
@@ -136,7 +136,7 @@
136
136
 
137
137
  /* styles.css */
138
138
  #frame-root {
139
- height: 100vh;
139
+ min-height: 100vh;
140
140
  }
141
141
 
142
142
  /* css-module:/home/runner/work/puck/puck/packages/core/components/ActionBar/styles.module.css/#css-module-data */
@@ -1065,14 +1065,15 @@ textarea._Input-input_1l5m8_47 {
1065
1065
  }
1066
1066
 
1067
1067
  /* css-module:/home/runner/work/puck/puck/packages/core/components/Drawer/styles.module.css/#css-module-data */
1068
- ._Drawer_1pb1t_1 {
1068
+ ._Drawer_1ob9x_1 {
1069
1069
  display: flex;
1070
1070
  flex-direction: column;
1071
1071
  font-family: var(--puck-font-family);
1072
1072
  gap: 12px;
1073
1073
  }
1074
- ._DrawerItem-draggable_1pb1t_8 {
1074
+ ._DrawerItem-draggable_1ob9x_8 {
1075
1075
  background: var(--puck-color-white);
1076
+ cursor: grab;
1076
1077
  padding: 12px;
1077
1078
  display: flex;
1078
1079
  border: 1px var(--puck-color-grey-09) solid;
@@ -1082,40 +1083,39 @@ textarea._Input-input_1l5m8_47 {
1082
1083
  align-items: center;
1083
1084
  transition: background-color 50ms ease-in, color 50ms ease-in;
1084
1085
  }
1085
- ._DrawerItem--disabled_1pb1t_20 ._DrawerItem-draggable_1pb1t_8 {
1086
+ ._DrawerItem--disabled_1ob9x_21 ._DrawerItem-draggable_1ob9x_8 {
1086
1087
  background: var(--puck-color-grey-11);
1087
1088
  color: var(--puck-color-grey-05);
1088
1089
  cursor: not-allowed;
1089
1090
  }
1090
- ._DrawerItem_1pb1t_8:focus-visible {
1091
+ ._DrawerItem_1ob9x_8:focus-visible {
1091
1092
  outline: 0;
1092
1093
  }
1093
- ._Drawer_1pb1t_1:not(._Drawer--isDraggingFrom_1pb1t_30) ._DrawerItem_1pb1t_8:focus-visible ._DrawerItem-draggable_1pb1t_8 {
1094
+ ._Drawer_1ob9x_1:not(._Drawer--isDraggingFrom_1ob9x_31) ._DrawerItem_1ob9x_8:focus-visible ._DrawerItem-draggable_1ob9x_8 {
1094
1095
  border-radius: 4px;
1095
1096
  outline: 2px solid var(--puck-color-azure-05);
1096
1097
  outline-offset: 2px;
1097
1098
  }
1098
1099
  @media (hover: hover) and (pointer: fine) {
1099
- ._Drawer_1pb1t_1:not(._Drawer--isDraggingFrom_1pb1t_30) ._DrawerItem_1pb1t_8:not(._DrawerItem--disabled_1pb1t_20) ._DrawerItem-draggable_1pb1t_8:hover {
1100
+ ._Drawer_1ob9x_1:not(._Drawer--isDraggingFrom_1ob9x_31) ._DrawerItem_1ob9x_8:not(._DrawerItem--disabled_1ob9x_21) ._DrawerItem-draggable_1ob9x_8:hover {
1100
1101
  background-color: var(--puck-color-azure-12);
1101
1102
  color: var(--puck-color-azure-04);
1102
1103
  transition: none;
1103
1104
  }
1104
1105
  }
1105
- ._DrawerItem-name_1pb1t_48 {
1106
+ ._DrawerItem-name_1ob9x_49 {
1106
1107
  overflow-x: hidden;
1107
1108
  text-overflow: ellipsis;
1108
1109
  white-space: nowrap;
1109
1110
  }
1110
1111
 
1111
1112
  /* css-module:/home/runner/work/puck/puck/packages/core/components/DraggableComponent/styles.module.css/#css-module-data */
1112
- ._DraggableComponent_33bhx_1 {
1113
- opacity: 0;
1113
+ ._DraggableComponent_1uqah_1 {
1114
1114
  position: absolute;
1115
1115
  pointer-events: none;
1116
1116
  --overlay-background: color-mix( in srgb, var(--puck-color-azure-08) 30%, transparent );
1117
1117
  }
1118
- ._DraggableComponent-overlay_33bhx_13 {
1118
+ ._DraggableComponent-overlay_1uqah_12 {
1119
1119
  cursor: pointer;
1120
1120
  height: 100%;
1121
1121
  width: 100%;
@@ -1127,10 +1127,10 @@ textarea._Input-input_1l5m8_47 {
1127
1127
  box-sizing: border-box;
1128
1128
  z-index: 1;
1129
1129
  }
1130
- ._DraggableComponent_33bhx_1:focus-visible > ._DraggableComponent-overlay_33bhx_13 {
1130
+ ._DraggableComponent_1uqah_1:focus-visible > ._DraggableComponent-overlay_1uqah_12 {
1131
1131
  outline: 1px solid var(--puck-color-azure-05);
1132
1132
  }
1133
- ._DraggableComponent-loadingOverlay_33bhx_30 {
1133
+ ._DraggableComponent-loadingOverlay_1uqah_29 {
1134
1134
  background: var(--puck-color-white);
1135
1135
  color: var(--puck-color-grey-03);
1136
1136
  border-radius: 4px;
@@ -1145,23 +1145,29 @@ textarea._Input-input_1l5m8_47 {
1145
1145
  opacity: 0.8;
1146
1146
  z-index: 1;
1147
1147
  }
1148
- ._DraggableComponent--hover_33bhx_46:not(._DraggableComponent--isLocked_33bhx_46) > ._DraggableComponent-overlay_33bhx_13 {
1148
+ ._DraggableComponent--hover_1uqah_45:not(._DraggableComponent--isLocked_1uqah_45) > ._DraggableComponent-overlay_1uqah_12 {
1149
1149
  background: var(--overlay-background);
1150
1150
  }
1151
- ._DraggableComponent--hover_33bhx_46 > ._DraggableComponent-overlay_33bhx_13 {
1151
+ ._DraggableComponent--hover_1uqah_45 > ._DraggableComponent-overlay_1uqah_12 {
1152
1152
  outline: 2px var(--puck-color-azure-09) solid;
1153
1153
  }
1154
- ._DraggableComponent--isSelected_33bhx_55 > ._DraggableComponent-overlay_33bhx_13 {
1154
+ ._DraggableComponent--isSelected_1uqah_54 > ._DraggableComponent-overlay_1uqah_12 {
1155
1155
  outline-color: var(--puck-color-azure-07);
1156
1156
  }
1157
- ._DraggableComponent_33bhx_1:has(._DraggableComponent--hover_33bhx_46 > ._DraggableComponent-overlay_33bhx_13) > ._DraggableComponent-overlay_33bhx_13 {
1157
+ ._DraggableComponent_1uqah_1:has(._DraggableComponent--hover_1uqah_45 > ._DraggableComponent-overlay_1uqah_12) > ._DraggableComponent-overlay_1uqah_12 {
1158
1158
  display: none;
1159
1159
  }
1160
- ._DraggableComponent-actionsOverlay_33bhx_67 {
1160
+ ._DraggableComponent-actionsOverlay_1uqah_66 {
1161
1161
  position: sticky;
1162
+ opacity: 0;
1163
+ pointer-events: none;
1162
1164
  z-index: 2;
1163
1165
  }
1164
- ._DraggableComponent-actions_33bhx_67 {
1166
+ ._DraggableComponent--isSelected_1uqah_54 ._DraggableComponent-actionsOverlay_1uqah_66 {
1167
+ opacity: 1;
1168
+ pointer-events: auto;
1169
+ }
1170
+ ._DraggableComponent-actions_1uqah_66 {
1165
1171
  position: absolute;
1166
1172
  width: auto;
1167
1173
  cursor: grab;
@@ -1172,7 +1178,7 @@ textarea._Input-input_1l5m8_47 {
1172
1178
  }
1173
1179
 
1174
1180
  /* css-module:/home/runner/work/puck/puck/packages/core/components/DropZone/styles.module.css/#css-module-data */
1175
- ._DropZone_q2ip3_1 {
1181
+ ._DropZone_74ebh_1 {
1176
1182
  --drop-animation-ms: 250ms;
1177
1183
  --resize-animation-ms: 150ms;
1178
1184
  position: relative;
@@ -1181,46 +1187,49 @@ textarea._Input-input_1l5m8_47 {
1181
1187
  outline-offset: -2px;
1182
1188
  width: 100%;
1183
1189
  }
1184
- ._DropZone--hasChildren_q2ip3_12 {
1190
+ ._DropZone--hasChildren_74ebh_12 {
1185
1191
  min-height: 0;
1186
1192
  }
1187
- ._DropZone_q2ip3_1:empty {
1193
+ ._DropZone_74ebh_1:empty {
1188
1194
  min-height: var(--min-empty-height);
1189
1195
  }
1190
- ._DropZone--hasChildren_q2ip3_12:not(._DropZone--userIsDragging_q2ip3_20) {
1196
+ ._DropZone--hasChildren_74ebh_12:not(._DropZone--userIsDragging_74ebh_20) {
1191
1197
  transition: min-height var(--resize-animation-ms) var(--drop-animation-ms) ease-in;
1192
1198
  }
1193
- ._DropZone_q2ip3_1:empty:not(._DropZone--userIsDragging_q2ip3_20) {
1199
+ ._DropZone_74ebh_1:empty:not(._DropZone--userIsDragging_74ebh_20) {
1194
1200
  transition: min-height var(--resize-animation-ms) ease-in;
1195
1201
  }
1196
- ._DropZone--isAreaSelected_q2ip3_29,
1197
- ._DropZone--hoveringOverArea_q2ip3_30:not(._DropZone--isRootZone_q2ip3_30) {
1202
+ ._DropZone--isAreaSelected_74ebh_29,
1203
+ ._DropZone--hoveringOverArea_74ebh_30:not(._DropZone--isRootZone_74ebh_30) {
1198
1204
  background: color-mix(in srgb, var(--puck-color-azure-09) 30%, transparent);
1199
1205
  outline: 2px dashed var(--puck-color-azure-08);
1200
1206
  }
1201
- ._DropZone_q2ip3_1:empty {
1207
+ ._DropZone_74ebh_1:empty {
1202
1208
  background: color-mix(in srgb, var(--puck-color-azure-09) 30%, transparent);
1203
1209
  outline: 2px dashed var(--puck-color-azure-08);
1204
1210
  }
1205
- ._DropZone--isDestination_q2ip3_40 {
1211
+ ._DropZone--isDestination_74ebh_40 {
1206
1212
  outline: 2px dashed var(--puck-color-azure-04) !important;
1207
1213
  }
1208
- ._DropZone--isDestination_q2ip3_40:not(._DropZone--isRootZone_q2ip3_30) {
1214
+ ._DropZone--isDestination_74ebh_40:not(._DropZone--isRootZone_74ebh_30) {
1209
1215
  background: color-mix(in srgb, var(--puck-color-azure-09) 30%, transparent) !important;
1210
1216
  }
1211
- ._DropZone-item_q2ip3_52 {
1217
+ ._DropZone-item_74ebh_52 {
1212
1218
  position: relative;
1213
1219
  }
1214
- ._DropZone-hitbox_q2ip3_56 {
1220
+ ._DropZone-hitbox_74ebh_56 {
1215
1221
  position: absolute;
1216
1222
  bottom: -12px;
1217
1223
  height: 24px;
1218
1224
  width: 100%;
1219
1225
  z-index: 1;
1220
1226
  }
1221
- ._DropZone--isEnabled_q2ip3_64._DropZone--userIsDragging_q2ip3_20 {
1227
+ ._DropZone--isEnabled_74ebh_64._DropZone--userIsDragging_74ebh_20 {
1222
1228
  outline: 2px dashed var(--puck-color-azure-06);
1223
1229
  }
1230
+ ._DropZone_74ebh_1 > *:not([data-puck-component]) {
1231
+ opacity: 0;
1232
+ }
1224
1233
 
1225
1234
  /* css-module:/home/runner/work/puck/puck/packages/core/components/SidebarSection/styles.module.css/#css-module-data */
1226
1235
  ._SidebarSection_125qe_1 {
@@ -1723,7 +1732,7 @@ textarea._Input-input_1l5m8_47 {
1723
1732
  }
1724
1733
 
1725
1734
  /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Canvas/styles.module.css/#css-module-data */
1726
- ._PuckCanvas_avf1c_1 {
1735
+ ._PuckCanvas_18jay_1 {
1727
1736
  background: var(--puck-color-grey-11);
1728
1737
  display: flex;
1729
1738
  grid-area: editor;
@@ -1732,28 +1741,26 @@ textarea._Input-input_1l5m8_47 {
1732
1741
  overflow: auto;
1733
1742
  }
1734
1743
  @media (min-width: 1198px) {
1735
- ._PuckCanvas_avf1c_1 {
1744
+ ._PuckCanvas_18jay_1 {
1736
1745
  padding: calc(var(--puck-space-px) * 1.5);
1737
1746
  padding-top: var(--puck-space-px);
1738
1747
  }
1739
- ._PuckCanvas_avf1c_1:not(._PuckCanvas_avf1c_1:has(._PuckCanvas-controls_avf1c_16)) {
1748
+ ._PuckCanvas_18jay_1:not(._PuckCanvas_18jay_1:has(._PuckCanvas-controls_18jay_16)) {
1740
1749
  padding-top: calc(var(--puck-space-px) * 1.5);
1741
1750
  }
1742
1751
  }
1743
- ._PuckCanvas-inner_avf1c_21 {
1744
- box-sizing: border-box;
1752
+ ._PuckCanvas-inner_18jay_21 {
1745
1753
  display: flex;
1746
1754
  height: 100%;
1747
1755
  justify-content: center;
1748
1756
  min-width: 358px;
1749
- overflow: hidden;
1750
1757
  position: relative;
1751
1758
  width: 100%;
1752
1759
  }
1753
- ._PuckCanvas-root_avf1c_32 {
1760
+ ._PuckCanvas-root_18jay_30 {
1754
1761
  background: white;
1755
1762
  border: 1px solid var(--puck-color-grey-09);
1756
- box-sizing: border-box;
1763
+ box-sizing: content-box;
1757
1764
  min-width: 321px;
1758
1765
  position: absolute;
1759
1766
  pointer-events: none;
@@ -1763,20 +1770,20 @@ textarea._Input-input_1l5m8_47 {
1763
1770
  opacity: 0;
1764
1771
  }
1765
1772
  @media (min-width: 1198px) {
1766
- ._PuckCanvas-root_avf1c_32 {
1773
+ ._PuckCanvas-root_18jay_30 {
1767
1774
  min-width: unset;
1768
1775
  }
1769
1776
  }
1770
1777
  @media (prefers-reduced-motion: reduce) {
1771
- ._PuckCanvas-root_avf1c_32 {
1778
+ ._PuckCanvas-root_18jay_30 {
1772
1779
  transition: none !important;
1773
1780
  }
1774
1781
  }
1775
- ._PuckCanvas--ready_avf1c_57 ._PuckCanvas-root_avf1c_32 {
1782
+ ._PuckCanvas--ready_18jay_55 ._PuckCanvas-root_18jay_30 {
1776
1783
  pointer-events: unset;
1777
1784
  opacity: 1;
1778
1785
  }
1779
- ._PuckCanvas-loader_avf1c_62 {
1786
+ ._PuckCanvas-loader_18jay_60 {
1780
1787
  align-items: center;
1781
1788
  color: var(--puck-color-grey-06);
1782
1789
  display: flex;
@@ -1785,10 +1792,10 @@ textarea._Input-input_1l5m8_47 {
1785
1792
  transition: opacity 250ms ease-out;
1786
1793
  opacity: 0;
1787
1794
  }
1788
- ._PuckCanvas--showLoader_avf1c_72 ._PuckCanvas-loader_avf1c_62 {
1795
+ ._PuckCanvas--showLoader_18jay_70 ._PuckCanvas-loader_18jay_60 {
1789
1796
  opacity: 1;
1790
1797
  }
1791
- ._PuckCanvas--showLoader_avf1c_72._PuckCanvas--ready_avf1c_57 ._PuckCanvas-loader_avf1c_62 {
1798
+ ._PuckCanvas--showLoader_18jay_70._PuckCanvas--ready_18jay_55 ._PuckCanvas-loader_18jay_60 {
1792
1799
  opacity: 0;
1793
1800
  height: 0;
1794
1801
  transition: none;