@scayle/storefront-product-listing 0.2.0 → 0.3.0
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.
|
@@ -21,9 +21,11 @@ export interface ProductListSortOptions {
|
|
|
21
21
|
* @param {ProductListSortOptions} [options] - Options for configuring the sorting behavior.
|
|
22
22
|
* @param {SelectedSort[]} [options.sortingOptions] - Array of available sorting options.
|
|
23
23
|
* @param {string} [options.defaultSortingKey] - Default sorting key to be applied if no specific sort is selected.
|
|
24
|
+
*
|
|
24
25
|
* @returns - computed properties and methods related to sorting:
|
|
26
|
+
*
|
|
25
27
|
* - {ComputedRef<SelectedSort | undefined>} selectedSort - The currently selected sorting option.
|
|
26
|
-
* - {ComputedRef<
|
|
28
|
+
* - {ComputedRef<SortLink[]>} sortLinks - Links with updated query parameters for each sorting option.
|
|
27
29
|
* - {ComputedRef<boolean>} isDefaultSortSelected - Boolean indicating if the default sort is selected.
|
|
28
30
|
*/
|
|
29
31
|
export declare function useProductListSort(route: RouteLocationNormalizedLoadedGeneric, { sortingOptions, defaultSortingKey }?: ProductListSortOptions): UseProductListSortReturn;
|
package/package.json
CHANGED