@examind/block-editor 0.2.0 → 0.2.2

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/index.js CHANGED
@@ -5385,21 +5385,21 @@ var ExcelWorksheetLinkNode = class _ExcelWorksheetLinkNode extends import_lexica
5385
5385
  return TYPE_NAME2;
5386
5386
  }
5387
5387
  static clone(node) {
5388
- return new _ExcelWorksheetLinkNode(node.__dataName, node.__key);
5388
+ return new _ExcelWorksheetLinkNode(node.__sheetName, node.__key);
5389
5389
  }
5390
5390
  static importJSON(serializedNode) {
5391
5391
  return $createExcelWorksheetLinkNode(
5392
- serializedNode.dataName
5392
+ serializedNode.sheetName
5393
5393
  ).updateFromJSON(serializedNode);
5394
5394
  }
5395
- constructor(dataName, key) {
5396
- super(dataName, key);
5397
- this.__dataName = dataName;
5395
+ constructor(sheetName, key) {
5396
+ super(sheetName, key);
5397
+ this.__sheetName = sheetName;
5398
5398
  }
5399
5399
  exportJSON() {
5400
5400
  return {
5401
5401
  ...super.exportJSON(),
5402
- dataName: this.__dataName
5402
+ sheetName: this.__sheetName
5403
5403
  };
5404
5404
  }
5405
5405
  createDOM(config) {
@@ -5410,7 +5410,7 @@ var ExcelWorksheetLinkNode = class _ExcelWorksheetLinkNode extends import_lexica
5410
5410
  }
5411
5411
  exportDOM() {
5412
5412
  const element = document.createElement("x-worksheet-link");
5413
- element.setAttribute("x-data-name", this.__dataName);
5413
+ element.setAttribute("x-data-name", this.__sheetName);
5414
5414
  return { element };
5415
5415
  }
5416
5416
  static importDOM() {
@@ -5436,8 +5436,8 @@ var ExcelWorksheetLinkNode = class _ExcelWorksheetLinkNode extends import_lexica
5436
5436
  return false;
5437
5437
  }
5438
5438
  };
5439
- function $createExcelWorksheetLinkNode(dataName) {
5440
- const mentionNode = new ExcelWorksheetLinkNode(dataName);
5439
+ function $createExcelWorksheetLinkNode(sheetName) {
5440
+ const mentionNode = new ExcelWorksheetLinkNode(sheetName);
5441
5441
  mentionNode.setMode("segmented").toggleDirectionless();
5442
5442
  return (0, import_lexical23.$applyNodeReplacement)(mentionNode);
5443
5443
  }
@@ -5451,8 +5451,8 @@ function ExcelWorksheetLinkPlugin() {
5451
5451
  editor.update(() => {
5452
5452
  const textNode = $extractSelectionNode();
5453
5453
  if (textNode) {
5454
- const dataName = textNode.getTextContent();
5455
- const linkNode = $createExcelWorksheetLinkNode(dataName);
5454
+ const sheetName = textNode.getTextContent();
5455
+ const linkNode = $createExcelWorksheetLinkNode(sheetName);
5456
5456
  textNode.replace(linkNode);
5457
5457
  }
5458
5458
  });
package/dist/index.mjs CHANGED
@@ -5520,21 +5520,21 @@ var ExcelWorksheetLinkNode = class _ExcelWorksheetLinkNode extends TextNode2 {
5520
5520
  return TYPE_NAME2;
5521
5521
  }
5522
5522
  static clone(node) {
5523
- return new _ExcelWorksheetLinkNode(node.__dataName, node.__key);
5523
+ return new _ExcelWorksheetLinkNode(node.__sheetName, node.__key);
5524
5524
  }
5525
5525
  static importJSON(serializedNode) {
5526
5526
  return $createExcelWorksheetLinkNode(
5527
- serializedNode.dataName
5527
+ serializedNode.sheetName
5528
5528
  ).updateFromJSON(serializedNode);
5529
5529
  }
5530
- constructor(dataName, key) {
5531
- super(dataName, key);
5532
- this.__dataName = dataName;
5530
+ constructor(sheetName, key) {
5531
+ super(sheetName, key);
5532
+ this.__sheetName = sheetName;
5533
5533
  }
5534
5534
  exportJSON() {
5535
5535
  return {
5536
5536
  ...super.exportJSON(),
5537
- dataName: this.__dataName
5537
+ sheetName: this.__sheetName
5538
5538
  };
5539
5539
  }
5540
5540
  createDOM(config) {
@@ -5545,7 +5545,7 @@ var ExcelWorksheetLinkNode = class _ExcelWorksheetLinkNode extends TextNode2 {
5545
5545
  }
5546
5546
  exportDOM() {
5547
5547
  const element = document.createElement("x-worksheet-link");
5548
- element.setAttribute("x-data-name", this.__dataName);
5548
+ element.setAttribute("x-data-name", this.__sheetName);
5549
5549
  return { element };
5550
5550
  }
5551
5551
  static importDOM() {
@@ -5571,8 +5571,8 @@ var ExcelWorksheetLinkNode = class _ExcelWorksheetLinkNode extends TextNode2 {
5571
5571
  return false;
5572
5572
  }
5573
5573
  };
5574
- function $createExcelWorksheetLinkNode(dataName) {
5575
- const mentionNode = new ExcelWorksheetLinkNode(dataName);
5574
+ function $createExcelWorksheetLinkNode(sheetName) {
5575
+ const mentionNode = new ExcelWorksheetLinkNode(sheetName);
5576
5576
  mentionNode.setMode("segmented").toggleDirectionless();
5577
5577
  return $applyNodeReplacement2(mentionNode);
5578
5578
  }
@@ -5586,8 +5586,8 @@ function ExcelWorksheetLinkPlugin() {
5586
5586
  editor.update(() => {
5587
5587
  const textNode = $extractSelectionNode();
5588
5588
  if (textNode) {
5589
- const dataName = textNode.getTextContent();
5590
- const linkNode = $createExcelWorksheetLinkNode(dataName);
5589
+ const sheetName = textNode.getTextContent();
5590
+ const linkNode = $createExcelWorksheetLinkNode(sheetName);
5591
5591
  textNode.replace(linkNode);
5592
5592
  }
5593
5593
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@examind/block-editor",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "@comment version": [
5
5
  "Don't specify package version here. It will be injected by publish workflow."
6
6
  ],
@@ -62,7 +62,7 @@
62
62
  "tsup": "^8.3.5",
63
63
  "typescript": "^5.7.2",
64
64
  "typescript-eslint": "^8.18.2",
65
- "@examind/block-types": "0.2.0"
65
+ "@examind/block-types": "0.2.2"
66
66
  },
67
67
  "dependencies": {
68
68
  "@dnd-kit/core": "6.3.1",