@milkdown/preset-gfm
Advanced tools
Comparing version 7.2.0 to 7.2.1
@@ -489,4 +489,4 @@ import { expectDomTypeError as O } from "@milkdown/exception"; | ||
const pe = h("MoveRow", () => ({ from: e, to: t } = {}) => (n, o) => { | ||
const { tr: l } = n, r = o == null ? void 0 : o(ot(l, e ?? 0, t ?? 0, !0)); | ||
return Boolean(r); | ||
const { tr: l } = n; | ||
return !!(o == null ? void 0 : o(ot(l, e ?? 0, t ?? 0, !0))); | ||
}); | ||
@@ -498,4 +498,4 @@ d(pe, { | ||
const fe = h("MoveCol", () => ({ from: e, to: t } = {}) => (n, o) => { | ||
const { tr: l } = n, r = o == null ? void 0 : o(tt(l, e ?? 0, t ?? 0, !0)); | ||
return Boolean(r); | ||
const { tr: l } = n; | ||
return !!(o == null ? void 0 : o(tt(l, e ?? 0, t ?? 0, !0))); | ||
}); | ||
@@ -507,4 +507,4 @@ d(fe, { | ||
const he = h("SelectRow", () => (e = 0) => (t, n) => { | ||
const { tr: o } = t, l = n == null ? void 0 : n(Je(e)(o)); | ||
return Boolean(l); | ||
const { tr: o } = t; | ||
return !!(n == null ? void 0 : n(Je(e)(o))); | ||
}); | ||
@@ -516,4 +516,4 @@ d(he, { | ||
const ge = h("SelectCol", () => (e = 0) => (t, n) => { | ||
const { tr: o } = t, l = n == null ? void 0 : n(Qe(e)(o)); | ||
return Boolean(l); | ||
const { tr: o } = t; | ||
return !!(n == null ? void 0 : n(Qe(e)(o))); | ||
}); | ||
@@ -525,4 +525,4 @@ d(ge, { | ||
const be = h("SelectTable", () => () => (e, t) => { | ||
const { tr: n } = e, o = t == null ? void 0 : t(qe(n)); | ||
return Boolean(o); | ||
const { tr: n } = e; | ||
return !!(t == null ? void 0 : t(qe(n))); | ||
}); | ||
@@ -643,2 +643,3 @@ d(be, { | ||
{ | ||
// TODO: add a prosemirror plugin to sync label on change | ||
"data-label": t, | ||
@@ -703,2 +704,3 @@ "data-type": E | ||
{ | ||
// TODO: add a prosemirror plugin to sync label on change | ||
"data-label": t, | ||
@@ -780,3 +782,3 @@ "data-type": D | ||
} | ||
const a = l.label != null ? `${l.label}.` : "•", i = l.checked != null ? Boolean(l.checked) : null, c = l.label != null ? "ordered" : "bullet", m = l.spread != null ? `${l.spread}` : "true"; | ||
const a = l.label != null ? `${l.label}.` : "•", i = l.checked != null ? !!l.checked : null, c = l.label != null ? "ordered" : "bullet", m = l.spread != null ? `${l.spread}` : "true"; | ||
o.openNode(r, { label: a, listType: c, spread: m, checked: i }), o.next(l.children), o.closeNode(); | ||
@@ -810,3 +812,3 @@ } | ||
return null; | ||
const i = Boolean(((s = t.groups) == null ? void 0 : s.checked) === "x"), c = l.before(r), m = e.tr; | ||
const i = ((s = t.groups) == null ? void 0 : s.checked) === "x", c = l.before(r), m = e.tr; | ||
return m.deleteRange(n, o).setNodeMarkup(c, void 0, { ...a.attrs, checked: i }), m; | ||
@@ -813,0 +815,0 @@ })); |
@@ -489,4 +489,4 @@ import { expectDomTypeError as O } from "@milkdown/exception"; | ||
const pe = h("MoveRow", () => ({ from: e, to: t } = {}) => (n, o) => { | ||
const { tr: l } = n, r = o == null ? void 0 : o(ot(l, e ?? 0, t ?? 0, !0)); | ||
return Boolean(r); | ||
const { tr: l } = n; | ||
return !!(o == null ? void 0 : o(ot(l, e ?? 0, t ?? 0, !0))); | ||
}); | ||
@@ -498,4 +498,4 @@ d(pe, { | ||
const fe = h("MoveCol", () => ({ from: e, to: t } = {}) => (n, o) => { | ||
const { tr: l } = n, r = o == null ? void 0 : o(tt(l, e ?? 0, t ?? 0, !0)); | ||
return Boolean(r); | ||
const { tr: l } = n; | ||
return !!(o == null ? void 0 : o(tt(l, e ?? 0, t ?? 0, !0))); | ||
}); | ||
@@ -507,4 +507,4 @@ d(fe, { | ||
const he = h("SelectRow", () => (e = 0) => (t, n) => { | ||
const { tr: o } = t, l = n == null ? void 0 : n(Je(e)(o)); | ||
return Boolean(l); | ||
const { tr: o } = t; | ||
return !!(n == null ? void 0 : n(Je(e)(o))); | ||
}); | ||
@@ -516,4 +516,4 @@ d(he, { | ||
const ge = h("SelectCol", () => (e = 0) => (t, n) => { | ||
const { tr: o } = t, l = n == null ? void 0 : n(Qe(e)(o)); | ||
return Boolean(l); | ||
const { tr: o } = t; | ||
return !!(n == null ? void 0 : n(Qe(e)(o))); | ||
}); | ||
@@ -525,4 +525,4 @@ d(ge, { | ||
const be = h("SelectTable", () => () => (e, t) => { | ||
const { tr: n } = e, o = t == null ? void 0 : t(qe(n)); | ||
return Boolean(o); | ||
const { tr: n } = e; | ||
return !!(t == null ? void 0 : t(qe(n))); | ||
}); | ||
@@ -643,2 +643,3 @@ d(be, { | ||
{ | ||
// TODO: add a prosemirror plugin to sync label on change | ||
"data-label": t, | ||
@@ -703,2 +704,3 @@ "data-type": E | ||
{ | ||
// TODO: add a prosemirror plugin to sync label on change | ||
"data-label": t, | ||
@@ -780,3 +782,3 @@ "data-type": D | ||
} | ||
const a = l.label != null ? `${l.label}.` : "•", i = l.checked != null ? Boolean(l.checked) : null, c = l.label != null ? "ordered" : "bullet", m = l.spread != null ? `${l.spread}` : "true"; | ||
const a = l.label != null ? `${l.label}.` : "•", i = l.checked != null ? !!l.checked : null, c = l.label != null ? "ordered" : "bullet", m = l.spread != null ? `${l.spread}` : "true"; | ||
o.openNode(r, { label: a, listType: c, spread: m, checked: i }), o.next(l.children), o.closeNode(); | ||
@@ -810,3 +812,3 @@ } | ||
return null; | ||
const i = Boolean(((s = t.groups) == null ? void 0 : s.checked) === "x"), c = l.before(r), m = e.tr; | ||
const i = ((s = t.groups) == null ? void 0 : s.checked) === "x", c = l.before(r), m = e.tr; | ||
return m.deleteRange(n, o).setNodeMarkup(c, void 0, { ...a.attrs, checked: i }), m; | ||
@@ -813,0 +815,0 @@ })); |
{ | ||
"name": "@milkdown/preset-gfm", | ||
"type": "module", | ||
"version": "7.2.0", | ||
"version": "7.2.1", | ||
"license": "MIT", | ||
@@ -34,11 +34,11 @@ "repository": { | ||
"tslib": "^2.5.0", | ||
"@milkdown/exception": "7.2.0", | ||
"@milkdown/utils": "7.2.0" | ||
"@milkdown/exception": "7.2.1", | ||
"@milkdown/utils": "7.2.1" | ||
}, | ||
"devDependencies": { | ||
"@milkdown/core": "7.2.0", | ||
"@milkdown/ctx": "7.2.0", | ||
"@milkdown/preset-commonmark": "7.2.0", | ||
"@milkdown/prose": "7.2.0", | ||
"@milkdown/transformer": "7.2.0" | ||
"@milkdown/core": "7.2.1", | ||
"@milkdown/ctx": "7.2.1", | ||
"@milkdown/preset-commonmark": "7.2.1", | ||
"@milkdown/prose": "7.2.1", | ||
"@milkdown/transformer": "7.2.1" | ||
}, | ||
@@ -45,0 +45,0 @@ "nx": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
185222
3297
+ Added@milkdown/exception@7.2.1(transitive)
+ Added@milkdown/utils@7.2.1(transitive)
- Removed@milkdown/exception@7.2.0(transitive)
- Removed@milkdown/utils@7.2.0(transitive)
Updated@milkdown/exception@7.2.1
Updated@milkdown/utils@7.2.1