Comparing version
@@ -1,2 +0,2 @@ | ||
import { delegateEvents as be, getNextElement as m, getNextMarker as x, insert as h, createComponent as c, effect as ne, setAttribute as he, runHydrationEvents as se, template as k, spread as Qe, hydrate as Ye, render as Ze } from "solid-js/web"; | ||
import { delegateEvents as be, getNextElement as m, getNextMarker as x, insert as k, createComponent as c, effect as ne, setAttribute as ke, runHydrationEvents as se, template as h, spread as Qe, hydrate as Ye, render as Ze } from "solid-js/web"; | ||
import { createSignal as z, onMount as ve, onCleanup as Ge, For as Je, Show as v, createEffect as et, createContext as tt, useContext as nt } from "solid-js"; | ||
@@ -7,4 +7,4 @@ import { Compartment as ye, SelectionRange as ot, EditorSelection as rt, RangeSetBuilder as $e, Transaction as it, EditorState as at } from "@codemirror/state"; | ||
import { defaultKeymap as dt, historyKeymap as ut, indentMore as ft, indentLess as gt, history as pt } from "@codemirror/commands"; | ||
import { markdown as mt, markdownLanguage as kt } from "@codemirror/lang-markdown"; | ||
import { languages as ht } from "@codemirror/language-data"; | ||
import { markdown as mt, markdownLanguage as ht } from "@codemirror/lang-markdown"; | ||
import { languages as kt } from "@codemirror/language-data"; | ||
import { tags as d } from "@lezer/highlight"; | ||
@@ -129,3 +129,3 @@ const xt = "data-ink-mde-ssr-hydration-marker", bt = `[${xt}]`, vt = () => ({}), H = { | ||
if (e.interface.autocomplete) { | ||
const { autocomplete: n } = await import("./autocomplete.f0faf0b4.js"); | ||
const { autocomplete: n } = await import("./autocomplete.5d7ceb59.js"); | ||
return t.reconfigure(n(e)); | ||
@@ -144,3 +144,3 @@ } | ||
if (e.interface.lists) { | ||
const { lists: n } = await import("./lists.f0515d6b.js"); | ||
const { lists: n } = await import("./lists.b465ff74.js"); | ||
return t.reconfigure(n()); | ||
@@ -640,4 +640,4 @@ } | ||
mt({ | ||
base: kt, | ||
codeLanguages: ht, | ||
base: ht, | ||
codeLanguages: kt, | ||
extensions: n | ||
@@ -651,3 +651,3 @@ }), | ||
t(R(e(), { options: { doc: n } })), e().editor.setState(Ae(e())); | ||
}, kn = ([e]) => e().options, hn = async ([e, t], n) => { | ||
}, hn = ([e]) => e().options, kn = async ([e, t], n) => { | ||
const o = t(R(e(), { options: n })), r = await de(o); | ||
@@ -698,4 +698,4 @@ o.editor.dispatch({ effects: r }); | ||
load: mn.bind(void 0, e), | ||
options: kn.bind(void 0, e), | ||
reconfigure: hn.bind(void 0, e), | ||
options: hn.bind(void 0, e), | ||
reconfigure: kn.bind(void 0, e), | ||
select: He.bind(void 0, e), | ||
@@ -706,3 +706,3 @@ selections: Y.bind(void 0, e), | ||
}), vn = `.ink-drop-zone{align-items:center;background-color:#00000080;color:var(--ink-internal-color);display:flex;inset:0;justify-content:center;position:var(--ink-internal-modal-position);z-index:100}.ink-drop-zone:not(.visible){display:none}.ink-drop-zone-modal{background-color:var(--ink-internal-block-background-color);border-radius:var(--ink-internal-border-radius);box-sizing:border-box;height:100%;max-height:20rem;max-width:40rem;padding:1rem;position:relative;width:100%}.ink-drop-zone-hide{cursor:pointer;height:1.75rem;position:absolute;right:.25rem;top:.25rem;width:1.75rem}.ink-drop-zone-hide svg{background-color:var(--ink-internal-block-background-color)}.ink-drop-zone-droppable-area{align-items:center;border:.2rem dashed var(--ink-internal-color);border-radius:.125rem;box-sizing:border-box;display:flex;flex-direction:column;font-size:1.25em;gap:1rem;height:100%;justify-content:center;padding:1rem;text-align:center}.ink-drop-zone-file-preview{align-items:center;display:flex;flex-wrap:wrap;gap:.5rem;max-width:25.5rem}.ink-drop-zone-file-preview-image{border:.125rem solid #222;border-radius:.125rem;box-sizing:border-box;height:6rem;object-fit:cover;padding:.5rem;width:6rem} | ||
`, yn = /* @__PURE__ */ k("<span>uploading files...</span>", 2), $n = /* @__PURE__ */ k('<div class="ink-drop-zone"><style></style><div class="ink-drop-zone-modal"><div class="ink-drop-zone-droppable-area"><div class="ink-drop-zone-file-preview"></div><!#><!/></div><div class="ink-drop-zone-hide"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg></div></div></div>', 18), wn = /* @__PURE__ */ k('<img class="ink-drop-zone-file-preview-image">', 1), _n = /* @__PURE__ */ k("<span>drop files here</span>", 2), Cn = () => { | ||
`, yn = /* @__PURE__ */ h("<span>uploading files...</span>", 2), $n = /* @__PURE__ */ h('<div class="ink-drop-zone"><style></style><div class="ink-drop-zone-modal"><div class="ink-drop-zone-droppable-area"><div class="ink-drop-zone-file-preview"></div><!#><!/></div><div class="ink-drop-zone-hide"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg></div></div></div>', 18), wn = /* @__PURE__ */ h('<img class="ink-drop-zone-file-preview-image">', 1), _n = /* @__PURE__ */ h("<span>drop files here</span>", 2), Cn = () => { | ||
const [e, t] = z(0), [n, o] = z([]), [r, i] = z(!1), [l, a] = z(!1), [s, u] = P(), b = () => { | ||
@@ -748,3 +748,3 @@ a(!1); | ||
const f = m($n), p = f.firstChild, N = p.nextSibling, A = N.firstChild, W = A.firstChild, G = W.nextSibling, [F, J] = x(G.nextSibling), ee = A.nextSibling; | ||
return p.textContent = vn, A.addEventListener("drop", y), h(W, c(Je, { | ||
return p.textContent = vn, A.addEventListener("drop", y), k(W, c(Je, { | ||
get each() { | ||
@@ -757,3 +757,3 @@ return n().slice(0, 8); | ||
const X = U.name, q = URL.createObjectURL(U); | ||
return X !== w._v$ && he(T, "alt", w._v$ = X), q !== w._v$2 && he(T, "src", w._v$2 = q), w; | ||
return X !== w._v$ && ke(T, "alt", w._v$ = X), q !== w._v$2 && ke(T, "src", w._v$2 = q), w; | ||
}, { | ||
@@ -764,3 +764,3 @@ _v$: void 0, | ||
})() | ||
})), h(A, c(v, { | ||
})), k(A, c(v, { | ||
get when() { | ||
@@ -797,9 +797,9 @@ return r(); | ||
}), n.dom; | ||
}, Mn = /* @__PURE__ */ k('<button class="ink-button" type="button"></button>', 2), $ = (e) => (() => { | ||
}, Mn = /* @__PURE__ */ h('<button class="ink-button" type="button"></button>', 2), $ = (e) => (() => { | ||
const t = m(Mn); | ||
return t.$$click = (n) => e.onclick(n), h(t, () => e.children), se(), t; | ||
return t.$$click = (n) => e.onclick(n), k(t, () => e.children), se(), t; | ||
})(); | ||
be(["click"]); | ||
const Dn = `.ink .ink-toolbar{background-color:var(--ink-internal-block-background-color);border-radius:var(--ink-internal-border-radius);bottom:.25rem;color:inherit;display:flex;flex-shrink:0;gap:2rem;overflow:auto;padding:.25rem;position:sticky;top:.25rem;z-index:10}.ink .ink-toolbar-group{display:flex}.ink .ink-toolbar .ink-button{align-items:center;background:none;border:none;border-radius:var(--ink-internal-border-radius);color:inherit;cursor:pointer;display:flex;height:2.25rem;justify-content:center;padding:.4rem;width:2.25rem}.ink .ink-toolbar .ink-button:hover{background-color:var(--ink-internal-block-background-color-on-hover)}.ink .ink-toolbar .ink-button>*{align-items:center;display:flex;height:100%} | ||
`, An = /* @__PURE__ */ k('<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-miterlimit="5" stroke-linecap="round" stroke-linejoin="round"><path d="M6 4V10M6 16V10M6 10H14M14 10V4M14 10V16"></path></svg>', 4), Hn = /* @__PURE__ */ k('<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.5" stroke-miterlimit="5" stroke-linecap="round" stroke-linejoin="round"><path d="M6.5 10H10.5C12.1569 10 13.5 11.3431 13.5 13C13.5 14.6569 12.1569 16 10.5 16H6.5V4H9.5C11.1569 4 12.5 5.34315 12.5 7C12.5 8.65686 11.1569 10 9.5 10"></path></svg>', 4), zn = /* @__PURE__ */ k('<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-miterlimit="5" stroke-linecap="round" stroke-linejoin="round"><path d="M11 4L9 16M13 4H9M7 16H11"></path></svg>', 4), Bn = /* @__PURE__ */ k('<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-miterlimit="5" stroke-linecap="round" stroke-linejoin="round"><path d="M2.00257 16H17.9955M2.00055 4H18M7 10H18.0659M2 8.5V11.4999C2.4 11.5 2.5 11.5 2.5 11.5V11V10.5M4 8.5V11.4999H4.5V11V10.5"></path></svg>', 4), En = /* @__PURE__ */ k('<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-miterlimit="5" stroke-linecap="round" stroke-linejoin="round"><path d="M13 4L7 16"></path><path d="M5 7L2 10L5 13"></path><path d="M15 7L18 10L15 13"></path></svg>', 8), jn = /* @__PURE__ */ k('<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-miterlimit="5" stroke-linecap="round" stroke-linejoin="round"><path d="M7 4L8 6"></path></svg>', 4), Vn = /* @__PURE__ */ k('<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-miterlimit="5" stroke-linecap="round" stroke-linejoin="round"><path d="M7 16H17.8294"></path><path d="M2 16H4"></path><path d="M7 10H17.8294"></path><path d="M2 10H4"></path><path d="M7 4H17.8294"></path><path d="M2 4H4"></path></svg>', 14), On = /* @__PURE__ */ k('<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-miterlimit="5" stroke-linecap="round" stroke-linejoin="round"><path d="M7 16H18"></path><path d="M2 17.0242C2.48314 17.7569 3.94052 17.6154 3.99486 16.7919C4.05315 15.9169 3.1975 16.0044 2.99496 16.0044M2.0023 14.9758C2.48544 14.2431 3.94282 14.3846 3.99716 15.2081C4.05545 16.0831 3.1998 16.0002 2.99726 16.0002"></path><path d="M7 10H18"></path><path d="M2.00501 11.5H4M2.00193 8.97562C2.48449 8.24319 3.9401 8.38467 3.99437 9.20777C4.05259 10.0825 2.04342 10.5788 2 11.4996"></path><path d="M7 4H18"></path><path d="M2 5.5H4M2.99713 5.49952V2.5L2.215 2.93501"></path></svg>', 14), Nn = /* @__PURE__ */ k('<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-miterlimit="5" stroke-linecap="round" stroke-linejoin="round"><path d="M7 16H17.8294"></path><path d="M5 15L3 17L2 16"></path><path d="M7 10H17.8294"></path><path d="M5 9L3 11L2 10"></path><path d="M7 4H17.8294"></path><path d="M5 3L3 5L2 4"></path></svg>', 14), Tn = /* @__PURE__ */ k('<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-miterlimit="5" stroke-linecap="round" stroke-linejoin="round"><path d="M9.12127 10.881C10.02 11.78 11.5237 11.7349 12.4771 10.7813L15.2546 8.00302C16.2079 7.04937 16.253 5.54521 15.3542 4.6462C14.4555 3.74719 12.9512 3.79174 11.9979 4.74539L10.3437 6.40007M10.8787 9.11903C9.97997 8.22002 8.47626 8.26509 7.52288 9.21874L4.74545 11.997C3.79208 12.9506 3.74701 14.4548 4.64577 15.3538C5.54452 16.2528 7.04876 16.2083 8.00213 15.2546L9.65633 13.5999"></path></svg>', 4), qn = /* @__PURE__ */ k('<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-miterlimit="5" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="4" width="16" height="12" rx="1"></rect><path d="M7.42659 7.67597L13.7751 13.8831M2.00208 12.9778L7.42844 7.67175"></path><path d="M11.9119 12.0599L14.484 9.54443L17.9973 12.9785"></path><path d="M10.9989 7.95832C11.551 7.95832 11.9986 7.52072 11.9986 6.98092C11.9986 6.44113 11.551 6.00354 10.9989 6.00354C10.4468 6.00354 9.99921 6.44113 9.99921 6.98092C9.99921 7.52072 10.4468 7.95832 10.9989 7.95832Z"></path></svg>', 10), In = /* @__PURE__ */ k('<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-miterlimit="5" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13V4M10 4L13 7M10 4L7 7"></path><path d="M2 13V15C2 15.5523 2.44772 16 3 16H17C17.5523 16 18 15.5523 18 15V13"></path></svg>', 6), Rn = /* @__PURE__ */ k('<input type="file">', 1), Pn = /* @__PURE__ */ k('<div class="ink-toolbar"><style></style><div class="ink-toolbar-group"><!#><!/><!#><!/><!#><!/></div><div class="ink-toolbar-group"><!#><!/><!#><!/><!#><!/></div><div class="ink-toolbar-group"><!#><!/><!#><!/><!#><!/></div><div class="ink-toolbar-group"><!#><!/><!#><!/><!#><!/></div></div>', 36), Wn = () => { | ||
`, An = /* @__PURE__ */ h('<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-miterlimit="5" stroke-linecap="round" stroke-linejoin="round"><path d="M6 4V10M6 16V10M6 10H14M14 10V4M14 10V16"></path></svg>', 4), Hn = /* @__PURE__ */ h('<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.5" stroke-miterlimit="5" stroke-linecap="round" stroke-linejoin="round"><path d="M6.5 10H10.5C12.1569 10 13.5 11.3431 13.5 13C13.5 14.6569 12.1569 16 10.5 16H6.5V4H9.5C11.1569 4 12.5 5.34315 12.5 7C12.5 8.65686 11.1569 10 9.5 10"></path></svg>', 4), zn = /* @__PURE__ */ h('<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-miterlimit="5" stroke-linecap="round" stroke-linejoin="round"><path d="M11 4L9 16M13 4H9M7 16H11"></path></svg>', 4), Bn = /* @__PURE__ */ h('<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-miterlimit="5" stroke-linecap="round" stroke-linejoin="round"><path d="M2.00257 16H17.9955M2.00055 4H18M7 10H18.0659M2 8.5V11.4999C2.4 11.5 2.5 11.5 2.5 11.5V11V10.5M4 8.5V11.4999H4.5V11V10.5"></path></svg>', 4), En = /* @__PURE__ */ h('<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-miterlimit="5" stroke-linecap="round" stroke-linejoin="round"><path d="M13 4L7 16"></path><path d="M5 7L2 10L5 13"></path><path d="M15 7L18 10L15 13"></path></svg>', 8), jn = /* @__PURE__ */ h('<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-miterlimit="5" stroke-linecap="round" stroke-linejoin="round"><path d="M7 4L8 6"></path></svg>', 4), Vn = /* @__PURE__ */ h('<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-miterlimit="5" stroke-linecap="round" stroke-linejoin="round"><path d="M7 16H17.8294"></path><path d="M2 16H4"></path><path d="M7 10H17.8294"></path><path d="M2 10H4"></path><path d="M7 4H17.8294"></path><path d="M2 4H4"></path></svg>', 14), On = /* @__PURE__ */ h('<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-miterlimit="5" stroke-linecap="round" stroke-linejoin="round"><path d="M7 16H18"></path><path d="M2 17.0242C2.48314 17.7569 3.94052 17.6154 3.99486 16.7919C4.05315 15.9169 3.1975 16.0044 2.99496 16.0044M2.0023 14.9758C2.48544 14.2431 3.94282 14.3846 3.99716 15.2081C4.05545 16.0831 3.1998 16.0002 2.99726 16.0002"></path><path d="M7 10H18"></path><path d="M2.00501 11.5H4M2.00193 8.97562C2.48449 8.24319 3.9401 8.38467 3.99437 9.20777C4.05259 10.0825 2.04342 10.5788 2 11.4996"></path><path d="M7 4H18"></path><path d="M2 5.5H4M2.99713 5.49952V2.5L2.215 2.93501"></path></svg>', 14), Nn = /* @__PURE__ */ h('<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-miterlimit="5" stroke-linecap="round" stroke-linejoin="round"><path d="M7 16H17.8294"></path><path d="M5 15L3 17L2 16"></path><path d="M7 10H17.8294"></path><path d="M5 9L3 11L2 10"></path><path d="M7 4H17.8294"></path><path d="M5 3L3 5L2 4"></path></svg>', 14), Tn = /* @__PURE__ */ h('<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-miterlimit="5" stroke-linecap="round" stroke-linejoin="round"><path d="M9.12127 10.881C10.02 11.78 11.5237 11.7349 12.4771 10.7813L15.2546 8.00302C16.2079 7.04937 16.253 5.54521 15.3542 4.6462C14.4555 3.74719 12.9512 3.79174 11.9979 4.74539L10.3437 6.40007M10.8787 9.11903C9.97997 8.22002 8.47626 8.26509 7.52288 9.21874L4.74545 11.997C3.79208 12.9506 3.74701 14.4548 4.64577 15.3538C5.54452 16.2528 7.04876 16.2083 8.00213 15.2546L9.65633 13.5999"></path></svg>', 4), qn = /* @__PURE__ */ h('<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-miterlimit="5" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="4" width="16" height="12" rx="1"></rect><path d="M7.42659 7.67597L13.7751 13.8831M2.00208 12.9778L7.42844 7.67175"></path><path d="M11.9119 12.0599L14.484 9.54443L17.9973 12.9785"></path><path d="M10.9989 7.95832C11.551 7.95832 11.9986 7.52072 11.9986 6.98092C11.9986 6.44113 11.551 6.00354 10.9989 6.00354C10.4468 6.00354 9.99921 6.44113 9.99921 6.98092C9.99921 7.52072 10.4468 7.95832 10.9989 7.95832Z"></path></svg>', 10), In = /* @__PURE__ */ h('<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-miterlimit="5" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13V4M10 4L13 7M10 4L7 7"></path><path d="M2 13V15C2 15.5523 2.44772 16 3 16H17C17.5523 16 18 15.5523 18 15V13"></path></svg>', 6), Rn = /* @__PURE__ */ h('<input type="file">', 1), Pn = /* @__PURE__ */ h('<div class="ink-toolbar"><style></style><div class="ink-toolbar-group"><!#><!/><!#><!/><!#><!/></div><div class="ink-toolbar-group"><!#><!/><!#><!/><!#><!/></div><div class="ink-toolbar-group"><!#><!/><!#><!/><!#><!/></div><div class="ink-toolbar-group"><!#><!/><!#><!/><!#><!/></div></div>', 36), Wn = () => { | ||
const [e, t] = P(), [n, o] = z(), r = (a) => { | ||
@@ -817,4 +817,4 @@ Me([e, t], a), ae([e, t]); | ||
return (() => { | ||
const a = m(Pn), s = a.firstChild, u = s.nextSibling, b = u.firstChild, [y, C] = x(b.nextSibling), S = y.nextSibling, [M, D] = x(S.nextSibling), B = M.nextSibling, [E, f] = x(B.nextSibling), p = u.nextSibling, N = p.firstChild, [A, W] = x(N.nextSibling), G = A.nextSibling, [F, J] = x(G.nextSibling), ee = F.nextSibling, [U, T] = x(ee.nextSibling), w = p.nextSibling, X = w.firstChild, [q, Ve] = x(X.nextSibling), Oe = q.nextSibling, [pe, Ne] = x(Oe.nextSibling), Te = pe.nextSibling, [qe, Ie] = x(Te.nextSibling), K = w.nextSibling, Re = K.firstChild, [me, Pe] = x(Re.nextSibling), We = me.nextSibling, [ke, Fe] = x(We.nextSibling), Ue = ke.nextSibling, [Xe, Ke] = x(Ue.nextSibling); | ||
return s.textContent = Dn, h(u, c(v, { | ||
const a = m(Pn), s = a.firstChild, u = s.nextSibling, b = u.firstChild, [y, C] = x(b.nextSibling), S = y.nextSibling, [M, D] = x(S.nextSibling), B = M.nextSibling, [E, f] = x(B.nextSibling), p = u.nextSibling, N = p.firstChild, [A, W] = x(N.nextSibling), G = A.nextSibling, [F, J] = x(G.nextSibling), ee = F.nextSibling, [U, T] = x(ee.nextSibling), w = p.nextSibling, X = w.firstChild, [q, Ve] = x(X.nextSibling), Oe = q.nextSibling, [pe, Ne] = x(Oe.nextSibling), Te = pe.nextSibling, [qe, Ie] = x(Te.nextSibling), K = w.nextSibling, Re = K.firstChild, [me, Pe] = x(Re.nextSibling), We = me.nextSibling, [he, Fe] = x(We.nextSibling), Ue = he.nextSibling, [Xe, Ke] = x(Ue.nextSibling); | ||
return s.textContent = Dn, k(u, c(v, { | ||
get when() { | ||
@@ -831,3 +831,3 @@ return e().options.toolbar.heading; | ||
} | ||
}), y, C), h(u, c(v, { | ||
}), y, C), k(u, c(v, { | ||
get when() { | ||
@@ -844,3 +844,3 @@ return e().options.toolbar.bold; | ||
} | ||
}), M, D), h(u, c(v, { | ||
}), M, D), k(u, c(v, { | ||
get when() { | ||
@@ -857,3 +857,3 @@ return e().options.toolbar.italic; | ||
} | ||
}), E, f), h(p, c(v, { | ||
}), E, f), k(p, c(v, { | ||
get when() { | ||
@@ -870,3 +870,3 @@ return e().options.toolbar.quote; | ||
} | ||
}), A, W), h(p, c(v, { | ||
}), A, W), k(p, c(v, { | ||
get when() { | ||
@@ -883,3 +883,3 @@ return e().options.toolbar.codeBlock; | ||
} | ||
}), F, J), h(p, c(v, { | ||
}), F, J), k(p, c(v, { | ||
get when() { | ||
@@ -896,3 +896,3 @@ return e().options.toolbar.code; | ||
} | ||
}), U, T), h(w, c(v, { | ||
}), U, T), k(w, c(v, { | ||
get when() { | ||
@@ -909,3 +909,3 @@ return e().options.toolbar.list; | ||
} | ||
}), q, Ve), h(w, c(v, { | ||
}), q, Ve), k(w, c(v, { | ||
get when() { | ||
@@ -922,3 +922,3 @@ return e().options.toolbar.orderedList; | ||
} | ||
}), pe, Ne), h(w, c(v, { | ||
}), pe, Ne), k(w, c(v, { | ||
get when() { | ||
@@ -935,3 +935,3 @@ return e().options.toolbar.taskList; | ||
} | ||
}), qe, Ie), h(K, c(v, { | ||
}), qe, Ie), k(K, c(v, { | ||
get when() { | ||
@@ -948,3 +948,3 @@ return e().options.toolbar.link; | ||
} | ||
}), me, Pe), h(K, c(v, { | ||
}), me, Pe), k(K, c(v, { | ||
get when() { | ||
@@ -961,3 +961,3 @@ return e().options.toolbar.image; | ||
} | ||
}), ke, Fe), h(K, c(v, { | ||
}), he, Fe), k(K, c(v, { | ||
get when() { | ||
@@ -979,4 +979,4 @@ return e().options.toolbar.upload; | ||
})(); | ||
}, Fn = `.ink{color:var(--ink-internal-color, inherit);display:flex;flex-direction:var(--ink-internal-flex-direction, column);gap:1rem;padding:var(--ink-internal-editor-padding, 0)}.ink .cm-tooltip{background-color:var(--ink-internal-block-background-color);border-radius:var(--ink-internal-border-radius);font-family:inherit;padding:.25rem}.ink .cm-tooltip.cm-tooltip-autocomplete ul{font-family:inherit}.ink .cm-tooltip.cm-tooltip-autocomplete ul li.ink-tooltip-option{border-radius:var(--ink-internal-border-radius);padding:.25rem}.ink .cm-tooltip.cm-tooltip-autocomplete ul li.ink-tooltip-option[aria-selected]{background-color:#96969640}.ink .cm-completionLabel{font-family:inherit}.ink-mde,.ink-mde *{box-sizing:border-box}.ink-mde .ink-mde-editor-container{display:flex;flex-direction:column;gap:2em}.ink-mde .ink-mde-attribution{display:flex;font-size:.75em;justify-content:flex-end;opacity:.5}.ink-mde .ink-mde-attribution-link{color:currentColor;font-weight:600;text-decoration:none}.ink-mde .ink-mde-task-toggle-wrapper{align-items:center;display:inline-flex}.ink-mde .ink-mde-task-toggle{cursor:pointer;margin:0;margin-right:.25rem;vertical-align:middle}.ink-mde .cm-editor{display:flex;flex-direction:column;position:relative}.ink-mde .cm-scroller{align-items:flex-start;display:flex;font-family:var(--ink-internal-font-family);font-size:var(--ink-internal-editor-font-size);line-height:var(--ink-internal-editor-line-height);overflow-x:auto;position:relative}.ink-mde .cm-content{display:block;flex-grow:2;flex-shrink:0;margin:0;outline:none;padding:0;white-space:pre;word-wrap:normal}.ink-mde .cm-lineWrapping{flex-shrink:1;overflow-wrap:anywhere;white-space:break-spaces;word-break:break-word}.ink-mde .cm-line{font-family:var(--ink-internal-font-family);padding:0}.ink-mde .cm-line.cm-blockquote{background-color:var(--ink-internal-block-background-color);border-left:.25rem solid currentColor;padding:0 var(--ink-internal-block-padding)}.ink-mde .cm-line.cm-blockquote.cm-blockquote-open{border-top-left-radius:var(--ink-internal-border-radius);border-top-right-radius:var(--ink-internal-border-radius);padding-top:var(--ink-internal-block-padding)}.ink-mde .cm-line.cm-blockquote.cm-blockquote-close{border-bottom-left-radius:var(--ink-internal-border-radius);border-bottom-right-radius:var(--ink-internal-border-radius);padding-bottom:var(--ink-internal-block-padding)}.ink-mde .cm-line.cm-codeblock{background-color:var(--ink-internal-block-background-color);font-family:var(--ink-internal-code-font-family);padding:0 var(--ink-internal-block-padding)}.ink-mde .cm-line.cm-codeblock.cm-codeblock-open{border-radius:var(--ink-internal-border-radius) var(--ink-internal-border-radius) 0 0;padding-top:var(--ink-internal-block-padding)}.ink-mde .cm-line.cm-codeblock.cm-codeblock-close{border-radius:0 0 var(--ink-internal-border-radius) var(--ink-internal-border-radius);padding-bottom:var(--ink-internal-block-padding)}.ink-mde .cm-line .cm-code{background-color:var(--ink-internal-block-background-color);font-family:var(--ink-internal-code-font-family);padding:var(--ink-internal-inline-padding) 0}.ink-mde .cm-line .cm-code.cm-code-open{border-radius:var(--ink-internal-border-radius) 0 0 var(--ink-internal-border-radius);padding-left:var(--ink-internal-inline-padding)}.ink-mde .cm-line .cm-code.cm-code-close{border-radius:0 var(--ink-internal-border-radius) var(--ink-internal-border-radius) 0;padding-right:var(--ink-internal-inline-padding)}.ink-mde .cm-image-backdrop{background-color:var(--ink-internal-block-background-color)} | ||
`, Un = /* @__PURE__ */ k("<style> </style>", 2), Xn = () => { | ||
}, Fn = `.ink{color:var(--ink-internal-color, inherit);display:flex;flex-direction:var(--ink-internal-flex-direction, column);gap:1rem;padding:var(--ink-internal-editor-padding, 0)}.ink .cm-tooltip{background-color:var(--ink-internal-block-background-color);border-radius:var(--ink-internal-border-radius);font-family:inherit;padding:.25rem}.ink .cm-tooltip.cm-tooltip-autocomplete ul{font-family:inherit}.ink .cm-tooltip.cm-tooltip-autocomplete ul li.ink-tooltip-option{border-radius:var(--ink-internal-border-radius);padding:.25rem}.ink .cm-tooltip.cm-tooltip-autocomplete ul li.ink-tooltip-option[aria-selected]{background-color:#96969640}.ink .cm-completionLabel{font-family:inherit}.ink-mde,.ink-mde *{box-sizing:border-box}.ink-mde .ink-mde-editor-container{display:flex;flex-direction:column;gap:2em}.ink-mde .ink-mde-attribution{display:flex;font-size:.75em;justify-content:flex-end;opacity:.5}.ink-mde .ink-mde-attribution-link{color:currentColor;font-weight:600;text-decoration:none}.ink-mde .ink-mde-task-toggle{cursor:pointer;height:1rem;line-height:2em;margin:0 .25rem 0 0;position:relative;top:-1px;vertical-align:middle;width:1rem}.ink-mde .cm-editor{display:flex;flex-direction:column;position:relative}.ink-mde .cm-scroller{align-items:flex-start;display:flex;font-family:var(--ink-internal-font-family);font-size:var(--ink-internal-editor-font-size);line-height:var(--ink-internal-editor-line-height);overflow-x:auto;position:relative}.ink-mde .cm-content{display:block;flex-grow:2;flex-shrink:0;margin:0;outline:none;padding:0;white-space:pre;word-wrap:normal}.ink-mde .cm-lineWrapping{flex-shrink:1;overflow-wrap:anywhere;white-space:break-spaces;word-break:break-word}.ink-mde .cm-line{font-family:var(--ink-internal-font-family);padding:0}.ink-mde .cm-line.cm-blockquote{background-color:var(--ink-internal-block-background-color);border-left:.25rem solid currentColor;padding:0 var(--ink-internal-block-padding)}.ink-mde .cm-line.cm-blockquote.cm-blockquote-open{border-top-left-radius:var(--ink-internal-border-radius);border-top-right-radius:var(--ink-internal-border-radius);padding-top:var(--ink-internal-block-padding)}.ink-mde .cm-line.cm-blockquote.cm-blockquote-close{border-bottom-left-radius:var(--ink-internal-border-radius);border-bottom-right-radius:var(--ink-internal-border-radius);padding-bottom:var(--ink-internal-block-padding)}.ink-mde .cm-line.cm-codeblock{background-color:var(--ink-internal-block-background-color);font-family:var(--ink-internal-code-font-family);padding:0 var(--ink-internal-block-padding)}.ink-mde .cm-line.cm-codeblock.cm-codeblock-open{border-radius:var(--ink-internal-border-radius) var(--ink-internal-border-radius) 0 0;padding-top:var(--ink-internal-block-padding)}.ink-mde .cm-line.cm-codeblock.cm-codeblock-close{border-radius:0 0 var(--ink-internal-border-radius) var(--ink-internal-border-radius);padding-bottom:var(--ink-internal-block-padding)}.ink-mde .cm-line .cm-code{background-color:var(--ink-internal-block-background-color);font-family:var(--ink-internal-code-font-family);padding:var(--ink-internal-inline-padding) 0}.ink-mde .cm-line .cm-code.cm-code-open{border-radius:var(--ink-internal-border-radius) 0 0 var(--ink-internal-border-radius);padding-left:var(--ink-internal-inline-padding)}.ink-mde .cm-line .cm-code.cm-code-close{border-radius:0 var(--ink-internal-border-radius) var(--ink-internal-border-radius) 0;padding-right:var(--ink-internal-inline-padding)}.ink-mde .cm-image-backdrop{background-color:var(--ink-internal-block-background-color)} | ||
`, Un = /* @__PURE__ */ h("<style> </style>", 2), Xn = () => { | ||
const [e] = P(), [t, n] = z(te(e())); | ||
@@ -1006,3 +1006,3 @@ return et(() => { | ||
})(); | ||
}, Kn = /* @__PURE__ */ k('<div class="ink-mde-attribution"><span>powered by <a class="ink-mde-attribution-link" href="https://github.com/voracious/ink-mde" rel="noopener noreferrer" target="_blank">ink-mde</a></span></div>', 6), Qn = /* @__PURE__ */ k('<div class="ink ink-mde"><!#><!/><!#><!/><!#><!/><div class="ink-mde-editor-container"><!#><!/><!#><!/></div></div>', 14), Yn = () => { | ||
}, Kn = /* @__PURE__ */ h('<div class="ink-mde-attribution"><span>powered by <a class="ink-mde-attribution-link" href="https://github.com/voracious/ink-mde" rel="noopener noreferrer" target="_blank">ink-mde</a></span></div>', 6), Qn = /* @__PURE__ */ h('<div class="ink ink-mde"><!#><!/><!#><!/><!#><!/><div class="ink-mde-editor-container"><!#><!/><!#><!/></div></div>', 14), Yn = () => { | ||
const [e, t] = P(), n = (o) => { | ||
@@ -1015,3 +1015,3 @@ t(R(e(), { | ||
const o = m(Qn), r = o.firstChild, [i, l] = x(r.nextSibling), a = i.nextSibling, [s, u] = x(a.nextSibling), b = s.nextSibling, [y, C] = x(b.nextSibling), S = y.nextSibling, M = S.firstChild, [D, B] = x(M.nextSibling), E = D.nextSibling, [f, p] = x(E.nextSibling); | ||
return n(o), Qe(o, vt, !1, !0), h(o, c(Xn, {}), i, l), h(o, c(v, { | ||
return n(o), Qe(o, vt, !1, !0), k(o, c(Xn, {}), i, l), k(o, c(v, { | ||
get when() { | ||
@@ -1023,3 +1023,3 @@ return e().options.files.clipboard || e().options.files.dragAndDrop; | ||
} | ||
}), s, u), h(o, c(v, { | ||
}), s, u), k(o, c(v, { | ||
get when() { | ||
@@ -1031,3 +1031,3 @@ return e().options.interface.toolbar; | ||
} | ||
}), y, C), h(S, c(Sn, {}), D, B), h(S, c(v, { | ||
}), y, C), k(S, c(Sn, {}), D, B), k(S, c(v, { | ||
get when() { | ||
@@ -1034,0 +1034,0 @@ return e().options.interface.attribution; |
@@ -261,3 +261,3 @@ import { ssr, ssrHydrationKey, escape, createComponent, ssrAttribute, ssrSpread, renderToString as renderToString$1 } from 'solid-js/web'; | ||
if (options.interface.autocomplete) { | ||
const { autocomplete } = await import('./autocomplete.1a0687ae.js'); | ||
const { autocomplete } = await import('./autocomplete.201f3abc.js'); | ||
return compartment.reconfigure(autocomplete(options)); | ||
@@ -276,3 +276,3 @@ } | ||
if (options.interface.lists) { | ||
const { lists } = await import('./lists.f0515d6b.js'); | ||
const { lists } = await import('./lists.b465ff74.js'); | ||
return compartment.reconfigure(lists()); | ||
@@ -1390,3 +1390,3 @@ } | ||
const styles = ".ink {\n color: var(--ink-internal-color, inherit);\n display: flex;\n flex-direction: var(--ink-internal-flex-direction, column);\n gap: 1rem;\n padding: var(--ink-internal-editor-padding, 0);\n}\n\n.ink .cm-tooltip {\n background-color: var(--ink-internal-block-background-color);\n border-radius: var(--ink-internal-border-radius);\n font-family: inherit;\n padding: 0.25rem;\n}\n\n.ink .cm-tooltip.cm-tooltip-autocomplete ul {\n font-family: inherit;\n}\n\n.ink .cm-tooltip.cm-tooltip-autocomplete ul li.ink-tooltip-option {\n border-radius: var(--ink-internal-border-radius);\n padding: 0.25rem;\n}\n\n.ink .cm-tooltip.cm-tooltip-autocomplete ul li.ink-tooltip-option[aria-selected] {\n background-color: rgba(150, 150, 150, 0.25);\n}\n\n.ink .cm-completionLabel {\n font-family: inherit;\n}\n\n.ink-mde, .ink-mde * {\n box-sizing: border-box;\n}\n\n.ink-mde .ink-mde-editor-container {\n display: flex;\n flex-direction: column;\n gap: 2em;\n}\n\n.ink-mde .ink-mde-attribution {\n display: flex;\n font-size: 0.75em;\n justify-content: flex-end;\n opacity: 0.5;\n}\n\n.ink-mde .ink-mde-attribution-link {\n color: currentColor;\n font-weight: 600;\n text-decoration: none;\n}\n\n.ink-mde .ink-mde-task-toggle-wrapper {\n align-items: center;\n display: inline-flex;\n}\n\n.ink-mde .ink-mde-task-toggle {\n cursor: pointer;\n margin: 0;\n margin-right: 0.25rem;\n vertical-align: middle;\n}\n\n.ink-mde .cm-editor {\n display: flex;\n flex-direction: column;\n position: relative;\n}\n\n.ink-mde .cm-scroller {\n align-items: flex-start;\n display: flex;\n font-family: var(--ink-internal-font-family);\n font-size: var(--ink-internal-editor-font-size);\n line-height: var(--ink-internal-editor-line-height);\n overflow-x: auto;\n position: relative;\n}\n\n.ink-mde .cm-content {\n display: block;\n flex-grow: 2;\n flex-shrink: 0;\n margin: 0;\n outline: none;\n padding: 0;\n white-space: pre;\n word-wrap: normal;\n}\n\n.ink-mde .cm-lineWrapping {\n flex-shrink: 1;\n overflow-wrap: anywhere;\n white-space: break-spaces;\n word-break: break-word;\n}\n\n.ink-mde .cm-line {\n font-family: var(--ink-internal-font-family);\n padding: 0;\n}\n\n.ink-mde .cm-line.cm-blockquote {\n background-color: var(--ink-internal-block-background-color);\n border-left: 0.25rem solid currentColor;\n padding: 0 var(--ink-internal-block-padding);\n}\n\n.ink-mde .cm-line.cm-blockquote.cm-blockquote-open {\n border-top-left-radius: var(--ink-internal-border-radius);\n border-top-right-radius: var(--ink-internal-border-radius);\n padding-top: var(--ink-internal-block-padding);\n}\n\n.ink-mde .cm-line.cm-blockquote.cm-blockquote-close {\n border-bottom-left-radius: var(--ink-internal-border-radius);\n border-bottom-right-radius: var(--ink-internal-border-radius);\n padding-bottom: var(--ink-internal-block-padding);\n}\n\n.ink-mde .cm-line.cm-codeblock {\n background-color: var(--ink-internal-block-background-color);\n font-family: var(--ink-internal-code-font-family);\n padding: 0 var(--ink-internal-block-padding);\n}\n\n.ink-mde .cm-line.cm-codeblock.cm-codeblock-open {\n border-radius: var(--ink-internal-border-radius) var(--ink-internal-border-radius) 0 0;\n padding-top: var(--ink-internal-block-padding);\n}\n\n.ink-mde .cm-line.cm-codeblock.cm-codeblock-close {\n border-radius: 0 0 var(--ink-internal-border-radius) var(--ink-internal-border-radius);\n padding-bottom: var(--ink-internal-block-padding);\n}\n\n.ink-mde .cm-line .cm-code {\n background-color: var(--ink-internal-block-background-color);\n font-family: var(--ink-internal-code-font-family);\n padding: var(--ink-internal-inline-padding) 0;\n}\n\n.ink-mde .cm-line .cm-code.cm-code-open {\n border-radius: var(--ink-internal-border-radius) 0 0 var(--ink-internal-border-radius);\n padding-left: var(--ink-internal-inline-padding);\n}\n\n.ink-mde .cm-line .cm-code.cm-code-close {\n border-radius: 0 var(--ink-internal-border-radius) var(--ink-internal-border-radius) 0;\n padding-right: var(--ink-internal-inline-padding);\n}\n\n.ink-mde .cm-image-backdrop {\n background-color: var(--ink-internal-block-background-color);\n}\n"; | ||
const styles = ".ink {\n color: var(--ink-internal-color, inherit);\n display: flex;\n flex-direction: var(--ink-internal-flex-direction, column);\n gap: 1rem;\n padding: var(--ink-internal-editor-padding, 0);\n}\n\n.ink .cm-tooltip {\n background-color: var(--ink-internal-block-background-color);\n border-radius: var(--ink-internal-border-radius);\n font-family: inherit;\n padding: 0.25rem;\n}\n\n.ink .cm-tooltip.cm-tooltip-autocomplete ul {\n font-family: inherit;\n}\n\n.ink .cm-tooltip.cm-tooltip-autocomplete ul li.ink-tooltip-option {\n border-radius: var(--ink-internal-border-radius);\n padding: 0.25rem;\n}\n\n.ink .cm-tooltip.cm-tooltip-autocomplete ul li.ink-tooltip-option[aria-selected] {\n background-color: rgba(150, 150, 150, 0.25);\n}\n\n.ink .cm-completionLabel {\n font-family: inherit;\n}\n\n.ink-mde, .ink-mde * {\n box-sizing: border-box;\n}\n\n.ink-mde .ink-mde-editor-container {\n display: flex;\n flex-direction: column;\n gap: 2em;\n}\n\n.ink-mde .ink-mde-attribution {\n display: flex;\n font-size: 0.75em;\n justify-content: flex-end;\n opacity: 0.5;\n}\n\n.ink-mde .ink-mde-attribution-link {\n color: currentColor;\n font-weight: 600;\n text-decoration: none;\n}\n\n.ink-mde .ink-mde-task-toggle {\n cursor: pointer;\n height: 1rem;\n line-height: 2em;\n margin: 0 0.25rem 0 0;\n position: relative;\n top: -1px;\n vertical-align: middle;\n width: 1rem;\n}\n\n.ink-mde .cm-editor {\n display: flex;\n flex-direction: column;\n position: relative;\n}\n\n.ink-mde .cm-scroller {\n align-items: flex-start;\n display: flex;\n font-family: var(--ink-internal-font-family);\n font-size: var(--ink-internal-editor-font-size);\n line-height: var(--ink-internal-editor-line-height);\n overflow-x: auto;\n position: relative;\n}\n\n.ink-mde .cm-content {\n display: block;\n flex-grow: 2;\n flex-shrink: 0;\n margin: 0;\n outline: none;\n padding: 0;\n white-space: pre;\n word-wrap: normal;\n}\n\n.ink-mde .cm-lineWrapping {\n flex-shrink: 1;\n overflow-wrap: anywhere;\n white-space: break-spaces;\n word-break: break-word;\n}\n\n.ink-mde .cm-line {\n font-family: var(--ink-internal-font-family);\n padding: 0;\n}\n\n.ink-mde .cm-line.cm-blockquote {\n background-color: var(--ink-internal-block-background-color);\n border-left: 0.25rem solid currentColor;\n padding: 0 var(--ink-internal-block-padding);\n}\n\n.ink-mde .cm-line.cm-blockquote.cm-blockquote-open {\n border-top-left-radius: var(--ink-internal-border-radius);\n border-top-right-radius: var(--ink-internal-border-radius);\n padding-top: var(--ink-internal-block-padding);\n}\n\n.ink-mde .cm-line.cm-blockquote.cm-blockquote-close {\n border-bottom-left-radius: var(--ink-internal-border-radius);\n border-bottom-right-radius: var(--ink-internal-border-radius);\n padding-bottom: var(--ink-internal-block-padding);\n}\n\n.ink-mde .cm-line.cm-codeblock {\n background-color: var(--ink-internal-block-background-color);\n font-family: var(--ink-internal-code-font-family);\n padding: 0 var(--ink-internal-block-padding);\n}\n\n.ink-mde .cm-line.cm-codeblock.cm-codeblock-open {\n border-radius: var(--ink-internal-border-radius) var(--ink-internal-border-radius) 0 0;\n padding-top: var(--ink-internal-block-padding);\n}\n\n.ink-mde .cm-line.cm-codeblock.cm-codeblock-close {\n border-radius: 0 0 var(--ink-internal-border-radius) var(--ink-internal-border-radius);\n padding-bottom: var(--ink-internal-block-padding);\n}\n\n.ink-mde .cm-line .cm-code {\n background-color: var(--ink-internal-block-background-color);\n font-family: var(--ink-internal-code-font-family);\n padding: var(--ink-internal-inline-padding) 0;\n}\n\n.ink-mde .cm-line .cm-code.cm-code-open {\n border-radius: var(--ink-internal-border-radius) 0 0 var(--ink-internal-border-radius);\n padding-left: var(--ink-internal-inline-padding);\n}\n\n.ink-mde .cm-line .cm-code.cm-code-close {\n border-radius: 0 var(--ink-internal-border-radius) var(--ink-internal-border-radius) 0;\n padding-right: var(--ink-internal-inline-padding);\n}\n\n.ink-mde .cm-image-backdrop {\n background-color: var(--ink-internal-block-background-color);\n}\n"; | ||
@@ -1393,0 +1393,0 @@ const _tmpl$$1 = ["<style", ">", "</style>"]; |
{ | ||
"name": "ink-mde", | ||
"type": "module", | ||
"version": "0.15.0-test.2", | ||
"version": "0.15.0-test.3", | ||
"packageManager": "yarn@3.2.2", | ||
@@ -117,3 +117,3 @@ "description": "The flexible TypeScript Markdown editor that powers https://octo.app.", | ||
"@replit/codemirror-vim": "^6.0.2", | ||
"ink-mde": "0.15.0-test.2", | ||
"ink-mde": "0.15.0-test.3", | ||
"solid-js": "^1.5.5", | ||
@@ -120,0 +120,0 @@ "style-mod": "^4.0.0" |
@@ -48,13 +48,10 @@ import { syntaxTree } from '@codemirror/language' | ||
toDOM: () => { | ||
const node = document.createElement('span') | ||
const input = document.createElement('input') | ||
node.setAttribute('aria-hidden', 'true') | ||
node.className = 'ink-mde-task-toggle-wrapper' | ||
input.setAttribute('aria-hidden', 'true') | ||
input.className = 'ink-mde-task-toggle' | ||
input.type = 'checkbox' | ||
input.checked = isChecked | ||
node.appendChild(input) | ||
return node | ||
return input | ||
}, | ||
@@ -76,8 +73,8 @@ updateDOM: () => false, | ||
const toggleTask = (view: EditorView, position: number) => { | ||
const before = view.state.sliceDoc(position - 3, position) | ||
const before = view.state.sliceDoc(position + 2, position + 5) | ||
view.dispatch({ | ||
changes: { | ||
from: position - 3, | ||
to: position, | ||
from: position + 2, | ||
to: position + 5, | ||
insert: before === '[ ]' ? '[x]' : '[ ]', | ||
@@ -84,0 +81,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
866171
-0.15%7797
-0.13%Updated