@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.js CHANGED
@@ -2930,7 +2930,7 @@
2930
2930
  var CURRENCY_COUNTRIES = Object.freeze({
2931
2931
  USD: { name: "United States", iso: "US" },
2932
2932
  EUR: { name: "Europe", iso: "EU" },
2933
- GBP: { name: "United Kingdom", iso: "UK" },
2933
+ GBP: { name: "United Kingdom", iso: "GB" },
2934
2934
  JPY: { name: "Japan", iso: "JP" },
2935
2935
  CAD: { name: "Canada", iso: "CA" },
2936
2936
  AUD: { name: "Australia", iso: "AU" },
@@ -4656,7 +4656,7 @@
4656
4656
  return selectedPlan || subscriptionPurchaseOption.plans[0];
4657
4657
  }
4658
4658
  var SORT_OPTIONS = Object.freeze([
4659
- { value: "", name: "Featured" },
4659
+ { value: "manual", name: "Featured" },
4660
4660
  { value: "popularity", name: "Popularity", query: "popularity desc" },
4661
4661
  { value: "price_asc", name: "Price, low to high", query: "price asc" },
4662
4662
  { value: "price_desc", name: "Price, high to low", query: "price desc" },
@@ -4666,7 +4666,7 @@
4666
4666
  { value: "name_desc", name: "Product name, Z-A", query: "name desc" }
4667
4667
  ]);
4668
4668
  async function getProductFilters(swell, productQuery) {
4669
- const sortBy = swell.queryParams.sort || "";
4669
+ const sortBy = swell.queryParams.sort || "manual";
4670
4670
  const filterQuery = productQueryWithFilters(swell, productQuery);
4671
4671
  return {
4672
4672
  filter_options: await getProductFiltersByQuery(swell, filterQuery),
@@ -4713,7 +4713,7 @@
4713
4713
  },
4714
4714
  {}
4715
4715
  );
4716
- const sortBy = swell.queryParams.sort || "";
4716
+ const sortBy = swell.queryParams.sort || "manual";
4717
4717
  return {
4718
4718
  sort: SORT_OPTIONS.find((option) => option.value === sortBy)?.query || void 0,
4719
4719
  $filters: filters2,