@blocklet/launcher-layout 2.0.26 → 2.0.28
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/nav.js +4 -3
- package/package.json +7 -7
package/lib/nav.js
CHANGED
|
@@ -30,7 +30,8 @@ function Nav(_ref) {
|
|
|
30
30
|
getStepStatus,
|
|
31
31
|
canBackToStep
|
|
32
32
|
} = (0, _step.useStepContext)();
|
|
33
|
-
const
|
|
33
|
+
const name = (blockletMeta === null || blockletMeta === void 0 ? void 0 : blockletMeta.title) || (blockletMeta === null || blockletMeta === void 0 ? void 0 : blockletMeta.name); // 'name' 是兼容字段
|
|
34
|
+
const showSkeleton = useOfSkeleton ? !blockletMeta || !name : false;
|
|
34
35
|
const getNodeClassName = (step, index) => {
|
|
35
36
|
const classNameList = ['step-block'];
|
|
36
37
|
const status = getStepStatus(step.key);
|
|
@@ -71,8 +72,8 @@ function Nav(_ref) {
|
|
|
71
72
|
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(AppLink, {
|
|
72
73
|
target: "_blank",
|
|
73
74
|
href: (0, _urlJoin.default)(blockletMeta.registryUrl || '', "/blocklets/".concat(blockletMeta.did)),
|
|
74
|
-
title:
|
|
75
|
-
children:
|
|
75
|
+
title: name,
|
|
76
|
+
children: name || /*#__PURE__*/(0, _jsxRuntime.jsx)(_Skeleton.default, {
|
|
76
77
|
variant: "text",
|
|
77
78
|
width: 150
|
|
78
79
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/launcher-layout",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.28",
|
|
4
4
|
"description": "Common ux components of launcher",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"react": ">=18.1.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@arcblock/did-connect": "2.5.
|
|
41
|
-
"@arcblock/icons": "^2.5.
|
|
42
|
-
"@arcblock/ux": "2.5.
|
|
43
|
-
"@blocklet/launcher-ux": "2.0.
|
|
40
|
+
"@arcblock/did-connect": "^2.5.23",
|
|
41
|
+
"@arcblock/icons": "^2.5.23",
|
|
42
|
+
"@arcblock/ux": "^2.5.23",
|
|
43
|
+
"@blocklet/launcher-ux": "2.0.28",
|
|
44
44
|
"@blocklet/meta": "^1.16.3",
|
|
45
45
|
"@emotion/react": "^11.10.6",
|
|
46
46
|
"@emotion/styled": "^11.10.6",
|
|
47
47
|
"@mui/icons-material": "^5.11.16",
|
|
48
|
-
"@mui/material": "^5.
|
|
48
|
+
"@mui/material": "^5.12.0",
|
|
49
49
|
"lodash": "^4.17.21",
|
|
50
50
|
"prop-types": "^15.8.1",
|
|
51
51
|
"rehype-react": "^7.1.2",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"@storybook/react": "^6.5.16",
|
|
60
60
|
"babel-plugin-inline-react-svg": "^2.0.2"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "129a9d45af96a1d389ee4f692c21c339f0b859f5"
|
|
63
63
|
}
|