@shopify/shop-minis-platform 0.22.0 → 0.23.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shopify/shop-minis-platform",
3
3
  "license": "SEE LICENSE IN LICENSE.txt",
4
- "version": "0.22.0",
4
+ "version": "0.23.0",
5
5
  "description": "Shared type definitions for Shop Minis Platform",
6
6
  "main": "src/index.ts",
7
7
  "exports": {
@@ -91,8 +91,20 @@ export interface SelectProductVariantParams {
91
91
  * inventory (or unbounded when stock is not tracked).
92
92
  */
93
93
  maxQuantity?: number
94
- /** Whether to show the quantity stepper. Defaults to `true`. */
94
+ /**
95
+ * Whether to show the quantity stepper. Defaults to `false` for the
96
+ * `select` intent (selection is informational; quantity is rarely
97
+ * relevant). Pass `true` to opt into the stepper.
98
+ */
95
99
  showQuantity?: boolean
100
+ /**
101
+ * When `true`, the sheet's confirm CTA stays enabled even for a sold-out
102
+ * variant — the host hands the selection back to the mini without
103
+ * touching the cart. Defaults to `true` for the `select` intent so flows
104
+ * like “notify me when back in stock” can pick a sold-out variant. Pass
105
+ * `false` to restore the cart-style sold-out guard.
106
+ */
107
+ allowOutOfStockSelection?: boolean
96
108
  /**
97
109
  * When `true`, always render the sheet — even for products with a single
98
110
  * variant. The single-variant short-circuit (resolving instantly without