@puckeditor/core 0.21.3 → 0.22.0-canary.08eaa6ba
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 +1 -4
- package/dist/{Editor-MCVDFQH6.mjs → Editor-K6FPIMNH.mjs} +8 -8
- package/dist/{actions-C3e2nJ9v.d.mts → actions-Csn3gOP8.d.mts} +3 -1
- package/dist/{actions-C3e2nJ9v.d.ts → actions-Csn3gOP8.d.ts} +3 -1
- package/dist/{chunk-DPDJ67KA.mjs → chunk-4X2SLJRQ.mjs} +1 -1
- package/dist/{chunk-4HOGLOEA.mjs → chunk-6MO3E35Y.mjs} +5 -3
- package/dist/{chunk-X2ZFWNCU.mjs → chunk-CO6PRTVM.mjs} +12 -9
- package/dist/{chunk-6XCJ3Y7O.mjs → chunk-DVZWVU66.mjs} +55 -2
- package/dist/{chunk-TDQEUXB2.mjs → chunk-FE7T3PZI.mjs} +3 -3
- package/dist/{chunk-ZMTK7SMX.mjs → chunk-GFIZBMKN.mjs} +1 -1
- package/dist/{chunk-LODTL5KW.mjs → chunk-MQKADUDK.mjs} +1 -1
- package/dist/{chunk-YXFTA2VL.mjs → chunk-MYHXN3XX.mjs} +3131 -319
- package/dist/{chunk-HGJWUFLT.mjs → chunk-NWL4JLKR.mjs} +7 -7
- package/dist/{chunk-O7FT3KAM.mjs → chunk-OVPTKQ2P.mjs} +4 -3
- package/dist/{full-5QCBHXRC.mjs → full-L4ITHDQO.mjs} +7 -7
- package/dist/{index-Cx46WIFC.d.ts → index-B1b1cFug.d.ts} +1 -1
- package/dist/{index-zHrchQGY.d.mts → index-ClzBCbx_.d.mts} +1 -1
- package/dist/index.css +60 -54
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3206 -326
- package/dist/index.mjs +10 -10
- package/dist/internal.d.mts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +48 -2
- package/dist/internal.mjs +1 -1
- package/dist/{loaded-Y4ZWZC55.mjs → loaded-2QS7VXZ6.mjs} +4 -4
- package/dist/{loaded-OMRIYZIQ.mjs → loaded-A7UUCT2O.mjs} +4 -4
- package/dist/{loaded-54625GTL.mjs → loaded-JHBS3QYA.mjs} +4 -4
- package/dist/no-external.css +60 -54
- package/dist/no-external.d.mts +3 -3
- package/dist/no-external.d.ts +3 -3
- package/dist/no-external.js +3206 -326
- package/dist/no-external.mjs +10 -10
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +16 -11
- package/dist/rsc.mjs +2 -2
- package/dist/{walk-tree-BJoNgZ0l.d.mts → walk-tree-BrW9VQ_t.d.mts} +1 -1
- package/dist/{walk-tree-f8Yzs5o3.d.ts → walk-tree-CWrsBHHe.d.ts} +1 -1
- package/package.json +13 -5
package/dist/index.mjs
CHANGED
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
setDeep,
|
|
18
18
|
useGetPuck,
|
|
19
19
|
usePuck
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-MYHXN3XX.mjs";
|
|
21
|
+
import "./chunk-FE7T3PZI.mjs";
|
|
22
22
|
import {
|
|
23
23
|
migrate,
|
|
24
24
|
resolveAllData,
|
|
25
25
|
transformProps
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-CO6PRTVM.mjs";
|
|
27
27
|
import "./chunk-AOEDIUVK.mjs";
|
|
28
28
|
import {
|
|
29
29
|
Action,
|
|
@@ -33,13 +33,13 @@ import {
|
|
|
33
33
|
Label,
|
|
34
34
|
RichTextMenu,
|
|
35
35
|
Separator
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-NWL4JLKR.mjs";
|
|
37
|
+
import "./chunk-4X2SLJRQ.mjs";
|
|
38
|
+
import "./chunk-GFIZBMKN.mjs";
|
|
39
|
+
import "./chunk-MQKADUDK.mjs";
|
|
40
|
+
import "./chunk-OVPTKQ2P.mjs";
|
|
41
|
+
import "./chunk-DVZWVU66.mjs";
|
|
42
|
+
import "./chunk-6MO3E35Y.mjs";
|
|
43
43
|
import "./chunk-Y2EFNT5P.mjs";
|
|
44
44
|
import {
|
|
45
45
|
walkTree
|
package/dist/internal.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Reducer } from 'react';
|
|
2
|
-
import { D as Data,
|
|
3
|
-
import { A as AppStore } from './index-
|
|
2
|
+
import { D as Data, a as AppState, Y as OnAction, a2 as PrivateAppState, a3 as PuckAction } from './actions-Csn3gOP8.mjs';
|
|
3
|
+
import { A as AppStore } from './index-ClzBCbx_.mjs';
|
|
4
4
|
import '@tiptap/react';
|
|
5
5
|
import '@tiptap/extension-blockquote';
|
|
6
6
|
import '@tiptap/extension-bold';
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Reducer } from 'react';
|
|
2
|
-
import { D as Data,
|
|
3
|
-
import { A as AppStore } from './index-
|
|
2
|
+
import { D as Data, a as AppState, Y as OnAction, a2 as PrivateAppState, a3 as PuckAction } from './actions-Csn3gOP8.js';
|
|
3
|
+
import { A as AppStore } from './index-B1b1cFug.js';
|
|
4
4
|
import '@tiptap/react';
|
|
5
5
|
import '@tiptap/extension-blockquote';
|
|
6
6
|
import '@tiptap/extension-bold';
|
package/dist/internal.js
CHANGED
|
@@ -413,9 +413,55 @@ var insert = (list, index, item) => {
|
|
|
413
413
|
return result;
|
|
414
414
|
};
|
|
415
415
|
|
|
416
|
+
// lib/uuid/rng.ts
|
|
417
|
+
var rnds8 = new Uint8Array(16);
|
|
418
|
+
function rng() {
|
|
419
|
+
return crypto.getRandomValues(rnds8);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
// lib/uuid/stringify.ts
|
|
423
|
+
var byteToHex = [];
|
|
424
|
+
for (let i = 0; i < 256; ++i) {
|
|
425
|
+
byteToHex.push((i + 256).toString(16).slice(1));
|
|
426
|
+
}
|
|
427
|
+
function unsafeStringify(arr, offset = 0) {
|
|
428
|
+
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
// lib/uuid/index.ts
|
|
432
|
+
function v4(options, buf, offset) {
|
|
433
|
+
if (!buf && !options && crypto.randomUUID) {
|
|
434
|
+
return crypto.randomUUID();
|
|
435
|
+
}
|
|
436
|
+
return _v4(options, buf, offset);
|
|
437
|
+
}
|
|
438
|
+
function _v4(options, buf, offset) {
|
|
439
|
+
var _a, _b, _c;
|
|
440
|
+
options = options || {};
|
|
441
|
+
const rnds = (_c = (_b = options.random) != null ? _b : (_a = options.rng) == null ? void 0 : _a.call(options)) != null ? _c : rng();
|
|
442
|
+
if (rnds.length < 16) {
|
|
443
|
+
throw new Error("Random bytes length must be >= 16");
|
|
444
|
+
}
|
|
445
|
+
rnds[6] = rnds[6] & 15 | 64;
|
|
446
|
+
rnds[8] = rnds[8] & 63 | 128;
|
|
447
|
+
if (buf) {
|
|
448
|
+
offset = offset || 0;
|
|
449
|
+
if (offset < 0 || offset + 16 > buf.length) {
|
|
450
|
+
throw new RangeError(
|
|
451
|
+
`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`
|
|
452
|
+
);
|
|
453
|
+
}
|
|
454
|
+
for (let i = 0; i < 16; ++i) {
|
|
455
|
+
buf[offset + i] = rnds[i];
|
|
456
|
+
}
|
|
457
|
+
return buf;
|
|
458
|
+
}
|
|
459
|
+
return unsafeStringify(rnds);
|
|
460
|
+
}
|
|
461
|
+
var uuid_default = v4;
|
|
462
|
+
|
|
416
463
|
// lib/generate-id.ts
|
|
417
|
-
var
|
|
418
|
-
var generateId = (type) => type ? `${type}-${(0, import_uuid.v4)()}` : (0, import_uuid.v4)();
|
|
464
|
+
var generateId = (type) => type ? `${type}-${uuid_default()}` : uuid_default();
|
|
419
465
|
|
|
420
466
|
// lib/data/get-ids-for-parent.ts
|
|
421
467
|
var getIdsForParent = (zoneCompound, state) => {
|
package/dist/internal.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useListOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MQKADUDK.mjs";
|
|
4
4
|
import {
|
|
5
5
|
List,
|
|
6
6
|
SelectControl,
|
|
7
7
|
useControlContext
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-OVPTKQ2P.mjs";
|
|
9
|
+
import "./chunk-DVZWVU66.mjs";
|
|
10
|
+
import "./chunk-6MO3E35Y.mjs";
|
|
11
11
|
import "./chunk-Y2EFNT5P.mjs";
|
|
12
12
|
import "./chunk-SHVCBQDY.mjs";
|
|
13
13
|
import {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useHeadingOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GFIZBMKN.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Heading,
|
|
6
6
|
SelectControl,
|
|
7
7
|
useControlContext
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-OVPTKQ2P.mjs";
|
|
9
|
+
import "./chunk-DVZWVU66.mjs";
|
|
10
|
+
import "./chunk-6MO3E35Y.mjs";
|
|
11
11
|
import "./chunk-Y2EFNT5P.mjs";
|
|
12
12
|
import "./chunk-SHVCBQDY.mjs";
|
|
13
13
|
import {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAlignOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4X2SLJRQ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
AlignLeft,
|
|
6
6
|
SelectControl,
|
|
7
7
|
useControlContext
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-OVPTKQ2P.mjs";
|
|
9
|
+
import "./chunk-DVZWVU66.mjs";
|
|
10
|
+
import "./chunk-6MO3E35Y.mjs";
|
|
11
11
|
import "./chunk-Y2EFNT5P.mjs";
|
|
12
12
|
import "./chunk-SHVCBQDY.mjs";
|
|
13
13
|
import {
|
package/dist/no-external.css
CHANGED
|
@@ -1494,7 +1494,7 @@ textarea._Input-input_bsxfo_26 {
|
|
|
1494
1494
|
cursor: pointer;
|
|
1495
1495
|
}
|
|
1496
1496
|
[data-dnd-placeholder] {
|
|
1497
|
-
background: var(--puck-color-azure-06) !important;
|
|
1497
|
+
background: var(--puck-color-azure-06, #6499cf) !important;
|
|
1498
1498
|
border: none !important;
|
|
1499
1499
|
color: #00000000 !important;
|
|
1500
1500
|
opacity: 0.3 !important;
|
|
@@ -1508,9 +1508,15 @@ textarea._Input-input_bsxfo_26 {
|
|
|
1508
1508
|
}
|
|
1509
1509
|
[data-dnd-dragging][data-puck-component] {
|
|
1510
1510
|
pointer-events: none !important;
|
|
1511
|
-
outline: 2px var(--puck-color-azure-09) solid !important;
|
|
1511
|
+
outline: 2px var(--puck-color-azure-09, #cfdff0) solid !important;
|
|
1512
1512
|
outline-offset: -2px !important;
|
|
1513
1513
|
}
|
|
1514
|
+
[data-dnd-dragging][data-puck-component] > :first-child {
|
|
1515
|
+
margin-top: 0 !important;
|
|
1516
|
+
}
|
|
1517
|
+
[data-dnd-dragging][data-puck-component] > :last-child {
|
|
1518
|
+
margin-bottom: 0 !important;
|
|
1519
|
+
}
|
|
1514
1520
|
|
|
1515
1521
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/DropZone/styles.module.css/#css-module-data */
|
|
1516
1522
|
._DropZone_1i2sv_1 {
|
|
@@ -1571,11 +1577,11 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
1571
1577
|
pointer-events: auto !important;
|
|
1572
1578
|
}
|
|
1573
1579
|
[data-puck-overlay-portal]:hover {
|
|
1574
|
-
outline: 2px var(--puck-color-azure-09) dashed;
|
|
1580
|
+
outline: 2px var(--puck-color-azure-09, #cfdff0) dashed;
|
|
1575
1581
|
outline-offset: 2px;
|
|
1576
1582
|
}
|
|
1577
1583
|
[data-puck-overlay-portal]:focus-within {
|
|
1578
|
-
outline: 2px var(--puck-color-azure-07) dashed;
|
|
1584
|
+
outline: 2px var(--puck-color-azure-07, #88b0da) dashed;
|
|
1579
1585
|
outline-offset: 2px;
|
|
1580
1586
|
}
|
|
1581
1587
|
|
|
@@ -1800,24 +1806,25 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
1800
1806
|
}
|
|
1801
1807
|
|
|
1802
1808
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Layout/styles.module.css/#css-module-data */
|
|
1803
|
-
.
|
|
1809
|
+
._Puck_cgc86_19 {
|
|
1804
1810
|
--puck-space-px: 16px;
|
|
1805
1811
|
font-family: var(--puck-font-family);
|
|
1806
1812
|
overflow-x: hidden;
|
|
1813
|
+
visibility: visible !important;
|
|
1807
1814
|
}
|
|
1808
1815
|
@media (min-width: 766px) {
|
|
1809
|
-
.
|
|
1816
|
+
._Puck_cgc86_19 {
|
|
1810
1817
|
overflow-x: auto;
|
|
1811
1818
|
}
|
|
1812
1819
|
}
|
|
1813
|
-
._Puck-
|
|
1820
|
+
._Puck-portal_cgc86_32 {
|
|
1814
1821
|
position: relative;
|
|
1815
1822
|
z-index: 2;
|
|
1816
1823
|
}
|
|
1817
|
-
.
|
|
1824
|
+
._PuckLayout_cgc86_37 {
|
|
1818
1825
|
height: 100dvh;
|
|
1819
1826
|
}
|
|
1820
|
-
._PuckLayout-
|
|
1827
|
+
._PuckLayout-inner_cgc86_41 {
|
|
1821
1828
|
--puck-frame-width: auto;
|
|
1822
1829
|
--puck-side-nav-width: min-content;
|
|
1823
1830
|
--puck-side-bar-width: 0px;
|
|
@@ -1835,90 +1842,90 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
1835
1842
|
overflow: hidden;
|
|
1836
1843
|
}
|
|
1837
1844
|
@media (min-width: 638px) {
|
|
1838
|
-
._PuckLayout-
|
|
1845
|
+
._PuckLayout-inner_cgc86_41 {
|
|
1839
1846
|
--puck-side-nav-width: 68px;
|
|
1840
1847
|
grid-template-areas: "header header header header" "sidenav left editor right";
|
|
1841
1848
|
grid-template-columns: var(--puck-side-nav-width) 0 var(--puck-frame-width) 0;
|
|
1842
1849
|
grid-template-rows: min-content auto;
|
|
1843
1850
|
}
|
|
1844
|
-
._Puck--
|
|
1851
|
+
._Puck--hidePlugins_cgc86_73 ._PuckLayout-inner_cgc86_41 {
|
|
1845
1852
|
--puck-side-nav-width: 0;
|
|
1846
1853
|
}
|
|
1847
1854
|
}
|
|
1848
|
-
._PuckLayout--
|
|
1855
|
+
._PuckLayout--mounted_cgc86_78 ._PuckLayout-inner_cgc86_41 {
|
|
1849
1856
|
--puck-side-bar-width: 186px;
|
|
1850
1857
|
}
|
|
1851
|
-
._PuckLayout--
|
|
1858
|
+
._PuckLayout--mobilePanelHeightToggle_cgc86_82._PuckLayout--leftSideBarVisible_cgc86_82 ._PuckLayout-inner_cgc86_41 {
|
|
1852
1859
|
grid-template-rows: 0 auto 30% 0 var(--puck-side-nav-width);
|
|
1853
1860
|
}
|
|
1854
|
-
._PuckLayout--
|
|
1861
|
+
._PuckLayout--mobilePanelHeightToggle_cgc86_82._PuckLayout--leftSideBarVisible_cgc86_82._PuckLayout--isExpanded_cgc86_88 ._PuckLayout-inner_cgc86_41 {
|
|
1855
1862
|
grid-template-rows: 0 auto 55% 0 var(--puck-side-nav-width);
|
|
1856
1863
|
}
|
|
1857
1864
|
@media (min-width: 638px) {
|
|
1858
|
-
._PuckLayout--
|
|
1865
|
+
._PuckLayout--mobilePanelHeightToggle_cgc86_82._PuckLayout--leftSideBarVisible_cgc86_82 ._PuckLayout-inner_cgc86_41 {
|
|
1859
1866
|
grid-template-columns: var(--puck-side-nav-width) var(--puck-left-side-bar-width) var( --puck-frame-width ) 0;
|
|
1860
1867
|
grid-template-rows: min-content auto;
|
|
1861
1868
|
}
|
|
1862
1869
|
}
|
|
1863
|
-
._PuckLayout--
|
|
1864
|
-
._PuckLayout--
|
|
1870
|
+
._PuckLayout--mobilePanelHeightMinContent_cgc86_106._PuckLayout--leftSideBarVisible_cgc86_82 ._PuckLayout-inner_cgc86_41,
|
|
1871
|
+
._PuckLayout--mobilePanelHeightMinContent_cgc86_106._PuckLayout--leftSideBarVisible_cgc86_82._PuckLayout--isExpanded_cgc86_88 ._PuckLayout-inner_cgc86_41 {
|
|
1865
1872
|
grid-template-rows: 0 auto min-content 0 var(--puck-side-nav-width);
|
|
1866
1873
|
}
|
|
1867
1874
|
@media (min-width: 638px) {
|
|
1868
|
-
._PuckLayout--
|
|
1869
|
-
._PuckLayout--
|
|
1870
|
-
._PuckLayout--
|
|
1871
|
-
._PuckLayout--
|
|
1875
|
+
._PuckLayout--mobilePanelHeightToggle_cgc86_82._PuckLayout--leftSideBarVisible_cgc86_82 ._PuckLayout-inner_cgc86_41,
|
|
1876
|
+
._PuckLayout--mobilePanelHeightToggle_cgc86_82._PuckLayout--leftSideBarVisible_cgc86_82._PuckLayout--isExpanded_cgc86_88 ._PuckLayout-inner_cgc86_41,
|
|
1877
|
+
._PuckLayout--mobilePanelHeightMinContent_cgc86_106._PuckLayout--leftSideBarVisible_cgc86_82 ._PuckLayout-inner_cgc86_41,
|
|
1878
|
+
._PuckLayout--mobilePanelHeightMinContent_cgc86_106._PuckLayout--leftSideBarVisible_cgc86_82._PuckLayout--isExpanded_cgc86_88 ._PuckLayout-inner_cgc86_41 {
|
|
1872
1879
|
grid-template-columns: var(--puck-side-nav-width) var(--puck-left-side-bar-width) var( --puck-frame-width ) 0;
|
|
1873
1880
|
grid-template-rows: min-content auto;
|
|
1874
1881
|
}
|
|
1875
1882
|
}
|
|
1876
1883
|
@media (min-width: 638px) {
|
|
1877
|
-
._PuckLayout--
|
|
1884
|
+
._PuckLayout--rightSideBarVisible_cgc86_133 ._PuckLayout-inner_cgc86_41 {
|
|
1878
1885
|
grid-template-columns: var(--puck-side-nav-width) 0 var(--puck-frame-width) var(--puck-right-side-bar-width);
|
|
1879
1886
|
}
|
|
1880
1887
|
}
|
|
1881
1888
|
@media (min-width: 638px) {
|
|
1882
|
-
._PuckLayout--
|
|
1889
|
+
._PuckLayout--leftSideBarVisible_cgc86_82._PuckLayout--rightSideBarVisible_cgc86_133 ._PuckLayout-inner_cgc86_41 {
|
|
1883
1890
|
grid-template-columns: var(--puck-side-nav-width) var(--puck-left-side-bar-width) var( --puck-frame-width ) var(--puck-right-side-bar-width);
|
|
1884
1891
|
}
|
|
1885
1892
|
}
|
|
1886
1893
|
@media (min-width: 458px) {
|
|
1887
|
-
._PuckLayout-
|
|
1894
|
+
._PuckLayout-mounted_cgc86_152 ._PuckLayout-inner_cgc86_41 {
|
|
1888
1895
|
--puck-frame-width: minmax(266px, auto);
|
|
1889
1896
|
}
|
|
1890
1897
|
}
|
|
1891
1898
|
@media (min-width: 638px) {
|
|
1892
|
-
.
|
|
1899
|
+
._PuckLayout_cgc86_37 ._PuckLayout-inner_cgc86_41 {
|
|
1893
1900
|
--puck-side-bar-width: minmax(186px, 250px);
|
|
1894
1901
|
}
|
|
1895
1902
|
}
|
|
1896
1903
|
@media (min-width: 766px) {
|
|
1897
|
-
.
|
|
1904
|
+
._PuckLayout_cgc86_37 ._PuckLayout-inner_cgc86_41 {
|
|
1898
1905
|
--puck-frame-width: auto;
|
|
1899
1906
|
}
|
|
1900
1907
|
}
|
|
1901
1908
|
@media (min-width: 990px) {
|
|
1902
|
-
.
|
|
1909
|
+
._PuckLayout_cgc86_37 ._PuckLayout-inner_cgc86_41 {
|
|
1903
1910
|
--puck-side-bar-width: 256px;
|
|
1904
1911
|
}
|
|
1905
1912
|
}
|
|
1906
1913
|
@media (min-width: 1198px) {
|
|
1907
|
-
.
|
|
1914
|
+
._PuckLayout_cgc86_37 ._PuckLayout-inner_cgc86_41 {
|
|
1908
1915
|
--puck-side-bar-width: 274px;
|
|
1909
1916
|
}
|
|
1910
1917
|
}
|
|
1911
1918
|
@media (min-width: 1398px) {
|
|
1912
|
-
.
|
|
1919
|
+
._PuckLayout_cgc86_37 ._PuckLayout-inner_cgc86_41 {
|
|
1913
1920
|
--puck-side-bar-width: 290px;
|
|
1914
1921
|
}
|
|
1915
1922
|
}
|
|
1916
1923
|
@media (min-width: 1598px) {
|
|
1917
|
-
.
|
|
1924
|
+
._PuckLayout_cgc86_37 ._PuckLayout-inner_cgc86_41 {
|
|
1918
1925
|
--puck-side-bar-width: 320px;
|
|
1919
1926
|
}
|
|
1920
1927
|
}
|
|
1921
|
-
._PuckLayout-
|
|
1928
|
+
._PuckLayout-nav_cgc86_193 {
|
|
1922
1929
|
border-top: 1px solid var(--puck-color-grey-09);
|
|
1923
1930
|
background-color: var(--puck-color-grey-12);
|
|
1924
1931
|
grid-area: sidenav;
|
|
@@ -1926,33 +1933,33 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
1926
1933
|
width: 100%;
|
|
1927
1934
|
}
|
|
1928
1935
|
@media (min-width: 638px) {
|
|
1929
|
-
._PuckLayout-
|
|
1936
|
+
._PuckLayout-nav_cgc86_193 {
|
|
1930
1937
|
border-top: 0;
|
|
1931
1938
|
border-right: 1px solid var(--puck-color-grey-09);
|
|
1932
1939
|
box-sizing: border-box;
|
|
1933
1940
|
}
|
|
1934
1941
|
}
|
|
1935
|
-
._PuckLayout-
|
|
1942
|
+
._PuckLayout-header_cgc86_209 {
|
|
1936
1943
|
grid-area: header;
|
|
1937
1944
|
}
|
|
1938
|
-
._PuckLayout--
|
|
1945
|
+
._PuckLayout--leftSideBarVisible_cgc86_82 ._PuckLayout-header_cgc86_209 {
|
|
1939
1946
|
overflow: hidden;
|
|
1940
1947
|
}
|
|
1941
1948
|
@media (min-width: 638px) {
|
|
1942
|
-
._PuckLayout--
|
|
1949
|
+
._PuckLayout--leftSideBarVisible_cgc86_82 ._PuckLayout-header_cgc86_209 {
|
|
1943
1950
|
overflow: auto;
|
|
1944
1951
|
}
|
|
1945
1952
|
}
|
|
1946
|
-
.
|
|
1953
|
+
._PuckPluginTab_cgc86_223 {
|
|
1947
1954
|
display: none;
|
|
1948
1955
|
flex-grow: 1;
|
|
1949
1956
|
max-height: 100%;
|
|
1950
1957
|
}
|
|
1951
|
-
._PuckPluginTab--
|
|
1958
|
+
._PuckPluginTab--visible_cgc86_229 {
|
|
1952
1959
|
display: flex;
|
|
1953
1960
|
flex-direction: column;
|
|
1954
1961
|
}
|
|
1955
|
-
._PuckPluginTab-
|
|
1962
|
+
._PuckPluginTab-body_cgc86_234 {
|
|
1956
1963
|
flex-grow: 1;
|
|
1957
1964
|
max-height: 100%;
|
|
1958
1965
|
}
|
|
@@ -2304,7 +2311,7 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
2304
2311
|
}
|
|
2305
2312
|
|
|
2306
2313
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Canvas/styles.module.css/#css-module-data */
|
|
2307
|
-
.
|
|
2314
|
+
._PuckCanvas_t6s9b_1 {
|
|
2308
2315
|
background: var(--puck-color-grey-11);
|
|
2309
2316
|
display: flex;
|
|
2310
2317
|
grid-area: editor;
|
|
@@ -2314,24 +2321,24 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
2314
2321
|
overflow: auto;
|
|
2315
2322
|
}
|
|
2316
2323
|
@media (min-width: 1198px) {
|
|
2317
|
-
.
|
|
2324
|
+
._PuckCanvas_t6s9b_1 {
|
|
2318
2325
|
padding: calc(var(--puck-space-px) * 1.5);
|
|
2319
2326
|
padding-top: calc(var(--puck-space-px) * 0.5);
|
|
2320
2327
|
}
|
|
2321
|
-
.
|
|
2328
|
+
._PuckCanvas_t6s9b_1:not(._PuckCanvas_t6s9b_1:has(._PuckCanvas-controls_t6s9b_17)) {
|
|
2322
2329
|
padding-top: calc(var(--puck-space-px) * 1.5);
|
|
2323
2330
|
}
|
|
2324
2331
|
}
|
|
2325
|
-
._PuckCanvas--
|
|
2332
|
+
._PuckCanvas--fullScreen_t6s9b_22 {
|
|
2326
2333
|
padding: 0;
|
|
2327
2334
|
overflow: hidden;
|
|
2328
2335
|
}
|
|
2329
2336
|
@media (min-width: 1198px) {
|
|
2330
|
-
._PuckCanvas--
|
|
2337
|
+
._PuckCanvas--fullScreen_t6s9b_22 {
|
|
2331
2338
|
padding: 0;
|
|
2332
2339
|
}
|
|
2333
2340
|
}
|
|
2334
|
-
._PuckCanvas-
|
|
2341
|
+
._PuckCanvas-inner_t6s9b_33 {
|
|
2335
2342
|
display: flex;
|
|
2336
2343
|
height: 100%;
|
|
2337
2344
|
justify-content: center;
|
|
@@ -2339,7 +2346,7 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
2339
2346
|
position: relative;
|
|
2340
2347
|
width: 100%;
|
|
2341
2348
|
}
|
|
2342
|
-
._PuckCanvas-
|
|
2349
|
+
._PuckCanvas-root_t6s9b_42 {
|
|
2343
2350
|
background: white;
|
|
2344
2351
|
outline: 1px solid var(--puck-color-grey-09);
|
|
2345
2352
|
box-sizing: content-box;
|
|
@@ -2352,20 +2359,20 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
2352
2359
|
opacity: 0;
|
|
2353
2360
|
}
|
|
2354
2361
|
@media (min-width: 1198px) {
|
|
2355
|
-
._PuckCanvas-
|
|
2362
|
+
._PuckCanvas-root_t6s9b_42 {
|
|
2356
2363
|
min-width: unset;
|
|
2357
2364
|
}
|
|
2358
2365
|
}
|
|
2359
2366
|
@media (prefers-reduced-motion: reduce) {
|
|
2360
|
-
._PuckCanvas-
|
|
2367
|
+
._PuckCanvas-root_t6s9b_42 {
|
|
2361
2368
|
transition: none !important;
|
|
2362
2369
|
}
|
|
2363
2370
|
}
|
|
2364
|
-
._PuckCanvas--
|
|
2371
|
+
._PuckCanvas--ready_t6s9b_67 ._PuckCanvas-root_t6s9b_42 {
|
|
2365
2372
|
pointer-events: unset;
|
|
2366
2373
|
opacity: 1;
|
|
2367
2374
|
}
|
|
2368
|
-
._PuckCanvas-
|
|
2375
|
+
._PuckCanvas-loader_t6s9b_72 {
|
|
2369
2376
|
align-items: center;
|
|
2370
2377
|
color: var(--puck-color-grey-06);
|
|
2371
2378
|
display: flex;
|
|
@@ -2373,20 +2380,19 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
2373
2380
|
justify-content: center;
|
|
2374
2381
|
transition: opacity 250ms ease-out;
|
|
2375
2382
|
opacity: 0;
|
|
2376
|
-
pointer-events: none;
|
|
2377
2383
|
}
|
|
2378
|
-
._PuckCanvas--
|
|
2384
|
+
._PuckCanvas--showLoader_t6s9b_82 ._PuckCanvas-loader_t6s9b_72 {
|
|
2379
2385
|
opacity: 1;
|
|
2380
2386
|
}
|
|
2381
|
-
._PuckCanvas--
|
|
2387
|
+
._PuckCanvas--showLoader_t6s9b_82._PuckCanvas--ready_t6s9b_67 ._PuckCanvas-loader_t6s9b_72 {
|
|
2382
2388
|
opacity: 0;
|
|
2383
2389
|
height: 0;
|
|
2384
2390
|
transition: none;
|
|
2385
2391
|
}
|
|
2386
|
-
._PuckCanvas-
|
|
2392
|
+
._PuckCanvas-controls_t6s9b_17 {
|
|
2387
2393
|
padding-bottom: calc(var(--puck-space-px) * 0.5);
|
|
2388
2394
|
}
|
|
2389
|
-
._PuckCanvas--
|
|
2395
|
+
._PuckCanvas--fullScreen_t6s9b_22 ._PuckCanvas-controls_t6s9b_17 {
|
|
2390
2396
|
padding-bottom: 0;
|
|
2391
2397
|
z-index: 1;
|
|
2392
2398
|
}
|
package/dist/no-external.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { A as Adaptor, a as AppState, b as ArrayField, c as ArrayState, d as AsFieldProps, B as BaseData, e as BaseField, C as CacheOpts, f as ComponentConfig, g as ComponentConfigExtensions, h as ComponentConfigParams, i as ComponentData, j as ComponentDataMap, k as ComponentDataOptionalId, l as ComponentMetadata, m as Config, n as ConfigParams, o as Content, p as CustomField, q as CustomFieldRender, D as Data, r as DefaultComponentProps, s as DefaultComponents, t as DefaultRootFieldProps, u as DefaultRootProps, v as DefaultRootRenderProps, w as Direction, x as DragAxis, E as ExternalField, z as ExternalFieldWithAdaptor, F as ExtractConfigParams, G as ExtractField, H as Field, I as FieldMetadata, J as FieldProps, K as FieldRenderFunctions, L as FieldTransformFn, M as FieldTransformFnParams, N as FieldTransforms, O as Fields, P as History, Q as IframeConfig, R as InitialHistory, T as ItemWithId, U as MappedItem, V as Metadata, W as NumberField, X as ObjectField, Y as OnAction, Z as OverrideKey, _ as Overrides, $ as Permissions, a0 as Plugin, a3 as PuckAction, a4 as PuckComponent, a5 as PuckContext, a6 as PuckMetadata, a7 as RadioField, a8 as ResolveDataTrigger, a9 as RichText, aa as RichtextField, ab as RootConfig, ac as RootData, ad as RootDataWithProps, ae as RootDataWithoutProps, af as SelectField, ag as Slot, ah as SlotComponent, ai as SlotField, aj as TextField, ak as TextareaField, al as UiState, am as UserGenerics, an as Viewport, ao as Viewports, ap as WithChildren, aq as WithId, ar as WithPuckProps, as as WithSlotProps, at as overrideKeys } from './actions-Csn3gOP8.mjs';
|
|
2
2
|
export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, RichTextMenu, Separator, UsePuckData, blocksPlugin, createUsePuck, fieldsPlugin, legacySideBarPlugin, outlinePlugin, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck } from './index.mjs';
|
|
3
|
-
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-
|
|
3
|
+
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-BrW9VQ_t.mjs';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@tiptap/react';
|
|
6
6
|
import '@tiptap/extension-blockquote';
|
|
@@ -18,4 +18,4 @@ import '@tiptap/extension-strike';
|
|
|
18
18
|
import '@tiptap/extension-text-align';
|
|
19
19
|
import '@tiptap/extension-underline';
|
|
20
20
|
import 'react/jsx-runtime';
|
|
21
|
-
import './index-
|
|
21
|
+
import './index-ClzBCbx_.mjs';
|
package/dist/no-external.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { A as Adaptor, a as AppState, b as ArrayField, c as ArrayState, d as AsFieldProps, B as BaseData, e as BaseField, C as CacheOpts, f as ComponentConfig, g as ComponentConfigExtensions, h as ComponentConfigParams, i as ComponentData, j as ComponentDataMap, k as ComponentDataOptionalId, l as ComponentMetadata, m as Config, n as ConfigParams, o as Content, p as CustomField, q as CustomFieldRender, D as Data, r as DefaultComponentProps, s as DefaultComponents, t as DefaultRootFieldProps, u as DefaultRootProps, v as DefaultRootRenderProps, w as Direction, x as DragAxis, E as ExternalField, z as ExternalFieldWithAdaptor, F as ExtractConfigParams, G as ExtractField, H as Field, I as FieldMetadata, J as FieldProps, K as FieldRenderFunctions, L as FieldTransformFn, M as FieldTransformFnParams, N as FieldTransforms, O as Fields, P as History, Q as IframeConfig, R as InitialHistory, T as ItemWithId, U as MappedItem, V as Metadata, W as NumberField, X as ObjectField, Y as OnAction, Z as OverrideKey, _ as Overrides, $ as Permissions, a0 as Plugin, a3 as PuckAction, a4 as PuckComponent, a5 as PuckContext, a6 as PuckMetadata, a7 as RadioField, a8 as ResolveDataTrigger, a9 as RichText, aa as RichtextField, ab as RootConfig, ac as RootData, ad as RootDataWithProps, ae as RootDataWithoutProps, af as SelectField, ag as Slot, ah as SlotComponent, ai as SlotField, aj as TextField, ak as TextareaField, al as UiState, am as UserGenerics, an as Viewport, ao as Viewports, ap as WithChildren, aq as WithId, ar as WithPuckProps, as as WithSlotProps, at as overrideKeys } from './actions-Csn3gOP8.js';
|
|
2
2
|
export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, RichTextMenu, Separator, UsePuckData, blocksPlugin, createUsePuck, fieldsPlugin, legacySideBarPlugin, outlinePlugin, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck } from './index.js';
|
|
3
|
-
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-
|
|
3
|
+
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-CWrsBHHe.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@tiptap/react';
|
|
6
6
|
import '@tiptap/extension-blockquote';
|
|
@@ -18,4 +18,4 @@ import '@tiptap/extension-strike';
|
|
|
18
18
|
import '@tiptap/extension-text-align';
|
|
19
19
|
import '@tiptap/extension-underline';
|
|
20
20
|
import 'react/jsx-runtime';
|
|
21
|
-
import './index-
|
|
21
|
+
import './index-B1b1cFug.js';
|