@measured/puck 0.20.0-canary.33cf4f0e → 0.20.0-canary.3d781f5a
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/{chunk-IAEXMHQX.mjs → chunk-32MJ3X3H.mjs} +92 -6
- package/dist/chunk-5HI4IJHF.mjs +8858 -0
- package/dist/index.css +107 -46
- package/dist/index.d.mts +9 -8
- package/dist/index.d.ts +9 -8
- package/dist/index.js +1279 -901
- package/dist/index.mjs +27 -8460
- package/dist/no-external.css +1811 -0
- package/dist/no-external.d.mts +4 -2
- package/dist/no-external.d.ts +4 -2
- package/dist/no-external.js +9708 -1
- package/dist/no-external.mjs +50 -2
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.mjs +2 -4
- package/dist/{walk-tree-6p9XnDIV.d.mts → walk-tree-mCPqBAls.d.mts} +19 -4
- package/dist/{walk-tree-6p9XnDIV.d.ts → walk-tree-mCPqBAls.d.ts} +19 -4
- package/package.json +1 -1
- package/dist/chunk-M6W7YEVX.mjs +0 -95
package/dist/index.css
CHANGED
|
@@ -1152,27 +1152,31 @@ textarea._Input-input_py9hf_26 {
|
|
|
1152
1152
|
}
|
|
1153
1153
|
|
|
1154
1154
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/DraggableComponent/styles.module.css/#css-module-data */
|
|
1155
|
-
.
|
|
1155
|
+
._DraggableComponent_1vaqy_1 {
|
|
1156
1156
|
position: absolute;
|
|
1157
1157
|
pointer-events: none;
|
|
1158
1158
|
--overlay-background: color-mix( in srgb, var(--puck-color-azure-08) 30%, transparent );
|
|
1159
1159
|
}
|
|
1160
|
-
._DraggableComponent-
|
|
1161
|
-
cursor: pointer;
|
|
1160
|
+
._DraggableComponent-overlayWrapper_1vaqy_12 {
|
|
1162
1161
|
height: 100%;
|
|
1163
1162
|
width: 100%;
|
|
1164
1163
|
top: 0;
|
|
1165
|
-
outline: 2px var(--puck-color-azure-09) solid;
|
|
1166
|
-
outline-offset: -2px;
|
|
1167
1164
|
position: absolute;
|
|
1168
1165
|
pointer-events: none;
|
|
1169
1166
|
box-sizing: border-box;
|
|
1170
1167
|
z-index: 1;
|
|
1171
1168
|
}
|
|
1172
|
-
.
|
|
1169
|
+
._DraggableComponent-overlay_1vaqy_12 {
|
|
1170
|
+
cursor: pointer;
|
|
1171
|
+
height: 100%;
|
|
1172
|
+
outline: 2px var(--puck-color-azure-09) solid;
|
|
1173
|
+
outline-offset: -2px;
|
|
1174
|
+
width: 100%;
|
|
1175
|
+
}
|
|
1176
|
+
._DraggableComponent_1vaqy_1:focus-visible > ._DraggableComponent-overlayWrapper_1vaqy_12 {
|
|
1173
1177
|
outline: 1px solid var(--puck-color-azure-05);
|
|
1174
1178
|
}
|
|
1175
|
-
._DraggableComponent-
|
|
1179
|
+
._DraggableComponent-loadingOverlay_1vaqy_34 {
|
|
1176
1180
|
background: var(--puck-color-white);
|
|
1177
1181
|
color: var(--puck-color-grey-03);
|
|
1178
1182
|
border-radius: 4px;
|
|
@@ -1187,29 +1191,27 @@ textarea._Input-input_py9hf_26 {
|
|
|
1187
1191
|
opacity: 0.8;
|
|
1188
1192
|
z-index: 1;
|
|
1189
1193
|
}
|
|
1190
|
-
._DraggableComponent--
|
|
1194
|
+
._DraggableComponent--hover_1vaqy_50 > ._DraggableComponent-overlayWrapper_1vaqy_12 > ._DraggableComponent-overlay_1vaqy_12 {
|
|
1191
1195
|
background: var(--overlay-background);
|
|
1192
|
-
}
|
|
1193
|
-
._DraggableComponent--hover_qzbgx_45 > ._DraggableComponent-overlay_qzbgx_12 {
|
|
1194
1196
|
outline: 2px var(--puck-color-azure-09) solid;
|
|
1195
1197
|
}
|
|
1196
|
-
._DraggableComponent--
|
|
1198
|
+
._DraggableComponent--isSelected_1vaqy_57 > ._DraggableComponent-overlayWrapper_1vaqy_12 > ._DraggableComponent-overlay_1vaqy_12 {
|
|
1197
1199
|
outline-color: var(--puck-color-azure-07);
|
|
1198
1200
|
}
|
|
1199
|
-
.
|
|
1201
|
+
._DraggableComponent_1vaqy_1:has(._DraggableComponent--hover_1vaqy_50 > ._DraggableComponent-overlayWrapper_1vaqy_12) > ._DraggableComponent-overlayWrapper_1vaqy_12 {
|
|
1200
1202
|
display: none;
|
|
1201
1203
|
}
|
|
1202
|
-
._DraggableComponent-
|
|
1204
|
+
._DraggableComponent-actionsOverlay_1vaqy_71 {
|
|
1203
1205
|
position: sticky;
|
|
1204
1206
|
opacity: 0;
|
|
1205
1207
|
pointer-events: none;
|
|
1206
1208
|
z-index: 2;
|
|
1207
1209
|
}
|
|
1208
|
-
._DraggableComponent--
|
|
1210
|
+
._DraggableComponent--isSelected_1vaqy_57 ._DraggableComponent-actionsOverlay_1vaqy_71 {
|
|
1209
1211
|
opacity: 1;
|
|
1210
1212
|
pointer-events: auto;
|
|
1211
1213
|
}
|
|
1212
|
-
._DraggableComponent-
|
|
1214
|
+
._DraggableComponent-actions_1vaqy_71 {
|
|
1213
1215
|
position: absolute;
|
|
1214
1216
|
width: auto;
|
|
1215
1217
|
cursor: grab;
|
|
@@ -1396,21 +1398,21 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
1396
1398
|
}
|
|
1397
1399
|
|
|
1398
1400
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/styles.module.css/#css-module-data */
|
|
1399
|
-
.
|
|
1401
|
+
._Puck_vnhjy_19 {
|
|
1400
1402
|
--puck-space-px: 16px;
|
|
1401
1403
|
font-family: var(--puck-font-family);
|
|
1402
1404
|
overflow-x: hidden;
|
|
1403
1405
|
}
|
|
1404
1406
|
@media (min-width: 766px) {
|
|
1405
|
-
.
|
|
1407
|
+
._Puck_vnhjy_19 {
|
|
1406
1408
|
overflow-x: auto;
|
|
1407
1409
|
}
|
|
1408
1410
|
}
|
|
1409
|
-
._Puck-
|
|
1411
|
+
._Puck-portal_vnhjy_31 {
|
|
1410
1412
|
position: relative;
|
|
1411
1413
|
z-index: 2;
|
|
1412
1414
|
}
|
|
1413
|
-
._PuckLayout-
|
|
1415
|
+
._PuckLayout-inner_vnhjy_38 {
|
|
1414
1416
|
--puck-frame-width: auto;
|
|
1415
1417
|
--puck-side-bar-width: 0px;
|
|
1416
1418
|
display: grid;
|
|
@@ -1421,69 +1423,53 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
1421
1423
|
position: relative;
|
|
1422
1424
|
z-index: 0;
|
|
1423
1425
|
}
|
|
1424
|
-
._PuckLayout--
|
|
1426
|
+
._PuckLayout--mounted_vnhjy_50 ._PuckLayout-inner_vnhjy_38 {
|
|
1425
1427
|
--puck-side-bar-width: 186px;
|
|
1426
1428
|
}
|
|
1427
|
-
._PuckLayout--
|
|
1429
|
+
._PuckLayout--leftSideBarVisible_vnhjy_54 ._PuckLayout-inner_vnhjy_38 {
|
|
1428
1430
|
grid-template-columns: var(--puck-side-bar-width) var(--puck-frame-width) 0;
|
|
1429
1431
|
}
|
|
1430
|
-
._PuckLayout--
|
|
1432
|
+
._PuckLayout--rightSideBarVisible_vnhjy_60 ._PuckLayout-inner_vnhjy_38 {
|
|
1431
1433
|
grid-template-columns: 0 var(--puck-frame-width) var(--puck-side-bar-width);
|
|
1432
1434
|
}
|
|
1433
|
-
._PuckLayout--
|
|
1435
|
+
._PuckLayout--leftSideBarVisible_vnhjy_54._PuckLayout--rightSideBarVisible_vnhjy_60 ._PuckLayout-inner_vnhjy_38 {
|
|
1434
1436
|
grid-template-columns: var(--puck-side-bar-width) var(--puck-frame-width) var(--puck-side-bar-width);
|
|
1435
1437
|
}
|
|
1436
1438
|
@media (min-width: 458px) {
|
|
1437
|
-
._PuckLayout-
|
|
1439
|
+
._PuckLayout-mounted_vnhjy_74 ._PuckLayout-inner_vnhjy_38 {
|
|
1438
1440
|
--puck-frame-width: minmax(266px, auto);
|
|
1439
1441
|
}
|
|
1440
1442
|
}
|
|
1441
1443
|
@media (min-width: 638px) {
|
|
1442
|
-
.
|
|
1444
|
+
._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
|
|
1443
1445
|
--puck-side-bar-width: minmax(186px, 250px);
|
|
1444
1446
|
}
|
|
1445
1447
|
}
|
|
1446
1448
|
@media (min-width: 766px) {
|
|
1447
|
-
.
|
|
1449
|
+
._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
|
|
1448
1450
|
--puck-frame-width: auto;
|
|
1449
1451
|
}
|
|
1450
1452
|
}
|
|
1451
1453
|
@media (min-width: 990px) {
|
|
1452
|
-
.
|
|
1454
|
+
._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
|
|
1453
1455
|
--puck-side-bar-width: 256px;
|
|
1454
1456
|
}
|
|
1455
1457
|
}
|
|
1456
1458
|
@media (min-width: 1198px) {
|
|
1457
|
-
.
|
|
1459
|
+
._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
|
|
1458
1460
|
--puck-side-bar-width: 274px;
|
|
1459
1461
|
}
|
|
1460
1462
|
}
|
|
1461
1463
|
@media (min-width: 1398px) {
|
|
1462
|
-
.
|
|
1464
|
+
._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
|
|
1463
1465
|
--puck-side-bar-width: 290px;
|
|
1464
1466
|
}
|
|
1465
1467
|
}
|
|
1466
1468
|
@media (min-width: 1598px) {
|
|
1467
|
-
.
|
|
1469
|
+
._PuckLayout_vnhjy_38 ._PuckLayout-inner_vnhjy_38 {
|
|
1468
1470
|
--puck-side-bar-width: 320px;
|
|
1469
1471
|
}
|
|
1470
1472
|
}
|
|
1471
|
-
._PuckLayout-leftSideBar_dnlfp_115 {
|
|
1472
|
-
background: var(--puck-color-grey-12);
|
|
1473
|
-
border-inline-end: 1px solid var(--puck-color-grey-09);
|
|
1474
|
-
display: flex;
|
|
1475
|
-
flex-direction: column;
|
|
1476
|
-
grid-area: left;
|
|
1477
|
-
overflow-y: auto;
|
|
1478
|
-
}
|
|
1479
|
-
._PuckLayout-rightSideBar_dnlfp_124 {
|
|
1480
|
-
background: var(--puck-color-white);
|
|
1481
|
-
border-inline-start: 1px solid var(--puck-color-grey-09);
|
|
1482
|
-
display: flex;
|
|
1483
|
-
flex-direction: column;
|
|
1484
|
-
grid-area: right;
|
|
1485
|
-
overflow-y: auto;
|
|
1486
|
-
}
|
|
1487
1473
|
|
|
1488
1474
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Fields/styles.module.css/#css-module-data */
|
|
1489
1475
|
._PuckFields_10bh7_1 {
|
|
@@ -1895,3 +1881,78 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
1895
1881
|
display: none;
|
|
1896
1882
|
}
|
|
1897
1883
|
}
|
|
1884
|
+
|
|
1885
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/ResizeHandle/styles.module.css/#css-module-data */
|
|
1886
|
+
._ResizeHandle_v7w0r_1 {
|
|
1887
|
+
position: absolute;
|
|
1888
|
+
width: 5px;
|
|
1889
|
+
height: 100%;
|
|
1890
|
+
cursor: col-resize;
|
|
1891
|
+
z-index: 10;
|
|
1892
|
+
background: transparent;
|
|
1893
|
+
top: 0;
|
|
1894
|
+
}
|
|
1895
|
+
._ResizeHandle_v7w0r_1:hover {
|
|
1896
|
+
background: rgba(0, 0, 0, 0.1);
|
|
1897
|
+
}
|
|
1898
|
+
._ResizeHandle--left_v7w0r_15 {
|
|
1899
|
+
right: -3px;
|
|
1900
|
+
}
|
|
1901
|
+
._ResizeHandle--right_v7w0r_19 {
|
|
1902
|
+
left: -3px;
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
/* components/Puck/components/ResizeHandle/styles.css */
|
|
1906
|
+
[data-resize-overlay] {
|
|
1907
|
+
position: fixed;
|
|
1908
|
+
top: 0;
|
|
1909
|
+
left: 0;
|
|
1910
|
+
right: 0;
|
|
1911
|
+
bottom: 0;
|
|
1912
|
+
z-index: 9999;
|
|
1913
|
+
cursor: col-resize;
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Sidebar/styles.module.css/#css-module-data */
|
|
1917
|
+
._Sidebar_1xksb_1 {
|
|
1918
|
+
position: relative;
|
|
1919
|
+
display: flex;
|
|
1920
|
+
flex-direction: column;
|
|
1921
|
+
overflow-y: auto;
|
|
1922
|
+
}
|
|
1923
|
+
._Sidebar--left_1xksb_8 {
|
|
1924
|
+
background: var(--puck-color-grey-12);
|
|
1925
|
+
border-inline-end: 1px solid var(--puck-color-grey-09);
|
|
1926
|
+
grid-area: left;
|
|
1927
|
+
}
|
|
1928
|
+
._Sidebar--right_1xksb_14 {
|
|
1929
|
+
background: var(--puck-color-white);
|
|
1930
|
+
border-inline-start: 1px solid var(--puck-color-grey-09);
|
|
1931
|
+
grid-area: right;
|
|
1932
|
+
}
|
|
1933
|
+
._Sidebar-resizeHandle_1xksb_20 {
|
|
1934
|
+
position: absolute;
|
|
1935
|
+
height: 100%;
|
|
1936
|
+
}
|
|
1937
|
+
._Sidebar--left_1xksb_8 + ._Sidebar-resizeHandle_1xksb_20 {
|
|
1938
|
+
grid-area: left;
|
|
1939
|
+
justify-self: end;
|
|
1940
|
+
}
|
|
1941
|
+
._Sidebar--right_1xksb_14 + ._Sidebar-resizeHandle_1xksb_20 {
|
|
1942
|
+
grid-area: right;
|
|
1943
|
+
justify-self: start;
|
|
1944
|
+
}
|
|
1945
|
+
|
|
1946
|
+
/* lib/overlay-portal/styles.css */
|
|
1947
|
+
[data-puck-overlay-portal],
|
|
1948
|
+
[data-puck-overlay-portal] * {
|
|
1949
|
+
pointer-events: auto;
|
|
1950
|
+
}
|
|
1951
|
+
[data-puck-overlay-portal]:hover {
|
|
1952
|
+
outline: 2px var(--puck-color-azure-09) solid;
|
|
1953
|
+
outline-offset: 2px;
|
|
1954
|
+
}
|
|
1955
|
+
[data-puck-overlay-portal]:focus-within {
|
|
1956
|
+
outline: 2px var(--puck-color-azure-07) solid;
|
|
1957
|
+
outline-offset: 2px;
|
|
1958
|
+
}
|
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 Field, h as FieldProps, D as DropZoneProps, i as Data, j as OnAction, k as InitialHistory, l as ItemSelector } from './walk-tree-
|
|
2
|
-
export {
|
|
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 Field, h as FieldProps, D as DropZoneProps, i as Data, j as OnAction, k as InitialHistory, l as ItemSelector } from './walk-tree-mCPqBAls.mjs';
|
|
2
|
+
export { a2 as Adaptor, a0 as ArrayField, x as ArrayState, af as AsFieldProps, E as BaseData, T as BaseField, N as ComponentDataMap, K as ComponentDataOptionalId, Q as Content, a6 as CustomField, a5 as CustomFieldRender, ac as DefaultComponentProps, a9 as DefaultRootFieldProps, ab as DefaultRootProps, aa as DefaultRootRenderProps, n as Direction, o as DragAxis, a4 as ExternalField, a3 as ExternalFieldWithAdaptor, ah as ExtractPropsFromConfig, ai as ExtractRootPropsFromConfig, u as FieldRenderFunctions, v as ItemWithId, L as MappedItem, Y as NumberField, a1 as ObjectField, s as OverrideKey, z as PuckComponent, a8 as PuckContext, $ as RadioField, B as RootConfig, J as RootData, G as RootDataWithoutProps, _ as SelectField, S as Slot, y as SlotComponent, a7 as SlotField, X as TextField, Z as TextareaField, p as Viewport, ag as WithChildren, ad as WithId, ae as WithPuckProps, W as WithSlotProps, m as migrate, q as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-mCPqBAls.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';
|
|
@@ -249,11 +249,12 @@ declare function Render<UserConfig extends Config = Config, G extends UserGeneri
|
|
|
249
249
|
metadata?: Metadata;
|
|
250
250
|
}): react_jsx_runtime.JSX.Element;
|
|
251
251
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
};
|
|
252
|
+
declare const registerOverlayPortal: (el: HTMLElement | null | undefined, opts?: {
|
|
253
|
+
disableDrag?: boolean;
|
|
254
|
+
}) => (() => void) | undefined;
|
|
255
|
+
|
|
255
256
|
type UsePuckData<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>> = {
|
|
256
|
-
appState:
|
|
257
|
+
appState: G["UserPublicAppState"];
|
|
257
258
|
config: UserConfig;
|
|
258
259
|
dispatch: AppStore["dispatch"];
|
|
259
260
|
getPermissions: GetPermissions<UserConfig>;
|
|
@@ -274,7 +275,7 @@ type UsePuckData<UserConfig extends Config = Config, G extends UserGenerics<User
|
|
|
274
275
|
};
|
|
275
276
|
};
|
|
276
277
|
type PuckApi<UserConfig extends Config = Config> = UsePuckData<UserConfig>;
|
|
277
|
-
type UsePuckStore<UserConfig extends Config = Config> =
|
|
278
|
+
type UsePuckStore<UserConfig extends Config = Config> = PuckApi<UserConfig>;
|
|
278
279
|
/**
|
|
279
280
|
* createUsePuck
|
|
280
281
|
*
|
|
@@ -293,4 +294,4 @@ declare function usePuck<UserConfig extends Config = Config>(): UsePuckStore<Use
|
|
|
293
294
|
*/
|
|
294
295
|
declare function useGetPuck(): () => UsePuckStore<Config>;
|
|
295
296
|
|
|
296
|
-
export { Action, ActionBar, AppState, AutoField, Button, ComponentConfig, ComponentData, Config, Data, Drawer, DropZone, Field, FieldLabel, FieldProps, Fields, Group, History, IconButton, IframeConfig, InitialHistory, Label, Metadata, OnAction, Overrides, Permissions, Plugin, Puck, PuckAction, type PuckApi, Render, ResolveDataTrigger, RootDataWithProps, UiState, type UsePuckData, UserGenerics, Viewports, createUsePuck, renderContext, useGetPuck, usePuck };
|
|
297
|
+
export { Action, ActionBar, AppState, AutoField, Button, ComponentConfig, ComponentData, Config, Data, Drawer, DropZone, Field, FieldLabel, FieldProps, Fields, Group, History, IconButton, IframeConfig, InitialHistory, Label, Metadata, OnAction, Overrides, Permissions, Plugin, Puck, PuckAction, type PuckApi, Render, ResolveDataTrigger, RootDataWithProps, UiState, type UsePuckData, UserGenerics, Viewports, createUsePuck, registerOverlayPortal, renderContext, useGetPuck, usePuck };
|
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 Field, h as FieldProps, D as DropZoneProps, i as Data, j as OnAction, k as InitialHistory, l as ItemSelector } from './walk-tree-
|
|
2
|
-
export {
|
|
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 Field, h as FieldProps, D as DropZoneProps, i as Data, j as OnAction, k as InitialHistory, l as ItemSelector } from './walk-tree-mCPqBAls.js';
|
|
2
|
+
export { a2 as Adaptor, a0 as ArrayField, x as ArrayState, af as AsFieldProps, E as BaseData, T as BaseField, N as ComponentDataMap, K as ComponentDataOptionalId, Q as Content, a6 as CustomField, a5 as CustomFieldRender, ac as DefaultComponentProps, a9 as DefaultRootFieldProps, ab as DefaultRootProps, aa as DefaultRootRenderProps, n as Direction, o as DragAxis, a4 as ExternalField, a3 as ExternalFieldWithAdaptor, ah as ExtractPropsFromConfig, ai as ExtractRootPropsFromConfig, u as FieldRenderFunctions, v as ItemWithId, L as MappedItem, Y as NumberField, a1 as ObjectField, s as OverrideKey, z as PuckComponent, a8 as PuckContext, $ as RadioField, B as RootConfig, J as RootData, G as RootDataWithoutProps, _ as SelectField, S as Slot, y as SlotComponent, a7 as SlotField, X as TextField, Z as TextareaField, p as Viewport, ag as WithChildren, ad as WithId, ae as WithPuckProps, W as WithSlotProps, m as migrate, q as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-mCPqBAls.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';
|
|
@@ -249,11 +249,12 @@ declare function Render<UserConfig extends Config = Config, G extends UserGeneri
|
|
|
249
249
|
metadata?: Metadata;
|
|
250
250
|
}): react_jsx_runtime.JSX.Element;
|
|
251
251
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
};
|
|
252
|
+
declare const registerOverlayPortal: (el: HTMLElement | null | undefined, opts?: {
|
|
253
|
+
disableDrag?: boolean;
|
|
254
|
+
}) => (() => void) | undefined;
|
|
255
|
+
|
|
255
256
|
type UsePuckData<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>> = {
|
|
256
|
-
appState:
|
|
257
|
+
appState: G["UserPublicAppState"];
|
|
257
258
|
config: UserConfig;
|
|
258
259
|
dispatch: AppStore["dispatch"];
|
|
259
260
|
getPermissions: GetPermissions<UserConfig>;
|
|
@@ -274,7 +275,7 @@ type UsePuckData<UserConfig extends Config = Config, G extends UserGenerics<User
|
|
|
274
275
|
};
|
|
275
276
|
};
|
|
276
277
|
type PuckApi<UserConfig extends Config = Config> = UsePuckData<UserConfig>;
|
|
277
|
-
type UsePuckStore<UserConfig extends Config = Config> =
|
|
278
|
+
type UsePuckStore<UserConfig extends Config = Config> = PuckApi<UserConfig>;
|
|
278
279
|
/**
|
|
279
280
|
* createUsePuck
|
|
280
281
|
*
|
|
@@ -293,4 +294,4 @@ declare function usePuck<UserConfig extends Config = Config>(): UsePuckStore<Use
|
|
|
293
294
|
*/
|
|
294
295
|
declare function useGetPuck(): () => UsePuckStore<Config>;
|
|
295
296
|
|
|
296
|
-
export { Action, ActionBar, AppState, AutoField, Button, ComponentConfig, ComponentData, Config, Data, Drawer, DropZone, Field, FieldLabel, FieldProps, Fields, Group, History, IconButton, IframeConfig, InitialHistory, Label, Metadata, OnAction, Overrides, Permissions, Plugin, Puck, PuckAction, type PuckApi, Render, ResolveDataTrigger, RootDataWithProps, UiState, type UsePuckData, UserGenerics, Viewports, createUsePuck, renderContext, useGetPuck, usePuck };
|
|
297
|
+
export { Action, ActionBar, AppState, AutoField, Button, ComponentConfig, ComponentData, Config, Data, Drawer, DropZone, Field, FieldLabel, FieldProps, Fields, Group, History, IconButton, IframeConfig, InitialHistory, Label, Metadata, OnAction, Overrides, Permissions, Plugin, Puck, PuckAction, type PuckApi, Render, ResolveDataTrigger, RootDataWithProps, UiState, type UsePuckData, UserGenerics, Viewports, createUsePuck, registerOverlayPortal, renderContext, useGetPuck, usePuck };
|