@lockerverse/sdk 0.2.256 → 0.2.257

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/MIGRATIONS.md CHANGED
@@ -4,7 +4,28 @@ This file ships in both @lockerverse/sdk and @lockerverse/react. Use the copy in
4
4
  the target installed release. This is an agent-run procedure, not an install
5
5
  script. Installing a package does not edit host code or guarantee these steps ran.
6
6
 
7
- ## Unreleased — booking member prices
7
+ ## Unreleased — product analytics
8
+
9
+ - **Affected:** `@lockerverse/react` payment, donate launcher and signup widgets.
10
+ The widgets send anonymous analytics events (Page Viewed, Widget Viewed,
11
+ Checkout Started, Payment Info Entered, Payment Failed, Order Confirmation
12
+ Viewed, Form Submitted) to `analytics-be.lockerverse.com`. No contact data,
13
+ payment data, or page query strings other than marketing parameters are sent.
14
+ The SDK stores an anonymous ID, a session ID and first/last-touch attribution
15
+ in the host page's `localStorage` (`lv_sdk_*` keys). Payment requests add
16
+ attribution fields (`analyticsAnonymousId`, `utm_*`, `campaign_id`,
17
+ `referral_user_id`, `checkoutReferrer`, `landingUrl`, `first_*`) to the payment `metadata`.
18
+ - **Automatic:** on after the update. No host code change.
19
+ - **Host adoption:** hosts that must not send analytics pass
20
+ `useLockerverseWidget(options, { analytics: false })` and
21
+ `useLockerverseSignup(options, { analytics: false })`. Global Privacy Control
22
+ and Do Not Track are honored without code. Hosts with a cookie or privacy
23
+ notice mention first-party analytics storage.
24
+ - **Check:** open a page with a widget and `?utm_source=test`; the network panel
25
+ shows a POST to `/api/v1/s/batch` and `localStorage` has `lv_sdk_anonymous_id`.
26
+ Do not submit a live payment for this check.
27
+
28
+ ## 0.2.256 — booking member prices
8
29
 
9
30
  - **Affected:** `@lockerverse/sdk/bookings`. A catalog service can have
10
31
  `memberPrice: {label, amountCents}`. The new `client.price(serviceVariationId,
package/dist/types.js CHANGED
@@ -1,2 +1,2 @@
1
- const e=`0.2.256`;var t=class extends Error{failureKind;code;operation;reportable;recoveryRecommended;sdkVersion;serverCode;status;constructor({failureKind:t,code:n,message:r,operation:i,reportable:a,recoveryRecommended:o=!1,serverCode:s,status:c}){super(r),this.name=`LockerverseSdkError`,this.failureKind=t,this.code=n,this.operation=i,this.reportable=a,this.recoveryRecommended=o,this.sdkVersion=e,this.serverCode=s,this.status=c}};export{t as n,e as t};
1
+ const e=`0.2.257`;var t=class extends Error{failureKind;code;operation;reportable;recoveryRecommended;sdkVersion;serverCode;status;constructor({failureKind:t,code:n,message:r,operation:i,reportable:a,recoveryRecommended:o=!1,serverCode:s,status:c}){super(r),this.name=`LockerverseSdkError`,this.failureKind=t,this.code=n,this.operation=i,this.reportable=a,this.recoveryRecommended=o,this.sdkVersion=e,this.serverCode=s,this.status=c}};export{t as n,e as t};
2
2
  //# sourceMappingURL=types.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lockerverse/sdk",
3
- "version": "0.2.256",
3
+ "version": "0.2.257",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Lockerverse/lockerverse-sdk.git",