@swell/apps-sdk 1.0.184 → 1.0.185

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.mjs CHANGED
@@ -2903,7 +2903,7 @@ var LANG_TO_COUNTRY_CODES = {
2903
2903
  var CURRENCY_COUNTRIES = Object.freeze({
2904
2904
  USD: { name: "United States", iso: "US" },
2905
2905
  EUR: { name: "Europe", iso: "EU" },
2906
- GBP: { name: "United Kingdom", iso: "UK" },
2906
+ GBP: { name: "United Kingdom", iso: "GB" },
2907
2907
  JPY: { name: "Japan", iso: "JP" },
2908
2908
  CAD: { name: "Canada", iso: "CA" },
2909
2909
  AUD: { name: "Australia", iso: "AU" },
@@ -4629,7 +4629,7 @@ function getSelectedSubscriptionPurchaseOptionPlan(selectedPurchaseOptionType, s
4629
4629
  return selectedPlan || subscriptionPurchaseOption.plans[0];
4630
4630
  }
4631
4631
  var SORT_OPTIONS = Object.freeze([
4632
- { value: "", name: "Featured" },
4632
+ { value: "manual", name: "Featured" },
4633
4633
  { value: "popularity", name: "Popularity", query: "popularity desc" },
4634
4634
  { value: "price_asc", name: "Price, low to high", query: "price asc" },
4635
4635
  { value: "price_desc", name: "Price, high to low", query: "price desc" },
@@ -4639,7 +4639,7 @@ var SORT_OPTIONS = Object.freeze([
4639
4639
  { value: "name_desc", name: "Product name, Z-A", query: "name desc" }
4640
4640
  ]);
4641
4641
  async function getProductFilters(swell, productQuery) {
4642
- const sortBy = swell.queryParams.sort || "";
4642
+ const sortBy = swell.queryParams.sort || "manual";
4643
4643
  const filterQuery = productQueryWithFilters(swell, productQuery);
4644
4644
  return {
4645
4645
  filter_options: await getProductFiltersByQuery(swell, filterQuery),
@@ -4686,7 +4686,7 @@ function productQueryWithFilters(swell, query) {
4686
4686
  },
4687
4687
  {}
4688
4688
  );
4689
- const sortBy = swell.queryParams.sort || "";
4689
+ const sortBy = swell.queryParams.sort || "manual";
4690
4690
  return {
4691
4691
  sort: SORT_OPTIONS.find((option) => option.value === sortBy)?.query || void 0,
4692
4692
  $filters: filters2,