@the-portland-company/shell 0.80.2 → 0.81.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/dist/index.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
3
  import { ReactNode, CSSProperties } from 'react';
4
- import { N as NavItem } from './index-fydj5EU2.cjs';
5
- export { C as CommsNotification, a as CommsNotificationKind, F as FormColumn, b as NotificationsAdapter, c as NotificationsFeed, d as createCommsNotificationsAdapter, e as emptyNotificationsFeed, n as normalizeNotificationsFeed } from './index-fydj5EU2.cjs';
4
+ import { N as NavItem } from './index-_Y7jOKPN.cjs';
5
+ export { C as CommsNotification, a as CommsNotificationKind, F as FormColumn, b as NotificationsAdapter, c as NotificationsFeed, d as createCommsNotificationsAdapter, e as emptyNotificationsFeed, n as normalizeNotificationsFeed } from './index-_Y7jOKPN.cjs';
6
6
  import { User, Session, SupabaseClient } from '@supabase/supabase-js';
7
7
  import './theme-preference.cjs';
8
8
 
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
3
  import { ReactNode, CSSProperties } from 'react';
4
- import { N as NavItem } from './index-KGYMc_1i.js';
5
- export { C as CommsNotification, a as CommsNotificationKind, F as FormColumn, b as NotificationsAdapter, c as NotificationsFeed, d as createCommsNotificationsAdapter, e as emptyNotificationsFeed, n as normalizeNotificationsFeed } from './index-KGYMc_1i.js';
4
+ import { N as NavItem } from './index-bYu6DxNt.js';
5
+ export { C as CommsNotification, a as CommsNotificationKind, F as FormColumn, b as NotificationsAdapter, c as NotificationsFeed, d as createCommsNotificationsAdapter, e as emptyNotificationsFeed, n as normalizeNotificationsFeed } from './index-bYu6DxNt.js';
6
6
  import { User, Session, SupabaseClient } from '@supabase/supabase-js';
7
7
  import './theme-preference.js';
8
8
 
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { warnDeprecated, TopBarTooltip } from './chunk-TUK2IEL5.js';
2
- export { FormColumn, SpeculationRulesScript, buildNavSpeculationRules, buildSpeculationRules, collectSiblingAppUrls, createCommsNotificationsAdapter, emptyNotificationsFeed, normalizeNotificationsFeed } from './chunk-TUK2IEL5.js';
1
+ import { warnDeprecated, TopBarTooltip } from './chunk-L73FZKGE.js';
2
+ export { FormColumn, SpeculationRulesScript, buildNavSpeculationRules, buildSpeculationRules, collectSiblingAppUrls, createCommsNotificationsAdapter, emptyNotificationsFeed, normalizeNotificationsFeed } from './chunk-L73FZKGE.js';
3
3
  import { readResolvedTheme } from './chunk-BHRVZPZ7.js';
4
4
  import { extendTheme, ChakraProvider, useColorMode } from '@chakra-ui/react';
5
5
  import { jsxs, jsx } from 'react/jsx-runtime';
package/dist/native.cjs CHANGED
@@ -94,9 +94,17 @@ var UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
94
94
  function isOrgId(v) {
95
95
  return typeof v === "string" && UUID_RE.test(v.trim());
96
96
  }
97
+ var AUTH_BASE_URL = "https://auth.politogyvrm.com";
98
+ var AUTH_BASE_URL_STAGING = "https://auth-staging.politogyvrm.com";
97
99
  function orgIdTail(orgId) {
98
100
  return isOrgId(orgId) ? orgId.trim().toLowerCase().slice(-7) : null;
99
101
  }
102
+ function authBaseUrl() {
103
+ if (typeof window !== "undefined" && window.location.hostname.toLowerCase().includes("staging")) {
104
+ return AUTH_BASE_URL_STAGING;
105
+ }
106
+ return AUTH_BASE_URL;
107
+ }
100
108
 
101
109
  // src/nav-preference.ts
102
110
  var NAV_DISPLAY_STORAGE_KEY = "politogy_nav_display";
@@ -392,8 +400,9 @@ if(dark)d.classList.add("dark");else d.classList.remove("dark");
392
400
  try{d.setAttribute("data-theme",dark?"dark":"light");d.style.colorScheme=dark?"dark":"light";}catch(e){}
393
401
  }catch(e){}})();`;
394
402
  var CORE_APP_ORIGIN = "https://app.politogyvrm.com";
395
- var CORE_BILLING_PATH = "/organization-settings/subscription-billing/text-email";
396
- var CORE_BILLING_URL = `${CORE_APP_ORIGIN}${CORE_BILLING_PATH}`;
403
+ var SETTINGS_APP_ORIGIN = "https://settings.politogyvrm.com";
404
+ var CORE_BILLING_PATH = "/organization-settings/subscription-billing";
405
+ var CORE_BILLING_URL = `${SETTINGS_APP_ORIGIN}${CORE_BILLING_PATH}`;
397
406
  var QUARANTINED_CONTACTS_URL = `https://contacts.politogyvrm.com/duplicates`;
398
407
  var SPECS_ORIGIN = "https://specs.politogyvrm.com";
399
408
  function withOrgParam(url, orgId) {
@@ -3206,7 +3215,7 @@ function NavActiveRail() {
3206
3215
  {
3207
3216
  "aria-hidden": "true",
3208
3217
  className: "pointer-events-none absolute inset-y-0 left-0 w-[2px]",
3209
- style: { background: "var(--mode-accent, transparent)" }
3218
+ style: { background: "var(--sidebar-active-marker, var(--mode-accent, transparent))" }
3210
3219
  }
3211
3220
  );
3212
3221
  }
@@ -3895,7 +3904,9 @@ function NavTabStrip({
3895
3904
  var BETA_BANNER_DEFAULTS = {
3896
3905
  text: "Our product is in Beta. Thank you for participating in the Pilot Program. ",
3897
3906
  linkLabel: "You can click here to see the Terms & Conditions for Beta users.",
3898
- href: "https://app.politogyvrm.com/beta-terms-and-conditions"
3907
+ // Legal pages live on Politogy ID (Reference/UI-Platform "Retirement of
3908
+ // app.politogyvrm.com"); resolved per render so staging stays in staging.
3909
+ href: () => `${authBaseUrl()}/beta-terms`
3899
3910
  };
3900
3911
  var BETA_BANNER_DISMISS_KEY = "politogy_beta_banner_dismissed";
3901
3912
  function clearBetaBannerDismissal() {
@@ -3908,7 +3919,7 @@ function clearBetaBannerDismissal() {
3908
3919
  function NavBetaBanner({ text, linkLabel, href, dismissible = true }) {
3909
3920
  const body = text ?? BETA_BANNER_DEFAULTS.text;
3910
3921
  const label = linkLabel ?? BETA_BANNER_DEFAULTS.linkLabel;
3911
- const target = href ?? BETA_BANNER_DEFAULTS.href;
3922
+ const target = href ?? BETA_BANNER_DEFAULTS.href();
3912
3923
  const [dismissed, setDismissed] = react.useState(false);
3913
3924
  react.useEffect(() => {
3914
3925
  if (!dismissible) return;