@measured/puck 0.20.0-canary.3badc0ce → 0.20.0-canary.3d781f5a

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.mjs CHANGED
@@ -13,10 +13,11 @@ import {
13
13
  Render,
14
14
  createUsePuck,
15
15
  overrideKeys,
16
+ registerOverlayPortal,
16
17
  renderContext,
17
18
  useGetPuck,
18
19
  usePuck
19
- } from "./chunk-H4AGHNLK.mjs";
20
+ } from "./chunk-5HI4IJHF.mjs";
20
21
  import {
21
22
  init_react_import,
22
23
  migrate,
@@ -43,6 +44,7 @@ export {
43
44
  createUsePuck,
44
45
  migrate,
45
46
  overrideKeys,
47
+ registerOverlayPortal,
46
48
  renderContext,
47
49
  resolveAllData,
48
50
  transformProps,
@@ -1150,27 +1150,31 @@ textarea._Input-input_py9hf_26 {
1150
1150
  }
1151
1151
 
1152
1152
  /* css-module:/home/runner/work/puck/puck/packages/core/components/DraggableComponent/styles.module.css/#css-module-data */
1153
- ._DraggableComponent_qzbgx_1 {
1153
+ ._DraggableComponent_1vaqy_1 {
1154
1154
  position: absolute;
1155
1155
  pointer-events: none;
1156
1156
  --overlay-background: color-mix( in srgb, var(--puck-color-azure-08) 30%, transparent );
1157
1157
  }
1158
- ._DraggableComponent-overlay_qzbgx_12 {
1159
- cursor: pointer;
1158
+ ._DraggableComponent-overlayWrapper_1vaqy_12 {
1160
1159
  height: 100%;
1161
1160
  width: 100%;
1162
1161
  top: 0;
1163
- outline: 2px var(--puck-color-azure-09) solid;
1164
- outline-offset: -2px;
1165
1162
  position: absolute;
1166
1163
  pointer-events: none;
1167
1164
  box-sizing: border-box;
1168
1165
  z-index: 1;
1169
1166
  }
1170
- ._DraggableComponent_qzbgx_1:focus-visible > ._DraggableComponent-overlay_qzbgx_12 {
1167
+ ._DraggableComponent-overlay_1vaqy_12 {
1168
+ cursor: pointer;
1169
+ height: 100%;
1170
+ outline: 2px var(--puck-color-azure-09) solid;
1171
+ outline-offset: -2px;
1172
+ width: 100%;
1173
+ }
1174
+ ._DraggableComponent_1vaqy_1:focus-visible > ._DraggableComponent-overlayWrapper_1vaqy_12 {
1171
1175
  outline: 1px solid var(--puck-color-azure-05);
1172
1176
  }
1173
- ._DraggableComponent-loadingOverlay_qzbgx_29 {
1177
+ ._DraggableComponent-loadingOverlay_1vaqy_34 {
1174
1178
  background: var(--puck-color-white);
1175
1179
  color: var(--puck-color-grey-03);
1176
1180
  border-radius: 4px;
@@ -1185,29 +1189,27 @@ textarea._Input-input_py9hf_26 {
1185
1189
  opacity: 0.8;
1186
1190
  z-index: 1;
1187
1191
  }
1188
- ._DraggableComponent--hover_qzbgx_45:not(._DraggableComponent--isLocked_qzbgx_45) > ._DraggableComponent-overlay_qzbgx_12 {
1192
+ ._DraggableComponent--hover_1vaqy_50 > ._DraggableComponent-overlayWrapper_1vaqy_12 > ._DraggableComponent-overlay_1vaqy_12 {
1189
1193
  background: var(--overlay-background);
1190
- }
1191
- ._DraggableComponent--hover_qzbgx_45 > ._DraggableComponent-overlay_qzbgx_12 {
1192
1194
  outline: 2px var(--puck-color-azure-09) solid;
1193
1195
  }
1194
- ._DraggableComponent--isSelected_qzbgx_54 > ._DraggableComponent-overlay_qzbgx_12 {
1196
+ ._DraggableComponent--isSelected_1vaqy_57 > ._DraggableComponent-overlayWrapper_1vaqy_12 > ._DraggableComponent-overlay_1vaqy_12 {
1195
1197
  outline-color: var(--puck-color-azure-07);
1196
1198
  }
1197
- ._DraggableComponent_qzbgx_1:has(._DraggableComponent--hover_qzbgx_45 > ._DraggableComponent-overlay_qzbgx_12) > ._DraggableComponent-overlay_qzbgx_12 {
1199
+ ._DraggableComponent_1vaqy_1:has(._DraggableComponent--hover_1vaqy_50 > ._DraggableComponent-overlayWrapper_1vaqy_12) > ._DraggableComponent-overlayWrapper_1vaqy_12 {
1198
1200
  display: none;
1199
1201
  }
1200
- ._DraggableComponent-actionsOverlay_qzbgx_66 {
1202
+ ._DraggableComponent-actionsOverlay_1vaqy_71 {
1201
1203
  position: sticky;
1202
1204
  opacity: 0;
1203
1205
  pointer-events: none;
1204
1206
  z-index: 2;
1205
1207
  }
1206
- ._DraggableComponent--isSelected_qzbgx_54 ._DraggableComponent-actionsOverlay_qzbgx_66 {
1208
+ ._DraggableComponent--isSelected_1vaqy_57 ._DraggableComponent-actionsOverlay_1vaqy_71 {
1207
1209
  opacity: 1;
1208
1210
  pointer-events: auto;
1209
1211
  }
1210
- ._DraggableComponent-actions_qzbgx_66 {
1212
+ ._DraggableComponent-actions_1vaqy_71 {
1211
1213
  position: absolute;
1212
1214
  width: auto;
1213
1215
  cursor: grab;
@@ -1394,21 +1396,21 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
1394
1396
  }
1395
1397
 
1396
1398
  /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/styles.module.css/#css-module-data */
1397
- ._Puck_dnlfp_19 {
1399
+ ._Puck_vnhjy_19 {
1398
1400
  --puck-space-px: 16px;
1399
1401
  font-family: var(--puck-font-family);
1400
1402
  overflow-x: hidden;
1401
1403
  }
1402
1404
  @media (min-width: 766px) {
1403
- ._Puck_dnlfp_19 {
1405
+ ._Puck_vnhjy_19 {
1404
1406
  overflow-x: auto;
1405
1407
  }
1406
1408
  }
1407
- ._Puck-portal_dnlfp_31 {
1409
+ ._Puck-portal_vnhjy_31 {
1408
1410
  position: relative;
1409
1411
  z-index: 2;
1410
1412
  }
1411
- ._PuckLayout-inner_dnlfp_38 {
1413
+ ._PuckLayout-inner_vnhjy_38 {
1412
1414
  --puck-frame-width: auto;
1413
1415
  --puck-side-bar-width: 0px;
1414
1416
  display: grid;
@@ -1419,69 +1421,53 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
1419
1421
  position: relative;
1420
1422
  z-index: 0;
1421
1423
  }
1422
- ._PuckLayout--mounted_dnlfp_50 ._PuckLayout-inner_dnlfp_38 {
1424
+ ._PuckLayout--mounted_vnhjy_50 ._PuckLayout-inner_vnhjy_38 {
1423
1425
  --puck-side-bar-width: 186px;
1424
1426
  }
1425
- ._PuckLayout--leftSideBarVisible_dnlfp_54 ._PuckLayout-inner_dnlfp_38 {
1427
+ ._PuckLayout--leftSideBarVisible_vnhjy_54 ._PuckLayout-inner_vnhjy_38 {
1426
1428
  grid-template-columns: var(--puck-side-bar-width) var(--puck-frame-width) 0;
1427
1429
  }
1428
- ._PuckLayout--rightSideBarVisible_dnlfp_60 ._PuckLayout-inner_dnlfp_38 {
1430
+ ._PuckLayout--rightSideBarVisible_vnhjy_60 ._PuckLayout-inner_vnhjy_38 {
1429
1431
  grid-template-columns: 0 var(--puck-frame-width) var(--puck-side-bar-width);
1430
1432
  }
1431
- ._PuckLayout--leftSideBarVisible_dnlfp_54._PuckLayout--rightSideBarVisible_dnlfp_60 ._PuckLayout-inner_dnlfp_38 {
1433
+ ._PuckLayout--leftSideBarVisible_vnhjy_54._PuckLayout--rightSideBarVisible_vnhjy_60 ._PuckLayout-inner_vnhjy_38 {
1432
1434
  grid-template-columns: var(--puck-side-bar-width) var(--puck-frame-width) var(--puck-side-bar-width);
1433
1435
  }
1434
1436
  @media (min-width: 458px) {
1435
- ._PuckLayout-mounted_dnlfp_74 ._PuckLayout-inner_dnlfp_38 {
1437
+ ._PuckLayout-mounted_vnhjy_74 ._PuckLayout-inner_vnhjy_38 {
1436
1438
  --puck-frame-width: minmax(266px, auto);
1437
1439
  }
1438
1440
  }
1439
1441
  @media (min-width: 638px) {
1440
- ._PuckLayout_dnlfp_38 ._PuckLayout-inner_dnlfp_38 {
1442
+ ._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
1441
1443
  --puck-side-bar-width: minmax(186px, 250px);
1442
1444
  }
1443
1445
  }
1444
1446
  @media (min-width: 766px) {
1445
- ._PuckLayout_dnlfp_38 ._PuckLayout-inner_dnlfp_38 {
1447
+ ._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
1446
1448
  --puck-frame-width: auto;
1447
1449
  }
1448
1450
  }
1449
1451
  @media (min-width: 990px) {
1450
- ._PuckLayout_dnlfp_38 ._PuckLayout-inner_dnlfp_38 {
1452
+ ._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
1451
1453
  --puck-side-bar-width: 256px;
1452
1454
  }
1453
1455
  }
1454
1456
  @media (min-width: 1198px) {
1455
- ._PuckLayout_dnlfp_38 ._PuckLayout-inner_dnlfp_38 {
1457
+ ._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
1456
1458
  --puck-side-bar-width: 274px;
1457
1459
  }
1458
1460
  }
1459
1461
  @media (min-width: 1398px) {
1460
- ._PuckLayout_dnlfp_38 ._PuckLayout-inner_dnlfp_38 {
1462
+ ._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
1461
1463
  --puck-side-bar-width: 290px;
1462
1464
  }
1463
1465
  }
1464
1466
  @media (min-width: 1598px) {
1465
- ._PuckLayout_dnlfp_38 ._PuckLayout-inner_dnlfp_38 {
1467
+ ._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
1466
1468
  --puck-side-bar-width: 320px;
1467
1469
  }
1468
1470
  }
1469
- ._PuckLayout-leftSideBar_dnlfp_115 {
1470
- background: var(--puck-color-grey-12);
1471
- border-inline-end: 1px solid var(--puck-color-grey-09);
1472
- display: flex;
1473
- flex-direction: column;
1474
- grid-area: left;
1475
- overflow-y: auto;
1476
- }
1477
- ._PuckLayout-rightSideBar_dnlfp_124 {
1478
- background: var(--puck-color-white);
1479
- border-inline-start: 1px solid var(--puck-color-grey-09);
1480
- display: flex;
1481
- flex-direction: column;
1482
- grid-area: right;
1483
- overflow-y: auto;
1484
- }
1485
1471
 
1486
1472
  /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Fields/styles.module.css/#css-module-data */
1487
1473
  ._PuckFields_10bh7_1 {
@@ -1893,3 +1879,78 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
1893
1879
  display: none;
1894
1880
  }
1895
1881
  }
1882
+
1883
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/ResizeHandle/styles.module.css/#css-module-data */
1884
+ ._ResizeHandle_v7w0r_1 {
1885
+ position: absolute;
1886
+ width: 5px;
1887
+ height: 100%;
1888
+ cursor: col-resize;
1889
+ z-index: 10;
1890
+ background: transparent;
1891
+ top: 0;
1892
+ }
1893
+ ._ResizeHandle_v7w0r_1:hover {
1894
+ background: rgba(0, 0, 0, 0.1);
1895
+ }
1896
+ ._ResizeHandle--left_v7w0r_15 {
1897
+ right: -3px;
1898
+ }
1899
+ ._ResizeHandle--right_v7w0r_19 {
1900
+ left: -3px;
1901
+ }
1902
+
1903
+ /* components/Puck/components/ResizeHandle/styles.css */
1904
+ [data-resize-overlay] {
1905
+ position: fixed;
1906
+ top: 0;
1907
+ left: 0;
1908
+ right: 0;
1909
+ bottom: 0;
1910
+ z-index: 9999;
1911
+ cursor: col-resize;
1912
+ }
1913
+
1914
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Sidebar/styles.module.css/#css-module-data */
1915
+ ._Sidebar_1xksb_1 {
1916
+ position: relative;
1917
+ display: flex;
1918
+ flex-direction: column;
1919
+ overflow-y: auto;
1920
+ }
1921
+ ._Sidebar--left_1xksb_8 {
1922
+ background: var(--puck-color-grey-12);
1923
+ border-inline-end: 1px solid var(--puck-color-grey-09);
1924
+ grid-area: left;
1925
+ }
1926
+ ._Sidebar--right_1xksb_14 {
1927
+ background: var(--puck-color-white);
1928
+ border-inline-start: 1px solid var(--puck-color-grey-09);
1929
+ grid-area: right;
1930
+ }
1931
+ ._Sidebar-resizeHandle_1xksb_20 {
1932
+ position: absolute;
1933
+ height: 100%;
1934
+ }
1935
+ ._Sidebar--left_1xksb_8 + ._Sidebar-resizeHandle_1xksb_20 {
1936
+ grid-area: left;
1937
+ justify-self: end;
1938
+ }
1939
+ ._Sidebar--right_1xksb_14 + ._Sidebar-resizeHandle_1xksb_20 {
1940
+ grid-area: right;
1941
+ justify-self: start;
1942
+ }
1943
+
1944
+ /* lib/overlay-portal/styles.css */
1945
+ [data-puck-overlay-portal],
1946
+ [data-puck-overlay-portal] * {
1947
+ pointer-events: auto;
1948
+ }
1949
+ [data-puck-overlay-portal]:hover {
1950
+ outline: 2px var(--puck-color-azure-09) solid;
1951
+ outline-offset: 2px;
1952
+ }
1953
+ [data-puck-overlay-portal]:focus-within {
1954
+ outline: 2px var(--puck-color-azure-07) solid;
1955
+ outline-offset: 2px;
1956
+ }
@@ -1,4 +1,4 @@
1
- export { a1 as Adaptor, A as AppState, $ as ArrayField, x as ArrayState, ae as AsFieldProps, B as BaseData, Q as BaseField, f as ComponentConfig, a as ComponentData, L as ComponentDataMap, J as ComponentDataOptionalId, C as Config, N as Content, a5 as CustomField, a4 as CustomFieldRender, i as Data, ab as DefaultComponentProps, a8 as DefaultRootFieldProps, aa as DefaultRootProps, a9 as DefaultRootRenderProps, n as Direction, o as DragAxis, a3 as ExternalField, a2 as ExternalFieldWithAdaptor, ag as ExtractPropsFromConfig, ah as ExtractRootPropsFromConfig, g as Field, h as FieldProps, u as FieldRenderFunctions, F as Fields, H as History, I as IframeConfig, k as InitialHistory, v as ItemWithId, K as MappedItem, M as Metadata, X as NumberField, a0 as ObjectField, j as OnAction, s as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, y as PuckComponent, a7 as PuckContext, _ as RadioField, c as ResolveDataTrigger, z as RootConfig, G as RootData, R as RootDataWithProps, E as RootDataWithoutProps, Z as SelectField, S as Slot, a6 as SlotField, T as TextField, Y as TextareaField, e as UiState, U as UserGenerics, p as Viewport, V as Viewports, af as WithChildren, ac as WithId, ad as WithPuckProps, W as WithSlotProps, m as migrate, q as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-6p9XnDIV.mjs';
2
- export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, UsePuckData, createUsePuck, renderContext, useGetPuck, usePuck } from './index.mjs';
1
+ export { a2 as Adaptor, A as AppState, a0 as ArrayField, x as ArrayState, af as AsFieldProps, E as BaseData, T as BaseField, f as ComponentConfig, a as ComponentData, N as ComponentDataMap, K as ComponentDataOptionalId, C as Config, Q as Content, a6 as CustomField, a5 as CustomFieldRender, i as Data, ac as DefaultComponentProps, a9 as DefaultRootFieldProps, ab as DefaultRootProps, aa as DefaultRootRenderProps, n as Direction, o as DragAxis, a4 as ExternalField, a3 as ExternalFieldWithAdaptor, ah as ExtractPropsFromConfig, ai as ExtractRootPropsFromConfig, g as Field, h as FieldProps, u as FieldRenderFunctions, F as Fields, H as History, I as IframeConfig, k as InitialHistory, v as ItemWithId, L as MappedItem, M as Metadata, Y as NumberField, a1 as ObjectField, j as OnAction, s as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, z as PuckComponent, a8 as PuckContext, $ as RadioField, c as ResolveDataTrigger, B as RootConfig, J as RootData, R as RootDataWithProps, G as RootDataWithoutProps, _ as SelectField, S as Slot, y as SlotComponent, a7 as SlotField, X as TextField, Z as TextareaField, e as UiState, U as UserGenerics, p as Viewport, V as Viewports, ag as WithChildren, ad as WithId, ae as WithPuckProps, W as WithSlotProps, m as migrate, q as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-mCPqBAls.mjs';
2
+ export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, UsePuckData, createUsePuck, registerOverlayPortal, renderContext, useGetPuck, usePuck } from './index.mjs';
3
3
  import 'react';
4
4
  import 'react/jsx-runtime';
@@ -1,4 +1,4 @@
1
- export { a1 as Adaptor, A as AppState, $ as ArrayField, x as ArrayState, ae as AsFieldProps, B as BaseData, Q as BaseField, f as ComponentConfig, a as ComponentData, L as ComponentDataMap, J as ComponentDataOptionalId, C as Config, N as Content, a5 as CustomField, a4 as CustomFieldRender, i as Data, ab as DefaultComponentProps, a8 as DefaultRootFieldProps, aa as DefaultRootProps, a9 as DefaultRootRenderProps, n as Direction, o as DragAxis, a3 as ExternalField, a2 as ExternalFieldWithAdaptor, ag as ExtractPropsFromConfig, ah as ExtractRootPropsFromConfig, g as Field, h as FieldProps, u as FieldRenderFunctions, F as Fields, H as History, I as IframeConfig, k as InitialHistory, v as ItemWithId, K as MappedItem, M as Metadata, X as NumberField, a0 as ObjectField, j as OnAction, s as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, y as PuckComponent, a7 as PuckContext, _ as RadioField, c as ResolveDataTrigger, z as RootConfig, G as RootData, R as RootDataWithProps, E as RootDataWithoutProps, Z as SelectField, S as Slot, a6 as SlotField, T as TextField, Y as TextareaField, e as UiState, U as UserGenerics, p as Viewport, V as Viewports, af as WithChildren, ac as WithId, ad as WithPuckProps, W as WithSlotProps, m as migrate, q as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-6p9XnDIV.js';
2
- export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, UsePuckData, createUsePuck, renderContext, useGetPuck, usePuck } from './index.js';
1
+ export { a2 as Adaptor, A as AppState, a0 as ArrayField, x as ArrayState, af as AsFieldProps, E as BaseData, T as BaseField, f as ComponentConfig, a as ComponentData, N as ComponentDataMap, K as ComponentDataOptionalId, C as Config, Q as Content, a6 as CustomField, a5 as CustomFieldRender, i as Data, ac as DefaultComponentProps, a9 as DefaultRootFieldProps, ab as DefaultRootProps, aa as DefaultRootRenderProps, n as Direction, o as DragAxis, a4 as ExternalField, a3 as ExternalFieldWithAdaptor, ah as ExtractPropsFromConfig, ai as ExtractRootPropsFromConfig, g as Field, h as FieldProps, u as FieldRenderFunctions, F as Fields, H as History, I as IframeConfig, k as InitialHistory, v as ItemWithId, L as MappedItem, M as Metadata, Y as NumberField, a1 as ObjectField, j as OnAction, s as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, z as PuckComponent, a8 as PuckContext, $ as RadioField, c as ResolveDataTrigger, B as RootConfig, J as RootData, R as RootDataWithProps, G as RootDataWithoutProps, _ as SelectField, S as Slot, y as SlotComponent, a7 as SlotField, X as TextField, Z as TextareaField, e as UiState, U as UserGenerics, p as Viewport, V as Viewports, ag as WithChildren, ad as WithId, ae as WithPuckProps, W as WithSlotProps, m as migrate, q as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-mCPqBAls.js';
2
+ export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, UsePuckData, createUsePuck, registerOverlayPortal, renderContext, useGetPuck, usePuck } from './index.js';
3
3
  import 'react';
4
4
  import 'react/jsx-runtime';