@next-core/brick-kit 2.153.0 → 2.153.2
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/dist/index.bundle.js +22 -11
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +22 -11
- package/dist/index.esm.js.map +1 -1
- package/dist/types/core/Router.d.ts.map +1 -1
- package/dist/types/core/Runtime.d.ts.map +1 -1
- package/dist/types/core/matchStoryboard.d.ts.map +1 -1
- package/package.json +10 -10
package/dist/index.bundle.js
CHANGED
|
@@ -3556,6 +3556,10 @@
|
|
|
3556
3556
|
*/
|
|
3557
3557
|
|
|
3558
3558
|
function isOutsideApp(storyboard) {
|
|
3559
|
+
if (process.env.NODE_ENV === "test") {
|
|
3560
|
+
return false;
|
|
3561
|
+
}
|
|
3562
|
+
|
|
3559
3563
|
return !storyboard || !window.STANDALONE_MICRO_APPS && storyboard.app.standaloneMode;
|
|
3560
3564
|
}
|
|
3561
3565
|
|
|
@@ -3933,6 +3937,10 @@
|
|
|
3933
3937
|
/* istanbul ignore next */
|
|
3934
3938
|
|
|
3935
3939
|
function _internalApiMatchStoryboard(pathname) {
|
|
3940
|
+
if (process.env.NODE_ENV === "test") {
|
|
3941
|
+
return;
|
|
3942
|
+
}
|
|
3943
|
+
|
|
3936
3944
|
return matchStoryboard(kernel.bootstrapData.storyboards, pathname);
|
|
3937
3945
|
}
|
|
3938
3946
|
/* istanbul ignore next */
|
|
@@ -12512,17 +12520,20 @@
|
|
|
12512
12520
|
route_alias: route === null || route === void 0 ? void 0 : route.alias
|
|
12513
12521
|
}, analyticsData));
|
|
12514
12522
|
_this3.state = "mounted";
|
|
12515
|
-
devtoolsHookEmit("rendered");
|
|
12516
|
-
|
|
12517
|
-
|
|
12518
|
-
|
|
12519
|
-
|
|
12520
|
-
|
|
12521
|
-
|
|
12522
|
-
|
|
12523
|
-
|
|
12524
|
-
|
|
12525
|
-
|
|
12523
|
+
devtoolsHookEmit("rendered");
|
|
12524
|
+
|
|
12525
|
+
if (!_this3.featureFlags["disable-prefetch-scripts"]) {
|
|
12526
|
+
// Try to prefetch during a browser's idle periods.
|
|
12527
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback
|
|
12528
|
+
if (typeof window.requestIdleCallback === "function") {
|
|
12529
|
+
window.requestIdleCallback(() => {
|
|
12530
|
+
_this3.kernel.prefetchDepsOfStoryboard(storyboard);
|
|
12531
|
+
});
|
|
12532
|
+
} else {
|
|
12533
|
+
setTimeout(() => {
|
|
12534
|
+
_this3.kernel.prefetchDepsOfStoryboard(storyboard);
|
|
12535
|
+
}, 0);
|
|
12536
|
+
}
|
|
12526
12537
|
}
|
|
12527
12538
|
|
|
12528
12539
|
return;
|