@the-portland-company/shell 0.71.0 → 0.71.1
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 +6 -0
- package/dist/app-chrome.cjs +16 -35
- package/dist/app-chrome.cjs.map +1 -1
- package/dist/app-chrome.js +1 -1
- package/dist/{chunk-B2AQL37X.js → chunk-JBPJOPLW.js} +20 -29
- package/dist/chunk-JBPJOPLW.js.map +1 -0
- package/dist/native.cjs +18 -26
- package/dist/native.cjs.map +1 -1
- package/dist/native.d.cts +3 -1
- package/dist/native.d.ts +3 -1
- package/dist/native.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-B2AQL37X.js.map +0 -1
package/dist/app-chrome.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { broadcastLogout, watchLogout } from './chunk-LL6LSJAH.js';
|
|
3
|
-
import { clearBetaBannerDismissal, standardPolitogyNav, isNavItemActive, NavAppShell, NavChromeProvider, TopBarWidgetSlot, FuelAction, SpecOverlayAction, NotificationsAction, SupportAction, useChromeMe, useThemePreference, useNavChromeFetcher, useChromeOrgs } from './chunk-
|
|
3
|
+
import { clearBetaBannerDismissal, standardPolitogyNav, isNavItemActive, NavAppShell, NavChromeProvider, TopBarWidgetSlot, FuelAction, SpecOverlayAction, NotificationsAction, SupportAction, useChromeMe, useThemePreference, useNavChromeFetcher, useChromeOrgs } from './chunk-JBPJOPLW.js';
|
|
4
4
|
import { warnDeprecated } from './chunk-LPSBSAF3.js';
|
|
5
5
|
import './chunk-NHBNM5P3.js';
|
|
6
6
|
import { NAV_DISPLAY_DEFAULT, resolveNavDisplay, isNavDisplayPreference, writeNavDisplayCookie, writeNavDisplayLocal, NAV_DISPLAY_STORAGE_KEY, readNavDisplayCookie } from './chunk-7YVJ7HQG.js';
|
|
@@ -2074,6 +2074,12 @@ function hasActiveChild(item, pathname, activeFn) {
|
|
|
2074
2074
|
)
|
|
2075
2075
|
);
|
|
2076
2076
|
}
|
|
2077
|
+
function shortEnvLabel(label) {
|
|
2078
|
+
const l = label.trim().toLowerCase();
|
|
2079
|
+
if (l === "production") return "prod";
|
|
2080
|
+
if (l === "development") return "dev";
|
|
2081
|
+
return l;
|
|
2082
|
+
}
|
|
2077
2083
|
function envChipClasses(label) {
|
|
2078
2084
|
const l = label.toLowerCase();
|
|
2079
2085
|
if (l === "production" || l === "prod")
|
|
@@ -2573,41 +2579,26 @@ function NavSidebar({
|
|
|
2573
2579
|
}
|
|
2574
2580
|
)
|
|
2575
2581
|
] }, l.label)) }) : null,
|
|
2576
|
-
footer.envLabel
|
|
2582
|
+
footer.envLabel || footer.commit || footer.version ? /* @__PURE__ */ jsxs(
|
|
2577
2583
|
"div",
|
|
2578
2584
|
{
|
|
2579
2585
|
"data-shell-meta": true,
|
|
2580
|
-
className: `mt-1.5 flex flex-col items-
|
|
2586
|
+
className: `mt-1.5 flex flex-col items-center gap-0.5 font-[family-name:var(--font-plex-mono)] text-[11px] text-[color:var(--sidebar-meta-text,rgba(255,255,255,0.4))] ${rc("max-md:hidden")}`,
|
|
2581
2587
|
children: [
|
|
2582
|
-
/* @__PURE__ */
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
children: footer.envLabel
|
|
2591
|
-
}
|
|
2592
|
-
),
|
|
2593
|
-
footer.commit ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2594
|
-
/* @__PURE__ */ jsx("span", { className: "text-[color:var(--muted)]", children: "|" }),
|
|
2595
|
-
/* @__PURE__ */ jsx("span", { children: footer.commit.slice(-4) })
|
|
2596
|
-
] }) : null,
|
|
2597
|
-
footer.version ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2598
|
-
/* @__PURE__ */ jsx("span", { className: "text-[color:var(--muted)]", children: "|" }),
|
|
2599
|
-
/* @__PURE__ */ jsxs("span", { children: [
|
|
2600
|
-
"v",
|
|
2601
|
-
footer.version
|
|
2602
|
-
] })
|
|
2603
|
-
] }) : null
|
|
2604
|
-
] }),
|
|
2588
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-1.5", children: [
|
|
2589
|
+
footer.envLabel ? shortEnvLabel(footer.envLabel) : null,
|
|
2590
|
+
footer.commit ? footer.commit.slice(-4) : null,
|
|
2591
|
+
footer.version ? `v${footer.version.replace(/^v/, "")}` : null
|
|
2592
|
+
].filter((v) => Boolean(v)).map((v, i) => /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
2593
|
+
i > 0 ? /* @__PURE__ */ jsx("span", { children: "|" }) : null,
|
|
2594
|
+
/* @__PURE__ */ jsx("span", { children: v })
|
|
2595
|
+
] }, i)) }),
|
|
2605
2596
|
footer.commitDate || footer.commitAuthor ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
2606
2597
|
footer.commitDate ? /* @__PURE__ */ jsx("span", { children: new Date(footer.commitDate).toLocaleDateString(void 0, {
|
|
2607
2598
|
month: "short",
|
|
2608
2599
|
day: "numeric"
|
|
2609
2600
|
}) }) : null,
|
|
2610
|
-
footer.commitDate && footer.commitAuthor ? /* @__PURE__ */ jsx("span", {
|
|
2601
|
+
footer.commitDate && footer.commitAuthor ? /* @__PURE__ */ jsx("span", { children: "|" }) : null,
|
|
2611
2602
|
footer.commitAuthor ? /* @__PURE__ */ jsx("span", { children: footer.commitAuthor.split(/\s+/)[0] }) : null
|
|
2612
2603
|
] }) : null
|
|
2613
2604
|
]
|
|
@@ -3724,6 +3715,6 @@ function NavAppShell({
|
|
|
3724
3715
|
);
|
|
3725
3716
|
}
|
|
3726
3717
|
|
|
3727
|
-
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, resolveOrgLogoUrl, standardPolitogyNav, topBarIconButtonClass, useChromeMe, useChromeOrgs, useNavChromeFetcher, useThemePreference };
|
|
3728
|
-
//# sourceMappingURL=chunk-
|
|
3729
|
-
//# sourceMappingURL=chunk-
|
|
3718
|
+
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, resolveOrgLogoUrl, shortEnvLabel, standardPolitogyNav, topBarIconButtonClass, useChromeMe, useChromeOrgs, useNavChromeFetcher, useThemePreference };
|
|
3719
|
+
//# sourceMappingURL=chunk-JBPJOPLW.js.map
|
|
3720
|
+
//# sourceMappingURL=chunk-JBPJOPLW.js.map
|