@blocklet/launcher-workflow 2.3.52 → 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.
Files changed (3) hide show
  1. package/es/prepare.js +14 -10
  2. package/lib/prepare.js +18 -13
  3. package/package.json +15 -15
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
- did: x.meta.did,
258
- title: x.meta.title,
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
- baseUrl: blocklet.registryUrl,
263
- logoPath: x.meta.logo
264
- })
265
- })),
266
- blockletStoreURL: from !== 'did-spaces' ?? blocklet.registryUrl,
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, _ref3, _launchState$value7, _launchState$value8, _state$productType3, _window$blocklet2, _window$blocklet3, _window$blocklet4;
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
- did: x.meta.did,
271
- title: x.meta.title,
272
- description: x.meta.description,
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
- baseUrl: blocklet.registryUrl,
276
- logoPath: x.meta.logo
277
- })
278
- })),
279
- blockletStoreURL: (_ref3 = from !== 'did-spaces') !== null && _ref3 !== void 0 ? _ref3 : blocklet.registryUrl,
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(_ref4) {
365
+ function PreparePage(_ref3) {
361
366
  let {
362
367
  blocklet
363
- } = _ref4;
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.52",
3
+ "version": "2.3.54",
4
4
  "description": "Purchase components for Launcher UI",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -41,29 +41,29 @@
41
41
  "react": ">=18.1.0"
42
42
  },
43
43
  "dependencies": {
44
- "@arcblock/did-connect": "^2.10.23",
45
- "@arcblock/icons": "^2.10.23",
46
- "@arcblock/license": "^2.10.23",
47
- "@arcblock/react-hooks": "^2.10.23",
48
- "@arcblock/ux": "^2.10.23",
49
- "@blocklet/launcher-layout": "^2.10.23",
50
- "@blocklet/launcher-util": "2.3.52",
51
- "@blocklet/launcher-ux": "2.3.52",
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
- "@blocklet/payment-react": "^1.14.34",
53
+ "@blocklet/payment-react": "^1.15.4",
54
54
  "@emotion/react": "^11.13.3",
55
55
  "@emotion/styled": "^11.13.0",
56
56
  "@mui/icons-material": "^5.16.7",
57
57
  "@mui/lab": "^5.0.0-alpha.173",
58
58
  "@mui/material": "^5.16.7",
59
- "@ocap/util": "^1.18.132",
59
+ "@ocap/util": "^1.18.135",
60
60
  "@splidejs/react-splide": "^0.7.12",
61
61
  "@splidejs/splide": "^4.1.4",
62
62
  "@splidejs/splide-extension-grid": "^0.4.1",
63
63
  "@stripe/react-stripe-js": "^1.16.5",
64
64
  "@stripe/stripe-js": "^1.54.2",
65
65
  "ahooks": "^3.8.1",
66
- "axios": "^0.27.2",
66
+ "axios": "^1.7.7",
67
67
  "dsbridge": "^3.1.4",
68
68
  "flat": "^5.0.2",
69
69
  "js-cookie": "^3.0.5",
@@ -75,12 +75,12 @@
75
75
  "moment": "^2.30.1",
76
76
  "prop-types": "^15.8.1",
77
77
  "react-lottie-player": "^1.5.6",
78
- "react-router-dom": "^6.26.1",
78
+ "react-router-dom": "^6.26.2",
79
79
  "react-use": "^17.5.1",
80
80
  "url-join": "^4.0.1"
81
81
  },
82
82
  "devDependencies": {
83
- "@babel/cli": "^7.24.8",
83
+ "@babel/cli": "^7.25.6",
84
84
  "@babel/core": "^7.25.2",
85
85
  "@babel/preset-env": "^7.25.4",
86
86
  "@babel/preset-react": "^7.24.7",
@@ -105,5 +105,5 @@
105
105
  "require": "./lib/locales/index.js"
106
106
  }
107
107
  },
108
- "gitHead": "3b510686ef692c377b8e1e837e420b2fefcfca9d"
108
+ "gitHead": "e1b9d6d3607e9b17a8b59c1f67df8e059a6d8c16"
109
109
  }