@simpleapps-com/augur-hooks 2.0.10 → 2.0.12

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/llms.txt ADDED
@@ -0,0 +1,199 @@
1
+ # @simpleapps-com/augur-hooks
2
+
3
+ > Cross-platform React Query hooks and Zustand stores for Augur ecommerce sites
4
+
5
+ Version: 2.0.9
6
+
7
+ ## @simpleapps-com/augur-hooks
8
+
9
+ - value: AugurApiClient
10
+ - value: AugurAuthContext
11
+ - value: AugurCallbacks
12
+ - value: AugurHooksProvider
13
+ - value: AugurSiteConfig
14
+ - value: AugurSiteDefaults
15
+ - value: AugurSiteFormatting
16
+ - value: BatchInvMastDocParam
17
+ - value: CacheConfig
18
+ - value: CacheProvider
19
+ - value: CacheTierConfig
20
+ - value: DeepQueryOptions
21
+ - value: DerivePriceInput
22
+ - value: DerivedPrice
23
+ - value: EdgeCacheValue
24
+ - value: GetItemCategoryApiOptions
25
+ - value: InfiniteScrollPage
26
+ - value: PageData
27
+ - value: PersistenceConfig
28
+ - value: ProxyMutationOptions
29
+ - value: ProxyQueryOptions
30
+ - value: ResolveStockInput
31
+ - value: ResolvedStock
32
+ - value: SearchSuggestion
33
+ - value: SearchSuggestionsResponse
34
+ - function: createSiteHooks - Creates a pre-configured provider component and re-exports all hooks.
35
+ - function: executeBatchQuery
36
+ - function: getBatchInvMastDocKey
37
+ - value: getBatchInvMastDocOptions
38
+ - value: getCartPricingQueryOptions
39
+ - value: getCategoryItemsInfiniteKey
40
+ - value: getCategoryItemsInfiniteOptions
41
+ - value: getCustomerInvoiceDetailKey
42
+ - value: getCustomerInvoicesKey
43
+ - value: getCustomerOrderDetailKey
44
+ - value: getCustomerOrdersKey
45
+ - value: getCustomerQuoteDetailKey
46
+ - value: getCustomerQuotesKey
47
+ - value: getInvMastDocKey
48
+ - value: getInvMastDocOptions
49
+ - value: getInvMastKey
50
+ - value: getInvMastOptions
51
+ - function: getInvMastStockKey
52
+ - value: getInvMastStockOptions
53
+ - value: getItemAttributesKey
54
+ - value: getItemAttributesOptions
55
+ - value: getItemCategoryKey
56
+ - value: getItemCategoryOptions
57
+ - value: getItemDetailsKey
58
+ - value: getItemDetailsOptions
59
+ - value: getItemPriceKey
60
+ - value: getItemPriceOptions
61
+ - value: getItemSearchInfiniteKey
62
+ - value: getItemSearchInfiniteOptions
63
+ - value: getJoomlaContentKey
64
+ - value: getJoomlaContentListKey
65
+ - value: getJoomlaContentListOptions
66
+ - value: getJoomlaContentOptions
67
+ - value: getJoomlaMenuDocKey
68
+ - value: getJoomlaMenuDocOptions
69
+ - value: getJoomlaMenuKey
70
+ - value: getJoomlaMenuOptions
71
+ - value: getProductCategoryKey
72
+ - value: getProductCategoryOptions
73
+ - value: getProductSearchKey
74
+ - value: getProductSearchOptions
75
+ - value: getSearchSuggestionsKey
76
+ - value: getSearchSuggestionsOptions
77
+ - value: getStockKey
78
+ - value: getStockOptions
79
+ - value: useAugurApi
80
+ - value: useAugurAuth
81
+ - value: useAugurCache
82
+ - value: useAugurOptions
83
+ - function: useAugurPersistence - Returns a fully configured `persistOptions` object for use with
84
+ - value: useAugurSite
85
+ - function: useBatchInvMastDoc - Fetches and caches multiple inventory master documents in a single batch.
86
+ - function: useCartActions - Optimistic cart actions hook with automatic rollback on failure.
87
+ - const: useCartHdrUid - Select the current cart header UID.
88
+ - function: useCartInitialization - Initialize cart state from session (authenticated) or cookie (guest).
89
+ - const: useCartLineCount - Select the number of distinct line items in the cart.
90
+ - const: useCartLines - Select the current cart line items array.
91
+ - function: useCartPricing - Centralized hook for cart/checkout pricing.
92
+ - const: useCartQuantityTotal - Select the total quantity summed across all cart lines.
93
+ - const: useCartStore - Zustand store for cart state. Prefer the individual selector hooks below for optimal re-renders.
94
+ - function: useCategoryItemsInfinite - Infinite scroll for category product listings.
95
+ - const: useClearCart - Get the `clearCart` action (stable reference).
96
+ - function: useCustomerInvoices
97
+ - function: useCustomerOrders
98
+ - function: useCustomerQuotes
99
+ - function: useDebounce - Debounces a rapidly-changing value.
100
+ - function: useFormatPrice - Hook that returns a price formatter.
101
+ - function: useInvMast
102
+ - function: useInvMastDoc - Fetches and caches an inventory master document via the augur-api SDK.
103
+ - function: useInvMastStock
104
+ - function: useInvoiceDetail
105
+ - function: useItemAttributes
106
+ - function: useItemCategory - Fetches and caches item category data via the augur-api SDK.
107
+ - function: useItemDetails
108
+ - const: useItemFiltersStore - Zustand store for item list filters, sorting, and pagination state.
109
+ - function: useItemPrice - Fetches and caches item pricing via the augur-api SDK.
110
+ - function: useItemSearchInfinite - Infinite scroll for search results.
111
+ - function: useJoomlaContent
112
+ - function: useJoomlaContentList
113
+ - function: useJoomlaMenu
114
+ - function: useJoomlaMenuDoc
115
+ - function: useOrderDetail
116
+ - const: usePaginationPrefetch - Prefetch adjacent pages on hover for instant pagination.
117
+ - function: useProductCategory
118
+ - function: useProductSearch - Searches products via the augur-api OpenSearch endpoint.
119
+ - function: useQuoteDetail
120
+ - function: useSearchSuggestions - Fetches search suggestions via the augur-api OpenSearch endpoint.
121
+ - const: useSetCartHdrUid - Get the `setCartHdrUid` action (stable reference).
122
+ - const: useSetCartLines - Get the `setCartLines` action (stable reference). Also recomputes totals.
123
+ - function: useStock - Fetches full TStock data and resolves it into a normalized stock object.
124
+ - type: BatchQueryConfig
125
+ - type: CartActionCallbacks
126
+ - type: CartInitCallbacks
127
+ - type: CartPriceData
128
+ - type: CartPricingResult
129
+ - type: CartSessionInfo
130
+ - type: CreateSiteHooksConfig
131
+ - type: FormatPriceCallOptions
132
+ - type: UseFormatPriceOptions
133
+ - type: UseStockOptions
134
+
135
+ ## @simpleapps-com/augur-hooks/server
136
+
137
+ - value: AugurAuthContext
138
+ - value: CacheConfig
139
+ - value: InfiniteScrollPage
140
+ - function: createAugurOptions - Creates server-side query options proxy for prefetching.
141
+ - function: executeBatchQuery
142
+ - function: getBatchInvMastDocKey
143
+ - value: getBatchInvMastDocOptions
144
+ - value: getCartPricingQueryOptions
145
+ - value: getCategoryItemsInfiniteKey
146
+ - value: getCategoryItemsInfiniteOptions
147
+ - value: getCustomerInvoiceDetailKey
148
+ - value: getCustomerInvoicesKey
149
+ - value: getCustomerOrderDetailKey
150
+ - value: getCustomerOrdersKey
151
+ - value: getCustomerQuoteDetailKey
152
+ - value: getCustomerQuotesKey
153
+ - value: getInvMastDocKey
154
+ - value: getInvMastDocOptions
155
+ - value: getInvMastKey
156
+ - value: getInvMastOptions
157
+ - function: getInvMastStockKey
158
+ - value: getInvMastStockOptions
159
+ - value: getItemAttributesKey
160
+ - value: getItemAttributesOptions
161
+ - value: getItemCategoryKey
162
+ - value: getItemCategoryOptions
163
+ - value: getItemDetailsKey
164
+ - value: getItemDetailsOptions
165
+ - value: getItemPriceKey
166
+ - value: getItemPriceOptions
167
+ - value: getItemSearchInfiniteKey
168
+ - value: getItemSearchInfiniteOptions
169
+ - value: getJoomlaContentKey
170
+ - value: getJoomlaContentListKey
171
+ - value: getJoomlaContentListOptions
172
+ - value: getJoomlaContentOptions
173
+ - value: getJoomlaMenuDocKey
174
+ - value: getJoomlaMenuDocOptions
175
+ - value: getJoomlaMenuKey
176
+ - value: getJoomlaMenuOptions
177
+ - value: getProductCategoryKey
178
+ - value: getProductCategoryOptions
179
+ - value: getProductSearchKey
180
+ - value: getProductSearchOptions
181
+ - const: getQueryClient - Returns a per-request singleton QueryClient for React Server Components.
182
+ - value: getSearchSuggestionsKey
183
+ - value: getSearchSuggestionsOptions
184
+ - value: getStockKey
185
+ - value: getStockOptions
186
+ - value: stableStringify
187
+ - type: AugurApiClient
188
+ - type: AugurCallbacks
189
+ - type: BatchInvMastDocParam
190
+ - type: BatchQueryConfig
191
+ - type: PageData
192
+
193
+ ## @simpleapps-com/augur-hooks/web
194
+
195
+ - function: MobileProvider - Optional provider that tracks hydration state.
196
+ - function: useImageWithFallback
197
+ - function: useIsHydrated - Returns true only after the client has hydrated.
198
+ - function: useIsMobile - Returns whether the screen is mobile-sized.
199
+ - const: useMobileOptimizedIntersection - IntersectionObserver hook with mobile-optimized root margins.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simpleapps-com/augur-hooks",
3
- "version": "2.0.10",
3
+ "version": "2.0.12",
4
4
  "description": "Cross-platform React Query hooks and Zustand stores for Augur ecommerce sites",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -28,11 +28,13 @@
28
28
  },
29
29
  "sideEffects": false,
30
30
  "files": [
31
- "dist"
31
+ "dist",
32
+ "EXPORTS.md",
33
+ "llms.txt"
32
34
  ],
33
35
  "dependencies": {
34
- "@simpleapps-com/augur-core": "2.0.10",
35
- "@simpleapps-com/augur-utils": "2.0.10"
36
+ "@simpleapps-com/augur-core": "2.0.12",
37
+ "@simpleapps-com/augur-utils": "2.0.12"
36
38
  },
37
39
  "peerDependencies": {
38
40
  "@simpleapps-com/augur-api": "^2026.3.3",