@ranty/ranty-sdk 3.9.0 → 3.10.0-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.
@@ -916,7 +916,7 @@ function oe(t) {
916
916
  */
917
917
  var G1;
918
918
  ((G1 = window.HTMLSlotElement) === null || G1 === void 0 ? void 0 : G1.prototype.assignedElements) != null;
919
- const mS = "@ranty/ranty-sdk", yS = "3.9.0", vS = "Ranty sdk", bS = "dist/index.js", wS = {
919
+ const mS = "@ranty/ranty-sdk", yS = "3.10.0-beta.0", vS = "Ranty sdk", bS = "dist/index.js", wS = {
920
920
  ".": "./dist/index.js"
921
921
  }, _S = "types/index.d.ts", xS = [
922
922
  "dist",
@@ -9483,10 +9483,10 @@ function MF(t, e, n, r) {
9483
9483
  }
9484
9484
  var fp = pF(MF);
9485
9485
  QU(Pl(), "DD_LOGS", fp);
9486
- const zF = "@nx-ranty/ranty-sdk", HF = "3.9.0", qF = 3, VF = !0, KF = {
9486
+ const zF = "@nx-ranty/ranty-sdk", HF = "3.10.0-beta.0", qF = 3, VF = !0, KF = {
9487
9487
  "": {
9488
9488
  name: "@nx-ranty/ranty-sdk",
9489
- version: "3.9.0",
9489
+ version: "3.10.0-beta.0",
9490
9490
  license: "ISC",
9491
9491
  dependencies: {
9492
9492
  "@datadog/browser-logs": "^5.35.1",
@@ -43710,7 +43710,7 @@ let Si = class t extends qe {
43710
43710
  }
43711
43711
  },
43712
43712
  e
43713
- ), this.createEvent("button-pushed", dt.STATUS);
43713
+ ), this.dispatchEvent(new CustomEvent("scof-context-fallback", { bubbles: !0, composed: !0 }));
43714
43714
  }
43715
43715
  });
43716
43716
  }
@@ -44531,6 +44531,8 @@ let Gn = class extends qe {
44531
44531
  super(...arguments), this.publicKey = "", this.paymentRequestId = "", this.dpaId = "", this.dpaName = "", this.bcraId = "", this.code = "", this.mode = "default", this.env = "staging", this.settings = {}, this.isEmbedded = "true", this.paymentSync = "false", this.paymentLinkId = "", this.c2pNetworks = ["MASTERCARD"], this._useC2P = !1, this._shouldRender = !1, this._isPayfacContextReady = !1, this._validator = {
44532
44532
  isValid: !1,
44533
44533
  errors: []
44534
+ }, this.fallbackToDefault = () => {
44535
+ this.mode = "default", this._isPayfacContextReady = !0, this.requestUpdate();
44534
44536
  }, this._validatePayfacProperties = () => {
44535
44537
  let t = { isValid: !0, errors: [] };
44536
44538
  this.publicKey || (t.errors.push({
@@ -44620,7 +44622,7 @@ let Gn = class extends qe {
44620
44622
  connectedCallback() {
44621
44623
  super.connectedCallback(), this.addEventListener("payfac-context-set", () => {
44622
44624
  this._isPayfacContextReady = !0;
44623
- });
44625
+ }), this.addEventListener("scof-context-fallback", this.fallbackToDefault);
44624
44626
  }
44625
44627
  willUpdate(t) {
44626
44628
  super.willUpdate(t), this._validatePayfacProperties();
@@ -63142,7 +63144,7 @@ function(t) {
63142
63144
  */
63143
63145
  function(t) {
63144
63146
  function e() {
63145
- return (mt.canvg ? Promise.resolve(mt.canvg) : import("./index.es-c454dfbf.js")).catch(function(n) {
63147
+ return (mt.canvg ? Promise.resolve(mt.canvg) : import("./index.es-f038e219.js")).catch(function(n) {
63146
63148
  return Promise.reject(new Error("Could not load canvg: " + n));
63147
63149
  }).then(function(n) {
63148
63150
  return n.default ? n.default : n;
@@ -1,4 +1,4 @@
1
- import { c as Ke, _ as za, g as _o } from "./index-f5f4e970.js";
1
+ import { c as Ke, _ as za, g as _o } from "./index-fef781f8.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 n, an as o, aj as t, am as e, ac as r, aq as C, ao as p, ap as A, ad as m, aa as i, ai as l, ah as u, ab as d, l as c, al as P, ak as F, ae as S, af as y, ag as I, T as M, B as O, a9 as k, Y as H, V as L, a2 as f, U as g, a3 as D, a4 as v, a5 as b, h as x, f as E, a8 as h, a7 as Q, W as B, X as j, Z as q, $ as w, a0 as N, C as z, k as G, x as J, a as K, d as R, a6 as T, D as U, a1 as V, E as W, e as X, m as Y, b as Z, F as $, I as _, M as aa, O as sa, N as na, P as oa, n as ta, z as ea, G as ra, y as Ca, R as pa, H as Aa, J as ma, K as ia, L as la, Q as ua, S as da, o as ca, j as Pa, p as Fa, q as Sa, r as ya, i as Ia, v as Ma, s as Oa, t as ka, u as Ha, w as La } from "./index-f5f4e970.js";
1
+ import { A as n, an as o, aj as t, am as e, ac as r, aq as C, ao as p, ap as A, ad as m, aa as i, ai as l, ah as u, ab as d, l as c, al as P, ak as F, ae as S, af as y, ag as I, T as M, B as O, a9 as k, Y as H, V as L, a2 as f, U as g, a3 as D, a4 as v, a5 as b, h as x, f as E, a8 as h, a7 as Q, W as B, X as j, Z as q, $ as w, a0 as N, C as z, k as G, x as J, a as K, d as R, a6 as T, D as U, a1 as V, E as W, e as X, m as Y, b as Z, F as $, I as _, M as aa, O as sa, N as na, P as oa, n as ta, z as ea, G as ra, y as Ca, R as pa, H as Aa, J as ma, K as ia, L as la, Q as ua, S as da, o as ca, j as Pa, p as Fa, q as Sa, r as ya, i as Ia, v as Ma, s as Oa, t as ka, u as Ha, w as La } from "./index-fef781f8.js";
2
2
  export {
3
3
  n as A2AAccountComponent,
4
4
  o as A2AAccountDetails,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ranty/ranty-sdk",
3
- "version": "3.9.0",
3
+ "version": "3.10.0-beta.0",
4
4
  "description": "Ranty sdk",
5
5
  "main": "dist/index.js",
6
6
  "exports": {