@rebilly/instruments 12.57.4 → 12.57.6
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 +1 -6
- package/dist/index.js +9 -2
- package/dist/index.min.js +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
## [12.57.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Bug Fixes
|
|
5
|
-
|
|
6
|
-
* **instruments:** stop loading express purchase ([#11941](https://github.com/Rebilly/rebilly/issues/11941)) ([b01d8ee](https://github.com/Rebilly/rebilly/commit/b01d8eeeac6401263609b5ba90568f170c2bcd97))
|
|
1
|
+
## [12.57.6](https://github.com/Rebilly/rebilly/compare/instruments/core-v12.57.5...instruments/core-v12.57.6) (2025-05-15)
|
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("/")}@
|
|
6307
|
+
"REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@5ad7a23`
|
|
6304
6308
|
};
|
|
6305
6309
|
return e2.apiKey && (i["REB-APIKEY"] = e2.apiKey), i;
|
|
6306
6310
|
}
|
|
@@ -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()
|
|
@@ -21190,7 +21196,6 @@ async function mountConfirmation({ payload: instrument }) {
|
|
|
21190
21196
|
}
|
|
21191
21197
|
async function mountResult({ payload }) {
|
|
21192
21198
|
var _a, _b;
|
|
21193
|
-
state.loader.stopLoading({ id: "express-purchase" });
|
|
21194
21199
|
const iframe = iframes.form;
|
|
21195
21200
|
if (!iframe) {
|
|
21196
21201
|
await mountForm();
|
|
@@ -21342,6 +21347,7 @@ async function mount({ ...options } = {}) {
|
|
|
21342
21347
|
state.i18n();
|
|
21343
21348
|
state.hasMounted = true;
|
|
21344
21349
|
const clearFormOnError = (errorMessage) => {
|
|
21350
|
+
console.log(1, "stopLoading");
|
|
21345
21351
|
state.loader.stopLoading({ id: "rebilly-instruments-form" });
|
|
21346
21352
|
removeForm();
|
|
21347
21353
|
showError(state.translate.getTranslation(errorMessage), false);
|
|
@@ -21370,6 +21376,7 @@ async function mount({ ...options } = {}) {
|
|
|
21370
21376
|
hasNoPaymentMethods = !((_t2 = data.readyToPay) == null ? void 0 : _t2.length);
|
|
21371
21377
|
}
|
|
21372
21378
|
if (hasNoPaymentMethods) {
|
|
21379
|
+
console.log(2, "stopLoading");
|
|
21373
21380
|
state.loader.stopLoading({ id: "rebilly-instruments-form" });
|
|
21374
21381
|
showError(
|
|
21375
21382
|
state.translate.getTranslation("form.error.noPaymentMethods"),
|