@squeletteapp/widget 0.3.10 → 0.5.0

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.
@@ -1,38 +1,38 @@
1
- import { s as i, A as c, y as l, u as d } from "./index-C0T0EFWj.js";
1
+ import { s as o, A as c, y as l, u as f } from "./index-BEPqGDvF.js";
2
2
  function m({
3
3
  src: n,
4
- title: o,
4
+ title: i,
5
5
  onLoaded: r,
6
- onClose: a
6
+ onClose: s
7
7
  }) {
8
8
  const t = c(null);
9
9
  return l(() => {
10
10
  const e = t.current;
11
11
  if (!e) return;
12
- const s = () => {
12
+ const a = () => {
13
13
  e.dataset.ready = "true", r == null || r();
14
14
  };
15
- return e.addEventListener("load", s), () => e.removeEventListener("load", s);
15
+ return e.addEventListener("load", a), () => e.removeEventListener("load", a);
16
16
  }, [r]), l(() => {
17
- const e = (s) => {
18
- s.data.type === "close-feedback-widget" && (console.log("WidgetFrame closing widget as requested"), a());
17
+ const e = (a) => {
18
+ a.data.type === "close-feedback-widget" && s();
19
19
  };
20
20
  return window.addEventListener("message", e), () => window.removeEventListener("message", e);
21
- }, [a]), /* @__PURE__ */ d(
21
+ }, [s]), /* @__PURE__ */ f(
22
22
  "iframe",
23
23
  {
24
24
  ref: t,
25
25
  class: "sq-frame",
26
26
  part: "frame",
27
27
  src: n,
28
- title: o,
28
+ title: i,
29
29
  loading: "eager",
30
30
  allow: "clipboard-write; clipboard-read; fullscreen;",
31
31
  sandbox: "allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox"
32
32
  }
33
33
  );
34
34
  }
35
- const p = i;
35
+ const p = o;
36
36
  export {
37
37
  m as WidgetFrame,
38
38
  m as default,