@measured/puck 0.20.0-canary.f2447833 → 0.20.0-canary.f73c8fa0
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/README.md +9 -9
- package/dist/chunk-BNXRZWNI.mjs +1065 -0
- package/dist/{chunk-F7MIAKDQ.mjs → chunk-UBWXLOVR.mjs} +2324 -533
- package/dist/index.css +39 -29
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +387 -318
- package/dist/index.mjs +4 -4
- package/dist/no-external.css +39 -29
- package/dist/no-external.d.mts +1 -1
- package/dist/no-external.d.ts +1 -1
- package/dist/no-external.js +387 -318
- package/dist/no-external.mjs +4 -4
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +456 -1808
- package/dist/rsc.mjs +1 -1
- package/dist/{walk-tree-yh0Fsxem.d.ts → walk-tree-Dn5XpDNA.d.mts} +3 -0
- package/dist/{walk-tree-yh0Fsxem.d.mts → walk-tree-Dn5XpDNA.d.ts} +3 -0
- package/package.json +1 -1
- package/dist/chunk-IP64IXIP.mjs +0 -2820
- package/dist/rsc.css +0 -26
package/dist/index.mjs
CHANGED
|
@@ -15,18 +15,18 @@ import {
|
|
|
15
15
|
createUsePuck,
|
|
16
16
|
outlinePlugin,
|
|
17
17
|
overrideKeys,
|
|
18
|
+
registerOverlayPortal,
|
|
18
19
|
renderContext,
|
|
20
|
+
setDeep,
|
|
19
21
|
useGetPuck,
|
|
20
22
|
usePuck
|
|
21
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-UBWXLOVR.mjs";
|
|
22
24
|
import {
|
|
23
25
|
migrate,
|
|
24
|
-
registerOverlayPortal,
|
|
25
26
|
resolveAllData,
|
|
26
|
-
setDeep,
|
|
27
27
|
transformProps,
|
|
28
28
|
walkTree
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-BNXRZWNI.mjs";
|
|
30
30
|
export {
|
|
31
31
|
Action,
|
|
32
32
|
ActionBar,
|
package/dist/no-external.css
CHANGED
|
@@ -1290,6 +1290,11 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
1290
1290
|
margin-inline-start: auto;
|
|
1291
1291
|
}
|
|
1292
1292
|
|
|
1293
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Components/styles.module.css/#css-module-data */
|
|
1294
|
+
._Components_uwdh8_1 {
|
|
1295
|
+
padding: 16px;
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1293
1298
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Preview/styles.module.css/#css-module-data */
|
|
1294
1299
|
._PuckPreview_z2rgu_1 {
|
|
1295
1300
|
position: relative;
|
|
@@ -1404,24 +1409,32 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
1404
1409
|
margin-top: 4px;
|
|
1405
1410
|
}
|
|
1406
1411
|
|
|
1412
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Outline/styles.module.css/#css-module-data */
|
|
1413
|
+
._Outline_1rrni_1 {
|
|
1414
|
+
padding: 16px;
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1407
1417
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Layout/styles.module.css/#css-module-data */
|
|
1408
|
-
.
|
|
1418
|
+
._Puck_94wda_19 {
|
|
1409
1419
|
--puck-space-px: 16px;
|
|
1410
1420
|
font-family: var(--puck-font-family);
|
|
1411
1421
|
overflow-x: hidden;
|
|
1412
1422
|
}
|
|
1413
1423
|
@media (min-width: 766px) {
|
|
1414
|
-
.
|
|
1424
|
+
._Puck_94wda_19 {
|
|
1415
1425
|
overflow-x: auto;
|
|
1416
1426
|
}
|
|
1417
1427
|
}
|
|
1418
|
-
._Puck-
|
|
1428
|
+
._Puck-portal_94wda_31 {
|
|
1419
1429
|
position: relative;
|
|
1420
1430
|
z-index: 2;
|
|
1421
1431
|
}
|
|
1422
|
-
._PuckLayout-
|
|
1432
|
+
._PuckLayout-inner_94wda_36 {
|
|
1423
1433
|
--puck-frame-width: auto;
|
|
1434
|
+
--puck-side-nav-width: 68px;
|
|
1424
1435
|
--puck-side-bar-width: 0px;
|
|
1436
|
+
--puck-left-side-bar-width: var( --puck-user-left-side-bar-width, var(--puck-side-bar-width) );
|
|
1437
|
+
--puck-right-side-bar-width: var( --puck-user-right-side-bar-width, var(--puck-side-bar-width) );
|
|
1425
1438
|
display: grid;
|
|
1426
1439
|
grid-template-areas: "header header header header" "sidenav left editor right";
|
|
1427
1440
|
grid-template-columns: var(--puck-side-nav-width) 0 var(--puck-frame-width) 0;
|
|
@@ -1430,64 +1443,62 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
1430
1443
|
position: relative;
|
|
1431
1444
|
z-index: 0;
|
|
1432
1445
|
}
|
|
1433
|
-
._PuckLayout--
|
|
1446
|
+
._PuckLayout--mounted_94wda_57 ._PuckLayout-inner_94wda_36 {
|
|
1434
1447
|
--puck-side-bar-width: 186px;
|
|
1435
|
-
--puck-left-side-bar-width: var( --puck-user-left-side-bar-width, --puck-side-bar-width );
|
|
1436
|
-
--puck-right-side-bar-width: var( --puck-user-right-side-bar-width, --puck-side-bar-width );
|
|
1437
|
-
--puck-side-nav-width: 68px;
|
|
1438
1448
|
}
|
|
1439
|
-
._PuckLayout--
|
|
1449
|
+
._PuckLayout--leftSideBarVisible_94wda_61 ._PuckLayout-inner_94wda_36 {
|
|
1440
1450
|
grid-template-columns: var(--puck-side-nav-width) var(--puck-left-side-bar-width) var( --puck-frame-width ) 0;
|
|
1441
1451
|
}
|
|
1442
|
-
._PuckLayout--
|
|
1443
|
-
grid-template-columns: var(--puck-side-nav-width) 0 var(--puck-frame-width) var(--puck-side-bar-width);
|
|
1452
|
+
._PuckLayout--rightSideBarVisible_94wda_69 ._PuckLayout-inner_94wda_36 {
|
|
1453
|
+
grid-template-columns: var(--puck-side-nav-width) 0 var(--puck-frame-width) var(--puck-right-side-bar-width);
|
|
1444
1454
|
}
|
|
1445
|
-
._PuckLayout--
|
|
1455
|
+
._PuckLayout--leftSideBarVisible_94wda_61._PuckLayout--rightSideBarVisible_94wda_69 ._PuckLayout-inner_94wda_36 {
|
|
1446
1456
|
grid-template-columns: var(--puck-side-nav-width) var(--puck-left-side-bar-width) var( --puck-frame-width ) var(--puck-right-side-bar-width);
|
|
1447
1457
|
}
|
|
1448
1458
|
@media (min-width: 458px) {
|
|
1449
|
-
._PuckLayout-
|
|
1459
|
+
._PuckLayout-mounted_94wda_85 ._PuckLayout-inner_94wda_36 {
|
|
1450
1460
|
--puck-frame-width: minmax(266px, auto);
|
|
1451
1461
|
}
|
|
1452
1462
|
}
|
|
1453
1463
|
@media (min-width: 638px) {
|
|
1454
|
-
.
|
|
1464
|
+
._PuckLayout_94wda_36 ._PuckLayout-inner_94wda_36 {
|
|
1455
1465
|
--puck-side-bar-width: minmax(186px, 250px);
|
|
1456
1466
|
}
|
|
1457
1467
|
}
|
|
1458
1468
|
@media (min-width: 766px) {
|
|
1459
|
-
.
|
|
1469
|
+
._PuckLayout_94wda_36 ._PuckLayout-inner_94wda_36 {
|
|
1460
1470
|
--puck-frame-width: auto;
|
|
1461
1471
|
}
|
|
1462
1472
|
}
|
|
1463
1473
|
@media (min-width: 990px) {
|
|
1464
|
-
.
|
|
1474
|
+
._PuckLayout_94wda_36 ._PuckLayout-inner_94wda_36 {
|
|
1465
1475
|
--puck-side-bar-width: 256px;
|
|
1466
1476
|
}
|
|
1467
1477
|
}
|
|
1468
1478
|
@media (min-width: 1198px) {
|
|
1469
|
-
.
|
|
1479
|
+
._PuckLayout_94wda_36 ._PuckLayout-inner_94wda_36 {
|
|
1470
1480
|
--puck-side-bar-width: 274px;
|
|
1471
1481
|
}
|
|
1472
1482
|
}
|
|
1473
1483
|
@media (min-width: 1398px) {
|
|
1474
|
-
.
|
|
1484
|
+
._PuckLayout_94wda_36 ._PuckLayout-inner_94wda_36 {
|
|
1475
1485
|
--puck-side-bar-width: 290px;
|
|
1476
1486
|
}
|
|
1477
1487
|
}
|
|
1478
1488
|
@media (min-width: 1598px) {
|
|
1479
|
-
.
|
|
1489
|
+
._PuckLayout_94wda_36 ._PuckLayout-inner_94wda_36 {
|
|
1480
1490
|
--puck-side-bar-width: 320px;
|
|
1481
1491
|
}
|
|
1482
1492
|
}
|
|
1483
|
-
._PuckLayout-
|
|
1493
|
+
._PuckLayout-nav_94wda_126 {
|
|
1484
1494
|
border-right: 1px solid var(--puck-color-grey-09);
|
|
1485
1495
|
background-color: var(--puck-color-grey-12);
|
|
1486
1496
|
}
|
|
1487
|
-
.
|
|
1497
|
+
._PuckPluginTab_94wda_131 {
|
|
1488
1498
|
display: none;
|
|
1499
|
+
height: 100%;
|
|
1489
1500
|
}
|
|
1490
|
-
._PuckPluginTab--
|
|
1501
|
+
._PuckPluginTab--visible_94wda_136 {
|
|
1491
1502
|
display: block;
|
|
1492
1503
|
}
|
|
1493
1504
|
|
|
@@ -1828,32 +1839,31 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
1828
1839
|
}
|
|
1829
1840
|
|
|
1830
1841
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Sidebar/styles.module.css/#css-module-data */
|
|
1831
|
-
.
|
|
1842
|
+
._Sidebar_1xksb_1 {
|
|
1832
1843
|
position: relative;
|
|
1833
1844
|
display: flex;
|
|
1834
1845
|
flex-direction: column;
|
|
1835
1846
|
overflow-y: auto;
|
|
1836
1847
|
}
|
|
1837
|
-
._Sidebar--
|
|
1848
|
+
._Sidebar--left_1xksb_8 {
|
|
1838
1849
|
background: var(--puck-color-grey-12);
|
|
1839
1850
|
border-inline-end: 1px solid var(--puck-color-grey-09);
|
|
1840
1851
|
grid-area: left;
|
|
1841
|
-
padding: 16px;
|
|
1842
1852
|
}
|
|
1843
|
-
._Sidebar--
|
|
1853
|
+
._Sidebar--right_1xksb_14 {
|
|
1844
1854
|
background: var(--puck-color-white);
|
|
1845
1855
|
border-inline-start: 1px solid var(--puck-color-grey-09);
|
|
1846
1856
|
grid-area: right;
|
|
1847
1857
|
}
|
|
1848
|
-
._Sidebar-
|
|
1858
|
+
._Sidebar-resizeHandle_1xksb_20 {
|
|
1849
1859
|
position: absolute;
|
|
1850
1860
|
height: 100%;
|
|
1851
1861
|
}
|
|
1852
|
-
._Sidebar--
|
|
1862
|
+
._Sidebar--left_1xksb_8 + ._Sidebar-resizeHandle_1xksb_20 {
|
|
1853
1863
|
grid-area: left;
|
|
1854
1864
|
justify-self: end;
|
|
1855
1865
|
}
|
|
1856
|
-
._Sidebar--
|
|
1866
|
+
._Sidebar--right_1xksb_14 + ._Sidebar-resizeHandle_1xksb_20 {
|
|
1857
1867
|
grid-area: right;
|
|
1858
1868
|
justify-self: start;
|
|
1859
1869
|
}
|
package/dist/no-external.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a5 as Adaptor, A as AppState, a3 as ArrayField, B as ArrayState, ai as AsFieldProps, K as BaseData, Z as BaseField, f as ComponentConfig, a as ComponentData, X as ComponentDataMap, Q as ComponentDataOptionalId, C as Config, Y as Content, a9 as CustomField, a8 as CustomFieldRender, j as Data, af as DefaultComponentProps, ac as DefaultRootFieldProps, ae as DefaultRootProps, ad as DefaultRootRenderProps, o as Direction, p as DragAxis, a7 as ExternalField, a6 as ExternalFieldWithAdaptor, am as ExtractField, ak as ExtractPropsFromConfig, al as ExtractRootPropsFromConfig, h as Field, i as FieldProps, y as FieldRenderFunctions, u as FieldTransformFn, s as FieldTransformFnParams, g as FieldTransforms, F as Fields, H as History, I as IframeConfig, l as InitialHistory, z as ItemWithId, T as MappedItem, M as Metadata, $ as NumberField, a4 as ObjectField, k as OnAction, x as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, G as PuckComponent, ab as PuckContext, a2 as RadioField, c as ResolveDataTrigger, J as RootConfig, N as RootData, R as RootDataWithProps, L as RootDataWithoutProps, a1 as SelectField, S as Slot, E as SlotComponent, aa as SlotField, _ as TextField, a0 as TextareaField, e as UiState, U as UserGenerics, q as Viewport, V as Viewports, aj as WithChildren, ag as WithId, ah as WithPuckProps, W as WithSlotProps, m as migrate, v as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-
|
|
1
|
+
export { a5 as Adaptor, A as AppState, a3 as ArrayField, B as ArrayState, ai as AsFieldProps, K as BaseData, Z as BaseField, f as ComponentConfig, a as ComponentData, X as ComponentDataMap, Q as ComponentDataOptionalId, C as Config, Y as Content, a9 as CustomField, a8 as CustomFieldRender, j as Data, af as DefaultComponentProps, ac as DefaultRootFieldProps, ae as DefaultRootProps, ad as DefaultRootRenderProps, o as Direction, p as DragAxis, a7 as ExternalField, a6 as ExternalFieldWithAdaptor, am as ExtractField, ak as ExtractPropsFromConfig, al as ExtractRootPropsFromConfig, h as Field, i as FieldProps, y as FieldRenderFunctions, u as FieldTransformFn, s as FieldTransformFnParams, g as FieldTransforms, F as Fields, H as History, I as IframeConfig, l as InitialHistory, z as ItemWithId, T as MappedItem, M as Metadata, $ as NumberField, a4 as ObjectField, k as OnAction, x as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, G as PuckComponent, ab as PuckContext, a2 as RadioField, c as ResolveDataTrigger, J as RootConfig, N as RootData, R as RootDataWithProps, L as RootDataWithoutProps, a1 as SelectField, S as Slot, E as SlotComponent, aa as SlotField, _ as TextField, a0 as TextareaField, e as UiState, U as UserGenerics, q as Viewport, V as Viewports, aj as WithChildren, ag as WithId, ah as WithPuckProps, W as WithSlotProps, m as migrate, v as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-Dn5XpDNA.mjs';
|
|
2
2
|
export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, UsePuckData, blocksPlugin, createUsePuck, outlinePlugin, registerOverlayPortal, renderContext, setDeep, 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 { a5 as Adaptor, A as AppState, a3 as ArrayField, B as ArrayState, ai as AsFieldProps, K as BaseData, Z as BaseField, f as ComponentConfig, a as ComponentData, X as ComponentDataMap, Q as ComponentDataOptionalId, C as Config, Y as Content, a9 as CustomField, a8 as CustomFieldRender, j as Data, af as DefaultComponentProps, ac as DefaultRootFieldProps, ae as DefaultRootProps, ad as DefaultRootRenderProps, o as Direction, p as DragAxis, a7 as ExternalField, a6 as ExternalFieldWithAdaptor, am as ExtractField, ak as ExtractPropsFromConfig, al as ExtractRootPropsFromConfig, h as Field, i as FieldProps, y as FieldRenderFunctions, u as FieldTransformFn, s as FieldTransformFnParams, g as FieldTransforms, F as Fields, H as History, I as IframeConfig, l as InitialHistory, z as ItemWithId, T as MappedItem, M as Metadata, $ as NumberField, a4 as ObjectField, k as OnAction, x as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, G as PuckComponent, ab as PuckContext, a2 as RadioField, c as ResolveDataTrigger, J as RootConfig, N as RootData, R as RootDataWithProps, L as RootDataWithoutProps, a1 as SelectField, S as Slot, E as SlotComponent, aa as SlotField, _ as TextField, a0 as TextareaField, e as UiState, U as UserGenerics, q as Viewport, V as Viewports, aj as WithChildren, ag as WithId, ah as WithPuckProps, W as WithSlotProps, m as migrate, v as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-
|
|
1
|
+
export { a5 as Adaptor, A as AppState, a3 as ArrayField, B as ArrayState, ai as AsFieldProps, K as BaseData, Z as BaseField, f as ComponentConfig, a as ComponentData, X as ComponentDataMap, Q as ComponentDataOptionalId, C as Config, Y as Content, a9 as CustomField, a8 as CustomFieldRender, j as Data, af as DefaultComponentProps, ac as DefaultRootFieldProps, ae as DefaultRootProps, ad as DefaultRootRenderProps, o as Direction, p as DragAxis, a7 as ExternalField, a6 as ExternalFieldWithAdaptor, am as ExtractField, ak as ExtractPropsFromConfig, al as ExtractRootPropsFromConfig, h as Field, i as FieldProps, y as FieldRenderFunctions, u as FieldTransformFn, s as FieldTransformFnParams, g as FieldTransforms, F as Fields, H as History, I as IframeConfig, l as InitialHistory, z as ItemWithId, T as MappedItem, M as Metadata, $ as NumberField, a4 as ObjectField, k as OnAction, x as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, G as PuckComponent, ab as PuckContext, a2 as RadioField, c as ResolveDataTrigger, J as RootConfig, N as RootData, R as RootDataWithProps, L as RootDataWithoutProps, a1 as SelectField, S as Slot, E as SlotComponent, aa as SlotField, _ as TextField, a0 as TextareaField, e as UiState, U as UserGenerics, q as Viewport, V as Viewports, aj as WithChildren, ag as WithId, ah as WithPuckProps, W as WithSlotProps, m as migrate, v as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-Dn5XpDNA.js';
|
|
2
2
|
export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, UsePuckData, blocksPlugin, createUsePuck, outlinePlugin, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck } from './index.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'react/jsx-runtime';
|