@measured/puck 0.20.0-canary.def0ecb5 → 0.20.0-canary.e25949a6
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-VATSTM62.mjs → chunk-FYXJ5FPS.mjs} +725 -501
- package/dist/{chunk-32MJ3X3H.mjs → chunk-HUKJ36SA.mjs} +131 -69
- package/dist/index.css +79 -45
- package/dist/index.d.mts +15 -3
- package/dist/index.d.ts +15 -3
- package/dist/index.js +875 -591
- package/dist/index.mjs +6 -2
- package/dist/no-external.css +79 -45
- package/dist/no-external.d.mts +2 -2
- package/dist/no-external.d.ts +2 -2
- package/dist/no-external.js +875 -591
- package/dist/no-external.mjs +6 -2
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +138 -70
- package/dist/rsc.mjs +1 -1
- package/dist/{walk-tree-mCPqBAls.d.mts → walk-tree-B57SgEEc.d.mts} +26 -2
- package/dist/{walk-tree-mCPqBAls.d.ts → walk-tree-B57SgEEc.d.ts} +26 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -13,17 +13,19 @@ import {
|
|
|
13
13
|
Render,
|
|
14
14
|
createUsePuck,
|
|
15
15
|
overrideKeys,
|
|
16
|
+
registerOverlayPortal,
|
|
16
17
|
renderContext,
|
|
18
|
+
setDeep,
|
|
17
19
|
useGetPuck,
|
|
18
20
|
usePuck
|
|
19
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-FYXJ5FPS.mjs";
|
|
20
22
|
import {
|
|
21
23
|
init_react_import,
|
|
22
24
|
migrate,
|
|
23
25
|
resolveAllData,
|
|
24
26
|
transformProps,
|
|
25
27
|
walkTree
|
|
26
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-HUKJ36SA.mjs";
|
|
27
29
|
|
|
28
30
|
// bundle/index.ts
|
|
29
31
|
init_react_import();
|
|
@@ -43,8 +45,10 @@ export {
|
|
|
43
45
|
createUsePuck,
|
|
44
46
|
migrate,
|
|
45
47
|
overrideKeys,
|
|
48
|
+
registerOverlayPortal,
|
|
46
49
|
renderContext,
|
|
47
50
|
resolveAllData,
|
|
51
|
+
setDeep,
|
|
48
52
|
transformProps,
|
|
49
53
|
useGetPuck,
|
|
50
54
|
usePuck,
|
package/dist/no-external.css
CHANGED
|
@@ -229,10 +229,10 @@
|
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/AutoField/styles.module.css/#css-module-data */
|
|
232
|
-
.
|
|
232
|
+
._InputWrapper_bsxfo_1 + ._InputWrapper_bsxfo_1 {
|
|
233
233
|
margin-top: 12px;
|
|
234
234
|
}
|
|
235
|
-
._Input-
|
|
235
|
+
._Input-label_bsxfo_5 {
|
|
236
236
|
align-items: center;
|
|
237
237
|
color: var(--puck-color-grey-04);
|
|
238
238
|
display: flex;
|
|
@@ -240,17 +240,17 @@
|
|
|
240
240
|
font-size: var(--puck-font-size-xxs);
|
|
241
241
|
font-weight: 600;
|
|
242
242
|
}
|
|
243
|
-
._Input-
|
|
243
|
+
._Input-labelIcon_bsxfo_14 {
|
|
244
244
|
color: var(--puck-color-grey-07);
|
|
245
245
|
display: flex;
|
|
246
246
|
margin-inline-end: 4px;
|
|
247
247
|
padding-inline-start: 4px;
|
|
248
248
|
}
|
|
249
|
-
._Input-
|
|
249
|
+
._Input-disabledIcon_bsxfo_21 {
|
|
250
250
|
color: var(--puck-color-grey-05);
|
|
251
251
|
margin-inline-start: auto;
|
|
252
252
|
}
|
|
253
|
-
._Input-
|
|
253
|
+
._Input-input_bsxfo_26 {
|
|
254
254
|
background: var(--puck-color-white);
|
|
255
255
|
border-width: 1px;
|
|
256
256
|
border-style: solid;
|
|
@@ -258,13 +258,18 @@
|
|
|
258
258
|
border-radius: 4px;
|
|
259
259
|
box-sizing: border-box;
|
|
260
260
|
font-family: inherit;
|
|
261
|
-
font-size:
|
|
261
|
+
font-size: 16px;
|
|
262
262
|
padding: 12px 15px;
|
|
263
263
|
transition: border-color 50ms ease-in;
|
|
264
264
|
width: 100%;
|
|
265
265
|
max-width: 100%;
|
|
266
266
|
}
|
|
267
|
-
|
|
267
|
+
@media (min-width: 458px) {
|
|
268
|
+
._Input-input_bsxfo_26 {
|
|
269
|
+
font-size: 14px;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
select._Input-input_bsxfo_26 {
|
|
268
273
|
appearance: none;
|
|
269
274
|
background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23c3c3c3'><polygon points='0,0 100,0 50,50'/></svg>") no-repeat;
|
|
270
275
|
background-size: 12px;
|
|
@@ -273,29 +278,29 @@ select._Input-input_py9hf_26 {
|
|
|
273
278
|
background-color: var(--puck-color-white);
|
|
274
279
|
cursor: pointer;
|
|
275
280
|
}
|
|
276
|
-
select._Input-
|
|
281
|
+
select._Input-input_bsxfo_26:dir(rtl) {
|
|
277
282
|
background-position: 12px calc(50% + 3px);
|
|
278
283
|
}
|
|
279
284
|
@media (hover: hover) and (pointer: fine) {
|
|
280
|
-
.
|
|
281
|
-
.
|
|
285
|
+
._Input_bsxfo_1:has(> input):hover ._Input-input_bsxfo_26:not([readonly]),
|
|
286
|
+
._Input_bsxfo_1:has(> textarea):hover ._Input-input_bsxfo_26:not([readonly]) {
|
|
282
287
|
border-color: var(--puck-color-grey-05);
|
|
283
288
|
transition: none;
|
|
284
289
|
}
|
|
285
|
-
.
|
|
290
|
+
._Input_bsxfo_1:has(> select):hover ._Input-input_bsxfo_26:not([disabled]) {
|
|
286
291
|
background-color: var(--puck-color-azure-12);
|
|
287
292
|
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%235a5a5a'><polygon points='0,0 100,0 50,50'/></svg>");
|
|
288
293
|
border-color: var(--puck-color-grey-05);
|
|
289
294
|
transition: none;
|
|
290
295
|
}
|
|
291
296
|
}
|
|
292
|
-
._Input-
|
|
297
|
+
._Input-input_bsxfo_26:focus {
|
|
293
298
|
border-color: var(--puck-color-grey-05);
|
|
294
299
|
outline: 2px solid var(--puck-color-azure-05);
|
|
295
300
|
transition: none;
|
|
296
301
|
}
|
|
297
|
-
._Input--
|
|
298
|
-
._Input--
|
|
302
|
+
._Input--readOnly_bsxfo_82 > ._Input-input_bsxfo_26,
|
|
303
|
+
._Input--readOnly_bsxfo_82 > select._Input-input_bsxfo_26 {
|
|
299
304
|
background-color: var(--puck-color-grey-11);
|
|
300
305
|
border-color: var(--puck-color-grey-09);
|
|
301
306
|
color: var(--puck-color-grey-04);
|
|
@@ -304,34 +309,34 @@ select._Input-input_py9hf_26:dir(rtl) {
|
|
|
304
309
|
outline: 0;
|
|
305
310
|
transition: none;
|
|
306
311
|
}
|
|
307
|
-
._Input-
|
|
312
|
+
._Input-radioGroupItems_bsxfo_93 {
|
|
308
313
|
display: flex;
|
|
309
314
|
border: 1px solid var(--puck-color-grey-09);
|
|
310
315
|
border-radius: 4px;
|
|
311
316
|
flex-wrap: wrap;
|
|
312
317
|
}
|
|
313
|
-
._Input-
|
|
318
|
+
._Input-radio_bsxfo_93 {
|
|
314
319
|
border-inline-end: 1px solid var(--puck-color-grey-09);
|
|
315
320
|
flex-grow: 1;
|
|
316
321
|
}
|
|
317
|
-
._Input-
|
|
322
|
+
._Input-radio_bsxfo_93:first-of-type {
|
|
318
323
|
border-bottom-left-radius: 4px;
|
|
319
324
|
border-top-left-radius: 4px;
|
|
320
325
|
}
|
|
321
|
-
._Input-
|
|
326
|
+
._Input-radio_bsxfo_93:first-of-type ._Input-radioInner_bsxfo_110 {
|
|
322
327
|
border-bottom-left-radius: 3px;
|
|
323
328
|
border-top-left-radius: 3px;
|
|
324
329
|
}
|
|
325
|
-
._Input-
|
|
330
|
+
._Input-radio_bsxfo_93:last-of-type {
|
|
326
331
|
border-bottom-right-radius: 4px;
|
|
327
332
|
border-inline-end: 0;
|
|
328
333
|
border-top-right-radius: 4px;
|
|
329
334
|
}
|
|
330
|
-
._Input-
|
|
335
|
+
._Input-radio_bsxfo_93:last-of-type ._Input-radioInner_bsxfo_110 {
|
|
331
336
|
border-bottom-right-radius: 3px;
|
|
332
337
|
border-top-right-radius: 3px;
|
|
333
338
|
}
|
|
334
|
-
._Input-
|
|
339
|
+
._Input-radioInner_bsxfo_110 {
|
|
335
340
|
background-color: var(--puck-color-white);
|
|
336
341
|
color: var(--puck-color-grey-04);
|
|
337
342
|
cursor: pointer;
|
|
@@ -340,32 +345,32 @@ select._Input-input_py9hf_26:dir(rtl) {
|
|
|
340
345
|
text-align: center;
|
|
341
346
|
transition: background-color 50ms ease-in;
|
|
342
347
|
}
|
|
343
|
-
._Input-
|
|
348
|
+
._Input-radio_bsxfo_93:has(:focus-visible) {
|
|
344
349
|
outline: 2px solid var(--puck-color-azure-05);
|
|
345
350
|
outline-offset: 2px;
|
|
346
351
|
position: relative;
|
|
347
352
|
}
|
|
348
353
|
@media (hover: hover) and (pointer: fine) {
|
|
349
|
-
._Input-
|
|
354
|
+
._Input-radioInner_bsxfo_110:hover {
|
|
350
355
|
background-color: var(--puck-color-azure-12);
|
|
351
356
|
transition: none;
|
|
352
357
|
}
|
|
353
358
|
}
|
|
354
|
-
._Input--
|
|
359
|
+
._Input--readOnly_bsxfo_82 ._Input-radioInner_bsxfo_110 {
|
|
355
360
|
background-color: var(--puck-color-white);
|
|
356
361
|
color: var(--puck-color-grey-04);
|
|
357
362
|
cursor: default;
|
|
358
363
|
}
|
|
359
|
-
._Input-
|
|
364
|
+
._Input-radio_bsxfo_93 ._Input-radioInput_bsxfo_155:checked ~ ._Input-radioInner_bsxfo_110 {
|
|
360
365
|
background-color: var(--puck-color-azure-11);
|
|
361
366
|
color: var(--puck-color-azure-04);
|
|
362
367
|
font-weight: 500;
|
|
363
368
|
}
|
|
364
|
-
._Input--
|
|
369
|
+
._Input--readOnly_bsxfo_82 ._Input-radioInput_bsxfo_155:checked ~ ._Input-radioInner_bsxfo_110 {
|
|
365
370
|
background-color: var(--puck-color-grey-11);
|
|
366
371
|
color: var(--puck-color-grey-04);
|
|
367
372
|
}
|
|
368
|
-
._Input-
|
|
373
|
+
._Input-radio_bsxfo_93 ._Input-radioInput_bsxfo_155 {
|
|
369
374
|
clip: rect(0 0 0 0);
|
|
370
375
|
clip-path: inset(100%);
|
|
371
376
|
height: 1px;
|
|
@@ -374,7 +379,7 @@ select._Input-input_py9hf_26:dir(rtl) {
|
|
|
374
379
|
white-space: nowrap;
|
|
375
380
|
width: 1px;
|
|
376
381
|
}
|
|
377
|
-
textarea._Input-
|
|
382
|
+
textarea._Input-input_bsxfo_26 {
|
|
378
383
|
margin-bottom: -4px;
|
|
379
384
|
}
|
|
380
385
|
|
|
@@ -1309,6 +1314,33 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
1309
1314
|
opacity: 0 !important;
|
|
1310
1315
|
}
|
|
1311
1316
|
|
|
1317
|
+
/* lib/overlay-portal/styles.css */
|
|
1318
|
+
[data-puck-overlay-portal],
|
|
1319
|
+
[data-puck-overlay-portal] * {
|
|
1320
|
+
pointer-events: auto !important;
|
|
1321
|
+
}
|
|
1322
|
+
[data-puck-overlay-portal]:hover {
|
|
1323
|
+
outline: 2px var(--puck-color-azure-09) dashed;
|
|
1324
|
+
outline-offset: 2px;
|
|
1325
|
+
}
|
|
1326
|
+
[data-puck-overlay-portal]:focus-within {
|
|
1327
|
+
outline: 2px var(--puck-color-azure-07) solid;
|
|
1328
|
+
outline-offset: 2px;
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/InlineTextField/styles.module.css/#css-module-data */
|
|
1332
|
+
._InlineTextField_ilw2a_1 {
|
|
1333
|
+
cursor: text;
|
|
1334
|
+
display: inline-block;
|
|
1335
|
+
}
|
|
1336
|
+
[data-dnd-dragging] ._InlineTextField_ilw2a_1 {
|
|
1337
|
+
cursor: none;
|
|
1338
|
+
caret-color: transparent;
|
|
1339
|
+
}
|
|
1340
|
+
[data-dnd-dragging] ._InlineTextField_ilw2a_1::selection {
|
|
1341
|
+
display: none;
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1312
1344
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/SidebarSection/styles.module.css/#css-module-data */
|
|
1313
1345
|
._SidebarSection_8boj8_1 {
|
|
1314
1346
|
display: flex;
|
|
@@ -1881,23 +1913,25 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
1881
1913
|
}
|
|
1882
1914
|
|
|
1883
1915
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/ResizeHandle/styles.module.css/#css-module-data */
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1916
|
+
@media (min-width: 766px) {
|
|
1917
|
+
._ResizeHandle_144bf_2 {
|
|
1918
|
+
position: absolute;
|
|
1919
|
+
width: 5px;
|
|
1920
|
+
height: 100%;
|
|
1921
|
+
cursor: col-resize;
|
|
1922
|
+
z-index: 10;
|
|
1923
|
+
background: transparent;
|
|
1924
|
+
top: 0;
|
|
1925
|
+
}
|
|
1926
|
+
._ResizeHandle_144bf_2:hover {
|
|
1927
|
+
background: rgba(0, 0, 0, 0.1);
|
|
1928
|
+
}
|
|
1929
|
+
._ResizeHandle--left_144bf_16 {
|
|
1930
|
+
right: -3px;
|
|
1931
|
+
}
|
|
1932
|
+
._ResizeHandle--right_144bf_20 {
|
|
1933
|
+
left: -3px;
|
|
1934
|
+
}
|
|
1901
1935
|
}
|
|
1902
1936
|
|
|
1903
1937
|
/* components/Puck/components/ResizeHandle/styles.css */
|
package/dist/no-external.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
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 { a5 as Adaptor, A as AppState, a3 as ArrayField, B as ArrayState, ai as AsFieldProps, K as BaseData, Z as BaseField, f as ComponentConfig, a as ComponentData, X as ComponentDataMap, Q as ComponentDataOptionalId, C as Config, Y as Content, a9 as CustomField, a8 as CustomFieldRender, j as Data, 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, h as Field, i as FieldProps, y as FieldRenderFunctions, u as FieldTransformFn, s as FieldTransformFnParams, g as FieldTransforms, F as Fields, H as History, I as IframeConfig, l as InitialHistory, z as ItemWithId, T as MappedItem, M as Metadata, $ as NumberField, a4 as ObjectField, k as OnAction, x as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, G as PuckComponent, ab as PuckContext, a2 as RadioField, c as ResolveDataTrigger, J as RootConfig, N as RootData, R as RootDataWithProps, L as RootDataWithoutProps, a1 as SelectField, S as Slot, E as SlotComponent, aa as SlotField, _ as TextField, a0 as TextareaField, e as UiState, U as UserGenerics, q as Viewport, V as Viewports, 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-B57SgEEc.mjs';
|
|
2
|
+
export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, UsePuckData, createUsePuck, registerOverlayPortal, renderContext, setDeep, 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 {
|
|
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 { a5 as Adaptor, A as AppState, a3 as ArrayField, B as ArrayState, ai as AsFieldProps, K as BaseData, Z as BaseField, f as ComponentConfig, a as ComponentData, X as ComponentDataMap, Q as ComponentDataOptionalId, C as Config, Y as Content, a9 as CustomField, a8 as CustomFieldRender, j as Data, 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, h as Field, i as FieldProps, y as FieldRenderFunctions, u as FieldTransformFn, s as FieldTransformFnParams, g as FieldTransforms, F as Fields, H as History, I as IframeConfig, l as InitialHistory, z as ItemWithId, T as MappedItem, M as Metadata, $ as NumberField, a4 as ObjectField, k as OnAction, x as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, G as PuckComponent, ab as PuckContext, a2 as RadioField, c as ResolveDataTrigger, J as RootConfig, N as RootData, R as RootDataWithProps, L as RootDataWithoutProps, a1 as SelectField, S as Slot, E as SlotComponent, aa as SlotField, _ as TextField, a0 as TextareaField, e as UiState, U as UserGenerics, q as Viewport, V as Viewports, 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-B57SgEEc.js';
|
|
2
|
+
export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, UsePuckData, createUsePuck, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck } from './index.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'react/jsx-runtime';
|