@shoppexio/storefront 1.0.102 → 1.0.104

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,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.104
4
+
5
+ - 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.
6
+ - A cart add or product view after 30 idle minutes starts a new analytics session (with an analytics yes), like a page view, so a checkout credits the visit of the cart add.
7
+ - A preview page (`preview: true`, an unpublished draft) sends no cart add or product view.
8
+
9
+ ## 1.0.103
10
+
11
+ - Web analytics (PR #3989): after a yes to analytics on the cookie banner, the SDK keeps an analytics session (30 idle minutes) and the session ids of the last 30 days for checkout, so an order keeps the visit it came from. A yes given without a reload starts the session on the page already counted (`session_start`, no second page view). Time on screen goes to the session the page was viewed in, also after that session went idle.
12
+
3
13
  ## 1.0.102
4
14
 
5
15
  - The checkout URL carries the buyer's cookie banner answer in its hash (`#shoppex_consent=…`, PR #3938), so the full hosted checkout page sends the shop's Purchase tags under the same consent. The hash never reaches a server; without an answer on a shop with the banner on, the checkout sends no tags.
package/README.md CHANGED
@@ -107,8 +107,8 @@ if (firstOrder) {
107
107
  }
108
108
  ```
109
109
 
110
- The publishable key and current browser origin must be configured under
111
- **Settings -> Developer -> Headless**. `rememberMe` is opt-in and keeps
110
+ The publishable key comes from **Settings -> Developer -> Headless**; the
111
+ current browser origin must be an allowed site in **Store -> Embed Hub**. `rememberMe` is opt-in and keeps
112
112
  the buyer signed in for up to 30 days.
113
113
 
114
114
  The order detail includes delivery status, service instructions, codes, serials,
@@ -19922,6 +19922,27 @@ var customerPortalAffiliateLedgerStatusSchema = external_exports.enum([
19922
19922
  "split",
19923
19923
  "voided"
19924
19924
  ]);
19925
+ var customerPortalAffiliateCommissionBreakdownSchema = external_exports.object({
19926
+ lines: external_exports.array(external_exports.object({
19927
+ product_id: external_exports.string().nullable(),
19928
+ title: external_exports.string(),
19929
+ base_usd: external_exports.string(),
19930
+ percent: external_exports.number(),
19931
+ source: external_exports.enum(["PRODUCT_DISABLED", "LINK", "AFFILIATE", "TIER", "PRODUCT", "SHOP_DEFAULT"]),
19932
+ amount_usd: external_exports.string()
19933
+ })),
19934
+ base_usd: external_exports.string(),
19935
+ gross_usd: external_exports.string(),
19936
+ cap_usd: nullableStringSchema,
19937
+ cap_applied: external_exports.boolean(),
19938
+ minimum_order_usd: nullableStringSchema,
19939
+ minimum_met: external_exports.boolean(),
19940
+ shareback_usd: external_exports.string(),
19941
+ amount_usd: external_exports.string(),
19942
+ tier_name: nullableStringSchema,
19943
+ attribution_source: external_exports.enum(["CODE", "BINDING"]),
19944
+ bound_at: nullableStringSchema
19945
+ });
19925
19946
  var customerPortalAffiliateSummarySchema = external_exports.object({
19926
19947
  customer: external_exports.object({
19927
19948
  id: external_exports.string(),
@@ -19964,6 +19985,7 @@ var customerPortalAffiliateSummarySchema = external_exports.object({
19964
19985
  store_credit_amount: external_exports.string(),
19965
19986
  base_amount: external_exports.string(),
19966
19987
  discount_amount: external_exports.string(),
19988
+ breakdown: customerPortalAffiliateCommissionBreakdownSchema.nullable(),
19967
19989
  status: external_exports.string(),
19968
19990
  created_at: nullableStringSchema,
19969
19991
  paid_at: nullableStringSchema,
@@ -20184,4 +20206,4 @@ export {
20184
20206
  customerPortalNotificationPreferencesSchema,
20185
20207
  customerPortalAffiliateCreateLinkSchema
20186
20208
  };
20187
- //# sourceMappingURL=chunk-ESI3HWQF.js.map
20209
+ //# sourceMappingURL=chunk-BW2EO2WP.js.map