@blocklet/launcher-workflow 1.7.45 → 1.7.46
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/lib/components/payment-method.js +3 -3
- package/lib/index.js +4 -12
- package/package.json +8 -8
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = PaymentMethod;
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
@@ -33,7 +33,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
33
33
|
|
|
34
34
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
35
35
|
|
|
36
|
-
function
|
|
36
|
+
function PaymentMethod(_ref) {
|
|
37
37
|
let {
|
|
38
38
|
type
|
|
39
39
|
} = _ref,
|
|
@@ -67,6 +67,6 @@ const CryptoIcon = (0, _styledComponents.default)(_Coins.Coins).withConfig({
|
|
|
67
67
|
displayName: "payment-method__CryptoIcon",
|
|
68
68
|
componentId: "sc-tig09z-1"
|
|
69
69
|
})(["font-size:14px;height:22px;"]);
|
|
70
|
-
|
|
70
|
+
PaymentMethod.propTypes = {
|
|
71
71
|
type: _propTypes.default.oneOf([_constant.CURRENCY_TYPE.crypto, _constant.CURRENCY_TYPE.fiat]).isRequired
|
|
72
72
|
};
|
package/lib/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.PaymentMethod = PaymentMethod;
|
|
7
7
|
exports.Stripe = Stripe;
|
|
8
8
|
exports.default = Launcher;
|
|
9
9
|
|
|
@@ -56,16 +56,9 @@ function LaunchContent(_ref) {
|
|
|
56
56
|
let {
|
|
57
57
|
Route,
|
|
58
58
|
routerPrefix,
|
|
59
|
-
locale,
|
|
60
59
|
noMatchRedirect,
|
|
61
60
|
disabledBack
|
|
62
61
|
} = _ref;
|
|
63
|
-
const {
|
|
64
|
-
changeLocale
|
|
65
|
-
} = (0, _locale.useLocaleContext)();
|
|
66
|
-
(0, _react.useEffect)(() => {
|
|
67
|
-
changeLocale(locale);
|
|
68
|
-
}, [changeLocale, locale]);
|
|
69
62
|
const routers = [{
|
|
70
63
|
path: "".concat(routerPrefix),
|
|
71
64
|
component: PurchasePage
|
|
@@ -157,7 +150,6 @@ function Launcher(_ref4) {
|
|
|
157
150
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(LaunchContent, {
|
|
158
151
|
Route: Route,
|
|
159
152
|
routerPrefix: routerPrefix,
|
|
160
|
-
locale: locale,
|
|
161
153
|
noMatchRedirect: noMatchRedirect,
|
|
162
154
|
disabledBack: disabledBack
|
|
163
155
|
})
|
|
@@ -181,7 +173,7 @@ Launcher.defaultProps = {
|
|
|
181
173
|
disabledBack: []
|
|
182
174
|
};
|
|
183
175
|
|
|
184
|
-
function
|
|
176
|
+
function PaymentMethod(_ref5) {
|
|
185
177
|
let {
|
|
186
178
|
locale
|
|
187
179
|
} = _ref5,
|
|
@@ -194,9 +186,9 @@ function PaymentType(_ref5) {
|
|
|
194
186
|
});
|
|
195
187
|
}
|
|
196
188
|
|
|
197
|
-
|
|
189
|
+
PaymentMethod.propTypes = {
|
|
198
190
|
locale: _propTypes.default.string
|
|
199
191
|
};
|
|
200
|
-
|
|
192
|
+
PaymentMethod.defaultProps = {
|
|
201
193
|
locale: 'en'
|
|
202
194
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/launcher-workflow",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.46",
|
|
4
4
|
"description": "Purchase components for Launcher UI",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"react": ">=18.1.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@arcblock/did-connect": "^2.1.
|
|
41
|
-
"@arcblock/icons": "^2.1.
|
|
42
|
-
"@arcblock/license": "^2.1.
|
|
43
|
-
"@arcblock/ux": "^2.1.
|
|
44
|
-
"@blocklet/launcher-layout": "1.7.
|
|
45
|
-
"@blocklet/launcher-util": "1.7.
|
|
40
|
+
"@arcblock/did-connect": "^2.1.47",
|
|
41
|
+
"@arcblock/icons": "^2.1.47",
|
|
42
|
+
"@arcblock/license": "^2.1.47",
|
|
43
|
+
"@arcblock/ux": "^2.1.47",
|
|
44
|
+
"@blocklet/launcher-layout": "1.7.46",
|
|
45
|
+
"@blocklet/launcher-util": "1.7.46",
|
|
46
46
|
"@emotion/react": "^11.9.0",
|
|
47
47
|
"@emotion/styled": "^11.8.1",
|
|
48
48
|
"@mui/icons-material": "^5.6.2",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"babel-plugin-inline-react-svg": "^2.0.1",
|
|
74
74
|
"babel-plugin-styled-components": "^1.10.7"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "e58474df07541cfc5e21392eaae27c0c18c3384b"
|
|
77
77
|
}
|