@shellui/core 0.5.2 → 0.5.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shellui/core",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "Shellui Core - Core React application runtime",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"workbox-routing": "^7.4.0",
|
|
73
73
|
"workbox-strategies": "^7.4.0",
|
|
74
74
|
"workbox-window": "^7.4.0",
|
|
75
|
-
"@shellui/sdk": "0.5.
|
|
75
|
+
"@shellui/sdk": "0.5.3"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -326,6 +326,8 @@ export const ContentView = ({
|
|
|
326
326
|
|
|
327
327
|
// After the first load, a cross-origin document (OAuth/login) cannot be inspected.
|
|
328
328
|
// Flag it so desktop Back can restore the iframe to its assigned app URL.
|
|
329
|
+
// Also nudge the settings handshake once the companion document has loaded —
|
|
330
|
+
// early shell→iframe posts are skipped while the frame is still about:blank.
|
|
329
331
|
useEffect(() => {
|
|
330
332
|
const iframe = iframeRef.current;
|
|
331
333
|
if (!iframe) return;
|
|
@@ -338,6 +340,15 @@ export const ContentView = ({
|
|
|
338
340
|
} catch {
|
|
339
341
|
if (loads > 1) iframe.setAttribute(IFRAME_FOREIGN_ATTR, 'true');
|
|
340
342
|
}
|
|
343
|
+
|
|
344
|
+
// Same-window SETTINGS_REQUESTED → SettingsProvider pushes to registered frames.
|
|
345
|
+
// Harmless if settings already arrived; unblocks companions that raced about:blank.
|
|
346
|
+
if (typeof window !== 'undefined' && window.parent === window) {
|
|
347
|
+
window.postMessage(
|
|
348
|
+
{ type: 'SHELLUI_SETTINGS_REQUESTED', payload: {} },
|
|
349
|
+
window.location.origin,
|
|
350
|
+
);
|
|
351
|
+
}
|
|
341
352
|
};
|
|
342
353
|
iframe.addEventListener('load', onLoad);
|
|
343
354
|
return () => iframe.removeEventListener('load', onLoad);
|