@measured/puck 0.18.0-canary.d253d54 → 0.18.0-canary.df3d1c2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +3 -3
- package/dist/{chunk-EXKSBUY5.mjs → chunk-CHWFBYEM.mjs} +2 -4
- package/dist/index.css +71 -81
- package/dist/index.d.mts +5 -10
- package/dist/index.d.ts +5 -10
- package/dist/index.js +1410 -1010
- package/dist/index.mjs +1313 -910
- package/dist/{resolve-all-data-GYzT3ont.d.mts → resolve-all-data-DzJEE28m.d.mts} +2 -1
- package/dist/{resolve-all-data-GYzT3ont.d.ts → resolve-all-data-DzJEE28m.d.ts} +2 -1
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +2 -4
- package/dist/rsc.mjs +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
@@ -101,11 +101,11 @@ Available recipes include:
|
|
101
101
|
- [Discord server](https://discord.gg/D9e4E3MQVZ) for discussions
|
102
102
|
- [awesome-puck](https://github.com/measuredco/awesome-puck) community repo for plugins, custom fields & more
|
103
103
|
|
104
|
-
##
|
104
|
+
## Get support
|
105
105
|
|
106
|
-
|
106
|
+
If you have any questions about Puck, please open a [GitHub issue](https://github.com/measuredco/puck/issues) or join us on [Discord](https://discord.gg/D9e4E3MQVZ).
|
107
107
|
|
108
|
-
|
108
|
+
Or [book a discovery call](https://app.cal.com/chrisvxd/puck-enquiry/) for hands-on support and consultancy.
|
109
109
|
|
110
110
|
## License
|
111
111
|
|
@@ -135,13 +135,11 @@ var resolveComponentData = (item, config, onResolveStart, onResolveEnd) => __asy
|
|
135
135
|
onResolveStart(item);
|
136
136
|
}
|
137
137
|
const { props: resolvedProps, readOnly = {} } = yield configForItem.resolveData(item, { changed, lastData: oldItem });
|
138
|
-
const { readOnly: existingReadOnly = {} } = item || {};
|
139
|
-
const newReadOnly = __spreadValues(__spreadValues({}, existingReadOnly), readOnly);
|
140
138
|
const resolvedItem = __spreadProps(__spreadValues({}, item), {
|
141
139
|
props: __spreadValues(__spreadValues({}, item.props), resolvedProps)
|
142
140
|
});
|
143
|
-
if (Object.keys(
|
144
|
-
resolvedItem.readOnly =
|
141
|
+
if (Object.keys(readOnly).length) {
|
142
|
+
resolvedItem.readOnly = readOnly;
|
145
143
|
}
|
146
144
|
cache.lastChange[item.props.id] = {
|
147
145
|
item,
|
package/dist/index.css
CHANGED
@@ -136,6 +136,7 @@
|
|
136
136
|
|
137
137
|
/* styles.css */
|
138
138
|
#frame-root {
|
139
|
+
height: 1px;
|
139
140
|
min-height: 100vh;
|
140
141
|
}
|
141
142
|
|
@@ -224,27 +225,10 @@
|
|
224
225
|
}
|
225
226
|
|
226
227
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/AutoField/styles.module.css/#css-module-data */
|
227
|
-
.
|
228
|
-
color: var(--puck-color-grey-04);
|
229
|
-
padding: 16px;
|
230
|
-
padding-bottom: 12px;
|
231
|
-
display: block;
|
232
|
-
}
|
233
|
-
._InputWrapper_1l5m8_1 + ._InputWrapper_1l5m8_1 {
|
234
|
-
border-top: 1px solid var(--puck-color-grey-09);
|
235
|
-
margin-top: 8px;
|
236
|
-
}
|
237
|
-
._Input_1l5m8_1 ._InputWrapper_1l5m8_1 {
|
238
|
-
padding: 0px;
|
239
|
-
}
|
240
|
-
._Input_1l5m8_1 * {
|
241
|
-
box-sizing: border-box;
|
242
|
-
}
|
243
|
-
._Input_1l5m8_1 ._InputWrapper_1l5m8_1 + ._InputWrapper_1l5m8_1 {
|
244
|
-
border-top: 0px;
|
228
|
+
._InputWrapper_1h1p1_1 + ._InputWrapper_1h1p1_1 {
|
245
229
|
margin-top: 12px;
|
246
230
|
}
|
247
|
-
._Input-
|
231
|
+
._Input-label_1h1p1_5 {
|
248
232
|
align-items: center;
|
249
233
|
color: var(--puck-color-grey-04);
|
250
234
|
display: flex;
|
@@ -252,17 +236,17 @@
|
|
252
236
|
font-size: var(--puck-font-size-xxs);
|
253
237
|
font-weight: 600;
|
254
238
|
}
|
255
|
-
._Input-
|
239
|
+
._Input-labelIcon_1h1p1_14 {
|
256
240
|
color: var(--puck-color-grey-07);
|
257
241
|
display: flex;
|
258
242
|
margin-right: 4px;
|
259
243
|
padding-left: 4px;
|
260
244
|
}
|
261
|
-
._Input-
|
245
|
+
._Input-disabledIcon_1h1p1_21 {
|
262
246
|
color: var(--puck-color-grey-05);
|
263
247
|
margin-left: auto;
|
264
248
|
}
|
265
|
-
._Input-
|
249
|
+
._Input-input_1h1p1_26 {
|
266
250
|
background: var(--puck-color-white);
|
267
251
|
border-width: 1px;
|
268
252
|
border-style: solid;
|
@@ -274,7 +258,7 @@
|
|
274
258
|
transition: border-color 50ms ease-in;
|
275
259
|
width: 100%;
|
276
260
|
}
|
277
|
-
select._Input-
|
261
|
+
select._Input-input_1h1p1_26 {
|
278
262
|
appearance: none;
|
279
263
|
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;
|
280
264
|
background-size: 12px;
|
@@ -284,25 +268,25 @@ select._Input-input_1l5m8_47 {
|
|
284
268
|
cursor: pointer;
|
285
269
|
}
|
286
270
|
@media (hover: hover) and (pointer: fine) {
|
287
|
-
.
|
288
|
-
.
|
271
|
+
._Input_1h1p1_1:has(> input):hover ._Input-input_1h1p1_26:not([readonly]),
|
272
|
+
._Input_1h1p1_1:has(> textarea):hover ._Input-input_1h1p1_26:not([readonly]) {
|
289
273
|
border-color: var(--puck-color-grey-05);
|
290
274
|
transition: none;
|
291
275
|
}
|
292
|
-
.
|
276
|
+
._Input_1h1p1_1:has(> select):hover ._Input-input_1h1p1_26:not([disabled]) {
|
293
277
|
background-color: var(--puck-color-azure-12);
|
294
278
|
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>");
|
295
279
|
border-color: var(--puck-color-grey-05);
|
296
280
|
transition: none;
|
297
281
|
}
|
298
282
|
}
|
299
|
-
._Input-
|
283
|
+
._Input-input_1h1p1_26:focus {
|
300
284
|
border-color: var(--puck-color-grey-05);
|
301
285
|
outline: 2px solid var(--puck-color-azure-05);
|
302
286
|
transition: none;
|
303
287
|
}
|
304
|
-
._Input--
|
305
|
-
._Input--
|
288
|
+
._Input--readOnly_1h1p1_70 > ._Input-input_1h1p1_26,
|
289
|
+
._Input--readOnly_1h1p1_70 > select._Input-input_1h1p1_26 {
|
306
290
|
background-color: var(--puck-color-grey-11);
|
307
291
|
border-color: var(--puck-color-grey-09);
|
308
292
|
color: var(--puck-color-grey-04);
|
@@ -311,34 +295,34 @@ select._Input-input_1l5m8_47 {
|
|
311
295
|
outline: 0;
|
312
296
|
transition: none;
|
313
297
|
}
|
314
|
-
._Input-
|
298
|
+
._Input-radioGroupItems_1h1p1_81 {
|
315
299
|
display: flex;
|
316
300
|
border: 1px solid var(--puck-color-grey-09);
|
317
301
|
border-radius: 4px;
|
318
302
|
flex-wrap: wrap;
|
319
303
|
}
|
320
|
-
._Input-
|
304
|
+
._Input-radio_1h1p1_81 {
|
321
305
|
border-right: 1px solid var(--puck-color-grey-09);
|
322
306
|
flex-grow: 1;
|
323
307
|
}
|
324
|
-
._Input-
|
308
|
+
._Input-radio_1h1p1_81:first-of-type {
|
325
309
|
border-bottom-left-radius: 4px;
|
326
310
|
border-top-left-radius: 4px;
|
327
311
|
}
|
328
|
-
._Input-
|
312
|
+
._Input-radio_1h1p1_81:first-of-type ._Input-radioInner_1h1p1_98 {
|
329
313
|
border-bottom-left-radius: 3px;
|
330
314
|
border-top-left-radius: 3px;
|
331
315
|
}
|
332
|
-
._Input-
|
316
|
+
._Input-radio_1h1p1_81:last-of-type {
|
333
317
|
border-bottom-right-radius: 4px;
|
334
318
|
border-right: 0;
|
335
319
|
border-top-right-radius: 4px;
|
336
320
|
}
|
337
|
-
._Input-
|
321
|
+
._Input-radio_1h1p1_81:last-of-type ._Input-radioInner_1h1p1_98 {
|
338
322
|
border-bottom-right-radius: 3px;
|
339
323
|
border-top-right-radius: 3px;
|
340
324
|
}
|
341
|
-
._Input-
|
325
|
+
._Input-radioInner_1h1p1_98 {
|
342
326
|
background-color: var(--puck-color-white);
|
343
327
|
color: var(--puck-color-grey-04);
|
344
328
|
cursor: pointer;
|
@@ -347,32 +331,32 @@ select._Input-input_1l5m8_47 {
|
|
347
331
|
text-align: center;
|
348
332
|
transition: background-color 50ms ease-in;
|
349
333
|
}
|
350
|
-
._Input-
|
334
|
+
._Input-radio_1h1p1_81:has(:focus-visible) {
|
351
335
|
outline: 2px solid var(--puck-color-azure-05);
|
352
336
|
outline-offset: 2px;
|
353
337
|
position: relative;
|
354
338
|
}
|
355
339
|
@media (hover: hover) and (pointer: fine) {
|
356
|
-
._Input-
|
340
|
+
._Input-radioInner_1h1p1_98:hover {
|
357
341
|
background-color: var(--puck-color-azure-12);
|
358
342
|
transition: none;
|
359
343
|
}
|
360
344
|
}
|
361
|
-
._Input--
|
345
|
+
._Input--readOnly_1h1p1_70 ._Input-radioInner_1h1p1_98 {
|
362
346
|
background-color: var(--puck-color-white);
|
363
347
|
color: var(--puck-color-grey-04);
|
364
348
|
cursor: default;
|
365
349
|
}
|
366
|
-
._Input-
|
350
|
+
._Input-radio_1h1p1_81 ._Input-radioInput_1h1p1_143:checked ~ ._Input-radioInner_1h1p1_98 {
|
367
351
|
background-color: var(--puck-color-azure-11);
|
368
352
|
color: var(--puck-color-azure-04);
|
369
353
|
font-weight: 500;
|
370
354
|
}
|
371
|
-
._Input--
|
355
|
+
._Input--readOnly_1h1p1_70 ._Input-radioInput_1h1p1_143:checked ~ ._Input-radioInner_1h1p1_98 {
|
372
356
|
background-color: var(--puck-color-grey-11);
|
373
357
|
color: var(--puck-color-grey-04);
|
374
358
|
}
|
375
|
-
._Input-
|
359
|
+
._Input-radio_1h1p1_81 ._Input-radioInput_1h1p1_143 {
|
376
360
|
clip: rect(0 0 0 0);
|
377
361
|
clip-path: inset(100%);
|
378
362
|
height: 1px;
|
@@ -381,7 +365,7 @@ select._Input-input_1l5m8_47 {
|
|
381
365
|
white-space: nowrap;
|
382
366
|
width: 1px;
|
383
367
|
}
|
384
|
-
textarea._Input-
|
368
|
+
textarea._Input-input_1h1p1_26 {
|
385
369
|
margin-bottom: -4px;
|
386
370
|
}
|
387
371
|
|
@@ -1430,22 +1414,15 @@ body:has(._DropZone--isAnimating_kmkdc_70:empty) [data-puck-overlay] {
|
|
1430
1414
|
}
|
1431
1415
|
|
1432
1416
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/styles.module.css/#css-module-data */
|
1433
|
-
.
|
1417
|
+
._Puck_12s9r_19 {
|
1434
1418
|
--puck-space-px: 16px;
|
1435
1419
|
font-family: var(--puck-font-family);
|
1436
1420
|
}
|
1437
|
-
._Puck-
|
1421
|
+
._Puck-portal_12s9r_24 {
|
1438
1422
|
position: relative;
|
1439
1423
|
z-index: 2;
|
1440
1424
|
}
|
1441
|
-
.
|
1442
|
-
bottom: 0;
|
1443
|
-
left: 0;
|
1444
|
-
position: fixed;
|
1445
|
-
right: 0;
|
1446
|
-
top: 0;
|
1447
|
-
}
|
1448
|
-
._PuckLayout-inner_1g88c_39 {
|
1425
|
+
._PuckLayout-inner_12s9r_31 {
|
1449
1426
|
--puck-frame-width: auto;
|
1450
1427
|
--puck-side-bar-width: 0px;
|
1451
1428
|
display: grid;
|
@@ -1456,54 +1433,54 @@ body:has(._DropZone--isAnimating_kmkdc_70:empty) [data-puck-overlay] {
|
|
1456
1433
|
position: relative;
|
1457
1434
|
z-index: 0;
|
1458
1435
|
}
|
1459
|
-
._PuckLayout--
|
1436
|
+
._PuckLayout--mounted_12s9r_43 ._PuckLayout-inner_12s9r_31 {
|
1460
1437
|
--puck-side-bar-width: 186px;
|
1461
1438
|
}
|
1462
|
-
._PuckLayout--
|
1439
|
+
._PuckLayout--leftSideBarVisible_12s9r_47 ._PuckLayout-inner_12s9r_31 {
|
1463
1440
|
grid-template-columns: var(--puck-side-bar-width) var(--puck-frame-width) 0;
|
1464
1441
|
}
|
1465
|
-
._PuckLayout--
|
1442
|
+
._PuckLayout--rightSideBarVisible_12s9r_53 ._PuckLayout-inner_12s9r_31 {
|
1466
1443
|
grid-template-columns: 0 var(--puck-frame-width) var(--puck-side-bar-width);
|
1467
1444
|
}
|
1468
|
-
._PuckLayout--
|
1445
|
+
._PuckLayout--leftSideBarVisible_12s9r_47._PuckLayout--rightSideBarVisible_12s9r_53 ._PuckLayout-inner_12s9r_31 {
|
1469
1446
|
grid-template-columns: var(--puck-side-bar-width) var(--puck-frame-width) var(--puck-side-bar-width);
|
1470
1447
|
}
|
1471
1448
|
@media (min-width: 458px) {
|
1472
|
-
._PuckLayout-
|
1449
|
+
._PuckLayout-mounted_12s9r_67 ._PuckLayout-inner_12s9r_31 {
|
1473
1450
|
--puck-frame-width: minmax(266px, auto);
|
1474
1451
|
}
|
1475
1452
|
}
|
1476
1453
|
@media (min-width: 638px) {
|
1477
|
-
.
|
1454
|
+
._PuckLayout_12s9r_31 ._PuckLayout-inner_12s9r_31 {
|
1478
1455
|
--puck-side-bar-width: minmax(186px, 250px);
|
1479
1456
|
}
|
1480
1457
|
}
|
1481
1458
|
@media (min-width: 766px) {
|
1482
|
-
.
|
1459
|
+
._PuckLayout_12s9r_31 ._PuckLayout-inner_12s9r_31 {
|
1483
1460
|
--puck-frame-width: auto;
|
1484
1461
|
}
|
1485
1462
|
}
|
1486
1463
|
@media (min-width: 990px) {
|
1487
|
-
.
|
1464
|
+
._PuckLayout_12s9r_31 ._PuckLayout-inner_12s9r_31 {
|
1488
1465
|
--puck-side-bar-width: 256px;
|
1489
1466
|
}
|
1490
1467
|
}
|
1491
1468
|
@media (min-width: 1198px) {
|
1492
|
-
.
|
1469
|
+
._PuckLayout_12s9r_31 ._PuckLayout-inner_12s9r_31 {
|
1493
1470
|
--puck-side-bar-width: 274px;
|
1494
1471
|
}
|
1495
1472
|
}
|
1496
1473
|
@media (min-width: 1398px) {
|
1497
|
-
.
|
1474
|
+
._PuckLayout_12s9r_31 ._PuckLayout-inner_12s9r_31 {
|
1498
1475
|
--puck-side-bar-width: 290px;
|
1499
1476
|
}
|
1500
1477
|
}
|
1501
1478
|
@media (min-width: 1598px) {
|
1502
|
-
.
|
1479
|
+
._PuckLayout_12s9r_31 ._PuckLayout-inner_12s9r_31 {
|
1503
1480
|
--puck-side-bar-width: 320px;
|
1504
1481
|
}
|
1505
1482
|
}
|
1506
|
-
._PuckLayout-
|
1483
|
+
._PuckLayout-header_12s9r_108 {
|
1507
1484
|
background: var(--puck-color-white);
|
1508
1485
|
border-bottom: 1px solid var(--puck-color-grey-09);
|
1509
1486
|
color: var(--puck-color-black);
|
@@ -1511,7 +1488,7 @@ body:has(._DropZone--isAnimating_kmkdc_70:empty) [data-puck-overlay] {
|
|
1511
1488
|
position: relative;
|
1512
1489
|
max-width: 100vw;
|
1513
1490
|
}
|
1514
|
-
._PuckLayout-
|
1491
|
+
._PuckLayout-headerInner_12s9r_117 {
|
1515
1492
|
align-items: end;
|
1516
1493
|
display: grid;
|
1517
1494
|
gap: var(--puck-space-px);
|
@@ -1520,43 +1497,43 @@ body:has(._DropZone--isAnimating_kmkdc_70:empty) [data-puck-overlay] {
|
|
1520
1497
|
grid-template-rows: auto;
|
1521
1498
|
padding: var(--puck-space-px);
|
1522
1499
|
}
|
1523
|
-
._PuckLayout-
|
1500
|
+
._PuckLayout-headerToggle_12s9r_127 {
|
1524
1501
|
color: var(--puck-color-grey-05);
|
1525
1502
|
display: flex;
|
1526
1503
|
margin-left: -4px;
|
1527
1504
|
padding-top: 2px;
|
1528
1505
|
}
|
1529
|
-
._PuckLayout--
|
1530
|
-
._PuckLayout--
|
1506
|
+
._PuckLayout--rightSideBarVisible_12s9r_53 ._PuckLayout-rightSideBarToggle_12s9r_134,
|
1507
|
+
._PuckLayout--leftSideBarVisible_12s9r_47 ._PuckLayout-leftSideBarToggle_12s9r_135 {
|
1531
1508
|
color: var(--puck-color-black);
|
1532
1509
|
}
|
1533
|
-
._PuckLayout-
|
1510
|
+
._PuckLayout-headerTitle_12s9r_139 {
|
1534
1511
|
align-self: center;
|
1535
1512
|
}
|
1536
|
-
._PuckLayout-
|
1513
|
+
._PuckLayout-headerPath_12s9r_143 {
|
1537
1514
|
font-family: var(--puck-font-family-monospaced);
|
1538
1515
|
font-size: var(--puck-font-size-xxs);
|
1539
1516
|
font-weight: normal;
|
1540
1517
|
word-break: break-all;
|
1541
1518
|
}
|
1542
|
-
._PuckLayout-
|
1519
|
+
._PuckLayout-headerTools_12s9r_150 {
|
1543
1520
|
display: flex;
|
1544
1521
|
gap: 16px;
|
1545
1522
|
justify-content: flex-end;
|
1546
1523
|
}
|
1547
|
-
._PuckLayout-
|
1524
|
+
._PuckLayout-menuButton_12s9r_156 {
|
1548
1525
|
color: var(--puck-color-grey-05);
|
1549
1526
|
margin-left: -4px;
|
1550
1527
|
}
|
1551
|
-
._PuckLayout--
|
1528
|
+
._PuckLayout--menuOpen_12s9r_161 ._PuckLayout-menuButton_12s9r_156 {
|
1552
1529
|
color: var(--puck-color-black);
|
1553
1530
|
}
|
1554
1531
|
@media (min-width: 638px) {
|
1555
|
-
._PuckLayout-
|
1532
|
+
._PuckLayout-menuButton_12s9r_156 {
|
1556
1533
|
display: none;
|
1557
1534
|
}
|
1558
1535
|
}
|
1559
|
-
._PuckLayout-
|
1536
|
+
._PuckLayout-leftSideBar_12s9r_135 {
|
1560
1537
|
background: var(--puck-color-grey-12);
|
1561
1538
|
border-right: 1px solid var(--puck-color-grey-09);
|
1562
1539
|
display: flex;
|
@@ -1564,7 +1541,7 @@ body:has(._DropZone--isAnimating_kmkdc_70:empty) [data-puck-overlay] {
|
|
1564
1541
|
grid-area: left;
|
1565
1542
|
overflow-y: auto;
|
1566
1543
|
}
|
1567
|
-
._PuckLayout-
|
1544
|
+
._PuckLayout-rightSideBar_12s9r_134 {
|
1568
1545
|
background: var(--puck-color-white);
|
1569
1546
|
border-left: 1px solid var(--puck-color-grey-09);
|
1570
1547
|
display: flex;
|
@@ -1574,14 +1551,14 @@ body:has(._DropZone--isAnimating_kmkdc_70:empty) [data-puck-overlay] {
|
|
1574
1551
|
}
|
1575
1552
|
|
1576
1553
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Fields/styles.module.css/#css-module-data */
|
1577
|
-
.
|
1554
|
+
._PuckFields_10bh7_1 {
|
1578
1555
|
position: relative;
|
1579
1556
|
font-family: var(--puck-font-family);
|
1580
1557
|
}
|
1581
|
-
._PuckFields--
|
1558
|
+
._PuckFields--isLoading_10bh7_6 {
|
1582
1559
|
min-height: 48px;
|
1583
1560
|
}
|
1584
|
-
._PuckFields-
|
1561
|
+
._PuckFields-loadingOverlay_10bh7_10 {
|
1585
1562
|
background: var(--puck-color-white);
|
1586
1563
|
display: flex;
|
1587
1564
|
justify-content: flex-end;
|
@@ -1595,12 +1572,25 @@ body:has(._DropZone--isAnimating_kmkdc_70:empty) [data-puck-overlay] {
|
|
1595
1572
|
box-sizing: border-box;
|
1596
1573
|
opacity: 0.8;
|
1597
1574
|
}
|
1598
|
-
._PuckFields-
|
1575
|
+
._PuckFields-loadingOverlayInner_10bh7_25 {
|
1599
1576
|
display: flex;
|
1600
1577
|
padding: 16px;
|
1601
1578
|
position: sticky;
|
1602
1579
|
top: 0;
|
1603
1580
|
}
|
1581
|
+
._PuckFields-field_10bh7_32 * {
|
1582
|
+
box-sizing: border-box;
|
1583
|
+
}
|
1584
|
+
._PuckFields--wrapFields_10bh7_36 ._PuckFields-field_10bh7_32 {
|
1585
|
+
color: var(--puck-color-grey-04);
|
1586
|
+
padding: 16px;
|
1587
|
+
padding-bottom: 12px;
|
1588
|
+
display: block;
|
1589
|
+
}
|
1590
|
+
._PuckFields--wrapFields_10bh7_36 ._PuckFields-field_10bh7_32 + ._PuckFields-field_10bh7_32 {
|
1591
|
+
border-top: 1px solid var(--puck-color-grey-09);
|
1592
|
+
margin-top: 8px;
|
1593
|
+
}
|
1604
1594
|
|
1605
1595
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/ComponentList/styles.module.css/#css-module-data */
|
1606
1596
|
._ComponentList_odh9d_1 {
|
package/dist/index.d.mts
CHANGED
@@ -1,10 +1,9 @@
|
|
1
|
-
import { F as FieldProps, a as Field, C as Config, D as Data, I as ItemSelector,
|
2
|
-
export { W as Adaptor, L as ArrayField, t as ArrayState, a4 as AsFieldProps, B as BaseData, G as BaseField, v as ComponentConfig, y as ComponentData, z as Content, Z as CustomField, a1 as DefaultRootProps, a0 as DefaultRootRenderProps, m as Direction, n as DragAxis, Y as ExternalField, X as ExternalFieldWithAdaptor, r as FieldRenderFunctions, _ as Fields, s as ItemWithId, M as MappedItem, N as NumberField, Q as ObjectField, q as OverrideKey, u as PuckComponent, $ as PuckContext, K as RadioField, x as RootData, R as RootDataWithProps, w as RootDataWithoutProps, S as SelectField, T as TextField, J as TextareaField, o as Viewport, a5 as WithChildren, a2 as WithId, a3 as WithPuckProps, p as overrideKeys, a6 as resolveAllData } from './resolve-all-data-
|
1
|
+
import { F as FieldProps, a as Field, C as Config, D as Data, I as ItemSelector, b as DropZoneProps, U as UserGenerics, c as UiState, O as OnAction, P as Permissions, d as Plugin, e as Overrides, f as PuckAction, V as Viewports, g as IframeConfig, h as InitialHistory, i as DefaultComponentProps, j as DefaultRootFieldProps, H as History, A as AppState, E as ExtractPropsFromConfig, k as ExtractRootPropsFromConfig, l as ComponentDataMap } from './resolve-all-data-DzJEE28m.mjs';
|
2
|
+
export { W as Adaptor, L as ArrayField, t as ArrayState, a4 as AsFieldProps, B as BaseData, G as BaseField, v as ComponentConfig, y as ComponentData, z as Content, Z as CustomField, a1 as DefaultRootProps, a0 as DefaultRootRenderProps, m as Direction, n as DragAxis, Y as ExternalField, X as ExternalFieldWithAdaptor, r as FieldRenderFunctions, _ as Fields, s as ItemWithId, M as MappedItem, N as NumberField, Q as ObjectField, q as OverrideKey, u as PuckComponent, $ as PuckContext, K as RadioField, x as RootData, R as RootDataWithProps, w as RootDataWithoutProps, S as SelectField, T as TextField, J as TextareaField, o as Viewport, a5 as WithChildren, a2 as WithId, a3 as WithPuckProps, p as overrideKeys, a6 as resolveAllData } from './resolve-all-data-DzJEE28m.mjs';
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
4
4
|
import * as react from 'react';
|
5
5
|
import { ReactNode, SyntheticEvent, ReactElement } from 'react';
|
6
6
|
import { UniqueIdentifier } from '@dnd-kit/abstract';
|
7
|
-
import { Draggable } from '@dnd-kit/dom';
|
8
7
|
|
9
8
|
declare const ActionBar: {
|
10
9
|
({ label, children, }: {
|
@@ -90,11 +89,9 @@ type DropZoneContext<UserConfig extends Config = Config> = {
|
|
90
89
|
componentState?: Record<string, any>;
|
91
90
|
itemSelector?: ItemSelector | null;
|
92
91
|
setItemSelector?: (newIndex: ItemSelector | null) => void;
|
93
|
-
dispatch?: (action: PuckAction) => void;
|
94
92
|
areaId?: string;
|
95
93
|
zoneCompound?: string;
|
96
94
|
index?: number;
|
97
|
-
draggedItem?: Draggable | null;
|
98
95
|
hoveringComponent?: string | null;
|
99
96
|
setHoveringComponent?: (id: string | null) => void;
|
100
97
|
registerZoneArea?: (areaId: string) => void;
|
@@ -108,10 +105,6 @@ type DropZoneContext<UserConfig extends Config = Config> = {
|
|
108
105
|
depth: number;
|
109
106
|
registerLocalZone?: (zone: string, active: boolean) => void;
|
110
107
|
unregisterLocalZone?: (zone: string) => void;
|
111
|
-
deepestZone?: string | null;
|
112
|
-
deepestArea?: string | null;
|
113
|
-
nextDeepestZone?: string | null;
|
114
|
-
nextDeepestArea?: string | null;
|
115
108
|
path: string[];
|
116
109
|
} | null;
|
117
110
|
declare const dropZoneContext: react.Context<DropZoneContext<Config>>;
|
@@ -172,7 +165,9 @@ declare function Puck<UserConfig extends Config = Config, G extends UserGenerics
|
|
172
165
|
}): react_jsx_runtime.JSX.Element;
|
173
166
|
declare namespace Puck {
|
174
167
|
var Components: () => react_jsx_runtime.JSX.Element;
|
175
|
-
var Fields: (
|
168
|
+
var Fields: ({ wrapFields }: {
|
169
|
+
wrapFields?: boolean;
|
170
|
+
}) => react_jsx_runtime.JSX.Element;
|
176
171
|
var Outline: () => react_jsx_runtime.JSX.Element;
|
177
172
|
var Preview: ({ id }: {
|
178
173
|
id?: string;
|
package/dist/index.d.ts
CHANGED
@@ -1,10 +1,9 @@
|
|
1
|
-
import { F as FieldProps, a as Field, C as Config, D as Data, I as ItemSelector,
|
2
|
-
export { W as Adaptor, L as ArrayField, t as ArrayState, a4 as AsFieldProps, B as BaseData, G as BaseField, v as ComponentConfig, y as ComponentData, z as Content, Z as CustomField, a1 as DefaultRootProps, a0 as DefaultRootRenderProps, m as Direction, n as DragAxis, Y as ExternalField, X as ExternalFieldWithAdaptor, r as FieldRenderFunctions, _ as Fields, s as ItemWithId, M as MappedItem, N as NumberField, Q as ObjectField, q as OverrideKey, u as PuckComponent, $ as PuckContext, K as RadioField, x as RootData, R as RootDataWithProps, w as RootDataWithoutProps, S as SelectField, T as TextField, J as TextareaField, o as Viewport, a5 as WithChildren, a2 as WithId, a3 as WithPuckProps, p as overrideKeys, a6 as resolveAllData } from './resolve-all-data-
|
1
|
+
import { F as FieldProps, a as Field, C as Config, D as Data, I as ItemSelector, b as DropZoneProps, U as UserGenerics, c as UiState, O as OnAction, P as Permissions, d as Plugin, e as Overrides, f as PuckAction, V as Viewports, g as IframeConfig, h as InitialHistory, i as DefaultComponentProps, j as DefaultRootFieldProps, H as History, A as AppState, E as ExtractPropsFromConfig, k as ExtractRootPropsFromConfig, l as ComponentDataMap } from './resolve-all-data-DzJEE28m.js';
|
2
|
+
export { W as Adaptor, L as ArrayField, t as ArrayState, a4 as AsFieldProps, B as BaseData, G as BaseField, v as ComponentConfig, y as ComponentData, z as Content, Z as CustomField, a1 as DefaultRootProps, a0 as DefaultRootRenderProps, m as Direction, n as DragAxis, Y as ExternalField, X as ExternalFieldWithAdaptor, r as FieldRenderFunctions, _ as Fields, s as ItemWithId, M as MappedItem, N as NumberField, Q as ObjectField, q as OverrideKey, u as PuckComponent, $ as PuckContext, K as RadioField, x as RootData, R as RootDataWithProps, w as RootDataWithoutProps, S as SelectField, T as TextField, J as TextareaField, o as Viewport, a5 as WithChildren, a2 as WithId, a3 as WithPuckProps, p as overrideKeys, a6 as resolveAllData } from './resolve-all-data-DzJEE28m.js';
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
4
4
|
import * as react from 'react';
|
5
5
|
import { ReactNode, SyntheticEvent, ReactElement } from 'react';
|
6
6
|
import { UniqueIdentifier } from '@dnd-kit/abstract';
|
7
|
-
import { Draggable } from '@dnd-kit/dom';
|
8
7
|
|
9
8
|
declare const ActionBar: {
|
10
9
|
({ label, children, }: {
|
@@ -90,11 +89,9 @@ type DropZoneContext<UserConfig extends Config = Config> = {
|
|
90
89
|
componentState?: Record<string, any>;
|
91
90
|
itemSelector?: ItemSelector | null;
|
92
91
|
setItemSelector?: (newIndex: ItemSelector | null) => void;
|
93
|
-
dispatch?: (action: PuckAction) => void;
|
94
92
|
areaId?: string;
|
95
93
|
zoneCompound?: string;
|
96
94
|
index?: number;
|
97
|
-
draggedItem?: Draggable | null;
|
98
95
|
hoveringComponent?: string | null;
|
99
96
|
setHoveringComponent?: (id: string | null) => void;
|
100
97
|
registerZoneArea?: (areaId: string) => void;
|
@@ -108,10 +105,6 @@ type DropZoneContext<UserConfig extends Config = Config> = {
|
|
108
105
|
depth: number;
|
109
106
|
registerLocalZone?: (zone: string, active: boolean) => void;
|
110
107
|
unregisterLocalZone?: (zone: string) => void;
|
111
|
-
deepestZone?: string | null;
|
112
|
-
deepestArea?: string | null;
|
113
|
-
nextDeepestZone?: string | null;
|
114
|
-
nextDeepestArea?: string | null;
|
115
108
|
path: string[];
|
116
109
|
} | null;
|
117
110
|
declare const dropZoneContext: react.Context<DropZoneContext<Config>>;
|
@@ -172,7 +165,9 @@ declare function Puck<UserConfig extends Config = Config, G extends UserGenerics
|
|
172
165
|
}): react_jsx_runtime.JSX.Element;
|
173
166
|
declare namespace Puck {
|
174
167
|
var Components: () => react_jsx_runtime.JSX.Element;
|
175
|
-
var Fields: (
|
168
|
+
var Fields: ({ wrapFields }: {
|
169
|
+
wrapFields?: boolean;
|
170
|
+
}) => react_jsx_runtime.JSX.Element;
|
176
171
|
var Outline: () => react_jsx_runtime.JSX.Element;
|
177
172
|
var Preview: ({ id }: {
|
178
173
|
id?: string;
|