@blocknote/xl-multi-column 0.30.1 → 0.31.1

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.
@@ -418,6 +418,7 @@ const be = (o) => new H({
418
418
  content: "blockContainer+",
419
419
  priority: 40,
420
420
  defining: !0,
421
+ marks: "deletion insertion modification",
421
422
  addAttributes() {
422
423
  return {
423
424
  width: {
@@ -478,6 +479,7 @@ const be = (o) => new H({
478
479
  priority: 40,
479
480
  // should be below blockContainer
480
481
  defining: !0,
482
+ marks: "deletion insertion modification",
481
483
  parseHTML() {
482
484
  return [
483
485
  {
@@ -516,7 +518,7 @@ const be = (o) => new H({
516
518
  },
517
519
  inlineContentSpecs: o.inlineContentSpecs,
518
520
  styleSpecs: o.styleSpecs
519
- }), _ = 0.1;
521
+ }), k = 0.1;
520
522
  function ye(o) {
521
523
  return { left: o.clientX, top: o.clientY };
522
524
  }
@@ -524,7 +526,7 @@ function Xe(o) {
524
526
  const e = o.editor;
525
527
  return new H({
526
528
  view(t) {
527
- return new _e(t, o);
529
+ return new ke(t, o);
528
530
  },
529
531
  props: {
530
532
  handleDrop(t, n, r, u) {
@@ -533,7 +535,7 @@ function Xe(o) {
533
535
  throw new Error("Could not get event position");
534
536
  const l = V(t.state, c), i = Z(l), a = t.nodeDOM(l.posBeforeNode).getBoundingClientRect();
535
537
  let s = "regular";
536
- if (n.clientX <= a.left + a.width * _ && (s = "left"), n.clientX >= a.right - a.width * _ && (s = "right"), s === "regular")
538
+ if (n.clientX <= a.left + a.width * k && (s = "left"), n.clientX >= a.right - a.width * k && (s = "right"), s === "regular")
537
539
  return !1;
538
540
  const d = S(
539
541
  r.content.child(0),
@@ -596,7 +598,7 @@ function Xe(o) {
596
598
  }
597
599
  });
598
600
  }
599
- class _e {
601
+ class ke {
600
602
  constructor(e, t) {
601
603
  p(this, "width");
602
604
  p(this, "color");
@@ -712,7 +714,7 @@ class _e {
712
714
  if (t && !u) {
713
715
  let c = "regular", l = t.pos;
714
716
  const i = V(this.editorView.state, t), a = this.editorView.nodeDOM(i.posBeforeNode).getBoundingClientRect();
715
- if (e.clientX <= a.left + a.width * _ && (c = "left", l = i.posBeforeNode), e.clientX >= a.right - a.width * _ && (c = "right", l = i.posBeforeNode), c === "regular" && this.editorView.dragging && this.editorView.dragging.slice) {
717
+ if (e.clientX <= a.left + a.width * k && (c = "left", l = i.posBeforeNode), e.clientX >= a.right - a.width * k && (c = "right", l = i.posBeforeNode), c === "regular" && this.editorView.dragging && this.editorView.dragging.slice) {
716
718
  const s = ee(
717
719
  this.editorView.state.doc,
718
720
  l,
@@ -747,7 +749,7 @@ var X = {
747
749
  className: void 0,
748
750
  style: void 0,
749
751
  attr: void 0
750
- }, I = v.createContext && /* @__PURE__ */ v.createContext(X), ke = ["attr", "size", "title"];
752
+ }, I = v.createContext && /* @__PURE__ */ v.createContext(X), _e = ["attr", "size", "title"];
751
753
  function Pe(o, e) {
752
754
  if (o == null) return {};
753
755
  var t = Se(o, e), n, r;
@@ -768,15 +770,15 @@ function Se(o, e) {
768
770
  }
769
771
  return t;
770
772
  }
771
- function k() {
772
- return k = Object.assign ? Object.assign.bind() : function(o) {
773
+ function _() {
774
+ return _ = Object.assign ? Object.assign.bind() : function(o) {
773
775
  for (var e = 1; e < arguments.length; e++) {
774
776
  var t = arguments[e];
775
777
  for (var n in t)
776
778
  Object.prototype.hasOwnProperty.call(t, n) && (o[n] = t[n]);
777
779
  }
778
780
  return o;
779
- }, k.apply(this, arguments);
781
+ }, _.apply(this, arguments);
780
782
  }
781
783
  function L(o, e) {
782
784
  var t = Object.keys(o);
@@ -822,7 +824,7 @@ function U(o) {
822
824
  }, e.attr), U(e.child)));
823
825
  }
824
826
  function G(o) {
825
- return (e) => /* @__PURE__ */ v.createElement(De, k({
827
+ return (e) => /* @__PURE__ */ v.createElement(De, _({
826
828
  attr: P({}, o.attr)
827
829
  }, e), U(o.child));
828
830
  }
@@ -832,8 +834,8 @@ function De(o) {
832
834
  attr: n,
833
835
  size: r,
834
836
  title: u
835
- } = o, c = Pe(o, ke), l = r || t.size || "1em", i;
836
- return t.className && (i = t.className), o.className && (i = (i ? i + " " : "") + o.className), /* @__PURE__ */ v.createElement("svg", k({
837
+ } = o, c = Pe(o, _e), l = r || t.size || "1em", i;
838
+ return t.className && (i = t.className), o.className && (i = (i ? i + " " : "") + o.className), /* @__PURE__ */ v.createElement("svg", _({
837
839
  stroke: "currentColor",
838
840
  fill: "currentColor",
839
841
  strokeWidth: "0"