@blocklet/launcher-workflow 2.3.104 → 2.3.106
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/prepare.js +2 -2
- package/lib/prepare.js +2 -2
- package/package.json +11 -11
package/es/prepare.js
CHANGED
|
@@ -163,7 +163,7 @@ function Content({
|
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
}, [launchState.value?.launch, params, setParams]);
|
|
166
|
-
if (
|
|
166
|
+
if (blocklet.loading) {
|
|
167
167
|
return /*#__PURE__*/_jsx(Center, {
|
|
168
168
|
relative: "parent",
|
|
169
169
|
children: /*#__PURE__*/_jsx(CircularProgress, {})
|
|
@@ -193,7 +193,7 @@ function Content({
|
|
|
193
193
|
|
|
194
194
|
// TODO: PaymentKitV2 处理支付失败的情况
|
|
195
195
|
|
|
196
|
-
const launch = launchState.value?.launch;
|
|
196
|
+
const launch = launchState.value?.launch || {};
|
|
197
197
|
if ([LAUNCH_STATUS.paid, LAUNCH_STATUS.nftMinted, LAUNCH_STATUS.allocated].includes(launch.status)) {
|
|
198
198
|
return /*#__PURE__*/_jsx(ConfirmDialog, {
|
|
199
199
|
title: t('purchase.unexpectedLaunchSession.paid'),
|
package/lib/prepare.js
CHANGED
|
@@ -175,7 +175,7 @@ function Content(_ref) {
|
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
}, [(_launchState$value5 = launchState.value) === null || _launchState$value5 === void 0 ? void 0 : _launchState$value5.launch, params, setParams]);
|
|
178
|
-
if (
|
|
178
|
+
if (blocklet.loading) {
|
|
179
179
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Center.default, {
|
|
180
180
|
relative: "parent",
|
|
181
181
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CircularProgress.default, {})
|
|
@@ -205,7 +205,7 @@ function Content(_ref) {
|
|
|
205
205
|
|
|
206
206
|
// TODO: PaymentKitV2 处理支付失败的情况
|
|
207
207
|
|
|
208
|
-
const launch = (_launchState$value6 = launchState.value) === null || _launchState$value6 === void 0 ? void 0 : _launchState$value6.launch;
|
|
208
|
+
const launch = ((_launchState$value6 = launchState.value) === null || _launchState$value6 === void 0 ? void 0 : _launchState$value6.launch) || {};
|
|
209
209
|
if ([_constant.LAUNCH_STATUS.paid, _constant.LAUNCH_STATUS.nftMinted, _constant.LAUNCH_STATUS.allocated].includes(launch.status)) {
|
|
210
210
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_confirm.default, {
|
|
211
211
|
title: t('purchase.unexpectedLaunchSession.paid'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/launcher-workflow",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.106",
|
|
4
4
|
"description": "Purchase components for Launcher UI",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"build:lib": "babel src --out-dir lib --copy-files --no-copy-ignored",
|
|
30
30
|
"build:es": "babel --config-file ./babel.config.es.js src --out-dir es --copy-files --no-copy-ignored",
|
|
31
31
|
"autoexports": "node tools/auto-exports.js",
|
|
32
|
-
"watch": "concurrently
|
|
32
|
+
"watch": "concurrently \"npm run watch:lib\" \"npm run watch:es\" \"npm run autoexports\"",
|
|
33
33
|
"watch:lib": "babel src --out-dir lib -w --copy-files",
|
|
34
34
|
"watch:es": "babel --config-file ./babel.config.es.js src --out-dir es -w --copy-files",
|
|
35
35
|
"prepublish": "npm run build"
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"react": ">=18.1.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@arcblock/did-connect": "^2.12.
|
|
45
|
-
"@arcblock/icons": "^2.12.
|
|
46
|
-
"@arcblock/license": "^2.12.
|
|
47
|
-
"@arcblock/react-hooks": "^2.12.
|
|
48
|
-
"@arcblock/ux": "^2.12.
|
|
49
|
-
"@blocklet/launcher-layout": "^2.12.
|
|
50
|
-
"@blocklet/launcher-util": "2.3.
|
|
51
|
-
"@blocklet/launcher-ux": "2.3.
|
|
44
|
+
"@arcblock/did-connect": "^2.12.52",
|
|
45
|
+
"@arcblock/icons": "^2.12.52",
|
|
46
|
+
"@arcblock/license": "^2.12.52",
|
|
47
|
+
"@arcblock/react-hooks": "^2.12.52",
|
|
48
|
+
"@arcblock/ux": "^2.12.52",
|
|
49
|
+
"@blocklet/launcher-layout": "^2.12.52",
|
|
50
|
+
"@blocklet/launcher-util": "2.3.106",
|
|
51
|
+
"@blocklet/launcher-ux": "2.3.106",
|
|
52
52
|
"@blocklet/payment": "^1.14.8",
|
|
53
53
|
"@blocklet/payment-react": "^1.18.24",
|
|
54
54
|
"@emotion/react": "^11.14.0",
|
|
@@ -106,5 +106,5 @@
|
|
|
106
106
|
"require": "./lib/locales/index.js"
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "5810708b2b24f2a0271b6b0139fc41ea2f902eb0"
|
|
110
110
|
}
|