@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/dist/index.css CHANGED
@@ -1434,6 +1434,11 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
1434
1434
  margin-inline-start: auto;
1435
1435
  }
1436
1436
 
1437
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Components/styles.module.css/#css-module-data */
1438
+ ._Components_uwdh8_1 {
1439
+ padding: 16px;
1440
+ }
1441
+
1437
1442
  /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Preview/styles.module.css/#css-module-data */
1438
1443
  ._PuckPreview_z2rgu_1 {
1439
1444
  position: relative;
@@ -1548,24 +1553,32 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
1548
1553
  margin-top: 4px;
1549
1554
  }
1550
1555
 
1556
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Outline/styles.module.css/#css-module-data */
1557
+ ._Outline_1rrni_1 {
1558
+ padding: 16px;
1559
+ }
1560
+
1551
1561
  /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Layout/styles.module.css/#css-module-data */
1552
- ._Puck_1rc26_19 {
1562
+ ._Puck_94wda_19 {
1553
1563
  --puck-space-px: 16px;
1554
1564
  font-family: var(--puck-font-family);
1555
1565
  overflow-x: hidden;
1556
1566
  }
1557
1567
  @media (min-width: 766px) {
1558
- ._Puck_1rc26_19 {
1568
+ ._Puck_94wda_19 {
1559
1569
  overflow-x: auto;
1560
1570
  }
1561
1571
  }
1562
- ._Puck-portal_1rc26_31 {
1572
+ ._Puck-portal_94wda_31 {
1563
1573
  position: relative;
1564
1574
  z-index: 2;
1565
1575
  }
1566
- ._PuckLayout-inner_1rc26_36 {
1576
+ ._PuckLayout-inner_94wda_36 {
1567
1577
  --puck-frame-width: auto;
1578
+ --puck-side-nav-width: 68px;
1568
1579
  --puck-side-bar-width: 0px;
1580
+ --puck-left-side-bar-width: var( --puck-user-left-side-bar-width, var(--puck-side-bar-width) );
1581
+ --puck-right-side-bar-width: var( --puck-user-right-side-bar-width, var(--puck-side-bar-width) );
1569
1582
  display: grid;
1570
1583
  grid-template-areas: "header header header header" "sidenav left editor right";
1571
1584
  grid-template-columns: var(--puck-side-nav-width) 0 var(--puck-frame-width) 0;
@@ -1574,64 +1587,62 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
1574
1587
  position: relative;
1575
1588
  z-index: 0;
1576
1589
  }
1577
- ._PuckLayout--mounted_1rc26_48 ._PuckLayout-inner_1rc26_36 {
1590
+ ._PuckLayout--mounted_94wda_57 ._PuckLayout-inner_94wda_36 {
1578
1591
  --puck-side-bar-width: 186px;
1579
- --puck-left-side-bar-width: var( --puck-user-left-side-bar-width, --puck-side-bar-width );
1580
- --puck-right-side-bar-width: var( --puck-user-right-side-bar-width, --puck-side-bar-width );
1581
- --puck-side-nav-width: 68px;
1582
1592
  }
1583
- ._PuckLayout--leftSideBarVisible_1rc26_61 ._PuckLayout-inner_1rc26_36 {
1593
+ ._PuckLayout--leftSideBarVisible_94wda_61 ._PuckLayout-inner_94wda_36 {
1584
1594
  grid-template-columns: var(--puck-side-nav-width) var(--puck-left-side-bar-width) var( --puck-frame-width ) 0;
1585
1595
  }
1586
- ._PuckLayout--rightSideBarVisible_1rc26_69 ._PuckLayout-inner_1rc26_36 {
1587
- grid-template-columns: var(--puck-side-nav-width) 0 var(--puck-frame-width) var(--puck-side-bar-width);
1596
+ ._PuckLayout--rightSideBarVisible_94wda_69 ._PuckLayout-inner_94wda_36 {
1597
+ grid-template-columns: var(--puck-side-nav-width) 0 var(--puck-frame-width) var(--puck-right-side-bar-width);
1588
1598
  }
1589
- ._PuckLayout--leftSideBarVisible_1rc26_61._PuckLayout--rightSideBarVisible_1rc26_69 ._PuckLayout-inner_1rc26_36 {
1599
+ ._PuckLayout--leftSideBarVisible_94wda_61._PuckLayout--rightSideBarVisible_94wda_69 ._PuckLayout-inner_94wda_36 {
1590
1600
  grid-template-columns: var(--puck-side-nav-width) var(--puck-left-side-bar-width) var( --puck-frame-width ) var(--puck-right-side-bar-width);
1591
1601
  }
1592
1602
  @media (min-width: 458px) {
1593
- ._PuckLayout-mounted_1rc26_85 ._PuckLayout-inner_1rc26_36 {
1603
+ ._PuckLayout-mounted_94wda_85 ._PuckLayout-inner_94wda_36 {
1594
1604
  --puck-frame-width: minmax(266px, auto);
1595
1605
  }
1596
1606
  }
1597
1607
  @media (min-width: 638px) {
1598
- ._PuckLayout_1rc26_36 ._PuckLayout-inner_1rc26_36 {
1608
+ ._PuckLayout_94wda_36 ._PuckLayout-inner_94wda_36 {
1599
1609
  --puck-side-bar-width: minmax(186px, 250px);
1600
1610
  }
1601
1611
  }
1602
1612
  @media (min-width: 766px) {
1603
- ._PuckLayout_1rc26_36 ._PuckLayout-inner_1rc26_36 {
1613
+ ._PuckLayout_94wda_36 ._PuckLayout-inner_94wda_36 {
1604
1614
  --puck-frame-width: auto;
1605
1615
  }
1606
1616
  }
1607
1617
  @media (min-width: 990px) {
1608
- ._PuckLayout_1rc26_36 ._PuckLayout-inner_1rc26_36 {
1618
+ ._PuckLayout_94wda_36 ._PuckLayout-inner_94wda_36 {
1609
1619
  --puck-side-bar-width: 256px;
1610
1620
  }
1611
1621
  }
1612
1622
  @media (min-width: 1198px) {
1613
- ._PuckLayout_1rc26_36 ._PuckLayout-inner_1rc26_36 {
1623
+ ._PuckLayout_94wda_36 ._PuckLayout-inner_94wda_36 {
1614
1624
  --puck-side-bar-width: 274px;
1615
1625
  }
1616
1626
  }
1617
1627
  @media (min-width: 1398px) {
1618
- ._PuckLayout_1rc26_36 ._PuckLayout-inner_1rc26_36 {
1628
+ ._PuckLayout_94wda_36 ._PuckLayout-inner_94wda_36 {
1619
1629
  --puck-side-bar-width: 290px;
1620
1630
  }
1621
1631
  }
1622
1632
  @media (min-width: 1598px) {
1623
- ._PuckLayout_1rc26_36 ._PuckLayout-inner_1rc26_36 {
1633
+ ._PuckLayout_94wda_36 ._PuckLayout-inner_94wda_36 {
1624
1634
  --puck-side-bar-width: 320px;
1625
1635
  }
1626
1636
  }
1627
- ._PuckLayout-nav_1rc26_126 {
1637
+ ._PuckLayout-nav_94wda_126 {
1628
1638
  border-right: 1px solid var(--puck-color-grey-09);
1629
1639
  background-color: var(--puck-color-grey-12);
1630
1640
  }
1631
- ._PuckPluginTab_1rc26_131 {
1641
+ ._PuckPluginTab_94wda_131 {
1632
1642
  display: none;
1643
+ height: 100%;
1633
1644
  }
1634
- ._PuckPluginTab--visible_1rc26_135 {
1645
+ ._PuckPluginTab--visible_94wda_136 {
1635
1646
  display: block;
1636
1647
  }
1637
1648
 
@@ -1972,32 +1983,31 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
1972
1983
  }
1973
1984
 
1974
1985
  /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Sidebar/styles.module.css/#css-module-data */
1975
- ._Sidebar_2pzs4_1 {
1986
+ ._Sidebar_1xksb_1 {
1976
1987
  position: relative;
1977
1988
  display: flex;
1978
1989
  flex-direction: column;
1979
1990
  overflow-y: auto;
1980
1991
  }
1981
- ._Sidebar--left_2pzs4_8 {
1992
+ ._Sidebar--left_1xksb_8 {
1982
1993
  background: var(--puck-color-grey-12);
1983
1994
  border-inline-end: 1px solid var(--puck-color-grey-09);
1984
1995
  grid-area: left;
1985
- padding: 16px;
1986
1996
  }
1987
- ._Sidebar--right_2pzs4_15 {
1997
+ ._Sidebar--right_1xksb_14 {
1988
1998
  background: var(--puck-color-white);
1989
1999
  border-inline-start: 1px solid var(--puck-color-grey-09);
1990
2000
  grid-area: right;
1991
2001
  }
1992
- ._Sidebar-resizeHandle_2pzs4_21 {
2002
+ ._Sidebar-resizeHandle_1xksb_20 {
1993
2003
  position: absolute;
1994
2004
  height: 100%;
1995
2005
  }
1996
- ._Sidebar--left_2pzs4_8 + ._Sidebar-resizeHandle_2pzs4_21 {
2006
+ ._Sidebar--left_1xksb_8 + ._Sidebar-resizeHandle_1xksb_20 {
1997
2007
  grid-area: left;
1998
2008
  justify-self: end;
1999
2009
  }
2000
- ._Sidebar--right_2pzs4_15 + ._Sidebar-resizeHandle_2pzs4_21 {
2010
+ ._Sidebar--right_1xksb_14 + ._Sidebar-resizeHandle_1xksb_20 {
2001
2011
  grid-area: right;
2002
2012
  justify-self: start;
2003
2013
  }
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { H as History, P as Permissions, a as ComponentData, C as Config, U as UserGenerics, F as Fields, b as PuckAction, R as RootDataWithProps, c as ResolveDataTrigger, d as Plugin, O as Overrides, V as Viewports, I as IframeConfig, e as UiState, f as ComponentConfig, A as AppState, M as Metadata, g as FieldTransforms, h as Field, i as FieldProps, D as DropZoneProps, j as Data, k as OnAction, l as InitialHistory, n as ItemSelector } from './walk-tree-yh0Fsxem.mjs';
2
- export { a5 as Adaptor, a3 as ArrayField, B as ArrayState, ai as AsFieldProps, K as BaseData, Z as BaseField, X as ComponentDataMap, Q as ComponentDataOptionalId, Y as Content, a9 as CustomField, a8 as CustomFieldRender, 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, y as FieldRenderFunctions, u as FieldTransformFn, s as FieldTransformFnParams, z as ItemWithId, T as MappedItem, $ as NumberField, a4 as ObjectField, x as OverrideKey, G as PuckComponent, ab as PuckContext, a2 as RadioField, J as RootConfig, N as RootData, L as RootDataWithoutProps, a1 as SelectField, S as Slot, E as SlotComponent, aa as SlotField, _ as TextField, a0 as TextareaField, q as Viewport, 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-yh0Fsxem.mjs';
1
+ import { H as History, P as Permissions, a as ComponentData, C as Config, U as UserGenerics, F as Fields, b as PuckAction, R as RootDataWithProps, c as ResolveDataTrigger, d as Plugin, O as Overrides, V as Viewports, I as IframeConfig, e as UiState, f as ComponentConfig, A as AppState, M as Metadata, g as FieldTransforms, h as Field, i as FieldProps, D as DropZoneProps, j as Data, k as OnAction, l as InitialHistory, n as ItemSelector } from './walk-tree-Dn5XpDNA.mjs';
2
+ export { a5 as Adaptor, a3 as ArrayField, B as ArrayState, ai as AsFieldProps, K as BaseData, Z as BaseField, X as ComponentDataMap, Q as ComponentDataOptionalId, Y as Content, a9 as CustomField, a8 as CustomFieldRender, 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, y as FieldRenderFunctions, u as FieldTransformFn, s as FieldTransformFnParams, z as ItemWithId, T as MappedItem, $ as NumberField, a4 as ObjectField, x as OverrideKey, G as PuckComponent, ab as PuckContext, a2 as RadioField, J as RootConfig, N as RootData, L as RootDataWithoutProps, a1 as SelectField, S as Slot, E as SlotComponent, aa as SlotField, _ as TextField, a0 as TextareaField, q as Viewport, 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';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
5
5
  import react__default, { ReactNode, SyntheticEvent, ReactElement } from 'react';
@@ -268,8 +268,8 @@ type UsePuckData<UserConfig extends Config = Config, G extends UserGenerics<User
268
268
  getPermissions: GetPermissions<UserConfig>;
269
269
  refreshPermissions: RefreshPermissions<UserConfig>;
270
270
  selectedItem: G["UserComponentData"] | null;
271
- getItemBySelector: (selector: ItemSelector) => ComponentData | undefined;
272
- getItemById: (id: string) => ComponentData | undefined;
271
+ getItemBySelector: (selector: ItemSelector) => G["UserComponentData"] | undefined;
272
+ getItemById: (id: string) => G["UserComponentData"] | undefined;
273
273
  getSelectorForId: (id: string) => Required<ItemSelector> | undefined;
274
274
  history: {
275
275
  back: HistorySlice["back"];
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { H as History, P as Permissions, a as ComponentData, C as Config, U as UserGenerics, F as Fields, b as PuckAction, R as RootDataWithProps, c as ResolveDataTrigger, d as Plugin, O as Overrides, V as Viewports, I as IframeConfig, e as UiState, f as ComponentConfig, A as AppState, M as Metadata, g as FieldTransforms, h as Field, i as FieldProps, D as DropZoneProps, j as Data, k as OnAction, l as InitialHistory, n as ItemSelector } from './walk-tree-yh0Fsxem.js';
2
- export { a5 as Adaptor, a3 as ArrayField, B as ArrayState, ai as AsFieldProps, K as BaseData, Z as BaseField, X as ComponentDataMap, Q as ComponentDataOptionalId, Y as Content, a9 as CustomField, a8 as CustomFieldRender, 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, y as FieldRenderFunctions, u as FieldTransformFn, s as FieldTransformFnParams, z as ItemWithId, T as MappedItem, $ as NumberField, a4 as ObjectField, x as OverrideKey, G as PuckComponent, ab as PuckContext, a2 as RadioField, J as RootConfig, N as RootData, L as RootDataWithoutProps, a1 as SelectField, S as Slot, E as SlotComponent, aa as SlotField, _ as TextField, a0 as TextareaField, q as Viewport, 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-yh0Fsxem.js';
1
+ import { H as History, P as Permissions, a as ComponentData, C as Config, U as UserGenerics, F as Fields, b as PuckAction, R as RootDataWithProps, c as ResolveDataTrigger, d as Plugin, O as Overrides, V as Viewports, I as IframeConfig, e as UiState, f as ComponentConfig, A as AppState, M as Metadata, g as FieldTransforms, h as Field, i as FieldProps, D as DropZoneProps, j as Data, k as OnAction, l as InitialHistory, n as ItemSelector } from './walk-tree-Dn5XpDNA.js';
2
+ export { a5 as Adaptor, a3 as ArrayField, B as ArrayState, ai as AsFieldProps, K as BaseData, Z as BaseField, X as ComponentDataMap, Q as ComponentDataOptionalId, Y as Content, a9 as CustomField, a8 as CustomFieldRender, 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, y as FieldRenderFunctions, u as FieldTransformFn, s as FieldTransformFnParams, z as ItemWithId, T as MappedItem, $ as NumberField, a4 as ObjectField, x as OverrideKey, G as PuckComponent, ab as PuckContext, a2 as RadioField, J as RootConfig, N as RootData, L as RootDataWithoutProps, a1 as SelectField, S as Slot, E as SlotComponent, aa as SlotField, _ as TextField, a0 as TextareaField, q as Viewport, 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';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
5
5
  import react__default, { ReactNode, SyntheticEvent, ReactElement } from 'react';
@@ -268,8 +268,8 @@ type UsePuckData<UserConfig extends Config = Config, G extends UserGenerics<User
268
268
  getPermissions: GetPermissions<UserConfig>;
269
269
  refreshPermissions: RefreshPermissions<UserConfig>;
270
270
  selectedItem: G["UserComponentData"] | null;
271
- getItemBySelector: (selector: ItemSelector) => ComponentData | undefined;
272
- getItemById: (id: string) => ComponentData | undefined;
271
+ getItemBySelector: (selector: ItemSelector) => G["UserComponentData"] | undefined;
272
+ getItemById: (id: string) => G["UserComponentData"] | undefined;
273
273
  getSelectorForId: (id: string) => Required<ItemSelector> | undefined;
274
274
  history: {
275
275
  back: HistorySlice["back"];