@rebilly/instruments 12.57.5 → 12.58.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.
package/CHANGELOG.md CHANGED
@@ -1 +1,6 @@
1
- ## [12.57.5](https://github.com/Rebilly/rebilly/compare/instruments/core-v12.57.4...instruments/core-v12.57.5) (2025-05-14)
1
+ ## [12.58.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v12.57.6...instruments/core-v12.58.0) (2025-05-15)
2
+
3
+
4
+ ### Features
5
+
6
+ * **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#11689](https://github.com/Rebilly/rebilly/issues/11689)) ([829839f](https://github.com/Rebilly/rebilly/commit/829839f96513a80ded86fd3a83bc3955a27db9f0))
package/dist/index.js CHANGED
@@ -703,6 +703,7 @@ class Loader {
703
703
  }
704
704
  startLoading({ section = "form", id = "" } = {}) {
705
705
  var _a, _b, _c;
706
+ console.log("startLoading", { section, id });
706
707
  this[section].push(id);
707
708
  const rootEl = ((_a = state.shadowRoot) == null ? void 0 : _a.querySelector("style")) || document.querySelector(":root");
708
709
  const contentPadding = 2;
@@ -752,6 +753,7 @@ class Loader {
752
753
  }
753
754
  }
754
755
  stopLoading({ section = "form", id = "" } = {}) {
756
+ console.log("stopLoading", { section, id });
755
757
  const idIndex = this[section].indexOf(id);
756
758
  if (idIndex !== -1) {
757
759
  this[section].splice(idIndex, 1);
@@ -763,6 +765,7 @@ class Loader {
763
765
  }
764
766
  clearAll() {
765
767
  this.form.forEach((id) => {
768
+ console.log(3, "stopLoading");
766
769
  this.stopLoading({ id });
767
770
  });
768
771
  if (this.summary) {
@@ -2922,6 +2925,7 @@ function stopLoaderHandler(iframe, data) {
2922
2925
  if (!section) {
2923
2926
  section = id.includes("summary") ? "summary" : "form";
2924
2927
  }
2928
+ console.log(5, "stopLoading");
2925
2929
  (_a = data.loader) == null ? void 0 : _a.stopLoading({ section, id });
2926
2930
  });
2927
2931
  }
@@ -6300,7 +6304,7 @@ function C$1({ options: e2 }) {
6300
6304
  }
6301
6305
  function o2() {
6302
6306
  const i = {
6303
- "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@0b5dcf3`
6307
+ "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@829839f`
6304
6308
  };
6305
6309
  return e2.apiKey && (i["REB-APIKEY"] = e2.apiKey), i;
6306
6310
  }
@@ -14427,7 +14431,7 @@ const paymentMethods = [
14427
14431
  apiName: "Klarna",
14428
14432
  name: "Klarna",
14429
14433
  landscapeLogo: null,
14430
- portraitLogo: null,
14434
+ portraitLogo: "https://app.rebilly.com/static/payment-methods/portrait/Klarna.png",
14431
14435
  summary: "Klarna offers flexible payment plans that provides payment solutions for 85\nmillion customers and over 200,000 merchants across 19 markets.\n",
14432
14436
  description: "Klarna offers flexible payment plans that provides payment solutions for 85\nmillion customers and over 200,000 merchants across 19 markets.\n",
14433
14437
  countries: {
@@ -17570,6 +17574,7 @@ async function mountMethodSelector() {
17570
17574
  });
17571
17575
  }
17572
17576
  } else {
17577
+ console.log(6, "stopLoading");
17573
17578
  state.loader.stopLoading({ id: "rebilly-instruments-form" });
17574
17579
  state.form.querySelector(
17575
17580
  '[data-rebilly-instruments="form"]'
@@ -17652,6 +17657,7 @@ async function mountForm() {
17652
17657
  const iframe = await new ViewIframe2(args);
17653
17658
  iframe.bindEventListeners({ loader: state.loader });
17654
17659
  iframes.form = iframe;
17660
+ console.log(7, "stopLoading");
17655
17661
  state.loader.stopLoading({ id: "rebilly-instruments-form" });
17656
17662
  return {
17657
17663
  then: (callback) => callback()
@@ -21341,6 +21347,7 @@ async function mount({ ...options } = {}) {
21341
21347
  state.i18n();
21342
21348
  state.hasMounted = true;
21343
21349
  const clearFormOnError = (errorMessage) => {
21350
+ console.log(1, "stopLoading");
21344
21351
  state.loader.stopLoading({ id: "rebilly-instruments-form" });
21345
21352
  removeForm();
21346
21353
  showError(state.translate.getTranslation(errorMessage), false);
@@ -21369,6 +21376,7 @@ async function mount({ ...options } = {}) {
21369
21376
  hasNoPaymentMethods = !((_t2 = data.readyToPay) == null ? void 0 : _t2.length);
21370
21377
  }
21371
21378
  if (hasNoPaymentMethods) {
21379
+ console.log(2, "stopLoading");
21372
21380
  state.loader.stopLoading({ id: "rebilly-instruments-form" });
21373
21381
  showError(
21374
21382
  state.translate.getTranslation("form.error.noPaymentMethods"),