@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.mjs CHANGED
@@ -16,7 +16,7 @@ import {
16
16
  renderContext,
17
17
  useGetPuck,
18
18
  usePuck
19
- } from "./chunk-4KAREQPB.mjs";
19
+ } from "./chunk-EMTLDPBH.mjs";
20
20
  import {
21
21
  init_react_import,
22
22
  migrate,
@@ -1394,21 +1394,21 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
1394
1394
  }
1395
1395
 
1396
1396
  /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/styles.module.css/#css-module-data */
1397
- ._Puck_dnlfp_19 {
1397
+ ._Puck_vnhjy_19 {
1398
1398
  --puck-space-px: 16px;
1399
1399
  font-family: var(--puck-font-family);
1400
1400
  overflow-x: hidden;
1401
1401
  }
1402
1402
  @media (min-width: 766px) {
1403
- ._Puck_dnlfp_19 {
1403
+ ._Puck_vnhjy_19 {
1404
1404
  overflow-x: auto;
1405
1405
  }
1406
1406
  }
1407
- ._Puck-portal_dnlfp_31 {
1407
+ ._Puck-portal_vnhjy_31 {
1408
1408
  position: relative;
1409
1409
  z-index: 2;
1410
1410
  }
1411
- ._PuckLayout-inner_dnlfp_38 {
1411
+ ._PuckLayout-inner_vnhjy_38 {
1412
1412
  --puck-frame-width: auto;
1413
1413
  --puck-side-bar-width: 0px;
1414
1414
  display: grid;
@@ -1419,69 +1419,53 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
1419
1419
  position: relative;
1420
1420
  z-index: 0;
1421
1421
  }
1422
- ._PuckLayout--mounted_dnlfp_50 ._PuckLayout-inner_dnlfp_38 {
1422
+ ._PuckLayout--mounted_vnhjy_50 ._PuckLayout-inner_vnhjy_38 {
1423
1423
  --puck-side-bar-width: 186px;
1424
1424
  }
1425
- ._PuckLayout--leftSideBarVisible_dnlfp_54 ._PuckLayout-inner_dnlfp_38 {
1425
+ ._PuckLayout--leftSideBarVisible_vnhjy_54 ._PuckLayout-inner_vnhjy_38 {
1426
1426
  grid-template-columns: var(--puck-side-bar-width) var(--puck-frame-width) 0;
1427
1427
  }
1428
- ._PuckLayout--rightSideBarVisible_dnlfp_60 ._PuckLayout-inner_dnlfp_38 {
1428
+ ._PuckLayout--rightSideBarVisible_vnhjy_60 ._PuckLayout-inner_vnhjy_38 {
1429
1429
  grid-template-columns: 0 var(--puck-frame-width) var(--puck-side-bar-width);
1430
1430
  }
1431
- ._PuckLayout--leftSideBarVisible_dnlfp_54._PuckLayout--rightSideBarVisible_dnlfp_60 ._PuckLayout-inner_dnlfp_38 {
1431
+ ._PuckLayout--leftSideBarVisible_vnhjy_54._PuckLayout--rightSideBarVisible_vnhjy_60 ._PuckLayout-inner_vnhjy_38 {
1432
1432
  grid-template-columns: var(--puck-side-bar-width) var(--puck-frame-width) var(--puck-side-bar-width);
1433
1433
  }
1434
1434
  @media (min-width: 458px) {
1435
- ._PuckLayout-mounted_dnlfp_74 ._PuckLayout-inner_dnlfp_38 {
1435
+ ._PuckLayout-mounted_vnhjy_74 ._PuckLayout-inner_vnhjy_38 {
1436
1436
  --puck-frame-width: minmax(266px, auto);
1437
1437
  }
1438
1438
  }
1439
1439
  @media (min-width: 638px) {
1440
- ._PuckLayout_dnlfp_38 ._PuckLayout-inner_dnlfp_38 {
1440
+ ._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
1441
1441
  --puck-side-bar-width: minmax(186px, 250px);
1442
1442
  }
1443
1443
  }
1444
1444
  @media (min-width: 766px) {
1445
- ._PuckLayout_dnlfp_38 ._PuckLayout-inner_dnlfp_38 {
1445
+ ._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
1446
1446
  --puck-frame-width: auto;
1447
1447
  }
1448
1448
  }
1449
1449
  @media (min-width: 990px) {
1450
- ._PuckLayout_dnlfp_38 ._PuckLayout-inner_dnlfp_38 {
1450
+ ._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
1451
1451
  --puck-side-bar-width: 256px;
1452
1452
  }
1453
1453
  }
1454
1454
  @media (min-width: 1198px) {
1455
- ._PuckLayout_dnlfp_38 ._PuckLayout-inner_dnlfp_38 {
1455
+ ._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
1456
1456
  --puck-side-bar-width: 274px;
1457
1457
  }
1458
1458
  }
1459
1459
  @media (min-width: 1398px) {
1460
- ._PuckLayout_dnlfp_38 ._PuckLayout-inner_dnlfp_38 {
1460
+ ._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
1461
1461
  --puck-side-bar-width: 290px;
1462
1462
  }
1463
1463
  }
1464
1464
  @media (min-width: 1598px) {
1465
- ._PuckLayout_dnlfp_38 ._PuckLayout-inner_dnlfp_38 {
1465
+ ._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
1466
1466
  --puck-side-bar-width: 320px;
1467
1467
  }
1468
1468
  }
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
1469
 
1486
1470
  /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Fields/styles.module.css/#css-module-data */
1487
1471
  ._PuckFields_10bh7_1 {
@@ -1893,3 +1877,64 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
1893
1877
  display: none;
1894
1878
  }
1895
1879
  }
1880
+
1881
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/ResizeHandle/styles.module.css/#css-module-data */
1882
+ ._ResizeHandle_v7w0r_1 {
1883
+ position: absolute;
1884
+ width: 5px;
1885
+ height: 100%;
1886
+ cursor: col-resize;
1887
+ z-index: 10;
1888
+ background: transparent;
1889
+ top: 0;
1890
+ }
1891
+ ._ResizeHandle_v7w0r_1:hover {
1892
+ background: rgba(0, 0, 0, 0.1);
1893
+ }
1894
+ ._ResizeHandle--left_v7w0r_15 {
1895
+ right: -3px;
1896
+ }
1897
+ ._ResizeHandle--right_v7w0r_19 {
1898
+ left: -3px;
1899
+ }
1900
+
1901
+ /* components/Puck/components/ResizeHandle/styles.css */
1902
+ [data-resize-overlay] {
1903
+ position: fixed;
1904
+ top: 0;
1905
+ left: 0;
1906
+ right: 0;
1907
+ bottom: 0;
1908
+ z-index: 9999;
1909
+ cursor: col-resize;
1910
+ }
1911
+
1912
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Sidebar/styles.module.css/#css-module-data */
1913
+ ._Sidebar_1xksb_1 {
1914
+ position: relative;
1915
+ display: flex;
1916
+ flex-direction: column;
1917
+ overflow-y: auto;
1918
+ }
1919
+ ._Sidebar--left_1xksb_8 {
1920
+ background: var(--puck-color-grey-12);
1921
+ border-inline-end: 1px solid var(--puck-color-grey-09);
1922
+ grid-area: left;
1923
+ }
1924
+ ._Sidebar--right_1xksb_14 {
1925
+ background: var(--puck-color-white);
1926
+ border-inline-start: 1px solid var(--puck-color-grey-09);
1927
+ grid-area: right;
1928
+ }
1929
+ ._Sidebar-resizeHandle_1xksb_20 {
1930
+ position: absolute;
1931
+ height: 100%;
1932
+ }
1933
+ ._Sidebar--left_1xksb_8 + ._Sidebar-resizeHandle_1xksb_20 {
1934
+ grid-area: left;
1935
+ justify-self: end;
1936
+ }
1937
+ ._Sidebar--right_1xksb_14 + ._Sidebar-resizeHandle_1xksb_20 {
1938
+ grid-area: right;
1939
+ justify-self: start;
1940
+ }
@@ -1,4 +1,4 @@
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-DrNRq2FV.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-BCI5tk0w.mjs';
2
2
  export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, UsePuckData, createUsePuck, renderContext, useGetPuck, usePuck } from './index.mjs';
3
3
  import 'react';
4
4
  import 'react/jsx-runtime';
@@ -1,4 +1,4 @@
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-DrNRq2FV.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-BCI5tk0w.js';
2
2
  export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, UsePuckData, createUsePuck, renderContext, useGetPuck, usePuck } from './index.js';
3
3
  import 'react';
4
4
  import 'react/jsx-runtime';