@blocklet/launcher-workflow 2.5.8 → 2.5.10

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.
@@ -398,13 +398,20 @@ export default function AppSuccessDisplay({
398
398
  minWidth: 220
399
399
  },
400
400
  color: "primary",
401
- onClick: () => window.open(withQuery(joinURL(getBaseURL(), `/api/launches/${sessionId}/redirect/dashboard`), {
402
- appUrl,
403
- appDid: blockletInfo.appPid,
404
- ownerDid: blockletInfo.ownerDid,
405
- locale,
406
- theme: theme.palette.mode
407
- }), '_blank'),
401
+ onClick: () => {
402
+ const prefix = blockletInfo.prefix.replace(/\//g, '');
403
+ const splitUrl = appUrl.split('/');
404
+ if (splitUrl[splitUrl.length - 1] === prefix) {
405
+ splitUrl.pop();
406
+ }
407
+ window.open(withQuery(joinURL(getBaseURL(), `/api/launches/${sessionId}/redirect/dashboard`), {
408
+ appUrl: splitUrl.join('/'),
409
+ appDid: blockletInfo.appPid,
410
+ ownerDid: blockletInfo.ownerDid,
411
+ locale,
412
+ theme: theme.palette.mode
413
+ }), '_blank');
414
+ },
408
415
  startIcon: /*#__PURE__*/_jsx(DashboardIcon, {
409
416
  sx: {
410
417
  fontSize: 24,
package/es/locales/en.js CHANGED
@@ -129,7 +129,7 @@ export default {
129
129
  noAppUrl: 'No accessible URL found, please contact the administrator'
130
130
  },
131
131
  ownerAccount: 'Owner Account:',
132
- ownerAccountDescription: 'This account will be used to log in and manage your Blocklet application.'
132
+ ownerAccountDescription: 'This account will be used to login and manage your Blocklet application.'
133
133
  },
134
134
  loading: {
135
135
  completed: 'completed',
@@ -409,13 +409,20 @@ function AppSuccessDisplay(_ref) {
409
409
  minWidth: 220
410
410
  },
411
411
  color: "primary",
412
- onClick: () => window.open((0, _ufo.withQuery)((0, _ufo.joinURL)((0, _util.getBaseURL)(), "/api/launches/".concat(sessionId, "/redirect/dashboard")), {
413
- appUrl,
414
- appDid: blockletInfo.appPid,
415
- ownerDid: blockletInfo.ownerDid,
416
- locale,
417
- theme: theme.palette.mode
418
- }), '_blank'),
412
+ onClick: () => {
413
+ const prefix = blockletInfo.prefix.replace(/\//g, '');
414
+ const splitUrl = appUrl.split('/');
415
+ if (splitUrl[splitUrl.length - 1] === prefix) {
416
+ splitUrl.pop();
417
+ }
418
+ window.open((0, _ufo.withQuery)((0, _ufo.joinURL)((0, _util.getBaseURL)(), "/api/launches/".concat(sessionId, "/redirect/dashboard")), {
419
+ appUrl: splitUrl.join('/'),
420
+ appDid: blockletInfo.appPid,
421
+ ownerDid: blockletInfo.ownerDid,
422
+ locale,
423
+ theme: theme.palette.mode
424
+ }), '_blank');
425
+ },
419
426
  startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Dashboard.default, {
420
427
  sx: {
421
428
  fontSize: 24,
package/lib/locales/en.js CHANGED
@@ -135,7 +135,7 @@ var _default = exports.default = {
135
135
  noAppUrl: 'No accessible URL found, please contact the administrator'
136
136
  },
137
137
  ownerAccount: 'Owner Account:',
138
- ownerAccountDescription: 'This account will be used to log in and manage your Blocklet application.'
138
+ ownerAccountDescription: 'This account will be used to login and manage your Blocklet application.'
139
139
  },
140
140
  loading: {
141
141
  completed: 'completed',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/launcher-workflow",
3
- "version": "2.5.8",
3
+ "version": "2.5.10",
4
4
  "description": "Purchase components for Launcher UI",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -43,22 +43,22 @@
43
43
  "dependencies": {
44
44
  "@abtnode/constant": "^1.16.48",
45
45
  "@abtnode/util": "^1.16.48",
46
- "@arcblock/did-connect-react": "^3.1.5",
47
- "@arcblock/icons": "^3.1.5",
48
- "@arcblock/license": "^3.1.5",
49
- "@arcblock/react-hooks": "^3.1.5",
50
- "@arcblock/ux": "^3.1.5",
51
- "@blocklet/launcher-layout": "^3.1.5",
52
- "@blocklet/launcher-util": "2.5.8",
53
- "@blocklet/launcher-ux": "2.5.8",
46
+ "@arcblock/did-connect-react": "^3.1.15",
47
+ "@arcblock/icons": "^3.1.15",
48
+ "@arcblock/license": "^3.1.15",
49
+ "@arcblock/react-hooks": "^3.1.15",
50
+ "@arcblock/ux": "^3.1.15",
51
+ "@blocklet/launcher-layout": "^3.1.15",
52
+ "@blocklet/launcher-util": "2.5.10",
53
+ "@blocklet/launcher-ux": "2.5.10",
54
54
  "@blocklet/payment": "^1.14.8",
55
- "@blocklet/payment-react": "^1.19.15",
55
+ "@blocklet/payment-react": "^1.19.17",
56
56
  "@emotion/react": "^11.14.0",
57
57
  "@emotion/styled": "^11.14.1",
58
58
  "@mui/icons-material": "^7.2.0",
59
59
  "@mui/lab": "^7.0.0-beta.14",
60
60
  "@mui/material": "^7.2.0",
61
- "@ocap/util": "^1.21.2",
61
+ "@ocap/util": "^1.21.3",
62
62
  "@splidejs/react-splide": "^0.7.12",
63
63
  "@splidejs/splide": "^4.1.4",
64
64
  "@splidejs/splide-extension-grid": "^0.4.1",
@@ -109,5 +109,5 @@
109
109
  "require": "./lib/locales/index.js"
110
110
  }
111
111
  },
112
- "gitHead": "1c651ce083a2861cd2e2ecd2c635a63489f5dd30"
112
+ "gitHead": "557ea82bd226819512b888e179e458a765d8779e"
113
113
  }