@lockerverse/react 0.2.230 → 0.2.232

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.
@@ -1,6 +1,6 @@
1
1
  # Lockerverse auctions guide
2
2
 
3
- Package: @lockerverse/react@0.2.230
3
+ Package: @lockerverse/react@0.2.232
4
4
 
5
5
  Generated from this release's maintained documentation. Do not edit this copy.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Lockerverse bookings guide
2
2
 
3
- Package: @lockerverse/react@0.2.230
3
+ Package: @lockerverse/react@0.2.232
4
4
 
5
5
  Generated from this release's maintained documentation. Do not edit this copy.
6
6
 
@@ -55,7 +55,22 @@ server attempt. `recover()` returns the saved attempt or null. `refresh()` loads
55
55
  configuration and recovery and returns void. All action promises reject on error;
56
56
  handle the rejection and show `error.message`.
57
57
 
58
- Use `configuration.business.service` for the available service before selection.
58
+ For a location with a Square catalog, render one option per entry in
59
+ `configuration.business.services`. Use its `serviceVariationId` as the option
60
+ value and display its name, price and duration. An empty list has no bookable
61
+ services. When the customer changes services, clear the selected slot and load
62
+ times for the new choice before showing checkout:
63
+
64
+ ```tsx
65
+ const { slots } = await booking.findTimes(date, service.serviceVariationId);
66
+ await booking.initialize({
67
+ date, start: slots[selectedSlot], customer,
68
+ serviceVariationId: service.serviceVariationId,
69
+ });
70
+ ```
71
+
72
+ When the services list is absent, use `configuration.business.service` and
73
+ omit the ID for the existing single-service flow.
59
74
  After initialization or recovery, use `attempt.serviceName`, `attempt.amountCents`
60
75
  and `attempt.currency` for the payment review and saved booking summary. The owner
61
76
  can change the current service after this attempt was created; that must not
@@ -112,7 +127,7 @@ can block a new payment without hiding the customer's saved payment or bank
112
127
  verification. Keep the saved booking summary and recovery controls visible when
113
128
  configuration fails; show the error without clearing that saved state.
114
129
 
115
- Booking support uses one configured service per business and USD. The
130
+ Bookings use USD. The owner can offer a single service or the eligible services at a Square location. The
116
131
  backend owns Square credentials, the payment amount, payment idempotency, booking
117
132
  creation and the staff paid note. SDK availability does not enable production
118
133
  booking endpoints: complete the owner's Square and Lockerverse payment setup in
@@ -1,6 +1,6 @@
1
1
  # Lockerverse browser-embed guide
2
2
 
3
- Package: @lockerverse/react@0.2.230
3
+ Package: @lockerverse/react@0.2.232
4
4
 
5
5
  Generated from this release's maintained documentation. Do not edit this copy.
6
6
 
package/guides/events.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Lockerverse events guide
2
2
 
3
- Package: @lockerverse/react@0.2.230
3
+ Package: @lockerverse/react@0.2.232
4
4
 
5
5
  Generated from this release's maintained documentation. Do not edit this copy.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Lockerverse integration guide
2
2
 
3
- Package: @lockerverse/react@0.2.230
3
+ Package: @lockerverse/react@0.2.232
4
4
 
5
5
  Generated from this release's maintained documentation. Do not edit this copy.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Lockerverse payment-widgets guide
2
2
 
3
- Package: @lockerverse/react@0.2.230
3
+ Package: @lockerverse/react@0.2.232
4
4
 
5
5
  Generated from this release's maintained documentation. Do not edit this copy.
6
6
 
package/guides/signup.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Lockerverse signup guide
2
2
 
3
- Package: @lockerverse/react@0.2.230
3
+ Package: @lockerverse/react@0.2.232
4
4
 
5
5
  Generated from this release's maintained documentation. Do not edit this copy.
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lockerverse/react",
3
- "version": "0.2.230",
3
+ "version": "0.2.232",
4
4
  "description": "Tree-shakable React payment and signup UI for Lockerverse",
5
5
  "repository": {
6
6
  "type": "git",
@@ -146,7 +146,7 @@
146
146
  "embla-carousel-react": "8.6.0",
147
147
  "lucide-react": "0.536.0",
148
148
  "valibot": "1.4.2",
149
- "@lockerverse/sdk": "0.2.230"
149
+ "@lockerverse/sdk": "0.2.232"
150
150
  },
151
151
  "devDependencies": {
152
152
  "@size-limit/file": "13.0.3",