@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/dist/index.esm.js
CHANGED
|
@@ -9270,6 +9270,8 @@ class Router {
|
|
|
9270
9270
|
var _this3 = this;
|
|
9271
9271
|
|
|
9272
9272
|
return _asyncToGenerator$4(function* () {
|
|
9273
|
+
var _apiAnalyzer$getInsta;
|
|
9274
|
+
|
|
9273
9275
|
_this3.state = "initial";
|
|
9274
9276
|
_this3.renderId = uniqueId("render-id-");
|
|
9275
9277
|
resetAllInjected();
|
|
@@ -9280,7 +9282,10 @@ class Router {
|
|
|
9280
9282
|
}
|
|
9281
9283
|
|
|
9282
9284
|
var history = getHistory();
|
|
9283
|
-
history.unblock();
|
|
9285
|
+
history.unblock(); // Create the page tracker before page load.
|
|
9286
|
+
// And the API Analyzer maybe disabled.
|
|
9287
|
+
|
|
9288
|
+
var pageTracker = (_apiAnalyzer$getInsta = apiAnalyzer.getInstance()) === null || _apiAnalyzer$getInsta === void 0 ? void 0 : _apiAnalyzer$getInsta.pageTracker();
|
|
9284
9289
|
var locationContext = _this3.locationContext = new LocationContext(_this3.kernel, location);
|
|
9285
9290
|
var storyboard = locationContext.matchStoryboard(_this3.kernel.bootstrapData.storyboards);
|
|
9286
9291
|
|
|
@@ -9476,8 +9481,6 @@ class Router {
|
|
|
9476
9481
|
});
|
|
9477
9482
|
|
|
9478
9483
|
if (main.length > 0 || portal.length > 0) {
|
|
9479
|
-
var _apiAnalyzer$getInsta;
|
|
9480
|
-
|
|
9481
9484
|
main.length > 0 && mountTree(main, mountPoints.main);
|
|
9482
9485
|
portal.length > 0 && mountTree(portal, mountPoints.portal);
|
|
9483
9486
|
afterMountTree(mountPoints.main);
|
|
@@ -9496,9 +9499,8 @@ class Router {
|
|
|
9496
9499
|
// See https://github.com/ReactTraining/react-router/blob/master/packages/react-router-dom/docs/guides/scroll-restoration.md
|
|
9497
9500
|
|
|
9498
9501
|
|
|
9499
|
-
window.scrollTo(0, 0);
|
|
9500
|
-
|
|
9501
|
-
(_apiAnalyzer$getInsta = apiAnalyzer.getInstance()) === null || _apiAnalyzer$getInsta === void 0 ? void 0 : _apiAnalyzer$getInsta.pageTracker()(locationContext.getCurrentMatch().path); // analytics page_view event
|
|
9502
|
+
window.scrollTo(0, 0);
|
|
9503
|
+
pageTracker === null || pageTracker === void 0 ? void 0 : pageTracker(locationContext.getCurrentMatch().path); // analytics page_view event
|
|
9502
9504
|
|
|
9503
9505
|
userAnalytics.event("page_view", _objectSpread({
|
|
9504
9506
|
micro_app_id: _this3.kernel.currentApp.id,
|