@next-core/brick-kit 2.165.5 → 2.165.6
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.esm.js
CHANGED
|
@@ -3237,15 +3237,19 @@ function matchStoryboard(storyboards, pathname) {
|
|
|
3237
3237
|
/**
|
|
3238
3238
|
* We say it's an outside app when at least one of the below conditions are true:
|
|
3239
3239
|
* - target app is not found.
|
|
3240
|
+
* - target app is not the current app.
|
|
3240
3241
|
* - current app is non-standalone mode and target app is standalone mode.
|
|
3241
3242
|
*
|
|
3242
3243
|
* Note: when current app is standalone mode, other apps will not be found.
|
|
3243
3244
|
*/
|
|
3244
3245
|
function isOutsideApp(storyboard) {
|
|
3246
|
+
var _getRuntime$getCurren;
|
|
3245
3247
|
if (process.env.NODE_ENV === "test") {
|
|
3246
3248
|
return false;
|
|
3247
3249
|
}
|
|
3248
|
-
return !storyboard ||
|
|
3250
|
+
return !storyboard ||
|
|
3251
|
+
// Sometimes `storyboard.app.standaloneMode` is incorrect.
|
|
3252
|
+
((_getRuntime$getCurren = getRuntime().getCurrentApp()) === null || _getRuntime$getCurren === void 0 ? void 0 : _getRuntime$getCurren.id) !== storyboard.app.id && !window.STANDALONE_MICRO_APPS && storyboard.app.standaloneMode;
|
|
3249
3253
|
}
|
|
3250
3254
|
|
|
3251
3255
|
var kernel;
|