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