@next-core/brick-kit 2.91.0 → 2.91.1
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 +11 -0
- package/dist/index.bundle.js +8 -6
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +8 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/types/core/Router.d.ts.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.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)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* fix page tracker ([dbf1d00](https://github.com/easyops-cn/next-core/commit/dbf1d003cd2e60ad18471e403c5dc9c9690b30fa))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [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)
|
|
7
18
|
|
|
8
19
|
|
package/dist/index.bundle.js
CHANGED
|
@@ -9287,6 +9287,8 @@
|
|
|
9287
9287
|
var _this3 = this;
|
|
9288
9288
|
|
|
9289
9289
|
return _asyncToGenerator__default["default"](function* () {
|
|
9290
|
+
var _apiAnalyzer$getInsta;
|
|
9291
|
+
|
|
9290
9292
|
_this3.state = "initial";
|
|
9291
9293
|
_this3.renderId = lodash.uniqueId("render-id-");
|
|
9292
9294
|
resetAllInjected();
|
|
@@ -9297,7 +9299,10 @@
|
|
|
9297
9299
|
}
|
|
9298
9300
|
|
|
9299
9301
|
var history = getHistory();
|
|
9300
|
-
history.unblock();
|
|
9302
|
+
history.unblock(); // Create the page tracker before page load.
|
|
9303
|
+
// And the API Analyzer maybe disabled.
|
|
9304
|
+
|
|
9305
|
+
var pageTracker = (_apiAnalyzer$getInsta = easyopsAnalytics.apiAnalyzer.getInstance()) === null || _apiAnalyzer$getInsta === void 0 ? void 0 : _apiAnalyzer$getInsta.pageTracker();
|
|
9301
9306
|
var locationContext = _this3.locationContext = new LocationContext(_this3.kernel, location);
|
|
9302
9307
|
var storyboard = locationContext.matchStoryboard(_this3.kernel.bootstrapData.storyboards);
|
|
9303
9308
|
|
|
@@ -9493,8 +9498,6 @@
|
|
|
9493
9498
|
});
|
|
9494
9499
|
|
|
9495
9500
|
if (main.length > 0 || portal.length > 0) {
|
|
9496
|
-
var _apiAnalyzer$getInsta;
|
|
9497
|
-
|
|
9498
9501
|
main.length > 0 && mountTree(main, mountPoints.main);
|
|
9499
9502
|
portal.length > 0 && mountTree(portal, mountPoints.portal);
|
|
9500
9503
|
afterMountTree(mountPoints.main);
|
|
@@ -9513,9 +9516,8 @@
|
|
|
9513
9516
|
// See https://github.com/ReactTraining/react-router/blob/master/packages/react-router-dom/docs/guides/scroll-restoration.md
|
|
9514
9517
|
|
|
9515
9518
|
|
|
9516
|
-
window.scrollTo(0, 0);
|
|
9517
|
-
|
|
9518
|
-
(_apiAnalyzer$getInsta = easyopsAnalytics.apiAnalyzer.getInstance()) === null || _apiAnalyzer$getInsta === void 0 ? void 0 : _apiAnalyzer$getInsta.pageTracker()(locationContext.getCurrentMatch().path); // analytics page_view event
|
|
9519
|
+
window.scrollTo(0, 0);
|
|
9520
|
+
pageTracker === null || pageTracker === void 0 ? void 0 : pageTracker(locationContext.getCurrentMatch().path); // analytics page_view event
|
|
9519
9521
|
|
|
9520
9522
|
easyopsAnalytics.userAnalytics.event("page_view", _objectSpread__default["default"]({
|
|
9521
9523
|
micro_app_id: _this3.kernel.currentApp.id,
|