@measured/puck 0.21.0-canary.e491598a → 0.21.0-canary.eb8ea5ce
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-DR57V55X.mjs +194 -0
- package/dist/Editor-F2LSS6SE.css +403 -0
- package/dist/Render-6Q5WP25Y.mjs +51 -0
- package/dist/Render-QEMDIDQC.css +101 -0
- package/dist/chunk-A7EMVTSK.mjs +413 -0
- package/dist/chunk-CF5XA6LF.mjs +103 -0
- package/dist/chunk-GQ457KMA.mjs +199 -0
- package/dist/{chunk-2NYOEOP7.mjs → chunk-MSIUWPEI.mjs} +3414 -5702
- package/dist/chunk-OPXWLTPM.mjs +3140 -0
- package/dist/chunk-YZQENDBP.mjs +537 -0
- package/dist/index.css +636 -759
- package/dist/index.d.mts +107 -27
- package/dist/index.d.ts +107 -27
- package/dist/index.js +7751 -5256
- package/dist/index.mjs +19 -17
- package/dist/no-external.css +636 -759
- package/dist/no-external.d.mts +17 -2
- package/dist/no-external.d.ts +17 -2
- package/dist/no-external.js +7751 -5256
- package/dist/no-external.mjs +19 -17
- package/dist/rsc.css +101 -0
- package/dist/rsc.d.mts +17 -2
- package/dist/rsc.d.ts +17 -2
- package/dist/rsc.js +411 -26
- package/dist/rsc.mjs +15 -9
- package/dist/{walk-tree-CL-j099F.d.mts → walk-tree-Ja9bNCM9.d.mts} +215 -27
- package/dist/{walk-tree-CL-j099F.d.ts → walk-tree-Ja9bNCM9.d.ts} +215 -27
- package/package.json +23 -1
- package/dist/chunk-FY5AZKYD.mjs +0 -967
package/dist/no-external.mjs
CHANGED
|
@@ -1,35 +1,39 @@
|
|
|
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
|
-
blocksPlugin,
|
|
15
|
-
createReducer,
|
|
16
9
|
createUsePuck,
|
|
17
|
-
fieldsPlugin,
|
|
18
|
-
outlinePlugin,
|
|
19
10
|
overrideKeys,
|
|
20
11
|
registerOverlayPortal,
|
|
21
12
|
renderContext,
|
|
22
13
|
setDeep,
|
|
23
14
|
useGetPuck,
|
|
24
15
|
usePuck
|
|
25
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MSIUWPEI.mjs";
|
|
26
17
|
import {
|
|
27
|
-
init_react_import,
|
|
28
18
|
migrate,
|
|
29
19
|
resolveAllData,
|
|
30
|
-
transformProps
|
|
20
|
+
transformProps
|
|
21
|
+
} from "./chunk-A7EMVTSK.mjs";
|
|
22
|
+
import {
|
|
23
|
+
Action,
|
|
24
|
+
ActionBar,
|
|
25
|
+
Group,
|
|
26
|
+
IconButton,
|
|
27
|
+
Label,
|
|
28
|
+
RichTextMenu,
|
|
29
|
+
Separator
|
|
30
|
+
} from "./chunk-OPXWLTPM.mjs";
|
|
31
|
+
import {
|
|
31
32
|
walkTree
|
|
32
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-YZQENDBP.mjs";
|
|
34
|
+
import {
|
|
35
|
+
init_react_import
|
|
36
|
+
} from "./chunk-GQ457KMA.mjs";
|
|
33
37
|
|
|
34
38
|
// bundle/no-external.ts
|
|
35
39
|
init_react_import();
|
|
@@ -46,12 +50,10 @@ export {
|
|
|
46
50
|
Label,
|
|
47
51
|
Puck,
|
|
48
52
|
Render,
|
|
49
|
-
|
|
50
|
-
|
|
53
|
+
RichTextMenu,
|
|
54
|
+
Separator,
|
|
51
55
|
createUsePuck,
|
|
52
|
-
fieldsPlugin,
|
|
53
56
|
migrate,
|
|
54
|
-
outlinePlugin,
|
|
55
57
|
overrideKeys,
|
|
56
58
|
registerOverlayPortal,
|
|
57
59
|
renderContext,
|
package/dist/rsc.css
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/RichTextEditor/styles.module.css/#css-module-data */
|
|
2
|
+
._RichTextEditor_1elol_1 .ProseMirror {
|
|
3
|
+
white-space: pre-wrap;
|
|
4
|
+
word-wrap: break-word;
|
|
5
|
+
cursor: text;
|
|
6
|
+
outline: none;
|
|
7
|
+
position: relative;
|
|
8
|
+
}
|
|
9
|
+
._RichTextEditor_1elol_1 .rich-text * {
|
|
10
|
+
white-space: pre-wrap;
|
|
11
|
+
user-select: auto;
|
|
12
|
+
-webkit-user-select: auto;
|
|
13
|
+
}
|
|
14
|
+
._RichTextEditor_1elol_1 .rich-text blockquote {
|
|
15
|
+
margin: 1em 0;
|
|
16
|
+
padding: 0 1em;
|
|
17
|
+
border-left: 4px solid var(--puck-color-grey-09);
|
|
18
|
+
}
|
|
19
|
+
._RichTextEditor_1elol_1 .rich-text code {
|
|
20
|
+
background-color: var(--puck-color-grey-11);
|
|
21
|
+
padding: 4px 8px;
|
|
22
|
+
border-radius: 4px;
|
|
23
|
+
}
|
|
24
|
+
._RichTextEditor_1elol_1 .rich-text p:empty::before {
|
|
25
|
+
content: "\a0";
|
|
26
|
+
}
|
|
27
|
+
._RichTextEditor_1elol_1 .rich-text pre code {
|
|
28
|
+
display: block;
|
|
29
|
+
padding: 8px 12px;
|
|
30
|
+
}
|
|
31
|
+
._RichTextEditor_1elol_1 .rich-text > *:first-child,
|
|
32
|
+
._RichTextEditor_1elol_1 .ProseMirror > *:first-child,
|
|
33
|
+
._RichTextEditor_1elol_1 .rich-text * p:first-of-type {
|
|
34
|
+
margin-top: 0;
|
|
35
|
+
}
|
|
36
|
+
._RichTextEditor_1elol_1 .rich-text > *:last-child,
|
|
37
|
+
._RichTextEditor_1elol_1 .ProseMirror > *:last-child,
|
|
38
|
+
._RichTextEditor_1elol_1 .rich-text * p:last-of-type {
|
|
39
|
+
margin-bottom: 0;
|
|
40
|
+
}
|
|
41
|
+
._RichTextEditor--editor_1elol_50 {
|
|
42
|
+
background: var(--puck-color-white);
|
|
43
|
+
border-width: 1px;
|
|
44
|
+
border-style: solid;
|
|
45
|
+
border-color: var(--puck-color-grey-09);
|
|
46
|
+
border-radius: 4px;
|
|
47
|
+
box-sizing: border-box;
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-direction: column;
|
|
50
|
+
font-family: inherit;
|
|
51
|
+
font-size: var(--puck-font-size-xxs);
|
|
52
|
+
resize: vertical;
|
|
53
|
+
transition: border-color 50ms ease-in;
|
|
54
|
+
width: 100%;
|
|
55
|
+
max-width: 100%;
|
|
56
|
+
min-height: 128px;
|
|
57
|
+
}
|
|
58
|
+
._RichTextEditor--editor_1elol_50 .rich-text {
|
|
59
|
+
flex-grow: 1;
|
|
60
|
+
}
|
|
61
|
+
._RichTextEditor--editor_1elol_50 .rich-text:not(:has(.ProseMirror)),
|
|
62
|
+
._RichTextEditor--editor_1elol_50 .rich-text .ProseMirror {
|
|
63
|
+
height: 100%;
|
|
64
|
+
padding: 12px 15px;
|
|
65
|
+
}
|
|
66
|
+
._RichTextEditor--editor_1elol_50 .rich-text ul,
|
|
67
|
+
._RichTextEditor--editor_1elol_50 .rich-text ol {
|
|
68
|
+
padding-left: 24px;
|
|
69
|
+
}
|
|
70
|
+
._RichTextEditor--editor_1elol_50 .rich-text li {
|
|
71
|
+
line-height: 1.5;
|
|
72
|
+
}
|
|
73
|
+
._RichTextEditor--editor_1elol_50 .rich-text p {
|
|
74
|
+
margin-block: 12px;
|
|
75
|
+
}
|
|
76
|
+
._RichTextEditor--editor_1elol_50 .rich-text ul {
|
|
77
|
+
list-style: disc;
|
|
78
|
+
}
|
|
79
|
+
._RichTextEditor--editor_1elol_50 .rich-text ol {
|
|
80
|
+
list-style: decimal;
|
|
81
|
+
}
|
|
82
|
+
._RichTextEditor--editor_1elol_50:focus-within {
|
|
83
|
+
border-color: var(--puck-color-grey-05);
|
|
84
|
+
outline: 2px solid var(--puck-color-azure-05);
|
|
85
|
+
transition: none;
|
|
86
|
+
}
|
|
87
|
+
._RichTextEditor--editor_1elol_50._RichTextEditor--disabled_1elol_106 {
|
|
88
|
+
background: var(--puck-color-grey-11);
|
|
89
|
+
}
|
|
90
|
+
._RichTextEditor_1elol_1:not(:focus-within):not(._RichTextEditor--isActive_1elol_110) .ProseMirror ::selection {
|
|
91
|
+
background-color: transparent;
|
|
92
|
+
}
|
|
93
|
+
._RichTextEditor-menu_1elol_116 {
|
|
94
|
+
border-bottom: 1px solid var(--puck-color-grey-10);
|
|
95
|
+
position: sticky;
|
|
96
|
+
top: 0;
|
|
97
|
+
z-index: 1;
|
|
98
|
+
}
|
|
99
|
+
._RichTextEditor--disabled_1elol_106 ._RichTextEditor-menu_1elol_116 {
|
|
100
|
+
border-bottom: 1px solid var(--puck-color-grey-09);
|
|
101
|
+
}
|
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-Ja9bNCM9.mjs';
|
|
3
|
+
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-Ja9bNCM9.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-Ja9bNCM9.js';
|
|
3
|
+
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-Ja9bNCM9.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;
|