@ones-editor/editor 2.2.13-beta.1 → 2.2.13-beta.3

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.
@@ -28,6 +28,7 @@ declare const _default: {
28
28
  };
29
29
  search: {
30
30
  emptyTips: string;
31
+ loading: string;
31
32
  };
32
33
  };
33
34
  export default _default;
@@ -28,6 +28,7 @@ declare const _default: {
28
28
  };
29
29
  search: {
30
30
  emptyTips: string;
31
+ loading: string;
31
32
  };
32
33
  };
33
34
  export default _default;
@@ -28,6 +28,7 @@ declare const _default: {
28
28
  };
29
29
  search: {
30
30
  emptyTips: string;
31
+ loading: string;
31
32
  };
32
33
  };
33
34
  export default _default;
package/dist/index.js CHANGED
@@ -39419,7 +39419,8 @@ ${codeText}
39419
39419
  }
39420
39420
  },
39421
39421
  search: {
39422
- emptyTips: "\u6682\u65E0\u641C\u7D22\u7ED3\u679C"
39422
+ emptyTips: "\u6682\u65E0\u641C\u7D22\u7ED3\u679C",
39423
+ loading: "\u52A0\u8F7D\u4E2D..."
39423
39424
  }
39424
39425
  };
39425
39426
  const enUS$w = {
@@ -39451,7 +39452,8 @@ ${codeText}
39451
39452
  }
39452
39453
  },
39453
39454
  search: {
39454
- emptyTips: "No results found"
39455
+ emptyTips: "No results found",
39456
+ loading: "Loading..."
39455
39457
  }
39456
39458
  };
39457
39459
  const jaJP$w = {
@@ -39483,7 +39485,8 @@ ${codeText}
39483
39485
  }
39484
39486
  },
39485
39487
  search: {
39486
- emptyTips: "\u691C\u7D22\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093"
39488
+ emptyTips: "\u691C\u7D22\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093",
39489
+ loading: "\u8AAD\u307F\u8FBC\u307F\u4E2D..."
39487
39490
  }
39488
39491
  };
39489
39492
  i18n$1.mergeLang({
@@ -41389,9 +41392,7 @@ ${codeText}
41389
41392
  if (this.options.placeholder) {
41390
41393
  this.showPlaceholder();
41391
41394
  }
41392
- const items = await this.options.queryItems(this, "");
41393
- this.highlightText("", items);
41394
- this.setItems(items);
41395
+ this.handleSearchTextPure("");
41395
41396
  }
41396
41397
  showLoading() {
41397
41398
  if (!this.options.showLoading) {
@@ -41407,7 +41408,7 @@ ${codeText}
41407
41408
  } else {
41408
41409
  this.setItems([{
41409
41410
  id: "loading",
41410
- name: "loading",
41411
+ name: i18n$1.t("search.loading"),
41411
41412
  states: ["disabled"]
41412
41413
  }]);
41413
41414
  }
@@ -88341,7 +88342,7 @@ ${data2.flowchartText}
88341
88342
  }
88342
88343
  }
88343
88344
  });
88344
- editor.version = "2.2.13-beta.1";
88345
+ editor.version = "2.2.13-beta.3";
88345
88346
  return editor;
88346
88347
  }
88347
88348
  function isDoc(doc2) {
@@ -88436,7 +88437,7 @@ ${data2.flowchartText}
88436
88437
  });
88437
88438
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
88438
88439
  OnesEditorToolbar.register(editor);
88439
- editor.version = "2.2.13-beta.1";
88440
+ editor.version = "2.2.13-beta.3";
88440
88441
  return editor;
88441
88442
  }
88442
88443
  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.13-beta.1",
3
+ "version": "2.2.13-beta.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",