@shoppexio/storefront 1.0.104 → 1.0.106
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 +8 -0
- package/dist/{chunk-BW2EO2WP.js → chunk-INBEHRZN.js} +49 -3
- package/dist/{chunk-BW2EO2WP.js.map → chunk-INBEHRZN.js.map} +1 -1
- package/dist/customer.cjs +47 -42
- package/dist/customer.cjs.map +1 -1
- package/dist/customer.d.cts +5 -13
- package/dist/customer.d.ts +5 -13
- package/dist/customer.js +2 -41
- package/dist/customer.js.map +1 -1
- package/dist/index.cjs +69 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js +23 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.106
|
|
4
|
+
|
|
5
|
+
- `dashboard()` (`@shoppexio/storefront/customer`) keeps a subscription's `open_renewal` (the renewal invoice to pay now: `uniqid`, `amount`, `currency`, `pay_by`, `pay_url`) and `hold_ends_at` (when an unpaid renewal's hold ends the subscription) instead of stripping them (PR #4099). Show "Pay now" from `open_renewal.pay_url`. It also keeps `ends_at`: when a subscription set to end without renewing ends (cancelled at the period end, or a voided renewal); show "Ends" from it instead of reading `cancel_at_period_end`. The three fields are optional: absent until the API that sends them is deployed.
|
|
6
|
+
|
|
7
|
+
## 1.0.105
|
|
8
|
+
|
|
9
|
+
- The headless customer client drops `walletTopupQuote`, `createWalletTopup`, `resellerTopupQuote` and `createResellerTopup` (PR #4064): `hcs_` tokens no longer reach the top-up routes. Balance and reseller top-ups run on the hosted top-up page (`/topup/{shopId}`, `?for=reseller` for reseller funds).
|
|
10
|
+
|
|
3
11
|
## 1.0.104
|
|
4
12
|
|
|
5
13
|
- Storefront funnel (Design Batch 2, feature 3): add to cart and Buy Now send a `cart_add` ping with product, variant and quantity, also on code storefronts (the platform page tracker counts pages, never carts). New `trackProductView(productId)` counts a product view on a product page whose path is not `/product/{slug}`; the server keeps the product only when the shop owns it.
|
|
@@ -19962,6 +19962,9 @@ var customerPortalAffiliateSummarySchema = external_exports.object({
|
|
|
19962
19962
|
address: external_exports.string()
|
|
19963
19963
|
}).nullable(),
|
|
19964
19964
|
balance_currency: external_exports.string(),
|
|
19965
|
+
// The shop's IANA zone; `bound_at` is a day on its calendar.
|
|
19966
|
+
// Optional until the backend that sends it is deployed.
|
|
19967
|
+
time_zone: external_exports.string().optional(),
|
|
19965
19968
|
balances: external_exports.object({
|
|
19966
19969
|
pending: external_exports.string(),
|
|
19967
19970
|
available: external_exports.string(),
|
|
@@ -20052,7 +20055,23 @@ var customerPortalSubscriptionSummarySchema = external_exports.object({
|
|
|
20052
20055
|
can_cancel: external_exports.boolean(),
|
|
20053
20056
|
can_undo_cancel: external_exports.boolean(),
|
|
20054
20057
|
can_manage_payment_method: external_exports.boolean()
|
|
20055
|
-
})
|
|
20058
|
+
}),
|
|
20059
|
+
// The open renewal's hosted checkout ("Pay now"). Optional until the backend
|
|
20060
|
+
// that sends it is deployed: a storefront script can reach buyers first.
|
|
20061
|
+
renewal_checkout_url: nullableStringSchema.optional(),
|
|
20062
|
+
// When an unpaid renewal's hold ends the subscription, and the renewal to pay now
|
|
20063
|
+
// (me.routes.ts dashboard wire). Optional for the same deploy order.
|
|
20064
|
+
hold_ends_at: nullableStringSchema.optional(),
|
|
20065
|
+
// Set to end without renewing (cancelled at the period end, or a voided renewal): the instant
|
|
20066
|
+
// it ends; null while it renews. Buyer surfaces read it for "Ends" over "Renews". Same deploy order.
|
|
20067
|
+
ends_at: nullableStringSchema.optional(),
|
|
20068
|
+
open_renewal: external_exports.object({
|
|
20069
|
+
uniqid: external_exports.string(),
|
|
20070
|
+
amount: external_exports.string(),
|
|
20071
|
+
currency: external_exports.string(),
|
|
20072
|
+
pay_by: external_exports.string(),
|
|
20073
|
+
pay_url: external_exports.string()
|
|
20074
|
+
}).nullable().optional()
|
|
20056
20075
|
});
|
|
20057
20076
|
var customerLoyaltySchema = external_exports.object({
|
|
20058
20077
|
enabled: external_exports.boolean(),
|
|
@@ -20161,7 +20180,17 @@ var customerPortalDashboardSchema = external_exports.object({
|
|
|
20161
20180
|
label: external_exports.string(),
|
|
20162
20181
|
value: external_exports.string(),
|
|
20163
20182
|
href: nullableStringSchema,
|
|
20164
|
-
created_at: external_exports.string()
|
|
20183
|
+
created_at: external_exports.string(),
|
|
20184
|
+
// Files only: downloads left, end date and why a file closed (BuyerFileAccess).
|
|
20185
|
+
// Optional until the backend that sends it is deployed.
|
|
20186
|
+
access: external_exports.object({
|
|
20187
|
+
state: external_exports.enum(["open", "limit_reached", "expired", "revoked", "refunded"]),
|
|
20188
|
+
downloads_left: external_exports.number().nullable(),
|
|
20189
|
+
download_limit: external_exports.number().nullable(),
|
|
20190
|
+
downloads_used: external_exports.number(),
|
|
20191
|
+
ends_at: nullableStringSchema,
|
|
20192
|
+
time_zone: external_exports.string()
|
|
20193
|
+
}).nullable().optional()
|
|
20165
20194
|
})),
|
|
20166
20195
|
tickets: external_exports.array(external_exports.object({
|
|
20167
20196
|
uniqid: external_exports.string(),
|
|
@@ -20171,6 +20200,22 @@ var customerPortalDashboardSchema = external_exports.object({
|
|
|
20171
20200
|
created_at: nullableStringSchema
|
|
20172
20201
|
}))
|
|
20173
20202
|
});
|
|
20203
|
+
var customerPortalOrderReviewSchema = external_exports.object({
|
|
20204
|
+
can_review: external_exports.boolean(),
|
|
20205
|
+
already_submitted: external_exports.boolean(),
|
|
20206
|
+
feedback_uniqid: nullableStringSchema,
|
|
20207
|
+
product_title: nullableStringSchema,
|
|
20208
|
+
score: external_exports.union([external_exports.literal(1), external_exports.literal(3), external_exports.literal(5)]).nullable(),
|
|
20209
|
+
is_automated: external_exports.boolean(),
|
|
20210
|
+
message: nullableStringSchema,
|
|
20211
|
+
submitted_at: nullableStringSchema,
|
|
20212
|
+
reviewer_name: nullableStringSchema,
|
|
20213
|
+
anonymous: external_exports.boolean(),
|
|
20214
|
+
// The hosted review on the checkout host, null unless `can_review`. A storefront
|
|
20215
|
+
// account links here and never posts (#1152). Optional until the backend that
|
|
20216
|
+
// sends it is deployed.
|
|
20217
|
+
review_url: nullableStringSchema.optional()
|
|
20218
|
+
});
|
|
20174
20219
|
var customerPortalNotificationPreferencesSchema = external_exports.object({
|
|
20175
20220
|
order_created_emails: external_exports.boolean(),
|
|
20176
20221
|
order_completed_emails: external_exports.boolean(),
|
|
@@ -20203,7 +20248,8 @@ export {
|
|
|
20203
20248
|
customerWarrantyListSchema,
|
|
20204
20249
|
customerWarrantyClaimSchema,
|
|
20205
20250
|
customerPortalDashboardSchema,
|
|
20251
|
+
customerPortalOrderReviewSchema,
|
|
20206
20252
|
customerPortalNotificationPreferencesSchema,
|
|
20207
20253
|
customerPortalAffiliateCreateLinkSchema
|
|
20208
20254
|
};
|
|
20209
|
-
//# sourceMappingURL=chunk-
|
|
20255
|
+
//# sourceMappingURL=chunk-INBEHRZN.js.map
|