@mohamedatia/fly-design-system 2.6.2 → 2.6.3
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.
|
@@ -450,9 +450,23 @@ class FlyRemoteRouter {
|
|
|
450
450
|
* when the InjectionToken splits between host and remote bundles
|
|
451
451
|
* (a known Native Federation edge case).
|
|
452
452
|
*/
|
|
453
|
-
isEmbedded =
|
|
454
|
-
|
|
455
|
-
|
|
453
|
+
isEmbedded = (() => {
|
|
454
|
+
const fromWindowData = this.windowData != null;
|
|
455
|
+
const g = (typeof globalThis !== 'undefined' ? globalThis : {});
|
|
456
|
+
const fromGlobal = g.__FLYOS_SHELL__ === true;
|
|
457
|
+
const result = fromWindowData || fromGlobal;
|
|
458
|
+
// DIAGNOSTIC — remove once confirmed working.
|
|
459
|
+
// eslint-disable-next-line no-console
|
|
460
|
+
console.log('[FlyRemoteRouter] init', {
|
|
461
|
+
version: '2.6.3-debug',
|
|
462
|
+
fromWindowData,
|
|
463
|
+
fromGlobal,
|
|
464
|
+
result,
|
|
465
|
+
windowData: this.windowData,
|
|
466
|
+
globalKeys: Object.keys(g).filter(k => k.startsWith('__FLYOS')),
|
|
467
|
+
});
|
|
468
|
+
return result;
|
|
469
|
+
})();
|
|
456
470
|
_url = signal('/', ...(ngDevMode ? [{ debugName: "_url" }] : /* istanbul ignore next */ []));
|
|
457
471
|
/**
|
|
458
472
|
* Current logical URL of the remote — `/signals/abc` etc.
|