@blocklet/launcher-workflow 2.3.53 → 2.3.54
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 +14 -10
- package/lib/prepare.js +18 -13
- package/package.json +10 -10
package/es/prepare.js
CHANGED
|
@@ -253,17 +253,21 @@ function Content({
|
|
|
253
253
|
children: [state.productType?.name === 'serverless' && /*#__PURE__*/_jsx(CheckoutOnDemand, {
|
|
254
254
|
launchSessionId: sessionId,
|
|
255
255
|
handlePaid: handlePaid,
|
|
256
|
-
components: (blocklet.components || []).map(x =>
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
description: x.meta.description,
|
|
260
|
-
logo: getBlockletLogoUrl({
|
|
256
|
+
components: (blocklet.components || []).map(x => {
|
|
257
|
+
const logoBaseUrl = x?.bundleSource?.store || blocklet.registryUrl;
|
|
258
|
+
return {
|
|
261
259
|
did: x.meta.did,
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
260
|
+
title: x.meta.title,
|
|
261
|
+
description: x.meta.description,
|
|
262
|
+
bundleSource: x.bundleSource,
|
|
263
|
+
logo: getBlockletLogoUrl({
|
|
264
|
+
did: x.meta.did,
|
|
265
|
+
baseUrl: logoBaseUrl,
|
|
266
|
+
logoPath: x.meta.logo
|
|
267
|
+
})
|
|
268
|
+
};
|
|
269
|
+
}),
|
|
270
|
+
blockletStoreURL: from !== 'did-spaces' ? blocklet.registryUrl : undefined,
|
|
267
271
|
connectApi: connectApi,
|
|
268
272
|
session: session,
|
|
269
273
|
t: t,
|
package/lib/prepare.js
CHANGED
|
@@ -36,7 +36,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
36
36
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
37
37
|
const Root = (0, _styled.default)('div')(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n padding-top: 0;\n\n @media (max-width: 960px) {\n width: 100%;\n }\n"])));
|
|
38
38
|
function Content(_ref) {
|
|
39
|
-
var _launchState$value3, _launchState$value5, _launchState$value6, _state$productType, _state$productType2,
|
|
39
|
+
var _launchState$value3, _launchState$value5, _launchState$value6, _state$productType, _state$productType2, _launchState$value7, _launchState$value8, _state$productType3, _window$blocklet2, _window$blocklet3, _window$blocklet4;
|
|
40
40
|
let {
|
|
41
41
|
blocklet
|
|
42
42
|
} = _ref;
|
|
@@ -266,17 +266,22 @@ function Content(_ref) {
|
|
|
266
266
|
children: [((_state$productType2 = state.productType) === null || _state$productType2 === void 0 ? void 0 : _state$productType2.name) === 'serverless' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_onDemand.default, {
|
|
267
267
|
launchSessionId: sessionId,
|
|
268
268
|
handlePaid: handlePaid,
|
|
269
|
-
components: (blocklet.components || []).map(x =>
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
logo: (0, _util.getBlockletLogoUrl)({
|
|
269
|
+
components: (blocklet.components || []).map(x => {
|
|
270
|
+
var _x$bundleSource;
|
|
271
|
+
const logoBaseUrl = (x === null || x === void 0 || (_x$bundleSource = x.bundleSource) === null || _x$bundleSource === void 0 ? void 0 : _x$bundleSource.store) || blocklet.registryUrl;
|
|
272
|
+
return {
|
|
274
273
|
did: x.meta.did,
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
274
|
+
title: x.meta.title,
|
|
275
|
+
description: x.meta.description,
|
|
276
|
+
bundleSource: x.bundleSource,
|
|
277
|
+
logo: (0, _util.getBlockletLogoUrl)({
|
|
278
|
+
did: x.meta.did,
|
|
279
|
+
baseUrl: logoBaseUrl,
|
|
280
|
+
logoPath: x.meta.logo
|
|
281
|
+
})
|
|
282
|
+
};
|
|
283
|
+
}),
|
|
284
|
+
blockletStoreURL: from !== 'did-spaces' ? blocklet.registryUrl : undefined,
|
|
280
285
|
connectApi: connectApi,
|
|
281
286
|
session: session,
|
|
282
287
|
t: t,
|
|
@@ -357,10 +362,10 @@ function Content(_ref) {
|
|
|
357
362
|
})
|
|
358
363
|
});
|
|
359
364
|
}
|
|
360
|
-
function PreparePage(
|
|
365
|
+
function PreparePage(_ref3) {
|
|
361
366
|
let {
|
|
362
367
|
blocklet
|
|
363
|
-
} =
|
|
368
|
+
} = _ref3;
|
|
364
369
|
const {
|
|
365
370
|
t
|
|
366
371
|
} = (0, _locale.useLocaleContext)();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/launcher-workflow",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.54",
|
|
4
4
|
"description": "Purchase components for Launcher UI",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"react": ">=18.1.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@arcblock/did-connect": "^2.10.
|
|
45
|
-
"@arcblock/icons": "^2.10.
|
|
46
|
-
"@arcblock/license": "^2.10.
|
|
47
|
-
"@arcblock/react-hooks": "^2.10.
|
|
48
|
-
"@arcblock/ux": "^2.10.
|
|
49
|
-
"@blocklet/launcher-layout": "^2.10.
|
|
50
|
-
"@blocklet/launcher-util": "2.3.
|
|
51
|
-
"@blocklet/launcher-ux": "2.3.
|
|
44
|
+
"@arcblock/did-connect": "^2.10.33",
|
|
45
|
+
"@arcblock/icons": "^2.10.33",
|
|
46
|
+
"@arcblock/license": "^2.10.33",
|
|
47
|
+
"@arcblock/react-hooks": "^2.10.33",
|
|
48
|
+
"@arcblock/ux": "^2.10.33",
|
|
49
|
+
"@blocklet/launcher-layout": "^2.10.33",
|
|
50
|
+
"@blocklet/launcher-util": "2.3.54",
|
|
51
|
+
"@blocklet/launcher-ux": "2.3.54",
|
|
52
52
|
"@blocklet/payment": "^1.14.8",
|
|
53
53
|
"@blocklet/payment-react": "^1.15.4",
|
|
54
54
|
"@emotion/react": "^11.13.3",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"require": "./lib/locales/index.js"
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "e1b9d6d3607e9b17a8b59c1f67df8e059a6d8c16"
|
|
109
109
|
}
|