@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.
- package/dist/bookings.d.ts +3 -3
- package/dist/bookings.d.ts.map +1 -1
- package/dist/bookings.js +1 -1
- package/dist/bookings.js.map +1 -1
- package/dist/embed/chunks/{auction-payment-view-OKQBWLYB.js → auction-payment-view-VFXSZWXR.js} +1 -1
- package/dist/embed/chunks/{chunk-ZHBH4ZF6.js → chunk-2KXVUET3.js} +1 -1
- package/dist/embed/chunks/{chunk-45NQLOLF.js → chunk-KW7VHDHQ.js} +2 -2
- package/dist/embed/chunks/{chunk-6ZVB3IR2.js → chunk-MAAX3XDC.js} +2 -2
- package/dist/embed/chunks/{lockerverse-auction-item-ZKKDIU3S.js → lockerverse-auction-item-L62MMRHZ.js} +2 -2
- package/dist/embed/lockerverse.js +1 -1
- package/dist/embed/runtime.js +2 -2
- package/guides/auctions.md +1 -1
- package/guides/bookings.md +18 -3
- package/guides/browser-embed.md +1 -1
- package/guides/events.md +1 -1
- package/guides/integration.md +1 -1
- package/guides/payment-widgets.md +1 -1
- package/guides/signup.md +1 -1
- package/package.json +2 -2
- /package/dist/embed/chunks/{chunk-45NQLOLF.js.LEGAL.txt → chunk-KW7VHDHQ.js.LEGAL.txt} +0 -0
- /package/dist/embed/chunks/{chunk-6ZVB3IR2.js.LEGAL.txt → chunk-MAAX3XDC.js.LEGAL.txt} +0 -0
- /package/dist/embed/chunks/{lockerverse-auction-item-ZKKDIU3S.js.LEGAL.txt → lockerverse-auction-item-L62MMRHZ.js.LEGAL.txt} +0 -0
package/guides/auctions.md
CHANGED
package/guides/bookings.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Lockerverse bookings guide
|
|
2
2
|
|
|
3
|
-
Package: @lockerverse/react@0.2.
|
|
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
|
-
|
|
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
|
-
|
|
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
|
package/guides/browser-embed.md
CHANGED
package/guides/events.md
CHANGED
package/guides/integration.md
CHANGED
package/guides/signup.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lockerverse/react",
|
|
3
|
-
"version": "0.2.
|
|
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.
|
|
149
|
+
"@lockerverse/sdk": "0.2.232"
|
|
150
150
|
},
|
|
151
151
|
"devDependencies": {
|
|
152
152
|
"@size-limit/file": "13.0.3",
|
|
File without changes
|
|
File without changes
|