@seatlayer/angular 0.92.1 → 0.93.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 +15 -15
- package/dist/README.md +15 -15
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -25,12 +25,12 @@ also re-exports the plain JavaScript `SeatPickerWidget` class and the
|
|
|
25
25
|
|
|
26
26
|
## What is included
|
|
27
27
|
|
|
28
|
-
- `SeatLayerSeatingChartComponent
|
|
28
|
+
- `SeatLayerSeatingChartComponent`: one standalone Angular component with the
|
|
29
29
|
`seatlayer-seating-chart` selector.
|
|
30
|
-
- `SeatLayerSeasonPickerComponent
|
|
30
|
+
- `SeatLayerSeasonPickerComponent`: fixed-inclusion Season selection and
|
|
31
31
|
returning-holder intent with the `seatlayer-season-picker` selector.
|
|
32
|
-
- `SeatPickerWidget
|
|
33
|
-
- `attachPickerFrame
|
|
32
|
+
- `SeatPickerWidget`: the framework-agnostic one-call buyer modal.
|
|
33
|
+
- `attachPickerFrame`: the host-side iframe helper for embedded pickers.
|
|
34
34
|
- An Angular Package Format build (`fesm2022`) with TypeScript declarations at
|
|
35
35
|
`dist/index.d.ts`.
|
|
36
36
|
|
|
@@ -46,7 +46,7 @@ also re-exports the plain JavaScript `SeatPickerWidget` class and the
|
|
|
46
46
|
npm install @seatlayer/angular
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
The component is **standalone
|
|
49
|
+
The component is **standalone**: import it directly, no NgModule needed.
|
|
50
50
|
|
|
51
51
|
## Quick start
|
|
52
52
|
|
|
@@ -175,12 +175,12 @@ mid-selection because an array instance changed.
|
|
|
175
175
|
| `(selectionLimit)` | Active numeric cap |
|
|
176
176
|
| `(hold)` | `HoldResult` |
|
|
177
177
|
| `(holdRestored)` | `HoldResult` |
|
|
178
|
-
| `(holdExpired)` |
|
|
178
|
+
| `(holdExpired)` | no payload |
|
|
179
179
|
| `(gaClick)` | `GAAreaAvailability` |
|
|
180
180
|
| `(errored)` | `unknown` |
|
|
181
181
|
| `(deckTap)` | `string` (floor id) |
|
|
182
|
-
| `(hint)` | `string \| null
|
|
183
|
-
| `(seatHover)` | `SeatHoverDetails \| null
|
|
182
|
+
| `(hint)` | `string \| null`: `null` clears the hint |
|
|
183
|
+
| `(seatHover)` | `SeatHoverDetails \| null`: `null` when the pointer leaves |
|
|
184
184
|
| `(accessExpired)` | `BuyerAccessExpiredEvent` |
|
|
185
185
|
| `(accessUnavailable)` | `BuyerAccessUnavailableEvent` |
|
|
186
186
|
| `(selectedObjectUnavailable)` | `SelectedObjectUnavailableEvent` |
|
|
@@ -210,14 +210,14 @@ throwing, so a template ref used one frame early is safe.
|
|
|
210
210
|
## Zone behaviour
|
|
211
211
|
|
|
212
212
|
The chart runs a `requestAnimationFrame` render loop and its own pointer
|
|
213
|
-
handlers. Those are created **outside** the Angular zone
|
|
213
|
+
handlers. Those are created **outside** the Angular zone: left inside it, every
|
|
214
214
|
frame would schedule change detection for your whole application. Each callback
|
|
215
215
|
re-enters the zone only to emit, which is the only part Angular needs to see.
|
|
216
216
|
|
|
217
217
|
## Also exported
|
|
218
218
|
|
|
219
|
-
- `SeatPickerWidget
|
|
220
|
-
- `attachPickerFrame
|
|
219
|
+
- `SeatPickerWidget`: raw framework-agnostic JavaScript one-call modal (`SeatPickerWidget.open()`).
|
|
220
|
+
- `attachPickerFrame`: raw framework-agnostic JavaScript iframe helper; grows on `seatlayer:height` and
|
|
221
221
|
pins on `seatlayer:fullscreen`.
|
|
222
222
|
|
|
223
223
|
## Security boundary
|
|
@@ -260,7 +260,7 @@ covers inputs, outputs, holds, and checkout in depth.
|
|
|
260
260
|
### Is this a real Angular component or an iframe?
|
|
261
261
|
|
|
262
262
|
`SeatLayerSeatingChartComponent` is a real standalone Angular component whose
|
|
263
|
-
template is a plain `<div>` in your own tree
|
|
263
|
+
template is a plain `<div>` in your own tree, with no iframe and no stylesheet of
|
|
264
264
|
its own. Its render loop and pointer handlers are created outside the Angular
|
|
265
265
|
zone and re-enter it only to emit, so a running chart does not schedule change
|
|
266
266
|
detection on every frame. If you would rather embed the buyer picker in an iframe,
|
|
@@ -270,8 +270,8 @@ detection on every frame. If you would rather embed the buyer picker in an ifram
|
|
|
270
270
|
|
|
271
271
|
When a buyer commits to a selection, `holdSelection()` reserves that inventory
|
|
272
272
|
against concurrent buyers for a limited checkout window and returns an opaque
|
|
273
|
-
`holdId`. The hold lapses on its own if checkout never completes
|
|
274
|
-
`(holdExpired)` tells the app to return the buyer to the map
|
|
273
|
+
`holdId`. The hold lapses on its own if checkout never completes.
|
|
274
|
+
`(holdExpired)` tells the app to return the buyer to the map, and
|
|
275
275
|
`resumeHold()` restores it after a same-tab checkout navigation or a reload.
|
|
276
276
|
This is what prevents double-selling without locking seats forever.
|
|
277
277
|
|
|
@@ -287,7 +287,7 @@ you already use, and it then books the hold through the
|
|
|
287
287
|
You can explore a live seating chart in the browser at the
|
|
288
288
|
[buyer seat-map demo](https://app.seatlayer.io/demo/play/grand-theatre) with no
|
|
289
289
|
account. Rendering your own venue needs an event key, because the chart and its
|
|
290
|
-
availability are served by the SeatLayer API
|
|
290
|
+
availability are served by the SeatLayer API: create a free test event for
|
|
291
291
|
that, which books no real inventory.
|
|
292
292
|
|
|
293
293
|
## Continue your Angular integration
|
package/dist/README.md
CHANGED
|
@@ -25,12 +25,12 @@ also re-exports the plain JavaScript `SeatPickerWidget` class and the
|
|
|
25
25
|
|
|
26
26
|
## What is included
|
|
27
27
|
|
|
28
|
-
- `SeatLayerSeatingChartComponent
|
|
28
|
+
- `SeatLayerSeatingChartComponent`: one standalone Angular component with the
|
|
29
29
|
`seatlayer-seating-chart` selector.
|
|
30
|
-
- `SeatLayerSeasonPickerComponent
|
|
30
|
+
- `SeatLayerSeasonPickerComponent`: fixed-inclusion Season selection and
|
|
31
31
|
returning-holder intent with the `seatlayer-season-picker` selector.
|
|
32
|
-
- `SeatPickerWidget
|
|
33
|
-
- `attachPickerFrame
|
|
32
|
+
- `SeatPickerWidget`: the framework-agnostic one-call buyer modal.
|
|
33
|
+
- `attachPickerFrame`: the host-side iframe helper for embedded pickers.
|
|
34
34
|
- An Angular Package Format build (`fesm2022`) with TypeScript declarations at
|
|
35
35
|
`dist/index.d.ts`.
|
|
36
36
|
|
|
@@ -46,7 +46,7 @@ also re-exports the plain JavaScript `SeatPickerWidget` class and the
|
|
|
46
46
|
npm install @seatlayer/angular
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
The component is **standalone
|
|
49
|
+
The component is **standalone**: import it directly, no NgModule needed.
|
|
50
50
|
|
|
51
51
|
## Quick start
|
|
52
52
|
|
|
@@ -175,12 +175,12 @@ mid-selection because an array instance changed.
|
|
|
175
175
|
| `(selectionLimit)` | Active numeric cap |
|
|
176
176
|
| `(hold)` | `HoldResult` |
|
|
177
177
|
| `(holdRestored)` | `HoldResult` |
|
|
178
|
-
| `(holdExpired)` |
|
|
178
|
+
| `(holdExpired)` | no payload |
|
|
179
179
|
| `(gaClick)` | `GAAreaAvailability` |
|
|
180
180
|
| `(errored)` | `unknown` |
|
|
181
181
|
| `(deckTap)` | `string` (floor id) |
|
|
182
|
-
| `(hint)` | `string \| null
|
|
183
|
-
| `(seatHover)` | `SeatHoverDetails \| null
|
|
182
|
+
| `(hint)` | `string \| null`: `null` clears the hint |
|
|
183
|
+
| `(seatHover)` | `SeatHoverDetails \| null`: `null` when the pointer leaves |
|
|
184
184
|
| `(accessExpired)` | `BuyerAccessExpiredEvent` |
|
|
185
185
|
| `(accessUnavailable)` | `BuyerAccessUnavailableEvent` |
|
|
186
186
|
| `(selectedObjectUnavailable)` | `SelectedObjectUnavailableEvent` |
|
|
@@ -210,14 +210,14 @@ throwing, so a template ref used one frame early is safe.
|
|
|
210
210
|
## Zone behaviour
|
|
211
211
|
|
|
212
212
|
The chart runs a `requestAnimationFrame` render loop and its own pointer
|
|
213
|
-
handlers. Those are created **outside** the Angular zone
|
|
213
|
+
handlers. Those are created **outside** the Angular zone: left inside it, every
|
|
214
214
|
frame would schedule change detection for your whole application. Each callback
|
|
215
215
|
re-enters the zone only to emit, which is the only part Angular needs to see.
|
|
216
216
|
|
|
217
217
|
## Also exported
|
|
218
218
|
|
|
219
|
-
- `SeatPickerWidget
|
|
220
|
-
- `attachPickerFrame
|
|
219
|
+
- `SeatPickerWidget`: raw framework-agnostic JavaScript one-call modal (`SeatPickerWidget.open()`).
|
|
220
|
+
- `attachPickerFrame`: raw framework-agnostic JavaScript iframe helper; grows on `seatlayer:height` and
|
|
221
221
|
pins on `seatlayer:fullscreen`.
|
|
222
222
|
|
|
223
223
|
## Security boundary
|
|
@@ -260,7 +260,7 @@ covers inputs, outputs, holds, and checkout in depth.
|
|
|
260
260
|
### Is this a real Angular component or an iframe?
|
|
261
261
|
|
|
262
262
|
`SeatLayerSeatingChartComponent` is a real standalone Angular component whose
|
|
263
|
-
template is a plain `<div>` in your own tree
|
|
263
|
+
template is a plain `<div>` in your own tree, with no iframe and no stylesheet of
|
|
264
264
|
its own. Its render loop and pointer handlers are created outside the Angular
|
|
265
265
|
zone and re-enter it only to emit, so a running chart does not schedule change
|
|
266
266
|
detection on every frame. If you would rather embed the buyer picker in an iframe,
|
|
@@ -270,8 +270,8 @@ detection on every frame. If you would rather embed the buyer picker in an ifram
|
|
|
270
270
|
|
|
271
271
|
When a buyer commits to a selection, `holdSelection()` reserves that inventory
|
|
272
272
|
against concurrent buyers for a limited checkout window and returns an opaque
|
|
273
|
-
`holdId`. The hold lapses on its own if checkout never completes
|
|
274
|
-
`(holdExpired)` tells the app to return the buyer to the map
|
|
273
|
+
`holdId`. The hold lapses on its own if checkout never completes.
|
|
274
|
+
`(holdExpired)` tells the app to return the buyer to the map, and
|
|
275
275
|
`resumeHold()` restores it after a same-tab checkout navigation or a reload.
|
|
276
276
|
This is what prevents double-selling without locking seats forever.
|
|
277
277
|
|
|
@@ -287,7 +287,7 @@ you already use, and it then books the hold through the
|
|
|
287
287
|
You can explore a live seating chart in the browser at the
|
|
288
288
|
[buyer seat-map demo](https://app.seatlayer.io/demo/play/grand-theatre) with no
|
|
289
289
|
account. Rendering your own venue needs an event key, because the chart and its
|
|
290
|
-
availability are served by the SeatLayer API
|
|
290
|
+
availability are served by the SeatLayer API: create a free test event for
|
|
291
291
|
that, which books no real inventory.
|
|
292
292
|
|
|
293
293
|
## Continue your Angular integration
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seatlayer/angular",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "SeatLayer's official Angular seating chart and seat map SDK
|
|
3
|
+
"version": "0.93.0",
|
|
4
|
+
"description": "SeatLayer's official Angular 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",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"typescript"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@seatlayer/core": "0.
|
|
40
|
-
"@seatlayer/js": "0.
|
|
39
|
+
"@seatlayer/core": "0.93.0",
|
|
40
|
+
"@seatlayer/js": "0.93.0",
|
|
41
41
|
"tslib": "^2.8.1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|