@rebilly/instruments 8.18.1 → 8.19.1
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 +14 -0
- package/dist/index.js +10 -16
- package/dist/index.min.js +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [8.19.1](https://github.com/Rebilly/rebilly/compare/instruments/core-v8.19.0...instruments/core-v8.19.1) (2024-01-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **instruments:** Update get-shadow-parent.ts util ([#2696](https://github.com/Rebilly/rebilly/issues/2696)) ([c7b17e2](https://github.com/Rebilly/rebilly/commit/c7b17e262b8f5c445e393fc6d78b854c37b62007))
|
|
7
|
+
|
|
8
|
+
## [8.19.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v8.18.1...instruments/core-v8.19.0) (2024-01-08)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **instruments:** Add re-attempt button for declined transactions ([#2754](https://github.com/Rebilly/rebilly/issues/2754)) ([5f159b9](https://github.com/Rebilly/rebilly/commit/5f159b9a8c5782669484b957ba6d48343c2bdd33))
|
|
14
|
+
|
|
1
15
|
## [8.18.1](https://github.com/Rebilly/rebilly/compare/instruments/core-v8.18.0...instruments/core-v8.18.1) (2024-01-08)
|
|
2
16
|
|
|
3
17
|
|
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.
|
|
23298
|
+
version: "8.19.0",
|
|
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;
|
|
@@ -26360,10 +26356,8 @@ const setupUserFlow = ({ state: state2 = {} }) => {
|
|
|
26360
26356
|
}
|
|
26361
26357
|
};
|
|
26362
26358
|
function getShadowParent(element) {
|
|
26363
|
-
|
|
26364
|
-
|
|
26365
|
-
return element;
|
|
26366
|
-
}
|
|
26359
|
+
if (element.getRootNode() instanceof ShadowRoot) {
|
|
26360
|
+
return element.getRootNode();
|
|
26367
26361
|
}
|
|
26368
26362
|
return null;
|
|
26369
26363
|
}
|
|
@@ -26462,7 +26456,7 @@ async function destroy() {
|
|
|
26462
26456
|
cancellation.cancelAll();
|
|
26463
26457
|
state.loader.clearAll();
|
|
26464
26458
|
}
|
|
26465
|
-
async function update({ newOptions = {} }) {
|
|
26459
|
+
async function update({ newOptions = {} } = {}) {
|
|
26466
26460
|
if (!state.hasMounted) {
|
|
26467
26461
|
throw Error(
|
|
26468
26462
|
"Update method cannot be called before mounting instruments"
|
|
@@ -26500,7 +26494,7 @@ class RebillyInstrumentsInstance {
|
|
|
26500
26494
|
await show({ componentName, payload });
|
|
26501
26495
|
}
|
|
26502
26496
|
get version() {
|
|
26503
|
-
return `RebillyInstruments Ver.${"8.
|
|
26497
|
+
return `RebillyInstruments Ver.${"8.19.0"}`;
|
|
26504
26498
|
}
|
|
26505
26499
|
on(eventName, callback) {
|
|
26506
26500
|
on({ eventName, callback });
|