@measured/puck 0.21.0-canary.3aa27d1d → 0.21.0-canary.501341c5
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-F2LSS6SE.css +403 -0
- package/dist/Editor-O447AVCX.mjs +204 -0
- package/dist/Render-OFE6QLI2.mjs +55 -0
- package/dist/Render-QEMDIDQC.css +101 -0
- package/dist/{walk-tree-16XYcbNo.d.mts → actions-CJibIB0m.d.mts} +8 -33
- package/dist/{walk-tree-16XYcbNo.d.ts → actions-CJibIB0m.d.ts} +8 -33
- package/dist/chunk-2Q4PACDA.mjs +111 -0
- package/dist/chunk-62AAYNXG.mjs +63 -0
- package/dist/chunk-BSDEIOEK.mjs +706 -0
- package/dist/chunk-CSSRLPHM.mjs +11 -0
- package/dist/chunk-DAQLMM2T.mjs +1722 -0
- package/dist/chunk-M6W7YEVX.mjs +95 -0
- package/dist/chunk-NLUHDYVR.mjs +416 -0
- package/dist/chunk-PLXSMBAA.mjs +53 -0
- package/dist/chunk-QAWJTCV5.mjs +33 -0
- package/dist/chunk-QBGM4ELA.mjs +528 -0
- package/dist/chunk-T3WX7XJ6.mjs +132 -0
- package/dist/chunk-V5I7CVLT.mjs +103 -0
- package/dist/chunk-Y2EFNT5P.mjs +108 -0
- package/dist/chunk-Y656T6AQ.mjs +419 -0
- package/dist/{chunk-GFIVKP2H.mjs → chunk-Z476VA6G.mjs} +1164 -4159
- package/dist/full-2GJTAAZE.css +301 -0
- package/dist/full-BEMDJKDS.mjs +93 -0
- package/dist/index-Bss1jupB.d.ts +116 -0
- package/dist/index-DOcD_H3b.d.mts +116 -0
- package/dist/index.css +102 -94
- package/dist/index.d.mts +10 -126
- package/dist/index.d.ts +10 -126
- package/dist/index.js +6864 -5123
- package/dist/index.mjs +26 -11
- package/dist/internal.d.mts +27 -0
- package/dist/internal.d.ts +27 -0
- package/dist/internal.js +908 -0
- package/dist/internal.mjs +13 -0
- package/dist/loaded-JU3A7Y4L.mjs +57 -0
- package/dist/loaded-N3FYGF2Y.mjs +57 -0
- package/dist/loaded-OBY7OMS6.mjs +60 -0
- package/dist/loaded-RVWBFK7L.css +87 -0
- package/dist/no-external.css +102 -94
- package/dist/no-external.d.mts +3 -1
- package/dist/no-external.d.ts +3 -1
- package/dist/no-external.js +6864 -5123
- package/dist/no-external.mjs +26 -11
- package/dist/rsc.css +34 -26
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +245 -187
- package/dist/rsc.mjs +18 -9
- package/dist/walk-tree-BL55zQ9b.d.ts +29 -0
- package/dist/walk-tree-BYuI81Ik.d.mts +29 -0
- package/package.json +9 -4
- package/dist/chunk-SRDLYODX.mjs +0 -1245
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useAlignOptions
|
|
3
|
+
} from "./chunk-PLXSMBAA.mjs";
|
|
4
|
+
import {
|
|
5
|
+
AlignLeft,
|
|
6
|
+
SelectControl,
|
|
7
|
+
useControlContext
|
|
8
|
+
} from "./chunk-DAQLMM2T.mjs";
|
|
9
|
+
import "./chunk-QBGM4ELA.mjs";
|
|
10
|
+
import "./chunk-T3WX7XJ6.mjs";
|
|
11
|
+
import "./chunk-Y2EFNT5P.mjs";
|
|
12
|
+
import "./chunk-NLUHDYVR.mjs";
|
|
13
|
+
import {
|
|
14
|
+
init_react_import
|
|
15
|
+
} from "./chunk-M6W7YEVX.mjs";
|
|
16
|
+
|
|
17
|
+
// components/RichTextMenu/controls/AlignSelect/loaded.tsx
|
|
18
|
+
init_react_import();
|
|
19
|
+
import { useEditorState } from "@tiptap/react";
|
|
20
|
+
import { jsx } from "react/jsx-runtime";
|
|
21
|
+
function AlignSelectLoaded() {
|
|
22
|
+
var _a;
|
|
23
|
+
const { options } = useControlContext();
|
|
24
|
+
const alignOptions = useAlignOptions(options);
|
|
25
|
+
const { editor } = useControlContext();
|
|
26
|
+
const currentValue = (_a = useEditorState({
|
|
27
|
+
editor,
|
|
28
|
+
selector: (ctx) => {
|
|
29
|
+
var _a2, _b, _c, _d;
|
|
30
|
+
if ((_a2 = ctx.editor) == null ? void 0 : _a2.isActive({ textAlign: "center" })) {
|
|
31
|
+
return "center";
|
|
32
|
+
} else if ((_b = ctx.editor) == null ? void 0 : _b.isActive({ textAlign: "right" })) {
|
|
33
|
+
return "right";
|
|
34
|
+
} else if ((_c = ctx.editor) == null ? void 0 : _c.isActive({ textAlign: "justify" })) {
|
|
35
|
+
return "justify";
|
|
36
|
+
}
|
|
37
|
+
return (options == null ? void 0 : options.textAlign) ? (_d = options.textAlign.defaultAlignment) != null ? _d : "left" : "left";
|
|
38
|
+
}
|
|
39
|
+
})) != null ? _a : "left";
|
|
40
|
+
const handleChange = (val) => {
|
|
41
|
+
const chain = editor == null ? void 0 : editor.chain();
|
|
42
|
+
chain == null ? void 0 : chain.focus().setTextAlign(val).run();
|
|
43
|
+
};
|
|
44
|
+
return /* @__PURE__ */ jsx(
|
|
45
|
+
SelectControl,
|
|
46
|
+
{
|
|
47
|
+
options: alignOptions,
|
|
48
|
+
onChange: handleChange,
|
|
49
|
+
value: currentValue,
|
|
50
|
+
defaultValue: "left",
|
|
51
|
+
renderDefaultIcon: AlignLeft
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
AlignSelectLoaded
|
|
57
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useListOptions
|
|
3
|
+
} from "./chunk-QAWJTCV5.mjs";
|
|
4
|
+
import {
|
|
5
|
+
List,
|
|
6
|
+
SelectControl,
|
|
7
|
+
useControlContext
|
|
8
|
+
} from "./chunk-DAQLMM2T.mjs";
|
|
9
|
+
import "./chunk-QBGM4ELA.mjs";
|
|
10
|
+
import "./chunk-T3WX7XJ6.mjs";
|
|
11
|
+
import "./chunk-Y2EFNT5P.mjs";
|
|
12
|
+
import "./chunk-NLUHDYVR.mjs";
|
|
13
|
+
import {
|
|
14
|
+
init_react_import
|
|
15
|
+
} from "./chunk-M6W7YEVX.mjs";
|
|
16
|
+
|
|
17
|
+
// components/RichTextMenu/controls/ListSelect/loaded.tsx
|
|
18
|
+
init_react_import();
|
|
19
|
+
import { useEditorState } from "@tiptap/react";
|
|
20
|
+
import { jsx } from "react/jsx-runtime";
|
|
21
|
+
function ListSelectLoaded() {
|
|
22
|
+
const { options } = useControlContext();
|
|
23
|
+
const listOptions = useListOptions(options);
|
|
24
|
+
const { editor } = useControlContext();
|
|
25
|
+
const currentValue = useEditorState({
|
|
26
|
+
editor,
|
|
27
|
+
selector: (ctx) => {
|
|
28
|
+
var _a, _b;
|
|
29
|
+
if ((_a = ctx.editor) == null ? void 0 : _a.isActive("bulletList")) return "ul";
|
|
30
|
+
if ((_b = ctx.editor) == null ? void 0 : _b.isActive("orderedList")) return "ol";
|
|
31
|
+
return "p";
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
const handleChange = (val) => {
|
|
35
|
+
const chain = editor == null ? void 0 : editor.chain();
|
|
36
|
+
if (val === "p") {
|
|
37
|
+
chain == null ? void 0 : chain.focus().setParagraph().run();
|
|
38
|
+
} else if (val === "ol") {
|
|
39
|
+
chain == null ? void 0 : chain.focus().toggleOrderedList().run();
|
|
40
|
+
} else if (val === "ul") {
|
|
41
|
+
chain == null ? void 0 : chain.focus().toggleBulletList().run();
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
return /* @__PURE__ */ jsx(
|
|
45
|
+
SelectControl,
|
|
46
|
+
{
|
|
47
|
+
options: listOptions,
|
|
48
|
+
onChange: handleChange,
|
|
49
|
+
value: currentValue != null ? currentValue : "p",
|
|
50
|
+
defaultValue: "p",
|
|
51
|
+
renderDefaultIcon: List
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
ListSelectLoaded
|
|
57
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useHeadingOptions
|
|
3
|
+
} from "./chunk-62AAYNXG.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Heading,
|
|
6
|
+
SelectControl,
|
|
7
|
+
useControlContext
|
|
8
|
+
} from "./chunk-DAQLMM2T.mjs";
|
|
9
|
+
import "./chunk-QBGM4ELA.mjs";
|
|
10
|
+
import "./chunk-T3WX7XJ6.mjs";
|
|
11
|
+
import "./chunk-Y2EFNT5P.mjs";
|
|
12
|
+
import "./chunk-NLUHDYVR.mjs";
|
|
13
|
+
import {
|
|
14
|
+
init_react_import
|
|
15
|
+
} from "./chunk-M6W7YEVX.mjs";
|
|
16
|
+
|
|
17
|
+
// components/RichTextMenu/controls/HeadingSelect/loaded.tsx
|
|
18
|
+
init_react_import();
|
|
19
|
+
import { useEditorState } from "@tiptap/react";
|
|
20
|
+
import { jsx } from "react/jsx-runtime";
|
|
21
|
+
function HeadingSelectLoaded() {
|
|
22
|
+
const { options } = useControlContext();
|
|
23
|
+
const headingOptions = useHeadingOptions(options);
|
|
24
|
+
const { editor } = useControlContext();
|
|
25
|
+
const currentValue = useEditorState({
|
|
26
|
+
editor,
|
|
27
|
+
selector: (ctx) => {
|
|
28
|
+
var _a, _b;
|
|
29
|
+
if ((_a = ctx.editor) == null ? void 0 : _a.isActive("paragraph")) return "p";
|
|
30
|
+
for (let level = 1; level <= 6; level++) {
|
|
31
|
+
if ((_b = ctx.editor) == null ? void 0 : _b.isActive("heading", { level })) {
|
|
32
|
+
return `h${level}`;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return "p";
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
const handleChange = (val) => {
|
|
39
|
+
const chain = editor == null ? void 0 : editor.chain();
|
|
40
|
+
if (val === "p") {
|
|
41
|
+
chain == null ? void 0 : chain.focus().setParagraph().run();
|
|
42
|
+
} else {
|
|
43
|
+
const level = parseInt(val.replace("h", ""), 10);
|
|
44
|
+
chain == null ? void 0 : chain.focus().toggleHeading({ level }).run();
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
return /* @__PURE__ */ jsx(
|
|
48
|
+
SelectControl,
|
|
49
|
+
{
|
|
50
|
+
options: headingOptions,
|
|
51
|
+
onChange: handleChange,
|
|
52
|
+
value: currentValue != null ? currentValue : "p",
|
|
53
|
+
defaultValue: "p",
|
|
54
|
+
renderDefaultIcon: Heading
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
export {
|
|
59
|
+
HeadingSelectLoaded
|
|
60
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/Select/styles.module.css/#css-module-data */
|
|
2
|
+
._Select_xjbef_1 {
|
|
3
|
+
position: relative;
|
|
4
|
+
z-index: 1;
|
|
5
|
+
}
|
|
6
|
+
._Select-button_xjbef_6 {
|
|
7
|
+
align-items: center;
|
|
8
|
+
background: transparent;
|
|
9
|
+
border: none;
|
|
10
|
+
border-radius: 4px;
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
gap: 0px;
|
|
14
|
+
height: 100%;
|
|
15
|
+
padding: 4px;
|
|
16
|
+
padding-right: 2px;
|
|
17
|
+
}
|
|
18
|
+
._Select--hasOptions_xjbef_19 ._Select-button_xjbef_6 {
|
|
19
|
+
color: currentColor;
|
|
20
|
+
}
|
|
21
|
+
._Select--hasOptions_xjbef_19:not(._Select--disabled_xjbef_23) ._Select-button_xjbef_6 {
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
}
|
|
24
|
+
._Select-buttonIcon_xjbef_27 {
|
|
25
|
+
align-items: center;
|
|
26
|
+
display: flex;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
}
|
|
29
|
+
._Select--standalone_xjbef_33 ._Select-buttonIcon_xjbef_27 .lucide {
|
|
30
|
+
height: 18px;
|
|
31
|
+
width: 18px;
|
|
32
|
+
}
|
|
33
|
+
._Select--actionBar_xjbef_38 ._Select-buttonIcon_xjbef_27 .lucide {
|
|
34
|
+
height: 16px;
|
|
35
|
+
width: 16px;
|
|
36
|
+
}
|
|
37
|
+
._Select--hasOptions_xjbef_19:not(._Select--disabled_xjbef_23) ._Select-button_xjbef_6:hover,
|
|
38
|
+
._Select--hasValue_xjbef_44 ._Select-button_xjbef_6 {
|
|
39
|
+
background: var(--puck-color-grey-10);
|
|
40
|
+
color: var(--puck-color-azure-04);
|
|
41
|
+
}
|
|
42
|
+
._Select--disabled_xjbef_23 ._Select-button_xjbef_6 {
|
|
43
|
+
color: var(--puck-color-grey-07);
|
|
44
|
+
}
|
|
45
|
+
._Select--actionBar_xjbef_38 {
|
|
46
|
+
&._Select--hasOptions_xjbef_19 ._Select-button_xjbef_6:hover,
|
|
47
|
+
&._Select--hasValue_xjbef_44 ._Select-button_xjbef_6 {
|
|
48
|
+
background: none;
|
|
49
|
+
color: var(--puck-color-azure-07);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
._Select-items_xjbef_61 {
|
|
53
|
+
background: white;
|
|
54
|
+
border: 1px solid var(--puck-color-grey-09);
|
|
55
|
+
border-radius: 8px;
|
|
56
|
+
margin: 10px 8px;
|
|
57
|
+
margin-left: 0;
|
|
58
|
+
padding: 4px;
|
|
59
|
+
z-index: 2;
|
|
60
|
+
list-style: none;
|
|
61
|
+
}
|
|
62
|
+
._SelectItem_xjbef_72 {
|
|
63
|
+
background: transparent;
|
|
64
|
+
border-radius: 4px;
|
|
65
|
+
border: none;
|
|
66
|
+
color: var(--puck-color-grey-04);
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
display: flex;
|
|
69
|
+
gap: 8px;
|
|
70
|
+
align-items: center;
|
|
71
|
+
font-size: var(--puck-font-size-xxs);
|
|
72
|
+
margin: 0;
|
|
73
|
+
padding: 8px 12px;
|
|
74
|
+
width: 100%;
|
|
75
|
+
}
|
|
76
|
+
._SelectItem--isSelected_xjbef_87 {
|
|
77
|
+
background: var(--puck-color-azure-11);
|
|
78
|
+
color: var(--puck-color-azure-04);
|
|
79
|
+
font-weight: 500;
|
|
80
|
+
}
|
|
81
|
+
._SelectItem--isSelected_xjbef_87 ._SelectItem-icon_xjbef_93 {
|
|
82
|
+
color: var(--puck-color-azure-04);
|
|
83
|
+
}
|
|
84
|
+
._SelectItem_xjbef_72:hover {
|
|
85
|
+
background: var(--puck-color-azure-11);
|
|
86
|
+
color: var(--puck-color-azure-04);
|
|
87
|
+
}
|
package/dist/no-external.css
CHANGED
|
@@ -1096,100 +1096,6 @@ textarea._Input-input_bsxfo_26 {
|
|
|
1096
1096
|
padding-inline-start: 8px;
|
|
1097
1097
|
}
|
|
1098
1098
|
|
|
1099
|
-
/* css-module:/home/runner/work/puck/puck/packages/core/components/RichTextEditor/styles.module.css/#css-module-data */
|
|
1100
|
-
._RichTextEditor_1819a_1 .ProseMirror {
|
|
1101
|
-
white-space: pre-wrap;
|
|
1102
|
-
word-wrap: break-word;
|
|
1103
|
-
cursor: text;
|
|
1104
|
-
outline: none;
|
|
1105
|
-
position: relative;
|
|
1106
|
-
}
|
|
1107
|
-
._RichTextEditor_1819a_1 .rich-text * {
|
|
1108
|
-
white-space: pre-wrap;
|
|
1109
|
-
}
|
|
1110
|
-
._RichTextEditor_1819a_1 .rich-text blockquote {
|
|
1111
|
-
margin: 1em 0;
|
|
1112
|
-
padding: 0 1em;
|
|
1113
|
-
border-left: 4px solid var(--puck-color-grey-09);
|
|
1114
|
-
}
|
|
1115
|
-
._RichTextEditor_1819a_1 .rich-text code {
|
|
1116
|
-
background-color: var(--puck-color-grey-11);
|
|
1117
|
-
padding: 4px 8px;
|
|
1118
|
-
border-radius: 4px;
|
|
1119
|
-
}
|
|
1120
|
-
._RichTextEditor_1819a_1 .rich-text p:empty::before {
|
|
1121
|
-
content: "\a0";
|
|
1122
|
-
}
|
|
1123
|
-
._RichTextEditor_1819a_1 .rich-text pre code {
|
|
1124
|
-
display: block;
|
|
1125
|
-
padding: 8px 12px;
|
|
1126
|
-
}
|
|
1127
|
-
._RichTextEditor_1819a_1 .rich-text > *:first-child,
|
|
1128
|
-
._RichTextEditor_1819a_1 .ProseMirror > *:first-child,
|
|
1129
|
-
._RichTextEditor_1819a_1 .rich-text * p:first-of-type {
|
|
1130
|
-
margin-top: 0;
|
|
1131
|
-
}
|
|
1132
|
-
._RichTextEditor_1819a_1 .rich-text > *:last-child,
|
|
1133
|
-
._RichTextEditor_1819a_1 .ProseMirror > *:last-child,
|
|
1134
|
-
._RichTextEditor_1819a_1 .rich-text * p:last-of-type {
|
|
1135
|
-
margin-bottom: 0;
|
|
1136
|
-
}
|
|
1137
|
-
._RichTextEditor--editor_1819a_46 {
|
|
1138
|
-
background: var(--puck-color-white);
|
|
1139
|
-
border-width: 1px;
|
|
1140
|
-
border-style: solid;
|
|
1141
|
-
border-color: var(--puck-color-grey-09);
|
|
1142
|
-
border-radius: 4px;
|
|
1143
|
-
box-sizing: border-box;
|
|
1144
|
-
font-family: inherit;
|
|
1145
|
-
font-size: var(--puck-font-size-xxs);
|
|
1146
|
-
resize: vertical;
|
|
1147
|
-
transition: border-color 50ms ease-in;
|
|
1148
|
-
width: 100%;
|
|
1149
|
-
max-width: 100%;
|
|
1150
|
-
min-height: 128px;
|
|
1151
|
-
}
|
|
1152
|
-
._RichTextEditor--editor_1819a_46 .rich-text:not(:has(.ProseMirror)),
|
|
1153
|
-
._RichTextEditor--editor_1819a_46 .rich-text .ProseMirror {
|
|
1154
|
-
padding: 12px 15px;
|
|
1155
|
-
}
|
|
1156
|
-
._RichTextEditor--editor_1819a_46 .rich-text ul,
|
|
1157
|
-
._RichTextEditor--editor_1819a_46 .rich-text ol {
|
|
1158
|
-
padding-left: 24px;
|
|
1159
|
-
}
|
|
1160
|
-
._RichTextEditor--editor_1819a_46 .rich-text li {
|
|
1161
|
-
line-height: 1.5;
|
|
1162
|
-
}
|
|
1163
|
-
._RichTextEditor--editor_1819a_46 .rich-text p {
|
|
1164
|
-
margin-block: 12px;
|
|
1165
|
-
}
|
|
1166
|
-
._RichTextEditor--editor_1819a_46 .rich-text ul {
|
|
1167
|
-
list-style: disc;
|
|
1168
|
-
}
|
|
1169
|
-
._RichTextEditor--editor_1819a_46 .rich-text ol {
|
|
1170
|
-
list-style: decimal;
|
|
1171
|
-
}
|
|
1172
|
-
._RichTextEditor--editor_1819a_46:focus-within {
|
|
1173
|
-
border-color: var(--puck-color-grey-05);
|
|
1174
|
-
outline: 2px solid var(--puck-color-azure-05);
|
|
1175
|
-
transition: none;
|
|
1176
|
-
}
|
|
1177
|
-
._RichTextEditor--editor_1819a_46._RichTextEditor--disabled_1819a_95 {
|
|
1178
|
-
background: var(--puck-color-grey-11);
|
|
1179
|
-
}
|
|
1180
|
-
._RichTextEditor_1819a_1:not(:focus-within):not(._RichTextEditor--isActive_1819a_99) .ProseMirror ::selection {
|
|
1181
|
-
background-color: transparent;
|
|
1182
|
-
}
|
|
1183
|
-
._RichTextEditor-menu_1819a_105 {
|
|
1184
|
-
border-bottom: 1px solid var(--puck-color-grey-10);
|
|
1185
|
-
position: sticky;
|
|
1186
|
-
top: 0;
|
|
1187
|
-
z-index: 1;
|
|
1188
|
-
}
|
|
1189
|
-
._RichTextEditor--disabled_1819a_95 ._RichTextEditor-menu_1819a_105 {
|
|
1190
|
-
border-bottom: 1px solid var(--puck-color-grey-09);
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
1099
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/RichTextMenu/styles.module.css/#css-module-data */
|
|
1194
1100
|
._RichTextMenu_k97eh_1 {
|
|
1195
1101
|
display: flex;
|
|
@@ -1330,6 +1236,108 @@ textarea._Input-input_bsxfo_26 {
|
|
|
1330
1236
|
color: var(--puck-color-azure-04);
|
|
1331
1237
|
}
|
|
1332
1238
|
|
|
1239
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/RichTextEditor/styles.module.css/#css-module-data */
|
|
1240
|
+
._RichTextEditor_1elol_1 .ProseMirror {
|
|
1241
|
+
white-space: pre-wrap;
|
|
1242
|
+
word-wrap: break-word;
|
|
1243
|
+
cursor: text;
|
|
1244
|
+
outline: none;
|
|
1245
|
+
position: relative;
|
|
1246
|
+
}
|
|
1247
|
+
._RichTextEditor_1elol_1 .rich-text * {
|
|
1248
|
+
white-space: pre-wrap;
|
|
1249
|
+
user-select: auto;
|
|
1250
|
+
-webkit-user-select: auto;
|
|
1251
|
+
}
|
|
1252
|
+
._RichTextEditor_1elol_1 .rich-text blockquote {
|
|
1253
|
+
margin: 1em 0;
|
|
1254
|
+
padding: 0 1em;
|
|
1255
|
+
border-left: 4px solid var(--puck-color-grey-09);
|
|
1256
|
+
}
|
|
1257
|
+
._RichTextEditor_1elol_1 .rich-text code {
|
|
1258
|
+
background-color: var(--puck-color-grey-11);
|
|
1259
|
+
padding: 4px 8px;
|
|
1260
|
+
border-radius: 4px;
|
|
1261
|
+
}
|
|
1262
|
+
._RichTextEditor_1elol_1 .rich-text p:empty::before {
|
|
1263
|
+
content: "\a0";
|
|
1264
|
+
}
|
|
1265
|
+
._RichTextEditor_1elol_1 .rich-text pre code {
|
|
1266
|
+
display: block;
|
|
1267
|
+
padding: 8px 12px;
|
|
1268
|
+
}
|
|
1269
|
+
._RichTextEditor_1elol_1 .rich-text > *:first-child,
|
|
1270
|
+
._RichTextEditor_1elol_1 .ProseMirror > *:first-child,
|
|
1271
|
+
._RichTextEditor_1elol_1 .rich-text * p:first-of-type {
|
|
1272
|
+
margin-top: 0;
|
|
1273
|
+
}
|
|
1274
|
+
._RichTextEditor_1elol_1 .rich-text > *:last-child,
|
|
1275
|
+
._RichTextEditor_1elol_1 .ProseMirror > *:last-child,
|
|
1276
|
+
._RichTextEditor_1elol_1 .rich-text * p:last-of-type {
|
|
1277
|
+
margin-bottom: 0;
|
|
1278
|
+
}
|
|
1279
|
+
._RichTextEditor--editor_1elol_50 {
|
|
1280
|
+
background: var(--puck-color-white);
|
|
1281
|
+
border-width: 1px;
|
|
1282
|
+
border-style: solid;
|
|
1283
|
+
border-color: var(--puck-color-grey-09);
|
|
1284
|
+
border-radius: 4px;
|
|
1285
|
+
box-sizing: border-box;
|
|
1286
|
+
display: flex;
|
|
1287
|
+
flex-direction: column;
|
|
1288
|
+
font-family: inherit;
|
|
1289
|
+
font-size: var(--puck-font-size-xxs);
|
|
1290
|
+
resize: vertical;
|
|
1291
|
+
transition: border-color 50ms ease-in;
|
|
1292
|
+
width: 100%;
|
|
1293
|
+
max-width: 100%;
|
|
1294
|
+
min-height: 128px;
|
|
1295
|
+
}
|
|
1296
|
+
._RichTextEditor--editor_1elol_50 .rich-text {
|
|
1297
|
+
flex-grow: 1;
|
|
1298
|
+
}
|
|
1299
|
+
._RichTextEditor--editor_1elol_50 .rich-text:not(:has(.ProseMirror)),
|
|
1300
|
+
._RichTextEditor--editor_1elol_50 .rich-text .ProseMirror {
|
|
1301
|
+
height: 100%;
|
|
1302
|
+
padding: 12px 15px;
|
|
1303
|
+
}
|
|
1304
|
+
._RichTextEditor--editor_1elol_50 .rich-text ul,
|
|
1305
|
+
._RichTextEditor--editor_1elol_50 .rich-text ol {
|
|
1306
|
+
padding-left: 24px;
|
|
1307
|
+
}
|
|
1308
|
+
._RichTextEditor--editor_1elol_50 .rich-text li {
|
|
1309
|
+
line-height: 1.5;
|
|
1310
|
+
}
|
|
1311
|
+
._RichTextEditor--editor_1elol_50 .rich-text p {
|
|
1312
|
+
margin-block: 12px;
|
|
1313
|
+
}
|
|
1314
|
+
._RichTextEditor--editor_1elol_50 .rich-text ul {
|
|
1315
|
+
list-style: disc;
|
|
1316
|
+
}
|
|
1317
|
+
._RichTextEditor--editor_1elol_50 .rich-text ol {
|
|
1318
|
+
list-style: decimal;
|
|
1319
|
+
}
|
|
1320
|
+
._RichTextEditor--editor_1elol_50:focus-within {
|
|
1321
|
+
border-color: var(--puck-color-grey-05);
|
|
1322
|
+
outline: 2px solid var(--puck-color-azure-05);
|
|
1323
|
+
transition: none;
|
|
1324
|
+
}
|
|
1325
|
+
._RichTextEditor--editor_1elol_50._RichTextEditor--disabled_1elol_106 {
|
|
1326
|
+
background: var(--puck-color-grey-11);
|
|
1327
|
+
}
|
|
1328
|
+
._RichTextEditor_1elol_1:not(:focus-within):not(._RichTextEditor--isActive_1elol_110) .ProseMirror ::selection {
|
|
1329
|
+
background-color: transparent;
|
|
1330
|
+
}
|
|
1331
|
+
._RichTextEditor-menu_1elol_116 {
|
|
1332
|
+
border-bottom: 1px solid var(--puck-color-grey-10);
|
|
1333
|
+
position: sticky;
|
|
1334
|
+
top: 0;
|
|
1335
|
+
z-index: 1;
|
|
1336
|
+
}
|
|
1337
|
+
._RichTextEditor--disabled_1elol_106 ._RichTextEditor-menu_1elol_116 {
|
|
1338
|
+
border-bottom: 1px solid var(--puck-color-grey-09);
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1333
1341
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/AutoField/fields/ObjectField/styles.module.css/#css-module-data */
|
|
1334
1342
|
._ObjectField_1ua3y_5 {
|
|
1335
1343
|
display: flex;
|
package/dist/no-external.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { af as Adaptor, A as AppState, ad as ArrayField,
|
|
1
|
+
export { af as Adaptor, A as AppState, ad as ArrayField, L as ArrayState, aq as AsFieldProps, $ as BaseData, a7 as BaseField, ah as CacheOpts, m as ComponentConfig, T as ComponentConfigExtensions, _ as ComponentConfigParams, c as ComponentData, a3 as ComponentDataMap, a1 as ComponentDataOptionalId, a5 as ComponentMetadata, C as Config, Z as ConfigParams, b as Content, ak as CustomField, aj as CustomFieldRender, D as Data, e as DefaultComponentProps, d as DefaultComponents, f as DefaultRootFieldProps, ao as DefaultRootProps, an as DefaultRootRenderProps, w as Direction, x as DragAxis, ai as ExternalField, ag as ExternalFieldWithAdaptor, Y as ExtractConfigParams, as as ExtractField, p as Field, a6 as FieldMetadata, q as FieldProps, J as FieldRenderFunctions, B as FieldTransformFn, z as FieldTransformFnParams, n as FieldTransforms, F as Fields, H as History, I as IframeConfig, s as InitialHistory, K as ItemWithId, a2 as MappedItem, M as Metadata, a9 as NumberField, ae as ObjectField, O as OnAction, G as OverrideKey, k as Overrides, g as Permissions, j as Plugin, a as PuckAction, Q as PuckComponent, am as PuckContext, a4 as PuckMetadata, ac as RadioField, i as ResolveDataTrigger, v as RichText, o as RichtextField, X as RootConfig, R as RootData, h as RootDataWithProps, a0 as RootDataWithoutProps, ab as SelectField, S as Slot, N as SlotComponent, al as SlotField, a8 as TextField, aa as TextareaField, l as UiState, U as UserGenerics, y as Viewport, V as Viewports, ar as WithChildren, W as WithId, ap as WithPuckProps, u as WithSlotProps, E as overrideKeys } from './actions-CJibIB0m.mjs';
|
|
2
2
|
export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, RichTextMenu, Separator, UsePuckData, createUsePuck, 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-BYuI81Ik.mjs';
|
|
3
4
|
import 'react';
|
|
4
5
|
import '@tiptap/react';
|
|
5
6
|
import '@tiptap/extension-blockquote';
|
|
@@ -17,3 +18,4 @@ import '@tiptap/extension-strike';
|
|
|
17
18
|
import '@tiptap/extension-text-align';
|
|
18
19
|
import '@tiptap/extension-underline';
|
|
19
20
|
import 'react/jsx-runtime';
|
|
21
|
+
import './index-DOcD_H3b.mjs';
|
package/dist/no-external.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { af as Adaptor, A as AppState, ad as ArrayField,
|
|
1
|
+
export { af as Adaptor, A as AppState, ad as ArrayField, L as ArrayState, aq as AsFieldProps, $ as BaseData, a7 as BaseField, ah as CacheOpts, m as ComponentConfig, T as ComponentConfigExtensions, _ as ComponentConfigParams, c as ComponentData, a3 as ComponentDataMap, a1 as ComponentDataOptionalId, a5 as ComponentMetadata, C as Config, Z as ConfigParams, b as Content, ak as CustomField, aj as CustomFieldRender, D as Data, e as DefaultComponentProps, d as DefaultComponents, f as DefaultRootFieldProps, ao as DefaultRootProps, an as DefaultRootRenderProps, w as Direction, x as DragAxis, ai as ExternalField, ag as ExternalFieldWithAdaptor, Y as ExtractConfigParams, as as ExtractField, p as Field, a6 as FieldMetadata, q as FieldProps, J as FieldRenderFunctions, B as FieldTransformFn, z as FieldTransformFnParams, n as FieldTransforms, F as Fields, H as History, I as IframeConfig, s as InitialHistory, K as ItemWithId, a2 as MappedItem, M as Metadata, a9 as NumberField, ae as ObjectField, O as OnAction, G as OverrideKey, k as Overrides, g as Permissions, j as Plugin, a as PuckAction, Q as PuckComponent, am as PuckContext, a4 as PuckMetadata, ac as RadioField, i as ResolveDataTrigger, v as RichText, o as RichtextField, X as RootConfig, R as RootData, h as RootDataWithProps, a0 as RootDataWithoutProps, ab as SelectField, S as Slot, N as SlotComponent, al as SlotField, a8 as TextField, aa as TextareaField, l as UiState, U as UserGenerics, y as Viewport, V as Viewports, ar as WithChildren, W as WithId, ap as WithPuckProps, u as WithSlotProps, E as overrideKeys } from './actions-CJibIB0m.js';
|
|
2
2
|
export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, RichTextMenu, Separator, UsePuckData, createUsePuck, 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-BL55zQ9b.js';
|
|
3
4
|
import 'react';
|
|
4
5
|
import '@tiptap/react';
|
|
5
6
|
import '@tiptap/extension-blockquote';
|
|
@@ -17,3 +18,4 @@ import '@tiptap/extension-strike';
|
|
|
17
18
|
import '@tiptap/extension-text-align';
|
|
18
19
|
import '@tiptap/extension-underline';
|
|
19
20
|
import 'react/jsx-runtime';
|
|
21
|
+
import './index-Bss1jupB.js';
|