@measured/puck 0.21.0-canary.3aa27d1d → 0.21.0-canary.41d0882b
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/Editor-IQP25PUX.css +404 -0
- package/dist/Editor-L3JAAT2X.mjs +204 -0
- package/dist/Render-3OV4N4MT.css +102 -0
- package/dist/Render-FXZX6NFH.mjs +55 -0
- package/dist/{walk-tree-16XYcbNo.d.mts → actions-tsxxcX1z.d.mts} +29 -40
- package/dist/{walk-tree-16XYcbNo.d.ts → actions-tsxxcX1z.d.ts} +29 -40
- package/dist/chunk-23IZFPL7.mjs +528 -0
- package/dist/chunk-3SDLQIUZ.mjs +429 -0
- package/dist/chunk-45I5SDOI.mjs +134 -0
- package/dist/chunk-5ZZVX2Z3.mjs +63 -0
- package/dist/chunk-AOEDIUVK.mjs +11 -0
- package/dist/chunk-B7REOAA7.mjs +435 -0
- package/dist/chunk-BXQQARCR.mjs +708 -0
- package/dist/{chunk-GFIVKP2H.mjs → chunk-CQUAWHOK.mjs} +6092 -8451
- package/dist/chunk-D2SRL6YA.mjs +1807 -0
- package/dist/chunk-LJEGWHDD.mjs +53 -0
- package/dist/chunk-M6W7YEVX.mjs +95 -0
- package/dist/chunk-PBAAIKXA.mjs +111 -0
- package/dist/chunk-U4VSQKO3.mjs +33 -0
- package/dist/chunk-V5I7CVLT.mjs +103 -0
- package/dist/chunk-Y2EFNT5P.mjs +108 -0
- package/dist/full-2GJTAAZE.css +301 -0
- package/dist/full-L7DWVNTZ.mjs +93 -0
- package/dist/index-Ca6V6NQD.d.ts +118 -0
- package/dist/index-mQvUCH3C.d.mts +118 -0
- package/dist/index.css +858 -459
- package/dist/index.d.mts +32 -129
- package/dist/index.d.ts +32 -129
- package/dist/index.js +9406 -6857
- package/dist/index.mjs +32 -14
- package/dist/internal.d.mts +27 -0
- package/dist/internal.d.ts +27 -0
- package/dist/internal.js +927 -0
- package/dist/internal.mjs +13 -0
- package/dist/loaded-2HLHDP2G.mjs +57 -0
- package/dist/loaded-LZUXYAGW.mjs +60 -0
- package/dist/loaded-RVWBFK7L.css +87 -0
- package/dist/loaded-UHVTB6OD.mjs +57 -0
- package/dist/no-external.css +990 -587
- package/dist/no-external.d.mts +4 -2
- package/dist/no-external.d.ts +4 -2
- package/dist/no-external.js +9407 -6855
- package/dist/no-external.mjs +34 -11
- package/dist/rsc.css +35 -26
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +300 -215
- package/dist/rsc.mjs +18 -9
- package/dist/walk-tree-Bh85NMeo.d.ts +29 -0
- package/dist/walk-tree-CDA3K5S3.d.mts +29 -0
- package/package.json +9 -4
- package/dist/chunk-SRDLYODX.mjs +0 -1245
package/dist/no-external.mjs
CHANGED
|
@@ -1,33 +1,52 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Action,
|
|
3
|
-
ActionBar,
|
|
4
2
|
AutoField,
|
|
5
3
|
Button,
|
|
6
4
|
Drawer,
|
|
7
5
|
DropZone,
|
|
8
6
|
FieldLabel,
|
|
9
|
-
Group,
|
|
10
|
-
IconButton,
|
|
11
|
-
Label,
|
|
12
7
|
Puck,
|
|
13
8
|
Render,
|
|
14
|
-
|
|
15
|
-
Separator,
|
|
9
|
+
blocksPlugin,
|
|
16
10
|
createUsePuck,
|
|
11
|
+
fieldsPlugin,
|
|
12
|
+
legacySideBarPlugin,
|
|
13
|
+
outlinePlugin,
|
|
17
14
|
overrideKeys,
|
|
18
15
|
registerOverlayPortal,
|
|
19
16
|
renderContext,
|
|
20
17
|
setDeep,
|
|
21
18
|
useGetPuck,
|
|
22
19
|
usePuck
|
|
23
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CQUAWHOK.mjs";
|
|
21
|
+
import "./chunk-PBAAIKXA.mjs";
|
|
24
22
|
import {
|
|
25
|
-
init_react_import,
|
|
26
23
|
migrate,
|
|
27
24
|
resolveAllData,
|
|
28
|
-
transformProps
|
|
25
|
+
transformProps
|
|
26
|
+
} from "./chunk-3SDLQIUZ.mjs";
|
|
27
|
+
import "./chunk-AOEDIUVK.mjs";
|
|
28
|
+
import {
|
|
29
|
+
Action,
|
|
30
|
+
ActionBar,
|
|
31
|
+
Group,
|
|
32
|
+
IconButton,
|
|
33
|
+
Label,
|
|
34
|
+
RichTextMenu,
|
|
35
|
+
Separator
|
|
36
|
+
} from "./chunk-BXQQARCR.mjs";
|
|
37
|
+
import "./chunk-LJEGWHDD.mjs";
|
|
38
|
+
import "./chunk-5ZZVX2Z3.mjs";
|
|
39
|
+
import "./chunk-U4VSQKO3.mjs";
|
|
40
|
+
import "./chunk-D2SRL6YA.mjs";
|
|
41
|
+
import "./chunk-23IZFPL7.mjs";
|
|
42
|
+
import "./chunk-45I5SDOI.mjs";
|
|
43
|
+
import "./chunk-Y2EFNT5P.mjs";
|
|
44
|
+
import {
|
|
29
45
|
walkTree
|
|
30
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-B7REOAA7.mjs";
|
|
47
|
+
import {
|
|
48
|
+
init_react_import
|
|
49
|
+
} from "./chunk-M6W7YEVX.mjs";
|
|
31
50
|
|
|
32
51
|
// bundle/no-external.ts
|
|
33
52
|
init_react_import();
|
|
@@ -46,8 +65,12 @@ export {
|
|
|
46
65
|
Render,
|
|
47
66
|
RichTextMenu,
|
|
48
67
|
Separator,
|
|
68
|
+
blocksPlugin,
|
|
49
69
|
createUsePuck,
|
|
70
|
+
fieldsPlugin,
|
|
71
|
+
legacySideBarPlugin,
|
|
50
72
|
migrate,
|
|
73
|
+
outlinePlugin,
|
|
51
74
|
overrideKeys,
|
|
52
75
|
registerOverlayPortal,
|
|
53
76
|
renderContext,
|
package/dist/rsc.css
CHANGED
|
@@ -1,93 +1,102 @@
|
|
|
1
1
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/RichTextEditor/styles.module.css/#css-module-data */
|
|
2
|
-
.
|
|
2
|
+
._RichTextEditor_z25h4_1 .ProseMirror {
|
|
3
3
|
white-space: pre-wrap;
|
|
4
4
|
word-wrap: break-word;
|
|
5
5
|
cursor: text;
|
|
6
6
|
outline: none;
|
|
7
7
|
position: relative;
|
|
8
8
|
}
|
|
9
|
-
.
|
|
9
|
+
._RichTextEditor_z25h4_1 .rich-text * {
|
|
10
10
|
white-space: pre-wrap;
|
|
11
|
+
user-select: auto;
|
|
12
|
+
-webkit-user-select: auto;
|
|
11
13
|
}
|
|
12
|
-
.
|
|
14
|
+
._RichTextEditor_z25h4_1 .rich-text blockquote {
|
|
13
15
|
margin: 1em 0;
|
|
14
16
|
padding: 0 1em;
|
|
15
17
|
border-left: 4px solid var(--puck-color-grey-09);
|
|
16
18
|
}
|
|
17
|
-
.
|
|
19
|
+
._RichTextEditor_z25h4_1 .rich-text code {
|
|
18
20
|
background-color: var(--puck-color-grey-11);
|
|
19
21
|
padding: 4px 8px;
|
|
20
22
|
border-radius: 4px;
|
|
21
23
|
}
|
|
22
|
-
.
|
|
24
|
+
._RichTextEditor_z25h4_1 .rich-text p:empty::before {
|
|
23
25
|
content: "\a0";
|
|
24
26
|
}
|
|
25
|
-
.
|
|
27
|
+
._RichTextEditor_z25h4_1 .rich-text pre code {
|
|
26
28
|
display: block;
|
|
27
29
|
padding: 8px 12px;
|
|
28
30
|
}
|
|
29
|
-
.
|
|
30
|
-
.
|
|
31
|
-
.
|
|
31
|
+
._RichTextEditor_z25h4_1 .rich-text > *:first-child,
|
|
32
|
+
._RichTextEditor_z25h4_1 .ProseMirror > *:first-child,
|
|
33
|
+
._RichTextEditor_z25h4_1 .rich-text * p:first-of-type {
|
|
32
34
|
margin-top: 0;
|
|
33
35
|
}
|
|
34
|
-
.
|
|
35
|
-
.
|
|
36
|
-
.
|
|
36
|
+
._RichTextEditor_z25h4_1 .rich-text > *:last-child,
|
|
37
|
+
._RichTextEditor_z25h4_1 .ProseMirror > *:last-child,
|
|
38
|
+
._RichTextEditor_z25h4_1 .rich-text * p:last-of-type {
|
|
37
39
|
margin-bottom: 0;
|
|
38
40
|
}
|
|
39
|
-
._RichTextEditor--
|
|
41
|
+
._RichTextEditor--editor_z25h4_50 {
|
|
40
42
|
background: var(--puck-color-white);
|
|
41
43
|
border-width: 1px;
|
|
42
44
|
border-style: solid;
|
|
43
45
|
border-color: var(--puck-color-grey-09);
|
|
44
46
|
border-radius: 4px;
|
|
45
47
|
box-sizing: border-box;
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-direction: column;
|
|
46
50
|
font-family: inherit;
|
|
47
51
|
font-size: var(--puck-font-size-xxs);
|
|
48
52
|
resize: vertical;
|
|
53
|
+
text-align: initial;
|
|
49
54
|
transition: border-color 50ms ease-in;
|
|
50
55
|
width: 100%;
|
|
51
56
|
max-width: 100%;
|
|
52
57
|
min-height: 128px;
|
|
53
58
|
}
|
|
54
|
-
._RichTextEditor--
|
|
55
|
-
|
|
59
|
+
._RichTextEditor--editor_z25h4_50 .rich-text {
|
|
60
|
+
flex-grow: 1;
|
|
61
|
+
}
|
|
62
|
+
._RichTextEditor--editor_z25h4_50 .rich-text:not(:has(.ProseMirror)),
|
|
63
|
+
._RichTextEditor--editor_z25h4_50 .rich-text .ProseMirror {
|
|
64
|
+
height: 100%;
|
|
56
65
|
padding: 12px 15px;
|
|
57
66
|
}
|
|
58
|
-
._RichTextEditor--
|
|
59
|
-
._RichTextEditor--
|
|
67
|
+
._RichTextEditor--editor_z25h4_50 .rich-text ul,
|
|
68
|
+
._RichTextEditor--editor_z25h4_50 .rich-text ol {
|
|
60
69
|
padding-left: 24px;
|
|
61
70
|
}
|
|
62
|
-
._RichTextEditor--
|
|
71
|
+
._RichTextEditor--editor_z25h4_50 .rich-text li {
|
|
63
72
|
line-height: 1.5;
|
|
64
73
|
}
|
|
65
|
-
._RichTextEditor--
|
|
74
|
+
._RichTextEditor--editor_z25h4_50 .rich-text p {
|
|
66
75
|
margin-block: 12px;
|
|
67
76
|
}
|
|
68
|
-
._RichTextEditor--
|
|
77
|
+
._RichTextEditor--editor_z25h4_50 .rich-text ul {
|
|
69
78
|
list-style: disc;
|
|
70
79
|
}
|
|
71
|
-
._RichTextEditor--
|
|
80
|
+
._RichTextEditor--editor_z25h4_50 .rich-text ol {
|
|
72
81
|
list-style: decimal;
|
|
73
82
|
}
|
|
74
|
-
._RichTextEditor--
|
|
83
|
+
._RichTextEditor--editor_z25h4_50:focus-within {
|
|
75
84
|
border-color: var(--puck-color-grey-05);
|
|
76
85
|
outline: 2px solid var(--puck-color-azure-05);
|
|
77
86
|
transition: none;
|
|
78
87
|
}
|
|
79
|
-
._RichTextEditor--
|
|
88
|
+
._RichTextEditor--editor_z25h4_50._RichTextEditor--disabled_z25h4_107 {
|
|
80
89
|
background: var(--puck-color-grey-11);
|
|
81
90
|
}
|
|
82
|
-
.
|
|
91
|
+
._RichTextEditor_z25h4_1:not(:focus-within):not(._RichTextEditor--isActive_z25h4_111) .ProseMirror ::selection {
|
|
83
92
|
background-color: transparent;
|
|
84
93
|
}
|
|
85
|
-
._RichTextEditor-
|
|
94
|
+
._RichTextEditor-menu_z25h4_117 {
|
|
86
95
|
border-bottom: 1px solid var(--puck-color-grey-10);
|
|
87
96
|
position: sticky;
|
|
88
97
|
top: 0;
|
|
89
98
|
z-index: 1;
|
|
90
99
|
}
|
|
91
|
-
._RichTextEditor--
|
|
100
|
+
._RichTextEditor--disabled_z25h4_107 ._RichTextEditor-menu_z25h4_117 {
|
|
92
101
|
border-bottom: 1px solid var(--puck-color-grey-09);
|
|
93
102
|
}
|
package/dist/rsc.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as Config, U as UserGenerics, M as Metadata } from './
|
|
3
|
-
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-
|
|
2
|
+
import { C as Config, U as UserGenerics, M as Metadata } from './actions-tsxxcX1z.mjs';
|
|
3
|
+
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-CDA3K5S3.mjs';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@tiptap/react';
|
|
6
6
|
import '@tiptap/extension-blockquote';
|
package/dist/rsc.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as Config, U as UserGenerics, M as Metadata } from './
|
|
3
|
-
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-
|
|
2
|
+
import { C as Config, U as UserGenerics, M as Metadata } from './actions-tsxxcX1z.js';
|
|
3
|
+
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-Bh85NMeo.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@tiptap/react';
|
|
6
6
|
import '@tiptap/extension-blockquote';
|