@the-portland-company/shell 0.96.2 → 0.97.0

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/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as PageHeaderProps, B as BreadcrumbBarProps, N as NavItem } from './index-DJtKw0Fd.cjs';
2
- export { A as AI_CREDITS_STATE_TITLES, a as AiCreditsState, b as AiCreditsStateKind, C as Card, c as CommsNotification, d as CommsNotificationKind, F as FormColumn, H as HeaderTabBar, e as HeaderTabBarItem, K as KNOWN_TAB_GLYPHS, f as NotificationsAdapter, g as NotificationsFeed, R as RowMenu, h as RowMenuItem, i as RowMenuPlacement, T as TabGlyphComponent, j as aiCreditsWalletUrl, k as createCommsNotificationsAdapter, l as emptyNotificationsFeed, n as normalizeNotificationsFeed, r as resolveTabGlyph, m as rowMenuPosition } from './index-DJtKw0Fd.cjs';
1
+ import { P as PageHeaderProps, B as BreadcrumbBarProps, N as NavItem } from './index-BaUIPQpN.cjs';
2
+ export { A as AI_CREDITS_STATE_TITLES, a as AiCreditsState, b as AiCreditsStateKind, C as Card, c as CommsNotification, d as CommsNotificationKind, F as FormColumn, H as HeaderTabBar, e as HeaderTabBarItem, K as KNOWN_TAB_GLYPHS, f as NotificationsAdapter, g as NotificationsFeed, R as RowMenu, h as RowMenuItem, i as RowMenuPlacement, T as TabGlyphComponent, j as aiCreditsWalletUrl, k as createCommsNotificationsAdapter, l as emptyNotificationsFeed, n as normalizeNotificationsFeed, r as resolveTabGlyph, m as rowMenuPosition } from './index-BaUIPQpN.cjs';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
5
5
  import { ReactNode, CSSProperties } from 'react';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as PageHeaderProps, B as BreadcrumbBarProps, N as NavItem } from './index-HwDXhFOA.js';
2
- export { A as AI_CREDITS_STATE_TITLES, a as AiCreditsState, b as AiCreditsStateKind, C as Card, c as CommsNotification, d as CommsNotificationKind, F as FormColumn, H as HeaderTabBar, e as HeaderTabBarItem, K as KNOWN_TAB_GLYPHS, f as NotificationsAdapter, g as NotificationsFeed, R as RowMenu, h as RowMenuItem, i as RowMenuPlacement, T as TabGlyphComponent, j as aiCreditsWalletUrl, k as createCommsNotificationsAdapter, l as emptyNotificationsFeed, n as normalizeNotificationsFeed, r as resolveTabGlyph, m as rowMenuPosition } from './index-HwDXhFOA.js';
1
+ import { P as PageHeaderProps, B as BreadcrumbBarProps, N as NavItem } from './index-BEMGfLpI.js';
2
+ export { A as AI_CREDITS_STATE_TITLES, a as AiCreditsState, b as AiCreditsStateKind, C as Card, c as CommsNotification, d as CommsNotificationKind, F as FormColumn, H as HeaderTabBar, e as HeaderTabBarItem, K as KNOWN_TAB_GLYPHS, f as NotificationsAdapter, g as NotificationsFeed, R as RowMenu, h as RowMenuItem, i as RowMenuPlacement, T as TabGlyphComponent, j as aiCreditsWalletUrl, k as createCommsNotificationsAdapter, l as emptyNotificationsFeed, n as normalizeNotificationsFeed, r as resolveTabGlyph, m as rowMenuPosition } from './index-BEMGfLpI.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
5
5
  import { ReactNode, CSSProperties } from 'react';
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { PageHeaderView, warnDeprecated, BreadcrumbBarView } from './chunk-537NZZVP.js';
2
- export { AI_CREDITS_STATE_TITLES, AiCreditsState, Card, FormColumn, HeaderTabBar, KNOWN_TAB_GLYPHS, RowMenu, RowMenuItem, SpeculationRulesScript, aiCreditsWalletUrl, buildNavSpeculationRules, buildSpeculationRules, collectSiblingAppUrls, createCommsNotificationsAdapter, emptyNotificationsFeed, normalizeNotificationsFeed, resolveTabGlyph, rowMenuPosition } from './chunk-537NZZVP.js';
1
+ import { PageHeaderView, warnDeprecated, BreadcrumbBarView } from './chunk-VAQNZD37.js';
2
+ export { AI_CREDITS_STATE_TITLES, AiCreditsState, Card, FormColumn, HeaderTabBar, KNOWN_TAB_GLYPHS, RowMenu, RowMenuItem, SpeculationRulesScript, aiCreditsWalletUrl, buildNavSpeculationRules, buildSpeculationRules, collectSiblingAppUrls, createCommsNotificationsAdapter, emptyNotificationsFeed, normalizeNotificationsFeed, resolveTabGlyph, rowMenuPosition } from './chunk-VAQNZD37.js';
3
3
  import { readResolvedTheme } from './chunk-BHRVZPZ7.js';
4
4
  export { BRAND_APPLE_ICON_LINK_ID, BRAND_FAVICON_LINK_ID, BrandFavicon, applyBrandFavicon, watchBrandFavicon } from './chunk-BMR5WAWH.js';
5
5
  import { extendTheme, ChakraProvider, useColorMode } from '@chakra-ui/react';
