@puckeditor/core 0.21.1 → 0.21.2-canary.20ba367f
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 -1
- package/dist/{Editor-NK3TZSR6.mjs → Editor-JHS34JLP.mjs} +9 -9
- package/dist/{actions-BkBoKAc5.d.mts → actions-C3e2nJ9v.d.mts} +2 -2
- package/dist/{actions-BkBoKAc5.d.ts → actions-C3e2nJ9v.d.ts} +2 -2
- package/dist/{chunk-5V242HXR.mjs → chunk-46RDHJGL.mjs} +7 -7
- package/dist/{chunk-PMXRXC2B.mjs → chunk-754HNMU2.mjs} +18 -11
- package/dist/{chunk-UMTU6EA7.mjs → chunk-AFOEZCNE.mjs} +19 -10
- package/dist/{chunk-MDUBGHWF.mjs → chunk-BOKX3EBR.mjs} +3 -12
- package/dist/{chunk-KOUWDQ4Q.mjs → chunk-BSAENBPL.mjs} +1 -1
- package/dist/{chunk-TNORMHZU.mjs → chunk-FOGDNETJ.mjs} +4 -4
- package/dist/{chunk-RHVK562Z.mjs → chunk-GYDP2UKB.mjs} +3 -3
- package/dist/{chunk-MSZPUXZP.mjs → chunk-JGZBBNEW.mjs} +1 -1
- package/dist/{chunk-EBISZQTK.mjs → chunk-O2C2U6RY.mjs} +5611 -5612
- package/dist/{chunk-SKJTJUWU.mjs → chunk-TVE6QYBR.mjs} +1 -1
- package/dist/{chunk-37HTE4KO.mjs → chunk-YLLE6KXH.mjs} +1 -1
- package/dist/{full-KLPRWVS4.mjs → full-ATSD2DNB.mjs} +8 -8
- package/dist/{index-bqD1SEOb.d.mts → index-CMP1bTUS.d.mts} +1 -1
- package/dist/{index-lt1zf5WR.d.ts → index-DnAz_ZaB.d.ts} +1 -1
- package/dist/index.css +82 -82
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +5281 -5272
- package/dist/index.mjs +17 -12
- package/dist/internal.d.mts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +16 -11
- package/dist/internal.mjs +2 -2
- package/dist/{loaded-SJJ63OY2.mjs → loaded-2765LE3N.mjs} +5 -5
- package/dist/{loaded-362ACKSQ.mjs → loaded-ANEJLSYJ.mjs} +5 -5
- package/dist/{loaded-DIHUQBWF.mjs → loaded-BKAMJ2FS.mjs} +5 -5
- package/dist/no-external.css +225 -229
- package/dist/no-external.d.mts +3 -3
- package/dist/no-external.d.ts +3 -3
- package/dist/no-external.js +5278 -5272
- package/dist/no-external.mjs +11 -11
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +8 -11
- package/dist/rsc.mjs +3 -3
- package/dist/{walk-tree-CRRDqx6_.d.mts → walk-tree-BJoNgZ0l.d.mts} +1 -1
- package/dist/{walk-tree-CS7sEpfG.d.ts → walk-tree-f8Yzs5o3.d.ts} +1 -1
- package/package.json +1 -1
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-O2C2U6RY.mjs";
|
|
21
|
+
import "./chunk-GYDP2UKB.mjs";
|
|
22
22
|
import {
|
|
23
23
|
migrate,
|
|
24
24
|
resolveAllData,
|
|
25
25
|
transformProps
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-FOGDNETJ.mjs";
|
|
27
27
|
import "./chunk-AOEDIUVK.mjs";
|
|
28
28
|
import {
|
|
29
29
|
Action,
|
|
@@ -33,18 +33,23 @@ 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-46RDHJGL.mjs";
|
|
37
|
+
import "./chunk-JGZBBNEW.mjs";
|
|
38
|
+
import "./chunk-BSAENBPL.mjs";
|
|
39
|
+
import "./chunk-TVE6QYBR.mjs";
|
|
40
|
+
import "./chunk-AFOEZCNE.mjs";
|
|
41
|
+
import "./chunk-YLLE6KXH.mjs";
|
|
42
|
+
import "./chunk-BOKX3EBR.mjs";
|
|
43
43
|
import "./chunk-Y2EFNT5P.mjs";
|
|
44
44
|
import {
|
|
45
45
|
walkTree
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import
|
|
46
|
+
} from "./chunk-754HNMU2.mjs";
|
|
47
|
+
import {
|
|
48
|
+
init_react_import
|
|
49
|
+
} from "./chunk-M6W7YEVX.mjs";
|
|
50
|
+
|
|
51
|
+
// bundle/index.ts
|
|
52
|
+
init_react_import();
|
|
48
53
|
export {
|
|
49
54
|
Action,
|
|
50
55
|
ActionBar,
|
package/dist/internal.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Reducer } from 'react';
|
|
2
|
-
import { D as Data, A as AppState, O as OnAction, P as PrivateAppState, a as PuckAction } from './actions-
|
|
3
|
-
import { A as AppStore } from './index-
|
|
2
|
+
import { D as Data, A as AppState, O as OnAction, P as PrivateAppState, a as PuckAction } from './actions-C3e2nJ9v.mjs';
|
|
3
|
+
import { A as AppStore } from './index-CMP1bTUS.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, A as AppState, O as OnAction, P as PrivateAppState, a as PuckAction } from './actions-
|
|
3
|
-
import { A as AppStore } from './index-
|
|
2
|
+
import { D as Data, A as AppState, O as OnAction, P as PrivateAppState, a as PuckAction } from './actions-C3e2nJ9v.js';
|
|
3
|
+
import { A as AppStore } from './index-DnAz_ZaB.js';
|
|
4
4
|
import '@tiptap/react';
|
|
5
5
|
import '@tiptap/extension-blockquote';
|
|
6
6
|
import '@tiptap/extension-bold';
|
package/dist/internal.js
CHANGED
|
@@ -269,6 +269,14 @@ var flattenNode = (node, config) => {
|
|
|
269
269
|
});
|
|
270
270
|
};
|
|
271
271
|
|
|
272
|
+
// lib/data/to-component.ts
|
|
273
|
+
var toComponent = (item) => {
|
|
274
|
+
return "type" in item ? item : __spreadProps(__spreadValues({}, item), {
|
|
275
|
+
props: __spreadProps(__spreadValues({}, item.props), { id: "root" }),
|
|
276
|
+
type: "root"
|
|
277
|
+
});
|
|
278
|
+
};
|
|
279
|
+
|
|
272
280
|
// lib/data/walk-app-state.ts
|
|
273
281
|
function walkAppState(state, config, mapContent = (content) => content, mapNodeOrSkip = (item) => item) {
|
|
274
282
|
var _a;
|
|
@@ -332,7 +340,7 @@ function walkAppState(state, config, mapContent = (content) => content, mapNodeO
|
|
|
332
340
|
id
|
|
333
341
|
});
|
|
334
342
|
processRelatedZones(item, id, path);
|
|
335
|
-
const newItem = __spreadProps(__spreadValues({},
|
|
343
|
+
const newItem = __spreadProps(__spreadValues({}, mappedItem), { props: newProps });
|
|
336
344
|
const thisZoneCompound = path[path.length - 1];
|
|
337
345
|
const [parentId, zone] = thisZoneCompound ? thisZoneCompound.split(":") : [null, ""];
|
|
338
346
|
newNodeIndex[id] = {
|
|
@@ -372,17 +380,14 @@ function walkAppState(state, config, mapContent = (content) => content, mapNodeO
|
|
|
372
380
|
);
|
|
373
381
|
newZones[zoneCompound] = newContent2;
|
|
374
382
|
}, newZones);
|
|
375
|
-
|
|
376
|
-
{
|
|
377
|
-
type: "root",
|
|
378
|
-
props: __spreadProps(__spreadValues({}, (_a = state.data.root.props) != null ? _a : state.data.root), { id: "root" })
|
|
379
|
-
},
|
|
380
|
-
[],
|
|
381
|
-
-1
|
|
382
|
-
);
|
|
383
|
-
const root = __spreadProps(__spreadValues({}, state.data.root), {
|
|
384
|
-
props: processedRoot.props
|
|
383
|
+
let rootAsComponent = toComponent({
|
|
384
|
+
props: __spreadValues({}, (_a = state.data.root.props) != null ? _a : state.data.root)
|
|
385
385
|
});
|
|
386
|
+
if (state.data.root.readOnly) {
|
|
387
|
+
rootAsComponent.readOnly = state.data.root.readOnly;
|
|
388
|
+
}
|
|
389
|
+
const processedRoot = processItem(rootAsComponent, [], -1);
|
|
390
|
+
const root = __spreadValues(__spreadValues({}, state.data.root), processedRoot);
|
|
386
391
|
return __spreadProps(__spreadValues({}, state), {
|
|
387
392
|
data: {
|
|
388
393
|
root,
|
package/dist/internal.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useListOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TVE6QYBR.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-AFOEZCNE.mjs";
|
|
9
|
+
import "./chunk-YLLE6KXH.mjs";
|
|
10
|
+
import "./chunk-BOKX3EBR.mjs";
|
|
11
11
|
import "./chunk-Y2EFNT5P.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-754HNMU2.mjs";
|
|
13
13
|
import {
|
|
14
14
|
init_react_import
|
|
15
15
|
} from "./chunk-M6W7YEVX.mjs";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAlignOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JGZBBNEW.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-AFOEZCNE.mjs";
|
|
9
|
+
import "./chunk-YLLE6KXH.mjs";
|
|
10
|
+
import "./chunk-BOKX3EBR.mjs";
|
|
11
11
|
import "./chunk-Y2EFNT5P.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-754HNMU2.mjs";
|
|
13
13
|
import {
|
|
14
14
|
init_react_import
|
|
15
15
|
} from "./chunk-M6W7YEVX.mjs";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useHeadingOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BSAENBPL.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-AFOEZCNE.mjs";
|
|
9
|
+
import "./chunk-YLLE6KXH.mjs";
|
|
10
|
+
import "./chunk-BOKX3EBR.mjs";
|
|
11
11
|
import "./chunk-Y2EFNT5P.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-754HNMU2.mjs";
|
|
13
13
|
import {
|
|
14
14
|
init_react_import
|
|
15
15
|
} from "./chunk-M6W7YEVX.mjs";
|
package/dist/no-external.css
CHANGED
|
@@ -1,4 +1,146 @@
|
|
|
1
|
-
|
|
1
|
+
/* styles/color.css */
|
|
2
|
+
:root {
|
|
3
|
+
--puck-color-rose-01: #4a001c;
|
|
4
|
+
--puck-color-rose-02: #670833;
|
|
5
|
+
--puck-color-rose-03: #87114c;
|
|
6
|
+
--puck-color-rose-04: #a81a66;
|
|
7
|
+
--puck-color-rose-05: #bc5089;
|
|
8
|
+
--puck-color-rose-06: #cc7ca5;
|
|
9
|
+
--puck-color-rose-07: #d89aba;
|
|
10
|
+
--puck-color-rose-08: #e3b8cf;
|
|
11
|
+
--puck-color-rose-09: #efd6e3;
|
|
12
|
+
--puck-color-rose-10: #f6eaf1;
|
|
13
|
+
--puck-color-rose-11: #faf4f8;
|
|
14
|
+
--puck-color-rose-12: #fef8fc;
|
|
15
|
+
--puck-color-azure-01: #00175d;
|
|
16
|
+
--puck-color-azure-02: #002c77;
|
|
17
|
+
--puck-color-azure-03: #014292;
|
|
18
|
+
--puck-color-azure-04: #0158ad;
|
|
19
|
+
--puck-color-azure-05: #3479be;
|
|
20
|
+
--puck-color-azure-06: #6499cf;
|
|
21
|
+
--puck-color-azure-07: #88b0da;
|
|
22
|
+
--puck-color-azure-08: #abc7e5;
|
|
23
|
+
--puck-color-azure-09: #cfdff0;
|
|
24
|
+
--puck-color-azure-10: #e7eef7;
|
|
25
|
+
--puck-color-azure-11: #f3f6fb;
|
|
26
|
+
--puck-color-azure-12: #f7faff;
|
|
27
|
+
--puck-color-green-01: #002000;
|
|
28
|
+
--puck-color-green-02: #043604;
|
|
29
|
+
--puck-color-green-03: #084e08;
|
|
30
|
+
--puck-color-green-04: #0c680c;
|
|
31
|
+
--puck-color-green-05: #1d882f;
|
|
32
|
+
--puck-color-green-06: #2faa53;
|
|
33
|
+
--puck-color-green-07: #56c16f;
|
|
34
|
+
--puck-color-green-08: #7dd78b;
|
|
35
|
+
--puck-color-green-09: #b8e8bf;
|
|
36
|
+
--puck-color-green-10: #ddf3e0;
|
|
37
|
+
--puck-color-green-11: #eff8f0;
|
|
38
|
+
--puck-color-green-12: #f3fcf4;
|
|
39
|
+
--puck-color-yellow-01: #211000;
|
|
40
|
+
--puck-color-yellow-02: #362700;
|
|
41
|
+
--puck-color-yellow-03: #4c4000;
|
|
42
|
+
--puck-color-yellow-04: #645a00;
|
|
43
|
+
--puck-color-yellow-05: #877614;
|
|
44
|
+
--puck-color-yellow-06: #ab9429;
|
|
45
|
+
--puck-color-yellow-07: #bfac4e;
|
|
46
|
+
--puck-color-yellow-08: #d4c474;
|
|
47
|
+
--puck-color-yellow-09: #e6deb1;
|
|
48
|
+
--puck-color-yellow-10: #f3efd9;
|
|
49
|
+
--puck-color-yellow-11: #f9f7ed;
|
|
50
|
+
--puck-color-yellow-12: #fcfaf0;
|
|
51
|
+
--puck-color-red-01: #4c0000;
|
|
52
|
+
--puck-color-red-02: #6a0a10;
|
|
53
|
+
--puck-color-red-03: #8a1422;
|
|
54
|
+
--puck-color-red-04: #ac1f35;
|
|
55
|
+
--puck-color-red-05: #bf5366;
|
|
56
|
+
--puck-color-red-06: #ce7e8e;
|
|
57
|
+
--puck-color-red-07: #d99ca8;
|
|
58
|
+
--puck-color-red-08: #e4b9c2;
|
|
59
|
+
--puck-color-red-09: #efd7db;
|
|
60
|
+
--puck-color-red-10: #f6eaec;
|
|
61
|
+
--puck-color-red-11: #faf4f5;
|
|
62
|
+
--puck-color-red-12: #fff9fa;
|
|
63
|
+
--puck-color-grey-01: #181818;
|
|
64
|
+
--puck-color-grey-02: #292929;
|
|
65
|
+
--puck-color-grey-03: #404040;
|
|
66
|
+
--puck-color-grey-04: #5a5a5a;
|
|
67
|
+
--puck-color-grey-05: #767676;
|
|
68
|
+
--puck-color-grey-06: #949494;
|
|
69
|
+
--puck-color-grey-07: #ababab;
|
|
70
|
+
--puck-color-grey-08: #c3c3c3;
|
|
71
|
+
--puck-color-grey-09: #dcdcdc;
|
|
72
|
+
--puck-color-grey-10: #efefef;
|
|
73
|
+
--puck-color-grey-11: #f5f5f5;
|
|
74
|
+
--puck-color-grey-12: #fafafa;
|
|
75
|
+
--puck-color-black: #000000;
|
|
76
|
+
--puck-color-white: #ffffff;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* styles/typography.css */
|
|
80
|
+
:root {
|
|
81
|
+
--puck-font-size-scale-base-unitless: 12;
|
|
82
|
+
--puck-font-size-xxxs-unitless: 12;
|
|
83
|
+
--puck-font-size-xxs-unitless: 14;
|
|
84
|
+
--puck-font-size-xs-unitless: 16;
|
|
85
|
+
--puck-font-size-s-unitless: 18;
|
|
86
|
+
--puck-font-size-m-unitless: 21;
|
|
87
|
+
--puck-font-size-l-unitless: 24;
|
|
88
|
+
--puck-font-size-xl-unitless: 28;
|
|
89
|
+
--puck-font-size-xxl-unitless: 36;
|
|
90
|
+
--puck-font-size-xxxl-unitless: 48;
|
|
91
|
+
--puck-font-size-xxxxl-unitless: 56;
|
|
92
|
+
--puck-font-size-xxxs: calc(1rem * var(--puck-font-size-xxxs-unitless) / 16);
|
|
93
|
+
--puck-font-size-xxs: calc(1rem * var(--puck-font-size-xxs-unitless) / 16);
|
|
94
|
+
--puck-font-size-xs: calc(1rem * var(--puck-font-size-xs-unitless) / 16);
|
|
95
|
+
--puck-font-size-s: calc(1rem * var(--puck-font-size-s-unitless) / 16);
|
|
96
|
+
--puck-font-size-m: calc(1rem * var(--puck-font-size-m-unitless) / 16);
|
|
97
|
+
--puck-font-size-l: calc(1rem * var(--puck-font-size-l-unitless) / 16);
|
|
98
|
+
--puck-font-size-xl: calc(1rem * var(--puck-font-size-xl-unitless) / 16);
|
|
99
|
+
--puck-font-size-xxl: calc(1rem * var(--puck-font-size-xxl-unitless) / 16);
|
|
100
|
+
--puck-font-size-xxxl: calc(1rem * var(--puck-font-size-xxxl-unitless) / 16);
|
|
101
|
+
--puck-font-size-xxxxl: calc( 1rem * var(--puck-font-size-xxxxl-unitless) / 16 );
|
|
102
|
+
--puck-font-size-base: var(--puck-font-size-xs);
|
|
103
|
+
--line-height-reset: 1;
|
|
104
|
+
--line-height-xs: calc( var(--space-m-unitless) / var(--puck-font-size-m-unitless) );
|
|
105
|
+
--line-height-s: calc( var(--space-m-unitless) / var(--puck-font-size-s-unitless) );
|
|
106
|
+
--line-height-m: calc( var(--space-m-unitless) / var(--puck-font-size-xs-unitless) );
|
|
107
|
+
--line-height-l: calc( var(--space-m-unitless) / var(--puck-font-size-xxs-unitless) );
|
|
108
|
+
--line-height-xl: calc( var(--space-m-unitless) / var(--puck-font-size-scale-base-unitless) );
|
|
109
|
+
--line-height-base: var(--line-height-m);
|
|
110
|
+
--fallback-font-stack:
|
|
111
|
+
-apple-system,
|
|
112
|
+
BlinkMacSystemFont,
|
|
113
|
+
Segoe UI,
|
|
114
|
+
Helvetica Neue,
|
|
115
|
+
sans-serif,
|
|
116
|
+
Apple Color Emoji,
|
|
117
|
+
Segoe UI Emoji,
|
|
118
|
+
Segoe UI Symbol;
|
|
119
|
+
--puck-font-family: Inter, var(--fallback-font-stack);
|
|
120
|
+
--puck-font-family-monospaced:
|
|
121
|
+
ui-monospace,
|
|
122
|
+
"Cascadia Code",
|
|
123
|
+
"Source Code Pro",
|
|
124
|
+
Menlo,
|
|
125
|
+
Consolas,
|
|
126
|
+
"DejaVu Sans Mono",
|
|
127
|
+
monospace;
|
|
128
|
+
}
|
|
129
|
+
@supports (font-variation-settings: normal) {
|
|
130
|
+
:root {
|
|
131
|
+
--puck-font-family: InterVariable, var(--fallback-font-stack);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* bundle/core.css */
|
|
136
|
+
#frame-root {
|
|
137
|
+
height: 1px;
|
|
138
|
+
min-height: 100vh;
|
|
139
|
+
}
|
|
140
|
+
[data-puck-entry] {
|
|
141
|
+
position: relative;
|
|
142
|
+
z-index: 0;
|
|
143
|
+
}
|
|
2
144
|
|
|
3
145
|
/* bundle/no-external.css */
|
|
4
146
|
|
|
@@ -511,152 +653,6 @@ textarea._Input-input_bsxfo_26 {
|
|
|
511
653
|
transition: none !important;
|
|
512
654
|
}
|
|
513
655
|
|
|
514
|
-
/* styles/color.css */
|
|
515
|
-
:root {
|
|
516
|
-
--puck-color-rose-01: #4a001c;
|
|
517
|
-
--puck-color-rose-02: #670833;
|
|
518
|
-
--puck-color-rose-03: #87114c;
|
|
519
|
-
--puck-color-rose-04: #a81a66;
|
|
520
|
-
--puck-color-rose-05: #bc5089;
|
|
521
|
-
--puck-color-rose-06: #cc7ca5;
|
|
522
|
-
--puck-color-rose-07: #d89aba;
|
|
523
|
-
--puck-color-rose-08: #e3b8cf;
|
|
524
|
-
--puck-color-rose-09: #efd6e3;
|
|
525
|
-
--puck-color-rose-10: #f6eaf1;
|
|
526
|
-
--puck-color-rose-11: #faf4f8;
|
|
527
|
-
--puck-color-rose-12: #fef8fc;
|
|
528
|
-
--puck-color-azure-01: #00175d;
|
|
529
|
-
--puck-color-azure-02: #002c77;
|
|
530
|
-
--puck-color-azure-03: #014292;
|
|
531
|
-
--puck-color-azure-04: #0158ad;
|
|
532
|
-
--puck-color-azure-05: #3479be;
|
|
533
|
-
--puck-color-azure-06: #6499cf;
|
|
534
|
-
--puck-color-azure-07: #88b0da;
|
|
535
|
-
--puck-color-azure-08: #abc7e5;
|
|
536
|
-
--puck-color-azure-09: #cfdff0;
|
|
537
|
-
--puck-color-azure-10: #e7eef7;
|
|
538
|
-
--puck-color-azure-11: #f3f6fb;
|
|
539
|
-
--puck-color-azure-12: #f7faff;
|
|
540
|
-
--puck-color-green-01: #002000;
|
|
541
|
-
--puck-color-green-02: #043604;
|
|
542
|
-
--puck-color-green-03: #084e08;
|
|
543
|
-
--puck-color-green-04: #0c680c;
|
|
544
|
-
--puck-color-green-05: #1d882f;
|
|
545
|
-
--puck-color-green-06: #2faa53;
|
|
546
|
-
--puck-color-green-07: #56c16f;
|
|
547
|
-
--puck-color-green-08: #7dd78b;
|
|
548
|
-
--puck-color-green-09: #b8e8bf;
|
|
549
|
-
--puck-color-green-10: #ddf3e0;
|
|
550
|
-
--puck-color-green-11: #eff8f0;
|
|
551
|
-
--puck-color-green-12: #f3fcf4;
|
|
552
|
-
--puck-color-yellow-01: #211000;
|
|
553
|
-
--puck-color-yellow-02: #362700;
|
|
554
|
-
--puck-color-yellow-03: #4c4000;
|
|
555
|
-
--puck-color-yellow-04: #645a00;
|
|
556
|
-
--puck-color-yellow-05: #877614;
|
|
557
|
-
--puck-color-yellow-06: #ab9429;
|
|
558
|
-
--puck-color-yellow-07: #bfac4e;
|
|
559
|
-
--puck-color-yellow-08: #d4c474;
|
|
560
|
-
--puck-color-yellow-09: #e6deb1;
|
|
561
|
-
--puck-color-yellow-10: #f3efd9;
|
|
562
|
-
--puck-color-yellow-11: #f9f7ed;
|
|
563
|
-
--puck-color-yellow-12: #fcfaf0;
|
|
564
|
-
--puck-color-red-01: #4c0000;
|
|
565
|
-
--puck-color-red-02: #6a0a10;
|
|
566
|
-
--puck-color-red-03: #8a1422;
|
|
567
|
-
--puck-color-red-04: #ac1f35;
|
|
568
|
-
--puck-color-red-05: #bf5366;
|
|
569
|
-
--puck-color-red-06: #ce7e8e;
|
|
570
|
-
--puck-color-red-07: #d99ca8;
|
|
571
|
-
--puck-color-red-08: #e4b9c2;
|
|
572
|
-
--puck-color-red-09: #efd7db;
|
|
573
|
-
--puck-color-red-10: #f6eaec;
|
|
574
|
-
--puck-color-red-11: #faf4f5;
|
|
575
|
-
--puck-color-red-12: #fff9fa;
|
|
576
|
-
--puck-color-grey-01: #181818;
|
|
577
|
-
--puck-color-grey-02: #292929;
|
|
578
|
-
--puck-color-grey-03: #404040;
|
|
579
|
-
--puck-color-grey-04: #5a5a5a;
|
|
580
|
-
--puck-color-grey-05: #767676;
|
|
581
|
-
--puck-color-grey-06: #949494;
|
|
582
|
-
--puck-color-grey-07: #ababab;
|
|
583
|
-
--puck-color-grey-08: #c3c3c3;
|
|
584
|
-
--puck-color-grey-09: #dcdcdc;
|
|
585
|
-
--puck-color-grey-10: #efefef;
|
|
586
|
-
--puck-color-grey-11: #f5f5f5;
|
|
587
|
-
--puck-color-grey-12: #fafafa;
|
|
588
|
-
--puck-color-black: #000000;
|
|
589
|
-
--puck-color-white: #ffffff;
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
/* styles/typography.css */
|
|
593
|
-
:root {
|
|
594
|
-
--puck-font-size-scale-base-unitless: 12;
|
|
595
|
-
--puck-font-size-xxxs-unitless: 12;
|
|
596
|
-
--puck-font-size-xxs-unitless: 14;
|
|
597
|
-
--puck-font-size-xs-unitless: 16;
|
|
598
|
-
--puck-font-size-s-unitless: 18;
|
|
599
|
-
--puck-font-size-m-unitless: 21;
|
|
600
|
-
--puck-font-size-l-unitless: 24;
|
|
601
|
-
--puck-font-size-xl-unitless: 28;
|
|
602
|
-
--puck-font-size-xxl-unitless: 36;
|
|
603
|
-
--puck-font-size-xxxl-unitless: 48;
|
|
604
|
-
--puck-font-size-xxxxl-unitless: 56;
|
|
605
|
-
--puck-font-size-xxxs: calc(1rem * var(--puck-font-size-xxxs-unitless) / 16);
|
|
606
|
-
--puck-font-size-xxs: calc(1rem * var(--puck-font-size-xxs-unitless) / 16);
|
|
607
|
-
--puck-font-size-xs: calc(1rem * var(--puck-font-size-xs-unitless) / 16);
|
|
608
|
-
--puck-font-size-s: calc(1rem * var(--puck-font-size-s-unitless) / 16);
|
|
609
|
-
--puck-font-size-m: calc(1rem * var(--puck-font-size-m-unitless) / 16);
|
|
610
|
-
--puck-font-size-l: calc(1rem * var(--puck-font-size-l-unitless) / 16);
|
|
611
|
-
--puck-font-size-xl: calc(1rem * var(--puck-font-size-xl-unitless) / 16);
|
|
612
|
-
--puck-font-size-xxl: calc(1rem * var(--puck-font-size-xxl-unitless) / 16);
|
|
613
|
-
--puck-font-size-xxxl: calc(1rem * var(--puck-font-size-xxxl-unitless) / 16);
|
|
614
|
-
--puck-font-size-xxxxl: calc( 1rem * var(--puck-font-size-xxxxl-unitless) / 16 );
|
|
615
|
-
--puck-font-size-base: var(--puck-font-size-xs);
|
|
616
|
-
--line-height-reset: 1;
|
|
617
|
-
--line-height-xs: calc( var(--space-m-unitless) / var(--puck-font-size-m-unitless) );
|
|
618
|
-
--line-height-s: calc( var(--space-m-unitless) / var(--puck-font-size-s-unitless) );
|
|
619
|
-
--line-height-m: calc( var(--space-m-unitless) / var(--puck-font-size-xs-unitless) );
|
|
620
|
-
--line-height-l: calc( var(--space-m-unitless) / var(--puck-font-size-xxs-unitless) );
|
|
621
|
-
--line-height-xl: calc( var(--space-m-unitless) / var(--puck-font-size-scale-base-unitless) );
|
|
622
|
-
--line-height-base: var(--line-height-m);
|
|
623
|
-
--fallback-font-stack:
|
|
624
|
-
-apple-system,
|
|
625
|
-
BlinkMacSystemFont,
|
|
626
|
-
Segoe UI,
|
|
627
|
-
Helvetica Neue,
|
|
628
|
-
sans-serif,
|
|
629
|
-
Apple Color Emoji,
|
|
630
|
-
Segoe UI Emoji,
|
|
631
|
-
Segoe UI Symbol;
|
|
632
|
-
--puck-font-family: Inter, var(--fallback-font-stack);
|
|
633
|
-
--puck-font-family-monospaced:
|
|
634
|
-
ui-monospace,
|
|
635
|
-
"Cascadia Code",
|
|
636
|
-
"Source Code Pro",
|
|
637
|
-
Menlo,
|
|
638
|
-
Consolas,
|
|
639
|
-
"DejaVu Sans Mono",
|
|
640
|
-
monospace;
|
|
641
|
-
}
|
|
642
|
-
@supports (font-variation-settings: normal) {
|
|
643
|
-
:root {
|
|
644
|
-
--puck-font-family: InterVariable, var(--fallback-font-stack);
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
/* bundle/core.css */
|
|
649
|
-
#frame-root {
|
|
650
|
-
height: 1px;
|
|
651
|
-
min-height: 100vh;
|
|
652
|
-
}
|
|
653
|
-
[data-puck-entry] {
|
|
654
|
-
position: relative;
|
|
655
|
-
z-index: 0;
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
/* bundle/index.css */
|
|
659
|
-
|
|
660
656
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/ExternalInput/styles.module.css/#css-module-data */
|
|
661
657
|
._ExternalInput-actions_91ls0_1 {
|
|
662
658
|
display: flex;
|
|
@@ -1525,88 +1521,6 @@ textarea._Input-input_bsxfo_26 {
|
|
|
1525
1521
|
outline-offset: -2px !important;
|
|
1526
1522
|
}
|
|
1527
1523
|
|
|
1528
|
-
/* css-module:/home/runner/work/puck/puck/packages/core/components/DropZone/styles.module.css/#css-module-data */
|
|
1529
|
-
._DropZone_1i2sv_1 {
|
|
1530
|
-
--resize-animation-ms: 150ms;
|
|
1531
|
-
position: relative;
|
|
1532
|
-
height: 100%;
|
|
1533
|
-
min-height: var(--min-empty-height);
|
|
1534
|
-
outline-offset: -2px;
|
|
1535
|
-
width: 100%;
|
|
1536
|
-
}
|
|
1537
|
-
._DropZone--hasChildren_1i2sv_11 {
|
|
1538
|
-
min-height: 0;
|
|
1539
|
-
}
|
|
1540
|
-
._DropZone_1i2sv_1:empty {
|
|
1541
|
-
min-height: var(--min-empty-height);
|
|
1542
|
-
}
|
|
1543
|
-
[data-puck-entry]:not([data-puck-dragging]) ._DropZone_1i2sv_1 {
|
|
1544
|
-
transition: min-height var(--resize-animation-ms) ease-in;
|
|
1545
|
-
}
|
|
1546
|
-
._DropZone--isAreaSelected_1i2sv_24,
|
|
1547
|
-
._DropZone--hoveringOverArea_1i2sv_25:not(._DropZone--isRootZone_1i2sv_25) {
|
|
1548
|
-
background: color-mix(in srgb, var(--puck-color-azure-09) 30%, transparent);
|
|
1549
|
-
outline: 2px dashed var(--puck-color-azure-08);
|
|
1550
|
-
}
|
|
1551
|
-
._DropZone_1i2sv_1:empty {
|
|
1552
|
-
background: color-mix(in srgb, var(--puck-color-azure-09) 30%, transparent);
|
|
1553
|
-
outline: 2px dashed var(--puck-color-azure-08);
|
|
1554
|
-
}
|
|
1555
|
-
._DropZone--isDestination_1i2sv_35 {
|
|
1556
|
-
outline: 2px dashed var(--puck-color-azure-04) !important;
|
|
1557
|
-
}
|
|
1558
|
-
._DropZone--isDestination_1i2sv_35:not(._DropZone--isRootZone_1i2sv_25) {
|
|
1559
|
-
background: color-mix(in srgb, var(--puck-color-azure-09) 30%, transparent) !important;
|
|
1560
|
-
}
|
|
1561
|
-
._DropZone-item_1i2sv_47 {
|
|
1562
|
-
position: relative;
|
|
1563
|
-
}
|
|
1564
|
-
._DropZone-hitbox_1i2sv_51 {
|
|
1565
|
-
position: absolute;
|
|
1566
|
-
bottom: -12px;
|
|
1567
|
-
height: 24px;
|
|
1568
|
-
width: 100%;
|
|
1569
|
-
z-index: 1;
|
|
1570
|
-
}
|
|
1571
|
-
[data-puck-dragging] ._DropZone--isEnabled_1i2sv_59 {
|
|
1572
|
-
outline: 2px dashed var(--puck-color-azure-06);
|
|
1573
|
-
}
|
|
1574
|
-
._DropZone_1i2sv_1 > *:not([data-puck-component]) {
|
|
1575
|
-
opacity: 0;
|
|
1576
|
-
}
|
|
1577
|
-
body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
1578
|
-
opacity: 0 !important;
|
|
1579
|
-
}
|
|
1580
|
-
|
|
1581
|
-
/* lib/overlay-portal/styles.css */
|
|
1582
|
-
[data-puck-overlay-portal],
|
|
1583
|
-
[data-puck-overlay-portal] * {
|
|
1584
|
-
pointer-events: auto !important;
|
|
1585
|
-
}
|
|
1586
|
-
[data-puck-overlay-portal]:hover {
|
|
1587
|
-
outline: 2px var(--puck-color-azure-09) dashed;
|
|
1588
|
-
outline-offset: 2px;
|
|
1589
|
-
}
|
|
1590
|
-
[data-puck-overlay-portal]:focus-within {
|
|
1591
|
-
outline: 2px var(--puck-color-azure-07) dashed;
|
|
1592
|
-
outline-offset: 2px;
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
/* css-module:/home/runner/work/puck/puck/packages/core/components/InlineTextField/styles.module.css/#css-module-data */
|
|
1596
|
-
._InlineTextField_104qp_1 {
|
|
1597
|
-
cursor: text;
|
|
1598
|
-
display: inline-block;
|
|
1599
|
-
white-space: pre-wrap;
|
|
1600
|
-
text-decoration: inherit;
|
|
1601
|
-
}
|
|
1602
|
-
[data-dnd-dragging] ._InlineTextField_104qp_1 {
|
|
1603
|
-
cursor: none;
|
|
1604
|
-
caret-color: transparent;
|
|
1605
|
-
}
|
|
1606
|
-
[data-dnd-dragging] ._InlineTextField_104qp_1::selection {
|
|
1607
|
-
display: none;
|
|
1608
|
-
}
|
|
1609
|
-
|
|
1610
1524
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Fields/styles.module.css/#css-module-data */
|
|
1611
1525
|
._PuckFields_10bh7_1 {
|
|
1612
1526
|
position: relative;
|
|
@@ -2632,3 +2546,85 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
2632
2546
|
padding: 16px;
|
|
2633
2547
|
}
|
|
2634
2548
|
}
|
|
2549
|
+
|
|
2550
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/DropZone/styles.module.css/#css-module-data */
|
|
2551
|
+
._DropZone_1i2sv_1 {
|
|
2552
|
+
--resize-animation-ms: 150ms;
|
|
2553
|
+
position: relative;
|
|
2554
|
+
height: 100%;
|
|
2555
|
+
min-height: var(--min-empty-height);
|
|
2556
|
+
outline-offset: -2px;
|
|
2557
|
+
width: 100%;
|
|
2558
|
+
}
|
|
2559
|
+
._DropZone--hasChildren_1i2sv_11 {
|
|
2560
|
+
min-height: 0;
|
|
2561
|
+
}
|
|
2562
|
+
._DropZone_1i2sv_1:empty {
|
|
2563
|
+
min-height: var(--min-empty-height);
|
|
2564
|
+
}
|
|
2565
|
+
[data-puck-entry]:not([data-puck-dragging]) ._DropZone_1i2sv_1 {
|
|
2566
|
+
transition: min-height var(--resize-animation-ms) ease-in;
|
|
2567
|
+
}
|
|
2568
|
+
._DropZone--isAreaSelected_1i2sv_24,
|
|
2569
|
+
._DropZone--hoveringOverArea_1i2sv_25:not(._DropZone--isRootZone_1i2sv_25) {
|
|
2570
|
+
background: color-mix(in srgb, var(--puck-color-azure-09) 30%, transparent);
|
|
2571
|
+
outline: 2px dashed var(--puck-color-azure-08);
|
|
2572
|
+
}
|
|
2573
|
+
._DropZone_1i2sv_1:empty {
|
|
2574
|
+
background: color-mix(in srgb, var(--puck-color-azure-09) 30%, transparent);
|
|
2575
|
+
outline: 2px dashed var(--puck-color-azure-08);
|
|
2576
|
+
}
|
|
2577
|
+
._DropZone--isDestination_1i2sv_35 {
|
|
2578
|
+
outline: 2px dashed var(--puck-color-azure-04) !important;
|
|
2579
|
+
}
|
|
2580
|
+
._DropZone--isDestination_1i2sv_35:not(._DropZone--isRootZone_1i2sv_25) {
|
|
2581
|
+
background: color-mix(in srgb, var(--puck-color-azure-09) 30%, transparent) !important;
|
|
2582
|
+
}
|
|
2583
|
+
._DropZone-item_1i2sv_47 {
|
|
2584
|
+
position: relative;
|
|
2585
|
+
}
|
|
2586
|
+
._DropZone-hitbox_1i2sv_51 {
|
|
2587
|
+
position: absolute;
|
|
2588
|
+
bottom: -12px;
|
|
2589
|
+
height: 24px;
|
|
2590
|
+
width: 100%;
|
|
2591
|
+
z-index: 1;
|
|
2592
|
+
}
|
|
2593
|
+
[data-puck-dragging] ._DropZone--isEnabled_1i2sv_59 {
|
|
2594
|
+
outline: 2px dashed var(--puck-color-azure-06);
|
|
2595
|
+
}
|
|
2596
|
+
._DropZone_1i2sv_1 > *:not([data-puck-component]) {
|
|
2597
|
+
opacity: 0;
|
|
2598
|
+
}
|
|
2599
|
+
body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
2600
|
+
opacity: 0 !important;
|
|
2601
|
+
}
|
|
2602
|
+
|
|
2603
|
+
/* lib/overlay-portal/styles.css */
|
|
2604
|
+
[data-puck-overlay-portal],
|
|
2605
|
+
[data-puck-overlay-portal] * {
|
|
2606
|
+
pointer-events: auto !important;
|
|
2607
|
+
}
|
|
2608
|
+
[data-puck-overlay-portal]:hover {
|
|
2609
|
+
outline: 2px var(--puck-color-azure-09) dashed;
|
|
2610
|
+
outline-offset: 2px;
|
|
2611
|
+
}
|
|
2612
|
+
[data-puck-overlay-portal]:focus-within {
|
|
2613
|
+
outline: 2px var(--puck-color-azure-07) dashed;
|
|
2614
|
+
outline-offset: 2px;
|
|
2615
|
+
}
|
|
2616
|
+
|
|
2617
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/InlineTextField/styles.module.css/#css-module-data */
|
|
2618
|
+
._InlineTextField_104qp_1 {
|
|
2619
|
+
cursor: text;
|
|
2620
|
+
display: inline-block;
|
|
2621
|
+
white-space: pre-wrap;
|
|
2622
|
+
text-decoration: inherit;
|
|
2623
|
+
}
|
|
2624
|
+
[data-dnd-dragging] ._InlineTextField_104qp_1 {
|
|
2625
|
+
cursor: none;
|
|
2626
|
+
caret-color: transparent;
|
|
2627
|
+
}
|
|
2628
|
+
[data-dnd-dragging] ._InlineTextField_104qp_1::selection {
|
|
2629
|
+
display: none;
|
|
2630
|
+
}
|
package/dist/no-external.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { v as Adaptor, A as AppState, w as ArrayField, x as ArrayState, y as AsFieldProps, B as BaseData, z as BaseField, E as CacheOpts, m as ComponentConfig, G as ComponentConfigExtensions, J as ComponentConfigParams, c as ComponentData, K as ComponentDataMap, L as ComponentDataOptionalId, N as ComponentMetadata, C as Config, Q as ConfigParams, b as Content, S as CustomField, T as CustomFieldRender, D as Data, e as DefaultComponentProps, d as DefaultComponents, f as DefaultRootFieldProps, X as DefaultRootProps, Y as DefaultRootRenderProps, Z as Direction, _ as DragAxis, $ as ExternalField, a0 as ExternalFieldWithAdaptor, a1 as ExtractConfigParams, a2 as ExtractField, p as Field, a3 as FieldMetadata, q as FieldProps, a4 as FieldRenderFunctions, a5 as FieldTransformFn, a6 as FieldTransformFnParams, n as FieldTransforms, F as Fields, H as History, I as IframeConfig, s as InitialHistory, a7 as ItemWithId, a8 as MappedItem, M as Metadata, a9 as NumberField, aa as ObjectField, O as OnAction, ab as OverrideKey, k as Overrides, g as Permissions, j as Plugin, a as PuckAction, ac as PuckComponent, ad as PuckContext, ae as PuckMetadata, af as RadioField, i as ResolveDataTrigger, ag as RichText, o as RichtextField, ah as RootConfig, R as RootData, h as RootDataWithProps, ai as RootDataWithoutProps, aj as SelectField, ak as Slot, al as SlotComponent, am as SlotField, an as TextField, ao as TextareaField, l as UiState, U as UserGenerics, ap as Viewport, V as Viewports, aq as WithChildren, W as WithId, ar as WithPuckProps, as as WithSlotProps, at as overrideKeys } from './actions-C3e2nJ9v.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-BJoNgZ0l.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-CMP1bTUS.mjs';
|