@measured/puck 0.21.0-canary.bd7b613d → 0.21.0-canary.c0db75c1
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/{walk-tree-Cvtjzg9C.d.mts → actions-CaYAKtsG.d.mts} +63 -74
- package/dist/{walk-tree-Cvtjzg9C.d.ts → actions-CaYAKtsG.d.ts} +63 -74
- package/dist/{chunk-DBHXESEC.mjs → chunk-E4BOPJJV.mjs} +271 -998
- package/dist/chunk-J32NOAUF.mjs +524 -0
- package/dist/chunk-PJYARUPI.mjs +477 -0
- package/dist/chunk-S3RM5GHZ.mjs +503 -0
- package/dist/index-C6QwyW4B.d.ts +109 -0
- package/dist/index-IMRjDHZk.d.mts +109 -0
- package/dist/index.css +39 -37
- package/dist/index.d.mts +8 -109
- package/dist/index.d.ts +8 -109
- package/dist/index.js +279 -518
- package/dist/index.mjs +7 -4
- package/dist/internal.d.mts +12 -0
- package/dist/internal.d.ts +12 -0
- package/dist/internal.js +906 -0
- package/dist/internal.mjs +12 -0
- package/dist/no-external.css +39 -37
- package/dist/no-external.d.mts +3 -1
- package/dist/no-external.d.ts +3 -1
- package/dist/no-external.js +276 -515
- package/dist/no-external.mjs +7 -4
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +29 -33
- package/dist/rsc.mjs +7 -5
- package/dist/walk-tree-B-Q2gpMX.d.mts +29 -0
- package/dist/walk-tree-ksvZ7C4q.d.ts +29 -0
- package/package.json +7 -2
- package/dist/chunk-FPQ7BWRD.mjs +0 -971
package/dist/no-external.css
CHANGED
|
@@ -1329,16 +1329,17 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
|
|
1331
1331
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/InlineTextField/styles.module.css/#css-module-data */
|
|
1332
|
-
.
|
|
1332
|
+
._InlineTextField_104qp_1 {
|
|
1333
1333
|
cursor: text;
|
|
1334
1334
|
display: inline-block;
|
|
1335
1335
|
white-space: pre-wrap;
|
|
1336
|
+
text-decoration: inherit;
|
|
1336
1337
|
}
|
|
1337
|
-
[data-dnd-dragging] .
|
|
1338
|
+
[data-dnd-dragging] ._InlineTextField_104qp_1 {
|
|
1338
1339
|
cursor: none;
|
|
1339
1340
|
caret-color: transparent;
|
|
1340
1341
|
}
|
|
1341
|
-
[data-dnd-dragging] .
|
|
1342
|
+
[data-dnd-dragging] ._InlineTextField_104qp_1::selection {
|
|
1342
1343
|
display: none;
|
|
1343
1344
|
}
|
|
1344
1345
|
|
|
@@ -1564,24 +1565,25 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
1564
1565
|
}
|
|
1565
1566
|
|
|
1566
1567
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Layout/styles.module.css/#css-module-data */
|
|
1567
|
-
.
|
|
1568
|
+
._Puck_lqzmv_19 {
|
|
1568
1569
|
--puck-space-px: 16px;
|
|
1569
1570
|
font-family: var(--puck-font-family);
|
|
1571
|
+
height: 100%;
|
|
1570
1572
|
overflow-x: hidden;
|
|
1571
1573
|
}
|
|
1572
1574
|
@media (min-width: 766px) {
|
|
1573
|
-
.
|
|
1575
|
+
._Puck_lqzmv_19 {
|
|
1574
1576
|
overflow-x: auto;
|
|
1575
1577
|
}
|
|
1576
1578
|
}
|
|
1577
|
-
._Puck-
|
|
1579
|
+
._Puck-portal_lqzmv_32 {
|
|
1578
1580
|
position: relative;
|
|
1579
1581
|
z-index: 2;
|
|
1580
1582
|
}
|
|
1581
|
-
.
|
|
1582
|
-
height:
|
|
1583
|
+
._PuckLayout_lqzmv_37 {
|
|
1584
|
+
height: 100dvh;
|
|
1583
1585
|
}
|
|
1584
|
-
._PuckLayout-
|
|
1586
|
+
._PuckLayout-inner_lqzmv_41 {
|
|
1585
1587
|
--puck-frame-width: auto;
|
|
1586
1588
|
--puck-side-nav-width: min-content;
|
|
1587
1589
|
--puck-side-bar-width: 0px;
|
|
@@ -1599,87 +1601,87 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
1599
1601
|
overflow: hidden;
|
|
1600
1602
|
}
|
|
1601
1603
|
@media (min-width: 638px) {
|
|
1602
|
-
._PuckLayout-
|
|
1604
|
+
._PuckLayout-inner_lqzmv_41 {
|
|
1603
1605
|
--puck-side-nav-width: 68px;
|
|
1604
1606
|
grid-template-areas: "header header header header" "sidenav left editor right";
|
|
1605
1607
|
grid-template-columns: var(--puck-side-nav-width) 0 var(--puck-frame-width) 0;
|
|
1606
1608
|
grid-template-rows: min-content auto;
|
|
1607
1609
|
}
|
|
1608
1610
|
}
|
|
1609
|
-
._PuckLayout--
|
|
1611
|
+
._PuckLayout--mounted_lqzmv_74 ._PuckLayout-inner_lqzmv_41 {
|
|
1610
1612
|
--puck-side-bar-width: 186px;
|
|
1611
1613
|
}
|
|
1612
|
-
._PuckLayout--
|
|
1614
|
+
._PuckLayout--mobilePanelHeightToggle_lqzmv_78._PuckLayout--leftSideBarVisible_lqzmv_78 ._PuckLayout-inner_lqzmv_41 {
|
|
1613
1615
|
grid-template-rows: 0 auto 30% 0 var(--puck-side-nav-width);
|
|
1614
1616
|
}
|
|
1615
|
-
._PuckLayout--
|
|
1617
|
+
._PuckLayout--mobilePanelHeightToggle_lqzmv_78._PuckLayout--leftSideBarVisible_lqzmv_78._PuckLayout--isExpanded_lqzmv_84 ._PuckLayout-inner_lqzmv_41 {
|
|
1616
1618
|
grid-template-rows: 0 auto 55% 0 var(--puck-side-nav-width);
|
|
1617
1619
|
}
|
|
1618
1620
|
@media (min-width: 638px) {
|
|
1619
|
-
._PuckLayout--
|
|
1621
|
+
._PuckLayout--mobilePanelHeightToggle_lqzmv_78._PuckLayout--leftSideBarVisible_lqzmv_78 ._PuckLayout-inner_lqzmv_41 {
|
|
1620
1622
|
grid-template-columns: var(--puck-side-nav-width) var(--puck-left-side-bar-width) var( --puck-frame-width ) 0;
|
|
1621
1623
|
grid-template-rows: min-content auto;
|
|
1622
1624
|
}
|
|
1623
1625
|
}
|
|
1624
|
-
._PuckLayout--
|
|
1625
|
-
._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 {
|
|
1626
1628
|
grid-template-rows: 0 auto min-content 0 var(--puck-side-nav-width);
|
|
1627
1629
|
}
|
|
1628
1630
|
@media (min-width: 638px) {
|
|
1629
|
-
._PuckLayout--
|
|
1630
|
-
._PuckLayout--
|
|
1631
|
-
._PuckLayout--
|
|
1632
|
-
._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 {
|
|
1633
1635
|
grid-template-columns: var(--puck-side-nav-width) var(--puck-left-side-bar-width) var( --puck-frame-width ) 0;
|
|
1634
1636
|
grid-template-rows: min-content auto;
|
|
1635
1637
|
}
|
|
1636
1638
|
}
|
|
1637
1639
|
@media (min-width: 638px) {
|
|
1638
|
-
._PuckLayout--
|
|
1640
|
+
._PuckLayout--rightSideBarVisible_lqzmv_129 ._PuckLayout-inner_lqzmv_41 {
|
|
1639
1641
|
grid-template-columns: var(--puck-side-nav-width) 0 var(--puck-frame-width) var(--puck-right-side-bar-width);
|
|
1640
1642
|
}
|
|
1641
1643
|
}
|
|
1642
1644
|
@media (min-width: 638px) {
|
|
1643
|
-
._PuckLayout--
|
|
1645
|
+
._PuckLayout--leftSideBarVisible_lqzmv_78._PuckLayout--rightSideBarVisible_lqzmv_129 ._PuckLayout-inner_lqzmv_41 {
|
|
1644
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);
|
|
1645
1647
|
}
|
|
1646
1648
|
}
|
|
1647
1649
|
@media (min-width: 458px) {
|
|
1648
|
-
._PuckLayout-
|
|
1650
|
+
._PuckLayout-mounted_lqzmv_148 ._PuckLayout-inner_lqzmv_41 {
|
|
1649
1651
|
--puck-frame-width: minmax(266px, auto);
|
|
1650
1652
|
}
|
|
1651
1653
|
}
|
|
1652
1654
|
@media (min-width: 638px) {
|
|
1653
|
-
.
|
|
1655
|
+
._PuckLayout_lqzmv_37 ._PuckLayout-inner_lqzmv_41 {
|
|
1654
1656
|
--puck-side-bar-width: minmax(186px, 250px);
|
|
1655
1657
|
}
|
|
1656
1658
|
}
|
|
1657
1659
|
@media (min-width: 766px) {
|
|
1658
|
-
.
|
|
1660
|
+
._PuckLayout_lqzmv_37 ._PuckLayout-inner_lqzmv_41 {
|
|
1659
1661
|
--puck-frame-width: auto;
|
|
1660
1662
|
}
|
|
1661
1663
|
}
|
|
1662
1664
|
@media (min-width: 990px) {
|
|
1663
|
-
.
|
|
1665
|
+
._PuckLayout_lqzmv_37 ._PuckLayout-inner_lqzmv_41 {
|
|
1664
1666
|
--puck-side-bar-width: 256px;
|
|
1665
1667
|
}
|
|
1666
1668
|
}
|
|
1667
1669
|
@media (min-width: 1198px) {
|
|
1668
|
-
.
|
|
1670
|
+
._PuckLayout_lqzmv_37 ._PuckLayout-inner_lqzmv_41 {
|
|
1669
1671
|
--puck-side-bar-width: 274px;
|
|
1670
1672
|
}
|
|
1671
1673
|
}
|
|
1672
1674
|
@media (min-width: 1398px) {
|
|
1673
|
-
.
|
|
1675
|
+
._PuckLayout_lqzmv_37 ._PuckLayout-inner_lqzmv_41 {
|
|
1674
1676
|
--puck-side-bar-width: 290px;
|
|
1675
1677
|
}
|
|
1676
1678
|
}
|
|
1677
1679
|
@media (min-width: 1598px) {
|
|
1678
|
-
.
|
|
1680
|
+
._PuckLayout_lqzmv_37 ._PuckLayout-inner_lqzmv_41 {
|
|
1679
1681
|
--puck-side-bar-width: 320px;
|
|
1680
1682
|
}
|
|
1681
1683
|
}
|
|
1682
|
-
._PuckLayout-
|
|
1684
|
+
._PuckLayout-nav_lqzmv_189 {
|
|
1683
1685
|
border-top: 1px solid var(--puck-color-grey-09);
|
|
1684
1686
|
background-color: var(--puck-color-grey-12);
|
|
1685
1687
|
grid-area: sidenav;
|
|
@@ -1687,33 +1689,33 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
1687
1689
|
width: 100%;
|
|
1688
1690
|
}
|
|
1689
1691
|
@media (min-width: 638px) {
|
|
1690
|
-
._PuckLayout-
|
|
1692
|
+
._PuckLayout-nav_lqzmv_189 {
|
|
1691
1693
|
border-top: 0;
|
|
1692
1694
|
border-right: 1px solid var(--puck-color-grey-09);
|
|
1693
1695
|
box-sizing: border-box;
|
|
1694
1696
|
}
|
|
1695
1697
|
}
|
|
1696
|
-
._PuckLayout-
|
|
1698
|
+
._PuckLayout-header_lqzmv_205 {
|
|
1697
1699
|
grid-area: header;
|
|
1698
1700
|
}
|
|
1699
|
-
._PuckLayout--
|
|
1701
|
+
._PuckLayout--leftSideBarVisible_lqzmv_78 ._PuckLayout-header_lqzmv_205 {
|
|
1700
1702
|
overflow: hidden;
|
|
1701
1703
|
}
|
|
1702
1704
|
@media (min-width: 638px) {
|
|
1703
|
-
._PuckLayout--
|
|
1705
|
+
._PuckLayout--leftSideBarVisible_lqzmv_78 ._PuckLayout-header_lqzmv_205 {
|
|
1704
1706
|
overflow: auto;
|
|
1705
1707
|
}
|
|
1706
1708
|
}
|
|
1707
|
-
.
|
|
1709
|
+
._PuckPluginTab_lqzmv_219 {
|
|
1708
1710
|
display: none;
|
|
1709
1711
|
flex-grow: 1;
|
|
1710
1712
|
overflow: hidden;
|
|
1711
1713
|
}
|
|
1712
|
-
._PuckPluginTab--
|
|
1714
|
+
._PuckPluginTab--visible_lqzmv_225 {
|
|
1713
1715
|
display: flex;
|
|
1714
1716
|
flex-direction: column;
|
|
1715
1717
|
}
|
|
1716
|
-
._PuckPluginTab-
|
|
1718
|
+
._PuckPluginTab-body_lqzmv_230 {
|
|
1717
1719
|
flex-grow: 1;
|
|
1718
1720
|
overflow: hidden;
|
|
1719
1721
|
}
|
package/dist/no-external.d.mts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { ae as Adaptor, A as AppState, ac as ArrayField, K as ArrayState, ap as AsFieldProps, _ as BaseData, a6 as BaseField, ag as CacheOpts, m as ComponentConfig, Q as ComponentConfigExtensions, Z as ComponentConfigParams, c as ComponentData, a2 as ComponentDataMap, a0 as ComponentDataOptionalId, a4 as ComponentMetadata, C as Config, Y as ConfigParams, b as Content, aj as CustomField, ai as CustomFieldRender, D as Data, e as DefaultComponentProps, d as DefaultComponents, f as DefaultRootFieldProps, an as DefaultRootProps, am as DefaultRootRenderProps, v as Direction, w as DragAxis, ah as ExternalField, af as ExternalFieldWithAdaptor, X as ExtractConfigParams, ar as ExtractField, o as Field, a5 as FieldMetadata, p as FieldProps, G as FieldRenderFunctions, z as FieldTransformFn, y as FieldTransformFnParams, n as FieldTransforms, F as Fields, H as History, I as IframeConfig, r as InitialHistory, J as ItemWithId, a1 as MappedItem, M as Metadata, a8 as NumberField, ad as ObjectField, O as OnAction, E as OverrideKey, k as Overrides, g as Permissions, j as Plugin, a as PuckAction, N as PuckComponent, al as PuckContext, a3 as PuckMetadata, ab as RadioField, i as ResolveDataTrigger, T as RootConfig, R as RootData, h as RootDataWithProps, $ as RootDataWithoutProps, aa as SelectField, S as Slot, L as SlotComponent, ak as SlotField, a7 as TextField, a9 as TextareaField, l as UiState, U as UserGenerics, x as Viewport, V as Viewports, aq as WithChildren, W as WithId, ao as WithPuckProps, u as WithSlotProps, B as overrideKeys } from './actions-CaYAKtsG.mjs';
|
|
2
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';
|
|
3
|
+
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-B-Q2gpMX.mjs';
|
|
3
4
|
import 'react';
|
|
4
5
|
import 'react/jsx-runtime';
|
|
6
|
+
import './index-IMRjDHZk.mjs';
|
package/dist/no-external.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { ae as Adaptor, A as AppState, ac as ArrayField, K as ArrayState, ap as AsFieldProps, _ as BaseData, a6 as BaseField, ag as CacheOpts, m as ComponentConfig, Q as ComponentConfigExtensions, Z as ComponentConfigParams, c as ComponentData, a2 as ComponentDataMap, a0 as ComponentDataOptionalId, a4 as ComponentMetadata, C as Config, Y as ConfigParams, b as Content, aj as CustomField, ai as CustomFieldRender, D as Data, e as DefaultComponentProps, d as DefaultComponents, f as DefaultRootFieldProps, an as DefaultRootProps, am as DefaultRootRenderProps, v as Direction, w as DragAxis, ah as ExternalField, af as ExternalFieldWithAdaptor, X as ExtractConfigParams, ar as ExtractField, o as Field, a5 as FieldMetadata, p as FieldProps, G as FieldRenderFunctions, z as FieldTransformFn, y as FieldTransformFnParams, n as FieldTransforms, F as Fields, H as History, I as IframeConfig, r as InitialHistory, J as ItemWithId, a1 as MappedItem, M as Metadata, a8 as NumberField, ad as ObjectField, O as OnAction, E as OverrideKey, k as Overrides, g as Permissions, j as Plugin, a as PuckAction, N as PuckComponent, al as PuckContext, a3 as PuckMetadata, ab as RadioField, i as ResolveDataTrigger, T as RootConfig, R as RootData, h as RootDataWithProps, $ as RootDataWithoutProps, aa as SelectField, S as Slot, L as SlotComponent, ak as SlotField, a7 as TextField, a9 as TextareaField, l as UiState, U as UserGenerics, x as Viewport, V as Viewports, aq as WithChildren, W as WithId, ao as WithPuckProps, u as WithSlotProps, B as overrideKeys } from './actions-CaYAKtsG.js';
|
|
2
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';
|
|
3
|
+
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-ksvZ7C4q.js';
|
|
3
4
|
import 'react';
|
|
4
5
|
import 'react/jsx-runtime';
|
|
6
|
+
import './index-C6QwyW4B.js';
|