artalk 2.3.1 → 2.3.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/Artalk.es.js CHANGED
@@ -2939,7 +2939,7 @@ function mergeDeep(target, source) {
2939
2939
  return target;
2940
2940
  }
2941
2941
  function showLoading(parentElem, conf) {
2942
- let $loading = parentElem.querySelector(".atk-loading");
2942
+ let $loading = parentElem.querySelector(":scope > .atk-loading");
2943
2943
  if (!$loading) {
2944
2944
  $loading = createElement(`<div class="atk-loading atk-fade-in" style="display: none;">
2945
2945
  <div class="atk-loading-spinner">
@@ -2960,7 +2960,7 @@ function showLoading(parentElem, conf) {
2960
2960
  }
2961
2961
  }
2962
2962
  function hideLoading(parentElem) {
2963
- const $loading = parentElem.querySelector(".atk-loading");
2963
+ const $loading = parentElem.querySelector(":scope > .atk-loading");
2964
2964
  if ($loading)
2965
2965
  $loading.style.display = "none";
2966
2966
  }
@@ -4717,7 +4717,7 @@ class UploadPlug extends EditorPlug {
4717
4717
  if (!this.ctx.conf.imgUploader) {
4718
4718
  resp = yield this.ctx.getApi().imgUpload(file);
4719
4719
  } else {
4720
- resp = yield this.ctx.conf.imgUploader(file);
4720
+ resp = { img_url: yield this.ctx.conf.imgUploader(file) };
4721
4721
  }
4722
4722
  } catch (err) {
4723
4723
  console.error(err);
@@ -6333,7 +6333,7 @@ class ListLite extends Component {
6333
6333
  }
6334
6334
  this.data = data;
6335
6335
  const feMinVersion = ((_a = data.api_version) == null ? void 0 : _a.fe_min_version) || "0.0.0";
6336
- if (this.ctx.conf.versionCheck && this.versionCheck("frontend", feMinVersion, "2.3.1"))
6336
+ if (this.ctx.conf.versionCheck && this.versionCheck("frontend", feMinVersion, "2.3.2"))
6337
6337
  return;
6338
6338
  if (this.ctx.conf.versionCheck && this.versionCheck("backend", backendMinVersion, (_b = data.api_version) == null ? void 0 : _b.version))
6339
6339
  return;
@@ -6616,7 +6616,7 @@ class List extends ListLite {
6616
6616
  if (this.ctx.conf.listSort) {
6617
6617
  this.initDropdown();
6618
6618
  }
6619
- this.$el.querySelector(".atk-copyright").innerHTML = `Powered By <a href="https://artalk.js.org" target="_blank" title="Artalk v${"2.3.1"}">Artalk</a>`;
6619
+ this.$el.querySelector(".atk-copyright").innerHTML = `Powered By <a href="https://artalk.js.org" target="_blank" title="Artalk v${"2.3.2"}">Artalk</a>`;
6620
6620
  }
6621
6621
  initListActionBtn() {
6622
6622
  this.$openSidebarBtn = this.$el.querySelector('[data-action="open-sidebar"]');