@shoppexio/storefront 1.0.96 → 1.0.97

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.97
4
+
5
+ - `Shop.stock_display` (`'low_stock' | 'exact'`): the merchant's Stock Display setting (Settings › Storefront › Catalog). `'exact'` asks for the unit count at every stock level, `'low_stock'` only while stock runs low. `hide_stock_counter` (shop or product) still hides every count. Optional: the field is absent until the API that sends it is deployed, and on partial shop records.
6
+
3
7
  ## 1.0.96
4
8
 
5
9
  - `submitOrderReview(orderId, { anonymous })` (`@shoppexio/storefront/customer`): `false` posts the review under the buyer's public name; omitted or `true` posts it anonymously, as every review did before. `orderReview()` returns that name as `reviewer_name` (`null` for a guest or when the shop holds no name it may show, e.g. one that looks like an email or a link) and `anonymous`: the saved review's choice, or for a new review whether it starts anonymous. Offer the choice only when `reviewer_name` is a string: both fields are absent until the API that answers them is deployed.
package/dist/index.d.cts CHANGED
@@ -188,6 +188,7 @@ interface Shop {
188
188
  kind: 'card' | 'wallet' | 'crypto';
189
189
  }>;
190
190
  stock_alerts_enabled?: boolean;
191
+ stock_display?: 'low_stock' | 'exact';
191
192
  payment_gateways_fees?: unknown[];
192
193
  reward_program_summary?: RewardProgramSummary | null;
193
194
  }
package/dist/index.d.ts CHANGED
@@ -188,6 +188,7 @@ interface Shop {
188
188
  kind: 'card' | 'wallet' | 'crypto';
189
189
  }>;
190
190
  stock_alerts_enabled?: boolean;
191
+ stock_display?: 'low_stock' | 'exact';
191
192
  payment_gateways_fees?: unknown[];
192
193
  reward_program_summary?: RewardProgramSummary | null;
193
194
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shoppexio/storefront",
3
- "version": "1.0.96",
3
+ "version": "1.0.97",
4
4
  "description": "Official JavaScript storefront SDK for Shoppex",
5
5
  "type": "module",
6
6
  "repository": {