@shoppexio/storefront 1.0.92 → 1.0.94
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 +14 -0
- package/dist/{chunk-UW6DFRB5.js → chunk-ESI3HWQF.js} +2 -1
- package/dist/{chunk-UW6DFRB5.js.map → chunk-ESI3HWQF.js.map} +1 -1
- package/dist/customer.cjs +13 -1
- package/dist/customer.cjs.map +1 -1
- package/dist/customer.d.cts +2 -0
- package/dist/customer.d.ts +2 -0
- package/dist/customer.js +13 -2
- package/dist/customer.js.map +1 -1
- package/dist/index.cjs +22064 -22033
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +585 -565
- package/dist/index.d.ts +585 -565
- package/dist/index.js +3370 -3341
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.94
|
|
4
|
+
|
|
5
|
+
- `getProduct(idOrSlug, { variant })` reads a product for a variant's direct link (`?variant=<id>`). A private variant (`is_private: true`) is listed only when it is named this way; it then comes first in `price_variants`, so a buy box that opens on the first sellable option preselects it. Product lists never carry a private variant.
|
|
6
|
+
|
|
7
|
+
## 1.0.93
|
|
8
|
+
|
|
9
|
+
- `undoSubscriptionCancel(uniqid)` takes back a scheduled cancellation of the signed-in customer's subscription before its period ends (PR #3696).
|
|
10
|
+
- 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.
|
|
11
|
+
- `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.
|
|
12
|
+
- `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.
|
|
13
|
+
- `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.
|
|
14
|
+
- `Product.upsell_product_ids`: the merchant's upsell picks as product uniqids, in the merchant's order; empty when they picked none.
|
|
15
|
+
- `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.
|
|
16
|
+
|
|
3
17
|
## 1.0.92
|
|
4
18
|
|
|
5
19
|
- `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-
|
|
20187
|
+
//# sourceMappingURL=chunk-ESI3HWQF.js.map
|