@douyinfe/semi-json-viewer-core 2.88.0-alpha.2 → 2.88.0-alpha.4

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.
Files changed (2) hide show
  1. package/lib/index.js +0 -12
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -1506,14 +1506,6 @@ var EditWidget = class {
1506
1506
  if (e.button !== 0) return;
1507
1507
  this._selectionModel.updateFromSelectingEnd();
1508
1508
  });
1509
- this._view.contentDom.addEventListener("focus", (e) => {
1510
- if (this._view.options?.readOnly) return;
1511
- this.emitter.emit("focus", e);
1512
- });
1513
- this._view.contentDom.addEventListener("blur", (e) => {
1514
- if (this._view.options?.readOnly) return;
1515
- this.emitter.emit("blur", e);
1516
- });
1517
1509
  }
1518
1510
  buildBaseOperation(type = "insert") {
1519
1511
  let startRow = this._selectionModel.startRow;
@@ -7728,10 +7720,6 @@ var JsonViewer = class {
7728
7720
  }
7729
7721
  layout() {
7730
7722
  this._view.layout();
7731
- const { autoFocus, readOnly } = this._view.options || {};
7732
- if (autoFocus && !readOnly) {
7733
- this._view.contentDom.focus();
7734
- }
7735
7723
  }
7736
7724
  getModel() {
7737
7725
  return this._jsonModel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-json-viewer-core",
3
- "version": "2.88.0-alpha.2",
3
+ "version": "2.88.0-alpha.4",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.js",
@@ -53,5 +53,5 @@
53
53
  ],
54
54
  "author": "",
55
55
  "license": "MIT",
56
- "gitHead": "29774dcc68f201bca4d72fcec20fb243f4ce3202"
56
+ "gitHead": "91c70597b32761e0cf07d832bbe77b2aeb32ab81"
57
57
  }