@rebilly/instruments 8.18.1 → 8.19.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 +7 -0
- package/dist/index.js +8 -12
- package/dist/index.min.js +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [8.19.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v8.18.1...instruments/core-v8.19.0) (2024-01-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **instruments:** Add re-attempt button for declined transactions ([#2754](https://github.com/Rebilly/rebilly/issues/2754)) ([5f159b9](https://github.com/Rebilly/rebilly/commit/5f159b9a8c5782669484b957ba6d48343c2bdd33))
|
|
7
|
+
|
|
1
8
|
## [8.18.1](https://github.com/Rebilly/rebilly/compare/instruments/core-v8.18.0...instruments/core-v8.18.1) (2024-01-08)
|
|
2
9
|
|
|
3
10
|
|
package/dist/index.js
CHANGED
|
@@ -14994,8 +14994,7 @@ async function mountAmountSelector() {
|
|
|
14994
14994
|
const modelSafeState = state.toModel();
|
|
14995
14995
|
const model = {
|
|
14996
14996
|
options: modelSafeState.options,
|
|
14997
|
-
data: modelSafeState.data
|
|
14998
|
-
mainStyleVars: modelSafeState.mainStyleVars
|
|
14997
|
+
data: modelSafeState.data
|
|
14999
14998
|
};
|
|
15000
14999
|
(_a = iframe.component) == null ? void 0 : _a.call("route", {
|
|
15001
15000
|
name: "amount-selector"
|
|
@@ -15159,15 +15158,14 @@ async function mountMethodSelector() {
|
|
|
15159
15158
|
const modelSafeState = state.toModel();
|
|
15160
15159
|
const model = {
|
|
15161
15160
|
options: modelSafeState.options,
|
|
15162
|
-
data: modelSafeState.data
|
|
15163
|
-
mainStyleVars: modelSafeState.mainStyleVars
|
|
15161
|
+
data: modelSafeState.data
|
|
15164
15162
|
};
|
|
15165
15163
|
(_d = iframe == null ? void 0 : iframe.component) == null ? void 0 : _d.call("route", {
|
|
15166
15164
|
name: "method-switch"
|
|
15167
15165
|
});
|
|
15168
15166
|
(_e = iframe == null ? void 0 : iframe.component) == null ? void 0 : _e.call("update", model);
|
|
15169
|
-
if (!((_g = (_f = iframe == null ? void 0 : iframe.component) == null ? void 0 : _f.events) == null ? void 0 : _g["
|
|
15170
|
-
(_h = iframe == null ? void 0 : iframe.component) == null ? void 0 : _h.on("
|
|
15167
|
+
if (!((_g = (_f = iframe == null ? void 0 : iframe.component) == null ? void 0 : _f.events) == null ? void 0 : _g["restart-payment-flow"])) {
|
|
15168
|
+
(_h = iframe == null ? void 0 : iframe.component) == null ? void 0 : _h.on("restart-payment-flow", () => {
|
|
15171
15169
|
if (state.data.isPurchase) {
|
|
15172
15170
|
updateSummary();
|
|
15173
15171
|
}
|
|
@@ -23297,7 +23295,7 @@ function handleComputedProperty(options) {
|
|
|
23297
23295
|
var _a;
|
|
23298
23296
|
return Object.assign({}, options, {
|
|
23299
23297
|
_computed: {
|
|
23300
|
-
version: "8.18.
|
|
23298
|
+
version: "8.18.1",
|
|
23301
23299
|
paymentMethodsUrl: ((_a = options._dev) == null ? void 0 : _a.paymentMethodsUrl) ?? "https://forms.secure-payments.app"
|
|
23302
23300
|
}
|
|
23303
23301
|
});
|
|
@@ -26242,7 +26240,6 @@ async function mountConfirmation({ payload: instrument }) {
|
|
|
26242
26240
|
const model = {
|
|
26243
26241
|
options: modelSafeState.options,
|
|
26244
26242
|
data: modelSafeState.data,
|
|
26245
|
-
mainStyleVars: modelSafeState.mainStyleVars,
|
|
26246
26243
|
instrument
|
|
26247
26244
|
};
|
|
26248
26245
|
(_a = iframe == null ? void 0 : iframe.component) == null ? void 0 : _a.call("update", model);
|
|
@@ -26275,8 +26272,7 @@ async function mountResult({ payload }) {
|
|
|
26275
26272
|
const modelSafeState = state.toModel();
|
|
26276
26273
|
const model = {
|
|
26277
26274
|
data: modelSafeState.data,
|
|
26278
|
-
options: modelSafeState.options
|
|
26279
|
-
mainStyleVars: modelSafeState.mainStyleVars
|
|
26275
|
+
options: modelSafeState.options
|
|
26280
26276
|
};
|
|
26281
26277
|
if (state.data.payout) {
|
|
26282
26278
|
model.payoutRequest = payload;
|
|
@@ -26462,7 +26458,7 @@ async function destroy() {
|
|
|
26462
26458
|
cancellation.cancelAll();
|
|
26463
26459
|
state.loader.clearAll();
|
|
26464
26460
|
}
|
|
26465
|
-
async function update({ newOptions = {} }) {
|
|
26461
|
+
async function update({ newOptions = {} } = {}) {
|
|
26466
26462
|
if (!state.hasMounted) {
|
|
26467
26463
|
throw Error(
|
|
26468
26464
|
"Update method cannot be called before mounting instruments"
|
|
@@ -26500,7 +26496,7 @@ class RebillyInstrumentsInstance {
|
|
|
26500
26496
|
await show({ componentName, payload });
|
|
26501
26497
|
}
|
|
26502
26498
|
get version() {
|
|
26503
|
-
return `RebillyInstruments Ver.${"8.18.
|
|
26499
|
+
return `RebillyInstruments Ver.${"8.18.1"}`;
|
|
26504
26500
|
}
|
|
26505
26501
|
on(eventName, callback) {
|
|
26506
26502
|
on({ eventName, callback });
|