@ones-editor/editor 2.2.14-beta.18 → 2.2.14-beta.19

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
@@ -81759,7 +81759,10 @@ ${content}
81759
81759
  const newData = this.createGraphEmbedData(this.block, { view: (_a = this.viewSelect) == null ? void 0 : _a.selectedView });
81760
81760
  this.editor.updateEmbedData(this.block, newData);
81761
81761
  });
81762
- __publicField(this, "updateCodeValue", async (codeValue) => {
81762
+ __publicField(this, "handleInputChange", async (codeValue) => {
81763
+ if (!this.hasChanged(this.block, codeValue)) {
81764
+ return;
81765
+ }
81763
81766
  try {
81764
81767
  const resourceId = await this.code2ResourceId(codeValue);
81765
81768
  const newData = this.createGraphEmbedData(this.block, { code: codeValue, src: resourceId });
@@ -81769,19 +81772,6 @@ ${content}
81769
81772
  this.editor.updateEmbedData(this.block, newData);
81770
81773
  }
81771
81774
  });
81772
- __publicField(this, "delayUpdateInputTimer", null);
81773
- __publicField(this, "handleInputChange", async (codeValue) => {
81774
- if (!this.hasChanged(this.block, codeValue)) {
81775
- return;
81776
- }
81777
- this.updateDraw("", codeValue);
81778
- if (this.delayUpdateInputTimer) {
81779
- clearTimeout(this.delayUpdateInputTimer);
81780
- }
81781
- this.delayUpdateInputTimer = setTimeout(async () => {
81782
- this.updateCodeValue(codeValue);
81783
- }, 5e3 * 3);
81784
- });
81785
81775
  __publicField(this, "handleFlexChange", (flex) => {
81786
81776
  const newData = this.createGraphEmbedData(this.block, { flex });
81787
81777
  this.editor.updateEmbedData(this.block, newData);
@@ -81825,12 +81815,6 @@ ${content}
81825
81815
  exclusiveBlock(this.editor, block);
81826
81816
  } else {
81827
81817
  unexclusiveBlock(this.editor, block);
81828
- if (this.delayUpdateInputTimer) {
81829
- clearTimeout(this.delayUpdateInputTimer);
81830
- }
81831
- if (this.hasChanged(block, getCodeEditor(block).value)) {
81832
- this.updateCodeValue(getCodeEditor(block).value);
81833
- }
81834
81818
  }
81835
81819
  });
81836
81820
  __publicField(this, "updateHeight", (content, height) => {
@@ -89197,7 +89181,7 @@ ${data2.plantumlText}
89197
89181
  }
89198
89182
  }
89199
89183
  });
89200
- editor.version = "2.2.14-beta.18";
89184
+ editor.version = "2.2.14-beta.19";
89201
89185
  return editor;
89202
89186
  }
89203
89187
  function isDoc(doc2) {
@@ -89299,7 +89283,7 @@ ${data2.plantumlText}
89299
89283
  });
89300
89284
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
89301
89285
  OnesEditorToolbar.register(editor);
89302
- editor.version = "2.2.14-beta.18";
89286
+ editor.version = "2.2.14-beta.19";
89303
89287
  return editor;
89304
89288
  }
89305
89289
  async function showDocVersions(editor, options, serverUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "2.2.14-beta.18",
3
+ "version": "2.2.14-beta.19",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {