@abtnode/ux 1.8.62 → 1.8.63-beta-b71f5f80

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.
@@ -90,8 +90,13 @@ function ComponentEnvironment(_ref) {
90
90
  }
91
91
  const configs = [newData];
92
92
  if (newData.key !== oldData.key) {
93
+ if (!newData.custom) {
94
+ _toast.default.error('Only key of custom env can be changed');
95
+ return;
96
+ }
93
97
  configs.push({
94
- key: oldData.key
98
+ key: oldData.key,
99
+ custom: true
95
100
  });
96
101
  }
97
102
  try {
@@ -113,11 +118,16 @@ function ComponentEnvironment(_ref) {
113
118
  _toast.default.error(t('blocklet.config.environment.deleteForbidden'));
114
119
  return;
115
120
  }
121
+ if (!data.custom) {
122
+ _toast.default.error('Only key of custom env can be changed');
123
+ return;
124
+ }
116
125
  const result = await node.api.configBlocklet({
117
126
  input: {
118
127
  did: dids,
119
128
  configs: [{
120
- key: data.key
129
+ key: data.key,
130
+ custom: true
121
131
  }]
122
132
  }
123
133
  });
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.8.62",
6
+ "version": "1.8.63-beta-b71f5f80",
7
7
  "description": "UX components shared across abtnode packages",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -21,18 +21,18 @@
21
21
  "author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
22
22
  "license": "MIT",
23
23
  "dependencies": {
24
- "@abtnode/auth": "1.8.62",
25
- "@abtnode/constant": "1.8.62",
26
- "@abtnode/util": "1.8.62",
24
+ "@abtnode/auth": "1.8.63-beta-b71f5f80",
25
+ "@abtnode/constant": "1.8.63-beta-b71f5f80",
26
+ "@abtnode/util": "1.8.63-beta-b71f5f80",
27
27
  "@arcblock/did-connect": "^2.4.65",
28
28
  "@arcblock/did-motif": "^1.1.10",
29
29
  "@arcblock/icons": "^2.4.65",
30
30
  "@arcblock/terminal": "^2.4.65",
31
31
  "@arcblock/ux": "^2.4.65",
32
- "@blocklet/constant": "1.8.62",
32
+ "@blocklet/constant": "1.8.63-beta-b71f5f80",
33
33
  "@blocklet/launcher-layout": "^1.9.38",
34
34
  "@blocklet/list": "^0.10.47",
35
- "@blocklet/meta": "1.8.62",
35
+ "@blocklet/meta": "1.8.63-beta-b71f5f80",
36
36
  "@blocklet/ui-react": "^2.4.65",
37
37
  "@emotion/react": "^11.10.4",
38
38
  "@emotion/styled": "^11.10.4",
@@ -86,5 +86,5 @@
86
86
  "@babel/preset-react": "^7.18.6",
87
87
  "babel-plugin-inline-react-svg": "^1.1.2"
88
88
  },
89
- "gitHead": "ea6ab48149eb9e1157ef37ab1505fa36a9ce598f"
89
+ "gitHead": "ad50b6425a056b2db12b07283d0c08af62532c64"
90
90
  }