@measured/puck 0.20.0-canary.d2e09bdc → 0.20.0-canary.def0ecb5

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
@@ -134,7 +134,7 @@
134
134
  }
135
135
  }
136
136
 
137
- /* styles.css */
137
+ /* bundle/core.css */
138
138
  #frame-root {
139
139
  height: 1px;
140
140
  min-height: 100vh;
@@ -144,6 +144,8 @@
144
144
  z-index: 0;
145
145
  }
146
146
 
147
+ /* bundle/index.css */
148
+
147
149
  /* css-module:/home/runner/work/puck/puck/packages/core/components/ActionBar/styles.module.css/#css-module-data */
148
150
  ._ActionBar_rvadt_1 {
149
151
  align-items: center;
@@ -1150,27 +1152,31 @@ textarea._Input-input_py9hf_26 {
1150
1152
  }
1151
1153
 
1152
1154
  /* css-module:/home/runner/work/puck/puck/packages/core/components/DraggableComponent/styles.module.css/#css-module-data */
1153
- ._DraggableComponent_qzbgx_1 {
1155
+ ._DraggableComponent_1vaqy_1 {
1154
1156
  position: absolute;
1155
1157
  pointer-events: none;
1156
1158
  --overlay-background: color-mix( in srgb, var(--puck-color-azure-08) 30%, transparent );
1157
1159
  }
1158
- ._DraggableComponent-overlay_qzbgx_12 {
1159
- cursor: pointer;
1160
+ ._DraggableComponent-overlayWrapper_1vaqy_12 {
1160
1161
  height: 100%;
1161
1162
  width: 100%;
1162
1163
  top: 0;
1163
- outline: 2px var(--puck-color-azure-09) solid;
1164
- outline-offset: -2px;
1165
1164
  position: absolute;
1166
1165
  pointer-events: none;
1167
1166
  box-sizing: border-box;
1168
1167
  z-index: 1;
1169
1168
  }
1170
- ._DraggableComponent_qzbgx_1:focus-visible > ._DraggableComponent-overlay_qzbgx_12 {
1169
+ ._DraggableComponent-overlay_1vaqy_12 {
1170
+ cursor: pointer;
1171
+ height: 100%;
1172
+ outline: 2px var(--puck-color-azure-09) solid;
1173
+ outline-offset: -2px;
1174
+ width: 100%;
1175
+ }
1176
+ ._DraggableComponent_1vaqy_1:focus-visible > ._DraggableComponent-overlayWrapper_1vaqy_12 {
1171
1177
  outline: 1px solid var(--puck-color-azure-05);
1172
1178
  }
1173
- ._DraggableComponent-loadingOverlay_qzbgx_29 {
1179
+ ._DraggableComponent-loadingOverlay_1vaqy_34 {
1174
1180
  background: var(--puck-color-white);
1175
1181
  color: var(--puck-color-grey-03);
1176
1182
  border-radius: 4px;
@@ -1185,29 +1191,27 @@ textarea._Input-input_py9hf_26 {
1185
1191
  opacity: 0.8;
1186
1192
  z-index: 1;
1187
1193
  }
1188
- ._DraggableComponent--hover_qzbgx_45:not(._DraggableComponent--isLocked_qzbgx_45) > ._DraggableComponent-overlay_qzbgx_12 {
1194
+ ._DraggableComponent--hover_1vaqy_50 > ._DraggableComponent-overlayWrapper_1vaqy_12 > ._DraggableComponent-overlay_1vaqy_12 {
1189
1195
  background: var(--overlay-background);
1190
- }
1191
- ._DraggableComponent--hover_qzbgx_45 > ._DraggableComponent-overlay_qzbgx_12 {
1192
1196
  outline: 2px var(--puck-color-azure-09) solid;
1193
1197
  }
1194
- ._DraggableComponent--isSelected_qzbgx_54 > ._DraggableComponent-overlay_qzbgx_12 {
1198
+ ._DraggableComponent--isSelected_1vaqy_57 > ._DraggableComponent-overlayWrapper_1vaqy_12 > ._DraggableComponent-overlay_1vaqy_12 {
1195
1199
  outline-color: var(--puck-color-azure-07);
1196
1200
  }
1197
- ._DraggableComponent_qzbgx_1:has(._DraggableComponent--hover_qzbgx_45 > ._DraggableComponent-overlay_qzbgx_12) > ._DraggableComponent-overlay_qzbgx_12 {
1201
+ ._DraggableComponent_1vaqy_1:has(._DraggableComponent--hover_1vaqy_50 > ._DraggableComponent-overlayWrapper_1vaqy_12) > ._DraggableComponent-overlayWrapper_1vaqy_12 {
1198
1202
  display: none;
1199
1203
  }
1200
- ._DraggableComponent-actionsOverlay_qzbgx_66 {
1204
+ ._DraggableComponent-actionsOverlay_1vaqy_71 {
1201
1205
  position: sticky;
1202
1206
  opacity: 0;
1203
1207
  pointer-events: none;
1204
1208
  z-index: 2;
1205
1209
  }
1206
- ._DraggableComponent--isSelected_qzbgx_54 ._DraggableComponent-actionsOverlay_qzbgx_66 {
1210
+ ._DraggableComponent--isSelected_1vaqy_57 ._DraggableComponent-actionsOverlay_1vaqy_71 {
1207
1211
  opacity: 1;
1208
1212
  pointer-events: auto;
1209
1213
  }
1210
- ._DraggableComponent-actions_qzbgx_66 {
1214
+ ._DraggableComponent-actions_1vaqy_71 {
1211
1215
  position: absolute;
1212
1216
  width: auto;
1213
1217
  cursor: grab;
@@ -1394,21 +1398,21 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
1394
1398
  }
1395
1399
 
1396
1400
  /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/styles.module.css/#css-module-data */
1397
- ._Puck_dnlfp_19 {
1401
+ ._Puck_vnhjy_19 {
1398
1402
  --puck-space-px: 16px;
1399
1403
  font-family: var(--puck-font-family);
1400
1404
  overflow-x: hidden;
1401
1405
  }
1402
1406
  @media (min-width: 766px) {
1403
- ._Puck_dnlfp_19 {
1407
+ ._Puck_vnhjy_19 {
1404
1408
  overflow-x: auto;
1405
1409
  }
1406
1410
  }
1407
- ._Puck-portal_dnlfp_31 {
1411
+ ._Puck-portal_vnhjy_31 {
1408
1412
  position: relative;
1409
1413
  z-index: 2;
1410
1414
  }
1411
- ._PuckLayout-inner_dnlfp_38 {
1415
+ ._PuckLayout-inner_vnhjy_38 {
1412
1416
  --puck-frame-width: auto;
1413
1417
  --puck-side-bar-width: 0px;
1414
1418
  display: grid;
@@ -1419,69 +1423,53 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
1419
1423
  position: relative;
1420
1424
  z-index: 0;
1421
1425
  }
1422
- ._PuckLayout--mounted_dnlfp_50 ._PuckLayout-inner_dnlfp_38 {
1426
+ ._PuckLayout--mounted_vnhjy_50 ._PuckLayout-inner_vnhjy_38 {
1423
1427
  --puck-side-bar-width: 186px;
1424
1428
  }
1425
- ._PuckLayout--leftSideBarVisible_dnlfp_54 ._PuckLayout-inner_dnlfp_38 {
1429
+ ._PuckLayout--leftSideBarVisible_vnhjy_54 ._PuckLayout-inner_vnhjy_38 {
1426
1430
  grid-template-columns: var(--puck-side-bar-width) var(--puck-frame-width) 0;
1427
1431
  }
1428
- ._PuckLayout--rightSideBarVisible_dnlfp_60 ._PuckLayout-inner_dnlfp_38 {
1432
+ ._PuckLayout--rightSideBarVisible_vnhjy_60 ._PuckLayout-inner_vnhjy_38 {
1429
1433
  grid-template-columns: 0 var(--puck-frame-width) var(--puck-side-bar-width);
1430
1434
  }
1431
- ._PuckLayout--leftSideBarVisible_dnlfp_54._PuckLayout--rightSideBarVisible_dnlfp_60 ._PuckLayout-inner_dnlfp_38 {
1435
+ ._PuckLayout--leftSideBarVisible_vnhjy_54._PuckLayout--rightSideBarVisible_vnhjy_60 ._PuckLayout-inner_vnhjy_38 {
1432
1436
  grid-template-columns: var(--puck-side-bar-width) var(--puck-frame-width) var(--puck-side-bar-width);
1433
1437
  }
1434
1438
  @media (min-width: 458px) {
1435
- ._PuckLayout-mounted_dnlfp_74 ._PuckLayout-inner_dnlfp_38 {
1439
+ ._PuckLayout-mounted_vnhjy_74 ._PuckLayout-inner_vnhjy_38 {
1436
1440
  --puck-frame-width: minmax(266px, auto);
1437
1441
  }
1438
1442
  }
1439
1443
  @media (min-width: 638px) {
1440
- ._PuckLayout_dnlfp_38 ._PuckLayout-inner_dnlfp_38 {
1444
+ ._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
1441
1445
  --puck-side-bar-width: minmax(186px, 250px);
1442
1446
  }
1443
1447
  }
1444
1448
  @media (min-width: 766px) {
1445
- ._PuckLayout_dnlfp_38 ._PuckLayout-inner_dnlfp_38 {
1449
+ ._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
1446
1450
  --puck-frame-width: auto;
1447
1451
  }
1448
1452
  }
1449
1453
  @media (min-width: 990px) {
1450
- ._PuckLayout_dnlfp_38 ._PuckLayout-inner_dnlfp_38 {
1454
+ ._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
1451
1455
  --puck-side-bar-width: 256px;
1452
1456
  }
1453
1457
  }
1454
1458
  @media (min-width: 1198px) {
1455
- ._PuckLayout_dnlfp_38 ._PuckLayout-inner_dnlfp_38 {
1459
+ ._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
1456
1460
  --puck-side-bar-width: 274px;
1457
1461
  }
1458
1462
  }
1459
1463
  @media (min-width: 1398px) {
1460
- ._PuckLayout_dnlfp_38 ._PuckLayout-inner_dnlfp_38 {
1464
+ ._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
1461
1465
  --puck-side-bar-width: 290px;
1462
1466
  }
1463
1467
  }
1464
1468
  @media (min-width: 1598px) {
1465
- ._PuckLayout_dnlfp_38 ._PuckLayout-inner_dnlfp_38 {
1469
+ ._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
1466
1470
  --puck-side-bar-width: 320px;
1467
1471
  }
1468
1472
  }
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
1473
 
1486
1474
  /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Fields/styles.module.css/#css-module-data */
1487
1475
  ._PuckFields_10bh7_1 {
@@ -1893,3 +1881,64 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
1893
1881
  display: none;
1894
1882
  }
1895
1883
  }
1884
+
1885
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/ResizeHandle/styles.module.css/#css-module-data */
1886
+ ._ResizeHandle_v7w0r_1 {
1887
+ position: absolute;
1888
+ width: 5px;
1889
+ height: 100%;
1890
+ cursor: col-resize;
1891
+ z-index: 10;
1892
+ background: transparent;
1893
+ top: 0;
1894
+ }
1895
+ ._ResizeHandle_v7w0r_1:hover {
1896
+ background: rgba(0, 0, 0, 0.1);
1897
+ }
1898
+ ._ResizeHandle--left_v7w0r_15 {
1899
+ right: -3px;
1900
+ }
1901
+ ._ResizeHandle--right_v7w0r_19 {
1902
+ left: -3px;
1903
+ }
1904
+
1905
+ /* components/Puck/components/ResizeHandle/styles.css */
1906
+ [data-resize-overlay] {
1907
+ position: fixed;
1908
+ top: 0;
1909
+ left: 0;
1910
+ right: 0;
1911
+ bottom: 0;
1912
+ z-index: 9999;
1913
+ cursor: col-resize;
1914
+ }
1915
+
1916
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Sidebar/styles.module.css/#css-module-data */
1917
+ ._Sidebar_1xksb_1 {
1918
+ position: relative;
1919
+ display: flex;
1920
+ flex-direction: column;
1921
+ overflow-y: auto;
1922
+ }
1923
+ ._Sidebar--left_1xksb_8 {
1924
+ background: var(--puck-color-grey-12);
1925
+ border-inline-end: 1px solid var(--puck-color-grey-09);
1926
+ grid-area: left;
1927
+ }
1928
+ ._Sidebar--right_1xksb_14 {
1929
+ background: var(--puck-color-white);
1930
+ border-inline-start: 1px solid var(--puck-color-grey-09);
1931
+ grid-area: right;
1932
+ }
1933
+ ._Sidebar-resizeHandle_1xksb_20 {
1934
+ position: absolute;
1935
+ height: 100%;
1936
+ }
1937
+ ._Sidebar--left_1xksb_8 + ._Sidebar-resizeHandle_1xksb_20 {
1938
+ grid-area: left;
1939
+ justify-self: end;
1940
+ }
1941
+ ._Sidebar--right_1xksb_14 + ._Sidebar-resizeHandle_1xksb_20 {
1942
+ grid-area: right;
1943
+ justify-self: start;
1944
+ }
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { H as History, P as Permissions, C as ComponentData, a 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-BOSl1o0G.mjs';
2
- export { _ as Adaptor, Y as ArrayField, t as ArrayState, ab as AsFieldProps, B as BaseData, K as BaseField, G as ComponentDataMap, z as ComponentDataOptionalId, J as Content, a2 as CustomField, a1 as CustomFieldRender, a8 as DefaultComponentProps, a5 as DefaultRootFieldProps, a7 as DefaultRootProps, a6 as DefaultRootRenderProps, m as Direction, n as DragAxis, a0 as ExternalField, $ as ExternalFieldWithAdaptor, ad as ExtractPropsFromConfig, ae as ExtractRootPropsFromConfig, r as FieldRenderFunctions, s as ItemWithId, E as MappedItem, N as NumberField, Z as ObjectField, q as OverrideKey, u as PuckComponent, a4 as PuckContext, X as RadioField, v as RootConfig, y as RootData, x as RootDataWithoutProps, Q as SelectField, S as Slot, a3 as SlotField, T as TextField, L as TextareaField, o as Viewport, ac as WithChildren, a9 as WithId, aa as WithPuckProps, W as WithSlotProps, af as migrate, p as overrideKeys, ah as resolveAllData, ag as transformProps, w as walkTree } from './walk-tree-BOSl1o0G.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-mCPqBAls.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-mCPqBAls.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';
@@ -250,7 +250,7 @@ declare function Render<UserConfig extends Config = Config, G extends UserGeneri
250
250
  }): react_jsx_runtime.JSX.Element;
251
251
 
252
252
  type UsePuckData<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>> = {
253
- appState: AppState;
253
+ appState: G["UserPublicAppState"];
254
254
  config: UserConfig;
255
255
  dispatch: AppStore["dispatch"];
256
256
  getPermissions: GetPermissions<UserConfig>;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { H as History, P as Permissions, C as ComponentData, a 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-BOSl1o0G.js';
2
- export { _ as Adaptor, Y as ArrayField, t as ArrayState, ab as AsFieldProps, B as BaseData, K as BaseField, G as ComponentDataMap, z as ComponentDataOptionalId, J as Content, a2 as CustomField, a1 as CustomFieldRender, a8 as DefaultComponentProps, a5 as DefaultRootFieldProps, a7 as DefaultRootProps, a6 as DefaultRootRenderProps, m as Direction, n as DragAxis, a0 as ExternalField, $ as ExternalFieldWithAdaptor, ad as ExtractPropsFromConfig, ae as ExtractRootPropsFromConfig, r as FieldRenderFunctions, s as ItemWithId, E as MappedItem, N as NumberField, Z as ObjectField, q as OverrideKey, u as PuckComponent, a4 as PuckContext, X as RadioField, v as RootConfig, y as RootData, x as RootDataWithoutProps, Q as SelectField, S as Slot, a3 as SlotField, T as TextField, L as TextareaField, o as Viewport, ac as WithChildren, a9 as WithId, aa as WithPuckProps, W as WithSlotProps, af as migrate, p as overrideKeys, ah as resolveAllData, ag as transformProps, w as walkTree } from './walk-tree-BOSl1o0G.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-mCPqBAls.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-mCPqBAls.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';
@@ -250,7 +250,7 @@ declare function Render<UserConfig extends Config = Config, G extends UserGeneri
250
250
  }): react_jsx_runtime.JSX.Element;
251
251
 
252
252
  type UsePuckData<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>> = {
253
- appState: AppState;
253
+ appState: G["UserPublicAppState"];
254
254
  config: UserConfig;
255
255
  dispatch: AppStore["dispatch"];
256
256
  getPermissions: GetPermissions<UserConfig>;