@measured/puck 0.20.0-canary.6dace1cf → 0.20.0-canary.88a4251d

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.css CHANGED
@@ -1396,21 +1396,21 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
1396
1396
  }
1397
1397
 
1398
1398
  /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/styles.module.css/#css-module-data */
1399
- ._Puck_dnlfp_19 {
1399
+ ._Puck_vnhjy_19 {
1400
1400
  --puck-space-px: 16px;
1401
1401
  font-family: var(--puck-font-family);
1402
1402
  overflow-x: hidden;
1403
1403
  }
1404
1404
  @media (min-width: 766px) {
1405
- ._Puck_dnlfp_19 {
1405
+ ._Puck_vnhjy_19 {
1406
1406
  overflow-x: auto;
1407
1407
  }
1408
1408
  }
1409
- ._Puck-portal_dnlfp_31 {
1409
+ ._Puck-portal_vnhjy_31 {
1410
1410
  position: relative;
1411
1411
  z-index: 2;
1412
1412
  }
1413
- ._PuckLayout-inner_dnlfp_38 {
1413
+ ._PuckLayout-inner_vnhjy_38 {
1414
1414
  --puck-frame-width: auto;
1415
1415
  --puck-side-bar-width: 0px;
1416
1416
  display: grid;
@@ -1421,69 +1421,53 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
1421
1421
  position: relative;
1422
1422
  z-index: 0;
1423
1423
  }
1424
- ._PuckLayout--mounted_dnlfp_50 ._PuckLayout-inner_dnlfp_38 {
1424
+ ._PuckLayout--mounted_vnhjy_50 ._PuckLayout-inner_vnhjy_38 {
1425
1425
  --puck-side-bar-width: 186px;
1426
1426
  }
1427
- ._PuckLayout--leftSideBarVisible_dnlfp_54 ._PuckLayout-inner_dnlfp_38 {
1427
+ ._PuckLayout--leftSideBarVisible_vnhjy_54 ._PuckLayout-inner_vnhjy_38 {
1428
1428
  grid-template-columns: var(--puck-side-bar-width) var(--puck-frame-width) 0;
1429
1429
  }
1430
- ._PuckLayout--rightSideBarVisible_dnlfp_60 ._PuckLayout-inner_dnlfp_38 {
1430
+ ._PuckLayout--rightSideBarVisible_vnhjy_60 ._PuckLayout-inner_vnhjy_38 {
1431
1431
  grid-template-columns: 0 var(--puck-frame-width) var(--puck-side-bar-width);
1432
1432
  }
1433
- ._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 {
1434
1434
  grid-template-columns: var(--puck-side-bar-width) var(--puck-frame-width) var(--puck-side-bar-width);
1435
1435
  }
1436
1436
  @media (min-width: 458px) {
1437
- ._PuckLayout-mounted_dnlfp_74 ._PuckLayout-inner_dnlfp_38 {
1437
+ ._PuckLayout-mounted_vnhjy_74 ._PuckLayout-inner_vnhjy_38 {
1438
1438
  --puck-frame-width: minmax(266px, auto);
1439
1439
  }
1440
1440
  }
1441
1441
  @media (min-width: 638px) {
1442
- ._PuckLayout_dnlfp_38 ._PuckLayout-inner_dnlfp_38 {
1442
+ ._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
1443
1443
  --puck-side-bar-width: minmax(186px, 250px);
1444
1444
  }
1445
1445
  }
1446
1446
  @media (min-width: 766px) {
1447
- ._PuckLayout_dnlfp_38 ._PuckLayout-inner_dnlfp_38 {
1447
+ ._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
1448
1448
  --puck-frame-width: auto;
1449
1449
  }
1450
1450
  }
1451
1451
  @media (min-width: 990px) {
1452
- ._PuckLayout_dnlfp_38 ._PuckLayout-inner_dnlfp_38 {
1452
+ ._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
1453
1453
  --puck-side-bar-width: 256px;
1454
1454
  }
1455
1455
  }
1456
1456
  @media (min-width: 1198px) {
1457
- ._PuckLayout_dnlfp_38 ._PuckLayout-inner_dnlfp_38 {
1457
+ ._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
1458
1458
  --puck-side-bar-width: 274px;
1459
1459
  }
1460
1460
  }
1461
1461
  @media (min-width: 1398px) {
1462
- ._PuckLayout_dnlfp_38 ._PuckLayout-inner_dnlfp_38 {
1462
+ ._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
1463
1463
  --puck-side-bar-width: 290px;
1464
1464
  }
1465
1465
  }
1466
1466
  @media (min-width: 1598px) {
1467
- ._PuckLayout_dnlfp_38 ._PuckLayout-inner_dnlfp_38 {
1467
+ ._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
1468
1468
  --puck-side-bar-width: 320px;
1469
1469
  }
1470
1470
  }
1471
- ._PuckLayout-leftSideBar_dnlfp_115 {
1472
- background: var(--puck-color-grey-12);
1473
- border-inline-end: 1px solid var(--puck-color-grey-09);
1474
- display: flex;
1475
- flex-direction: column;
1476
- grid-area: left;
1477
- overflow-y: auto;
1478
- }
1479
- ._PuckLayout-rightSideBar_dnlfp_124 {
1480
- background: var(--puck-color-white);
1481
- border-inline-start: 1px solid var(--puck-color-grey-09);
1482
- display: flex;
1483
- flex-direction: column;
1484
- grid-area: right;
1485
- overflow-y: auto;
1486
- }
1487
1471
 
1488
1472
  /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Fields/styles.module.css/#css-module-data */
1489
1473
  ._PuckFields_10bh7_1 {
@@ -1895,3 +1879,64 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
1895
1879
  display: none;
1896
1880
  }
1897
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
+ }
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { H as History, P as Permissions, a as ComponentData, C as Config, U as UserGenerics, F as Fields, b as PuckAction, R as RootDataWithProps, c as ResolveDataTrigger, d as Plugin, O as Overrides, V as Viewports, I as IframeConfig, e as UiState, f as ComponentConfig, A as AppState, M as Metadata, g as Field, h as FieldProps, D as DropZoneProps, i as Data, j as OnAction, k as InitialHistory, l as ItemSelector } from './walk-tree-DrNRq2FV.mjs';
2
- export { a2 as Adaptor, a0 as ArrayField, x as ArrayState, af as AsFieldProps, E as BaseData, T as BaseField, N as ComponentDataMap, K as ComponentDataOptionalId, Q as Content, a6 as CustomField, a5 as CustomFieldRender, 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, u as FieldRenderFunctions, v as ItemWithId, L as MappedItem, Y as NumberField, a1 as ObjectField, s as OverrideKey, z as PuckComponent, a8 as PuckContext, $ as RadioField, B as RootConfig, J as RootData, G as RootDataWithoutProps, _ as SelectField, S as Slot, y as SlotComponent, a7 as SlotField, X as TextField, Z as TextareaField, p as Viewport, 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-DrNRq2FV.mjs';
1
+ import { H as History, P as Permissions, a as ComponentData, C as Config, U as UserGenerics, F as Fields, b as PuckAction, R as RootDataWithProps, c as ResolveDataTrigger, d as Plugin, O as Overrides, V as Viewports, I as IframeConfig, e as UiState, f as ComponentConfig, A as AppState, M as Metadata, g as Field, h as FieldProps, D as DropZoneProps, i as Data, j as OnAction, k as InitialHistory, l as ItemSelector } from './walk-tree-BCI5tk0w.mjs';
2
+ export { a2 as Adaptor, a0 as ArrayField, x as ArrayState, af as AsFieldProps, E as BaseData, T as BaseField, N as ComponentDataMap, K as ComponentDataOptionalId, Q as Content, a6 as CustomField, a5 as CustomFieldRender, 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, u as FieldRenderFunctions, v as ItemWithId, L as MappedItem, Y as NumberField, a1 as ObjectField, s as OverrideKey, z as PuckComponent, a8 as PuckContext, $ as RadioField, B as RootConfig, J as RootData, G as RootDataWithoutProps, _ as SelectField, S as Slot, y as SlotComponent, a7 as SlotField, X as TextField, Z as TextareaField, p as Viewport, 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-BCI5tk0w.mjs';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
5
5
  import react__default, { ReactNode, SyntheticEvent, ReactElement } from 'react';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { H as History, P as Permissions, a as ComponentData, C as Config, U as UserGenerics, F as Fields, b as PuckAction, R as RootDataWithProps, c as ResolveDataTrigger, d as Plugin, O as Overrides, V as Viewports, I as IframeConfig, e as UiState, f as ComponentConfig, A as AppState, M as Metadata, g as Field, h as FieldProps, D as DropZoneProps, i as Data, j as OnAction, k as InitialHistory, l as ItemSelector } from './walk-tree-DrNRq2FV.js';
2
- export { a2 as Adaptor, a0 as ArrayField, x as ArrayState, af as AsFieldProps, E as BaseData, T as BaseField, N as ComponentDataMap, K as ComponentDataOptionalId, Q as Content, a6 as CustomField, a5 as CustomFieldRender, 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, u as FieldRenderFunctions, v as ItemWithId, L as MappedItem, Y as NumberField, a1 as ObjectField, s as OverrideKey, z as PuckComponent, a8 as PuckContext, $ as RadioField, B as RootConfig, J as RootData, G as RootDataWithoutProps, _ as SelectField, S as Slot, y as SlotComponent, a7 as SlotField, X as TextField, Z as TextareaField, p as Viewport, 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-DrNRq2FV.js';
1
+ import { H as History, P as Permissions, a as ComponentData, C as Config, U as UserGenerics, F as Fields, b as PuckAction, R as RootDataWithProps, c as ResolveDataTrigger, d as Plugin, O as Overrides, V as Viewports, I as IframeConfig, e as UiState, f as ComponentConfig, A as AppState, M as Metadata, g as Field, h as FieldProps, D as DropZoneProps, i as Data, j as OnAction, k as InitialHistory, l as ItemSelector } from './walk-tree-BCI5tk0w.js';
2
+ export { a2 as Adaptor, a0 as ArrayField, x as ArrayState, af as AsFieldProps, E as BaseData, T as BaseField, N as ComponentDataMap, K as ComponentDataOptionalId, Q as Content, a6 as CustomField, a5 as CustomFieldRender, 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, u as FieldRenderFunctions, v as ItemWithId, L as MappedItem, Y as NumberField, a1 as ObjectField, s as OverrideKey, z as PuckComponent, a8 as PuckContext, $ as RadioField, B as RootConfig, J as RootData, G as RootDataWithoutProps, _ as SelectField, S as Slot, y as SlotComponent, a7 as SlotField, X as TextField, Z as TextareaField, p as Viewport, 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-BCI5tk0w.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
5
5
  import react__default, { ReactNode, SyntheticEvent, ReactElement } from 'react';