@seatlayer/vue 0.67.15 → 0.68.0
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/README.md +5 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -66,6 +66,7 @@ async function checkout() {
|
|
|
66
66
|
<SeatingChart
|
|
67
67
|
ref="chart"
|
|
68
68
|
event="ev_9f3a"
|
|
69
|
+
public-key="pk_live_your_publishable_key"
|
|
69
70
|
style="width: 100%; height: 520px"
|
|
70
71
|
@selection-change="onSelectionChange"
|
|
71
72
|
@hold="({ holdId }) => bookOnYourServer(holdId)"
|
|
@@ -85,7 +86,7 @@ async function checkout() {
|
|
|
85
86
|
| `selectableObjects` | `string[] \| null` | Buyer-selectable allow-list. |
|
|
86
87
|
| `numberOfPlacesToSelect` | `number` | Exact count required for a valid selection. |
|
|
87
88
|
| `selectionValidators` | `PickerSelectionValidator[]` | Minimum, consecutive-seat, and no-orphan guards. |
|
|
88
|
-
| `publicKey` | `string` |
|
|
89
|
+
| `publicKey` | `string` | Publishable browser key for public Platform events. Configure the browser origin in SeatLayer. |
|
|
89
90
|
| `locale` | `string` | BCP-47 locale for built-in copy. |
|
|
90
91
|
| `currency` | `string` | ISO currency for price formatting. |
|
|
91
92
|
| `colorblindSafe` | `boolean` | Render colorblind-safe seat glyphs. |
|
|
@@ -148,6 +149,9 @@ The Vue app **selects and holds** inventory. Your trusted backend **inspects and
|
|
|
148
149
|
books** the hold after payment or order validation.
|
|
149
150
|
|
|
150
151
|
- Never ship a SeatLayer secret key in browser code or a bundled env variable.
|
|
152
|
+
- A `pk_` public key is designed for browser code. SeatLayer binds it to the
|
|
153
|
+
configured origin and event; keep private-channel access behind a server-minted
|
|
154
|
+
`buyerAccessTokenProvider`.
|
|
151
155
|
- Send only the `holdId` and your normal checkout context to your backend.
|
|
152
156
|
- Calculate the charge from server-inspected hold items, not from browser input.
|
|
153
157
|
- Reuse your stable order id as `bookingRef` so a retried booking is idempotent.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seatlayer/vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.68.0",
|
|
4
4
|
"description": "SeatLayer's official Vue seating chart and seat map SDK — live availability, seat selection, temporary holds, and a typed TypeScript API for ticketing apps.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"typescript"
|
|
57
57
|
],
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@seatlayer/core": "0.
|
|
60
|
-
"@seatlayer/js": "0.
|
|
59
|
+
"@seatlayer/core": "0.68.0",
|
|
60
|
+
"@seatlayer/js": "0.68.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"vue": ">=3.3.0"
|