@next-core/brick-kit 2.103.7 → 2.103.8
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/CHANGELOG.md +32 -145
- package/dist/index.bundle.js +50 -0
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +50 -0
- package/dist/index.esm.js.map +1 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -3,282 +3,169 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [2.103.
|
|
6
|
+
## [2.103.8](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.103.7...@next-core/brick-kit@2.103.8) (2022-01-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @next-core/brick-kit
|
|
7
9
|
|
|
8
10
|
|
|
9
|
-
### Bug Fixes
|
|
10
11
|
|
|
11
|
-
* fix the bug that the svg files cannot be displayed completely when in the same page ([e8f26b1](https://github.com/easyops-cn/next-core/commit/e8f26b1b018e94b8cddb6f180fe8e74282e7d876)), closes [Refs#INSTANCE-2161](https://github.com/Refs/issues/INSTANCE-2161)
|
|
12
12
|
|
|
13
13
|
|
|
14
|
+
## [2.103.7](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.103.6...@next-core/brick-kit@2.103.7) (2022-01-27)
|
|
14
15
|
|
|
16
|
+
### Bug Fixes
|
|
15
17
|
|
|
18
|
+
- fix the bug that the svg files cannot be displayed completely when in the same page ([e8f26b1](https://github.com/easyops-cn/next-core/commit/e8f26b1b018e94b8cddb6f180fe8e74282e7d876)), closes [Refs#INSTANCE-2161](https://github.com/Refs/issues/INSTANCE-2161)
|
|
16
19
|
|
|
17
20
|
## [2.103.6](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.103.5...@next-core/brick-kit@2.103.6) (2022-01-26)
|
|
18
21
|
|
|
19
22
|
**Note:** Version bump only for package @next-core/brick-kit
|
|
20
23
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
24
|
## [2.103.5](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.103.4...@next-core/brick-kit@2.103.5) (2022-01-26)
|
|
26
25
|
|
|
27
26
|
**Note:** Version bump only for package @next-core/brick-kit
|
|
28
27
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
28
|
## [2.103.4](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.103.3...@next-core/brick-kit@2.103.4) (2022-01-21)
|
|
34
29
|
|
|
35
30
|
**Note:** Version bump only for package @next-core/brick-kit
|
|
36
31
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
32
|
## [2.103.3](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.103.2...@next-core/brick-kit@2.103.3) (2022-01-20)
|
|
42
33
|
|
|
43
|
-
|
|
44
34
|
### Bug Fixes
|
|
45
35
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
36
|
+
- fix history push in standalone apps ([65219cf](https://github.com/easyops-cn/next-core/commit/65219cf133d2166ca9b3c612ff1a81be71bb069b))
|
|
51
37
|
|
|
52
38
|
## [2.103.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.103.1...@next-core/brick-kit@2.103.2) (2022-01-13)
|
|
53
39
|
|
|
54
40
|
**Note:** Version bump only for package @next-core/brick-kit
|
|
55
41
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
42
|
## [2.103.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.103.0...@next-core/brick-kit@2.103.1) (2022-01-13)
|
|
61
43
|
|
|
62
44
|
**Note:** Version bump only for package @next-core/brick-kit
|
|
63
45
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
46
|
# [2.103.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.102.1...@next-core/brick-kit@2.103.0) (2022-01-12)
|
|
69
47
|
|
|
70
|
-
|
|
71
48
|
### Bug Fixes
|
|
72
49
|
|
|
73
|
-
|
|
74
|
-
|
|
50
|
+
- refine theme ([7d6480b](https://github.com/easyops-cn/next-core/commit/7d6480bffd738676a0c04865991c6cad796b7379))
|
|
75
51
|
|
|
76
52
|
### Features
|
|
77
53
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
54
|
+
- add button style ([ebf1377](https://github.com/easyops-cn/next-core/commit/ebf1377805306600dbf96a6c05164f295d04f9af))
|
|
55
|
+
- chart style ([8d3f04b](https://github.com/easyops-cn/next-core/commit/8d3f04b342f79f62c65696ef82337b06d881aafd))
|
|
84
56
|
|
|
85
57
|
## [2.102.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.102.0...@next-core/brick-kit@2.102.1) (2022-01-12)
|
|
86
58
|
|
|
87
|
-
|
|
88
59
|
### Bug Fixes
|
|
89
60
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
61
|
+
- do not redirect to login page while NO_AUTH_GUARD is enabled ([02b69b1](https://github.com/easyops-cn/next-core/commit/02b69b19b98b1ba4aa4e0d2405d28444f3c05def))
|
|
95
62
|
|
|
96
63
|
# [2.102.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.101.2...@next-core/brick-kit@2.102.0) (2022-01-07)
|
|
97
64
|
|
|
98
|
-
|
|
99
65
|
### Features
|
|
100
66
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
67
|
+
- **FlowApi:** update size-limit.js ([7b61a08](https://github.com/easyops-cn/next-core/commit/7b61a088ed6e0f2bd7ecd3bcb80fd2fa8b918bc7))
|
|
68
|
+
- **FlowApi:** update unit test ([059f6b6](https://github.com/easyops-cn/next-core/commit/059f6b612d5e90cb5facaa6285c8340f046ce4b0))
|
|
69
|
+
- **FlowApi:** update unit test ([a4bcc9d](https://github.com/easyops-cn/next-core/commit/a4bcc9d654039616a3889c142e5bd37c8ee987bc))
|
|
70
|
+
- **FlowApi:** useMock in flow api ([05a5751](https://github.com/easyops-cn/next-core/commit/05a5751e33aedfaae73c80a040081c2b4d2f2a73))
|
|
109
71
|
|
|
110
72
|
## [2.101.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.101.1...@next-core/brick-kit@2.101.2) (2022-01-06)
|
|
111
73
|
|
|
112
|
-
|
|
113
74
|
### Bug Fixes
|
|
114
75
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
76
|
+
- dark theme refine ([db6d4e5](https://github.com/easyops-cn/next-core/commit/db6d4e58c98779329e9dad99ee0fcde22631e44b))
|
|
120
77
|
|
|
121
78
|
## [2.101.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.101.0...@next-core/brick-kit@2.101.1) (2022-01-05)
|
|
122
79
|
|
|
123
|
-
|
|
124
80
|
### Bug Fixes
|
|
125
81
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
82
|
+
- fix `_.isEmpty(QUERY)` ([3202979](https://github.com/easyops-cn/next-core/commit/3202979a524a512423b9ce1f698c265ce650755c))
|
|
131
83
|
|
|
132
84
|
# [2.101.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.100.0...@next-core/brick-kit@2.101.0) (2022-01-05)
|
|
133
85
|
|
|
134
|
-
|
|
135
86
|
### Bug Fixes
|
|
136
87
|
|
|
137
|
-
|
|
138
|
-
|
|
88
|
+
- fix building ([ad86f04](https://github.com/easyops-cn/next-core/commit/ad86f04310b8264a3a22a5296e71beff620978db))
|
|
139
89
|
|
|
140
90
|
### Features
|
|
141
91
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
92
|
+
- apply color theme ([0998f5f](https://github.com/easyops-cn/next-core/commit/0998f5fc1e662cde1eeedb7bc30bd7a5e1e8fe85))
|
|
93
|
+
- support custom style ([4cdbbf5](https://github.com/easyops-cn/next-core/commit/4cdbbf524bf89bb402d945694c29066ce78b4f4e))
|
|
148
94
|
|
|
149
95
|
# [2.100.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.99.2...@next-core/brick-kit@2.100.0) (2022-01-04)
|
|
150
96
|
|
|
151
|
-
|
|
152
97
|
### Features
|
|
153
98
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
99
|
+
- **MockRegistry:** remove version in mock url ([e291d52](https://github.com/easyops-cn/next-core/commit/e291d52626e5565a9ebd8cf6370cb6cf7dd33903))
|
|
100
|
+
- **MockRegistry:** update RegExp ([423be36](https://github.com/easyops-cn/next-core/commit/423be36023068c1ebf07215d15117af4299ec039))
|
|
160
101
|
|
|
161
102
|
## [2.99.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.99.1...@next-core/brick-kit@2.99.2) (2022-01-04)
|
|
162
103
|
|
|
163
|
-
|
|
164
104
|
### Bug Fixes
|
|
165
105
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
106
|
+
- **Router:** render call scrollTo before life cycle handler ([92279de](https://github.com/easyops-cn/next-core/commit/92279de483cf623a7bc116d2813ff86fef29695d))
|
|
171
107
|
|
|
172
108
|
## [2.99.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.99.0...@next-core/brick-kit@2.99.1) (2021-12-31)
|
|
173
109
|
|
|
174
110
|
**Note:** Version bump only for package @next-core/brick-kit
|
|
175
111
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
112
|
# [2.99.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.98.0...@next-core/brick-kit@2.99.0) (2021-12-31)
|
|
181
113
|
|
|
182
|
-
|
|
183
114
|
### Features
|
|
184
115
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
116
|
+
- dark theme ([c6709a7](https://github.com/easyops-cn/next-core/commit/c6709a7a30a8860a6cb3e0245967c9bcfd5e78f5))
|
|
190
117
|
|
|
191
118
|
# [2.98.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.97.0...@next-core/brick-kit@2.98.0) (2021-12-30)
|
|
192
119
|
|
|
193
|
-
|
|
194
120
|
### Features
|
|
195
121
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
122
|
+
- support dark-v2 ([0434b7e](https://github.com/easyops-cn/next-core/commit/0434b7e34c441c28ceb75ba753f46e3cd5ccc5c8))
|
|
201
123
|
|
|
202
124
|
# [2.97.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.96.0...@next-core/brick-kit@2.97.0) (2021-12-29)
|
|
203
125
|
|
|
204
|
-
|
|
205
126
|
### Bug Fixes
|
|
206
127
|
|
|
207
|
-
|
|
208
|
-
|
|
128
|
+
- fix accessing not-existed property of QUERY ([edcf0b1](https://github.com/easyops-cn/next-core/commit/edcf0b168e27f7b89ba2debde5a779c89500a0dd))
|
|
209
129
|
|
|
210
130
|
### Features
|
|
211
131
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
132
|
+
- **MockRegistry:** update mocks data ([10fed90](https://github.com/easyops-cn/next-core/commit/10fed9053e62af9cc52d994772343d629f45afac))
|
|
217
133
|
|
|
218
134
|
# [2.96.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.95.1...@next-core/brick-kit@2.96.0) (2021-12-29)
|
|
219
135
|
|
|
220
|
-
|
|
221
136
|
### Features
|
|
222
137
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
138
|
+
- some adjustment for EasyopsEmpty's empty image ([cc5af32](https://github.com/easyops-cn/next-core/commit/cc5af32a93d7497ff236c2189e730a3f771d3866)), closes [Refs#MONITOR-2681](https://github.com/Refs/issues/MONITOR-2681)
|
|
228
139
|
|
|
229
140
|
## [2.95.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.95.0...@next-core/brick-kit@2.95.1) (2021-12-28)
|
|
230
141
|
|
|
231
142
|
**Note:** Version bump only for package @next-core/brick-kit
|
|
232
143
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
144
|
# [2.95.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.94.0...@next-core/brick-kit@2.95.0) (2021-12-28)
|
|
238
145
|
|
|
239
|
-
|
|
240
146
|
### Bug Fixes
|
|
241
147
|
|
|
242
|
-
|
|
243
|
-
|
|
148
|
+
- refine globals display in devtools ([6f42a1a](https://github.com/easyops-cn/next-core/commit/6f42a1ad37979a2dd6cdaabea8a55518131b35a9))
|
|
244
149
|
|
|
245
150
|
### Features
|
|
246
151
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
152
|
+
- refine storyboard functions and expressions ([6626c61](https://github.com/easyops-cn/next-core/commit/6626c61bd910864daaa81be946f765630cfb8103))
|
|
252
153
|
|
|
253
154
|
# [2.94.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.93.1...@next-core/brick-kit@2.94.0) (2021-12-24)
|
|
254
155
|
|
|
255
|
-
|
|
256
156
|
### Features
|
|
257
157
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
158
|
+
- support request use mock ([#1293](https://github.com/easyops-cn/next-core/issues/1293)) ([9989c66](https://github.com/easyops-cn/next-core/commit/9989c663f1e5340c68853d4b158dc169484a7e1a))
|
|
263
159
|
|
|
264
160
|
## [2.93.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.93.0...@next-core/brick-kit@2.93.1) (2021-12-23)
|
|
265
161
|
|
|
266
162
|
**Note:** Version bump only for package @next-core/brick-kit
|
|
267
163
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
164
|
# [2.93.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.92.2...@next-core/brick-kit@2.93.0) (2021-12-17)
|
|
273
165
|
|
|
274
|
-
|
|
275
166
|
### Features
|
|
276
167
|
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
168
|
+
- add new constant BASE_URL in evaluations ([80451fe](https://github.com/easyops-cn/next-core/commit/80451fe3c9e6f80488e207f6c164db2ace7191ac))
|
|
282
169
|
|
|
283
170
|
## [2.92.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.92.1...@next-core/brick-kit@2.92.2) (2021-12-15)
|
|
284
171
|
|
package/dist/index.bundle.js
CHANGED
|
@@ -228,6 +228,37 @@
|
|
|
228
228
|
|
|
229
229
|
return 0;
|
|
230
230
|
}
|
|
231
|
+
var validate = v => typeof v === 'string' && /^[v\d]/.test(v) && semver.test(v);
|
|
232
|
+
var compare = (v1, v2, operator) => {
|
|
233
|
+
// validate input operator
|
|
234
|
+
assertValidOperator(operator); // since result of compareVersions can only be -1 or 0 or 1
|
|
235
|
+
// a simple map can be used to replace switch
|
|
236
|
+
|
|
237
|
+
var res = compareVersions(v1, v2);
|
|
238
|
+
return operatorResMap[operator].includes(res);
|
|
239
|
+
};
|
|
240
|
+
var satisfies = (v, r) => {
|
|
241
|
+
// if no range operator then "="
|
|
242
|
+
var m = r.match(/^([<>=~^]+)/);
|
|
243
|
+
var op = m ? m[1] : '='; // if gt/lt/eq then operator compare
|
|
244
|
+
|
|
245
|
+
if (op !== '^' && op !== '~') return compare(v, r, op); // else range of either "~" or "^" is assumed
|
|
246
|
+
|
|
247
|
+
var [v1, v2, v3] = validateAndParse(v);
|
|
248
|
+
var [r1, r2, r3] = validateAndParse(r);
|
|
249
|
+
if (compareStrings(v1, r1) !== 0) return false;
|
|
250
|
+
|
|
251
|
+
if (op === '^') {
|
|
252
|
+
return compareSegments([v2, v3], [r2, r3]) >= 0;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
if (compareStrings(v2, r2) !== 0) return false;
|
|
256
|
+
return compareStrings(v3, r3) >= 0;
|
|
257
|
+
}; // export CJS style for parity
|
|
258
|
+
|
|
259
|
+
compareVersions.validate = validate;
|
|
260
|
+
compareVersions.compare = compare;
|
|
261
|
+
compareVersions.sastisfies = satisfies;
|
|
231
262
|
var semver = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;
|
|
232
263
|
|
|
233
264
|
var validateAndParse = v => {
|
|
@@ -271,6 +302,25 @@
|
|
|
271
302
|
return 0;
|
|
272
303
|
};
|
|
273
304
|
|
|
305
|
+
var operatorResMap = {
|
|
306
|
+
'>': [1],
|
|
307
|
+
'>=': [0, 1],
|
|
308
|
+
'=': [0],
|
|
309
|
+
'<=': [-1, 0],
|
|
310
|
+
'<': [-1]
|
|
311
|
+
};
|
|
312
|
+
var allowedOperators = Object.keys(operatorResMap);
|
|
313
|
+
|
|
314
|
+
var assertValidOperator = op => {
|
|
315
|
+
if (typeof op !== 'string') {
|
|
316
|
+
throw new TypeError("Invalid operator type, expected string but got ".concat(typeof op));
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
if (allowedOperators.indexOf(op) === -1) {
|
|
320
|
+
throw new Error("Invalid operator, expected one of ".concat(allowedOperators.join('|')));
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
|
|
274
324
|
var brickTemplateRegistry = new Map();
|
|
275
325
|
function registerBrickTemplate(name, factory) {
|
|
276
326
|
if (brickTemplateRegistry.has(name)) {
|