@ranty/ranty-sdk 2.13.0 → 2.13.1-beta.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.
@@ -9198,10 +9198,10 @@ function DI(r, e, t, s) {
9198
9198
  }
9199
9199
  var Xu = aI(DI);
9200
9200
  U7(Qa(), "DD_LOGS", Xu);
9201
- const PI = "@nx-ranty/ranty-sdk", QI = "2.13.0", RI = 2, NI = !0, OI = {
9201
+ const PI = "@ranty/ranty-sdk", QI = "2.13.1-beta.0", RI = 2, NI = !0, OI = {
9202
9202
  "": {
9203
- name: "@nx-ranty/ranty-sdk",
9204
- version: "2.13.0",
9203
+ name: "@ranty/ranty-sdk",
9204
+ version: "2.13.1-beta.0",
9205
9205
  license: "ISC",
9206
9206
  dependencies: {
9207
9207
  "@datadog/browser-logs": "^5.7.0",
@@ -46262,6 +46262,8 @@ const KI = new VI(), GI = (r) => {
46262
46262
  }
46263
46263
  })).data;
46264
46264
  }), YI = (r) => _e(void 0, null, function* () {
46265
+ if (!r)
46266
+ return;
46265
46267
  const { status: e, payment_type: t, payment_id: s } = r, n = {
46266
46268
  error: !0,
46267
46269
  url: "",
@@ -57041,7 +57043,9 @@ let Pl = class r extends Je {
57041
57043
  task: () => _e(this, null, function* () {
57042
57044
  Lt.setConfig(this.env), this.payfacContext.config = Lt.getConfig();
57043
57045
  try {
57044
- yield qr.createToken(this.publicKey), yield this.getPaymentRequest(), this.payfacContext.isReady = !0, this.dispatchEvent(new CustomEvent("payfac-context-set", { bubbles: !0, composed: !0 }));
57046
+ if (yield qr.createToken(this.publicKey), yield this.getPaymentRequest(), !this.payfacContext.paymentRequest)
57047
+ throw new Error("Payment request not found");
57048
+ this.payfacContext.isReady = !0, this.dispatchEvent(new CustomEvent("payfac-context-set", { bubbles: !0, composed: !0 }));
57045
57049
  } catch (e) {
57046
57050
  throw Ut("AUTH_ERROR", "Authentication failed."), this.payfacContext.isReady = !1, console.log(e), e;
57047
57051
  }
@@ -62955,7 +62959,7 @@ let Ri = class extends Je {
62955
62959
  }), (s = this.shadowRoot) == null || s.addEventListener("button-pushed", (n) => {
62956
62960
  this.stateScof.page = n.detail ? n.detail : nt.MAIN, (n.detail === nt.QR || n.detail === nt.STATUS || n.detail === nt.LOADING) && (this.isShowCardPayment = !1), n.detail === nt.MAIN && (this.stateScof.isActiveWs || this.webSocket()), (this.stateScof.page === nt.PLANS || this.stateScof.page === nt.SUMMARY) && this.isShowToast === !0 && setTimeout(() => {
62957
62961
  this.isShowToast = !1;
62958
- }, 3e3), this.requestUpdate(), this.routerState(), xe.info("connectedCallback", {
62962
+ }, 3e3), this.requestUpdate(), this.routerState(), this.stateScof.statePaymentRequest && xe.info("connectedCallback", {
62959
62963
  context: tt.CARD_ON_FILE,
62960
62964
  tag: "APP_HOME_PAGES",
62961
62965
  origin_sdk: "app-home",
@@ -79485,7 +79489,7 @@ function(r) {
79485
79489
  */
79486
79490
  function(r) {
79487
79491
  function e() {
79488
- return (ct.canvg ? Promise.resolve(ct.canvg) : import("./index.es-a47f28a6.js")).catch(function(t) {
79492
+ return (ct.canvg ? Promise.resolve(ct.canvg) : import("./index.es-3d7b917a.js")).catch(function(t) {
79489
79493
  return Promise.reject(new Error("Could not load canvg: " + t));
79490
79494
  }).then(function(t) {
79491
79495
  return t.default ? t.default : t;
@@ -1,4 +1,4 @@
1
- import { c as Ke, _ as za, g as _o } from "./index-44384172.js";
1
+ import { c as Ke, _ as za, g as _o } from "./index-c54569d1.js";
2
2
  var vt = function(a) {
3
3
  return a && a.Math === Math && a;
4
4
  }, V = (
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as s, w as t, f as e, e as o, n as r, p as C, Q as m, o as p, q as l, m as i, r as d, C as u, u as y, T as P, j as F, a as S, d as c, D as M, l as O, E as I, v as k, b as x, F as f, k as H, $ as L, a1 as v, N as A, P as D, M as g, x as E, V as w, W as Q, U as h, a2 as B, X as N, Y as R, Z as b, i as j, h as q, a0 as z, S as G, y as J, t as K, z as T, B as U, G as V, s as W, K as X, H as Y, I as Z, J as $, O as _, R as aa, L as na } from "./index-44384172.js";
1
+ import { A as s, w as t, f as e, e as o, n as r, p as C, Q as m, o as p, q as l, m as i, r as d, C as u, u as y, T as P, j as F, a as S, d as c, D as M, l as O, E as I, v as k, b as x, F as f, k as H, $ as L, a1 as v, N as A, P as D, M as g, x as E, V as w, W as Q, U as h, a2 as B, X as N, Y as R, Z as b, i as j, h as q, a0 as z, S as G, y as J, t as K, z as T, B as U, G as V, s as W, K as X, H as Y, I as Z, J as $, O as _, R as aa, L as na } from "./index-c54569d1.js";
2
2
  export {
3
3
  s as AppHome,
4
4
  t as AppLoading,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ranty/ranty-sdk",
3
- "version": "2.13.0",
3
+ "version": "2.13.1-beta.0",
4
4
  "description": "Ranty sdk",
5
5
  "main": "dist/index.js",
6
6
  "exports": {