@fluid-app/rep-sdk 0.1.3 → 0.1.5

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
@@ -8,6 +8,8 @@ import { WidgetSchema, ThemeDefinition, ScreenDefinition as ScreenDefinition$1,
8
8
  export { AlignOptions, BackgroundType, BackgroundValue, BorderRadiusOptions, ButtonSizeOptions, ColorOptions, FontSizeOptions, GapOptions, NavigationItem, PaddingOptions, RepAppData, RepAppManifest, RepAppProfile, ResolvedTheme, SectionLayoutType, ShareableItem, ThemeColorInput, ThemeDefinition, ThemePayload, TypedWidgetSchema, WIDGET_TYPE_NAMES, WidgetPath, WidgetRegistry, WidgetSchema, WidgetType, WidgetTypeName, assertDefined, assertNever, isWidgetType, isWidgetTypeName, sectionLayoutConfig } from '@fluid-app/rep-core/types';
9
9
  import { RawApiTheme } from '@fluid-app/rep-core/theme';
10
10
  export { DEFAULT_COLORS, DEFAULT_FONT_FAMILIES, DEFAULT_FONT_SIZES, DEFAULT_RADII, DEFAULT_SPACING, DEFAULT_THEME_ID, DEFAULT_THEME_NAME, FONT_FAMILY_KEYS, FONT_SIZE_KEYS, FontFamilyKey, FontSizeKey, GenerateThemeCSSOptions, OklchPlain, RADIUS_KEYS, RadiusKey, RawApiTheme, ResolvedColorSet, ResolvedSemanticColor, SEMANTIC_COLOR_NAMES, SHADE_STEPS, SemanticColorName, ShadeStep, ThemeColorPlain, applyTheme, buildThemeDefinition, deriveDarkVariant, deserialiseTheme, generateShades, generateThemeCSS, getActiveThemeId, getDefaultThemeDefinition, getForegroundColor, mergeDarkOverrides, parseColor, removeAllThemes, removeTheme, resolveTheme, serialiseTheme, transformThemes } from '@fluid-app/rep-core/theme';
11
+ import { FluidAuthConfig, FluidAuthContextValue } from '@fluid-app/auth';
12
+ export { AUTH_CONSTANTS, DEFAULT_AUTH_URL, FluidAuthConfig, FluidAuthContextValue, JWTPayload, STORAGE_KEYS, TokenValidationResult, URL_PARAMS, USER_TYPES, UserType, cleanTokenFromUrl, clearTokens, createDefaultAuthRedirect, decodeToken, extractAllTokensFromUrl, extractCompanyTokenFromUrl, extractTokenFromUrl, getStoredToken, getTokenExpiration, getTokenTimeRemaining, hasStoredToken, hasTokenInUrl, isTokenExpired, isUserType, isValidToken, storeToken, validateToken } from '@fluid-app/auth';
11
13
  import { MessagingAuthContext, FileUploader } from '@fluid-app/fluid-messaging-core';
12
14
  export { FileUploader, MessagingAuthContext, MessagingCurrentUser, UploadCallbacks, UploadResult } from '@fluid-app/fluid-messaging-core';
13
15
  import { MessagingApiConfig } from '@fluid-app/fluid-messaging-api-client';
@@ -394,6 +396,12 @@ interface RawManifestResponse {
394
396
  definition_id: number;
395
397
  navigation_items?: RawApiNavigationItem[];
396
398
  };
399
+ mobile_navigation?: {
400
+ id: number;
401
+ name?: string;
402
+ definition_id: number;
403
+ navigation_items?: RawApiNavigationItem[];
404
+ };
397
405
  };
398
406
  };
399
407
  }
