@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.
@@ -0,0 +1,12 @@
1
+ import {
2
+ createReducer
3
+ } from "./chunk-J32NOAUF.mjs";
4
+ import {
5
+ init_react_import
6
+ } from "./chunk-S3RM5GHZ.mjs";
7
+
8
+ // bundle/internal.ts
9
+ init_react_import();
10
+ export {
11
+ createReducer
12
+ };
@@ -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
- ._InlineTextField_1xph6_1 {
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] ._InlineTextField_1xph6_1 {
1338
+ [data-dnd-dragging] ._InlineTextField_104qp_1 {
1338
1339
  cursor: none;
1339
1340
  caret-color: transparent;
1340
1341
  }
1341
- [data-dnd-dragging] ._InlineTextField_1xph6_1::selection {
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
- ._Puck_hv23j_19 {
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
- ._Puck_hv23j_19 {
1575
+ ._Puck_lqzmv_19 {
1574
1576
  overflow-x: auto;
1575
1577
  }
1576
1578
  }
1577
- ._Puck-portal_hv23j_31 {
1579
+ ._Puck-portal_lqzmv_32 {
1578
1580
  position: relative;
1579
1581
  z-index: 2;
1580
1582
  }
1581
- ._PuckLayout_hv23j_36 {
1582
- height: 100%;
1583
+ ._PuckLayout_lqzmv_37 {
1584
+ height: 100dvh;
1583
1585
  }
1584
- ._PuckLayout-inner_hv23j_40 {
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-inner_hv23j_40 {
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--mounted_hv23j_73 ._PuckLayout-inner_hv23j_40 {
1611
+ ._PuckLayout--mounted_lqzmv_74 ._PuckLayout-inner_lqzmv_41 {
1610
1612
  --puck-side-bar-width: 186px;
1611
1613
  }
1612
- ._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 {
1613
1615
  grid-template-rows: 0 auto 30% 0 var(--puck-side-nav-width);
1614
1616
  }
1615
- ._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 {
1616
1618
  grid-template-rows: 0 auto 55% 0 var(--puck-side-nav-width);
1617
1619
  }
1618
1620
  @media (min-width: 638px) {
1619
- ._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 {
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--mobilePanelHeightMinContent_hv23j_101._PuckLayout--leftSideBarVisible_hv23j_77 ._PuckLayout-inner_hv23j_40,
1625
- ._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 {
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--mobilePanelHeightToggle_hv23j_77._PuckLayout--leftSideBarVisible_hv23j_77 ._PuckLayout-inner_hv23j_40,
1630
- ._PuckLayout--mobilePanelHeightToggle_hv23j_77._PuckLayout--leftSideBarVisible_hv23j_77._PuckLayout--isExpanded_hv23j_83 ._PuckLayout-inner_hv23j_40,
1631
- ._PuckLayout--mobilePanelHeightMinContent_hv23j_101._PuckLayout--leftSideBarVisible_hv23j_77 ._PuckLayout-inner_hv23j_40,
1632
- ._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 {
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--rightSideBarVisible_hv23j_128 ._PuckLayout-inner_hv23j_40 {
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--leftSideBarVisible_hv23j_77._PuckLayout--rightSideBarVisible_hv23j_128 ._PuckLayout-inner_hv23j_40 {
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-mounted_hv23j_147 ._PuckLayout-inner_hv23j_40 {
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
- ._PuckLayout_hv23j_36 ._PuckLayout-inner_hv23j_40 {
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
- ._PuckLayout_hv23j_36 ._PuckLayout-inner_hv23j_40 {
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
- ._PuckLayout_hv23j_36 ._PuckLayout-inner_hv23j_40 {
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
- ._PuckLayout_hv23j_36 ._PuckLayout-inner_hv23j_40 {
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
- ._PuckLayout_hv23j_36 ._PuckLayout-inner_hv23j_40 {
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
- ._PuckLayout_hv23j_36 ._PuckLayout-inner_hv23j_40 {
1680
+ ._PuckLayout_lqzmv_37 ._PuckLayout-inner_lqzmv_41 {
1679
1681
  --puck-side-bar-width: 320px;
1680
1682
  }
1681
1683
  }
1682
- ._PuckLayout-nav_hv23j_188 {
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-nav_hv23j_188 {
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-header_hv23j_204 {
1698
+ ._PuckLayout-header_lqzmv_205 {
1697
1699
  grid-area: header;
1698
1700
  }
1699
- ._PuckLayout--leftSideBarVisible_hv23j_77 ._PuckLayout-header_hv23j_204 {
1701
+ ._PuckLayout--leftSideBarVisible_lqzmv_78 ._PuckLayout-header_lqzmv_205 {
1700
1702
  overflow: hidden;
1701
1703
  }
1702
1704
  @media (min-width: 638px) {
1703
- ._PuckLayout--leftSideBarVisible_hv23j_77 ._PuckLayout-header_hv23j_204 {
1705
+ ._PuckLayout--leftSideBarVisible_lqzmv_78 ._PuckLayout-header_lqzmv_205 {
1704
1706
  overflow: auto;
1705
1707
  }
1706
1708
  }
1707
- ._PuckPluginTab_hv23j_218 {
1709
+ ._PuckPluginTab_lqzmv_219 {
1708
1710
  display: none;
1709
1711
  flex-grow: 1;
1710
1712
  overflow: hidden;
1711
1713
  }
1712
- ._PuckPluginTab--visible_hv23j_224 {
1714
+ ._PuckPluginTab--visible_lqzmv_225 {
1713
1715
  display: flex;
1714
1716
  flex-direction: column;
1715
1717
  }
1716
- ._PuckPluginTab-body_hv23j_229 {
1718
+ ._PuckPluginTab-body_lqzmv_230 {
1717
1719
  flex-grow: 1;
1718
1720
  overflow: hidden;
1719
1721
  }
@@ -1,4 +1,6 @@
1
- export { a8 as Adaptor, A as AppState, a6 as ArrayField, E as ArrayState, al as AsFieldProps, Q as BaseData, a0 as BaseField, f as ComponentConfig, a as ComponentData, _ as ComponentDataMap, Y as ComponentDataOptionalId, C as Config, $ as Content, ac as CustomField, ab as CustomFieldRender, j as Data, ai as DefaultComponentProps, L as DefaultComponents, af as DefaultRootFieldProps, ah as DefaultRootProps, ag as DefaultRootRenderProps, p as Direction, q as DragAxis, aa as ExternalField, a9 as ExternalFieldWithAdaptor, N as ExtractConfigParams, an as ExtractField, h as Field, 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, Z as MappedItem, M as Metadata, a2 as NumberField, a7 as ObjectField, k as OnAction, y as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, J as PuckComponent, ae as PuckContext, a5 as RadioField, c as ResolveDataTrigger, K as RootConfig, X as RootData, R as RootDataWithProps, T as RootDataWithoutProps, a4 as SelectField, S as Slot, G as SlotComponent, ad as SlotField, a1 as TextField, a3 as TextareaField, e as UiState, U as UserGenerics, s as Viewport, V as Viewports, am as WithChildren, aj as WithId, ak as WithPuckProps, W as WithSlotProps, m as migrate, x as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-Cvtjzg9C.mjs';
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';
@@ -1,4 +1,6 @@
1
- export { a8 as Adaptor, A as AppState, a6 as ArrayField, E as ArrayState, al as AsFieldProps, Q as BaseData, a0 as BaseField, f as ComponentConfig, a as ComponentData, _ as ComponentDataMap, Y as ComponentDataOptionalId, C as Config, $ as Content, ac as CustomField, ab as CustomFieldRender, j as Data, ai as DefaultComponentProps, L as DefaultComponents, af as DefaultRootFieldProps, ah as DefaultRootProps, ag as DefaultRootRenderProps, p as Direction, q as DragAxis, aa as ExternalField, a9 as ExternalFieldWithAdaptor, N as ExtractConfigParams, an as ExtractField, h as Field, 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, Z as MappedItem, M as Metadata, a2 as NumberField, a7 as ObjectField, k as OnAction, y as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, J as PuckComponent, ae as PuckContext, a5 as RadioField, c as ResolveDataTrigger, K as RootConfig, X as RootData, R as RootDataWithProps, T as RootDataWithoutProps, a4 as SelectField, S as Slot, G as SlotComponent, ad as SlotField, a1 as TextField, a3 as TextareaField, e as UiState, U as UserGenerics, s as Viewport, V as Viewports, am as WithChildren, aj as WithId, ak as WithPuckProps, W as WithSlotProps, m as migrate, x as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-Cvtjzg9C.js';
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';