@react-email/editor 0.0.0-experimental.30 → 0.0.0-experimental.31
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/core/index.d.cts +1 -1
- package/dist/core/index.d.mts +1 -1
- package/dist/core-mUMTkab3.mjs.map +1 -1
- package/dist/extensions/index.d.cts +1 -1
- package/dist/extensions/index.d.cts.map +1 -1
- package/dist/extensions/index.d.mts +1 -1
- package/dist/{index-ozCcANmD.d.mts → index-BrSAA0dn.d.mts} +2 -2
- package/dist/index-BrSAA0dn.d.mts.map +1 -0
- package/dist/{index-jGyVEd5q.d.cts → index-CVRlPqX_.d.cts} +2 -2
- package/dist/index-CVRlPqX_.d.cts.map +1 -0
- package/dist/plugins/index.d.cts +1 -1
- package/dist/plugins/index.d.cts.map +1 -1
- package/dist/plugins/index.d.mts +1 -1
- package/dist/plugins/index.d.mts.map +1 -1
- package/dist/ui/button-bubble-menu/button-bubble-menu.css +37 -3
- package/dist/ui/index.cjs +964 -51
- package/dist/ui/index.d.cts +409 -49
- package/dist/ui/index.d.cts.map +1 -1
- package/dist/ui/index.d.mts +409 -49
- package/dist/ui/index.d.mts.map +1 -1
- package/dist/ui/index.mjs +890 -10
- package/dist/ui/index.mjs.map +1 -1
- package/dist/ui/link-bubble-menu/link-bubble-menu.css +8 -6
- package/dist/ui/themes/default.css +102 -14
- package/package.json +1 -2
- package/dist/index-jGyVEd5q.d.cts.map +0 -1
- package/dist/index-ozCcANmD.d.mts.map +0 -1
package/dist/ui/index.cjs
CHANGED
|
@@ -5,7 +5,6 @@ let _tiptap_react = require("@tiptap/react");
|
|
|
5
5
|
let react = require("react");
|
|
6
6
|
react = require_columns.__toESM(react);
|
|
7
7
|
let _tiptap_pm_state = require("@tiptap/pm/state");
|
|
8
|
-
let lucide_react = require("lucide-react");
|
|
9
8
|
let _radix_ui_react_popover = require("@radix-ui/react-popover");
|
|
10
9
|
_radix_ui_react_popover = require_columns.__toESM(_radix_ui_react_popover);
|
|
11
10
|
let _tiptap_react_menus = require("@tiptap/react/menus");
|
|
@@ -14,6 +13,730 @@ let _tiptap_suggestion = require("@tiptap/suggestion");
|
|
|
14
13
|
_tiptap_suggestion = require_columns.__toESM(_tiptap_suggestion);
|
|
15
14
|
let react_dom = require("react-dom");
|
|
16
15
|
|
|
16
|
+
//#region src/ui/icons/align-center.tsx
|
|
17
|
+
function AlignCenterIcon({ size, width, height, ...props }) {
|
|
18
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
19
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
20
|
+
width: size ?? width ?? 24,
|
|
21
|
+
height: size ?? height ?? 24,
|
|
22
|
+
viewBox: "0 0 24 24",
|
|
23
|
+
fill: "none",
|
|
24
|
+
stroke: "currentColor",
|
|
25
|
+
strokeWidth: 2,
|
|
26
|
+
strokeLinecap: "round",
|
|
27
|
+
strokeLinejoin: "round",
|
|
28
|
+
"aria-hidden": "true",
|
|
29
|
+
...props,
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M21 5H3" }),
|
|
32
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M17 12H7" }),
|
|
33
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M19 19H5" })
|
|
34
|
+
]
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/ui/icons/align-left.tsx
|
|
40
|
+
function AlignLeftIcon({ size, width, height, ...props }) {
|
|
41
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
42
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
43
|
+
width: size ?? width ?? 24,
|
|
44
|
+
height: size ?? height ?? 24,
|
|
45
|
+
viewBox: "0 0 24 24",
|
|
46
|
+
fill: "none",
|
|
47
|
+
stroke: "currentColor",
|
|
48
|
+
strokeWidth: 2,
|
|
49
|
+
strokeLinecap: "round",
|
|
50
|
+
strokeLinejoin: "round",
|
|
51
|
+
"aria-hidden": "true",
|
|
52
|
+
...props,
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M21 5H3" }),
|
|
55
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M15 12H3" }),
|
|
56
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M17 19H3" })
|
|
57
|
+
]
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/ui/icons/align-right.tsx
|
|
63
|
+
function AlignRightIcon({ size, width, height, ...props }) {
|
|
64
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
65
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
66
|
+
width: size ?? width ?? 24,
|
|
67
|
+
height: size ?? height ?? 24,
|
|
68
|
+
viewBox: "0 0 24 24",
|
|
69
|
+
fill: "none",
|
|
70
|
+
stroke: "currentColor",
|
|
71
|
+
strokeWidth: 2,
|
|
72
|
+
strokeLinecap: "round",
|
|
73
|
+
strokeLinejoin: "round",
|
|
74
|
+
"aria-hidden": "true",
|
|
75
|
+
...props,
|
|
76
|
+
children: [
|
|
77
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M21 5H3" }),
|
|
78
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M21 12H9" }),
|
|
79
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M21 19H7" })
|
|
80
|
+
]
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/ui/icons/bold.tsx
|
|
86
|
+
function BoldIcon({ size, width, height, ...props }) {
|
|
87
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
88
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
89
|
+
width: size ?? width ?? 24,
|
|
90
|
+
height: size ?? height ?? 24,
|
|
91
|
+
viewBox: "0 0 24 24",
|
|
92
|
+
fill: "none",
|
|
93
|
+
stroke: "currentColor",
|
|
94
|
+
strokeWidth: 2,
|
|
95
|
+
strokeLinecap: "round",
|
|
96
|
+
strokeLinejoin: "round",
|
|
97
|
+
"aria-hidden": "true",
|
|
98
|
+
...props,
|
|
99
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8" })
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/ui/icons/case-upper.tsx
|
|
105
|
+
function CaseUpperIcon({ size, width, height, ...props }) {
|
|
106
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
107
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
108
|
+
width: size ?? width ?? 24,
|
|
109
|
+
height: size ?? height ?? 24,
|
|
110
|
+
viewBox: "0 0 24 24",
|
|
111
|
+
fill: "none",
|
|
112
|
+
stroke: "currentColor",
|
|
113
|
+
strokeWidth: 2,
|
|
114
|
+
strokeLinecap: "round",
|
|
115
|
+
strokeLinejoin: "round",
|
|
116
|
+
"aria-hidden": "true",
|
|
117
|
+
...props,
|
|
118
|
+
children: [
|
|
119
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M15 11h4.5a1 1 0 0 1 0 5h-4a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h3a1 1 0 0 1 0 5" }),
|
|
120
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16" }),
|
|
121
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M3.304 13h6.392" })
|
|
122
|
+
]
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region src/ui/icons/check.tsx
|
|
128
|
+
function Check({ size, width, height, ...props }) {
|
|
129
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
130
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
131
|
+
width: size ?? width ?? 24,
|
|
132
|
+
height: size ?? height ?? 24,
|
|
133
|
+
viewBox: "0 0 24 24",
|
|
134
|
+
fill: "none",
|
|
135
|
+
stroke: "currentColor",
|
|
136
|
+
strokeWidth: 2,
|
|
137
|
+
strokeLinecap: "round",
|
|
138
|
+
strokeLinejoin: "round",
|
|
139
|
+
"aria-hidden": "true",
|
|
140
|
+
...props,
|
|
141
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M20 6 9 17l-5-5" })
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
//#endregion
|
|
146
|
+
//#region src/ui/icons/chevron-down.tsx
|
|
147
|
+
function ChevronDown({ size, width, height, ...props }) {
|
|
148
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
149
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
150
|
+
width: size ?? width ?? 24,
|
|
151
|
+
height: size ?? height ?? 24,
|
|
152
|
+
viewBox: "0 0 24 24",
|
|
153
|
+
fill: "none",
|
|
154
|
+
stroke: "currentColor",
|
|
155
|
+
strokeWidth: 2,
|
|
156
|
+
strokeLinecap: "round",
|
|
157
|
+
strokeLinejoin: "round",
|
|
158
|
+
"aria-hidden": "true",
|
|
159
|
+
...props,
|
|
160
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "m6 9 6 6 6-6" })
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
//#endregion
|
|
165
|
+
//#region src/ui/icons/code.tsx
|
|
166
|
+
function CodeIcon({ size, width, height, ...props }) {
|
|
167
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
168
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
169
|
+
width: size ?? width ?? 24,
|
|
170
|
+
height: size ?? height ?? 24,
|
|
171
|
+
viewBox: "0 0 24 24",
|
|
172
|
+
fill: "none",
|
|
173
|
+
stroke: "currentColor",
|
|
174
|
+
strokeWidth: 2,
|
|
175
|
+
strokeLinecap: "round",
|
|
176
|
+
strokeLinejoin: "round",
|
|
177
|
+
"aria-hidden": "true",
|
|
178
|
+
...props,
|
|
179
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "m16 18 6-6-6-6" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "m8 6-6 6 6 6" })]
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
const Code = CodeIcon;
|
|
183
|
+
|
|
184
|
+
//#endregion
|
|
185
|
+
//#region src/ui/icons/columns-2.tsx
|
|
186
|
+
function Columns2({ size, width, height, ...props }) {
|
|
187
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
188
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
189
|
+
width: size ?? width ?? 24,
|
|
190
|
+
height: size ?? height ?? 24,
|
|
191
|
+
viewBox: "0 0 24 24",
|
|
192
|
+
fill: "none",
|
|
193
|
+
stroke: "currentColor",
|
|
194
|
+
strokeWidth: 2,
|
|
195
|
+
strokeLinecap: "round",
|
|
196
|
+
strokeLinejoin: "round",
|
|
197
|
+
"aria-hidden": "true",
|
|
198
|
+
...props,
|
|
199
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("rect", {
|
|
200
|
+
width: "18",
|
|
201
|
+
height: "18",
|
|
202
|
+
x: "3",
|
|
203
|
+
y: "3",
|
|
204
|
+
rx: "2"
|
|
205
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M12 3v18" })]
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
//#endregion
|
|
210
|
+
//#region src/ui/icons/columns-3.tsx
|
|
211
|
+
function Columns3({ size, width, height, ...props }) {
|
|
212
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
213
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
214
|
+
width: size ?? width ?? 24,
|
|
215
|
+
height: size ?? height ?? 24,
|
|
216
|
+
viewBox: "0 0 24 24",
|
|
217
|
+
fill: "none",
|
|
218
|
+
stroke: "currentColor",
|
|
219
|
+
strokeWidth: 2,
|
|
220
|
+
strokeLinecap: "round",
|
|
221
|
+
strokeLinejoin: "round",
|
|
222
|
+
"aria-hidden": "true",
|
|
223
|
+
...props,
|
|
224
|
+
children: [
|
|
225
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("rect", {
|
|
226
|
+
width: "18",
|
|
227
|
+
height: "18",
|
|
228
|
+
x: "3",
|
|
229
|
+
y: "3",
|
|
230
|
+
rx: "2"
|
|
231
|
+
}),
|
|
232
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M9 3v18" }),
|
|
233
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M15 3v18" })
|
|
234
|
+
]
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
//#endregion
|
|
239
|
+
//#region src/ui/icons/columns-4.tsx
|
|
240
|
+
function Columns4({ size, width, height, ...props }) {
|
|
241
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
242
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
243
|
+
width: size ?? width ?? 24,
|
|
244
|
+
height: size ?? height ?? 24,
|
|
245
|
+
viewBox: "0 0 24 24",
|
|
246
|
+
fill: "none",
|
|
247
|
+
stroke: "currentColor",
|
|
248
|
+
strokeWidth: 2,
|
|
249
|
+
strokeLinecap: "round",
|
|
250
|
+
strokeLinejoin: "round",
|
|
251
|
+
"aria-hidden": "true",
|
|
252
|
+
...props,
|
|
253
|
+
children: [
|
|
254
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("rect", {
|
|
255
|
+
width: "18",
|
|
256
|
+
height: "18",
|
|
257
|
+
x: "3",
|
|
258
|
+
y: "3",
|
|
259
|
+
rx: "2"
|
|
260
|
+
}),
|
|
261
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M7.5 3v18" }),
|
|
262
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M12 3v18" }),
|
|
263
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M16.5 3v18" })
|
|
264
|
+
]
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
//#endregion
|
|
269
|
+
//#region src/ui/icons/external-link.tsx
|
|
270
|
+
function ExternalLinkIcon({ size, width, height, ...props }) {
|
|
271
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
272
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
273
|
+
width: size ?? width ?? 24,
|
|
274
|
+
height: size ?? height ?? 24,
|
|
275
|
+
viewBox: "0 0 24 24",
|
|
276
|
+
fill: "none",
|
|
277
|
+
stroke: "currentColor",
|
|
278
|
+
strokeWidth: 2,
|
|
279
|
+
strokeLinecap: "round",
|
|
280
|
+
strokeLinejoin: "round",
|
|
281
|
+
"aria-hidden": "true",
|
|
282
|
+
...props,
|
|
283
|
+
children: [
|
|
284
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M15 3h6v6" }),
|
|
285
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M10 14 21 3" }),
|
|
286
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" })
|
|
287
|
+
]
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
//#endregion
|
|
292
|
+
//#region src/ui/icons/heading-1.tsx
|
|
293
|
+
function Heading1({ size, width, height, ...props }) {
|
|
294
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
295
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
296
|
+
width: size ?? width ?? 24,
|
|
297
|
+
height: size ?? height ?? 24,
|
|
298
|
+
viewBox: "0 0 24 24",
|
|
299
|
+
fill: "none",
|
|
300
|
+
stroke: "currentColor",
|
|
301
|
+
strokeWidth: 2,
|
|
302
|
+
strokeLinecap: "round",
|
|
303
|
+
strokeLinejoin: "round",
|
|
304
|
+
"aria-hidden": "true",
|
|
305
|
+
...props,
|
|
306
|
+
children: [
|
|
307
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M4 12h8" }),
|
|
308
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M4 18V6" }),
|
|
309
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M12 18V6" }),
|
|
310
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "m17 12 3-2v8" })
|
|
311
|
+
]
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
//#endregion
|
|
316
|
+
//#region src/ui/icons/heading-2.tsx
|
|
317
|
+
function Heading2({ size, width, height, ...props }) {
|
|
318
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
319
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
320
|
+
width: size ?? width ?? 24,
|
|
321
|
+
height: size ?? height ?? 24,
|
|
322
|
+
viewBox: "0 0 24 24",
|
|
323
|
+
fill: "none",
|
|
324
|
+
stroke: "currentColor",
|
|
325
|
+
strokeWidth: 2,
|
|
326
|
+
strokeLinecap: "round",
|
|
327
|
+
strokeLinejoin: "round",
|
|
328
|
+
"aria-hidden": "true",
|
|
329
|
+
...props,
|
|
330
|
+
children: [
|
|
331
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M4 12h8" }),
|
|
332
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M4 18V6" }),
|
|
333
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M12 18V6" }),
|
|
334
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1" })
|
|
335
|
+
]
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
//#endregion
|
|
340
|
+
//#region src/ui/icons/heading-3.tsx
|
|
341
|
+
function Heading3({ size, width, height, ...props }) {
|
|
342
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
343
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
344
|
+
width: size ?? width ?? 24,
|
|
345
|
+
height: size ?? height ?? 24,
|
|
346
|
+
viewBox: "0 0 24 24",
|
|
347
|
+
fill: "none",
|
|
348
|
+
stroke: "currentColor",
|
|
349
|
+
strokeWidth: 2,
|
|
350
|
+
strokeLinecap: "round",
|
|
351
|
+
strokeLinejoin: "round",
|
|
352
|
+
"aria-hidden": "true",
|
|
353
|
+
...props,
|
|
354
|
+
children: [
|
|
355
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M4 12h8" }),
|
|
356
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M4 18V6" }),
|
|
357
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M12 18V6" }),
|
|
358
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2" }),
|
|
359
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2" })
|
|
360
|
+
]
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
//#endregion
|
|
365
|
+
//#region src/ui/icons/italic.tsx
|
|
366
|
+
function ItalicIcon({ size, width, height, ...props }) {
|
|
367
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
368
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
369
|
+
width: size ?? width ?? 24,
|
|
370
|
+
height: size ?? height ?? 24,
|
|
371
|
+
viewBox: "0 0 24 24",
|
|
372
|
+
fill: "none",
|
|
373
|
+
stroke: "currentColor",
|
|
374
|
+
strokeWidth: 2,
|
|
375
|
+
strokeLinecap: "round",
|
|
376
|
+
strokeLinejoin: "round",
|
|
377
|
+
"aria-hidden": "true",
|
|
378
|
+
...props,
|
|
379
|
+
children: [
|
|
380
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("line", {
|
|
381
|
+
x1: "19",
|
|
382
|
+
x2: "10",
|
|
383
|
+
y1: "4",
|
|
384
|
+
y2: "4"
|
|
385
|
+
}),
|
|
386
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("line", {
|
|
387
|
+
x1: "14",
|
|
388
|
+
x2: "5",
|
|
389
|
+
y1: "20",
|
|
390
|
+
y2: "20"
|
|
391
|
+
}),
|
|
392
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("line", {
|
|
393
|
+
x1: "15",
|
|
394
|
+
x2: "9",
|
|
395
|
+
y1: "4",
|
|
396
|
+
y2: "20"
|
|
397
|
+
})
|
|
398
|
+
]
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
//#endregion
|
|
403
|
+
//#region src/ui/icons/link.tsx
|
|
404
|
+
function LinkIcon({ size, width, height, ...props }) {
|
|
405
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
406
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
407
|
+
width: size ?? width ?? 24,
|
|
408
|
+
height: size ?? height ?? 24,
|
|
409
|
+
viewBox: "0 0 24 24",
|
|
410
|
+
fill: "none",
|
|
411
|
+
stroke: "currentColor",
|
|
412
|
+
strokeWidth: 2,
|
|
413
|
+
strokeLinecap: "round",
|
|
414
|
+
strokeLinejoin: "round",
|
|
415
|
+
"aria-hidden": "true",
|
|
416
|
+
...props,
|
|
417
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" })]
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
//#endregion
|
|
422
|
+
//#region src/ui/icons/list.tsx
|
|
423
|
+
function List({ size, width, height, ...props }) {
|
|
424
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
425
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
426
|
+
width: size ?? width ?? 24,
|
|
427
|
+
height: size ?? height ?? 24,
|
|
428
|
+
viewBox: "0 0 24 24",
|
|
429
|
+
fill: "none",
|
|
430
|
+
stroke: "currentColor",
|
|
431
|
+
strokeWidth: 2,
|
|
432
|
+
strokeLinecap: "round",
|
|
433
|
+
strokeLinejoin: "round",
|
|
434
|
+
"aria-hidden": "true",
|
|
435
|
+
...props,
|
|
436
|
+
children: [
|
|
437
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M3 5h.01" }),
|
|
438
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M3 12h.01" }),
|
|
439
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M3 19h.01" }),
|
|
440
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M8 5h13" }),
|
|
441
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M8 12h13" }),
|
|
442
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M8 19h13" })
|
|
443
|
+
]
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
//#endregion
|
|
448
|
+
//#region src/ui/icons/list-ordered.tsx
|
|
449
|
+
function ListOrdered({ size, width, height, ...props }) {
|
|
450
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
451
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
452
|
+
width: size ?? width ?? 24,
|
|
453
|
+
height: size ?? height ?? 24,
|
|
454
|
+
viewBox: "0 0 24 24",
|
|
455
|
+
fill: "none",
|
|
456
|
+
stroke: "currentColor",
|
|
457
|
+
strokeWidth: 2,
|
|
458
|
+
strokeLinecap: "round",
|
|
459
|
+
strokeLinejoin: "round",
|
|
460
|
+
"aria-hidden": "true",
|
|
461
|
+
...props,
|
|
462
|
+
children: [
|
|
463
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M11 5h10" }),
|
|
464
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M11 12h10" }),
|
|
465
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M11 19h10" }),
|
|
466
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M4 4h1v5" }),
|
|
467
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M4 9h2" }),
|
|
468
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02" })
|
|
469
|
+
]
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
//#endregion
|
|
474
|
+
//#region src/ui/icons/mouse-pointer.tsx
|
|
475
|
+
function MousePointer({ size, width, height, ...props }) {
|
|
476
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
477
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
478
|
+
width: size ?? width ?? 24,
|
|
479
|
+
height: size ?? height ?? 24,
|
|
480
|
+
viewBox: "0 0 24 24",
|
|
481
|
+
fill: "none",
|
|
482
|
+
stroke: "currentColor",
|
|
483
|
+
strokeWidth: 2,
|
|
484
|
+
strokeLinecap: "round",
|
|
485
|
+
strokeLinejoin: "round",
|
|
486
|
+
"aria-hidden": "true",
|
|
487
|
+
...props,
|
|
488
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M12.586 12.586 19 19" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M3.688 3.037a.497.497 0 0 0-.651.651l6.5 15.999a.501.501 0 0 0 .947-.062l1.569-6.083a2 2 0 0 1 1.448-1.479l6.124-1.579a.5.5 0 0 0 .063-.947z" })]
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
//#endregion
|
|
493
|
+
//#region src/ui/icons/pencil.tsx
|
|
494
|
+
function PencilIcon({ size, width, height, ...props }) {
|
|
495
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
496
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
497
|
+
width: size ?? width ?? 24,
|
|
498
|
+
height: size ?? height ?? 24,
|
|
499
|
+
viewBox: "0 0 24 24",
|
|
500
|
+
fill: "none",
|
|
501
|
+
stroke: "currentColor",
|
|
502
|
+
strokeWidth: 2,
|
|
503
|
+
strokeLinecap: "round",
|
|
504
|
+
strokeLinejoin: "round",
|
|
505
|
+
"aria-hidden": "true",
|
|
506
|
+
...props,
|
|
507
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "m15 5 4 4" })]
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
//#endregion
|
|
512
|
+
//#region src/ui/icons/rows-2.tsx
|
|
513
|
+
function Rows2({ size, width, height, ...props }) {
|
|
514
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
515
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
516
|
+
width: size ?? width ?? 24,
|
|
517
|
+
height: size ?? height ?? 24,
|
|
518
|
+
viewBox: "0 0 24 24",
|
|
519
|
+
fill: "none",
|
|
520
|
+
stroke: "currentColor",
|
|
521
|
+
strokeWidth: 2,
|
|
522
|
+
strokeLinecap: "round",
|
|
523
|
+
strokeLinejoin: "round",
|
|
524
|
+
"aria-hidden": "true",
|
|
525
|
+
...props,
|
|
526
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("rect", {
|
|
527
|
+
width: "18",
|
|
528
|
+
height: "18",
|
|
529
|
+
x: "3",
|
|
530
|
+
y: "3",
|
|
531
|
+
rx: "2"
|
|
532
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M3 12h18" })]
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
//#endregion
|
|
537
|
+
//#region src/ui/icons/split-square-vertical.tsx
|
|
538
|
+
function SplitSquareVertical({ size, width, height, ...props }) {
|
|
539
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
540
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
541
|
+
width: size ?? width ?? 24,
|
|
542
|
+
height: size ?? height ?? 24,
|
|
543
|
+
viewBox: "0 0 24 24",
|
|
544
|
+
fill: "none",
|
|
545
|
+
stroke: "currentColor",
|
|
546
|
+
strokeWidth: 2,
|
|
547
|
+
strokeLinecap: "round",
|
|
548
|
+
strokeLinejoin: "round",
|
|
549
|
+
"aria-hidden": "true",
|
|
550
|
+
...props,
|
|
551
|
+
children: [
|
|
552
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M5 8V5c0-1 1-2 2-2h10c1 0 2 1 2 2v3" }),
|
|
553
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M19 16v3c0 1-1 2-2 2H7c-1 0-2-1-2-2v-3" }),
|
|
554
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("line", {
|
|
555
|
+
x1: "4",
|
|
556
|
+
x2: "20",
|
|
557
|
+
y1: "12",
|
|
558
|
+
y2: "12"
|
|
559
|
+
})
|
|
560
|
+
]
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
//#endregion
|
|
565
|
+
//#region src/ui/icons/square-code.tsx
|
|
566
|
+
function SquareCode({ size, width, height, ...props }) {
|
|
567
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
568
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
569
|
+
width: size ?? width ?? 24,
|
|
570
|
+
height: size ?? height ?? 24,
|
|
571
|
+
viewBox: "0 0 24 24",
|
|
572
|
+
fill: "none",
|
|
573
|
+
stroke: "currentColor",
|
|
574
|
+
strokeWidth: 2,
|
|
575
|
+
strokeLinecap: "round",
|
|
576
|
+
strokeLinejoin: "round",
|
|
577
|
+
"aria-hidden": "true",
|
|
578
|
+
...props,
|
|
579
|
+
children: [
|
|
580
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "m10 9-3 3 3 3" }),
|
|
581
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "m14 15 3-3-3-3" }),
|
|
582
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("rect", {
|
|
583
|
+
x: "3",
|
|
584
|
+
y: "3",
|
|
585
|
+
width: "18",
|
|
586
|
+
height: "18",
|
|
587
|
+
rx: "2"
|
|
588
|
+
})
|
|
589
|
+
]
|
|
590
|
+
});
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
//#endregion
|
|
594
|
+
//#region src/ui/icons/strikethrough.tsx
|
|
595
|
+
function StrikethroughIcon({ size, width, height, ...props }) {
|
|
596
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
597
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
598
|
+
width: size ?? width ?? 24,
|
|
599
|
+
height: size ?? height ?? 24,
|
|
600
|
+
viewBox: "0 0 24 24",
|
|
601
|
+
fill: "none",
|
|
602
|
+
stroke: "currentColor",
|
|
603
|
+
strokeWidth: 2,
|
|
604
|
+
strokeLinecap: "round",
|
|
605
|
+
strokeLinejoin: "round",
|
|
606
|
+
"aria-hidden": "true",
|
|
607
|
+
...props,
|
|
608
|
+
children: [
|
|
609
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M16 4H9a3 3 0 0 0-2.83 4" }),
|
|
610
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M14 12a4 4 0 0 1 0 8H6" }),
|
|
611
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("line", {
|
|
612
|
+
x1: "4",
|
|
613
|
+
x2: "20",
|
|
614
|
+
y1: "12",
|
|
615
|
+
y2: "12"
|
|
616
|
+
})
|
|
617
|
+
]
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
//#endregion
|
|
622
|
+
//#region src/ui/icons/text.tsx
|
|
623
|
+
function TextIcon({ size, width, height, ...props }) {
|
|
624
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
625
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
626
|
+
width: size ?? width ?? 24,
|
|
627
|
+
height: size ?? height ?? 24,
|
|
628
|
+
viewBox: "0 0 24 24",
|
|
629
|
+
fill: "none",
|
|
630
|
+
stroke: "currentColor",
|
|
631
|
+
strokeWidth: 2,
|
|
632
|
+
strokeLinecap: "round",
|
|
633
|
+
strokeLinejoin: "round",
|
|
634
|
+
"aria-hidden": "true",
|
|
635
|
+
...props,
|
|
636
|
+
children: [
|
|
637
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M21 5H3" }),
|
|
638
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M15 12H3" }),
|
|
639
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M17 19H3" })
|
|
640
|
+
]
|
|
641
|
+
});
|
|
642
|
+
}
|
|
643
|
+
const Text = TextIcon;
|
|
644
|
+
|
|
645
|
+
//#endregion
|
|
646
|
+
//#region src/ui/icons/text-quote.tsx
|
|
647
|
+
function TextQuote({ size, width, height, ...props }) {
|
|
648
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
649
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
650
|
+
width: size ?? width ?? 24,
|
|
651
|
+
height: size ?? height ?? 24,
|
|
652
|
+
viewBox: "0 0 24 24",
|
|
653
|
+
fill: "none",
|
|
654
|
+
stroke: "currentColor",
|
|
655
|
+
strokeWidth: 2,
|
|
656
|
+
strokeLinecap: "round",
|
|
657
|
+
strokeLinejoin: "round",
|
|
658
|
+
"aria-hidden": "true",
|
|
659
|
+
...props,
|
|
660
|
+
children: [
|
|
661
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M17 5H3" }),
|
|
662
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M21 12H8" }),
|
|
663
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M21 19H8" }),
|
|
664
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M3 12v7" })
|
|
665
|
+
]
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
//#endregion
|
|
670
|
+
//#region src/ui/icons/underline.tsx
|
|
671
|
+
function UnderlineIcon({ size, width, height, ...props }) {
|
|
672
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
673
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
674
|
+
width: size ?? width ?? 24,
|
|
675
|
+
height: size ?? height ?? 24,
|
|
676
|
+
viewBox: "0 0 24 24",
|
|
677
|
+
fill: "none",
|
|
678
|
+
stroke: "currentColor",
|
|
679
|
+
strokeWidth: 2,
|
|
680
|
+
strokeLinecap: "round",
|
|
681
|
+
strokeLinejoin: "round",
|
|
682
|
+
"aria-hidden": "true",
|
|
683
|
+
...props,
|
|
684
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M6 4v6a6 6 0 0 0 12 0V4" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("line", {
|
|
685
|
+
x1: "4",
|
|
686
|
+
x2: "20",
|
|
687
|
+
y1: "20",
|
|
688
|
+
y2: "20"
|
|
689
|
+
})]
|
|
690
|
+
});
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
//#endregion
|
|
694
|
+
//#region src/ui/icons/unlink.tsx
|
|
695
|
+
function UnlinkIcon({ size, width, height, ...props }) {
|
|
696
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
697
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
698
|
+
width: size ?? width ?? 24,
|
|
699
|
+
height: size ?? height ?? 24,
|
|
700
|
+
viewBox: "0 0 24 24",
|
|
701
|
+
fill: "none",
|
|
702
|
+
stroke: "currentColor",
|
|
703
|
+
strokeWidth: 2,
|
|
704
|
+
strokeLinecap: "round",
|
|
705
|
+
strokeLinejoin: "round",
|
|
706
|
+
"aria-hidden": "true",
|
|
707
|
+
...props,
|
|
708
|
+
children: [
|
|
709
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71" }),
|
|
710
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71" }),
|
|
711
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("line", {
|
|
712
|
+
x1: "8",
|
|
713
|
+
x2: "8",
|
|
714
|
+
y1: "2",
|
|
715
|
+
y2: "5"
|
|
716
|
+
}),
|
|
717
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("line", {
|
|
718
|
+
x1: "2",
|
|
719
|
+
x2: "5",
|
|
720
|
+
y1: "8",
|
|
721
|
+
y2: "8"
|
|
722
|
+
}),
|
|
723
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("line", {
|
|
724
|
+
x1: "16",
|
|
725
|
+
x2: "16",
|
|
726
|
+
y1: "19",
|
|
727
|
+
y2: "22"
|
|
728
|
+
}),
|
|
729
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("line", {
|
|
730
|
+
x1: "19",
|
|
731
|
+
x2: "22",
|
|
732
|
+
y1: "16",
|
|
733
|
+
y2: "16"
|
|
734
|
+
})
|
|
735
|
+
]
|
|
736
|
+
});
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
//#endregion
|
|
17
740
|
//#region src/ui/bubble-menu/context.tsx
|
|
18
741
|
const BubbleMenuContext = react.createContext(null);
|
|
19
742
|
function useBubbleMenuContext() {
|
|
@@ -52,7 +775,7 @@ function BubbleMenuAlignCenter({ className, children }) {
|
|
|
52
775
|
}),
|
|
53
776
|
onCommand: () => require_set_text_alignment.setTextAlignment(editor, "center"),
|
|
54
777
|
className,
|
|
55
|
-
children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
778
|
+
children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AlignCenterIcon, {})
|
|
56
779
|
});
|
|
57
780
|
}
|
|
58
781
|
|
|
@@ -68,7 +791,7 @@ function BubbleMenuAlignLeft({ className, children }) {
|
|
|
68
791
|
}),
|
|
69
792
|
onCommand: () => require_set_text_alignment.setTextAlignment(editor, "left"),
|
|
70
793
|
className,
|
|
71
|
-
children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
794
|
+
children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AlignLeftIcon, {})
|
|
72
795
|
});
|
|
73
796
|
}
|
|
74
797
|
|
|
@@ -84,7 +807,7 @@ function BubbleMenuAlignRight({ className, children }) {
|
|
|
84
807
|
}),
|
|
85
808
|
onCommand: () => require_set_text_alignment.setTextAlignment(editor, "right"),
|
|
86
809
|
className,
|
|
87
|
-
children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
810
|
+
children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AlignRightIcon, {})
|
|
88
811
|
});
|
|
89
812
|
}
|
|
90
813
|
|
|
@@ -123,7 +846,7 @@ const BubbleMenuBold = createMarkBubbleItem({
|
|
|
123
846
|
name: "bold",
|
|
124
847
|
activeName: "bold",
|
|
125
848
|
command: "toggleBold",
|
|
126
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
849
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BoldIcon, {})
|
|
127
850
|
});
|
|
128
851
|
|
|
129
852
|
//#endregion
|
|
@@ -132,7 +855,7 @@ const BubbleMenuCode = createMarkBubbleItem({
|
|
|
132
855
|
name: "code",
|
|
133
856
|
activeName: "code",
|
|
134
857
|
command: "toggleCode",
|
|
135
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
858
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CodeIcon, {})
|
|
136
859
|
});
|
|
137
860
|
|
|
138
861
|
//#endregion
|
|
@@ -151,7 +874,7 @@ const BubbleMenuItalic = createMarkBubbleItem({
|
|
|
151
874
|
name: "italic",
|
|
152
875
|
activeName: "italic",
|
|
153
876
|
command: "toggleItalic",
|
|
154
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
877
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ItalicIcon, {})
|
|
155
878
|
});
|
|
156
879
|
|
|
157
880
|
//#endregion
|
|
@@ -247,7 +970,7 @@ function BubbleMenuLinkSelector({ className, showToggle = true, validateUrl, onL
|
|
|
247
970
|
"aria-pressed": editorState.isLinkActive && editorState.hasLink,
|
|
248
971
|
"data-re-link-selector-trigger": "",
|
|
249
972
|
onClick: handleOpenLink,
|
|
250
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
973
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LinkIcon, {})
|
|
251
974
|
}), isOpen && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LinkForm, {
|
|
252
975
|
editor,
|
|
253
976
|
currentHref: editorState.currentHref,
|
|
@@ -348,13 +1071,13 @@ function LinkForm({ editor, currentHref, validateUrl, onLinkApply, onLinkRemove,
|
|
|
348
1071
|
"aria-label": "Remove link",
|
|
349
1072
|
"data-re-link-selector-unlink": "",
|
|
350
1073
|
onClick: handleUnlink,
|
|
351
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1074
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(UnlinkIcon, {})
|
|
352
1075
|
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
353
1076
|
type: "submit",
|
|
354
1077
|
"aria-label": "Apply link",
|
|
355
1078
|
"data-re-link-selector-apply": "",
|
|
356
1079
|
onMouseDown: (e) => e.stopPropagation(),
|
|
357
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1080
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Check, {})
|
|
358
1081
|
})
|
|
359
1082
|
]
|
|
360
1083
|
});
|
|
@@ -393,49 +1116,49 @@ function NodeSelectorRoot({ omit = [], open: controlledOpen, onOpenChange, class
|
|
|
393
1116
|
const allItems = react.useMemo(() => [
|
|
394
1117
|
{
|
|
395
1118
|
name: "Text",
|
|
396
|
-
icon:
|
|
1119
|
+
icon: TextIcon,
|
|
397
1120
|
command: () => editor.chain().focus().clearNodes().toggleNode("paragraph", "paragraph").run(),
|
|
398
1121
|
isActive: editorState?.isParagraphActive ?? false
|
|
399
1122
|
},
|
|
400
1123
|
{
|
|
401
1124
|
name: "Title",
|
|
402
|
-
icon:
|
|
1125
|
+
icon: Heading1,
|
|
403
1126
|
command: () => editor.chain().focus().clearNodes().toggleHeading({ level: 1 }).run(),
|
|
404
1127
|
isActive: editorState?.isHeading1Active ?? false
|
|
405
1128
|
},
|
|
406
1129
|
{
|
|
407
1130
|
name: "Subtitle",
|
|
408
|
-
icon:
|
|
1131
|
+
icon: Heading2,
|
|
409
1132
|
command: () => editor.chain().focus().clearNodes().toggleHeading({ level: 2 }).run(),
|
|
410
1133
|
isActive: editorState?.isHeading2Active ?? false
|
|
411
1134
|
},
|
|
412
1135
|
{
|
|
413
1136
|
name: "Heading",
|
|
414
|
-
icon:
|
|
1137
|
+
icon: Heading3,
|
|
415
1138
|
command: () => editor.chain().focus().clearNodes().toggleHeading({ level: 3 }).run(),
|
|
416
1139
|
isActive: editorState?.isHeading3Active ?? false
|
|
417
1140
|
},
|
|
418
1141
|
{
|
|
419
1142
|
name: "Bullet List",
|
|
420
|
-
icon:
|
|
1143
|
+
icon: List,
|
|
421
1144
|
command: () => editor.chain().focus().clearNodes().toggleBulletList().run(),
|
|
422
1145
|
isActive: editorState?.isBulletListActive ?? false
|
|
423
1146
|
},
|
|
424
1147
|
{
|
|
425
1148
|
name: "Numbered List",
|
|
426
|
-
icon:
|
|
1149
|
+
icon: ListOrdered,
|
|
427
1150
|
command: () => editor.chain().focus().clearNodes().toggleOrderedList().run(),
|
|
428
1151
|
isActive: editorState?.isOrderedListActive ?? false
|
|
429
1152
|
},
|
|
430
1153
|
{
|
|
431
1154
|
name: "Quote",
|
|
432
|
-
icon:
|
|
1155
|
+
icon: TextQuote,
|
|
433
1156
|
command: () => editor.chain().focus().clearNodes().toggleNode("paragraph", "paragraph").toggleBlockquote().run(),
|
|
434
1157
|
isActive: editorState?.isBlockquoteActive ?? false
|
|
435
1158
|
},
|
|
436
1159
|
{
|
|
437
1160
|
name: "Code",
|
|
438
|
-
icon:
|
|
1161
|
+
icon: Code,
|
|
439
1162
|
command: () => editor.chain().focus().clearNodes().toggleCodeBlock().run(),
|
|
440
1163
|
isActive: editorState?.isCodeBlockActive ?? false
|
|
441
1164
|
}
|
|
@@ -474,7 +1197,7 @@ function NodeSelectorTrigger({ className, children }) {
|
|
|
474
1197
|
"data-re-node-selector-trigger": "",
|
|
475
1198
|
className,
|
|
476
1199
|
onClick: () => setIsOpen(!isOpen),
|
|
477
|
-
children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: activeItem.name }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1200
|
+
children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: activeItem.name }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ChevronDown, {})] })
|
|
478
1201
|
});
|
|
479
1202
|
}
|
|
480
1203
|
function NodeSelectorContent({ className, align = "start", children }) {
|
|
@@ -496,7 +1219,7 @@ function NodeSelectorContent({ className, align = "start", children }) {
|
|
|
496
1219
|
children: [
|
|
497
1220
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {}),
|
|
498
1221
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: item.name }),
|
|
499
|
-
item.isActive && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1222
|
+
item.isActive && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Check, {})
|
|
500
1223
|
]
|
|
501
1224
|
}, item.name);
|
|
502
1225
|
})
|
|
@@ -514,14 +1237,20 @@ function BubbleMenuNodeSelector({ omit = [], className, triggerContent, open, on
|
|
|
514
1237
|
|
|
515
1238
|
//#endregion
|
|
516
1239
|
//#region src/ui/bubble-menu/root.tsx
|
|
517
|
-
function BubbleMenuRoot({ excludeNodes = [], placement = "bottom", offset: offset$1 = 8, onHide, className, children }) {
|
|
1240
|
+
function BubbleMenuRoot({ excludeNodes = [], excludeMarks = [], placement = "bottom", offset: offset$1 = 8, onHide, className, children }) {
|
|
518
1241
|
const { editor } = (0, _tiptap_react.useCurrentEditor)();
|
|
519
1242
|
if (!editor) return null;
|
|
520
1243
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_tiptap_react_menus.BubbleMenu, {
|
|
521
1244
|
editor,
|
|
1245
|
+
pluginKey: "textBubbleMenu",
|
|
522
1246
|
"data-re-bubble-menu": "",
|
|
523
|
-
shouldShow: ({ editor: editor$1, view }) => {
|
|
524
|
-
for (const node of excludeNodes)
|
|
1247
|
+
shouldShow: ({ editor: editor$1, view, state }) => {
|
|
1248
|
+
for (const node of excludeNodes) {
|
|
1249
|
+
if (editor$1.isActive(node)) return false;
|
|
1250
|
+
const { $from } = state.selection;
|
|
1251
|
+
for (let d = $from.depth; d > 0; d--) if ($from.node(d).type.name === node) return false;
|
|
1252
|
+
}
|
|
1253
|
+
for (const mark of excludeMarks) if (editor$1.isActive(mark)) return false;
|
|
525
1254
|
if (view.dom.classList.contains("dragging")) return false;
|
|
526
1255
|
return editor$1.view.state.selection.content().size > 0;
|
|
527
1256
|
},
|
|
@@ -544,7 +1273,7 @@ const BubbleMenuStrike = createMarkBubbleItem({
|
|
|
544
1273
|
name: "strike",
|
|
545
1274
|
activeName: "strike",
|
|
546
1275
|
command: "toggleStrike",
|
|
547
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1276
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StrikethroughIcon, {})
|
|
548
1277
|
});
|
|
549
1278
|
|
|
550
1279
|
//#endregion
|
|
@@ -553,7 +1282,7 @@ const BubbleMenuUnderline = createMarkBubbleItem({
|
|
|
553
1282
|
name: "underline",
|
|
554
1283
|
activeName: "underline",
|
|
555
1284
|
command: "toggleUnderline",
|
|
556
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1285
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(UnderlineIcon, {})
|
|
557
1286
|
});
|
|
558
1287
|
|
|
559
1288
|
//#endregion
|
|
@@ -562,12 +1291,12 @@ const BubbleMenuUppercase = createMarkBubbleItem({
|
|
|
562
1291
|
name: "uppercase",
|
|
563
1292
|
activeName: "uppercase",
|
|
564
1293
|
command: "toggleUppercase",
|
|
565
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1294
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CaseUpperIcon, {})
|
|
566
1295
|
});
|
|
567
1296
|
|
|
568
1297
|
//#endregion
|
|
569
1298
|
//#region src/ui/bubble-menu/default.tsx
|
|
570
|
-
function BubbleMenuDefault({ excludeItems = [], excludeNodes, placement, offset: offset$1, onHide, className }) {
|
|
1299
|
+
function BubbleMenuDefault({ excludeItems = [], excludeNodes, excludeMarks, placement, offset: offset$1, onHide, className }) {
|
|
571
1300
|
const [isNodeSelectorOpen, setIsNodeSelectorOpen] = react.useState(false);
|
|
572
1301
|
const [isLinkSelectorOpen, setIsLinkSelectorOpen] = react.useState(false);
|
|
573
1302
|
const has = (item) => !excludeItems.includes(item);
|
|
@@ -588,6 +1317,7 @@ function BubbleMenuDefault({ excludeItems = [], excludeNodes, placement, offset:
|
|
|
588
1317
|
const hasAlignmentItems = has("align-left") || has("align-center") || has("align-right");
|
|
589
1318
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(BubbleMenuRoot, {
|
|
590
1319
|
excludeNodes,
|
|
1320
|
+
excludeMarks,
|
|
591
1321
|
placement,
|
|
592
1322
|
offset: offset$1,
|
|
593
1323
|
onHide: handleHide,
|
|
@@ -680,7 +1410,109 @@ function ButtonBubbleMenuEditLink({ className, children, onClick, onMouseDown, .
|
|
|
680
1410
|
onClick?.(e);
|
|
681
1411
|
setIsEditing(true);
|
|
682
1412
|
},
|
|
683
|
-
children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1413
|
+
children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PencilIcon, {})
|
|
1414
|
+
});
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
//#endregion
|
|
1418
|
+
//#region src/ui/button-bubble-menu/form.tsx
|
|
1419
|
+
function ButtonBubbleMenuForm({ className, validateUrl, onLinkApply, onLinkRemove }) {
|
|
1420
|
+
const { editor, buttonHref, isEditing, setIsEditing } = useButtonBubbleMenuContext();
|
|
1421
|
+
const inputRef = react.useRef(null);
|
|
1422
|
+
const formRef = react.useRef(null);
|
|
1423
|
+
const displayHref = buttonHref === "#" ? "" : buttonHref;
|
|
1424
|
+
const [inputValue, setInputValue] = react.useState(displayHref);
|
|
1425
|
+
react.useEffect(() => {
|
|
1426
|
+
if (!isEditing) return;
|
|
1427
|
+
setInputValue(displayHref);
|
|
1428
|
+
const timeoutId = setTimeout(() => {
|
|
1429
|
+
inputRef.current?.focus();
|
|
1430
|
+
}, 0);
|
|
1431
|
+
return () => clearTimeout(timeoutId);
|
|
1432
|
+
}, [isEditing, displayHref]);
|
|
1433
|
+
react.useEffect(() => {
|
|
1434
|
+
if (!isEditing) return;
|
|
1435
|
+
const handleKeyDown = (event) => {
|
|
1436
|
+
if (event.key === "Escape") setIsEditing(false);
|
|
1437
|
+
};
|
|
1438
|
+
const handleClickOutside = (event) => {
|
|
1439
|
+
if (formRef.current && !formRef.current.contains(event.target)) {
|
|
1440
|
+
const form = formRef.current;
|
|
1441
|
+
const submitEvent = new Event("submit", {
|
|
1442
|
+
bubbles: true,
|
|
1443
|
+
cancelable: true
|
|
1444
|
+
});
|
|
1445
|
+
form.dispatchEvent(submitEvent);
|
|
1446
|
+
setIsEditing(false);
|
|
1447
|
+
}
|
|
1448
|
+
};
|
|
1449
|
+
document.addEventListener("mousedown", handleClickOutside);
|
|
1450
|
+
window.addEventListener("keydown", handleKeyDown);
|
|
1451
|
+
return () => {
|
|
1452
|
+
window.removeEventListener("keydown", handleKeyDown);
|
|
1453
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
|
1454
|
+
};
|
|
1455
|
+
}, [isEditing, setIsEditing]);
|
|
1456
|
+
if (!isEditing) return null;
|
|
1457
|
+
function handleSubmit(e) {
|
|
1458
|
+
e.preventDefault();
|
|
1459
|
+
const value = inputValue.trim();
|
|
1460
|
+
if (value === "") {
|
|
1461
|
+
editor.commands.updateButton({ href: "#" });
|
|
1462
|
+
setIsEditing(false);
|
|
1463
|
+
focusEditor(editor);
|
|
1464
|
+
onLinkRemove?.();
|
|
1465
|
+
return;
|
|
1466
|
+
}
|
|
1467
|
+
const finalValue = (validateUrl ?? getUrlFromString)(value);
|
|
1468
|
+
if (!finalValue) {
|
|
1469
|
+
editor.commands.updateButton({ href: "#" });
|
|
1470
|
+
setIsEditing(false);
|
|
1471
|
+
focusEditor(editor);
|
|
1472
|
+
onLinkRemove?.();
|
|
1473
|
+
return;
|
|
1474
|
+
}
|
|
1475
|
+
editor.commands.updateButton({ href: finalValue });
|
|
1476
|
+
setIsEditing(false);
|
|
1477
|
+
focusEditor(editor);
|
|
1478
|
+
onLinkApply?.(finalValue);
|
|
1479
|
+
}
|
|
1480
|
+
function handleUnlink(e) {
|
|
1481
|
+
e.stopPropagation();
|
|
1482
|
+
editor.commands.updateButton({ href: "#" });
|
|
1483
|
+
setIsEditing(false);
|
|
1484
|
+
focusEditor(editor);
|
|
1485
|
+
onLinkRemove?.();
|
|
1486
|
+
}
|
|
1487
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("form", {
|
|
1488
|
+
ref: formRef,
|
|
1489
|
+
"data-re-btn-bm-form": "",
|
|
1490
|
+
className,
|
|
1491
|
+
onMouseDown: (e) => e.stopPropagation(),
|
|
1492
|
+
onClick: (e) => e.stopPropagation(),
|
|
1493
|
+
onKeyDown: (e) => e.stopPropagation(),
|
|
1494
|
+
onSubmit: handleSubmit,
|
|
1495
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
1496
|
+
ref: inputRef,
|
|
1497
|
+
"data-re-btn-bm-input": "",
|
|
1498
|
+
value: inputValue,
|
|
1499
|
+
onFocus: (e) => e.stopPropagation(),
|
|
1500
|
+
onChange: (e) => setInputValue(e.target.value),
|
|
1501
|
+
placeholder: "Paste a link",
|
|
1502
|
+
type: "text"
|
|
1503
|
+
}), displayHref ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
1504
|
+
type: "button",
|
|
1505
|
+
"aria-label": "Remove link",
|
|
1506
|
+
"data-re-btn-bm-unlink": "",
|
|
1507
|
+
onClick: handleUnlink,
|
|
1508
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(UnlinkIcon, {})
|
|
1509
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
1510
|
+
type: "submit",
|
|
1511
|
+
"aria-label": "Apply link",
|
|
1512
|
+
"data-re-btn-bm-apply": "",
|
|
1513
|
+
onMouseDown: (e) => e.stopPropagation(),
|
|
1514
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Check, {})
|
|
1515
|
+
})]
|
|
684
1516
|
});
|
|
685
1517
|
}
|
|
686
1518
|
|
|
@@ -689,9 +1521,14 @@ function ButtonBubbleMenuEditLink({ className, children, onClick, onMouseDown, .
|
|
|
689
1521
|
function ButtonBubbleMenuRoot({ onHide, placement = "top", offset: offset$1 = 8, className, children }) {
|
|
690
1522
|
const { editor } = (0, _tiptap_react.useCurrentEditor)();
|
|
691
1523
|
const [isEditing, setIsEditing] = react.useState(false);
|
|
1524
|
+
const buttonHref = (0, _tiptap_react.useEditorState)({
|
|
1525
|
+
editor,
|
|
1526
|
+
selector: ({ editor: e }) => e?.getAttributes("button").href ?? ""
|
|
1527
|
+
});
|
|
692
1528
|
if (!editor) return null;
|
|
693
1529
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_tiptap_react_menus.BubbleMenu, {
|
|
694
1530
|
editor,
|
|
1531
|
+
pluginKey: "buttonBubbleMenu",
|
|
695
1532
|
"data-re-btn-bm": "",
|
|
696
1533
|
shouldShow: ({ editor: e, view }) => e.isActive("button") && !view.dom.classList.contains("dragging"),
|
|
697
1534
|
options: {
|
|
@@ -706,6 +1543,7 @@ function ButtonBubbleMenuRoot({ onHide, placement = "top", offset: offset$1 = 8,
|
|
|
706
1543
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ButtonBubbleMenuContext.Provider, {
|
|
707
1544
|
value: {
|
|
708
1545
|
editor,
|
|
1546
|
+
buttonHref: buttonHref ?? "",
|
|
709
1547
|
isEditing,
|
|
710
1548
|
setIsEditing
|
|
711
1549
|
},
|
|
@@ -726,15 +1564,52 @@ function ButtonBubbleMenuToolbar({ children, ...rest }) {
|
|
|
726
1564
|
});
|
|
727
1565
|
}
|
|
728
1566
|
|
|
1567
|
+
//#endregion
|
|
1568
|
+
//#region src/ui/button-bubble-menu/unlink.tsx
|
|
1569
|
+
function ButtonBubbleMenuUnlink({ className, children, onClick, onMouseDown, onLinkRemove, ...rest }) {
|
|
1570
|
+
const { editor } = useButtonBubbleMenuContext();
|
|
1571
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
1572
|
+
...rest,
|
|
1573
|
+
type: "button",
|
|
1574
|
+
"aria-label": "Remove link",
|
|
1575
|
+
"data-re-btn-bm-item": "",
|
|
1576
|
+
"data-item": "unlink",
|
|
1577
|
+
className,
|
|
1578
|
+
onMouseDown: (e) => {
|
|
1579
|
+
e.preventDefault();
|
|
1580
|
+
onMouseDown?.(e);
|
|
1581
|
+
},
|
|
1582
|
+
onClick: (e) => {
|
|
1583
|
+
onClick?.(e);
|
|
1584
|
+
editor.commands.updateButton({ href: "#" });
|
|
1585
|
+
focusEditor(editor);
|
|
1586
|
+
onLinkRemove?.();
|
|
1587
|
+
},
|
|
1588
|
+
children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(UnlinkIcon, {})
|
|
1589
|
+
});
|
|
1590
|
+
}
|
|
1591
|
+
|
|
729
1592
|
//#endregion
|
|
730
1593
|
//#region src/ui/button-bubble-menu/default.tsx
|
|
731
|
-
function
|
|
1594
|
+
function ButtonBubbleMenuDefaultInner({ validateUrl, onLinkApply, onLinkRemove }) {
|
|
1595
|
+
const { buttonHref } = useButtonBubbleMenuContext();
|
|
1596
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(ButtonBubbleMenuToolbar, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ButtonBubbleMenuEditLink, {}), buttonHref !== "" && buttonHref !== "#" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ButtonBubbleMenuUnlink, { onLinkRemove })] }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ButtonBubbleMenuForm, {
|
|
1597
|
+
validateUrl,
|
|
1598
|
+
onLinkApply,
|
|
1599
|
+
onLinkRemove
|
|
1600
|
+
})] });
|
|
1601
|
+
}
|
|
1602
|
+
function ButtonBubbleMenuDefault({ placement, offset: offset$1, onHide, className, validateUrl, onLinkApply, onLinkRemove }) {
|
|
732
1603
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ButtonBubbleMenuRoot, {
|
|
733
1604
|
placement,
|
|
734
1605
|
offset: offset$1,
|
|
735
1606
|
onHide,
|
|
736
1607
|
className,
|
|
737
|
-
children:
|
|
1608
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ButtonBubbleMenuDefaultInner, {
|
|
1609
|
+
validateUrl,
|
|
1610
|
+
onLinkApply,
|
|
1611
|
+
onLinkRemove
|
|
1612
|
+
})
|
|
738
1613
|
});
|
|
739
1614
|
}
|
|
740
1615
|
|
|
@@ -744,6 +1619,8 @@ const ButtonBubbleMenu = {
|
|
|
744
1619
|
Root: ButtonBubbleMenuRoot,
|
|
745
1620
|
Toolbar: ButtonBubbleMenuToolbar,
|
|
746
1621
|
EditLink: ButtonBubbleMenuEditLink,
|
|
1622
|
+
Unlink: ButtonBubbleMenuUnlink,
|
|
1623
|
+
Form: ButtonBubbleMenuForm,
|
|
747
1624
|
Default: ButtonBubbleMenuDefault
|
|
748
1625
|
};
|
|
749
1626
|
|
|
@@ -775,7 +1652,7 @@ function ImageBubbleMenuEditLink({ className, children, onClick, onMouseDown, ..
|
|
|
775
1652
|
onClick?.(e);
|
|
776
1653
|
setIsEditing(true);
|
|
777
1654
|
},
|
|
778
|
-
children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1655
|
+
children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LinkIcon, {})
|
|
779
1656
|
});
|
|
780
1657
|
}
|
|
781
1658
|
|
|
@@ -787,6 +1664,7 @@ function ImageBubbleMenuRoot({ onHide, placement = "top", offset: offset$1 = 8,
|
|
|
787
1664
|
if (!editor) return null;
|
|
788
1665
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_tiptap_react_menus.BubbleMenu, {
|
|
789
1666
|
editor,
|
|
1667
|
+
pluginKey: "imageBubbleMenu",
|
|
790
1668
|
"data-re-img-bm": "",
|
|
791
1669
|
shouldShow: ({ editor: e, view }) => e.isActive("image") && !view.dom.classList.contains("dragging"),
|
|
792
1670
|
options: {
|
|
@@ -870,7 +1748,7 @@ function LinkBubbleMenuEditLink({ className, children, onClick, onMouseDown, ...
|
|
|
870
1748
|
setIsEditing(true);
|
|
871
1749
|
},
|
|
872
1750
|
...rest,
|
|
873
|
-
children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1751
|
+
children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PencilIcon, {})
|
|
874
1752
|
});
|
|
875
1753
|
}
|
|
876
1754
|
|
|
@@ -884,11 +1762,12 @@ function LinkBubbleMenuForm({ className, validateUrl, onLinkApply, onLinkRemove,
|
|
|
884
1762
|
const [inputValue, setInputValue] = react.useState(displayHref);
|
|
885
1763
|
react.useEffect(() => {
|
|
886
1764
|
if (!isEditing) return;
|
|
1765
|
+
setInputValue(displayHref);
|
|
887
1766
|
const timeoutId = setTimeout(() => {
|
|
888
1767
|
inputRef.current?.focus();
|
|
889
1768
|
}, 0);
|
|
890
1769
|
return () => clearTimeout(timeoutId);
|
|
891
|
-
}, [isEditing]);
|
|
1770
|
+
}, [isEditing, displayHref]);
|
|
892
1771
|
react.useEffect(() => {
|
|
893
1772
|
if (!isEditing) return;
|
|
894
1773
|
const handleKeyDown = (event) => {
|
|
@@ -967,13 +1846,13 @@ function LinkBubbleMenuForm({ className, validateUrl, onLinkApply, onLinkRemove,
|
|
|
967
1846
|
"aria-label": "Remove link",
|
|
968
1847
|
"data-re-link-bm-unlink": "",
|
|
969
1848
|
onClick: handleUnlink,
|
|
970
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1849
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(UnlinkIcon, {})
|
|
971
1850
|
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
972
1851
|
type: "submit",
|
|
973
1852
|
"aria-label": "Apply link",
|
|
974
1853
|
"data-re-link-bm-apply": "",
|
|
975
1854
|
onMouseDown: (e) => e.stopPropagation(),
|
|
976
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1855
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Check, {})
|
|
977
1856
|
})
|
|
978
1857
|
]
|
|
979
1858
|
});
|
|
@@ -992,7 +1871,7 @@ function LinkBubbleMenuOpenLink({ className, children, ...rest }) {
|
|
|
992
1871
|
"data-re-link-bm-item": "",
|
|
993
1872
|
"data-item": "open-link",
|
|
994
1873
|
className,
|
|
995
|
-
children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1874
|
+
children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExternalLinkIcon, {})
|
|
996
1875
|
});
|
|
997
1876
|
}
|
|
998
1877
|
|
|
@@ -1008,6 +1887,7 @@ function LinkBubbleMenuRoot({ onHide, placement = "top", offset: offset$1 = 8, c
|
|
|
1008
1887
|
if (!editor) return null;
|
|
1009
1888
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_tiptap_react_menus.BubbleMenu, {
|
|
1010
1889
|
editor,
|
|
1890
|
+
pluginKey: "linkBubbleMenu",
|
|
1011
1891
|
"data-re-link-bm": "",
|
|
1012
1892
|
shouldShow: ({ editor: e }) => e.isActive("link") && e.view.state.selection.content().size === 0,
|
|
1013
1893
|
options: {
|
|
@@ -1062,7 +1942,7 @@ function LinkBubbleMenuUnlink({ className, children, onClick, onMouseDown, ...re
|
|
|
1062
1942
|
editor.chain().focus().unsetLink().run();
|
|
1063
1943
|
},
|
|
1064
1944
|
...rest,
|
|
1065
|
-
children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1945
|
+
children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(UnlinkIcon, {})
|
|
1066
1946
|
});
|
|
1067
1947
|
}
|
|
1068
1948
|
|
|
@@ -1206,7 +2086,7 @@ function CommandList({ items, query, selectedIndex, onSelect }) {
|
|
|
1206
2086
|
const TEXT = {
|
|
1207
2087
|
title: "Text",
|
|
1208
2088
|
description: "Plain text block",
|
|
1209
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
2089
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Text, { size: 20 }),
|
|
1210
2090
|
category: "Text",
|
|
1211
2091
|
searchTerms: ["p", "paragraph"],
|
|
1212
2092
|
command: ({ editor, range }) => {
|
|
@@ -1216,7 +2096,7 @@ const TEXT = {
|
|
|
1216
2096
|
const H1 = {
|
|
1217
2097
|
title: "Title",
|
|
1218
2098
|
description: "Large heading",
|
|
1219
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
2099
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Heading1, { size: 20 }),
|
|
1220
2100
|
category: "Text",
|
|
1221
2101
|
searchTerms: [
|
|
1222
2102
|
"title",
|
|
@@ -1231,7 +2111,7 @@ const H1 = {
|
|
|
1231
2111
|
const H2 = {
|
|
1232
2112
|
title: "Subtitle",
|
|
1233
2113
|
description: "Medium heading",
|
|
1234
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
2114
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Heading2, { size: 20 }),
|
|
1235
2115
|
category: "Text",
|
|
1236
2116
|
searchTerms: [
|
|
1237
2117
|
"subtitle",
|
|
@@ -1245,7 +2125,7 @@ const H2 = {
|
|
|
1245
2125
|
const H3 = {
|
|
1246
2126
|
title: "Heading",
|
|
1247
2127
|
description: "Small heading",
|
|
1248
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
2128
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Heading3, { size: 20 }),
|
|
1249
2129
|
category: "Text",
|
|
1250
2130
|
searchTerms: [
|
|
1251
2131
|
"subtitle",
|
|
@@ -1259,7 +2139,7 @@ const H3 = {
|
|
|
1259
2139
|
const BULLET_LIST = {
|
|
1260
2140
|
title: "Bullet list",
|
|
1261
2141
|
description: "Unordered list",
|
|
1262
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
2142
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(List, { size: 20 }),
|
|
1263
2143
|
category: "Text",
|
|
1264
2144
|
searchTerms: ["unordered", "point"],
|
|
1265
2145
|
command: ({ editor, range }) => {
|
|
@@ -1269,7 +2149,7 @@ const BULLET_LIST = {
|
|
|
1269
2149
|
const NUMBERED_LIST = {
|
|
1270
2150
|
title: "Numbered list",
|
|
1271
2151
|
description: "Ordered list",
|
|
1272
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
2152
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ListOrdered, { size: 20 }),
|
|
1273
2153
|
category: "Text",
|
|
1274
2154
|
searchTerms: ["ordered"],
|
|
1275
2155
|
command: ({ editor, range }) => {
|
|
@@ -1279,7 +2159,7 @@ const NUMBERED_LIST = {
|
|
|
1279
2159
|
const QUOTE = {
|
|
1280
2160
|
title: "Quote",
|
|
1281
2161
|
description: "Block quote",
|
|
1282
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
2162
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TextQuote, { size: 20 }),
|
|
1283
2163
|
category: "Text",
|
|
1284
2164
|
searchTerms: ["blockquote"],
|
|
1285
2165
|
command: ({ editor, range }) => {
|
|
@@ -1289,7 +2169,7 @@ const QUOTE = {
|
|
|
1289
2169
|
const CODE = {
|
|
1290
2170
|
title: "Code block",
|
|
1291
2171
|
description: "Code snippet",
|
|
1292
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
2172
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SquareCode, { size: 20 }),
|
|
1293
2173
|
category: "Text",
|
|
1294
2174
|
searchTerms: ["codeblock"],
|
|
1295
2175
|
command: ({ editor, range }) => {
|
|
@@ -1299,7 +2179,7 @@ const CODE = {
|
|
|
1299
2179
|
const BUTTON = {
|
|
1300
2180
|
title: "Button",
|
|
1301
2181
|
description: "Clickable button",
|
|
1302
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
2182
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MousePointer, { size: 20 }),
|
|
1303
2183
|
category: "Layout",
|
|
1304
2184
|
searchTerms: ["button"],
|
|
1305
2185
|
command: ({ editor, range }) => {
|
|
@@ -1309,7 +2189,7 @@ const BUTTON = {
|
|
|
1309
2189
|
const DIVIDER = {
|
|
1310
2190
|
title: "Divider",
|
|
1311
2191
|
description: "Horizontal separator",
|
|
1312
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
2192
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SplitSquareVertical, { size: 20 }),
|
|
1313
2193
|
category: "Layout",
|
|
1314
2194
|
searchTerms: [
|
|
1315
2195
|
"hr",
|
|
@@ -1323,7 +2203,7 @@ const DIVIDER = {
|
|
|
1323
2203
|
const SECTION = {
|
|
1324
2204
|
title: "Section",
|
|
1325
2205
|
description: "Content section",
|
|
1326
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
2206
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Rows2, { size: 20 }),
|
|
1327
2207
|
category: "Layout",
|
|
1328
2208
|
searchTerms: [
|
|
1329
2209
|
"section",
|
|
@@ -1337,7 +2217,7 @@ const SECTION = {
|
|
|
1337
2217
|
const TWO_COLUMNS = {
|
|
1338
2218
|
title: "2 columns",
|
|
1339
2219
|
description: "Two column layout",
|
|
1340
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
2220
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Columns2, { size: 20 }),
|
|
1341
2221
|
category: "Layout",
|
|
1342
2222
|
searchTerms: [
|
|
1343
2223
|
"columns",
|
|
@@ -1358,7 +2238,7 @@ const TWO_COLUMNS = {
|
|
|
1358
2238
|
const THREE_COLUMNS = {
|
|
1359
2239
|
title: "3 columns",
|
|
1360
2240
|
description: "Three column layout",
|
|
1361
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
2241
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Columns3, { size: 20 }),
|
|
1362
2242
|
category: "Layout",
|
|
1363
2243
|
searchTerms: [
|
|
1364
2244
|
"columns",
|
|
@@ -1378,7 +2258,7 @@ const THREE_COLUMNS = {
|
|
|
1378
2258
|
const FOUR_COLUMNS = {
|
|
1379
2259
|
title: "4 columns",
|
|
1380
2260
|
description: "Four column layout",
|
|
1381
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
2261
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Columns4, { size: 20 }),
|
|
1382
2262
|
category: "Layout",
|
|
1383
2263
|
searchTerms: [
|
|
1384
2264
|
"columns",
|
|
@@ -1582,8 +2462,12 @@ const SlashCommand = {
|
|
|
1582
2462
|
};
|
|
1583
2463
|
|
|
1584
2464
|
//#endregion
|
|
2465
|
+
exports.AlignCenterIcon = AlignCenterIcon;
|
|
2466
|
+
exports.AlignLeftIcon = AlignLeftIcon;
|
|
2467
|
+
exports.AlignRightIcon = AlignRightIcon;
|
|
1585
2468
|
exports.BULLET_LIST = BULLET_LIST;
|
|
1586
2469
|
exports.BUTTON = BUTTON;
|
|
2470
|
+
exports.BoldIcon = BoldIcon;
|
|
1587
2471
|
exports.BubbleMenu = BubbleMenu;
|
|
1588
2472
|
exports.BubbleMenuAlignCenter = BubbleMenuAlignCenter;
|
|
1589
2473
|
exports.BubbleMenuAlignLeft = BubbleMenuAlignLeft;
|
|
@@ -1604,20 +2488,35 @@ exports.BubbleMenuUppercase = BubbleMenuUppercase;
|
|
|
1604
2488
|
exports.ButtonBubbleMenu = ButtonBubbleMenu;
|
|
1605
2489
|
exports.ButtonBubbleMenuDefault = ButtonBubbleMenuDefault;
|
|
1606
2490
|
exports.ButtonBubbleMenuEditLink = ButtonBubbleMenuEditLink;
|
|
2491
|
+
exports.ButtonBubbleMenuForm = ButtonBubbleMenuForm;
|
|
1607
2492
|
exports.ButtonBubbleMenuRoot = ButtonBubbleMenuRoot;
|
|
1608
2493
|
exports.ButtonBubbleMenuToolbar = ButtonBubbleMenuToolbar;
|
|
2494
|
+
exports.ButtonBubbleMenuUnlink = ButtonBubbleMenuUnlink;
|
|
1609
2495
|
exports.CODE = CODE;
|
|
2496
|
+
exports.CaseUpperIcon = CaseUpperIcon;
|
|
2497
|
+
exports.Check = Check;
|
|
2498
|
+
exports.ChevronDown = ChevronDown;
|
|
2499
|
+
exports.Code = Code;
|
|
2500
|
+
exports.CodeIcon = CodeIcon;
|
|
2501
|
+
exports.Columns2 = Columns2;
|
|
2502
|
+
exports.Columns3 = Columns3;
|
|
2503
|
+
exports.Columns4 = Columns4;
|
|
1610
2504
|
exports.CommandList = CommandList;
|
|
1611
2505
|
exports.DIVIDER = DIVIDER;
|
|
2506
|
+
exports.ExternalLinkIcon = ExternalLinkIcon;
|
|
1612
2507
|
exports.FOUR_COLUMNS = FOUR_COLUMNS;
|
|
1613
2508
|
exports.H1 = H1;
|
|
1614
2509
|
exports.H2 = H2;
|
|
1615
2510
|
exports.H3 = H3;
|
|
2511
|
+
exports.Heading1 = Heading1;
|
|
2512
|
+
exports.Heading2 = Heading2;
|
|
2513
|
+
exports.Heading3 = Heading3;
|
|
1616
2514
|
exports.ImageBubbleMenu = ImageBubbleMenu;
|
|
1617
2515
|
exports.ImageBubbleMenuDefault = ImageBubbleMenuDefault;
|
|
1618
2516
|
exports.ImageBubbleMenuEditLink = ImageBubbleMenuEditLink;
|
|
1619
2517
|
exports.ImageBubbleMenuRoot = ImageBubbleMenuRoot;
|
|
1620
2518
|
exports.ImageBubbleMenuToolbar = ImageBubbleMenuToolbar;
|
|
2519
|
+
exports.ItalicIcon = ItalicIcon;
|
|
1621
2520
|
exports.LinkBubbleMenu = LinkBubbleMenu;
|
|
1622
2521
|
exports.LinkBubbleMenuDefault = LinkBubbleMenuDefault;
|
|
1623
2522
|
exports.LinkBubbleMenuEditLink = LinkBubbleMenuEditLink;
|
|
@@ -1626,16 +2525,30 @@ exports.LinkBubbleMenuOpenLink = LinkBubbleMenuOpenLink;
|
|
|
1626
2525
|
exports.LinkBubbleMenuRoot = LinkBubbleMenuRoot;
|
|
1627
2526
|
exports.LinkBubbleMenuToolbar = LinkBubbleMenuToolbar;
|
|
1628
2527
|
exports.LinkBubbleMenuUnlink = LinkBubbleMenuUnlink;
|
|
2528
|
+
exports.LinkIcon = LinkIcon;
|
|
2529
|
+
exports.List = List;
|
|
2530
|
+
exports.ListOrdered = ListOrdered;
|
|
2531
|
+
exports.MousePointer = MousePointer;
|
|
1629
2532
|
exports.NUMBERED_LIST = NUMBERED_LIST;
|
|
1630
2533
|
exports.NodeSelectorContent = NodeSelectorContent;
|
|
1631
2534
|
exports.NodeSelectorRoot = NodeSelectorRoot;
|
|
1632
2535
|
exports.NodeSelectorTrigger = NodeSelectorTrigger;
|
|
2536
|
+
exports.PencilIcon = PencilIcon;
|
|
1633
2537
|
exports.QUOTE = QUOTE;
|
|
2538
|
+
exports.Rows2 = Rows2;
|
|
1634
2539
|
exports.SECTION = SECTION;
|
|
1635
2540
|
exports.SlashCommand = SlashCommand;
|
|
2541
|
+
exports.SplitSquareVertical = SplitSquareVertical;
|
|
2542
|
+
exports.SquareCode = SquareCode;
|
|
2543
|
+
exports.StrikethroughIcon = StrikethroughIcon;
|
|
1636
2544
|
exports.TEXT = TEXT;
|
|
1637
2545
|
exports.THREE_COLUMNS = THREE_COLUMNS;
|
|
1638
2546
|
exports.TWO_COLUMNS = TWO_COLUMNS;
|
|
2547
|
+
exports.Text = Text;
|
|
2548
|
+
exports.TextIcon = TextIcon;
|
|
2549
|
+
exports.TextQuote = TextQuote;
|
|
2550
|
+
exports.UnderlineIcon = UnderlineIcon;
|
|
2551
|
+
exports.UnlinkIcon = UnlinkIcon;
|
|
1639
2552
|
exports.defaultSlashCommands = defaultSlashCommands;
|
|
1640
2553
|
exports.filterAndRankItems = filterAndRankItems;
|
|
1641
2554
|
exports.isAtMaxColumnsDepth = isAtMaxColumnsDepth;
|