Skip to content

feature-shopping-list advanced

Everything else the package exports, for when you go beyond its components and hooks, such as your own queries or cache updates. Most projects never need these.

Contexts7
ShoppingListContextThe context ShoppingListProvider fills.
@evolve-storefront/feature-shopping-list/context
useShoppingListContextRead the injected auth/session/business-unit context and dialog openers.
@evolve-storefront/feature-shopping-list/context
useShoppingListScopeDerive the read scope from the injected mode.
@evolve-storefront/feature-shopping-list/context
canReadShoppingListsWhether the list reads may run: a token exists and the auth layer has settled.
@evolve-storefront/feature-shopping-list/context
resolveShoppingListScopeThe read scope for a context value: business, then customer, then anonymous.
@evolve-storefront/feature-shopping-list/context
shoppingListDefaultsWhat the context holds without a ShoppingListProvider: signed out, and dialog openers that do nothing.
@evolve-storefront/feature-shopping-list/context
ShoppingListContextValueInjected auth/session/business-unit seam plus dialog controls.
@evolve-storefront/feature-shopping-list/context
GraphQL documents14
AnonymousShoppingListCreateCreates a shareable list from a set of SKUs and returns its link.
@evolve-storefront/feature-shopping-list/queries
GetAnonymousShoppingListA shared shopping list, by the id in its share link.
@evolve-storefront/feature-shopping-list/queries
GetBusinessShoppingListDetailOne of a business unit's shopping lists, with its lines.
@evolve-storefront/feature-shopping-list/queries
GetBusinessShoppingListsA business unit's shopping lists.
@evolve-storefront/feature-shopping-list/queries
GetCustomerShoppingListDetailOne of the signed-in customer's shopping lists, with its lines.
@evolve-storefront/feature-shopping-list/queries
GetCustomerShoppingListsThe signed-in customer's shopping lists.
@evolve-storefront/feature-shopping-list/queries
GetGuestShoppingListsThe current session's shopping lists, for a guest.
@evolve-storefront/feature-shopping-list/queries
GetShoppingListDetailOne of the current session's shopping lists, with its lines.
@evolve-storefront/feature-shopping-list/queries
ShoppingListCreateCreates a shopping list.
@evolve-storefront/feature-shopping-list/queries
ShoppingListDeleteDeletes a shopping list.
@evolve-storefront/feature-shopping-list/queries
ShoppingListLineItemsAddAdds products to a shopping list.
@evolve-storefront/feature-shopping-list/queries
ShoppingListLineItemsRemoveRemoves lines from a shopping list.
@evolve-storefront/feature-shopping-list/queries
ShoppingListLineItemsUpdateChanges the quantity of lines in a shopping list.
@evolve-storefront/feature-shopping-list/queries
ShoppingListUpdateRenames a shopping list or changes its description.
@evolve-storefront/feature-shopping-list/queries
Data and cache helpers9
findLineItemIdThe line-item id of the SKU within a specific list, if present.
@evolve-storefront/feature-shopping-list
findShoppingListEntryFind the shopping list that already contains the given variant SKU.
@evolve-storefront/feature-shopping-list
invalidateDetailInvalidate a single list's detail cache.
@evolve-storefront/feature-shopping-list
invalidateOverviewInvalidate every overview cache for a scope (all pages).
@evolve-storefront/feature-shopping-list
isInAnyShoppingListTrue when the SKU is in any of the given lists.
@evolve-storefront/feature-shopping-list
removeItemFromDetailCacheOptimistically drop a line item from a cached detail list.
@evolve-storefront/feature-shopping-list
shoppingListTotalThe sum of each priced line's unit price times its quantity, in one tax basis.
@evolve-storefront/feature-shopping-list
updateDetailCacheMerge a partial list into a cached detail list.
@evolve-storefront/feature-shopping-list
shoppingListKeysreact-query key factory for the overview and detail caches.
@evolve-storefront/feature-shopping-list
Schemas1
ShoppingListFormSchemaThe one schema a create/edit form validates against — exported so the backend (and any consumer) reuses the exact same shape.
@evolve-storefront/feature-shopping-list/schemas
Other functions and constants2
ShoppingListCreateDialogModal create form.
@evolve-storefront/feature-shopping-list/provider
ShoppingListEditDialogModal rename/re-describe form.
@evolve-storefront/feature-shopping-list/provider
Types26
FieldValidationIssue
@evolve-storefront/feature-shopping-list
MoneyMoney (schema Money): minor units and an ISO currency.
@evolve-storefront/feature-shopping-list
ShoppingListA shopping list with its full line items (detail view).
@evolve-storefront/feature-shopping-list
ShoppingListAvailabilityThe schema's ProductAvailabilityType, verbatim.
@evolve-storefront/feature-shopping-list
ShoppingListDeleteResultDelete returns a success flag instead of the (now-gone) list.
@evolve-storefront/feature-shopping-list
ShoppingListInputInput for creating or updating a list (name required, description optional).
@evolve-storefront/feature-shopping-list
ShoppingListLineItem
@evolve-storefront/feature-shopping-list
ShoppingListLineItemAddInput
@evolve-storefront/feature-shopping-list
ShoppingListLineItemUpdateInput
@evolve-storefront/feature-shopping-list
ShoppingListMutationErrorEvery shopping-list mutation's error union is ValidationError.
@evolve-storefront/feature-shopping-list
ShoppingListMutationResultShared write response: the entity plus the typed error array.
@evolve-storefront/feature-shopping-list
ShoppingListOverviewItemLighter shape used by the overview query to detect membership.
@evolve-storefront/feature-shopping-list
ShoppingListPriceA single-rate taxed price (schema TaxedPrice), without its tax line.
@evolve-storefront/feature-shopping-list
ShoppingListScopeWhich set of lists a surface reads.
@evolve-storefront/feature-shopping-list
ShoppingListsOverviewPaginated list overview (schema ShoppingListResult).
@evolve-storefront/feature-shopping-list
ShoppingListTotalWhat a list comes to, and how many of its lines have no price to count.
@evolve-storefront/feature-shopping-list
ShoppingListVariant
@evolve-storefront/feature-shopping-list
ValidationError
@evolve-storefront/feature-shopping-list
AnonymousShoppingListCreateResult
@evolve-storefront/feature-shopping-list/queries
ShoppingListFormInput
@evolve-storefront/feature-shopping-list/schemas
UseActiveShoppingListResultThe active-list selection plus its setter, as consumed by the picker.
@evolve-storefront/feature-shopping-list/hooks
ShoppingListDetailItemApiBound actions handed to renderItem, so the consumer supplies only the markup while the id handshake and mutations stay inside the feature.
@evolve-storefront/feature-shopping-list/shopping-list-detail
ShoppingListDetailItemRendererRenders a single line item.
@evolve-storefront/feature-shopping-list/shopping-list-detail
ShoppingListOverviewItemRendererRenders one list in the overview grid.
@evolve-storefront/feature-shopping-list/shopping-list-overview
ShoppingListFormContextValueContext seeded by ShoppingListForm so the composed pieces (Fields, Submit) read what they need without prop-drilling — which lets the dialog own the DialogFooter (and the submit button inside it) instead of the generic form importing anything dialog-specific.
@evolve-storefront/feature-shopping-list/shopping-list-form
ShoppingListFormFieldErrorsA validationErrors map keyed by field name, as RAC's Form consumes it.
@evolve-storefront/feature-shopping-list/shopping-list-form

Not listed: 19 props and options types. They appear as the tables on the pages of what they type.