AugurHooksProvider | Context provider that supplies the Augur API client, auth, and cache to all hooks |
useAugurApi | Returns the Augur API client from context (throws if missing) |
useAugurApiOptional | Returns the Augur API client from context or undefined if missing |
useAugurAuth | Returns the current auth context (customer ID, session, etc.) |
useAugurCache | Returns the cache configuration from context |
useAugurSite | Returns the site configuration from context (defaults, formatting, analytics) |
useAugurOptions | Returns a deep proxy that produces TanStack Query options for every SDK method |
useCartStore | Zustand store for cart state (header UID, lines, totals) |
useCartHdrUid | Selector: current cart header UID |
useCartLines | Selector: current cart line items |
useCartQuantityTotal | Selector: sum of all line quantities in the cart |
useCartLineCount | Selector: number of distinct lines in the cart |
useSetCartHdrUid | Action: set the cart header UID |
useSetCartLines | Action: replace all cart line items |
useClearCart | Action: clear all cart state |
useItemFiltersStore | Zustand store for item list filter/sort state |
useDebounce | Debounces a value by a configurable delay |
useFormatPrice | Formats a numeric price using the site's locale and currency |
useStock | Fetches full TStock data and resolves it into normalized stock state |
executeBatchQuery | Executes a batch query that splits large ID lists into chunked parallel requests |
useCartActions | Provides add/update/remove cart mutation actions |
useCartInitialization | Initializes cart state from session on mount |
useCartPricing | Fetches computed cart pricing (subtotal, tax, shipping) |
usePaginationPrefetch | Prefetches adjacent pages for faster pagination navigation |
useAugurPersistence | Provides offline persistence for React Query cache via configurable storage |
usePaymentFlow | Manages the 5-step Unified payment lifecycle (transactionSetup, cardInfo, validate, accountQuery, billingUpdate) |
registerQueryAction | Registers a query action function for auto-detection by the provider and hooks |
getRegisteredQueryAction | Returns the registered query action function or null |
useModalLifecycle | Modal lifecycle hook -- scroll lock, Escape key, hydration gate |
useOrderReadiness | Debounced order readiness validation with customReadinessCheck override |
determineOrderReadiness | Pure function that checks all order readiness gates |
useCheckoutPersistence | Persists checkout fields to sessionStorage with TTL and restore-on-mount |
saveToSession | Save a value to sessionStorage with timestamp for TTL |
loadFromSession | Load a value from sessionStorage with TTL check and optional validator |
clearFromSession | Remove a key from sessionStorage |
clearCheckoutPersistence | Clear all checkout persistence keys from sessionStorage |