@abtnode/ux 1.16.8-beta-ca58a421 → 1.16.8-beta-0c0c5eb2
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.
|
@@ -550,7 +550,7 @@ function AddComponent(_ref2) {
|
|
|
550
550
|
if (config) {
|
|
551
551
|
doc = _objectSpread(_objectSpread({}, doc), {}, {
|
|
552
552
|
pathPrefix: config.mountPoint,
|
|
553
|
-
title:
|
|
553
|
+
title: title || '',
|
|
554
554
|
componentName: config.meta.name,
|
|
555
555
|
// use history's environments
|
|
556
556
|
hasEnvironmentsStep: false
|
|
@@ -824,22 +824,6 @@ function AddComponent(_ref2) {
|
|
|
824
824
|
value: (0, _util2.formatMountPoint)(pathPrefix)
|
|
825
825
|
}));
|
|
826
826
|
}
|
|
827
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextField.default, {
|
|
828
|
-
label: t('common.title'),
|
|
829
|
-
autoComplete: "off",
|
|
830
|
-
variant: "outlined",
|
|
831
|
-
fullWidth: true,
|
|
832
|
-
style: {
|
|
833
|
-
marginBottom: 32
|
|
834
|
-
},
|
|
835
|
-
margin: "normal",
|
|
836
|
-
value: params.title,
|
|
837
|
-
onChange: e => {
|
|
838
|
-
const title = e.target.value;
|
|
839
|
-
setParams(_objectSpread(_objectSpread({}, params), {}, {
|
|
840
|
-
title
|
|
841
|
-
}));
|
|
842
|
-
}
|
|
843
827
|
}), !!error && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Alert.default, {
|
|
844
828
|
type: "error",
|
|
845
829
|
style: {
|
|
@@ -51,24 +51,6 @@ function ComponentSetting(_ref) {
|
|
|
51
51
|
if (blocklet.status === 'unknown' && (0, _util.isInstalling)(blocklet.status)) {
|
|
52
52
|
return null;
|
|
53
53
|
}
|
|
54
|
-
const onSubmitTitle = async value => {
|
|
55
|
-
setLoading(true);
|
|
56
|
-
try {
|
|
57
|
-
setLoading(false);
|
|
58
|
-
await api.updateComponentTitle({
|
|
59
|
-
input: {
|
|
60
|
-
rootDid,
|
|
61
|
-
did: blocklet.meta.did,
|
|
62
|
-
title: value
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
} catch (err) {
|
|
66
|
-
setLoading(false);
|
|
67
|
-
err.message = (0, _util.formatError)(err);
|
|
68
|
-
_toast.default.error(err.message);
|
|
69
|
-
throw err;
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
54
|
const onSubmitMountPoint = async value => {
|
|
73
55
|
setLoading(true);
|
|
74
56
|
try {
|
|
@@ -99,19 +81,9 @@ function ComponentSetting(_ref) {
|
|
|
99
81
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Div, _objectSpread(_objectSpread({
|
|
100
82
|
component: "div"
|
|
101
83
|
}, rest), {}, {
|
|
102
|
-
children: /*#__PURE__*/(0, _jsxRuntime.
|
|
84
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
|
|
103
85
|
mt: 3,
|
|
104
|
-
children:
|
|
105
|
-
label: t('common.title'),
|
|
106
|
-
style: {
|
|
107
|
-
marginTop: -24
|
|
108
|
-
},
|
|
109
|
-
disabled: loading || disabled,
|
|
110
|
-
loading: loading,
|
|
111
|
-
required: true,
|
|
112
|
-
initialValue: blocklet.meta.title,
|
|
113
|
-
onSubmit: onSubmitTitle
|
|
114
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_formTextInput.default, {
|
|
86
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_formTextInput.default, {
|
|
115
87
|
label: t('blocklet.component.mountPoint'),
|
|
116
88
|
style: {
|
|
117
89
|
marginTop: -24
|
|
@@ -124,7 +96,7 @@ function ComponentSetting(_ref) {
|
|
|
124
96
|
onChange: handleMountPointChange,
|
|
125
97
|
helperText: mountPointHelperText,
|
|
126
98
|
formatterBeforeSubmit: value => (0, _urlPathFriendly.default)(value)
|
|
127
|
-
})
|
|
99
|
+
})
|
|
128
100
|
})
|
|
129
101
|
}));
|
|
130
102
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/ux",
|
|
3
|
-
"version": "1.16.8-beta-
|
|
3
|
+
"version": "1.16.8-beta-0c0c5eb2",
|
|
4
4
|
"description": "UX components shared across abtnode packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@abtnode/auth": "1.16.8-beta-
|
|
26
|
-
"@abtnode/constant": "1.16.8-beta-
|
|
27
|
-
"@abtnode/util": "1.16.8-beta-
|
|
25
|
+
"@abtnode/auth": "1.16.8-beta-0c0c5eb2",
|
|
26
|
+
"@abtnode/constant": "1.16.8-beta-0c0c5eb2",
|
|
27
|
+
"@abtnode/util": "1.16.8-beta-0c0c5eb2",
|
|
28
28
|
"@ahooksjs/use-url-state": "^3.5.1",
|
|
29
29
|
"@arcblock/did": "^1.18.78",
|
|
30
30
|
"@arcblock/did-connect": "^2.5.37",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"@arcblock/react-hooks": "^2.5.37",
|
|
34
34
|
"@arcblock/terminal": "^2.5.37",
|
|
35
35
|
"@arcblock/ux": "^2.5.37",
|
|
36
|
-
"@blocklet/constant": "1.16.8-beta-
|
|
36
|
+
"@blocklet/constant": "1.16.8-beta-0c0c5eb2",
|
|
37
37
|
"@blocklet/launcher-layout": "2.0.39",
|
|
38
38
|
"@blocklet/list": "^0.11.24",
|
|
39
|
-
"@blocklet/meta": "1.16.8-beta-
|
|
39
|
+
"@blocklet/meta": "1.16.8-beta-0c0c5eb2",
|
|
40
40
|
"@blocklet/ui-react": "^2.5.37",
|
|
41
41
|
"@emotion/react": "^11.10.4",
|
|
42
42
|
"@emotion/styled": "^11.10.4",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"@babel/preset-react": "^7.18.6",
|
|
93
93
|
"babel-plugin-inline-react-svg": "^1.1.2"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "0d8ec3154caf670770284dbdabc61a5f4e8b205f"
|
|
96
96
|
}
|