@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/README.md +9 -9
- package/dist/chunk-BNXRZWNI.mjs +1065 -0
- package/dist/{chunk-F7MIAKDQ.mjs → chunk-UBWXLOVR.mjs} +2324 -533
- package/dist/index.css +39 -29
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +387 -318
- package/dist/index.mjs +4 -4
- package/dist/no-external.css +39 -29
- package/dist/no-external.d.mts +1 -1
- package/dist/no-external.d.ts +1 -1
- package/dist/no-external.js +387 -318
- package/dist/no-external.mjs +4 -4
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +456 -1808
- package/dist/rsc.mjs +1 -1
- package/dist/{walk-tree-yh0Fsxem.d.ts → walk-tree-Dn5XpDNA.d.mts} +3 -0
- package/dist/{walk-tree-yh0Fsxem.d.mts → walk-tree-Dn5XpDNA.d.ts} +3 -0
- package/package.json +1 -1
- package/dist/chunk-IP64IXIP.mjs +0 -2820
- package/dist/rsc.css +0 -26
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
|
-
.
|
|
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
|
-
.
|
|
1568
|
+
._Puck_94wda_19 {
|
|
1559
1569
|
overflow-x: auto;
|
|
1560
1570
|
}
|
|
1561
1571
|
}
|
|
1562
|
-
._Puck-
|
|
1572
|
+
._Puck-portal_94wda_31 {
|
|
1563
1573
|
position: relative;
|
|
1564
1574
|
z-index: 2;
|
|
1565
1575
|
}
|
|
1566
|
-
._PuckLayout-
|
|
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--
|
|
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--
|
|
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--
|
|
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--
|
|
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-
|
|
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
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
1633
|
+
._PuckLayout_94wda_36 ._PuckLayout-inner_94wda_36 {
|
|
1624
1634
|
--puck-side-bar-width: 320px;
|
|
1625
1635
|
}
|
|
1626
1636
|
}
|
|
1627
|
-
._PuckLayout-
|
|
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
|
-
.
|
|
1641
|
+
._PuckPluginTab_94wda_131 {
|
|
1632
1642
|
display: none;
|
|
1643
|
+
height: 100%;
|
|
1633
1644
|
}
|
|
1634
|
-
._PuckPluginTab--
|
|
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
|
-
.
|
|
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--
|
|
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--
|
|
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-
|
|
2002
|
+
._Sidebar-resizeHandle_1xksb_20 {
|
|
1993
2003
|
position: absolute;
|
|
1994
2004
|
height: 100%;
|
|
1995
2005
|
}
|
|
1996
|
-
._Sidebar--
|
|
2006
|
+
._Sidebar--left_1xksb_8 + ._Sidebar-resizeHandle_1xksb_20 {
|
|
1997
2007
|
grid-area: left;
|
|
1998
2008
|
justify-self: end;
|
|
1999
2009
|
}
|
|
2000
|
-
._Sidebar--
|
|
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-
|
|
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-
|
|
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) =>
|
|
272
|
-
getItemById: (id: string) =>
|
|
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-
|
|
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-
|
|
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) =>
|
|
272
|
-
getItemById: (id: string) =>
|
|
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"];
|