@lockerverse/sdk 0.2.260 → 0.2.263

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,6 +4,54 @@ 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
+ ## 0.2.263 — checkout matches the hosted widget page
8
+
9
+ - **Affected:** `LockerversePayment` and `LockerverseSignup`.
10
+ - **Automatic:** the form roots have no 480px maximum width any more; the form
11
+ fills its container, as on the hosted widget page. A host `branding` prop now
12
+ overrides only the fields it sets: a name or accent color keeps the community
13
+ logo (and the community accent when none is given). `imageUrl: null` still
14
+ hides the logo.
15
+ - **Host adoption:** in a checkout dialog, remove padding, `max-w-*` and
16
+ centering wrappers around the form; the dialog body has no padding of its
17
+ own (see "Native SDK checkout" in the payment-widgets guide). A host that
18
+ wants a narrower inline form sets `style={{ maxWidth: 480 }}` or wraps it in
19
+ a sized container.
20
+ - **Check:** open checkout in the site dialog: the community logo shows, and
21
+ the form spacing matches the hosted widget page in the same dialog.
22
+
23
+ ## 0.2.262 — centered payment and sign-up forms
24
+
25
+ - **Affected:** `LockerversePayment` (`.lockerverse-payment`) and
26
+ `LockerverseSignup` (`.lockerverse-signup`). The form root has a 480px
27
+ maximum width. Before, it stuck to the left edge of a wider container (for
28
+ example a 540px dialog), with an empty strip on the right. It now has
29
+ `margin-inline: auto`, so it is centered in any container wider than 480px.
30
+ - **Automatic:** on after the update. No host code change.
31
+ - **Host adoption:** remove host centering workarounds (`mx-auto`, `margin: 0
32
+ auto` or flex centering wrappers) around these forms. A host that wants the
33
+ form at the left edge sets `style={{ marginInline: 0 }}` on the component.
34
+ - **Check:** open checkout in a dialog or section wider than 480px; the form
35
+ has the same space on the left and the right.
36
+
37
+ ## 0.2.260 — free member bookings
38
+
39
+ - **Affected:** `@lockerverse/sdk/bookings` and `useLockerverseBookings`. A
40
+ member price can make the first N qualifying customers book free. The service
41
+ `memberPrice` adds `freeFirst` and `freeRemaining`. `client.price` returns
42
+ `amountCents: 0` and `memberPrice.free: true` for such a customer. The attempt
43
+ has `free: true` and `amountCents: 0`. New `client.confirmFree()` and hook
44
+ `confirmFree()` book it with no card.
45
+ - **Automatic:** no change for paid bookings. A host that does not adopt this
46
+ cannot finish a free attempt: it would show card entry for $0.
47
+ - **Host adoption:** when `attempt.free` (or the price is 0), do not mount
48
+ `LockerverseBookingPayment`. Show a "Book free" button that calls
49
+ `confirmFree()`, then show the result as for a paid booking. Show
50
+ `freeRemaining` in the offer text while it is above 0.
51
+ - **Check:** a qualifying email on a service with free spots shows $0 and the
52
+ free button; another email shows the normal price and card entry. Do not
53
+ book a live free appointment for this check.
54
+
7
55
  ## 0.2.259 — page visits
8
56
 
9
57
  - **Affected:** every widget hook that sends analytics (payment, donate
package/dist/types.js CHANGED
@@ -1,2 +1,2 @@
1
- const e=`0.2.260`;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.263`;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.260",
3
+ "version": "0.2.263",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Lockerverse/lockerverse-sdk.git",