@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.cjs +4 -4
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +4 -4
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3053,7 +3053,7 @@ var LANG_TO_COUNTRY_CODES = {
|
|
|
3053
3053
|
var CURRENCY_COUNTRIES = Object.freeze({
|
|
3054
3054
|
USD: { name: "United States", iso: "US" },
|
|
3055
3055
|
EUR: { name: "Europe", iso: "EU" },
|
|
3056
|
-
GBP: { name: "United Kingdom", iso: "
|
|
3056
|
+
GBP: { name: "United Kingdom", iso: "GB" },
|
|
3057
3057
|
JPY: { name: "Japan", iso: "JP" },
|
|
3058
3058
|
CAD: { name: "Canada", iso: "CA" },
|
|
3059
3059
|
AUD: { name: "Australia", iso: "AU" },
|
|
@@ -4779,7 +4779,7 @@ function getSelectedSubscriptionPurchaseOptionPlan(selectedPurchaseOptionType, s
|
|
|
4779
4779
|
return selectedPlan || subscriptionPurchaseOption.plans[0];
|
|
4780
4780
|
}
|
|
4781
4781
|
var SORT_OPTIONS = Object.freeze([
|
|
4782
|
-
{ value: "", name: "Featured" },
|
|
4782
|
+
{ value: "manual", name: "Featured" },
|
|
4783
4783
|
{ value: "popularity", name: "Popularity", query: "popularity desc" },
|
|
4784
4784
|
{ value: "price_asc", name: "Price, low to high", query: "price asc" },
|
|
4785
4785
|
{ value: "price_desc", name: "Price, high to low", query: "price desc" },
|
|
@@ -4789,7 +4789,7 @@ var SORT_OPTIONS = Object.freeze([
|
|
|
4789
4789
|
{ value: "name_desc", name: "Product name, Z-A", query: "name desc" }
|
|
4790
4790
|
]);
|
|
4791
4791
|
async function getProductFilters(swell, productQuery) {
|
|
4792
|
-
const sortBy = swell.queryParams.sort || "";
|
|
4792
|
+
const sortBy = swell.queryParams.sort || "manual";
|
|
4793
4793
|
const filterQuery = productQueryWithFilters(swell, productQuery);
|
|
4794
4794
|
return {
|
|
4795
4795
|
filter_options: await getProductFiltersByQuery(swell, filterQuery),
|
|
@@ -4836,7 +4836,7 @@ function productQueryWithFilters(swell, query) {
|
|
|
4836
4836
|
},
|
|
4837
4837
|
{}
|
|
4838
4838
|
);
|
|
4839
|
-
const sortBy = swell.queryParams.sort || "";
|
|
4839
|
+
const sortBy = swell.queryParams.sort || "manual";
|
|
4840
4840
|
return {
|
|
4841
4841
|
sort: SORT_OPTIONS.find((option) => option.value === sortBy)?.query || void 0,
|
|
4842
4842
|
$filters: filters2,
|