@herdingbits/trailhead-cloudscape 0.0.5 → 0.0.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/shell-app.d.ts.map +1 -1
- package/dist/shell-app.js +11 -6
- package/package.json +2 -2
package/dist/shell-app.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shell-app.d.ts","sourceRoot":"","sources":["../src/shell-app.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAE7D,UAAU,aAAa;IACrB,KAAK,EAAE,SAAS,CAAC;CAClB;AAiBD,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"shell-app.d.ts","sourceRoot":"","sources":["../src/shell-app.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAE7D,UAAU,aAAa;IACrB,KAAK,EAAE,SAAS,CAAC;CAClB;AAiBD,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,EAAE,aAAa,2CAiNhD"}
|
package/dist/shell-app.js
CHANGED
|
@@ -47,12 +47,17 @@ export function ShellApp({ shell }) {
|
|
|
47
47
|
// Load navigation once (prevent React 18 double-mount in dev)
|
|
48
48
|
if (!navigationLoadedRef.current) {
|
|
49
49
|
navigationLoadedRef.current = true;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
setNavigation(
|
|
54
|
-
}
|
|
55
|
-
|
|
50
|
+
// Get navigation from core (already loaded)
|
|
51
|
+
const nav = shell.getNavigation();
|
|
52
|
+
if (nav.length > 0) {
|
|
53
|
+
setNavigation(nav);
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
// Wait for core to load navigation
|
|
57
|
+
setTimeout(() => {
|
|
58
|
+
setNavigation(shell.getNavigation());
|
|
59
|
+
}, 100);
|
|
60
|
+
}
|
|
56
61
|
}
|
|
57
62
|
return () => {
|
|
58
63
|
window.removeEventListener('cloudscape-dialog', handleDialogEvent);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@herdingbits/trailhead-cloudscape",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "AWS CloudScape adapter for Trailhead. React-based shell with CloudScape components. Supports React 19.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"build": "npm run clean && tsc && cp src/shell.css dist/"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@herdingbits/trailhead-core": "^0.0.
|
|
24
|
+
"@herdingbits/trailhead-core": "^0.0.10",
|
|
25
25
|
"@cloudscape-design/components": "^3.0.0",
|
|
26
26
|
"@cloudscape-design/global-styles": "^1.0.0",
|
|
27
27
|
"react": "^19.0.0",
|