@weavy/uikit-react 26.0.1 → 26.0.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/weavy.mjs CHANGED
@@ -28617,7 +28617,7 @@ const Ry = (Mt = class {
28617
28617
  q(this, My, !0), console.info(this.weavyId, "was destroyed");
28618
28618
  }
28619
28619
  }, u(Mt, "Gt"), Mt);
28620
- og = /* @__PURE__ */ new WeakMap(), lg = /* @__PURE__ */ new WeakMap(), Us = /* @__PURE__ */ new WeakMap(), My = /* @__PURE__ */ new WeakMap(), p(Ry, "WeavyClient"), Ry.version = "26.0.1", Ry.sourceName = "@weavy/uikit-web", Ry.defaults = {
28620
+ og = /* @__PURE__ */ new WeakMap(), lg = /* @__PURE__ */ new WeakMap(), Us = /* @__PURE__ */ new WeakMap(), My = /* @__PURE__ */ new WeakMap(), p(Ry, "WeavyClient"), Ry.version = "26.0.2", Ry.sourceName = "@weavy/uikit-web", Ry.defaults = {
28621
28621
  cloudFilePickerUrl: "https://filebrowser.weavy.io/v14/",
28622
28622
  disableEnvironmentImports: !1,
28623
28623
  gcTime: 1e3 * 60 * 60 * 24,
@@ -42290,9 +42290,6 @@ let jr = (l0 = (Np = class extends tt(G) {
42290
42290
  });
42291
42291
  return this.dispatchEvent(i);
42292
42292
  }
42293
- async dispatchLink(t) {
42294
- return await k5(this, this.weavy, this.notification);
42295
- }
42296
42293
  dispatchMark(t, i) {
42297
42294
  if (t.stopPropagation(), i === !!this.notification.is_unread) {
42298
42295
  const n = new CustomEvent("mark", {
@@ -42302,6 +42299,15 @@ let jr = (l0 = (Np = class extends tt(G) {
42302
42299
  }
42303
42300
  return !0;
42304
42301
  }
42302
+ dispatchHide() {
42303
+ if (this.standalone) {
42304
+ const t = new CustomEvent("hide", {
42305
+ bubbles: !0
42306
+ });
42307
+ return this.dispatchEvent(t);
42308
+ }
42309
+ return !0;
42310
+ }
42305
42311
  dispatchClose() {
42306
42312
  if (this.standalone) {
42307
42313
  const t = new CustomEvent("close", {
@@ -42311,6 +42317,9 @@ let jr = (l0 = (Np = class extends tt(G) {
42311
42317
  }
42312
42318
  return !0;
42313
42319
  }
42320
+ async handleClick(t) {
42321
+ this.dispatchSelect(t), this.dispatchMark(t, !0), this.dispatchHide(), await k5(this, this.weavy, this.notification), this.dispatchClose();
42322
+ }
42314
42323
  render() {
42315
42324
  var t, i;
42316
42325
  const n = this.notification.created_at ? new Intl.DateTimeFormat((t = this.weavy) == null ? void 0 : t.locale, { dateStyle: "full", timeStyle: "short" }).format(
@@ -42342,7 +42351,7 @@ let jr = (l0 = (Np = class extends tt(G) {
42342
42351
  "wy-active": !this.standalone && this.selected
42343
42352
  })}
42344
42353
  tabindex="0"
42345
- @click=${(f) => this.dispatchSelect(f) && this.dispatchMark(f, !0) && this.dispatchClose() && this.dispatchLink(f)}
42354
+ @click=${(f) => this.handleClick(f)}
42346
42355
  @keydown=${ei}
42347
42356
  @keyup=${_i}
42348
42357
  >
@@ -42644,6 +42653,9 @@ let Rs = (u0 = (Fp = class extends G {
42644
42653
  constructor() {
42645
42654
  super(...arguments), this.exportParts = new ae(this), this.toastRef = ke(), this.show = !1, this.duration = Rs.defaultDuration;
42646
42655
  }
42656
+ hide() {
42657
+ this.show = !1;
42658
+ }
42647
42659
  async close(t = !1) {
42648
42660
  this.show = !1, await new Promise((i) => requestAnimationFrame(i)), this.toastRef.value && await xg(this.toastRef.value, !1), this.dispatchEvent(new CustomEvent("closed", { detail: { silent: t } })), this.dispatchEvent(new CustomEvent("release-focus", { bubbles: !0, composed: !0 }));
42649
42661
  }
@@ -42655,6 +42667,9 @@ let Rs = (u0 = (Fp = class extends G {
42655
42667
  <div
42656
42668
  ${pe(this.toastRef)}
42657
42669
  class="wy-toast wy-fade ${this.show ? "wy-show" : ""}"
42670
+ @hide=${(t) => {
42671
+ t.stopPropagation(), this.hide();
42672
+ }}
42658
42673
  @close=${() => this.close()}
42659
42674
  @keyup=${pv}
42660
42675
  >
@@ -43919,7 +43934,7 @@ const ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
43919
43934
  return gn;
43920
43935
  }
43921
43936
  }, Symbol.toStringTag, { value: "Module" }));
43922
- rn.version = "26.0.1";
43937
+ rn.version = "26.0.2";
43923
43938
  rn.sourceName = "@weavy/uikit-react";
43924
43939
  const $F = $L(null);
43925
43940
  function UH(s, t = []) {