@lockerverse/sdk 0.2.260 → 0.2.262
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 +32 -0
- package/dist/types.js +1 -1
- package/package.json +1 -1
package/MIGRATIONS.md
CHANGED
|
@@ -4,6 +4,38 @@ 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.261 — centered payment and sign-up forms
|
|
8
|
+
|
|
9
|
+
- **Affected:** `LockerversePayment` (`.lockerverse-payment`) and
|
|
10
|
+
`LockerverseSignup` (`.lockerverse-signup`). The form root has a 480px
|
|
11
|
+
maximum width. Before, it stuck to the left edge of a wider container (for
|
|
12
|
+
example a 540px dialog), with an empty strip on the right. It now has
|
|
13
|
+
`margin-inline: auto`, so it is centered in any container wider than 480px.
|
|
14
|
+
- **Automatic:** on after the update. No host code change.
|
|
15
|
+
- **Host adoption:** remove host centering workarounds (`mx-auto`, `margin: 0
|
|
16
|
+
auto` or flex centering wrappers) around these forms. A host that wants the
|
|
17
|
+
form at the left edge sets `style={{ marginInline: 0 }}` on the component.
|
|
18
|
+
- **Check:** open checkout in a dialog or section wider than 480px; the form
|
|
19
|
+
has the same space on the left and the right.
|
|
20
|
+
|
|
21
|
+
## 0.2.260 — free member bookings
|
|
22
|
+
|
|
23
|
+
- **Affected:** `@lockerverse/sdk/bookings` and `useLockerverseBookings`. A
|
|
24
|
+
member price can make the first N qualifying customers book free. The service
|
|
25
|
+
`memberPrice` adds `freeFirst` and `freeRemaining`. `client.price` returns
|
|
26
|
+
`amountCents: 0` and `memberPrice.free: true` for such a customer. The attempt
|
|
27
|
+
has `free: true` and `amountCents: 0`. New `client.confirmFree()` and hook
|
|
28
|
+
`confirmFree()` book it with no card.
|
|
29
|
+
- **Automatic:** no change for paid bookings. A host that does not adopt this
|
|
30
|
+
cannot finish a free attempt: it would show card entry for $0.
|
|
31
|
+
- **Host adoption:** when `attempt.free` (or the price is 0), do not mount
|
|
32
|
+
`LockerverseBookingPayment`. Show a "Book free" button that calls
|
|
33
|
+
`confirmFree()`, then show the result as for a paid booking. Show
|
|
34
|
+
`freeRemaining` in the offer text while it is above 0.
|
|
35
|
+
- **Check:** a qualifying email on a service with free spots shows $0 and the
|
|
36
|
+
free button; another email shows the normal price and card entry. Do not
|
|
37
|
+
book a live free appointment for this check.
|
|
38
|
+
|
|
7
39
|
## 0.2.259 — page visits
|
|
8
40
|
|
|
9
41
|
- **Affected:** every widget hook that sends analytics (payment, donate
|
package/dist/types.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=`0.2.
|
|
1
|
+
const e=`0.2.262`;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
|