@shoppexio/storefront 1.0.92 → 1.0.93

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,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.93
4
+
5
+ - Select custom fields: `StorefrontCustomField.options` lists the labels of a `type: "select"` field, and `validateStorefrontCustomFieldValue` refuses any other answer with "<name> must be one of the listed options." (the server refuses it with `custom_field_option_invalid`). Draw a select as a dropdown of exactly these labels.
6
+ - `normalizeStorefrontCustomFields` leaves out fields the merchant collects after payment (`collect_after_payment`). The buyer answers those on the invoice after paying, and the server drops a value the cart sends for them.
7
+ - `Product.addons_required`: the buyer must pick one of the product's `addons`; the server refuses a cart or invoice line that names none with `errors.checkout.addon_required`. It asks nothing when `addons` is empty. Send the buyer to the product page to choose; never add an add-on for them.
8
+ - `Product.delivery_type` (`'key' | 'download' | 'service' | 'shipped' | null`): what the buyer receives, read off the product's delivery mechanism. `null` when the mechanism does not say.
9
+ - `Product.upsell_product_ids`: the merchant's upsell picks as product uniqids, in the merchant's order; empty when they picked none.
10
+ - `EligibleCartDeal.discounted_quantity`, `discount_type` (`'PERCENTAGE' | 'FREE'`) and `discount_value` (the percent as a 2-dp string, `"100.00"` for FREE): the saving an automatic deal on the quote gives, the same figure the applied deal charges.
11
+
3
12
  ## 1.0.92
4
13
 
5
14
  - `CartQuoteLine.product_title` and `CartQuoteLine.variant_title`: the catalog's names for the product and the option (`variant_title` is `null` for a product with no options), the names the invoice line carries. `product_title` is the base-language title; a storefront that shows translated titles keeps its own. Both are absent on servers older than these fields.
@@ -20028,6 +20028,7 @@ var customerPortalSubscriptionSummarySchema = external_exports.object({
20028
20028
  can_pause: external_exports.boolean(),
20029
20029
  can_resume: external_exports.boolean(),
20030
20030
  can_cancel: external_exports.boolean(),
20031
+ can_undo_cancel: external_exports.boolean(),
20031
20032
  can_manage_payment_method: external_exports.boolean()
20032
20033
  })
20033
20034
  });
@@ -20183,4 +20184,4 @@ export {
20183
20184
  customerPortalNotificationPreferencesSchema,
20184
20185
  customerPortalAffiliateCreateLinkSchema
20185
20186
  };
20186
- //# sourceMappingURL=chunk-UW6DFRB5.js.map
20187
+ //# sourceMappingURL=chunk-ESI3HWQF.js.map