@the-portland-company/shell 0.76.0 → 0.76.2
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/CHANGELOG.md +8 -0
- package/dist/app-chrome.cjs +24 -6
- package/dist/app-chrome.cjs.map +1 -1
- package/dist/app-chrome.js +15 -8
- package/dist/app-chrome.js.map +1 -1
- package/dist/chrome.css +1 -1
- package/dist/{chunk-WHF6YW27.js → chunk-6KX3DWBC.js} +14 -3
- package/dist/chunk-6KX3DWBC.js.map +1 -0
- package/dist/index.cjs +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/native.cjs +12 -0
- package/dist/native.cjs.map +1 -1
- package/dist/native.d.cts +28 -1
- package/dist/native.d.ts +28 -1
- package/dist/native.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-WHF6YW27.js.map +0 -1
package/dist/chrome.css
CHANGED
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
--sidebar-text: #2F3136;
|
|
174
174
|
--sidebar-text-muted: #929599;
|
|
175
175
|
/* Meta footer rows (commit / version / date / author): 10px mono text must
|
|
176
|
-
clear WCAG 2.2 AA 4.5:1 on the light rail. --muted (#
|
|
176
|
+
clear WCAG 2.2 AA 4.5:1 on the light rail. --muted (#5C6B80) is 5.42:1. */
|
|
177
177
|
--sidebar-meta-text: #696D72;
|
|
178
178
|
--sidebar-hover-bg: #2F3136;
|
|
179
179
|
--sidebar-active-text: #FFFFFF;
|
|
@@ -249,6 +249,9 @@ function useChromeMe() {
|
|
|
249
249
|
const ctx = useContext(NavChromeContext);
|
|
250
250
|
return { me: ctx?.me ?? null, loaded: ctx?.meLoaded ?? false };
|
|
251
251
|
}
|
|
252
|
+
function useNavChromeDedupedFetch() {
|
|
253
|
+
return useContext(NavChromeContext)?.dedupedFetch ?? null;
|
|
254
|
+
}
|
|
252
255
|
function useNavChromeFetcher() {
|
|
253
256
|
return useContext(NavChromeContext)?.fetchJson ?? null;
|
|
254
257
|
}
|
|
@@ -576,6 +579,10 @@ function FuelAction({ orgId }) {
|
|
|
576
579
|
const [error, setError] = useState(false);
|
|
577
580
|
useEffect(() => {
|
|
578
581
|
let cancelled = false;
|
|
582
|
+
if (!orgId) {
|
|
583
|
+
setLoading(false);
|
|
584
|
+
return;
|
|
585
|
+
}
|
|
579
586
|
setLoading(true);
|
|
580
587
|
setError(false);
|
|
581
588
|
setFuel(null);
|
|
@@ -811,6 +818,10 @@ function NotificationsAction({ orgId }) {
|
|
|
811
818
|
}, [orgId]);
|
|
812
819
|
useEffect(() => {
|
|
813
820
|
let cancelled = false;
|
|
821
|
+
if (!orgId) {
|
|
822
|
+
setLoading(false);
|
|
823
|
+
return;
|
|
824
|
+
}
|
|
814
825
|
setLoading(true);
|
|
815
826
|
setError(false);
|
|
816
827
|
setPayload(null);
|
|
@@ -3656,6 +3667,6 @@ function NavAppShell({
|
|
|
3656
3667
|
);
|
|
3657
3668
|
}
|
|
3658
3669
|
|
|
3659
|
-
export { BETA_BANNER_DISMISS_KEY, CAMPAIGN_FEATURE_AVAILABILITY, CORE_APP_ORIGIN, CORE_BILLING_PATH, FuelAction, NavAppShell, NavBetaBanner, NavChromeProvider, NavDisplayAction, NavSidebar, NavTabStrip, NavThemeControl, NavTopBar, NotificationsAction, SPECS_ORIGIN, SpecOverlayAction, SupportAction, TopBarCountBadge, TopBarPanelArrow, TopBarPopover, TopBarTooltip, TopBarWidgetSlot, clearBetaBannerDismissal, envChipClasses, isNavItemActive, modeIdFromLabel, resolveOrgLogoUrl, shortEnvLabel, shortUserName, standardNavIcons, standardPolitogyNav, topBarIconButtonClass, useChromeMe, useChromeOrgs, useNavChromeFetcher, useThemePreference };
|
|
3660
|
-
//# sourceMappingURL=chunk-
|
|
3661
|
-
//# sourceMappingURL=chunk-
|
|
3670
|
+
export { BETA_BANNER_DISMISS_KEY, CAMPAIGN_FEATURE_AVAILABILITY, CORE_APP_ORIGIN, CORE_BILLING_PATH, FuelAction, NavAppShell, NavBetaBanner, NavChromeProvider, NavDisplayAction, NavSidebar, NavTabStrip, NavThemeControl, NavTopBar, NotificationsAction, SPECS_ORIGIN, SpecOverlayAction, SupportAction, TopBarCountBadge, TopBarPanelArrow, TopBarPopover, TopBarTooltip, TopBarWidgetSlot, clearBetaBannerDismissal, envChipClasses, isNavItemActive, modeIdFromLabel, resolveOrgLogoUrl, shortEnvLabel, shortUserName, standardNavIcons, standardPolitogyNav, topBarIconButtonClass, useChromeMe, useChromeOrgs, useNavChromeDedupedFetch, useNavChromeFetcher, useThemePreference };
|
|
3671
|
+
//# sourceMappingURL=chunk-6KX3DWBC.js.map
|
|
3672
|
+
//# sourceMappingURL=chunk-6KX3DWBC.js.map
|