@social-mail/social-mail-client 1.2.420 → 1.2.422

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.
@@ -48778,6 +48778,15 @@ System.register(["@web-atoms/core/dist/core/AtomBinder"], function (_export, _co
48778
48778
  }
48779
48779
  });
48780
48780
  }
48781
+ setDraggable() {
48782
+ const element = this.e;
48783
+ element.draggable = true;
48784
+ this.dragTimeout = setTimeout(() => {
48785
+ if (element.draggable) {
48786
+ element.removeAttribute("draggable");
48787
+ }
48788
+ }, 5000);
48789
+ }
48781
48790
  getDropTarget(dragged, target) {
48782
48791
  const isDropTarget = /^(main|section|carousel\-slider)$/i;
48783
48792
  if (isDropTarget.test(dragged === null || dragged === void 0 ? void 0 : dragged.tagName)) {
@@ -48854,9 +48863,20 @@ System.register(["@web-atoms/core/dist/core/AtomBinder"], function (_export, _co
48854
48863
  }
48855
48864
  update(e) {
48856
48865
  var _a;
48866
+ const oe = this.e;
48857
48867
  if (e) {
48868
+ if (e === this.e) {
48869
+ return;
48870
+ }
48858
48871
  if (this.e) {
48859
48872
  this.mo.disconnect();
48873
+ if (oe.draggable) {
48874
+ oe.removeAttribute("draggable");
48875
+ }
48876
+ if (this.dragTimeout) {
48877
+ clearTimeout(this.dragTimeout);
48878
+ this.dragTimeout = 0;
48879
+ }
48860
48880
  }
48861
48881
  this.e = e;
48862
48882
  AtomBinder.refreshValue(this, "element");
@@ -51172,13 +51192,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
51172
51192
  }
51173
51193
  }), XNode.create("i", {
51174
51194
  "event-click": () => {
51175
- const current = this.selection.element;
51176
- current.draggable = true;
51177
- setTimeout(() => {
51178
- if (current.draggable) {
51179
- current.removeAttribute("draggable");
51180
- }
51181
- }, 5000);
51195
+ this.selection.setDraggable();
51182
51196
  },
51183
51197
  class: "fa-solid fa-up-down-left-right",
51184
51198
  "data-click-event": "start-drag"