@measured/puck 0.20.0-canary.8909f8cc → 0.20.0-canary.8c56aa8b
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-EMTLDPBH.mjs → chunk-5HI4IJHF.mjs} +147 -71
- package/dist/index.css +31 -15
- package/dist/index.d.mts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +192 -115
- package/dist/index.mjs +3 -1
- package/dist/no-external.css +31 -15
- package/dist/no-external.d.mts +2 -2
- package/dist/no-external.d.ts +2 -2
- package/dist/no-external.js +192 -115
- package/dist/no-external.mjs +3 -1
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/{walk-tree-BCI5tk0w.d.mts → walk-tree-mCPqBAls.d.mts} +13 -1
- package/dist/{walk-tree-BCI5tk0w.d.ts → walk-tree-mCPqBAls.d.ts} +13 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -13,10 +13,11 @@ import {
|
|
|
13
13
|
Render,
|
|
14
14
|
createUsePuck,
|
|
15
15
|
overrideKeys,
|
|
16
|
+
registerOverlayPortal,
|
|
16
17
|
renderContext,
|
|
17
18
|
useGetPuck,
|
|
18
19
|
usePuck
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-5HI4IJHF.mjs";
|
|
20
21
|
import {
|
|
21
22
|
init_react_import,
|
|
22
23
|
migrate,
|
|
@@ -43,6 +44,7 @@ export {
|
|
|
43
44
|
createUsePuck,
|
|
44
45
|
migrate,
|
|
45
46
|
overrideKeys,
|
|
47
|
+
registerOverlayPortal,
|
|
46
48
|
renderContext,
|
|
47
49
|
resolveAllData,
|
|
48
50
|
transformProps,
|
package/dist/no-external.css
CHANGED
|
@@ -1150,27 +1150,31 @@ textarea._Input-input_py9hf_26 {
|
|
|
1150
1150
|
}
|
|
1151
1151
|
|
|
1152
1152
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/DraggableComponent/styles.module.css/#css-module-data */
|
|
1153
|
-
.
|
|
1153
|
+
._DraggableComponent_1vaqy_1 {
|
|
1154
1154
|
position: absolute;
|
|
1155
1155
|
pointer-events: none;
|
|
1156
1156
|
--overlay-background: color-mix( in srgb, var(--puck-color-azure-08) 30%, transparent );
|
|
1157
1157
|
}
|
|
1158
|
-
._DraggableComponent-
|
|
1159
|
-
cursor: pointer;
|
|
1158
|
+
._DraggableComponent-overlayWrapper_1vaqy_12 {
|
|
1160
1159
|
height: 100%;
|
|
1161
1160
|
width: 100%;
|
|
1162
1161
|
top: 0;
|
|
1163
|
-
outline: 2px var(--puck-color-azure-09) solid;
|
|
1164
|
-
outline-offset: -2px;
|
|
1165
1162
|
position: absolute;
|
|
1166
1163
|
pointer-events: none;
|
|
1167
1164
|
box-sizing: border-box;
|
|
1168
1165
|
z-index: 1;
|
|
1169
1166
|
}
|
|
1170
|
-
.
|
|
1167
|
+
._DraggableComponent-overlay_1vaqy_12 {
|
|
1168
|
+
cursor: pointer;
|
|
1169
|
+
height: 100%;
|
|
1170
|
+
outline: 2px var(--puck-color-azure-09) solid;
|
|
1171
|
+
outline-offset: -2px;
|
|
1172
|
+
width: 100%;
|
|
1173
|
+
}
|
|
1174
|
+
._DraggableComponent_1vaqy_1:focus-visible > ._DraggableComponent-overlayWrapper_1vaqy_12 {
|
|
1171
1175
|
outline: 1px solid var(--puck-color-azure-05);
|
|
1172
1176
|
}
|
|
1173
|
-
._DraggableComponent-
|
|
1177
|
+
._DraggableComponent-loadingOverlay_1vaqy_34 {
|
|
1174
1178
|
background: var(--puck-color-white);
|
|
1175
1179
|
color: var(--puck-color-grey-03);
|
|
1176
1180
|
border-radius: 4px;
|
|
@@ -1185,29 +1189,27 @@ textarea._Input-input_py9hf_26 {
|
|
|
1185
1189
|
opacity: 0.8;
|
|
1186
1190
|
z-index: 1;
|
|
1187
1191
|
}
|
|
1188
|
-
._DraggableComponent--
|
|
1192
|
+
._DraggableComponent--hover_1vaqy_50 > ._DraggableComponent-overlayWrapper_1vaqy_12 > ._DraggableComponent-overlay_1vaqy_12 {
|
|
1189
1193
|
background: var(--overlay-background);
|
|
1190
|
-
}
|
|
1191
|
-
._DraggableComponent--hover_qzbgx_45 > ._DraggableComponent-overlay_qzbgx_12 {
|
|
1192
1194
|
outline: 2px var(--puck-color-azure-09) solid;
|
|
1193
1195
|
}
|
|
1194
|
-
._DraggableComponent--
|
|
1196
|
+
._DraggableComponent--isSelected_1vaqy_57 > ._DraggableComponent-overlayWrapper_1vaqy_12 > ._DraggableComponent-overlay_1vaqy_12 {
|
|
1195
1197
|
outline-color: var(--puck-color-azure-07);
|
|
1196
1198
|
}
|
|
1197
|
-
.
|
|
1199
|
+
._DraggableComponent_1vaqy_1:has(._DraggableComponent--hover_1vaqy_50 > ._DraggableComponent-overlayWrapper_1vaqy_12) > ._DraggableComponent-overlayWrapper_1vaqy_12 {
|
|
1198
1200
|
display: none;
|
|
1199
1201
|
}
|
|
1200
|
-
._DraggableComponent-
|
|
1202
|
+
._DraggableComponent-actionsOverlay_1vaqy_71 {
|
|
1201
1203
|
position: sticky;
|
|
1202
1204
|
opacity: 0;
|
|
1203
1205
|
pointer-events: none;
|
|
1204
1206
|
z-index: 2;
|
|
1205
1207
|
}
|
|
1206
|
-
._DraggableComponent--
|
|
1208
|
+
._DraggableComponent--isSelected_1vaqy_57 ._DraggableComponent-actionsOverlay_1vaqy_71 {
|
|
1207
1209
|
opacity: 1;
|
|
1208
1210
|
pointer-events: auto;
|
|
1209
1211
|
}
|
|
1210
|
-
._DraggableComponent-
|
|
1212
|
+
._DraggableComponent-actions_1vaqy_71 {
|
|
1211
1213
|
position: absolute;
|
|
1212
1214
|
width: auto;
|
|
1213
1215
|
cursor: grab;
|
|
@@ -1938,3 +1940,17 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
1938
1940
|
grid-area: right;
|
|
1939
1941
|
justify-self: start;
|
|
1940
1942
|
}
|
|
1943
|
+
|
|
1944
|
+
/* lib/overlay-portal/styles.css */
|
|
1945
|
+
[data-puck-overlay-portal],
|
|
1946
|
+
[data-puck-overlay-portal] * {
|
|
1947
|
+
pointer-events: auto;
|
|
1948
|
+
}
|
|
1949
|
+
[data-puck-overlay-portal]:hover {
|
|
1950
|
+
outline: 2px var(--puck-color-azure-09) solid;
|
|
1951
|
+
outline-offset: 2px;
|
|
1952
|
+
}
|
|
1953
|
+
[data-puck-overlay-portal]:focus-within {
|
|
1954
|
+
outline: 2px var(--puck-color-azure-07) solid;
|
|
1955
|
+
outline-offset: 2px;
|
|
1956
|
+
}
|
package/dist/no-external.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a2 as Adaptor, A as AppState, a0 as ArrayField, x as ArrayState, af as AsFieldProps, E as BaseData, T as BaseField, f as ComponentConfig, a as ComponentData, N as ComponentDataMap, K as ComponentDataOptionalId, C as Config, Q as Content, a6 as CustomField, a5 as CustomFieldRender, i as Data, 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, g as Field, h as FieldProps, u as FieldRenderFunctions, F as Fields, H as History, I as IframeConfig, k as InitialHistory, v as ItemWithId, L as MappedItem, M as Metadata, Y as NumberField, a1 as ObjectField, j as OnAction, s as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, z as PuckComponent, a8 as PuckContext, $ as RadioField, c as ResolveDataTrigger, B as RootConfig, J as RootData, R as RootDataWithProps, G as RootDataWithoutProps, _ as SelectField, S as Slot, y as SlotComponent, a7 as SlotField, X as TextField, Z as TextareaField, e as UiState, U as UserGenerics, p as Viewport, V as Viewports, 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-
|
|
2
|
-
export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, UsePuckData, createUsePuck, renderContext, useGetPuck, usePuck } from './index.mjs';
|
|
1
|
+
export { a2 as Adaptor, A as AppState, a0 as ArrayField, x as ArrayState, af as AsFieldProps, E as BaseData, T as BaseField, f as ComponentConfig, a as ComponentData, N as ComponentDataMap, K as ComponentDataOptionalId, C as Config, Q as Content, a6 as CustomField, a5 as CustomFieldRender, i as Data, 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, g as Field, h as FieldProps, u as FieldRenderFunctions, F as Fields, H as History, I as IframeConfig, k as InitialHistory, v as ItemWithId, L as MappedItem, M as Metadata, Y as NumberField, a1 as ObjectField, j as OnAction, s as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, z as PuckComponent, a8 as PuckContext, $ as RadioField, c as ResolveDataTrigger, B as RootConfig, J as RootData, R as RootDataWithProps, G as RootDataWithoutProps, _ as SelectField, S as Slot, y as SlotComponent, a7 as SlotField, X as TextField, Z as TextareaField, e as UiState, U as UserGenerics, p as Viewport, V as Viewports, 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';
|
|
2
|
+
export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, UsePuckData, createUsePuck, registerOverlayPortal, renderContext, useGetPuck, usePuck } from './index.mjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'react/jsx-runtime';
|
package/dist/no-external.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a2 as Adaptor, A as AppState, a0 as ArrayField, x as ArrayState, af as AsFieldProps, E as BaseData, T as BaseField, f as ComponentConfig, a as ComponentData, N as ComponentDataMap, K as ComponentDataOptionalId, C as Config, Q as Content, a6 as CustomField, a5 as CustomFieldRender, i as Data, 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, g as Field, h as FieldProps, u as FieldRenderFunctions, F as Fields, H as History, I as IframeConfig, k as InitialHistory, v as ItemWithId, L as MappedItem, M as Metadata, Y as NumberField, a1 as ObjectField, j as OnAction, s as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, z as PuckComponent, a8 as PuckContext, $ as RadioField, c as ResolveDataTrigger, B as RootConfig, J as RootData, R as RootDataWithProps, G as RootDataWithoutProps, _ as SelectField, S as Slot, y as SlotComponent, a7 as SlotField, X as TextField, Z as TextareaField, e as UiState, U as UserGenerics, p as Viewport, V as Viewports, 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-
|
|
2
|
-
export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, UsePuckData, createUsePuck, renderContext, useGetPuck, usePuck } from './index.js';
|
|
1
|
+
export { a2 as Adaptor, A as AppState, a0 as ArrayField, x as ArrayState, af as AsFieldProps, E as BaseData, T as BaseField, f as ComponentConfig, a as ComponentData, N as ComponentDataMap, K as ComponentDataOptionalId, C as Config, Q as Content, a6 as CustomField, a5 as CustomFieldRender, i as Data, 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, g as Field, h as FieldProps, u as FieldRenderFunctions, F as Fields, H as History, I as IframeConfig, k as InitialHistory, v as ItemWithId, L as MappedItem, M as Metadata, Y as NumberField, a1 as ObjectField, j as OnAction, s as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, z as PuckComponent, a8 as PuckContext, $ as RadioField, c as ResolveDataTrigger, B as RootConfig, J as RootData, R as RootDataWithProps, G as RootDataWithoutProps, _ as SelectField, S as Slot, y as SlotComponent, a7 as SlotField, X as TextField, Z as TextareaField, e as UiState, U as UserGenerics, p as Viewport, V as Viewports, 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';
|
|
2
|
+
export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, UsePuckData, createUsePuck, registerOverlayPortal, renderContext, useGetPuck, usePuck } from './index.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'react/jsx-runtime';
|