@paywithglide/glide-react 0.0.5 → 0.0.7

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.
Files changed (2) hide show
  1. package/dist/glide.js +4 -4
  2. package/package.json +2 -2
package/dist/glide.js CHANGED
@@ -21,7 +21,7 @@ class E {
21
21
  }
22
22
  });
23
23
  p(this, "iframeEventHandler", async (e) => {
24
- var s, o, a, n, d, l, c, h, m, y, w, u, f, g;
24
+ var s, o, a, n, d, l, c, h, m, w, y, u, f, g;
25
25
  const t = e.data;
26
26
  switch (t.type) {
27
27
  case "close":
@@ -85,7 +85,7 @@ class E {
85
85
  if (!this.opts.walletProvider)
86
86
  throw new Error("walletProvider is not set");
87
87
  if (!this.opts.walletProvider.signTypedDataAsync) {
88
- (y = (m = this.iframe) == null ? void 0 : m.contentWindow) == null || y.postMessage(
88
+ (w = (m = this.iframe) == null ? void 0 : m.contentWindow) == null || w.postMessage(
89
89
  {
90
90
  type: "didSignTypedData",
91
91
  success: !1,
@@ -99,7 +99,7 @@ class E {
99
99
  const r = await this.opts.walletProvider.signTypedDataAsync(
100
100
  t.data
101
101
  );
102
- (u = (w = this.iframe) == null ? void 0 : w.contentWindow) == null || u.postMessage(
102
+ (u = (y = this.iframe) == null ? void 0 : y.contentWindow) == null || u.postMessage(
103
103
  {
104
104
  type: "didSignTypedData",
105
105
  success: !0,
@@ -144,7 +144,7 @@ class E {
144
144
  t.id = "glide-deposit-iframe", t.setAttribute(
145
145
  "style",
146
146
  "z-index: 2147483647; display: block; background-color: transparent; border: 0px none transparent; overflow-x: hidden; overflow-y: auto; visibility: visible; margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; position: fixed; left: 0px; top: 0px; width: 100%; height: 100%;"
147
- ), t.src = e, t.allow = "payment", document.body.appendChild(t), window.setTimeout(() => {
147
+ ), t.src = e, t.allow = "payment *; clipboard-write *", document.body.appendChild(t), window.setTimeout(() => {
148
148
  var s;
149
149
  (s = t == null ? void 0 : t.contentWindow) == null || s.focus();
150
150
  }, 100);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paywithglide/glide-react",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -23,7 +23,7 @@
23
23
  "prepublishOnly": "npm run build"
24
24
  },
25
25
  "dependencies": {
26
- "@paywithglide/glide-js": "^0.9.33",
26
+ "@paywithglide/glide-js": "^0.9.35",
27
27
  "@tanstack/react-query": "^5.61.5",
28
28
  "react": "^18.3.1",
29
29
  "react-dom": "^18.3.1",