microboard-temp 0.13.43 → 0.13.44

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.
@@ -12065,6 +12065,9 @@ class SpatialIndex {
12065
12065
  this.Mbr = new Mbr;
12066
12066
  }
12067
12067
  insert(item) {
12068
+ if (this.itemsArray.includes(item) || this.getById(item.getId())) {
12069
+ return;
12070
+ }
12068
12071
  this.itemsArray.push(item);
12069
12072
  this.itemsIndex.insert(item);
12070
12073
  if (conf.isNode()) {
@@ -12662,6 +12665,9 @@ class SimpleSpatialIndex {
12662
12665
  this.Mbr = new Mbr;
12663
12666
  }
12664
12667
  insert(item) {
12668
+ if (this.itemsArray.includes(item) || this.getById(item.getId())) {
12669
+ return;
12670
+ }
12665
12671
  this.itemsArray.push(item);
12666
12672
  if (this.Mbr.getWidth() === 0 && this.Mbr.getHeight() === 0) {
12667
12673
  this.Mbr = item.getMbr().copy();
@@ -13088,7 +13094,10 @@ var init_BaseItem = __esm(() => {
13088
13094
  if (this.parent !== childId && this.getId() !== childId && !this.hasAncestor(childId)) {
13089
13095
  if (!this.index?.getById(childId) && foundItem) {
13090
13096
  const localMatrix = foundItem.transformation.toMatrix().toLocalOf(containerNestingMatrix);
13091
- this.board.items.index.remove(foundItem, true);
13097
+ const currentParentId = foundItem.parent;
13098
+ const currentParent = currentParentId !== "Board" ? this.board.items.getById(currentParentId) : undefined;
13099
+ const sourceIndex = currentParent?.index || this.board.items.index;
13100
+ sourceIndex.remove(foundItem, true);
13092
13101
  foundItem.parent = this.getId();
13093
13102
  foundItem.onParentChanged(this.getId());
13094
13103
  foundItem.transformation.setLocalMatrix(localMatrix);
@@ -16717,15 +16726,15 @@ var import_slate41, setLink = (editor, link, selection) => {
16717
16726
  }
16718
16727
  const format = link ? "rgba(71, 120, 245, 1)" : "rgb(20, 21, 26)";
16719
16728
  import_slate41.Transforms.setNodes(editor, { fontColor: format }, {
16720
- match: (n) => !import_slate41.Editor.isEditor(n) && n.type === "text",
16729
+ match: (n) => import_slate41.Text.isText(n),
16721
16730
  split: true
16722
16731
  });
16723
- for (const [node, path2] of import_slate41.Editor.nodes(editor, {
16724
- match: (n) => !import_slate41.Editor.isEditor(n) && n.type === "text"
16732
+ for (const [, path2] of import_slate41.Editor.nodes(editor, {
16733
+ match: (n) => import_slate41.Text.isText(n)
16725
16734
  })) {
16726
16735
  const nodeRange = import_slate41.Editor.range(editor, path2);
16727
16736
  import_slate41.Transforms.select(editor, nodeRange);
16728
- import_slate41.Transforms.setNodes(editor, { link }, { split: false, match: (n) => !import_slate41.Editor.isEditor(n) && n.type === "text" });
16737
+ import_slate41.Transforms.setNodes(editor, { link }, { split: false, match: (n) => import_slate41.Text.isText(n) });
16729
16738
  }
16730
16739
  };
16731
16740
  var init_setLink = __esm(() => {
package/dist/cjs/index.js CHANGED
@@ -12065,6 +12065,9 @@ class SpatialIndex {
12065
12065
  this.Mbr = new Mbr;
12066
12066
  }
12067
12067
  insert(item) {
12068
+ if (this.itemsArray.includes(item) || this.getById(item.getId())) {
12069
+ return;
12070
+ }
12068
12071
  this.itemsArray.push(item);
12069
12072
  this.itemsIndex.insert(item);
12070
12073
  if (conf.isNode()) {
@@ -12662,6 +12665,9 @@ class SimpleSpatialIndex {
12662
12665
  this.Mbr = new Mbr;
12663
12666
  }
12664
12667
  insert(item) {
12668
+ if (this.itemsArray.includes(item) || this.getById(item.getId())) {
12669
+ return;
12670
+ }
12665
12671
  this.itemsArray.push(item);
12666
12672
  if (this.Mbr.getWidth() === 0 && this.Mbr.getHeight() === 0) {
12667
12673
  this.Mbr = item.getMbr().copy();
@@ -13088,7 +13094,10 @@ var init_BaseItem = __esm(() => {
13088
13094
  if (this.parent !== childId && this.getId() !== childId && !this.hasAncestor(childId)) {
13089
13095
  if (!this.index?.getById(childId) && foundItem) {
13090
13096
  const localMatrix = foundItem.transformation.toMatrix().toLocalOf(containerNestingMatrix);
13091
- this.board.items.index.remove(foundItem, true);
13097
+ const currentParentId = foundItem.parent;
13098
+ const currentParent = currentParentId !== "Board" ? this.board.items.getById(currentParentId) : undefined;
13099
+ const sourceIndex = currentParent?.index || this.board.items.index;
13100
+ sourceIndex.remove(foundItem, true);
13092
13101
  foundItem.parent = this.getId();
13093
13102
  foundItem.onParentChanged(this.getId());
13094
13103
  foundItem.transformation.setLocalMatrix(localMatrix);
@@ -16717,15 +16726,15 @@ var import_slate41, setLink = (editor, link, selection) => {
16717
16726
  }
16718
16727
  const format = link ? "rgba(71, 120, 245, 1)" : "rgb(20, 21, 26)";
16719
16728
  import_slate41.Transforms.setNodes(editor, { fontColor: format }, {
16720
- match: (n) => !import_slate41.Editor.isEditor(n) && n.type === "text",
16729
+ match: (n) => import_slate41.Text.isText(n),
16721
16730
  split: true
16722
16731
  });
16723
- for (const [node, path2] of import_slate41.Editor.nodes(editor, {
16724
- match: (n) => !import_slate41.Editor.isEditor(n) && n.type === "text"
16732
+ for (const [, path2] of import_slate41.Editor.nodes(editor, {
16733
+ match: (n) => import_slate41.Text.isText(n)
16725
16734
  })) {
16726
16735
  const nodeRange = import_slate41.Editor.range(editor, path2);
16727
16736
  import_slate41.Transforms.select(editor, nodeRange);
16728
- import_slate41.Transforms.setNodes(editor, { link }, { split: false, match: (n) => !import_slate41.Editor.isEditor(n) && n.type === "text" });
16737
+ import_slate41.Transforms.setNodes(editor, { link }, { split: false, match: (n) => import_slate41.Text.isText(n) });
16729
16738
  }
16730
16739
  };
16731
16740
  var init_setLink = __esm(() => {
package/dist/cjs/node.js CHANGED
@@ -12085,6 +12085,9 @@ class SpatialIndex {
12085
12085
  this.Mbr = new Mbr;
12086
12086
  }
12087
12087
  insert(item) {
12088
+ if (this.itemsArray.includes(item) || this.getById(item.getId())) {
12089
+ return;
12090
+ }
12088
12091
  this.itemsArray.push(item);
12089
12092
  this.itemsIndex.insert(item);
12090
12093
  if (conf.isNode()) {
@@ -12682,6 +12685,9 @@ class SimpleSpatialIndex {
12682
12685
  this.Mbr = new Mbr;
12683
12686
  }
12684
12687
  insert(item) {
12688
+ if (this.itemsArray.includes(item) || this.getById(item.getId())) {
12689
+ return;
12690
+ }
12685
12691
  this.itemsArray.push(item);
12686
12692
  if (this.Mbr.getWidth() === 0 && this.Mbr.getHeight() === 0) {
12687
12693
  this.Mbr = item.getMbr().copy();
@@ -13108,7 +13114,10 @@ var init_BaseItem = __esm(() => {
13108
13114
  if (this.parent !== childId && this.getId() !== childId && !this.hasAncestor(childId)) {
13109
13115
  if (!this.index?.getById(childId) && foundItem) {
13110
13116
  const localMatrix = foundItem.transformation.toMatrix().toLocalOf(containerNestingMatrix);
13111
- this.board.items.index.remove(foundItem, true);
13117
+ const currentParentId = foundItem.parent;
13118
+ const currentParent = currentParentId !== "Board" ? this.board.items.getById(currentParentId) : undefined;
13119
+ const sourceIndex = currentParent?.index || this.board.items.index;
13120
+ sourceIndex.remove(foundItem, true);
13112
13121
  foundItem.parent = this.getId();
13113
13122
  foundItem.onParentChanged(this.getId());
13114
13123
  foundItem.transformation.setLocalMatrix(localMatrix);
@@ -16808,15 +16817,15 @@ var import_slate40, setLink = (editor, link, selection) => {
16808
16817
  }
16809
16818
  const format = link ? "rgba(71, 120, 245, 1)" : "rgb(20, 21, 26)";
16810
16819
  import_slate40.Transforms.setNodes(editor, { fontColor: format }, {
16811
- match: (n) => !import_slate40.Editor.isEditor(n) && n.type === "text",
16820
+ match: (n) => import_slate40.Text.isText(n),
16812
16821
  split: true
16813
16822
  });
16814
- for (const [node, path2] of import_slate40.Editor.nodes(editor, {
16815
- match: (n) => !import_slate40.Editor.isEditor(n) && n.type === "text"
16823
+ for (const [, path2] of import_slate40.Editor.nodes(editor, {
16824
+ match: (n) => import_slate40.Text.isText(n)
16816
16825
  })) {
16817
16826
  const nodeRange = import_slate40.Editor.range(editor, path2);
16818
16827
  import_slate40.Transforms.select(editor, nodeRange);
16819
- import_slate40.Transforms.setNodes(editor, { link }, { split: false, match: (n) => !import_slate40.Editor.isEditor(n) && n.type === "text" });
16828
+ import_slate40.Transforms.setNodes(editor, { link }, { split: false, match: (n) => import_slate40.Text.isText(n) });
16820
16829
  }
16821
16830
  };
16822
16831
  var init_setLink = __esm(() => {
@@ -12037,6 +12037,9 @@ class SpatialIndex {
12037
12037
  this.Mbr = new Mbr;
12038
12038
  }
12039
12039
  insert(item) {
12040
+ if (this.itemsArray.includes(item) || this.getById(item.getId())) {
12041
+ return;
12042
+ }
12040
12043
  this.itemsArray.push(item);
12041
12044
  this.itemsIndex.insert(item);
12042
12045
  if (conf.isNode()) {
@@ -12634,6 +12637,9 @@ class SimpleSpatialIndex {
12634
12637
  this.Mbr = new Mbr;
12635
12638
  }
12636
12639
  insert(item) {
12640
+ if (this.itemsArray.includes(item) || this.getById(item.getId())) {
12641
+ return;
12642
+ }
12637
12643
  this.itemsArray.push(item);
12638
12644
  if (this.Mbr.getWidth() === 0 && this.Mbr.getHeight() === 0) {
12639
12645
  this.Mbr = item.getMbr().copy();
@@ -13060,7 +13066,10 @@ var init_BaseItem = __esm(() => {
13060
13066
  if (this.parent !== childId && this.getId() !== childId && !this.hasAncestor(childId)) {
13061
13067
  if (!this.index?.getById(childId) && foundItem) {
13062
13068
  const localMatrix = foundItem.transformation.toMatrix().toLocalOf(containerNestingMatrix);
13063
- this.board.items.index.remove(foundItem, true);
13069
+ const currentParentId = foundItem.parent;
13070
+ const currentParent = currentParentId !== "Board" ? this.board.items.getById(currentParentId) : undefined;
13071
+ const sourceIndex = currentParent?.index || this.board.items.index;
13072
+ sourceIndex.remove(foundItem, true);
13064
13073
  foundItem.parent = this.getId();
13065
13074
  foundItem.onParentChanged(this.getId());
13066
13075
  foundItem.transformation.setLocalMatrix(localMatrix);
@@ -16659,7 +16668,7 @@ var init_getListTypeAtSelectionStart = __esm(() => {
16659
16668
  });
16660
16669
 
16661
16670
  // src/Items/RichText/editorHelpers/links/setLink.ts
16662
- import { Editor as Editor12, Transforms as Transforms11 } from "slate";
16671
+ import { Editor as Editor12, Transforms as Transforms11, Text as Text6 } from "slate";
16663
16672
  var setLink = (editor, link, selection) => {
16664
16673
  if (!selection) {
16665
16674
  selectWholeText(editor);
@@ -16671,15 +16680,15 @@ var setLink = (editor, link, selection) => {
16671
16680
  }
16672
16681
  const format = link ? "rgba(71, 120, 245, 1)" : "rgb(20, 21, 26)";
16673
16682
  Transforms11.setNodes(editor, { fontColor: format }, {
16674
- match: (n) => !Editor12.isEditor(n) && n.type === "text",
16683
+ match: (n) => Text6.isText(n),
16675
16684
  split: true
16676
16685
  });
16677
- for (const [node, path2] of Editor12.nodes(editor, {
16678
- match: (n) => !Editor12.isEditor(n) && n.type === "text"
16686
+ for (const [, path2] of Editor12.nodes(editor, {
16687
+ match: (n) => Text6.isText(n)
16679
16688
  })) {
16680
16689
  const nodeRange = Editor12.range(editor, path2);
16681
16690
  Transforms11.select(editor, nodeRange);
16682
- Transforms11.setNodes(editor, { link }, { split: false, match: (n) => !Editor12.isEditor(n) && n.type === "text" });
16691
+ Transforms11.setNodes(editor, { link }, { split: false, match: (n) => Text6.isText(n) });
16683
16692
  }
16684
16693
  };
16685
16694
  var init_setLink = __esm(() => {
@@ -25039,7 +25048,7 @@ var init_setEditorFocus = () => {};
25039
25048
  import {
25040
25049
  Editor as Editor31,
25041
25050
  Element as Element9,
25042
- Text as Text6,
25051
+ Text as Text7,
25043
25052
  Transforms as Transforms21
25044
25053
  } from "slate";
25045
25054
  var isEditInProcessValue = false, counter = 0, RichText;
@@ -25607,7 +25616,7 @@ var init_RichText = __esm(() => {
25607
25616
  }
25608
25617
  getMinFontSize() {
25609
25618
  const textNodes = Editor31.nodes(this.editor.editor, {
25610
- match: (n) => Text6.isText(n),
25619
+ match: (n) => Text7.isText(n),
25611
25620
  at: []
25612
25621
  });
25613
25622
  const fontSizes = [];
package/dist/esm/index.js CHANGED
@@ -12030,6 +12030,9 @@ class SpatialIndex {
12030
12030
  this.Mbr = new Mbr;
12031
12031
  }
12032
12032
  insert(item) {
12033
+ if (this.itemsArray.includes(item) || this.getById(item.getId())) {
12034
+ return;
12035
+ }
12033
12036
  this.itemsArray.push(item);
12034
12037
  this.itemsIndex.insert(item);
12035
12038
  if (conf.isNode()) {
@@ -12627,6 +12630,9 @@ class SimpleSpatialIndex {
12627
12630
  this.Mbr = new Mbr;
12628
12631
  }
12629
12632
  insert(item) {
12633
+ if (this.itemsArray.includes(item) || this.getById(item.getId())) {
12634
+ return;
12635
+ }
12630
12636
  this.itemsArray.push(item);
12631
12637
  if (this.Mbr.getWidth() === 0 && this.Mbr.getHeight() === 0) {
12632
12638
  this.Mbr = item.getMbr().copy();
@@ -13053,7 +13059,10 @@ var init_BaseItem = __esm(() => {
13053
13059
  if (this.parent !== childId && this.getId() !== childId && !this.hasAncestor(childId)) {
13054
13060
  if (!this.index?.getById(childId) && foundItem) {
13055
13061
  const localMatrix = foundItem.transformation.toMatrix().toLocalOf(containerNestingMatrix);
13056
- this.board.items.index.remove(foundItem, true);
13062
+ const currentParentId = foundItem.parent;
13063
+ const currentParent = currentParentId !== "Board" ? this.board.items.getById(currentParentId) : undefined;
13064
+ const sourceIndex = currentParent?.index || this.board.items.index;
13065
+ sourceIndex.remove(foundItem, true);
13057
13066
  foundItem.parent = this.getId();
13058
13067
  foundItem.onParentChanged(this.getId());
13059
13068
  foundItem.transformation.setLocalMatrix(localMatrix);
@@ -16652,7 +16661,7 @@ var init_getListTypeAtSelectionStart = __esm(() => {
16652
16661
  });
16653
16662
 
16654
16663
  // src/Items/RichText/editorHelpers/links/setLink.ts
16655
- import { Editor as Editor12, Transforms as Transforms11 } from "slate";
16664
+ import { Editor as Editor12, Transforms as Transforms11, Text as Text6 } from "slate";
16656
16665
  var setLink = (editor, link, selection) => {
16657
16666
  if (!selection) {
16658
16667
  selectWholeText(editor);
@@ -16664,15 +16673,15 @@ var setLink = (editor, link, selection) => {
16664
16673
  }
16665
16674
  const format = link ? "rgba(71, 120, 245, 1)" : "rgb(20, 21, 26)";
16666
16675
  Transforms11.setNodes(editor, { fontColor: format }, {
16667
- match: (n) => !Editor12.isEditor(n) && n.type === "text",
16676
+ match: (n) => Text6.isText(n),
16668
16677
  split: true
16669
16678
  });
16670
- for (const [node, path2] of Editor12.nodes(editor, {
16671
- match: (n) => !Editor12.isEditor(n) && n.type === "text"
16679
+ for (const [, path2] of Editor12.nodes(editor, {
16680
+ match: (n) => Text6.isText(n)
16672
16681
  })) {
16673
16682
  const nodeRange = Editor12.range(editor, path2);
16674
16683
  Transforms11.select(editor, nodeRange);
16675
- Transforms11.setNodes(editor, { link }, { split: false, match: (n) => !Editor12.isEditor(n) && n.type === "text" });
16684
+ Transforms11.setNodes(editor, { link }, { split: false, match: (n) => Text6.isText(n) });
16676
16685
  }
16677
16686
  };
16678
16687
  var init_setLink = __esm(() => {
@@ -25032,7 +25041,7 @@ var init_setEditorFocus = () => {};
25032
25041
  import {
25033
25042
  Editor as Editor31,
25034
25043
  Element as Element9,
25035
- Text as Text6,
25044
+ Text as Text7,
25036
25045
  Transforms as Transforms21
25037
25046
  } from "slate";
25038
25047
  var isEditInProcessValue = false, counter = 0, RichText;
@@ -25600,7 +25609,7 @@ var init_RichText = __esm(() => {
25600
25609
  }
25601
25610
  getMinFontSize() {
25602
25611
  const textNodes = Editor31.nodes(this.editor.editor, {
25603
- match: (n) => Text6.isText(n),
25612
+ match: (n) => Text7.isText(n),
25604
25613
  at: []
25605
25614
  });
25606
25615
  const fontSizes = [];
package/dist/esm/node.js CHANGED
@@ -12052,6 +12052,9 @@ class SpatialIndex {
12052
12052
  this.Mbr = new Mbr;
12053
12053
  }
12054
12054
  insert(item) {
12055
+ if (this.itemsArray.includes(item) || this.getById(item.getId())) {
12056
+ return;
12057
+ }
12055
12058
  this.itemsArray.push(item);
12056
12059
  this.itemsIndex.insert(item);
12057
12060
  if (conf.isNode()) {
@@ -12649,6 +12652,9 @@ class SimpleSpatialIndex {
12649
12652
  this.Mbr = new Mbr;
12650
12653
  }
12651
12654
  insert(item) {
12655
+ if (this.itemsArray.includes(item) || this.getById(item.getId())) {
12656
+ return;
12657
+ }
12652
12658
  this.itemsArray.push(item);
12653
12659
  if (this.Mbr.getWidth() === 0 && this.Mbr.getHeight() === 0) {
12654
12660
  this.Mbr = item.getMbr().copy();
@@ -13075,7 +13081,10 @@ var init_BaseItem = __esm(() => {
13075
13081
  if (this.parent !== childId && this.getId() !== childId && !this.hasAncestor(childId)) {
13076
13082
  if (!this.index?.getById(childId) && foundItem) {
13077
13083
  const localMatrix = foundItem.transformation.toMatrix().toLocalOf(containerNestingMatrix);
13078
- this.board.items.index.remove(foundItem, true);
13084
+ const currentParentId = foundItem.parent;
13085
+ const currentParent = currentParentId !== "Board" ? this.board.items.getById(currentParentId) : undefined;
13086
+ const sourceIndex = currentParent?.index || this.board.items.index;
13087
+ sourceIndex.remove(foundItem, true);
13079
13088
  foundItem.parent = this.getId();
13080
13089
  foundItem.onParentChanged(this.getId());
13081
13090
  foundItem.transformation.setLocalMatrix(localMatrix);
@@ -16737,7 +16746,7 @@ var init_getListTypeAtSelectionStart = __esm(() => {
16737
16746
  });
16738
16747
 
16739
16748
  // src/Items/RichText/editorHelpers/links/setLink.ts
16740
- import { Editor as Editor11, Transforms as Transforms10 } from "slate";
16749
+ import { Editor as Editor11, Transforms as Transforms10, Text as Text6 } from "slate";
16741
16750
  var setLink = (editor, link, selection) => {
16742
16751
  if (!selection) {
16743
16752
  selectWholeText(editor);
@@ -16749,15 +16758,15 @@ var setLink = (editor, link, selection) => {
16749
16758
  }
16750
16759
  const format = link ? "rgba(71, 120, 245, 1)" : "rgb(20, 21, 26)";
16751
16760
  Transforms10.setNodes(editor, { fontColor: format }, {
16752
- match: (n) => !Editor11.isEditor(n) && n.type === "text",
16761
+ match: (n) => Text6.isText(n),
16753
16762
  split: true
16754
16763
  });
16755
- for (const [node, path2] of Editor11.nodes(editor, {
16756
- match: (n) => !Editor11.isEditor(n) && n.type === "text"
16764
+ for (const [, path2] of Editor11.nodes(editor, {
16765
+ match: (n) => Text6.isText(n)
16757
16766
  })) {
16758
16767
  const nodeRange = Editor11.range(editor, path2);
16759
16768
  Transforms10.select(editor, nodeRange);
16760
- Transforms10.setNodes(editor, { link }, { split: false, match: (n) => !Editor11.isEditor(n) && n.type === "text" });
16769
+ Transforms10.setNodes(editor, { link }, { split: false, match: (n) => Text6.isText(n) });
16761
16770
  }
16762
16771
  };
16763
16772
  var init_setLink = __esm(() => {
@@ -27441,7 +27450,7 @@ var init_setEditorFocus = () => {};
27441
27450
  import {
27442
27451
  Editor as Editor30,
27443
27452
  Element as Element9,
27444
- Text as Text6,
27453
+ Text as Text7,
27445
27454
  Transforms as Transforms20
27446
27455
  } from "slate";
27447
27456
  var isEditInProcessValue = false, counter = 0, RichText;
@@ -28009,7 +28018,7 @@ var init_RichText = __esm(() => {
28009
28018
  }
28010
28019
  getMinFontSize() {
28011
28020
  const textNodes = Editor30.nodes(this.editor.editor, {
28012
- match: (n) => Text6.isText(n),
28021
+ match: (n) => Text7.isText(n),
28013
28022
  at: []
28014
28023
  });
28015
28024
  const fontSizes = [];
@@ -0,0 +1,2 @@
1
+ export * from './Render';
2
+ export * from './LayoutBlockNodes';
@@ -1,12 +1,13 @@
1
1
  import { DefaultTextStyles } from "../../Settings";
2
2
  import { Subject } from "../../Subject";
3
- import { BaseSelection, Descendant, Editor, Operation as SlateOp, Operation } from "slate";
3
+ import { BaseSelection, Descendant, Operation as SlateOp, Operation } from "slate";
4
4
  import { HorisontalAlignment, VerticalAlignment } from "../Alignment";
5
5
  import { BlockNode, ListType, ParagraphNode } from "./Editor/BlockNode";
6
6
  import { TextNode, TextStyle } from "./Editor/TextNode";
7
7
  import { ColorValue } from '../../..';
8
8
  import { RichTextOperation } from "./RichTextOperations";
9
9
  import { MarkdownProcessor } from "../RichText/editorHelpers/markdown/markdownProcessor";
10
+ import { CustomEditor } from "Items/RichText/Editor/Editor.d";
10
11
  export declare class EditorContainer {
11
12
  private id;
12
13
  private emit;
@@ -23,7 +24,7 @@ export declare class EditorContainer {
23
24
  private calcAutoSize;
24
25
  private applyAutoSizeScale;
25
26
  private updateElement;
26
- readonly editor: Editor & any;
27
+ readonly editor: CustomEditor;
27
28
  maxWidth: number | undefined;
28
29
  textScale: number;
29
30
  verticalAlignment: VerticalAlignment;
@@ -1,2 +1,3 @@
1
1
  import { Editor } from 'slate';
2
- export declare function setSelectionFontColor(editor: Editor, format: string, selectionContext?: string): void;
2
+ import type { ColorValue } from '../../../../..';
3
+ export declare function setSelectionFontColor(editor: Editor, format: string | ColorValue, selectionContext?: string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.13.43",
3
+ "version": "0.13.44",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",