@measured/puck 0.21.0-canary.e9d5c0ea → 0.21.0-canary.f3ce0d72
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-J6I4S2BQ.mjs → chunk-73365SXB.mjs} +138 -425
- package/dist/{chunk-6SIKCDJJ.mjs → chunk-FY5AZKYD.mjs} +8 -8
- package/dist/index.css +35 -34
- package/dist/index.d.mts +11 -4
- package/dist/index.d.ts +11 -4
- package/dist/index.js +110 -394
- package/dist/index.mjs +4 -2
- package/dist/no-external.css +35 -34
- package/dist/no-external.d.mts +2 -2
- package/dist/no-external.d.ts +2 -2
- package/dist/no-external.js +107 -391
- package/dist/no-external.mjs +4 -2
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +8 -8
- package/dist/rsc.mjs +1 -1
- package/dist/{walk-tree-CD9WQheJ.d.mts → walk-tree-CL-j099F.d.mts} +2 -1
- package/dist/{walk-tree-CD9WQheJ.d.ts → walk-tree-CL-j099F.d.ts} +2 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
Puck,
|
|
13
13
|
Render,
|
|
14
14
|
blocksPlugin,
|
|
15
|
+
createReducer,
|
|
15
16
|
createUsePuck,
|
|
16
17
|
fieldsPlugin,
|
|
17
18
|
outlinePlugin,
|
|
@@ -21,14 +22,14 @@ import {
|
|
|
21
22
|
setDeep,
|
|
22
23
|
useGetPuck,
|
|
23
24
|
usePuck
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-73365SXB.mjs";
|
|
25
26
|
import {
|
|
26
27
|
init_react_import,
|
|
27
28
|
migrate,
|
|
28
29
|
resolveAllData,
|
|
29
30
|
transformProps,
|
|
30
31
|
walkTree
|
|
31
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-FY5AZKYD.mjs";
|
|
32
33
|
|
|
33
34
|
// bundle/index.ts
|
|
34
35
|
init_react_import();
|
|
@@ -46,6 +47,7 @@ export {
|
|
|
46
47
|
Puck,
|
|
47
48
|
Render,
|
|
48
49
|
blocksPlugin,
|
|
50
|
+
createReducer,
|
|
49
51
|
createUsePuck,
|
|
50
52
|
fieldsPlugin,
|
|
51
53
|
migrate,
|
package/dist/no-external.css
CHANGED
|
@@ -1565,24 +1565,25 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
1565
1565
|
}
|
|
1566
1566
|
|
|
1567
1567
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Layout/styles.module.css/#css-module-data */
|
|
1568
|
-
.
|
|
1568
|
+
._Puck_lqzmv_19 {
|
|
1569
1569
|
--puck-space-px: 16px;
|
|
1570
1570
|
font-family: var(--puck-font-family);
|
|
1571
|
+
height: 100%;
|
|
1571
1572
|
overflow-x: hidden;
|
|
1572
1573
|
}
|
|
1573
1574
|
@media (min-width: 766px) {
|
|
1574
|
-
.
|
|
1575
|
+
._Puck_lqzmv_19 {
|
|
1575
1576
|
overflow-x: auto;
|
|
1576
1577
|
}
|
|
1577
1578
|
}
|
|
1578
|
-
._Puck-
|
|
1579
|
+
._Puck-portal_lqzmv_32 {
|
|
1579
1580
|
position: relative;
|
|
1580
1581
|
z-index: 2;
|
|
1581
1582
|
}
|
|
1582
|
-
.
|
|
1583
|
-
height:
|
|
1583
|
+
._PuckLayout_lqzmv_37 {
|
|
1584
|
+
height: 100dvh;
|
|
1584
1585
|
}
|
|
1585
|
-
._PuckLayout-
|
|
1586
|
+
._PuckLayout-inner_lqzmv_41 {
|
|
1586
1587
|
--puck-frame-width: auto;
|
|
1587
1588
|
--puck-side-nav-width: min-content;
|
|
1588
1589
|
--puck-side-bar-width: 0px;
|
|
@@ -1600,87 +1601,87 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
1600
1601
|
overflow: hidden;
|
|
1601
1602
|
}
|
|
1602
1603
|
@media (min-width: 638px) {
|
|
1603
|
-
._PuckLayout-
|
|
1604
|
+
._PuckLayout-inner_lqzmv_41 {
|
|
1604
1605
|
--puck-side-nav-width: 68px;
|
|
1605
1606
|
grid-template-areas: "header header header header" "sidenav left editor right";
|
|
1606
1607
|
grid-template-columns: var(--puck-side-nav-width) 0 var(--puck-frame-width) 0;
|
|
1607
1608
|
grid-template-rows: min-content auto;
|
|
1608
1609
|
}
|
|
1609
1610
|
}
|
|
1610
|
-
._PuckLayout--
|
|
1611
|
+
._PuckLayout--mounted_lqzmv_74 ._PuckLayout-inner_lqzmv_41 {
|
|
1611
1612
|
--puck-side-bar-width: 186px;
|
|
1612
1613
|
}
|
|
1613
|
-
._PuckLayout--
|
|
1614
|
+
._PuckLayout--mobilePanelHeightToggle_lqzmv_78._PuckLayout--leftSideBarVisible_lqzmv_78 ._PuckLayout-inner_lqzmv_41 {
|
|
1614
1615
|
grid-template-rows: 0 auto 30% 0 var(--puck-side-nav-width);
|
|
1615
1616
|
}
|
|
1616
|
-
._PuckLayout--
|
|
1617
|
+
._PuckLayout--mobilePanelHeightToggle_lqzmv_78._PuckLayout--leftSideBarVisible_lqzmv_78._PuckLayout--isExpanded_lqzmv_84 ._PuckLayout-inner_lqzmv_41 {
|
|
1617
1618
|
grid-template-rows: 0 auto 55% 0 var(--puck-side-nav-width);
|
|
1618
1619
|
}
|
|
1619
1620
|
@media (min-width: 638px) {
|
|
1620
|
-
._PuckLayout--
|
|
1621
|
+
._PuckLayout--mobilePanelHeightToggle_lqzmv_78._PuckLayout--leftSideBarVisible_lqzmv_78 ._PuckLayout-inner_lqzmv_41 {
|
|
1621
1622
|
grid-template-columns: var(--puck-side-nav-width) var(--puck-left-side-bar-width) var( --puck-frame-width ) 0;
|
|
1622
1623
|
grid-template-rows: min-content auto;
|
|
1623
1624
|
}
|
|
1624
1625
|
}
|
|
1625
|
-
._PuckLayout--
|
|
1626
|
-
._PuckLayout--
|
|
1626
|
+
._PuckLayout--mobilePanelHeightMinContent_lqzmv_102._PuckLayout--leftSideBarVisible_lqzmv_78 ._PuckLayout-inner_lqzmv_41,
|
|
1627
|
+
._PuckLayout--mobilePanelHeightMinContent_lqzmv_102._PuckLayout--leftSideBarVisible_lqzmv_78._PuckLayout--isExpanded_lqzmv_84 ._PuckLayout-inner_lqzmv_41 {
|
|
1627
1628
|
grid-template-rows: 0 auto min-content 0 var(--puck-side-nav-width);
|
|
1628
1629
|
}
|
|
1629
1630
|
@media (min-width: 638px) {
|
|
1630
|
-
._PuckLayout--
|
|
1631
|
-
._PuckLayout--
|
|
1632
|
-
._PuckLayout--
|
|
1633
|
-
._PuckLayout--
|
|
1631
|
+
._PuckLayout--mobilePanelHeightToggle_lqzmv_78._PuckLayout--leftSideBarVisible_lqzmv_78 ._PuckLayout-inner_lqzmv_41,
|
|
1632
|
+
._PuckLayout--mobilePanelHeightToggle_lqzmv_78._PuckLayout--leftSideBarVisible_lqzmv_78._PuckLayout--isExpanded_lqzmv_84 ._PuckLayout-inner_lqzmv_41,
|
|
1633
|
+
._PuckLayout--mobilePanelHeightMinContent_lqzmv_102._PuckLayout--leftSideBarVisible_lqzmv_78 ._PuckLayout-inner_lqzmv_41,
|
|
1634
|
+
._PuckLayout--mobilePanelHeightMinContent_lqzmv_102._PuckLayout--leftSideBarVisible_lqzmv_78._PuckLayout--isExpanded_lqzmv_84 ._PuckLayout-inner_lqzmv_41 {
|
|
1634
1635
|
grid-template-columns: var(--puck-side-nav-width) var(--puck-left-side-bar-width) var( --puck-frame-width ) 0;
|
|
1635
1636
|
grid-template-rows: min-content auto;
|
|
1636
1637
|
}
|
|
1637
1638
|
}
|
|
1638
1639
|
@media (min-width: 638px) {
|
|
1639
|
-
._PuckLayout--
|
|
1640
|
+
._PuckLayout--rightSideBarVisible_lqzmv_129 ._PuckLayout-inner_lqzmv_41 {
|
|
1640
1641
|
grid-template-columns: var(--puck-side-nav-width) 0 var(--puck-frame-width) var(--puck-right-side-bar-width);
|
|
1641
1642
|
}
|
|
1642
1643
|
}
|
|
1643
1644
|
@media (min-width: 638px) {
|
|
1644
|
-
._PuckLayout--
|
|
1645
|
+
._PuckLayout--leftSideBarVisible_lqzmv_78._PuckLayout--rightSideBarVisible_lqzmv_129 ._PuckLayout-inner_lqzmv_41 {
|
|
1645
1646
|
grid-template-columns: var(--puck-side-nav-width) var(--puck-left-side-bar-width) var( --puck-frame-width ) var(--puck-right-side-bar-width);
|
|
1646
1647
|
}
|
|
1647
1648
|
}
|
|
1648
1649
|
@media (min-width: 458px) {
|
|
1649
|
-
._PuckLayout-
|
|
1650
|
+
._PuckLayout-mounted_lqzmv_148 ._PuckLayout-inner_lqzmv_41 {
|
|
1650
1651
|
--puck-frame-width: minmax(266px, auto);
|
|
1651
1652
|
}
|
|
1652
1653
|
}
|
|
1653
1654
|
@media (min-width: 638px) {
|
|
1654
|
-
.
|
|
1655
|
+
._PuckLayout_lqzmv_37 ._PuckLayout-inner_lqzmv_41 {
|
|
1655
1656
|
--puck-side-bar-width: minmax(186px, 250px);
|
|
1656
1657
|
}
|
|
1657
1658
|
}
|
|
1658
1659
|
@media (min-width: 766px) {
|
|
1659
|
-
.
|
|
1660
|
+
._PuckLayout_lqzmv_37 ._PuckLayout-inner_lqzmv_41 {
|
|
1660
1661
|
--puck-frame-width: auto;
|
|
1661
1662
|
}
|
|
1662
1663
|
}
|
|
1663
1664
|
@media (min-width: 990px) {
|
|
1664
|
-
.
|
|
1665
|
+
._PuckLayout_lqzmv_37 ._PuckLayout-inner_lqzmv_41 {
|
|
1665
1666
|
--puck-side-bar-width: 256px;
|
|
1666
1667
|
}
|
|
1667
1668
|
}
|
|
1668
1669
|
@media (min-width: 1198px) {
|
|
1669
|
-
.
|
|
1670
|
+
._PuckLayout_lqzmv_37 ._PuckLayout-inner_lqzmv_41 {
|
|
1670
1671
|
--puck-side-bar-width: 274px;
|
|
1671
1672
|
}
|
|
1672
1673
|
}
|
|
1673
1674
|
@media (min-width: 1398px) {
|
|
1674
|
-
.
|
|
1675
|
+
._PuckLayout_lqzmv_37 ._PuckLayout-inner_lqzmv_41 {
|
|
1675
1676
|
--puck-side-bar-width: 290px;
|
|
1676
1677
|
}
|
|
1677
1678
|
}
|
|
1678
1679
|
@media (min-width: 1598px) {
|
|
1679
|
-
.
|
|
1680
|
+
._PuckLayout_lqzmv_37 ._PuckLayout-inner_lqzmv_41 {
|
|
1680
1681
|
--puck-side-bar-width: 320px;
|
|
1681
1682
|
}
|
|
1682
1683
|
}
|
|
1683
|
-
._PuckLayout-
|
|
1684
|
+
._PuckLayout-nav_lqzmv_189 {
|
|
1684
1685
|
border-top: 1px solid var(--puck-color-grey-09);
|
|
1685
1686
|
background-color: var(--puck-color-grey-12);
|
|
1686
1687
|
grid-area: sidenav;
|
|
@@ -1688,33 +1689,33 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
1688
1689
|
width: 100%;
|
|
1689
1690
|
}
|
|
1690
1691
|
@media (min-width: 638px) {
|
|
1691
|
-
._PuckLayout-
|
|
1692
|
+
._PuckLayout-nav_lqzmv_189 {
|
|
1692
1693
|
border-top: 0;
|
|
1693
1694
|
border-right: 1px solid var(--puck-color-grey-09);
|
|
1694
1695
|
box-sizing: border-box;
|
|
1695
1696
|
}
|
|
1696
1697
|
}
|
|
1697
|
-
._PuckLayout-
|
|
1698
|
+
._PuckLayout-header_lqzmv_205 {
|
|
1698
1699
|
grid-area: header;
|
|
1699
1700
|
}
|
|
1700
|
-
._PuckLayout--
|
|
1701
|
+
._PuckLayout--leftSideBarVisible_lqzmv_78 ._PuckLayout-header_lqzmv_205 {
|
|
1701
1702
|
overflow: hidden;
|
|
1702
1703
|
}
|
|
1703
1704
|
@media (min-width: 638px) {
|
|
1704
|
-
._PuckLayout--
|
|
1705
|
+
._PuckLayout--leftSideBarVisible_lqzmv_78 ._PuckLayout-header_lqzmv_205 {
|
|
1705
1706
|
overflow: auto;
|
|
1706
1707
|
}
|
|
1707
1708
|
}
|
|
1708
|
-
.
|
|
1709
|
+
._PuckPluginTab_lqzmv_219 {
|
|
1709
1710
|
display: none;
|
|
1710
1711
|
flex-grow: 1;
|
|
1711
1712
|
overflow: hidden;
|
|
1712
1713
|
}
|
|
1713
|
-
._PuckPluginTab--
|
|
1714
|
+
._PuckPluginTab--visible_lqzmv_225 {
|
|
1714
1715
|
display: flex;
|
|
1715
1716
|
flex-direction: column;
|
|
1716
1717
|
}
|
|
1717
|
-
._PuckPluginTab-
|
|
1718
|
+
._PuckPluginTab-body_lqzmv_230 {
|
|
1718
1719
|
flex-grow: 1;
|
|
1719
1720
|
overflow: hidden;
|
|
1720
1721
|
}
|
package/dist/no-external.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, UsePuckData, blocksPlugin, createUsePuck, fieldsPlugin, outlinePlugin, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck } from './index.mjs';
|
|
1
|
+
export { af as Adaptor, A as AppState, ad as ArrayField, G as ArrayState, at as AsFieldProps, Z as BaseData, a7 as BaseField, ah as CacheOpts, f as ComponentConfig, L as ComponentConfigExtensions, Y as ComponentConfigParams, a as ComponentData, a2 as ComponentDataMap, a0 as ComponentDataOptionalId, a5 as ComponentMetadata, C as Config, X as ConfigParams, a3 as Content, ak as CustomField, aj as CustomFieldRender, D as Data, aq as DefaultComponentProps, Q as DefaultComponents, an as DefaultRootFieldProps, ap as DefaultRootProps, ao as DefaultRootRenderProps, q as Direction, s as DragAxis, ai as ExternalField, ag as ExternalFieldWithAdaptor, T as ExtractConfigParams, av as ExtractField, j as Field, a6 as FieldMetadata, k as FieldProps, B as FieldRenderFunctions, x as FieldTransformFn, v as FieldTransformFnParams, g as FieldTransforms, F as Fields, H as History, I as IframeConfig, n as InitialHistory, E as ItemWithId, a1 as MappedItem, M as Metadata, a9 as NumberField, ae as ObjectField, h as OnAction, z as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, K as PuckComponent, am as PuckContext, a4 as PuckMetadata, ac as RadioField, c as ResolveDataTrigger, N as RootConfig, $ as RootData, R as RootDataWithProps, _ as RootDataWithoutProps, ab as SelectField, S as Slot, J as SlotComponent, al as SlotField, a8 as TextField, aa as TextareaField, e as UiState, U as UserGenerics, u as Viewport, V as Viewports, au as WithChildren, ar as WithId, as as WithPuckProps, W as WithSlotProps, m as migrate, y as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-CL-j099F.mjs';
|
|
2
|
+
export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, UsePuckData, blocksPlugin, createReducer, createUsePuck, fieldsPlugin, 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 {
|
|
2
|
-
export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, UsePuckData, blocksPlugin, createUsePuck, fieldsPlugin, outlinePlugin, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck } from './index.js';
|
|
1
|
+
export { af as Adaptor, A as AppState, ad as ArrayField, G as ArrayState, at as AsFieldProps, Z as BaseData, a7 as BaseField, ah as CacheOpts, f as ComponentConfig, L as ComponentConfigExtensions, Y as ComponentConfigParams, a as ComponentData, a2 as ComponentDataMap, a0 as ComponentDataOptionalId, a5 as ComponentMetadata, C as Config, X as ConfigParams, a3 as Content, ak as CustomField, aj as CustomFieldRender, D as Data, aq as DefaultComponentProps, Q as DefaultComponents, an as DefaultRootFieldProps, ap as DefaultRootProps, ao as DefaultRootRenderProps, q as Direction, s as DragAxis, ai as ExternalField, ag as ExternalFieldWithAdaptor, T as ExtractConfigParams, av as ExtractField, j as Field, a6 as FieldMetadata, k as FieldProps, B as FieldRenderFunctions, x as FieldTransformFn, v as FieldTransformFnParams, g as FieldTransforms, F as Fields, H as History, I as IframeConfig, n as InitialHistory, E as ItemWithId, a1 as MappedItem, M as Metadata, a9 as NumberField, ae as ObjectField, h as OnAction, z as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, K as PuckComponent, am as PuckContext, a4 as PuckMetadata, ac as RadioField, c as ResolveDataTrigger, N as RootConfig, $ as RootData, R as RootDataWithProps, _ as RootDataWithoutProps, ab as SelectField, S as Slot, J as SlotComponent, al as SlotField, a8 as TextField, aa as TextareaField, e as UiState, U as UserGenerics, u as Viewport, V as Viewports, au as WithChildren, ar as WithId, as as WithPuckProps, W as WithSlotProps, m as migrate, y as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-CL-j099F.js';
|
|
2
|
+
export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, UsePuckData, blocksPlugin, createReducer, createUsePuck, fieldsPlugin, outlinePlugin, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck } from './index.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'react/jsx-runtime';
|