@@ -666,153 +674,6 @@ declare function FluidThemeProvider({ children, initialTheme, container, }: Flui
666
674
  */
667
675
  declare function useThemeContext(): ThemeContextValue;
668
676
 
669
- /**
670
- * Auth Types for Fluid Rep SDK
671
- *
672
- * These types define the JWT payload structure and authentication
673
- * configuration options for rep portal applications.
674
- */
675
- /**
676
- * User type constant - single source of truth for user role values.
677
- * Use USER_TYPES.admin instead of "admin" for type-safe comparisons.
678
- */
679
- declare const USER_TYPES: {
680
- readonly admin: "admin";
681
- readonly rep: "rep";
682
- readonly root_admin: "root_admin";
683
- readonly customer: "customer";
684
- };
685
- /**
686
- * Union type of all user types, derived from USER_TYPES constant.
687
- * @see deriving-typeof-for-object-keys pattern
688
- */
689
- type UserType = (typeof USER_TYPES)[keyof typeof USER_TYPES];
690
- /**
691
- * Runtime validation for user types.
692
- * @param value - The value to check
693
- * @returns true if value is a valid UserType
694
- */
695
- declare function isUserType(value: string): value is UserType;
696
- /**
697
- * JWT payload structure from Fluid Commerce authentication.
698
- * Contains user identity and role information.
699
- */
700
- interface JWTPayload {
701
- /** User ID */
702
- id?: number | undefined;
703
- /** User email address */
704
- email?: string | undefined;
705
- /** Full name of the user */
706
- full_name?: string | undefined;
707
- /** User role type */
708
- user_type: UserType;
709
- /** Original user type (for impersonation scenarios) */
710
- og_user_type?: UserType | undefined;
711
- /** Company ID the user belongs to */
712
- company_id?: number | undefined;
713
- /** Token expiration timestamp (Unix seconds) */
714
- exp?: number | undefined;
715
- /** Authentication type (e.g., "standard", "impersonation") */
716
- auth_type?: string | undefined;
717
- }
718
- /**
719
- * Configuration options for FluidAuthProvider.
720
- * All options have sensible defaults.
721
- */
722
- interface FluidAuthConfig {
723
- /**
724
- * URL parameter name for the auth token.
725
- * @default "fluidUserToken"
726
- */
727
- tokenKey?: string;
728
- /**
729
- * Cookie name for storing the auth token.
730
- * @default "auth_token"
731
- */
732
- cookieKey?: string;
733
- /**
734
- * Cookie max age in seconds.
735
- * @default 777600 (9 days)
736
- */
737
- cookieMaxAge?: number;
738
- /**
739
- * Grace period in milliseconds to account for clock skew
740
- * when checking token expiration.
741
- * @default 30000 (30 seconds)
742
- */
743
- gracePeriodMs?: number;
744
- /**
745
- * Callback invoked when authentication fails (no valid token).
746
- * When omitted, the SDK redirects to `authUrl` with the current URL
747
- * as a redirect parameter so users can log in and return.
748
- */
749
- onAuthFailure?: () => void;
750
- /**
751
- * Base URL for the authentication page.
752
- * Used by the default auth failure redirect when `onAuthFailure` is not provided.
753
- * Ignored when a custom `onAuthFailure` callback is set.
754
- * @default "https://auth.fluid.app"
755
- */
756
- authUrl?: string;
757
- /**
758
- * Enable dev-mode auth bypass.
759
- * When true AND running in Vite dev mode (import.meta.env.DEV),
760
- * auth will use a synthetic mock user instead of requiring a real JWT.
761
- * The mock user allows UI rendering but API calls will fail (token is null).
762
- * @default false
763
- */
764
- devBypass?: boolean;
765
- /**
766
- * JWKS (JSON Web Key Set) URL for signature verification.
767
- * When provided, JWT signatures will be verified against keys
768
- * from this endpoint before accepting the token.
769
- *
770
- * This provides defense-in-depth client-side verification.
771
- * Without this, tokens are only decoded (not verified) client-side,
772
- * and real verification happens server-side on API calls.
773
- *
774
- * @example "https://api.fluid.app/.well-known/jwks.json"
775
- */
776
- jwksUrl?: string;
777
- }
778
- /**
779
- * Value provided by the FluidAuthContext.
780
- * All properties are readonly since context values should not be mutated by consumers.
781
- */
782
- interface FluidAuthContextValue {
783
- /** Whether the user is authenticated with a valid token */
784
- readonly isAuthenticated: boolean;
785
- /** Whether authentication is still being initialized */
786
- readonly isLoading: boolean;
787
- /** Decoded JWT payload if authenticated, null otherwise */
788
- readonly user: JWTPayload | null;
789
- /** Raw JWT token string if authenticated, null otherwise */
790
- readonly token: string | null;
791
- /** Clear authentication state and stored tokens */
792
- readonly clearAuth: () => void;
793
- /** Authentication error if any occurred during initialization */
794
- readonly error: Error | null;
795
- }
796
- /**
797
- * Result of token validation.
798
- * Uses a discriminated union for type-safe handling of valid/invalid states.
799
- */
800
- type TokenValidationResult = {
801
- /** Token is valid */
802
- isValid: true;
803
- /** Decoded JWT payload */
804
- payload: JWTPayload;
805
- /** No error when valid */
806
- error?: undefined;
807
- } | {
808
- /** Token is invalid */
809
- isValid: false;
810
- /** Decoded JWT payload if parseable but expired */
811
- payload?: JWTPayload;
812
- /** Error message explaining why validation failed */
813
- error: string;
814
- };
815
-
816
677
  interface FluidAuthProviderProps {
817
678
  /** React children to wrap with auth context */
818
679
  children: ReactNode;
@@ -1747,318 +1608,6 @@ declare function useContacts(_params?: UseContactsParams): UseContactsResult;
1747
1608
  */
1748
1609
  declare function useContact(_contactId: string): UseContactResult;
1749
1610
 
1750
- /**
1751
- * Auth Constants for Fluid Rep SDK
1752
- *
1753
- * These constants define the default values for authentication
1754
- * configuration and storage keys.
1755
- */
1756
- /**
1757
- * Authentication-related constants with sensible defaults.
1758
- */
1759
- declare const AUTH_CONSTANTS: {
1760
- /**
1761
- * Grace period in milliseconds to account for clock skew
1762
- * when checking token expiration. Tokens are considered valid
1763
- * if they expire within this period.
1764
- */
1765
- readonly TOKEN_GRACE_PERIOD_MS: number;
1766
- /**
1767
- * Default cookie max age in seconds (9 days).
1768
- * This matches the typical JWT token lifetime from the Fluid API.
1769
- */
1770
- readonly COOKIE_MAX_AGE: number;
1771
- };
1772
- /**
1773
- * Storage keys for auth tokens.
1774
- */
1775
- declare const STORAGE_KEYS: {
1776
- /** localStorage key for user token */
1777
- readonly USER_TOKEN: "fluidUserToken";
1778
- /** localStorage key for company token (legacy) */
1779
- readonly COMPANY_TOKEN: "fluidCompanyToken";
1780
- /** Cookie name for auth token */
1781
- readonly AUTH_COOKIE: "auth_token";
1782
- };
1783
- /**
1784
- * Default URL parameter names for token extraction.
1785
- */
1786
- declare const URL_PARAMS: {
1787
- /** URL parameter name for user token */
1788
- readonly USER_TOKEN: "fluidUserToken";
1789
- /** URL parameter name for company token (legacy) */
1790
- readonly COMPANY_TOKEN: "fluidCompanyToken";
1791
- };
1792
-
1793
- /**
1794
- * Auth Redirect Utilities
1795
- *
1796
- * Provides default redirect behavior for authentication failures.
1797
- * When no custom callback is provided, the SDK redirects to Fluid's
1798
- * auth page with a redirect_url pointing back to the current page.
1799
- *
1800
- * Includes loop detection: if a redirect was attempted within the
1801
- * cooldown window, subsequent calls are suppressed to prevent
1802
- * infinite redirect cycles (e.g., auth returns a token the API rejects).
1803
- */
1804
- /**
1805
- * Default Fluid authentication URL.
1806
- * Users are redirected here when auth fails and no custom handler is provided.
1807
- */
1808
- declare const DEFAULT_AUTH_URL = "https://auth.fluid.app";
1809
- /**
1810
- * Creates a redirect function that navigates to the auth URL
1811
- * with the current page URL encoded as a redirect parameter.
1812
- *
1813
- * Includes loop detection: if a redirect was attempted within the last
1814
- * {@link REDIRECT_COOLDOWN_S} seconds, the redirect is suppressed and
1815
- * the normal error UI is allowed to render instead.
1816
- *
1817
- * @param authUrl - Custom auth URL to redirect to. Defaults to DEFAULT_AUTH_URL.
1818
- * @returns A function that performs the redirect when called (no-op if loop detected).
1819
- *
1820
- * @example
1821
- * ```ts
1822
- * const redirect = createDefaultAuthRedirect();
1823
- * // Redirects to: https://auth.fluid.app/?redirect_url=https%3A%2F%2Fmy-portal.com%2Fdashboard
1824
- * redirect();
1825
- * ```
1826
- */
1827
- declare function createDefaultAuthRedirect(authUrl?: string): () => void;
1828
-
1829
- /**
1830
- * Token Utilities for Fluid Rep SDK
1831
- *
1832
- * Functions for decoding, validating, and checking JWT tokens.
1833
- */
1834
-
1835
- /**
1836
- * Decode a JWT token and extract its payload.
1837
- *
1838
- * **Security note:** This function does NOT verify the JWT signature.
1839
- * It only decodes the payload. Any valid JWT structure will be accepted,
1840
- * regardless of who signed it.
1841
- *
1842
- * Client-side token decoding is used for UX purposes only (displaying
1843
- * user info, role-based UI). The real security boundary is the server-side
1844
- * API, which verifies the signature on every request.
1845
- *
1846
- * For signature verification, use {@link verifyToken} with a JWKS URL.
1847
- *
1848
- * @param token - The JWT token string
1849
- * @returns The decoded JWT payload, or null if decoding fails
1850
- *
1851
- * @example
1852
- * ```ts
1853
- * const payload = decodeToken(token);
1854
- * if (payload) {
1855
- * console.log(`User: ${payload.email}`);
1856
- * }
1857
- * ```
1858
- */
1859
- declare function decodeToken(token: string): JWTPayload | null;
1860
- /**
1861
- * Check if a token has expired.
1862
- * Includes a configurable grace period to account for clock skew.
1863
- *
1864
- * @param token - The JWT token string
1865
- * @param gracePeriodMs - Grace period in milliseconds (default: 30 seconds)
1866
- * @returns true if the token is expired, false otherwise
1867
- *
1868
- * @example
1869
- * ```ts
1870
- * if (isTokenExpired(token)) {
1871
- * // Token is expired, need to re-authenticate
1872
- * clearAuth();
1873
- * }
1874
- * ```
1875
- */
1876
- declare function isTokenExpired(token: string, gracePeriodMs?: number): boolean;
1877
- /**
1878
- * Validate a JWT token for format and expiration.
1879
- *
1880
- * **Security note:** This function checks JWT structure and expiration
1881
- * but does NOT verify the signature. It is a UX-level check only.
1882
- * For signature verification, use {@link verifyToken} with a JWKS URL.
1883
- *
1884
- * @param token - The JWT token string
1885
- * @param gracePeriodMs - Grace period for expiration check (default: 30 seconds)
1886
- * @returns Validation result with status and decoded payload if valid
1887
- *
1888
- * @example
1889
- * ```ts
1890
- * const result = validateToken(token);
1891
- * if (result.isValid) {
1892
- * console.log(`Welcome, ${result.payload?.full_name}`);
1893
- * } else {
1894
- * console.error(`Auth failed: ${result.error}`);
1895
- * }
1896
- * ```
1897
- */
1898
- declare function validateToken(token: string, gracePeriodMs?: number): TokenValidationResult;
1899
- /**
1900
- * Type guard to check if a validation result is valid.
1901
- * Enables TypeScript narrowing of the result type.
1902
- *
1903
- * @param result - The validation result to check
1904
- * @returns true if the token is valid (narrows payload to non-optional)
1905
- *
1906
- * @example
1907
- * ```ts
1908
- * const result = validateToken(token);
1909
- * if (isValidToken(result)) {
1910
- * // result.payload is guaranteed to be JWTPayload (not undefined)
1911
- * console.log(result.payload.email);
1912
- * }
1913
- * ```
1914
- */
1915
- declare function isValidToken(result: TokenValidationResult): result is TokenValidationResult & {
1916
- isValid: true;
1917
- payload: JWTPayload;
1918
- };
1919
- /**
1920
- * Get the expiration time of a token as a Date.
1921
- *
1922
- * @param token - The JWT token string
1923
- * @returns The expiration Date, or null if token has no expiration or is invalid
1924
- */
1925
- declare function getTokenExpiration(token: string): Date | null;
1926
- /**
1927
- * Get the time remaining until token expiration in milliseconds.
1928
- *
1929
- * @param token - The JWT token string
1930
- * @returns Milliseconds until expiration, or 0 if expired/invalid, or Infinity if no expiration
1931
- */
1932
- declare function getTokenTimeRemaining(token: string): number;
1933
-
1934
- /**
1935
- * Token Storage Utilities for Fluid Rep SDK
1936
- *
1937
- * Functions for storing and retrieving auth tokens from
1938
- * cookies and localStorage.
1939
- */
1940
-
1941
- /**
1942
- * Get the stored auth token.
1943
- * Checks cookie first, then falls back to localStorage.
1944
- *
1945
- * @param config - Optional auth config for custom cookie key
1946
- * @returns The stored token or null if not found
1947
- *
1948
- * @example
1949
- * ```ts
1950
- * const token = getStoredToken();
1951
- * if (token) {
1952
- * console.log("User is logged in");
1953
- * }
1954
- * ```
1955
- */
1956
- declare function getStoredToken(config?: FluidAuthConfig): string | null;
1957
- /**
1958
- * Store an auth token in both cookie and localStorage.
1959
- * Using both provides redundancy and compatibility with different auth flows.
1960
- *
1961
- * @param token - The JWT token to store
1962
- * @param config - Optional auth config for custom storage options
1963
- *
1964
- * @example
1965
- * ```ts
1966
- * storeToken(newToken);
1967
- * // Token is now accessible via getStoredToken()
1968
- * ```
1969
- */
1970
- declare function storeToken(token: string, config?: FluidAuthConfig): void;
1971
- /**
1972
- * Clear all stored auth tokens from cookies and localStorage.
1973
- *
1974
- * @param config - Optional auth config for custom cookie key
1975
- *
1976
- * @example
1977
- * ```ts
1978
- * // User logs out
1979
- * clearTokens();
1980
- * ```
1981
- */
1982
- declare function clearTokens(config?: FluidAuthConfig): void;
1983
- /**
1984
- * Check if any auth token is stored.
1985
- *
1986
- * @param config - Optional auth config
1987
- * @returns true if a token is stored, false otherwise
1988
- */
1989
- declare function hasStoredToken(config?: FluidAuthConfig): boolean;
1990
-
1991
- /**
1992
- * URL Token Utilities for Fluid Rep SDK
1993
- *
1994
- * Functions for extracting and cleaning auth tokens from URL parameters.
1995
- * This is the primary way tokens are passed from the parent Fluid Commerce
1996
- * app to embedded rep portals.
1997
- *
1998
- * **Security model**: Tokens in URL parameters are a known tradeoff.
1999
- * The token is extracted and immediately cleaned from the URL via
2000
- * `history.replaceState()`. A `Referrer-Policy` meta tag in the
2001
- * starter template prevents the token from leaking in referrer headers.
2002
- * See docs/authentication.md for full security analysis.
2003
- */
2004
- /**
2005
- * Extract the auth token from the URL query parameters.
2006
- *
2007
- * @param tokenKey - The URL parameter name (default: "fluidUserToken")
2008
- * @returns The token value or null if not present
2009
- *
2010
- * @example
2011
- * ```ts
2012
- * // URL: https://myportal.com?fluidUserToken=eyJhbG...
2013
- * const token = extractTokenFromUrl();
2014
- * // token = "eyJhbG..."
2015
- * ```
2016
- */
2017
- declare function extractTokenFromUrl(tokenKey?: string): string | null;
2018
- /**
2019
- * Extract the company token from the URL query parameters.
2020
- * This is a legacy parameter that may still be used in some flows.
2021
- *
2022
- * @param tokenKey - The URL parameter name (default: "fluidCompanyToken")
2023
- * @returns The token value or null if not present
2024
- */
2025
- declare function extractCompanyTokenFromUrl(tokenKey?: string): string | null;
2026
- /**
2027
- * Remove the auth token from the URL without reloading the page.
2028
- * This prevents the token from being accidentally shared via URL copy/paste
2029
- * or appearing in browser history.
2030
- *
2031
- * Uses history.replaceState to update the URL cleanly.
2032
- *
2033
- * @param tokenKey - The URL parameter name to remove (default: "fluidUserToken")
2034
- *
2035
- * @example
2036
- * ```ts
2037
- * // Before: https://myportal.com?fluidUserToken=eyJhbG...&page=1
2038
- * cleanTokenFromUrl();
2039
- * // After: https://myportal.com?page=1
2040
- * ```
2041
- */
2042
- declare function cleanTokenFromUrl(tokenKey?: string): void;
2043
- /**
2044
- * Check if the URL contains an auth token parameter.
2045
- *
2046
- * @param tokenKey - The URL parameter name (default: "fluidUserToken")
2047
- * @returns true if the URL contains the token parameter
2048
- */
2049
- declare function hasTokenInUrl(tokenKey?: string): boolean;
2050
- /**
2051
- * Extract all auth-related tokens from the URL at once.
2052
- *
2053
- * @param userTokenKey - The URL parameter name for user token
2054
- * @param companyTokenKey - The URL parameter name for company token
2055
- * @returns Object with both token values (or null if not present)
2056
- */
2057
- declare function extractAllTokensFromUrl(userTokenKey?: string, companyTokenKey?: string): {
2058
- userToken: string | null;
2059
- companyToken: string | null;
2060
- };
2061
-
2062
1611
  interface RequireAuthProps {
2063
1612
  /** Content to render when authenticated */
2064
1613
  children: ReactNode;
@@ -2510,11 +2059,12 @@ declare function SdkNavigation({ navItems, currentSlug, onNavigate, navSlugs, }:
2510
2059
 
2511
2060
  interface SdkHeaderProps {
2512
2061
  tabs: NavigationItem[];
2062
+ mobileTabs?: NavigationItem[];
2513
2063
  currentSlug: string;
2514
2064
  onNavigate: (slug: string) => void;
2515
2065
  navSlugs: string[];
2516
2066
  }
2517
- declare function SdkHeader({ tabs, currentSlug, onNavigate, navSlugs, }: SdkHeaderProps): react_jsx_runtime.JSX.Element;
2067
+ declare function SdkHeader({ tabs, mobileTabs, currentSlug, onNavigate, navSlugs, }: SdkHeaderProps): react_jsx_runtime.JSX.Element;
2518
2068
 
2519
2069
  interface PageRouterProps {
2520
2070
  currentSlug: string;
@@ -2593,4 +2143,4 @@ declare function matchSlugPrefix(fullSlug: string, navSlugs: string[]): SlugMatc
2593
2143
  declare function extractSlugFromPathname(pathname: string, basePath: string): string;
2594
2144
  declare function isSlugInSection(item: NavigationItem, currentSlug: string, navSlugs: string[]): boolean;
2595
2145
 
2596
- export { ACTIVITY_SLUGS, APP_DATA_QUERY_KEY, AUTH_CONSTANTS, type Activity as ActivityItem, type ActivitySlug, ApiError, AppLink, type AppLinkProps, type AppNavigationContextValue, AppNavigationProvider, type AppNavigationProviderProps, AppShell, type AppShellProps, AuthError, type AuthErrorProps, AuthLoading, type BaseListParams, BuilderScreenView, type BuilderScreenViewProps, CORE_PAGE_IDS, CURRENT_REP_QUERY_KEY, type CalendarEvent, type CatchUp as CatchUpItem, type Contact, type ContactAddress, type ContactStatus, type ContactType, ContactsScreen, type Conversation, type ConversationStatus, type CreateOrderData, CustomersScreen, DEFAULT_AUTH_URL, DEFAULT_SDK_WIDGET_REGISTRY, type DashboardData, type FluidAuthConfig, type FluidAuthContextValue, FluidAuthProvider, type FluidAuthProviderProps, type FluidClient, FluidProvider, type FluidProviderProps, type FluidSDKConfig, FluidThemeProvider, type FluidThemeProviderProps, type JWTPayload, type ListQueryResult, type Message, type MessageType, type MessagingConfig, MessagingScreen, type MySiteData, type Navigation, type Order, type OrderLineItem, type OrderListParams, OrdersScreen, PAGE_CATEGORIES, PERMISSIONS_QUERY_KEY, PROFILE_QUERY_KEY, type PageCategory, type PageCategoryId, type PageOverride, type PageReference, PageRouter, type PageRouterProps, type PageTemplate, PageTemplateProvider, PageTemplateRegistry, type PaginationParams, type Participant, type PermissionAction, type Permissions, type Product, type ProductListParams, ProductsScreen, type Profile, type QueryResult, type QueryResultNullable, QuickLinksDropdown, type QuickLinksDropdownProps, type RawApiNavigationItem, type RawApiScreen, type RawManifestResponse, type Rep, type RequestOptions, RequireAuth, type RequireAuthProps, type ResourcePermissions, STORAGE_KEYS, type SalesData, type SalesDataPoint, type SalesParams, type ScreenDefinition, SdkHeader, type SdkHeaderProps, SdkNavigation, type SdkNavigationProps, type SlugMatch, type Todo as TodoItem, type TokenValidationResult, URL_PARAMS, USER_TYPES, type UpdateRepData, type UseContactResult, type UseContactsParams, type UseContactsResult, type UseConversationMessagesResult, type UseConversationsResult, type UseFluidPermissionsResult, type UseFluidThemeResult, type UseListResourceHook, type UseSingleResourceHook, type UserMe, type UserPermissions, type UserType, type ValueListQueryResult, type WithData, cleanTokenFromUrl, clearTokens, collectNavSlugs, contactsScreenPropertySchema, createDefaultAuthRedirect, createFluidClient, createFluidFileUploader, customersScreenPropertySchema, decodeToken, extractAllTokensFromUrl, extractCompanyTokenFromUrl, extractSlugFromPathname, extractTokenFromUrl, getAvailablePageTemplates, getCorePageTemplates, getOptionalPageTemplates, getProperty, getStoredToken, getTokenExpiration, getTokenTimeRemaining, hasData, hasStoredToken, hasTokenInUrl, isActivitySlug, isApiError, isContactStatus, isErrorResult, isIdle, isLoading, isSlugInSection, isTokenExpired, isUserType, isValidToken, matchSlugPrefix, messagingScreenPropertySchema, normalizeComponentTree, ordersScreenPropertySchema, productsScreenPropertySchema, resolveNavigationPages, screenPropertySchemas, selectProperty, storeToken, toNavigationItem, toScreenDefinition, transformManifestToRepAppData, useActivities, useAppNavigation, useCalendarEvents, useCatchUps, useContact, useContacts, useConversationMessages, useConversations, useCurrentRep, useFluidApi, useFluidApp, useFluidAuth, useFluidAuthContext, useFluidContext, useFluidPermissions, useFluidProfile, useFluidTheme, useMessagingAuth, useMessagingConfig, useMySite, usePageTemplates, useResolvedPages, useThemeContext, useTodos, validateNavigationPages, validateToken };
2146
+ export { ACTIVITY_SLUGS, APP_DATA_QUERY_KEY, type Activity as ActivityItem, type ActivitySlug, ApiError, AppLink, type AppLinkProps, type AppNavigationContextValue, AppNavigationProvider, type AppNavigationProviderProps, AppShell, type AppShellProps, AuthError, type AuthErrorProps, AuthLoading, type BaseListParams, BuilderScreenView, type BuilderScreenViewProps, CORE_PAGE_IDS, CURRENT_REP_QUERY_KEY, type CalendarEvent, type CatchUp as CatchUpItem, type Contact, type ContactAddress, type ContactStatus, type ContactType, ContactsScreen, type Conversation, type ConversationStatus, type CreateOrderData, CustomersScreen, DEFAULT_SDK_WIDGET_REGISTRY, type DashboardData, FluidAuthProvider, type FluidAuthProviderProps, type FluidClient, FluidProvider, type FluidProviderProps, type FluidSDKConfig, FluidThemeProvider, type FluidThemeProviderProps, type ListQueryResult, type Message, type MessageType, type MessagingConfig, MessagingScreen, type MySiteData, type Navigation, type Order, type OrderLineItem, type OrderListParams, OrdersScreen, PAGE_CATEGORIES, PERMISSIONS_QUERY_KEY, PROFILE_QUERY_KEY, type PageCategory, type PageCategoryId, type PageOverride, type PageReference, PageRouter, type PageRouterProps, type PageTemplate, PageTemplateProvider, PageTemplateRegistry, type PaginationParams, type Participant, type PermissionAction, type Permissions, type Product, type ProductListParams, ProductsScreen, type Profile, type QueryResult, type QueryResultNullable, QuickLinksDropdown, type QuickLinksDropdownProps, type RawApiNavigationItem, type RawApiScreen, type RawManifestResponse, type Rep, type RequestOptions, RequireAuth, type RequireAuthProps, type ResourcePermissions, type SalesData, type SalesDataPoint, type SalesParams, type ScreenDefinition, SdkHeader, type SdkHeaderProps, SdkNavigation, type SdkNavigationProps, type SlugMatch, type Todo as TodoItem, type UpdateRepData, type UseContactResult, type UseContactsParams, type UseContactsResult, type UseConversationMessagesResult, type UseConversationsResult, type UseFluidPermissionsResult, type UseFluidThemeResult, type UseListResourceHook, type UseSingleResourceHook, type UserMe, type UserPermissions, type ValueListQueryResult, type WithData, collectNavSlugs, contactsScreenPropertySchema, createFluidClient, createFluidFileUploader, customersScreenPropertySchema, extractSlugFromPathname, getAvailablePageTemplates, getCorePageTemplates, getOptionalPageTemplates, getProperty, hasData, isActivitySlug, isApiError, isContactStatus, isErrorResult, isIdle, isLoading, isSlugInSection, matchSlugPrefix, messagingScreenPropertySchema, normalizeComponentTree, ordersScreenPropertySchema, productsScreenPropertySchema, resolveNavigationPages, screenPropertySchemas, selectProperty, toNavigationItem, toScreenDefinition, transformManifestToRepAppData, useActivities, useAppNavigation, useCalendarEvents, useCatchUps, useContact, useContacts, useConversationMessages, useConversations, useCurrentRep, useFluidApi, useFluidApp, useFluidAuth, useFluidAuthContext, useFluidContext, useFluidPermissions, useFluidProfile, useFluidTheme, useMessagingAuth, useMessagingConfig, useMySite, usePageTemplates, useResolvedPages, useThemeContext, useTodos, validateNavigationPages };