@apolitical/component-library 9.0.0-beta.0 → 9.0.0-beta.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.
@@ -0,0 +1,2 @@
1
+ export { SUPRSEND_THEME } from './suprsend-theme';
2
+ export { FALLBACK_TRANSLATIONS, type SuprSendTranslations, } from './suprsend-translations';
@@ -0,0 +1,15 @@
1
+ export interface SuprSendTranslations {
2
+ notifications?: string;
3
+ markAllAsRead?: string;
4
+ noNotificationsTitle?: string;
5
+ noNotificationsDescription?: string;
6
+ pinned?: string;
7
+ markAsUnread?: string;
8
+ markAsRead?: string;
9
+ archive?: string;
10
+ expiresIn?: string;
11
+ }
12
+ /**
13
+ * Fallback English translations if all else fails
14
+ */
15
+ export declare const FALLBACK_TRANSLATIONS: SuprSendTranslations;
@@ -1,3 +1,4 @@
1
+ import { type SuprSendTranslations } from './constants';
1
2
  interface Props {
2
3
  /** If the navigation should be hidden, for pages where we need the user to focus on the content, like onboarding */
3
4
  showNavigation?: boolean;
@@ -8,6 +9,10 @@ interface Props {
8
9
  /** Function to handle the language switcher click */
9
10
  onLanguageSwitcherClick?: () => void;
10
11
  suprSendWorkspaceKey?: string;
12
+ /** Locale for localized components like SuprSend inbox */
13
+ locale?: string;
14
+ /** SuprSend notification translations */
15
+ suprSendTranslations?: SuprSendTranslations;
11
16
  }
12
17
  export declare enum NAVIGATION_MENUS {
13
18
  NAVIGATION = "navigation",
@@ -15,5 +20,5 @@ export declare enum NAVIGATION_MENUS {
15
20
  ACCOUNT = "account-navigation",
16
21
  SITE = "site-navigation"
17
22
  }
18
- declare const Header: ({ showNavigation, showLanguageUnavailableMessage, showLanguageSwitcher, onLanguageSwitcherClick, suprSendWorkspaceKey, }: Props) => import("react/jsx-runtime").JSX.Element | null;
23
+ declare const Header: ({ showNavigation, showLanguageUnavailableMessage, showLanguageSwitcher, onLanguageSwitcherClick, suprSendWorkspaceKey, locale, suprSendTranslations, }: Props) => import("react/jsx-runtime").JSX.Element | null;
19
24
  export default Header;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "9.0.0-beta.0",
3
+ "version": "9.0.0-beta.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@apolitical/contracts": "3.13.0",
20
- "@suprsend/react-inbox": "3.6.1",
20
+ "@suprsend/react-inbox": "3.9.0",
21
21
  "@tanstack/query-core": "5.8.3",
22
22
  "@tanstack/react-query": "5.8.3",
23
23
  "@tanstack/react-query-devtools": "5.8.3",