@editora/core 1.0.5 → 1.0.7
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/{AnchorPlugin.native-C1Rw5m04.mjs → AnchorPlugin.native-BcYGEtd9.mjs} +129 -105
- package/dist/{BackgroundColorPlugin.native-BE-p9DRd.mjs → BackgroundColorPlugin.native-50iAT9xU.mjs} +119 -122
- package/dist/CodePlugin.native-DlpTPdkd.mjs +2691 -0
- package/dist/{CommentsPlugin.native-tMnWn8a2.mjs → CommentsPlugin.native-DPSqTkiv.mjs} +153 -135
- package/dist/{DocumentManagerPlugin.native-BvZL5CSG.mjs → DocumentManagerPlugin.native-C2cs_1w4.mjs} +43 -43
- package/dist/{EmbedIframePlugin.native-CSWIB1jm.mjs → EmbedIframePlugin.native-DKJx2OS7.mjs} +61 -58
- package/dist/{EmojisPlugin.native-DxTm_DL-.mjs → EmojisPlugin.native-CitxxlWX.mjs} +135 -104
- package/dist/{LinkPlugin.native-CS2g-G18.mjs → LinkPlugin.native-DYCIcdTm.mjs} +47 -45
- package/dist/{MathPlugin.native-KUxz0o8C.mjs → MathPlugin.native-f_mDp8VL.mjs} +149 -108
- package/dist/{MediaManagerPlugin.native-CgP5iInD.mjs → MediaManagerPlugin.native-BiXiK8FC.mjs} +238 -217
- package/dist/MergeTagPlugin.native-C3eOfEgw.mjs +559 -0
- package/dist/{PageBreakPlugin.native-CGiQxXqR.mjs → PageBreakPlugin.native-CXdX5fAv.mjs} +77 -68
- package/dist/{SpecialCharactersPlugin.native-DANrbExJ.mjs → SpecialCharactersPlugin.native-CZDato89.mjs} +143 -98
- package/dist/{SpellCheckPlugin.native-C8bPvRHy.mjs → SpellCheckPlugin.native-BZB9AewP.mjs} +239 -219
- package/dist/{TemplatePlugin.native-4lKEm-WY.mjs → TemplatePlugin.native-CrpfKRJ8.mjs} +167 -143
- package/dist/{TextColorPlugin.native-Clgtb50j.mjs → TextColorPlugin.native-Bwl_bSmc.mjs} +134 -118
- package/dist/_commonjsHelpers-DOllISpa.mjs +32 -0
- package/dist/anchoredPopover-Bxds0VoB.mjs +110 -0
- package/dist/documentManager-vQ1VkbUY.mjs +8418 -0
- package/dist/editora.min.js +10 -10
- package/dist/editora.umd.js +10 -10
- package/dist/html2canvas.esm-AYkPY5LS.mjs +4803 -0
- package/dist/{index-CqWQFb3D.js → index-BpE6GFbz.js} +4 -4
- package/dist/index-BslAFzmv.mjs +16544 -0
- package/dist/{index-OwnkG39N.mjs → index-yzU4NdPT.mjs} +200 -183
- package/dist/index.cjs.js +1 -1
- package/dist/{index.es-CuicffkQ.mjs → index.es-BYD2KEo6.mjs} +5 -4
- package/dist/index.esm.js +2 -2
- package/dist/jspdf.es.min-BJGtOnRT.mjs +7890 -0
- package/dist/plugin-loader.js +15 -15
- package/dist/webcomponent-core.js +241 -224
- package/dist/webcomponent-core.min.css +1 -1
- package/dist/webcomponent-core.min.js +86 -106
- package/dist/webcomponent.cjs.js +1 -1
- package/dist/webcomponent.esm.js +1 -1
- package/dist/webcomponent.js +205 -188
- package/dist/webcomponent.min.css +1 -1
- package/dist/webcomponent.min.js +477 -402
- package/package.json +16 -10
- package/dist/CodePlugin.native-B263UI8O.mjs +0 -2173
- package/dist/MergeTagPlugin.native-DIGWhdnF.mjs +0 -419
- package/dist/colorSelectionApply-CK1My9N2.mjs +0 -67
- package/dist/documentManager-irzj9n3V.mjs +0 -37627
package/dist/{BackgroundColorPlugin.native-BE-p9DRd.mjs → BackgroundColorPlugin.native-50iAT9xU.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
let
|
|
3
|
-
const
|
|
1
|
+
import { a as P, b as R } from "./anchoredPopover-Bxds0VoB.mjs";
|
|
2
|
+
let a = null, B = null, g = null, L = null, i = "#ffff00";
|
|
3
|
+
const k = '[data-theme="dark"], .dark, .editora-theme-dark', I = [
|
|
4
4
|
"#000000",
|
|
5
5
|
"#ffffff",
|
|
6
6
|
"#808080",
|
|
@@ -14,15 +14,15 @@ const h = '[data-theme="dark"], .dark, .editora-theme-dark', M = [
|
|
|
14
14
|
"#800080",
|
|
15
15
|
"#ffc0cb"
|
|
16
16
|
];
|
|
17
|
-
function
|
|
17
|
+
function A() {
|
|
18
18
|
const e = window.getSelection();
|
|
19
19
|
if (e && e.rangeCount > 0) {
|
|
20
|
-
const c = e.getRangeAt(0).startContainer,
|
|
21
|
-
if (
|
|
22
|
-
const
|
|
20
|
+
const c = e.getRangeAt(0).startContainer, n = c.nodeType === Node.ELEMENT_NODE ? c : c.parentElement;
|
|
21
|
+
if (n) {
|
|
22
|
+
const o = n.closest(
|
|
23
23
|
'[data-editora-editor="true"], .rte-editor, .editora-editor'
|
|
24
24
|
);
|
|
25
|
-
if (
|
|
25
|
+
if (o) return o;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
const t = document.activeElement;
|
|
@@ -30,33 +30,49 @@ function R() {
|
|
|
30
30
|
'[data-editora-editor="true"], .rte-editor, .editora-editor'
|
|
31
31
|
) : null;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
const t =
|
|
35
|
-
if (t) {
|
|
36
|
-
const r =
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
function M(e) {
|
|
34
|
+
const t = window.__editoraLastCommand, r = window.__editoraLastCommandButton;
|
|
35
|
+
if (t === e && r && r.isConnected) {
|
|
36
|
+
const l = window.getComputedStyle(r), s = r.getBoundingClientRect();
|
|
37
|
+
if (l.display !== "none" && l.visibility !== "hidden" && l.pointerEvents !== "none" && !(s.width === 0 && s.height === 0))
|
|
38
|
+
return r;
|
|
39
|
+
}
|
|
40
|
+
const c = (l) => {
|
|
41
|
+
for (const s of l) {
|
|
42
|
+
const d = window.getComputedStyle(s), p = s.getBoundingClientRect();
|
|
43
|
+
if (!(d.display === "none" || d.visibility === "hidden" || d.pointerEvents === "none") && !(p.width === 0 && p.height === 0))
|
|
44
|
+
return s;
|
|
45
|
+
}
|
|
46
|
+
return null;
|
|
47
|
+
}, n = A();
|
|
48
|
+
if (n) {
|
|
49
|
+
const l = Array.from(
|
|
50
|
+
n.querySelectorAll(`[data-command="${e}"]`)
|
|
51
|
+
), s = c(l);
|
|
52
|
+
if (s) return s;
|
|
40
53
|
}
|
|
41
|
-
|
|
54
|
+
const o = Array.from(
|
|
55
|
+
document.querySelectorAll(`[data-command="${e}"]`)
|
|
56
|
+
);
|
|
57
|
+
return c(o);
|
|
42
58
|
}
|
|
43
59
|
function T(e) {
|
|
44
|
-
if (e != null && e.closest(
|
|
60
|
+
if (e != null && e.closest(k)) return !0;
|
|
45
61
|
const t = window.getSelection();
|
|
46
62
|
if (t && t.rangeCount > 0) {
|
|
47
|
-
const c = t.getRangeAt(0).startContainer,
|
|
48
|
-
if (
|
|
63
|
+
const c = t.getRangeAt(0).startContainer, n = c.nodeType === Node.ELEMENT_NODE ? c : c.parentElement;
|
|
64
|
+
if (n != null && n.closest(k)) return !0;
|
|
49
65
|
}
|
|
50
66
|
const r = document.activeElement;
|
|
51
|
-
return r != null && r.closest(
|
|
67
|
+
return r != null && r.closest(k) ? !0 : document.body.matches(k) || document.documentElement.matches(k);
|
|
52
68
|
}
|
|
53
|
-
function
|
|
69
|
+
function U() {
|
|
54
70
|
if (document.getElementById("rte-bg-color-picker-styles"))
|
|
55
71
|
return;
|
|
56
72
|
const e = document.createElement("style");
|
|
57
73
|
e.id = "rte-bg-color-picker-styles", e.textContent = `
|
|
58
74
|
.rte-bg-color-picker {
|
|
59
|
-
position:
|
|
75
|
+
position: fixed;
|
|
60
76
|
background: white;
|
|
61
77
|
border-radius: 8px;
|
|
62
78
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
@@ -273,108 +289,97 @@ function H() {
|
|
|
273
289
|
}
|
|
274
290
|
`, document.head.appendChild(e);
|
|
275
291
|
}
|
|
276
|
-
function
|
|
292
|
+
function q() {
|
|
277
293
|
const e = document.createElement("div");
|
|
278
|
-
e.className = "rte-bg-color-picker", T(
|
|
294
|
+
e.className = "rte-bg-color-picker", T(B) && e.classList.add("rte-theme-dark"), e.addEventListener("click", (h) => h.stopPropagation());
|
|
279
295
|
const t = document.createElement("div");
|
|
280
296
|
t.className = "rte-bg-color-picker-header";
|
|
281
297
|
const r = document.createElement("span");
|
|
282
298
|
r.className = "rte-bg-color-picker-title", r.textContent = "Background Color";
|
|
283
299
|
const c = document.createElement("button");
|
|
284
300
|
c.type = "button", c.className = "rte-bg-color-picker-close", c.id = "rte-bg-color-close", c.setAttribute("aria-label", "Close"), c.textContent = "×", t.appendChild(r), t.appendChild(c);
|
|
285
|
-
const l = document.createElement("div");
|
|
286
|
-
l.className = "rte-bg-color-picker-body";
|
|
287
301
|
const n = document.createElement("div");
|
|
288
|
-
n.className = "rte-bg-color-
|
|
302
|
+
n.className = "rte-bg-color-picker-body";
|
|
289
303
|
const o = document.createElement("div");
|
|
290
|
-
o.className = "rte-bg-color-section
|
|
291
|
-
const
|
|
292
|
-
|
|
293
|
-
const
|
|
294
|
-
|
|
295
|
-
const
|
|
296
|
-
|
|
304
|
+
o.className = "rte-bg-color-section";
|
|
305
|
+
const l = document.createElement("div");
|
|
306
|
+
l.className = "rte-bg-color-preview";
|
|
307
|
+
const s = document.createElement("div");
|
|
308
|
+
s.className = "rte-bg-color-preview-swatch", s.id = "rte-bg-color-preview-swatch";
|
|
309
|
+
const d = document.createElement("span");
|
|
310
|
+
d.className = "rte-bg-color-preview-hex", d.id = "rte-bg-color-preview-hex", l.appendChild(s), l.appendChild(d), o.appendChild(l);
|
|
311
|
+
const p = document.createElement("div");
|
|
312
|
+
p.className = "rte-bg-color-section";
|
|
313
|
+
const y = document.createElement("div");
|
|
314
|
+
y.className = "rte-bg-color-section-label", y.textContent = "Colors";
|
|
297
315
|
const x = document.createElement("div");
|
|
298
|
-
x.className = "rte-bg-color-
|
|
299
|
-
|
|
300
|
-
|
|
316
|
+
x.className = "rte-bg-color-grid", x.id = "rte-bg-color-grid", I.forEach((h) => {
|
|
317
|
+
const b = document.createElement("button");
|
|
318
|
+
b.type = "button", b.className = "rte-bg-color-swatch", b.style.backgroundColor = h, b.dataset.color = h, b.title = h, x.appendChild(b);
|
|
319
|
+
}), p.appendChild(y), p.appendChild(x);
|
|
301
320
|
const C = document.createElement("div");
|
|
302
|
-
C.className = "rte-bg-color-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
}), x.appendChild(E), x.appendChild(C);
|
|
321
|
+
C.className = "rte-bg-color-section";
|
|
322
|
+
const E = document.createElement("div");
|
|
323
|
+
E.className = "rte-bg-color-section-label", E.textContent = "Custom";
|
|
306
324
|
const w = document.createElement("div");
|
|
307
|
-
w.className = "rte-bg-color-
|
|
308
|
-
const
|
|
309
|
-
|
|
310
|
-
const
|
|
311
|
-
|
|
312
|
-
const f = document.createElement("input");
|
|
313
|
-
f.type = "color", f.className = "rte-bg-color-input", f.id = "rte-bg-color-input", f.value = s;
|
|
314
|
-
const p = document.createElement("input");
|
|
315
|
-
return p.type = "text", p.className = "rte-bg-color-text-input", p.id = "rte-bg-color-text-input", p.placeholder = "#FFFF00", p.value = s.toUpperCase(), p.maxLength = 7, v.appendChild(f), v.appendChild(p), w.appendChild(S), w.appendChild(v), l.appendChild(n), l.appendChild(x), l.appendChild(w), e.appendChild(t), e.appendChild(l), e;
|
|
325
|
+
w.className = "rte-bg-color-custom";
|
|
326
|
+
const m = document.createElement("input");
|
|
327
|
+
m.type = "color", m.className = "rte-bg-color-input", m.id = "rte-bg-color-input", m.value = i;
|
|
328
|
+
const u = document.createElement("input");
|
|
329
|
+
return u.type = "text", u.className = "rte-bg-color-text-input", u.id = "rte-bg-color-text-input", u.placeholder = "#FFFF00", u.value = i.toUpperCase(), u.maxLength = 7, w.appendChild(m), w.appendChild(u), C.appendChild(E), C.appendChild(w), n.appendChild(o), n.appendChild(p), n.appendChild(C), e.appendChild(t), e.appendChild(n), e;
|
|
316
330
|
}
|
|
317
|
-
function
|
|
318
|
-
if (!
|
|
319
|
-
const e =
|
|
320
|
-
e == null || e.addEventListener("click", () =>
|
|
321
|
-
const t =
|
|
331
|
+
function _() {
|
|
332
|
+
if (!a) return;
|
|
333
|
+
const e = a.querySelector("#rte-bg-color-close");
|
|
334
|
+
e == null || e.addEventListener("click", () => f());
|
|
335
|
+
const t = a.querySelector("#rte-bg-color-grid");
|
|
322
336
|
t && t.addEventListener("click", (n) => {
|
|
323
337
|
const o = n.target;
|
|
324
338
|
if (o.classList.contains("rte-bg-color-swatch")) {
|
|
325
|
-
const
|
|
326
|
-
|
|
339
|
+
const l = o.dataset.color;
|
|
340
|
+
l && (i = l, v(l), f());
|
|
327
341
|
}
|
|
328
342
|
});
|
|
329
|
-
const r =
|
|
343
|
+
const r = a.querySelector("#rte-bg-color-input");
|
|
330
344
|
r && (r.addEventListener("change", (n) => {
|
|
331
345
|
const o = n.target.value.toUpperCase();
|
|
332
|
-
|
|
346
|
+
i = o, v(o), f();
|
|
333
347
|
}), r.addEventListener("input", (n) => {
|
|
334
|
-
|
|
348
|
+
i = n.target.value.toUpperCase(), S(), N();
|
|
335
349
|
}));
|
|
336
|
-
const c =
|
|
350
|
+
const c = a.querySelector("#rte-bg-color-text-input");
|
|
337
351
|
c && (c.addEventListener("change", (n) => {
|
|
338
352
|
let o = n.target.value.trim();
|
|
339
|
-
o && !o.startsWith("#") && (o = "#" + o), /^#[0-9A-F]{6}$/i.test(o) && (
|
|
353
|
+
o && !o.startsWith("#") && (o = "#" + o), /^#[0-9A-F]{6}$/i.test(o) && (i = o.toUpperCase(), v(i), f());
|
|
340
354
|
}), c.addEventListener("input", (n) => {
|
|
341
355
|
let o = n.target.value.trim();
|
|
342
|
-
o && !o.startsWith("#") && (o = "#" + o, c.value = o), /^#[0-9A-F]{6}$/i.test(o) && (
|
|
356
|
+
o && !o.startsWith("#") && (o = "#" + o, c.value = o), /^#[0-9A-F]{6}$/i.test(o) && (i = o.toUpperCase(), S(), N());
|
|
343
357
|
}));
|
|
344
|
-
const l = (n) => {
|
|
345
|
-
if (i && k) {
|
|
346
|
-
const o = n.target;
|
|
347
|
-
!i.contains(o) && !k.contains(o) && b();
|
|
348
|
-
}
|
|
349
|
-
};
|
|
350
|
-
setTimeout(() => {
|
|
351
|
-
document.addEventListener("click", l);
|
|
352
|
-
}, 100), i._clickOutsideHandler = l;
|
|
353
358
|
}
|
|
354
|
-
function
|
|
355
|
-
if (!
|
|
356
|
-
const e =
|
|
357
|
-
e && (e.style.backgroundColor =
|
|
359
|
+
function S() {
|
|
360
|
+
if (!a) return;
|
|
361
|
+
const e = a.querySelector("#rte-bg-color-preview-swatch"), t = a.querySelector("#rte-bg-color-preview-hex"), r = a.querySelector("#rte-bg-color-input"), c = a.querySelector("#rte-bg-color-text-input");
|
|
362
|
+
e && (e.style.backgroundColor = i), t && (t.textContent = i.toUpperCase()), r && (r.value = i), c && (c.value = i.toUpperCase());
|
|
358
363
|
}
|
|
359
|
-
function
|
|
360
|
-
if (!
|
|
361
|
-
|
|
364
|
+
function N() {
|
|
365
|
+
if (!a) return;
|
|
366
|
+
a.querySelectorAll(".rte-bg-color-swatch").forEach((t) => {
|
|
362
367
|
const r = t.dataset.color;
|
|
363
|
-
(r == null ? void 0 : r.toUpperCase()) ===
|
|
368
|
+
(r == null ? void 0 : r.toUpperCase()) === i.toUpperCase() ? t.classList.add("selected") : t.classList.remove("selected");
|
|
364
369
|
});
|
|
365
370
|
}
|
|
366
|
-
function
|
|
371
|
+
function z() {
|
|
367
372
|
try {
|
|
368
373
|
const e = window.getSelection();
|
|
369
374
|
if (!e || e.rangeCount === 0)
|
|
370
375
|
return "#ffff00";
|
|
371
376
|
const r = e.getRangeAt(0).commonAncestorContainer, c = r.nodeType === 1 ? r : r.parentElement;
|
|
372
377
|
if (c) {
|
|
373
|
-
const
|
|
374
|
-
if (
|
|
375
|
-
const
|
|
376
|
-
if (
|
|
377
|
-
return
|
|
378
|
+
const n = c.closest('[style*="background-color"]');
|
|
379
|
+
if (n) {
|
|
380
|
+
const o = n.style.backgroundColor;
|
|
381
|
+
if (o)
|
|
382
|
+
return H(o);
|
|
378
383
|
}
|
|
379
384
|
}
|
|
380
385
|
return "#ffff00";
|
|
@@ -382,59 +387,51 @@ function I() {
|
|
|
382
387
|
return "#ffff00";
|
|
383
388
|
}
|
|
384
389
|
}
|
|
385
|
-
function
|
|
390
|
+
function H(e) {
|
|
386
391
|
if (e.startsWith("#"))
|
|
387
392
|
return e.toUpperCase();
|
|
388
393
|
const t = e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);
|
|
389
394
|
if (t) {
|
|
390
|
-
const r = parseInt(t[1]), c = parseInt(t[2]),
|
|
391
|
-
return "#" + [r, c,
|
|
392
|
-
const
|
|
393
|
-
return
|
|
395
|
+
const r = parseInt(t[1]), c = parseInt(t[2]), n = parseInt(t[3]);
|
|
396
|
+
return "#" + [r, c, n].map((o) => {
|
|
397
|
+
const l = o.toString(16);
|
|
398
|
+
return l.length === 1 ? "0" + l : l;
|
|
394
399
|
}).join("").toUpperCase();
|
|
395
400
|
}
|
|
396
401
|
return "#ffff00";
|
|
397
402
|
}
|
|
398
|
-
function
|
|
399
|
-
const t =
|
|
403
|
+
function v(e) {
|
|
404
|
+
const t = P({
|
|
400
405
|
color: e,
|
|
401
406
|
className: "rte-bg-color",
|
|
402
407
|
styleProperty: "backgroundColor",
|
|
403
408
|
commands: ["hiliteColor", "backColor"],
|
|
404
|
-
savedRange:
|
|
405
|
-
getActiveEditorRoot:
|
|
409
|
+
savedRange: L,
|
|
410
|
+
getActiveEditorRoot: A,
|
|
406
411
|
warnMessage: "[BackgroundColor] Could not apply highlight for current selection"
|
|
407
412
|
});
|
|
408
413
|
return t && console.log("[BackgroundColor] Applied color:", e), t;
|
|
409
414
|
}
|
|
410
|
-
function
|
|
411
|
-
|
|
412
|
-
const e = i._clickOutsideHandler;
|
|
413
|
-
e && document.removeEventListener("click", e), i.remove(), i = null;
|
|
414
|
-
}
|
|
415
|
-
k = null, B = null;
|
|
416
|
-
}
|
|
417
|
-
function z(e, t) {
|
|
418
|
-
const r = e.getBoundingClientRect(), c = t.getBoundingClientRect(), l = c.width || 220, n = c.height || 320, o = 8;
|
|
419
|
-
let a = r.left;
|
|
420
|
-
a + l > window.innerWidth - o && (a = window.innerWidth - l - o), a = Math.max(o, a);
|
|
421
|
-
let d = r.bottom + o;
|
|
422
|
-
if (d + n > window.innerHeight - o) {
|
|
423
|
-
const u = r.top - n - o;
|
|
424
|
-
u >= o ? d = u : d = Math.max(o, window.innerHeight - n - o);
|
|
425
|
-
}
|
|
426
|
-
t.style.top = `${Math.round(d + window.scrollY)}px`, t.style.left = `${Math.round(a + window.scrollX)}px`;
|
|
415
|
+
function f() {
|
|
416
|
+
g && (g.destroy(), g = null), a && (a.remove(), a = null), B = null, L = null;
|
|
427
417
|
}
|
|
428
|
-
function
|
|
429
|
-
if (
|
|
430
|
-
return
|
|
431
|
-
const e =
|
|
418
|
+
function D() {
|
|
419
|
+
if (U(), a)
|
|
420
|
+
return f(), !0;
|
|
421
|
+
const e = M("openBackgroundColorPicker");
|
|
432
422
|
if (!e)
|
|
433
423
|
return !1;
|
|
434
424
|
const t = window.getSelection();
|
|
435
|
-
return !t || t.isCollapsed ? (alert("Please select text to apply background color"), !1) : (t.rangeCount > 0 && (
|
|
425
|
+
return !t || t.isCollapsed ? (alert("Please select text to apply background color"), !1) : (t.rangeCount > 0 && (L = t.getRangeAt(0).cloneRange()), i = z(), a = q(), document.body.appendChild(a), B = e, g && (g.destroy(), g = null), g = R({
|
|
426
|
+
popover: a,
|
|
427
|
+
anchor: e,
|
|
428
|
+
onClose: f,
|
|
429
|
+
gap: 8,
|
|
430
|
+
margin: 8,
|
|
431
|
+
zIndex: 1e4
|
|
432
|
+
}), S(), N(), _(), !0);
|
|
436
433
|
}
|
|
437
|
-
const
|
|
434
|
+
const O = () => ({
|
|
438
435
|
name: "backgroundColor",
|
|
439
436
|
marks: {
|
|
440
437
|
backgroundColor: {
|
|
@@ -476,14 +473,14 @@ const F = () => ({
|
|
|
476
473
|
}
|
|
477
474
|
],
|
|
478
475
|
commands: {
|
|
479
|
-
openBackgroundColorPicker: () =>
|
|
480
|
-
setBackgroundColor: (e) => e ?
|
|
476
|
+
openBackgroundColorPicker: () => D(),
|
|
477
|
+
setBackgroundColor: (e) => e ? v(e) : !1
|
|
481
478
|
},
|
|
482
479
|
keymap: {
|
|
483
480
|
"Mod-Shift-h": "openBackgroundColorPicker"
|
|
484
481
|
}
|
|
485
482
|
});
|
|
486
483
|
export {
|
|
487
|
-
|
|
484
|
+
O as BackgroundColorPlugin
|
|
488
485
|
};
|
|
489
|
-
//# sourceMappingURL=BackgroundColorPlugin.native-
|
|
486
|
+
//# sourceMappingURL=BackgroundColorPlugin.native-50iAT9xU.mjs.map
|