@next-core/brick-kit 2.92.1 → 2.94.0
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 +41 -90
- package/dist/index.bundle.js +46 -61
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +46 -62
- package/dist/index.esm.js.map +1 -1
- package/dist/types/BrickAsComponent.d.ts.map +1 -1
- package/dist/types/core/Kernel.d.ts +0 -6
- package/dist/types/core/Kernel.d.ts.map +1 -1
- package/dist/types/core/MockRegistry.d.ts +6 -0
- package/dist/types/core/MockRegistry.d.ts.map +1 -0
- package/dist/types/core/Router.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/internal/evaluate.d.ts.map +1 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,200 +3,151 @@
|
|
|
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
|
-
|
|
6
|
+
# [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)
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
###
|
|
9
|
+
### Features
|
|
10
10
|
|
|
11
|
-
*
|
|
11
|
+
* support request use mock ([#1293](https://github.com/easyops-cn/next-core/issues/1293)) ([9989c66](https://github.com/easyops-cn/next-core/commit/9989c663f1e5340c68853d4b158dc169484a7e1a))
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
## [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)
|
|
18
18
|
|
|
19
|
+
**Note:** Version bump only for package @next-core/brick-kit
|
|
19
20
|
|
|
20
|
-
### Features
|
|
21
21
|
|
|
22
|
-
* expose http code ([#1227](https://github.com/easyops-cn/next-core/issues/1227)) ([9e22deb](https://github.com/easyops-cn/next-core/commit/9e22deb2dc27b7d907bb782790fa4a59960ccc82))
|
|
23
22
|
|
|
24
23
|
|
|
25
24
|
|
|
25
|
+
# [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)
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
### Features
|
|
29
29
|
|
|
30
|
+
* add new constant BASE_URL in evaluations ([80451fe](https://github.com/easyops-cn/next-core/commit/80451fe3c9e6f80488e207f6c164db2ace7191ac))
|
|
30
31
|
|
|
31
|
-
### Bug Fixes
|
|
32
32
|
|
|
33
|
-
* add icons field ([7415b3f](https://github.com/easyops-cn/next-core/commit/7415b3ffaafe109c3bd555878a1d5ab2cd117183))
|
|
34
33
|
|
|
35
34
|
|
|
36
35
|
|
|
36
|
+
## [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)
|
|
37
37
|
|
|
38
|
+
### Bug Fixes
|
|
38
39
|
|
|
39
|
-
|
|
40
|
+
- pass data through tpl in useBrick ([3b6538c](https://github.com/easyops-cn/next-core/commit/3b6538cd37b8267f6a279f3b14c3a2fdefcb2ba9))
|
|
40
41
|
|
|
42
|
+
## [2.92.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.92.0...@next-core/brick-kit@2.92.1) (2021-12-06)
|
|
41
43
|
|
|
42
44
|
### Bug Fixes
|
|
43
45
|
|
|
44
|
-
|
|
46
|
+
- fix empty image ([f941e83](https://github.com/easyops-cn/next-core/commit/f941e835cf42b4a0a94418004c19b0c37b3d24e0))
|
|
45
47
|
|
|
48
|
+
# [2.92.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.91.2...@next-core/brick-kit@2.92.0) (2021-12-06)
|
|
46
49
|
|
|
50
|
+
### Features
|
|
47
51
|
|
|
52
|
+
- expose http code ([#1227](https://github.com/easyops-cn/next-core/issues/1227)) ([9e22deb](https://github.com/easyops-cn/next-core/commit/9e22deb2dc27b7d907bb782790fa4a59960ccc82))
|
|
48
53
|
|
|
54
|
+
## [2.91.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.91.1...@next-core/brick-kit@2.91.2) (2021-12-05)
|
|
49
55
|
|
|
50
|
-
|
|
56
|
+
### Bug Fixes
|
|
51
57
|
|
|
58
|
+
- add icons field ([7415b3f](https://github.com/easyops-cn/next-core/commit/7415b3ffaafe109c3bd555878a1d5ab2cd117183))
|
|
52
59
|
|
|
53
|
-
|
|
60
|
+
## [2.91.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.91.0...@next-core/brick-kit@2.91.1) (2021-12-03)
|
|
54
61
|
|
|
55
|
-
|
|
62
|
+
### Bug Fixes
|
|
56
63
|
|
|
64
|
+
- fix page tracker ([dbf1d00](https://github.com/easyops-cn/next-core/commit/dbf1d003cd2e60ad18471e403c5dc9c9690b30fa))
|
|
57
65
|
|
|
66
|
+
# [2.91.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.90.2...@next-core/brick-kit@2.91.0) (2021-12-03)
|
|
58
67
|
|
|
68
|
+
### Features
|
|
59
69
|
|
|
70
|
+
- support isAdmin ([f160156](https://github.com/easyops-cn/next-core/commit/f1601567b59c9f4a27aa130dc3e2e327c84c35db))
|
|
60
71
|
|
|
61
72
|
## [2.90.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.90.1...@next-core/brick-kit@2.90.2) (2021-12-01)
|
|
62
73
|
|
|
63
|
-
|
|
64
74
|
### Bug Fixes
|
|
65
75
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
76
|
+
- remove flags ([ed7f66b](https://github.com/easyops-cn/next-core/commit/ed7f66b40c5be427171ec5fc8817eee64c499f60))
|
|
71
77
|
|
|
72
78
|
## [2.90.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.90.0...@next-core/brick-kit@2.90.1) (2021-11-29)
|
|
73
79
|
|
|
74
80
|
**Note:** Version bump only for package @next-core/brick-kit
|
|
75
81
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
82
|
# [2.90.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.89.2...@next-core/brick-kit@2.90.0) (2021-11-26)
|
|
81
83
|
|
|
82
|
-
|
|
83
84
|
### Bug Fixes
|
|
84
85
|
|
|
85
|
-
|
|
86
|
-
|
|
86
|
+
- fix a regression of caching resolves ([e9cd56d](https://github.com/easyops-cn/next-core/commit/e9cd56d882d0a13ee1cb13c4ed752a15f2c15bfd))
|
|
87
87
|
|
|
88
88
|
### Features
|
|
89
89
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
90
|
+
- support i18n in storyboard functions ([5891932](https://github.com/easyops-cn/next-core/commit/589193250f22735b20e93d32c807896f4ae0932b))
|
|
91
|
+
- support i18n in widgets ([6020545](https://github.com/easyops-cn/next-core/commit/60205457fedbc7c000bb60b1e97729e3151be33d))
|
|
92
|
+
- support img in widgets ([f19ad53](https://github.com/easyops-cn/next-core/commit/f19ad5329b95c71e612f4be0ffa57b5a3d9ec570))
|
|
97
93
|
|
|
98
94
|
## [2.89.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.89.1...@next-core/brick-kit@2.89.2) (2021-11-25)
|
|
99
95
|
|
|
100
|
-
|
|
101
96
|
### Bug Fixes
|
|
102
97
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
98
|
+
- get stroyboard v2 ([602d086](https://github.com/easyops-cn/next-core/commit/602d0860fc6c7c9e5ffc116ff023addb0f57efe1))
|
|
108
99
|
|
|
109
100
|
## [2.89.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.89.0...@next-core/brick-kit@2.89.1) (2021-11-25)
|
|
110
101
|
|
|
111
|
-
|
|
112
102
|
### Bug Fixes
|
|
113
103
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
104
|
+
- bootsrtrap 增加开关控制 ([360b913](https://github.com/easyops-cn/next-core/commit/360b913f324f10ac79b1d637ec598583a89a61da))
|
|
119
105
|
|
|
120
106
|
# [2.89.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.88.1...@next-core/brick-kit@2.89.0) (2021-11-25)
|
|
121
107
|
|
|
122
|
-
|
|
123
108
|
### Bug Fixes
|
|
124
109
|
|
|
125
|
-
|
|
126
|
-
|
|
110
|
+
- refine storyboard function ([90c42c1](https://github.com/easyops-cn/next-core/commit/90c42c1f49a7d7e8297d424bd02a3957787fb8e3))
|
|
127
111
|
|
|
128
112
|
### Features
|
|
129
113
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
114
|
+
- use global noCurrentApp as default ([4e18163](https://github.com/easyops-cn/next-core/commit/4e18163eeefa24cb022cb9b936746c9e7ad80e70))
|
|
135
115
|
|
|
136
116
|
## [2.88.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.88.0...@next-core/brick-kit@2.88.1) (2021-11-25)
|
|
137
117
|
|
|
138
|
-
|
|
139
118
|
### Bug Fixes
|
|
140
119
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
120
|
+
- app 字段合并 boostrap 接口详情的 app 信息 ([2dffa41](https://github.com/easyops-cn/next-core/commit/2dffa41e020e92994c6275a62977128b0a7a4bad))
|
|
121
|
+
- use boostreap v2 api ([e1fbf03](https://github.com/easyops-cn/next-core/commit/e1fbf0366e29b28f823915bda4707368910c013e))
|
|
147
122
|
|
|
148
123
|
# [2.88.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.87.0...@next-core/brick-kit@2.88.0) (2021-11-23)
|
|
149
124
|
|
|
150
|
-
|
|
151
125
|
### Features
|
|
152
126
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
127
|
+
- **Router:** set noCurrentApp default value ([8d5efe1](https://github.com/easyops-cn/next-core/commit/8d5efe14230b72ede0a87eeacf8881433b1e4829))
|
|
158
128
|
|
|
159
129
|
# [2.87.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.86.1...@next-core/brick-kit@2.87.0) (2021-11-23)
|
|
160
130
|
|
|
161
|
-
|
|
162
131
|
### Features
|
|
163
132
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
133
|
+
- **locationContext:** add noCurrentApp ([8efc245](https://github.com/easyops-cn/next-core/commit/8efc245513f8e9ebf0aadcabfedd15647333d318))
|
|
169
134
|
|
|
170
135
|
## [2.86.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.86.0...@next-core/brick-kit@2.86.1) (2021-11-23)
|
|
171
136
|
|
|
172
137
|
**Note:** Version bump only for package @next-core/brick-kit
|
|
173
138
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
139
|
# [2.86.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.85.0...@next-core/brick-kit@2.86.0) (2021-11-18)
|
|
179
140
|
|
|
180
|
-
|
|
181
141
|
### Features
|
|
182
142
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
143
|
+
- use a single build for standalone apps ([cb5db11](https://github.com/easyops-cn/next-core/commit/cb5db11829952fedfa9cf3898de3e62cfe647a16))
|
|
188
144
|
|
|
189
145
|
# [2.85.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.84.2...@next-core/brick-kit@2.85.0) (2021-11-18)
|
|
190
146
|
|
|
191
|
-
|
|
192
147
|
### Features
|
|
193
148
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
149
|
+
- fetch conf in standalone micro-apps ([6175855](https://github.com/easyops-cn/next-core/commit/61758554f23ca685cd29f01130e46805c7674433))
|
|
150
|
+
- support getting images by static files ([c23d88a](https://github.com/easyops-cn/next-core/commit/c23d88aa70f5009453a1d3c58e7f4a0d6249c719))
|
|
200
151
|
|
|
201
152
|
## [2.84.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.84.1...@next-core/brick-kit@2.84.2) (2021-11-12)
|
|
202
153
|
|
package/dist/index.bundle.js
CHANGED
|
@@ -1848,6 +1848,10 @@
|
|
|
1848
1848
|
globalVariables.MISC = getRuntime().getMiscSettings();
|
|
1849
1849
|
}
|
|
1850
1850
|
|
|
1851
|
+
if (attemptToVisitGlobals.has("BASE_URL")) {
|
|
1852
|
+
globalVariables.BASE_URL = getBasePath().replace(/\/$/, "");
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1851
1855
|
try {
|
|
1852
1856
|
var result = brickUtils.cook(precooked.expression, precooked.source, {
|
|
1853
1857
|
globalVariables: supply(precooked.attemptToVisitGlobals, globalVariables)
|
|
@@ -6096,14 +6100,6 @@
|
|
|
6096
6100
|
|
|
6097
6101
|
_defineProperty__default["default"](this, "loadingBar", void 0);
|
|
6098
6102
|
|
|
6099
|
-
_defineProperty__default["default"](this, "navBar", void 0);
|
|
6100
|
-
|
|
6101
|
-
_defineProperty__default["default"](this, "sideBar", void 0);
|
|
6102
|
-
|
|
6103
|
-
_defineProperty__default["default"](this, "footer", void 0);
|
|
6104
|
-
|
|
6105
|
-
_defineProperty__default["default"](this, "breadcrumb", void 0);
|
|
6106
|
-
|
|
6107
6103
|
_defineProperty__default["default"](this, "router", void 0);
|
|
6108
6104
|
|
|
6109
6105
|
_defineProperty__default["default"](this, "currentApp", void 0);
|
|
@@ -6120,8 +6116,6 @@
|
|
|
6120
6116
|
|
|
6121
6117
|
_defineProperty__default["default"](this, "currentLayout", void 0);
|
|
6122
6118
|
|
|
6123
|
-
_defineProperty__default["default"](this, "enableUiV8", false);
|
|
6124
|
-
|
|
6125
6119
|
_defineProperty__default["default"](this, "allUserMapPromise", Promise.resolve(new Map()));
|
|
6126
6120
|
|
|
6127
6121
|
_defineProperty__default["default"](this, "allMagicBrickConfigMapPromise", Promise.resolve(new Map()));
|
|
@@ -6148,20 +6142,13 @@
|
|
|
6148
6142
|
throw new Error("No storyboard were found.");
|
|
6149
6143
|
}
|
|
6150
6144
|
|
|
6151
|
-
_this.setUiVersion();
|
|
6152
|
-
|
|
6153
6145
|
if (isLoggedIn()) {
|
|
6154
6146
|
_this.loadSharedData();
|
|
6155
6147
|
}
|
|
6156
6148
|
|
|
6157
6149
|
_this.menuBar = new MenuBar(_this, "menuBar");
|
|
6158
6150
|
_this.appBar = new AppBar(_this, "appBar");
|
|
6159
|
-
_this.loadingBar = new BaseBar(_this, "loadingBar");
|
|
6160
|
-
|
|
6161
|
-
_this.navBar = new BaseBar(_this, "navBar");
|
|
6162
|
-
_this.sideBar = new BaseBar(_this, "sideBar");
|
|
6163
|
-
_this.breadcrumb = new BaseBar(_this, "breadcrumb");
|
|
6164
|
-
_this.footer = new BaseBar(_this, "footer");
|
|
6151
|
+
_this.loadingBar = new BaseBar(_this, "loadingBar");
|
|
6165
6152
|
_this.router = new Router(_this);
|
|
6166
6153
|
initAnalytics();
|
|
6167
6154
|
yield _this.router.bootstrap();
|
|
@@ -6189,13 +6176,7 @@
|
|
|
6189
6176
|
loadingBar: "business-website.loading-bar",
|
|
6190
6177
|
pageNotFound: "business-website.page-not-found",
|
|
6191
6178
|
pageError: "business-website.page-error"
|
|
6192
|
-
} : _objectSpread__default["default"](_objectSpread__default["default"]({}, _this2.
|
|
6193
|
-
loadingBar: _this2.bootstrapData.navbar.loadingBar,
|
|
6194
|
-
navBar: "frame-bricks.nav-bar",
|
|
6195
|
-
sideBar: "frame-bricks.side-bar",
|
|
6196
|
-
breadcrumb: null,
|
|
6197
|
-
footer: null
|
|
6198
|
-
} : _this2.bootstrapData.navbar), {}, {
|
|
6179
|
+
} : _objectSpread__default["default"](_objectSpread__default["default"]({}, _this2.bootstrapData.navbar), {}, {
|
|
6199
6180
|
pageNotFound: "basic-bricks.page-not-found",
|
|
6200
6181
|
pageError: "basic-bricks.page-error"
|
|
6201
6182
|
});
|
|
@@ -6210,7 +6191,7 @@
|
|
|
6210
6191
|
|
|
6211
6192
|
yield Promise.all([_this2.menuBar.bootstrap(_this2.presetBricks.menuBar, {
|
|
6212
6193
|
testid: "brick-next-menu-bar"
|
|
6213
|
-
}), _this2.appBar.bootstrap(_this2.presetBricks.appBar), _this2.
|
|
6194
|
+
}), _this2.appBar.bootstrap(_this2.presetBricks.appBar), _this2.loadingBar.bootstrap(_this2.presetBricks.loadingBar)]);
|
|
6214
6195
|
})();
|
|
6215
6196
|
}
|
|
6216
6197
|
|
|
@@ -6762,16 +6743,6 @@
|
|
|
6762
6743
|
})();
|
|
6763
6744
|
}
|
|
6764
6745
|
|
|
6765
|
-
setUiVersion() {
|
|
6766
|
-
// get from localStorage fot test
|
|
6767
|
-
// this.enableUiV8 = this.getFeatureFlags()["ui-v8"];
|
|
6768
|
-
this.enableUiV8 = !!localStorage.getItem("test-ui-v8");
|
|
6769
|
-
|
|
6770
|
-
if (this.enableUiV8) {
|
|
6771
|
-
document.documentElement.dataset.ui = "v8";
|
|
6772
|
-
}
|
|
6773
|
-
}
|
|
6774
|
-
|
|
6775
6746
|
} // Since `@next-dll/editor-bricks-helper` depends on `@next-dll/react-dnd`,
|
|
6776
6747
|
// always load react-dnd before loading editor-bricks-helper.
|
|
6777
6748
|
|
|
@@ -6976,8 +6947,6 @@
|
|
|
6976
6947
|
|
|
6977
6948
|
/** @internal */
|
|
6978
6949
|
|
|
6979
|
-
/** @internal */
|
|
6980
|
-
|
|
6981
6950
|
/**
|
|
6982
6951
|
* 应用的 Storyboard 配置。
|
|
6983
6952
|
*/
|
|
@@ -9103,6 +9072,23 @@
|
|
|
9103
9072
|
return defaultCollapsed || defaultCollapsedBreakpoint && document.documentElement.clientWidth < defaultCollapsedBreakpoint;
|
|
9104
9073
|
}
|
|
9105
9074
|
|
|
9075
|
+
var useMockList = [];
|
|
9076
|
+
function registerMock(mockList) {
|
|
9077
|
+
if (mockList) useMockList = mockList;
|
|
9078
|
+
}
|
|
9079
|
+
|
|
9080
|
+
function getUrlRegExp(str) {
|
|
9081
|
+
return new RegExp("".concat(str.replace(/:\w+/g, "[\\w|-]+"), "$"));
|
|
9082
|
+
}
|
|
9083
|
+
|
|
9084
|
+
var isMatchMockUrl = (requestUrl, uri) => {
|
|
9085
|
+
var reg = getUrlRegExp(uri);
|
|
9086
|
+
return reg.test(requestUrl);
|
|
9087
|
+
};
|
|
9088
|
+
var getMockRule = requestUrl => {
|
|
9089
|
+
return useMockList.find(item => isMatchMockUrl(requestUrl, item.uri));
|
|
9090
|
+
};
|
|
9091
|
+
|
|
9106
9092
|
class Router {
|
|
9107
9093
|
constructor(kernel) {
|
|
9108
9094
|
_defineProperty__default["default"](this, "defaultCollapsed", false);
|
|
@@ -9288,7 +9274,7 @@
|
|
|
9288
9274
|
var storyboard = locationContext.matchStoryboard(_this3.kernel.bootstrapData.storyboards);
|
|
9289
9275
|
|
|
9290
9276
|
if (storyboard) {
|
|
9291
|
-
var _storyboard$meta;
|
|
9277
|
+
var _storyboard$meta, _storyboard$meta2;
|
|
9292
9278
|
|
|
9293
9279
|
yield _this3.kernel.fulfilStoryboard(storyboard); // 将动态解析后的模板还原,以便重新动态解析。
|
|
9294
9280
|
|
|
@@ -9306,6 +9292,7 @@
|
|
|
9306
9292
|
_this3.kernel.registerCustomTemplatesInStoryboard(storyboard);
|
|
9307
9293
|
|
|
9308
9294
|
registerStoryboardFunctions((_storyboard$meta = storyboard.meta) === null || _storyboard$meta === void 0 ? void 0 : _storyboard$meta.functions, storyboard.app);
|
|
9295
|
+
registerMock((_storyboard$meta2 = storyboard.meta) === null || _storyboard$meta2 === void 0 ? void 0 : _storyboard$meta2.mocks);
|
|
9309
9296
|
}
|
|
9310
9297
|
|
|
9311
9298
|
var {
|
|
@@ -9444,33 +9431,30 @@
|
|
|
9444
9431
|
if (barsHidden || getRuntimeMisc().isInIframeOfLegacyConsole) {
|
|
9445
9432
|
_this3.kernel.toggleBars(false);
|
|
9446
9433
|
} else if (_this3.kernel.currentLayout === "console") {
|
|
9447
|
-
|
|
9448
|
-
if (!_this3.kernel.enableUiV8) {
|
|
9449
|
-
var _menuBar$menu, _menuBar$menu2;
|
|
9434
|
+
var _menuBar$menu, _menuBar$menu2;
|
|
9450
9435
|
|
|
9451
|
-
|
|
9436
|
+
yield constructMenu(menuBar, _this3.locationContext.getCurrentContext(), _this3.kernel);
|
|
9452
9437
|
|
|
9453
|
-
|
|
9454
|
-
|
|
9438
|
+
if (shouldBeDefaultCollapsed((_menuBar$menu = menuBar.menu) === null || _menuBar$menu === void 0 ? void 0 : _menuBar$menu.defaultCollapsed, (_menuBar$menu2 = menuBar.menu) === null || _menuBar$menu2 === void 0 ? void 0 : _menuBar$menu2.defaultCollapsedBreakpoint)) {
|
|
9439
|
+
_this3.kernel.menuBar.collapse(true);
|
|
9455
9440
|
|
|
9456
|
-
|
|
9457
|
-
|
|
9458
|
-
|
|
9459
|
-
|
|
9460
|
-
}
|
|
9461
|
-
|
|
9462
|
-
_this3.defaultCollapsed = false;
|
|
9441
|
+
_this3.defaultCollapsed = true;
|
|
9442
|
+
} else {
|
|
9443
|
+
if (_this3.defaultCollapsed) {
|
|
9444
|
+
_this3.kernel.menuBar.collapse(false);
|
|
9463
9445
|
}
|
|
9464
9446
|
|
|
9465
|
-
|
|
9466
|
-
|
|
9467
|
-
// it will be *popped* from iframe automatically.
|
|
9468
|
-
delete appBar.breadcrumb;
|
|
9469
|
-
}
|
|
9447
|
+
_this3.defaultCollapsed = false;
|
|
9448
|
+
}
|
|
9470
9449
|
|
|
9471
|
-
|
|
9472
|
-
|
|
9450
|
+
if (actualLegacy === "iframe") {
|
|
9451
|
+
// Do not modify breadcrumb in iframe mode,
|
|
9452
|
+
// it will be *popped* from iframe automatically.
|
|
9453
|
+
delete appBar.breadcrumb;
|
|
9473
9454
|
}
|
|
9455
|
+
|
|
9456
|
+
mountStaticNode(_this3.kernel.menuBar.element, menuBar);
|
|
9457
|
+
mountStaticNode(_this3.kernel.appBar.element, appBar);
|
|
9474
9458
|
}
|
|
9475
9459
|
|
|
9476
9460
|
_this3.kernel.toggleLegacyIframe(actualLegacy === "iframe");
|
|
@@ -10164,7 +10148,7 @@
|
|
|
10164
10148
|
return /*#__PURE__*/React__default["default"].createElement(SingleBrickAsComponent, {
|
|
10165
10149
|
key: index,
|
|
10166
10150
|
useBrick: item,
|
|
10167
|
-
data:
|
|
10151
|
+
data: data
|
|
10168
10152
|
});
|
|
10169
10153
|
}));
|
|
10170
10154
|
} else {
|
|
@@ -10384,7 +10368,7 @@
|
|
|
10384
10368
|
return /*#__PURE__*/React__default["default"].createElement(SingleBrickAsComponent, {
|
|
10385
10369
|
key: index,
|
|
10386
10370
|
useBrick: item,
|
|
10387
|
-
data:
|
|
10371
|
+
data: data
|
|
10388
10372
|
});
|
|
10389
10373
|
}));
|
|
10390
10374
|
} else {
|
|
@@ -11318,6 +11302,7 @@
|
|
|
11318
11302
|
exports.event = event;
|
|
11319
11303
|
exports.getAuth = getAuth;
|
|
11320
11304
|
exports.getHistory = getHistory;
|
|
11305
|
+
exports.getMockRule = getMockRule;
|
|
11321
11306
|
exports.getRuntime = getRuntime;
|
|
11322
11307
|
exports.handleHttpError = handleHttpError;
|
|
11323
11308
|
exports.httpErrorToString = httpErrorToString;
|