@rebilly/instruments 3.12.0-beta.0 → 3.12.3-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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebilly/instruments",
|
|
3
|
-
"version": "3.12.
|
|
3
|
+
"version": "3.12.3-beta.0",
|
|
4
4
|
"author": "Rebilly",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"unpkg": "dist/index.min.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"@babel/cli": "^7.14.5",
|
|
16
16
|
"@babel/core": "^7.14.6",
|
|
17
17
|
"@babel/preset-env": "^7.14.7",
|
|
18
|
-
"@rebilly/risk-data-collector": "^2.0
|
|
18
|
+
"@rebilly/risk-data-collector": "^2.3.0",
|
|
19
19
|
"autoprefixer": "^10.3.4",
|
|
20
20
|
"css": "^3.0.0",
|
|
21
21
|
"jwt-decode": "^3.1.2",
|
|
@@ -73,14 +73,10 @@ export default ({
|
|
|
73
73
|
|
|
74
74
|
validateOptions(options);
|
|
75
75
|
|
|
76
|
-
const productionUrl = options.apiMode === 'sandbox'
|
|
77
|
-
? 'https://forms-sandbox.secure-payments.app'
|
|
78
|
-
: 'https://forms.secure-payments.app';
|
|
79
|
-
|
|
80
76
|
const _computed = {
|
|
81
77
|
paymentMethodsUrl: options._dev
|
|
82
78
|
? options._dev.paymentMethodsUrl || 'https://forms.local.rebilly.dev:3000'
|
|
83
|
-
:
|
|
79
|
+
: 'https://forms.secure-payments.app'
|
|
84
80
|
};
|
|
85
81
|
|
|
86
82
|
const combinedOptions = merge({...defaults}, {
|
|
@@ -155,6 +155,7 @@ export function MountMethods({
|
|
|
155
155
|
const details = document.querySelectorAll('.rebilly-instruments-accordion');
|
|
156
156
|
// Add the onclick listeners.
|
|
157
157
|
details.forEach((targetDetail) => {
|
|
158
|
+
// set to open by default, will be closed by timeout below
|
|
158
159
|
targetDetail.open = true;
|
|
159
160
|
targetDetail.querySelector('summary').addEventListener('click', () => {
|
|
160
161
|
// Close all the accordion that are not targetDetail.
|
|
@@ -164,7 +165,6 @@ export function MountMethods({
|
|
|
164
165
|
});
|
|
165
166
|
});
|
|
166
167
|
|
|
167
|
-
// HOTFIX:
|
|
168
168
|
// All details must be open to connect to Postmate than closed
|
|
169
169
|
setTimeout(() => {
|
|
170
170
|
details.forEach((detail) => {
|