@seatlayer/vue 0.92.5 → 0.94.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 +13 -13
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -25,11 +25,11 @@ also re-exports the plain JavaScript `SeatPickerWidget` class and the
|
|
|
25
25
|
|
|
26
26
|
## What is included
|
|
27
27
|
|
|
28
|
-
- `SeatingChart
|
|
28
|
+
- `SeatingChart`: one Vue 3 component wrapper (`SeatLayerSeatingChart`), written
|
|
29
29
|
as a render function so no Vue compiler plugin is needed.
|
|
30
|
-
- `SeasonPicker
|
|
31
|
-
- `SeatPickerWidget
|
|
32
|
-
- `attachPickerFrame
|
|
30
|
+
- `SeasonPicker`: fixed-inclusion Season selection and returning-holder intent.
|
|
31
|
+
- `SeatPickerWidget`: the framework-agnostic one-call buyer modal.
|
|
32
|
+
- `attachPickerFrame`: the host-side iframe helper for embedded pickers.
|
|
33
33
|
- TypeScript declarations for ESM (`dist/index.d.ts`) and CommonJS
|
|
34
34
|
(`dist/index.d.cts`), including the `SeatingChartExposed` handle type.
|
|
35
35
|
|
|
@@ -168,12 +168,12 @@ chart mid-selection.
|
|
|
168
168
|
| `@selection-limit` | Active numeric cap |
|
|
169
169
|
| `@hold` | `HoldResult` |
|
|
170
170
|
| `@hold-restored` | `HoldResult` |
|
|
171
|
-
| `@hold-expired` |
|
|
171
|
+
| `@hold-expired` | no payload |
|
|
172
172
|
| `@ga-click` | `GAAreaAvailability` |
|
|
173
173
|
| `@error` | `unknown` |
|
|
174
174
|
| `@deck-tap` | `string` (floor id) |
|
|
175
|
-
| `@hint` | `string \| null
|
|
176
|
-
| `@seat-hover` | `SeatHoverDetails \| null
|
|
175
|
+
| `@hint` | `string \| null`: `null` clears the hint |
|
|
176
|
+
| `@seat-hover` | `SeatHoverDetails \| null`: `null` when the pointer leaves |
|
|
177
177
|
| `@access-expired` | `BuyerAccessExpiredEvent` |
|
|
178
178
|
| `@access-unavailable` | `BuyerAccessUnavailableEvent` |
|
|
179
179
|
| `@selected-object-unavailable` | `SelectedObjectUnavailableEvent` |
|
|
@@ -195,8 +195,8 @@ throwing, so a template ref used one frame early is safe.
|
|
|
195
195
|
|
|
196
196
|
## Also exported
|
|
197
197
|
|
|
198
|
-
- `SeatPickerWidget
|
|
199
|
-
- `attachPickerFrame
|
|
198
|
+
- `SeatPickerWidget`: raw framework-agnostic JavaScript one-call modal (`SeatPickerWidget.open()`).
|
|
199
|
+
- `attachPickerFrame`: raw framework-agnostic JavaScript iframe helper; grows on `seatlayer:height` and
|
|
200
200
|
pins on `seatlayer:fullscreen`.
|
|
201
201
|
|
|
202
202
|
## Security boundary
|
|
@@ -237,7 +237,7 @@ covers props, events, holds, and checkout in depth.
|
|
|
237
237
|
### Is this a real Vue component or an iframe?
|
|
238
238
|
|
|
239
239
|
`SeatingChart` is a Vue 3 component that renders a plain `<div>` into your own
|
|
240
|
-
tree
|
|
240
|
+
tree, with no iframe and no stylesheet of its own. It is written as a render
|
|
241
241
|
function rather than a single-file component, so it needs no Vue compiler
|
|
242
242
|
plugin. Use it on the client in Vite, Nuxt, or another Vue 3 bundler. If you
|
|
243
243
|
would rather embed the buyer picker in an iframe, `attachPickerFrame` is
|
|
@@ -247,8 +247,8 @@ exported for that.
|
|
|
247
247
|
|
|
248
248
|
When a buyer commits to a selection, `hold()` reserves that inventory against
|
|
249
249
|
concurrent buyers for a limited checkout window and returns an opaque `holdId`.
|
|
250
|
-
The hold lapses on its own if checkout never completes
|
|
251
|
-
the app to return the buyer to the map
|
|
250
|
+
The hold lapses on its own if checkout never completes. `@hold-expired` tells
|
|
251
|
+
the app to return the buyer to the map, and `resumeHold()` restores it after a
|
|
252
252
|
same-tab checkout navigation or a reload. This is what prevents double-selling
|
|
253
253
|
without locking seats forever.
|
|
254
254
|
|
|
@@ -264,7 +264,7 @@ you already use, and it then books the hold through the
|
|
|
264
264
|
You can explore a live seating chart in the browser at the
|
|
265
265
|
[buyer seat-map demo](https://app.seatlayer.io/demo/play/grand-theatre) with no
|
|
266
266
|
account. Rendering your own venue needs an event key, because the chart and its
|
|
267
|
-
availability are served by the SeatLayer API
|
|
267
|
+
availability are served by the SeatLayer API: create a free test event for
|
|
268
268
|
that, which books no real inventory.
|
|
269
269
|
|
|
270
270
|
## Continue your Vue integration
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seatlayer/vue",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "SeatLayer's official Vue seating chart and seat map SDK
|
|
3
|
+
"version": "0.94.0",
|
|
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": {
|
|
7
7
|
"name": "SeatLayer",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"typescript"
|
|
57
57
|
],
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@seatlayer/core": "0.
|
|
60
|
-
"@seatlayer/js": "0.
|
|
59
|
+
"@seatlayer/core": "0.94.0",
|
|
60
|
+
"@seatlayer/js": "0.94.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"vue": ">=3.3.0"
|