@measured/puck 0.21.0-canary.304940ae → 0.21.0-canary.3aa27d1d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-QNMNHBNQ.mjs → chunk-GFIVKP2H.mjs} +2181 -853
- package/dist/{chunk-JA7SEUEH.mjs → chunk-SRDLYODX.mjs} +286 -7
- package/dist/index.css +270 -22
- package/dist/index.d.mts +106 -7
- package/dist/index.d.ts +106 -7
- package/dist/index.js +2205 -620
- package/dist/index.mjs +6 -2
- package/dist/no-external.css +270 -22
- package/dist/no-external.d.mts +17 -2
- package/dist/no-external.d.ts +17 -2
- package/dist/no-external.js +2205 -620
- package/dist/no-external.mjs +6 -2
- package/dist/rsc.css +93 -0
- package/dist/rsc.d.mts +17 -2
- package/dist/rsc.d.ts +17 -2
- package/dist/rsc.js +346 -18
- package/dist/rsc.mjs +1 -1
- package/dist/{walk-tree-BqwnaCVe.d.mts → walk-tree-16XYcbNo.d.mts} +207 -7
- package/dist/{walk-tree-BqwnaCVe.d.ts → walk-tree-16XYcbNo.d.ts} +207 -7
- package/package.json +23 -1
package/dist/no-external.mjs
CHANGED
|
@@ -11,6 +11,8 @@ import {
|
|
|
11
11
|
Label,
|
|
12
12
|
Puck,
|
|
13
13
|
Render,
|
|
14
|
+
RichTextMenu,
|
|
15
|
+
Separator,
|
|
14
16
|
createUsePuck,
|
|
15
17
|
overrideKeys,
|
|
16
18
|
registerOverlayPortal,
|
|
@@ -18,14 +20,14 @@ import {
|
|
|
18
20
|
setDeep,
|
|
19
21
|
useGetPuck,
|
|
20
22
|
usePuck
|
|
21
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-GFIVKP2H.mjs";
|
|
22
24
|
import {
|
|
23
25
|
init_react_import,
|
|
24
26
|
migrate,
|
|
25
27
|
resolveAllData,
|
|
26
28
|
transformProps,
|
|
27
29
|
walkTree
|
|
28
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-SRDLYODX.mjs";
|
|
29
31
|
|
|
30
32
|
// bundle/no-external.ts
|
|
31
33
|
init_react_import();
|
|
@@ -42,6 +44,8 @@ export {
|
|
|
42
44
|
Label,
|
|
43
45
|
Puck,
|
|
44
46
|
Render,
|
|
47
|
+
RichTextMenu,
|
|
48
|
+
Separator,
|
|
45
49
|
createUsePuck,
|
|
46
50
|
migrate,
|
|
47
51
|
overrideKeys,
|
package/dist/rsc.css
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/RichTextEditor/styles.module.css/#css-module-data */
|
|
2
|
+
._RichTextEditor_1819a_1 .ProseMirror {
|
|
3
|
+
white-space: pre-wrap;
|
|
4
|
+
word-wrap: break-word;
|
|
5
|
+
cursor: text;
|
|
6
|
+
outline: none;
|
|
7
|
+
position: relative;
|
|
8
|
+
}
|
|
9
|
+
._RichTextEditor_1819a_1 .rich-text * {
|
|
10
|
+
white-space: pre-wrap;
|
|
11
|
+
}
|
|
12
|
+
._RichTextEditor_1819a_1 .rich-text blockquote {
|
|
13
|
+
margin: 1em 0;
|
|
14
|
+
padding: 0 1em;
|
|
15
|
+
border-left: 4px solid var(--puck-color-grey-09);
|
|
16
|
+
}
|
|
17
|
+
._RichTextEditor_1819a_1 .rich-text code {
|
|
18
|
+
background-color: var(--puck-color-grey-11);
|
|
19
|
+
padding: 4px 8px;
|
|
20
|
+
border-radius: 4px;
|
|
21
|
+
}
|
|
22
|
+
._RichTextEditor_1819a_1 .rich-text p:empty::before {
|
|
23
|
+
content: "\a0";
|
|
24
|
+
}
|
|
25
|
+
._RichTextEditor_1819a_1 .rich-text pre code {
|
|
26
|
+
display: block;
|
|
27
|
+
padding: 8px 12px;
|
|
28
|
+
}
|
|
29
|
+
._RichTextEditor_1819a_1 .rich-text > *:first-child,
|
|
30
|
+
._RichTextEditor_1819a_1 .ProseMirror > *:first-child,
|
|
31
|
+
._RichTextEditor_1819a_1 .rich-text * p:first-of-type {
|
|
32
|
+
margin-top: 0;
|
|
33
|
+
}
|
|
34
|
+
._RichTextEditor_1819a_1 .rich-text > *:last-child,
|
|
35
|
+
._RichTextEditor_1819a_1 .ProseMirror > *:last-child,
|
|
36
|
+
._RichTextEditor_1819a_1 .rich-text * p:last-of-type {
|
|
37
|
+
margin-bottom: 0;
|
|
38
|
+
}
|
|
39
|
+
._RichTextEditor--editor_1819a_46 {
|
|
40
|
+
background: var(--puck-color-white);
|
|
41
|
+
border-width: 1px;
|
|
42
|
+
border-style: solid;
|
|
43
|
+
border-color: var(--puck-color-grey-09);
|
|
44
|
+
border-radius: 4px;
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
font-family: inherit;
|
|
47
|
+
font-size: var(--puck-font-size-xxs);
|
|
48
|
+
resize: vertical;
|
|
49
|
+
transition: border-color 50ms ease-in;
|
|
50
|
+
width: 100%;
|
|
51
|
+
max-width: 100%;
|
|
52
|
+
min-height: 128px;
|
|
53
|
+
}
|
|
54
|
+
._RichTextEditor--editor_1819a_46 .rich-text:not(:has(.ProseMirror)),
|
|
55
|
+
._RichTextEditor--editor_1819a_46 .rich-text .ProseMirror {
|
|
56
|
+
padding: 12px 15px;
|
|
57
|
+
}
|
|
58
|
+
._RichTextEditor--editor_1819a_46 .rich-text ul,
|
|
59
|
+
._RichTextEditor--editor_1819a_46 .rich-text ol {
|
|
60
|
+
padding-left: 24px;
|
|
61
|
+
}
|
|
62
|
+
._RichTextEditor--editor_1819a_46 .rich-text li {
|
|
63
|
+
line-height: 1.5;
|
|
64
|
+
}
|
|
65
|
+
._RichTextEditor--editor_1819a_46 .rich-text p {
|
|
66
|
+
margin-block: 12px;
|
|
67
|
+
}
|
|
68
|
+
._RichTextEditor--editor_1819a_46 .rich-text ul {
|
|
69
|
+
list-style: disc;
|
|
70
|
+
}
|
|
71
|
+
._RichTextEditor--editor_1819a_46 .rich-text ol {
|
|
72
|
+
list-style: decimal;
|
|
73
|
+
}
|
|
74
|
+
._RichTextEditor--editor_1819a_46:focus-within {
|
|
75
|
+
border-color: var(--puck-color-grey-05);
|
|
76
|
+
outline: 2px solid var(--puck-color-azure-05);
|
|
77
|
+
transition: none;
|
|
78
|
+
}
|
|
79
|
+
._RichTextEditor--editor_1819a_46._RichTextEditor--disabled_1819a_95 {
|
|
80
|
+
background: var(--puck-color-grey-11);
|
|
81
|
+
}
|
|
82
|
+
._RichTextEditor_1819a_1:not(:focus-within):not(._RichTextEditor--isActive_1819a_99) .ProseMirror ::selection {
|
|
83
|
+
background-color: transparent;
|
|
84
|
+
}
|
|
85
|
+
._RichTextEditor-menu_1819a_105 {
|
|
86
|
+
border-bottom: 1px solid var(--puck-color-grey-10);
|
|
87
|
+
position: sticky;
|
|
88
|
+
top: 0;
|
|
89
|
+
z-index: 1;
|
|
90
|
+
}
|
|
91
|
+
._RichTextEditor--disabled_1819a_95 ._RichTextEditor-menu_1819a_105 {
|
|
92
|
+
border-bottom: 1px solid var(--puck-color-grey-09);
|
|
93
|
+
}
|
package/dist/rsc.d.mts
CHANGED
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as Config, U as UserGenerics, M as Metadata } from './walk-tree-
|
|
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 './walk-tree-16XYcbNo.mjs';
|
|
3
|
+
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-16XYcbNo.mjs';
|
|
4
4
|
import 'react';
|
|
5
|
+
import '@tiptap/react';
|
|
6
|
+
import '@tiptap/extension-blockquote';
|
|
7
|
+
import '@tiptap/extension-bold';
|
|
8
|
+
import '@tiptap/extension-code';
|
|
9
|
+
import '@tiptap/extension-code-block';
|
|
10
|
+
import '@tiptap/extension-hard-break';
|
|
11
|
+
import '@tiptap/extension-heading';
|
|
12
|
+
import '@tiptap/extension-horizontal-rule';
|
|
13
|
+
import '@tiptap/extension-italic';
|
|
14
|
+
import '@tiptap/extension-link';
|
|
15
|
+
import '@tiptap/extension-list';
|
|
16
|
+
import '@tiptap/extension-paragraph';
|
|
17
|
+
import '@tiptap/extension-strike';
|
|
18
|
+
import '@tiptap/extension-text-align';
|
|
19
|
+
import '@tiptap/extension-underline';
|
|
5
20
|
|
|
6
21
|
declare function Render<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>({ config, data, metadata, }: {
|
|
7
22
|
config: UserConfig;
|
package/dist/rsc.d.ts
CHANGED
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as Config, U as UserGenerics, M as Metadata } from './walk-tree-
|
|
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 './walk-tree-16XYcbNo.js';
|
|
3
|
+
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-16XYcbNo.js';
|
|
4
4
|
import 'react';
|
|
5
|
+
import '@tiptap/react';
|
|
6
|
+
import '@tiptap/extension-blockquote';
|
|
7
|
+
import '@tiptap/extension-bold';
|
|
8
|
+
import '@tiptap/extension-code';
|
|
9
|
+
import '@tiptap/extension-code-block';
|
|
10
|
+
import '@tiptap/extension-hard-break';
|
|
11
|
+
import '@tiptap/extension-heading';
|
|
12
|
+
import '@tiptap/extension-horizontal-rule';
|
|
13
|
+
import '@tiptap/extension-italic';
|
|
14
|
+
import '@tiptap/extension-link';
|
|
15
|
+
import '@tiptap/extension-list';
|
|
16
|
+
import '@tiptap/extension-paragraph';
|
|
17
|
+
import '@tiptap/extension-strike';
|
|
18
|
+
import '@tiptap/extension-text-align';
|
|
19
|
+
import '@tiptap/extension-underline';
|
|
5
20
|
|
|
6
21
|
declare function Render<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>({ config, data, metadata, }: {
|
|
7
22
|
config: UserConfig;
|