tg-core-components 6.1.3-crypto.21 → 6.1.3-crypto.22
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/es/widgets/Cashier/Deposit/PaymentForm/InjectedIframeHTML.js +7 -3
- package/es/widgets/Cashier/Deposit/PaymentForm/index.js +6 -5
- package/lib/widgets/Cashier/Deposit/PaymentForm/InjectedIframeHTML.js +7 -3
- package/lib/widgets/Cashier/Deposit/PaymentForm/index.js +6 -5
- package/package.json +1 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
2
|
+
|
|
1
3
|
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
2
4
|
|
|
3
5
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -40,9 +42,11 @@ var InjectedIframeHTML = function (_Component) {
|
|
|
40
42
|
value: function render() {
|
|
41
43
|
var _this2 = this;
|
|
42
44
|
|
|
43
|
-
var
|
|
45
|
+
var _props = this.props,
|
|
46
|
+
data = _props.data,
|
|
47
|
+
iframeProps = _props.iframeProps;
|
|
44
48
|
|
|
45
|
-
return React.createElement('iframe', {
|
|
49
|
+
return React.createElement('iframe', _extends({
|
|
46
50
|
ref: function ref(node) {
|
|
47
51
|
return _this2._iframe = node;
|
|
48
52
|
},
|
|
@@ -50,7 +54,7 @@ var InjectedIframeHTML = function (_Component) {
|
|
|
50
54
|
width: '100%',
|
|
51
55
|
height: data.redirectOutput.height,
|
|
52
56
|
onLoad: this.handleLoad
|
|
53
|
-
});
|
|
57
|
+
}, iframeProps));
|
|
54
58
|
}
|
|
55
59
|
}]);
|
|
56
60
|
|
|
@@ -125,7 +125,8 @@ var PaymentForm = function (_Component) {
|
|
|
125
125
|
onClose = _props.onClose,
|
|
126
126
|
onSuccess = _props.onSuccess,
|
|
127
127
|
redirect = _props.redirect,
|
|
128
|
-
details = _props.details
|
|
128
|
+
details = _props.details,
|
|
129
|
+
iframeProps = _props.iframeProps;
|
|
129
130
|
|
|
130
131
|
|
|
131
132
|
if (!data.success) {
|
|
@@ -158,19 +159,19 @@ var PaymentForm = function (_Component) {
|
|
|
158
159
|
target: redirect ? '_top' : frameId
|
|
159
160
|
}, data.redirectOutput));
|
|
160
161
|
} else if (data.redirectOutput.container == 'iframe' && data.redirectOutput.method == 'POST' && data.redirectOutput.html != null) {
|
|
161
|
-
return React.createElement(InjectedIframeHTML, { data: data });
|
|
162
|
+
return React.createElement(InjectedIframeHTML, { data: data, iframeProps: iframeProps });
|
|
162
163
|
} else if (data.redirectOutput.container == 'iframe' && data.redirectOutput.method == 'GET' && data.redirectOutput.html != null) {
|
|
163
|
-
return React.createElement(InjectedIframeHTML, { data: data });
|
|
164
|
+
return React.createElement(InjectedIframeHTML, { data: data, iframeProps: iframeProps });
|
|
164
165
|
} else if (data.redirectOutput.container == 'iframe' && data.redirectOutput.method == 'GET' && redirect) {
|
|
165
166
|
window.location.href = data.redirectOutput.url;
|
|
166
167
|
return null;
|
|
167
168
|
} else if (data.redirectOutput.container == 'iframe' && data.redirectOutput.method == 'GET') {
|
|
168
|
-
return React.createElement('iframe', {
|
|
169
|
+
return React.createElement('iframe', _extends({
|
|
169
170
|
src: data.redirectOutput.url,
|
|
170
171
|
width: data.redirectOutput.width,
|
|
171
172
|
height: data.redirectOutput.height,
|
|
172
173
|
frameBorder: '0'
|
|
173
|
-
});
|
|
174
|
+
}, iframeProps));
|
|
174
175
|
} else if (data.redirectOutput.container == 'window' && data.redirectOutput.method == 'POST') {
|
|
175
176
|
return React.createElement(DynamicForm, data.redirectOutput);
|
|
176
177
|
} else if (data.redirectOutput.container == 'window' && data.redirectOutput.method == 'GET') {
|
|
@@ -4,6 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
|
|
7
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
8
|
+
|
|
7
9
|
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
8
10
|
|
|
9
11
|
var _react = require('react');
|
|
@@ -50,9 +52,11 @@ var InjectedIframeHTML = function (_Component) {
|
|
|
50
52
|
value: function render() {
|
|
51
53
|
var _this2 = this;
|
|
52
54
|
|
|
53
|
-
var
|
|
55
|
+
var _props = this.props,
|
|
56
|
+
data = _props.data,
|
|
57
|
+
iframeProps = _props.iframeProps;
|
|
54
58
|
|
|
55
|
-
return _react2.default.createElement('iframe', {
|
|
59
|
+
return _react2.default.createElement('iframe', _extends({
|
|
56
60
|
ref: function ref(node) {
|
|
57
61
|
return _this2._iframe = node;
|
|
58
62
|
},
|
|
@@ -60,7 +64,7 @@ var InjectedIframeHTML = function (_Component) {
|
|
|
60
64
|
width: '100%',
|
|
61
65
|
height: data.redirectOutput.height,
|
|
62
66
|
onLoad: this.handleLoad
|
|
63
|
-
});
|
|
67
|
+
}, iframeProps));
|
|
64
68
|
}
|
|
65
69
|
}]);
|
|
66
70
|
|
|
@@ -157,7 +157,8 @@ var PaymentForm = function (_Component) {
|
|
|
157
157
|
onClose = _props.onClose,
|
|
158
158
|
onSuccess = _props.onSuccess,
|
|
159
159
|
redirect = _props.redirect,
|
|
160
|
-
details = _props.details
|
|
160
|
+
details = _props.details,
|
|
161
|
+
iframeProps = _props.iframeProps;
|
|
161
162
|
|
|
162
163
|
|
|
163
164
|
if (!data.success) {
|
|
@@ -190,19 +191,19 @@ var PaymentForm = function (_Component) {
|
|
|
190
191
|
target: redirect ? '_top' : frameId
|
|
191
192
|
}, data.redirectOutput));
|
|
192
193
|
} else if (data.redirectOutput.container == 'iframe' && data.redirectOutput.method == 'POST' && data.redirectOutput.html != null) {
|
|
193
|
-
return _react2.default.createElement(_InjectedIframeHTML2.default, { data: data });
|
|
194
|
+
return _react2.default.createElement(_InjectedIframeHTML2.default, { data: data, iframeProps: iframeProps });
|
|
194
195
|
} else if (data.redirectOutput.container == 'iframe' && data.redirectOutput.method == 'GET' && data.redirectOutput.html != null) {
|
|
195
|
-
return _react2.default.createElement(_InjectedIframeHTML2.default, { data: data });
|
|
196
|
+
return _react2.default.createElement(_InjectedIframeHTML2.default, { data: data, iframeProps: iframeProps });
|
|
196
197
|
} else if (data.redirectOutput.container == 'iframe' && data.redirectOutput.method == 'GET' && redirect) {
|
|
197
198
|
window.location.href = data.redirectOutput.url;
|
|
198
199
|
return null;
|
|
199
200
|
} else if (data.redirectOutput.container == 'iframe' && data.redirectOutput.method == 'GET') {
|
|
200
|
-
return _react2.default.createElement('iframe', {
|
|
201
|
+
return _react2.default.createElement('iframe', _extends({
|
|
201
202
|
src: data.redirectOutput.url,
|
|
202
203
|
width: data.redirectOutput.width,
|
|
203
204
|
height: data.redirectOutput.height,
|
|
204
205
|
frameBorder: '0'
|
|
205
|
-
});
|
|
206
|
+
}, iframeProps));
|
|
206
207
|
} else if (data.redirectOutput.container == 'window' && data.redirectOutput.method == 'POST') {
|
|
207
208
|
return _react2.default.createElement(_DynamicForm2.default, data.redirectOutput);
|
|
208
209
|
} else if (data.redirectOutput.container == 'window' && data.redirectOutput.method == 'GET') {
|