package/dist/native.cjs CHANGED
@@ -2376,6 +2376,34 @@ function useThemePreference() {
2376
2376
  );
2377
2377
  return { value, setValue };
2378
2378
  }
2379
+ function TopBarLinkAction({ label, description, href, icon: Icon }) {
2380
+ return /* @__PURE__ */ jsxRuntime.jsxs("a", { href, "aria-label": label, className: topBarIconButtonClass(), children: [
2381
+ /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: TOPBAR_GLYPH_SIZE, className: "text-current" }),
2382
+ /* @__PURE__ */ jsxRuntime.jsx(TopBarTooltip, { title: label, description })
2383
+ ] });
2384
+ }
2385
+ function OrganizationSettingsAction({ href }) {
2386
+ return /* @__PURE__ */ jsxRuntime.jsx(
2387
+ TopBarLinkAction,
2388
+ {
2389
+ label: "Organization settings",
2390
+ description: "Users, Brand Kit, modes and billing for this organization.",
2391
+ href,
2392
+ icon: lu.LuSettings
2393
+ }
2394
+ );
2395
+ }
2396
+ function MyProfileAction({ href }) {
2397
+ return /* @__PURE__ */ jsxRuntime.jsx(
2398
+ TopBarLinkAction,
2399
+ {
2400
+ label: "My profile",
2401
+ description: "Your photo, organizations, security and notifications.",
2402
+ href,
2403
+ icon: lu.LuCircleUser
2404
+ }
2405
+ );
2406
+ }
2379
2407
  function FormColumn({ children, className }) {
2380
2408
  return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-shell-form-column": "", className: clsx4__default.default("w-full max-w-[960px]", className), children });
2381
2409
  }
@@ -3153,13 +3181,14 @@ function standardPolitogyNav(opts) {
3153
3181
  });
3154
3182
  };
3155
3183
  const accountRows = () => [
3156
- { kind: "section", label: "Account" },
3184
+ { kind: "section", label: "Account", railHidden: true },
3157
3185
  // My Profile moved to the Politogy ID account app (auth.politogyvrm.com)
3158
3186
  // with the retirement of app.politogyvrm.com.
3159
- { label: "My profile", icon: icon("circleUser"), href: withOrg(`${AUTH_ORIGIN}my-profile`) },
3187
+ { label: "My profile", icon: icon("circleUser"), href: withOrg(`${AUTH_ORIGIN}my-profile`), railHidden: true },
3160
3188
  {
3161
3189
  label: "Organization settings",
3162
3190
  icon: icon("settings"),
3191
+ railHidden: true,
3163
3192
  // Organization settings moved to the standalone Settings app
3164
3193
  // (settings.politogyvrm.com, Specs/Organization-Settings v12).
3165
3194
  href: withOrg(`${SETTINGS_ORIGIN2}organization-settings`),
@@ -3816,7 +3845,7 @@ function NavSidebar({
3816
3845
  ] }),
3817
3846
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-1 flex-col overflow-y-auto px-[10px] py-3", children: /* @__PURE__ */ jsxRuntime.jsxs("nav", { className: "flex flex-col gap-0.5", children: [
3818
3847
  nav.groupLabel ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: `${NAV_EYEBROW_CLASS} px-2 pb-1.5 pt-1 ${rc("max-md:hidden")}`, children: nav.groupLabel }) : null,
3819
- nav.items.map((item, idx) => {
3848
+ nav.items.filter((item) => !item.railHidden).map((item, idx) => {
3820
3849
  if (item.kind === "section") {
3821
3850
  return /* @__PURE__ */ jsxRuntime.jsx(
3822
3851
  NavSectionRow,
@@ -4957,6 +4986,7 @@ exports.FormColumn = FormColumn;
4957
4986
  exports.FuelAction = FuelAction;
4958
4987
  exports.HeaderTabBar = HeaderTabBar;
4959
4988
  exports.KNOWN_TAB_GLYPHS = KNOWN_TAB_GLYPHS;
4989
+ exports.MyProfileAction = MyProfileAction;
4960
4990
  exports.NavAppShell = NavAppShell;
4961
4991
  exports.NavBetaBanner = NavBetaBanner;
4962
4992
  exports.NavChromeProvider = NavChromeProvider;
@@ -4966,6 +4996,7 @@ exports.NavTabStrip = NavTabStrip;
4966
4996
  exports.NavThemeControl = NavThemeControl;
4967
4997
  exports.NavTopBar = NavTopBar;
4968
4998
  exports.NotificationsAction = NotificationsAction;
4999
+ exports.OrganizationSettingsAction = OrganizationSettingsAction;
4969
5000
  exports.PageHeader = PageHeader;
4970
5001
  exports.RowMenu = RowMenu;
4971
5002
  exports.RowMenuItem = RowMenuItem;
@@ -4973,6 +5004,7 @@ exports.SPECS_ORIGIN = SPECS_ORIGIN;
4973
5004
  exports.SpecOverlayAction = SpecOverlayAction;
4974
5005
  exports.SupportAction = SupportAction;
4975
5006
  exports.TopBarCountBadge = TopBarCountBadge;
5007
+ exports.TopBarLinkAction = TopBarLinkAction;
4976
5008
  exports.TopBarPanelArrow = TopBarPanelArrow;
4977
5009
  exports.TopBarPopover = TopBarPopover;
4978
5010
  exports.TopBarTooltip = TopBarTooltip;