@measured/puck 0.20.0-canary.d405985b → 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/{chunk-DBSNJT3R.mjs → chunk-VATSTM62.mjs} +2506 -2158
- package/dist/index.css +93 -46
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1210 -867
- package/dist/index.mjs +1 -1
- package/dist/no-external.css +93 -46
- package/dist/no-external.d.mts +1 -1
- package/dist/no-external.d.ts +1 -1
- package/dist/no-external.js +1210 -867
- package/dist/no-external.mjs +1 -1
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/{walk-tree-Bp8tnkJS.d.mts → walk-tree-mCPqBAls.d.mts} +16 -2
- package/dist/{walk-tree-Bp8tnkJS.d.ts → walk-tree-mCPqBAls.d.ts} +16 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
package/dist/no-external.css
CHANGED
|
@@ -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
|
-
.
|
|
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-
|
|
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
|
-
.
|
|
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-
|
|
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--
|
|
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--
|
|
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
|
-
.
|
|
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-
|
|
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--
|
|
1208
|
+
._DraggableComponent--isSelected_1vaqy_57 ._DraggableComponent-actionsOverlay_1vaqy_71 {
|
|
1207
1209
|
opacity: 1;
|
|
1208
1210
|
pointer-events: auto;
|
|
1209
1211
|
}
|
|
1210
|
-
._DraggableComponent-
|
|
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
|
-
.
|
|
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
|
-
.
|
|
1405
|
+
._Puck_vnhjy_19 {
|
|
1404
1406
|
overflow-x: auto;
|
|
1405
1407
|
}
|
|
1406
1408
|
}
|
|
1407
|
-
._Puck-
|
|
1409
|
+
._Puck-portal_vnhjy_31 {
|
|
1408
1410
|
position: relative;
|
|
1409
1411
|
z-index: 2;
|
|
1410
1412
|
}
|
|
1411
|
-
._PuckLayout-
|
|
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--
|
|
1424
|
+
._PuckLayout--mounted_vnhjy_50 ._PuckLayout-inner_vnhjy_38 {
|
|
1423
1425
|
--puck-side-bar-width: 186px;
|
|
1424
1426
|
}
|
|
1425
|
-
._PuckLayout--
|
|
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--
|
|
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--
|
|
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-
|
|
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
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
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,64 @@ 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
|
+
}
|
package/dist/no-external.d.mts
CHANGED
|
@@ -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-
|
|
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
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';
|
package/dist/no-external.d.ts
CHANGED
|
@@ -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-
|
|
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
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';
|