@measured/puck 0.21.0-canary.7dca3a5a → 0.21.0-canary.8416d520

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.mjs CHANGED
@@ -21,14 +21,14 @@ import {
21
21
  setDeep,
22
22
  useGetPuck,
23
23
  usePuck
24
- } from "./chunk-FKDVYRQW.mjs";
24
+ } from "./chunk-N52WGXS5.mjs";
25
25
  import {
26
26
  init_react_import,
27
27
  migrate,
28
28
  resolveAllData,
29
29
  transformProps,
30
30
  walkTree
31
- } from "./chunk-6SIKCDJJ.mjs";
31
+ } from "./chunk-FY5AZKYD.mjs";
32
32
 
33
33
  // bundle/index.ts
34
34
  init_react_import();
@@ -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
- ._Puck_hv23j_19 {
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
- ._Puck_hv23j_19 {
1575
+ ._Puck_lqzmv_19 {
1575
1576
  overflow-x: auto;
1576
1577
  }
1577
1578
  }
1578
- ._Puck-portal_hv23j_31 {
1579
+ ._Puck-portal_lqzmv_32 {
1579
1580
  position: relative;
1580
1581
  z-index: 2;
1581
1582
  }
1582
- ._PuckLayout_hv23j_36 {
1583
- height: 100%;
1583
+ ._PuckLayout_lqzmv_37 {
1584
+ height: 100dvh;
1584
1585
  }
1585
- ._PuckLayout-inner_hv23j_40 {
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-inner_hv23j_40 {
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--mounted_hv23j_73 ._PuckLayout-inner_hv23j_40 {
1611
+ ._PuckLayout--mounted_lqzmv_74 ._PuckLayout-inner_lqzmv_41 {
1611
1612
  --puck-side-bar-width: 186px;
1612
1613
  }
1613
- ._PuckLayout--mobilePanelHeightToggle_hv23j_77._PuckLayout--leftSideBarVisible_hv23j_77 ._PuckLayout-inner_hv23j_40 {
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--mobilePanelHeightToggle_hv23j_77._PuckLayout--leftSideBarVisible_hv23j_77._PuckLayout--isExpanded_hv23j_83 ._PuckLayout-inner_hv23j_40 {
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--mobilePanelHeightToggle_hv23j_77._PuckLayout--leftSideBarVisible_hv23j_77 ._PuckLayout-inner_hv23j_40 {
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--mobilePanelHeightMinContent_hv23j_101._PuckLayout--leftSideBarVisible_hv23j_77 ._PuckLayout-inner_hv23j_40,
1626
- ._PuckLayout--mobilePanelHeightMinContent_hv23j_101._PuckLayout--leftSideBarVisible_hv23j_77._PuckLayout--isExpanded_hv23j_83 ._PuckLayout-inner_hv23j_40 {
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--mobilePanelHeightToggle_hv23j_77._PuckLayout--leftSideBarVisible_hv23j_77 ._PuckLayout-inner_hv23j_40,
1631
- ._PuckLayout--mobilePanelHeightToggle_hv23j_77._PuckLayout--leftSideBarVisible_hv23j_77._PuckLayout--isExpanded_hv23j_83 ._PuckLayout-inner_hv23j_40,
1632
- ._PuckLayout--mobilePanelHeightMinContent_hv23j_101._PuckLayout--leftSideBarVisible_hv23j_77 ._PuckLayout-inner_hv23j_40,
1633
- ._PuckLayout--mobilePanelHeightMinContent_hv23j_101._PuckLayout--leftSideBarVisible_hv23j_77._PuckLayout--isExpanded_hv23j_83 ._PuckLayout-inner_hv23j_40 {
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--rightSideBarVisible_hv23j_128 ._PuckLayout-inner_hv23j_40 {
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--leftSideBarVisible_hv23j_77._PuckLayout--rightSideBarVisible_hv23j_128 ._PuckLayout-inner_hv23j_40 {
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-mounted_hv23j_147 ._PuckLayout-inner_hv23j_40 {
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
- ._PuckLayout_hv23j_36 ._PuckLayout-inner_hv23j_40 {
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
- ._PuckLayout_hv23j_36 ._PuckLayout-inner_hv23j_40 {
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
- ._PuckLayout_hv23j_36 ._PuckLayout-inner_hv23j_40 {
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
- ._PuckLayout_hv23j_36 ._PuckLayout-inner_hv23j_40 {
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
- ._PuckLayout_hv23j_36 ._PuckLayout-inner_hv23j_40 {
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
- ._PuckLayout_hv23j_36 ._PuckLayout-inner_hv23j_40 {
1680
+ ._PuckLayout_lqzmv_37 ._PuckLayout-inner_lqzmv_41 {
1680
1681
  --puck-side-bar-width: 320px;
1681
1682
  }
1682
1683
  }
1683
- ._PuckLayout-nav_hv23j_188 {
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-nav_hv23j_188 {
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-header_hv23j_204 {
1698
+ ._PuckLayout-header_lqzmv_205 {
1698
1699
  grid-area: header;
1699
1700
  }
1700
- ._PuckLayout--leftSideBarVisible_hv23j_77 ._PuckLayout-header_hv23j_204 {
1701
+ ._PuckLayout--leftSideBarVisible_lqzmv_78 ._PuckLayout-header_lqzmv_205 {
1701
1702
  overflow: hidden;
1702
1703
  }
1703
1704
  @media (min-width: 638px) {
1704
- ._PuckLayout--leftSideBarVisible_hv23j_77 ._PuckLayout-header_hv23j_204 {
1705
+ ._PuckLayout--leftSideBarVisible_lqzmv_78 ._PuckLayout-header_lqzmv_205 {
1705
1706
  overflow: auto;
1706
1707
  }
1707
1708
  }
1708
- ._PuckPluginTab_hv23j_218 {
1709
+ ._PuckPluginTab_lqzmv_219 {
1709
1710
  display: none;
1710
1711
  flex-grow: 1;
1711
1712
  overflow: hidden;
1712
1713
  }
1713
- ._PuckPluginTab--visible_hv23j_224 {
1714
+ ._PuckPluginTab--visible_lqzmv_225 {
1714
1715
  display: flex;
1715
1716
  flex-direction: column;
1716
1717
  }
1717
- ._PuckPluginTab-body_hv23j_229 {
1718
+ ._PuckPluginTab-body_lqzmv_230 {
1718
1719
  flex-grow: 1;
1719
1720
  overflow: hidden;
1720
1721
  }
@@ -1,4 +1,4 @@
1
- export { ae as Adaptor, A as AppState, ac as ArrayField, E as ArrayState, as as AsFieldProps, Y as BaseData, a6 as BaseField, ag as CacheOpts, f as ComponentConfig, K as ComponentConfigExtensions, X as ComponentConfigParams, a as ComponentData, a1 as ComponentDataMap, $ as ComponentDataOptionalId, a4 as ComponentMetadata, C as Config, T as ConfigParams, a2 as Content, aj as CustomField, ai as CustomFieldRender, j as Data, ap as DefaultComponentProps, N as DefaultComponents, am as DefaultRootFieldProps, ao as DefaultRootProps, an as DefaultRootRenderProps, p as Direction, q as DragAxis, ah as ExternalField, af as ExternalFieldWithAdaptor, Q as ExtractConfigParams, au as ExtractField, h as Field, a5 as FieldMetadata, i as FieldProps, z as FieldRenderFunctions, v as FieldTransformFn, u as FieldTransformFnParams, g as FieldTransforms, F as Fields, H as History, I as IframeConfig, l as InitialHistory, B as ItemWithId, a0 as MappedItem, M as Metadata, a8 as NumberField, ad as ObjectField, k as OnAction, y as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, J as PuckComponent, al as PuckContext, a3 as PuckMetadata, ab as RadioField, c as ResolveDataTrigger, L as RootConfig, _ as RootData, R as RootDataWithProps, Z as RootDataWithoutProps, aa as SelectField, S as Slot, G as SlotComponent, ak as SlotField, a7 as TextField, a9 as TextareaField, e as UiState, U as UserGenerics, s as Viewport, V as Viewports, at as WithChildren, aq as WithId, ar as WithPuckProps, W as WithSlotProps, m as migrate, x as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-DS1xB387.mjs';
1
+ export { ae as Adaptor, A as AppState, ac as ArrayField, E as ArrayState, as as AsFieldProps, Y as BaseData, a6 as BaseField, ag as CacheOpts, f as ComponentConfig, K as ComponentConfigExtensions, X as ComponentConfigParams, a as ComponentData, a1 as ComponentDataMap, $ as ComponentDataOptionalId, a4 as ComponentMetadata, C as Config, T as ConfigParams, a2 as Content, aj as CustomField, ai as CustomFieldRender, j as Data, ap as DefaultComponentProps, N as DefaultComponents, am as DefaultRootFieldProps, ao as DefaultRootProps, an as DefaultRootRenderProps, p as Direction, q as DragAxis, ah as ExternalField, af as ExternalFieldWithAdaptor, Q as ExtractConfigParams, au as ExtractField, h as Field, a5 as FieldMetadata, i as FieldProps, z as FieldRenderFunctions, v as FieldTransformFn, u as FieldTransformFnParams, g as FieldTransforms, F as Fields, H as History, I as IframeConfig, l as InitialHistory, B as ItemWithId, a0 as MappedItem, M as Metadata, a8 as NumberField, ad as ObjectField, k as OnAction, y as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, J as PuckComponent, al as PuckContext, a3 as PuckMetadata, ab as RadioField, c as ResolveDataTrigger, L as RootConfig, _ as RootData, R as RootDataWithProps, Z as RootDataWithoutProps, aa as SelectField, S as Slot, G as SlotComponent, ak as SlotField, a7 as TextField, a9 as TextareaField, e as UiState, U as UserGenerics, s as Viewport, V as Viewports, at as WithChildren, aq as WithId, ar as WithPuckProps, W as WithSlotProps, m as migrate, x as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-Butv5UdJ.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
3
  import 'react';
4
4
  import 'react/jsx-runtime';
@@ -1,4 +1,4 @@
1
- export { ae as Adaptor, A as AppState, ac as ArrayField, E as ArrayState, as as AsFieldProps, Y as BaseData, a6 as BaseField, ag as CacheOpts, f as ComponentConfig, K as ComponentConfigExtensions, X as ComponentConfigParams, a as ComponentData, a1 as ComponentDataMap, $ as ComponentDataOptionalId, a4 as ComponentMetadata, C as Config, T as ConfigParams, a2 as Content, aj as CustomField, ai as CustomFieldRender, j as Data, ap as DefaultComponentProps, N as DefaultComponents, am as DefaultRootFieldProps, ao as DefaultRootProps, an as DefaultRootRenderProps, p as Direction, q as DragAxis, ah as ExternalField, af as ExternalFieldWithAdaptor, Q as ExtractConfigParams, au as ExtractField, h as Field, a5 as FieldMetadata, i as FieldProps, z as FieldRenderFunctions, v as FieldTransformFn, u as FieldTransformFnParams, g as FieldTransforms, F as Fields, H as History, I as IframeConfig, l as InitialHistory, B as ItemWithId, a0 as MappedItem, M as Metadata, a8 as NumberField, ad as ObjectField, k as OnAction, y as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, J as PuckComponent, al as PuckContext, a3 as PuckMetadata, ab as RadioField, c as ResolveDataTrigger, L as RootConfig, _ as RootData, R as RootDataWithProps, Z as RootDataWithoutProps, aa as SelectField, S as Slot, G as SlotComponent, ak as SlotField, a7 as TextField, a9 as TextareaField, e as UiState, U as UserGenerics, s as Viewport, V as Viewports, at as WithChildren, aq as WithId, ar as WithPuckProps, W as WithSlotProps, m as migrate, x as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-DS1xB387.js';
1
+ export { ae as Adaptor, A as AppState, ac as ArrayField, E as ArrayState, as as AsFieldProps, Y as BaseData, a6 as BaseField, ag as CacheOpts, f as ComponentConfig, K as ComponentConfigExtensions, X as ComponentConfigParams, a as ComponentData, a1 as ComponentDataMap, $ as ComponentDataOptionalId, a4 as ComponentMetadata, C as Config, T as ConfigParams, a2 as Content, aj as CustomField, ai as CustomFieldRender, j as Data, ap as DefaultComponentProps, N as DefaultComponents, am as DefaultRootFieldProps, ao as DefaultRootProps, an as DefaultRootRenderProps, p as Direction, q as DragAxis, ah as ExternalField, af as ExternalFieldWithAdaptor, Q as ExtractConfigParams, au as ExtractField, h as Field, a5 as FieldMetadata, i as FieldProps, z as FieldRenderFunctions, v as FieldTransformFn, u as FieldTransformFnParams, g as FieldTransforms, F as Fields, H as History, I as IframeConfig, l as InitialHistory, B as ItemWithId, a0 as MappedItem, M as Metadata, a8 as NumberField, ad as ObjectField, k as OnAction, y as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, J as PuckComponent, al as PuckContext, a3 as PuckMetadata, ab as RadioField, c as ResolveDataTrigger, L as RootConfig, _ as RootData, R as RootDataWithProps, Z as RootDataWithoutProps, aa as SelectField, S as Slot, G as SlotComponent, ak as SlotField, a7 as TextField, a9 as TextareaField, e as UiState, U as UserGenerics, s as Viewport, V as Viewports, at as WithChildren, aq as WithId, ar as WithPuckProps, W as WithSlotProps, m as migrate, x as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-Butv5UdJ.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
3
  import 'react';
4
4
  import 'react/jsx-runtime';