@seatlayer/angular 0.65.0 → 0.67.15
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 +153 -20
- package/dist/README.md +153 -20
- package/package.json +15 -6
package/README.md
CHANGED
|
@@ -1,20 +1,42 @@
|
|
|
1
|
-
#
|
|
1
|
+
# SeatLayer Angular Seat Map SDK for Reserved Seating
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@seatlayer/angular)
|
|
4
4
|
[](https://www.npmjs.com/package/@seatlayer/angular)
|
|
5
5
|
[](https://angular.dev/)
|
|
6
|
+
[](https://www.typescriptlang.org/)
|
|
6
7
|
[](../../LICENSE)
|
|
7
8
|
|
|
8
|
-
The official Angular wrapper for SeatLayer reserved seating
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
`attachPickerFrame` helpers exported by this package; they are not additional
|
|
12
|
-
Angular components.
|
|
9
|
+
The official Angular wrapper for SeatLayer reserved seating. Render an
|
|
10
|
+
interactive seating chart with live seat availability inside an Angular app, let
|
|
11
|
+
buyers pick seats, and take a temporary hold on the inventory they choose.
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
The buyer modal and iframe integration stay framework-agnostic: this package
|
|
14
|
+
also re-exports the plain JavaScript `SeatPickerWidget` class and the
|
|
15
|
+
`attachPickerFrame` helper, so an Angular host depends on one package.
|
|
16
|
+
|
|
17
|
+
[SeatLayer Angular SDK on npm](https://www.npmjs.com/package/@seatlayer/angular) ·
|
|
18
|
+
[Angular seat-map documentation](https://docs.seatlayer.io/buyer-sdk/seat-picker/) ·
|
|
19
|
+
[SeatLayer reserved-seating platform](https://seatlayer.io/) ·
|
|
20
|
+
[Buyer seat-map demo](https://app.seatlayer.io/demo/play/grand-theatre) ·
|
|
21
|
+
[SeatLayer JavaScript seat map SDK](https://www.npmjs.com/package/@seatlayer/js) ·
|
|
22
|
+
[SeatLayer React seat map SDK](https://www.npmjs.com/package/@seatlayer/react) ·
|
|
23
|
+
[SeatLayer Vue seat map SDK](https://www.npmjs.com/package/@seatlayer/vue) ·
|
|
24
|
+
[SeatLayer AI Toolkit](https://github.com/seatlayer/seatlayer-ai-toolkit)
|
|
25
|
+
|
|
26
|
+
## What is included
|
|
27
|
+
|
|
28
|
+
- `SeatLayerSeatingChartComponent` — one standalone Angular component with the
|
|
29
|
+
`seatlayer-seating-chart` selector.
|
|
30
|
+
- `SeatPickerWidget` — the framework-agnostic one-call buyer modal.
|
|
31
|
+
- `attachPickerFrame` — the host-side iframe helper for embedded pickers.
|
|
32
|
+
- An Angular Package Format build (`fesm2022`) with TypeScript declarations at
|
|
33
|
+
`dist/index.d.ts`.
|
|
34
|
+
|
|
35
|
+
## Requirements
|
|
36
|
+
|
|
37
|
+
- Angular 17 or newer (`@angular/core` and `@angular/common` are peer
|
|
38
|
+
dependencies).
|
|
39
|
+
- A browser DOM: the chart is created when the component initialises.
|
|
18
40
|
|
|
19
41
|
## Install
|
|
20
42
|
|
|
@@ -22,10 +44,9 @@ Angular components.
|
|
|
22
44
|
npm install @seatlayer/angular
|
|
23
45
|
```
|
|
24
46
|
|
|
25
|
-
|
|
26
|
-
directly, no NgModule needed.
|
|
47
|
+
The component is **standalone** — import it directly, no NgModule needed.
|
|
27
48
|
|
|
28
|
-
##
|
|
49
|
+
## Quick start
|
|
29
50
|
|
|
30
51
|
```ts
|
|
31
52
|
import { Component, ViewChild } from '@angular/core';
|
|
@@ -74,6 +95,10 @@ export class CheckoutComponent {
|
|
|
74
95
|
| `colorblindSafe` | `boolean` | Render colorblind-safe seat glyphs. |
|
|
75
96
|
| `seatTooltip` | `boolean` | Set `false` to draw your own popover from `(seatHover)`. |
|
|
76
97
|
| `messages` | `object` | Copy overrides. Read once per rebuild. |
|
|
98
|
+
| `initialView` | `RendererViewMode` | Initial 2D projection, read once per rebuild. |
|
|
99
|
+
| `errorDisplay` | `'message' \| 'none'` | `'message'` (default) shows a notice with Try again; `'none'` is silent. |
|
|
100
|
+
| `buyerAccessTokenProvider` | `BuyerAccessTokenProvider` | Sales Channels: mint a buyer access session on demand from your backend. |
|
|
101
|
+
| `buyerAccessToken` | `string \| BuyerAccessToken` | One-shot session for hosts that own the lifecycle. Cannot be renewed. |
|
|
77
102
|
|
|
78
103
|
`numberOfPlacesToSelect`, `selectionValidators`, and the other identity inputs rebuild the
|
|
79
104
|
canvas. `selectedObjects` and `selectableObjects` are initial values; use the
|
|
@@ -96,6 +121,9 @@ mid-selection because an array instance changed.
|
|
|
96
121
|
| `(deckTap)` | `string` (floor id) |
|
|
97
122
|
| `(hint)` | `string \| null` — `null` clears the hint |
|
|
98
123
|
| `(seatHover)` | `SeatHoverDetails \| null` — `null` when the pointer leaves |
|
|
124
|
+
| `(accessExpired)` | `BuyerAccessExpiredEvent` |
|
|
125
|
+
| `(accessUnavailable)` | `BuyerAccessUnavailableEvent` |
|
|
126
|
+
| `(selectedObjectUnavailable)` | `SelectedObjectUnavailableEvent` |
|
|
99
127
|
|
|
100
128
|
> `(errored)` rather than `(error)`: `error` collides with the native DOM error
|
|
101
129
|
> event on the host element, which would fire your handler for unrelated
|
|
@@ -111,7 +139,10 @@ Via a template ref (`#chart`):
|
|
|
111
139
|
`deselectCategories` · `setSelectableObjects` · `setMaxSelection` ·
|
|
112
140
|
`getSelectionValidity` ·
|
|
113
141
|
`getFloors` · `setFloor` · `setColorblindSafe` · `zoomIn` · `zoomOut` ·
|
|
114
|
-
`zoomToFit`
|
|
142
|
+
`zoomToFit` · `refreshAccess`
|
|
143
|
+
|
|
144
|
+
Calling any of them before the chart exists returns an empty answer rather than
|
|
145
|
+
throwing, so a template ref used one frame early is safe.
|
|
115
146
|
|
|
116
147
|
> `holdSelection()` rather than `hold()`: `hold` is already the name of the
|
|
117
148
|
> `@Output`, and a class cannot have both.
|
|
@@ -129,13 +160,115 @@ re-enters the zone only to emit, which is the only part Angular needs to see.
|
|
|
129
160
|
- `attachPickerFrame` — raw framework-agnostic JavaScript iframe helper; grows on `seatlayer:height` and
|
|
130
161
|
pins on `seatlayer:fullscreen`.
|
|
131
162
|
|
|
132
|
-
##
|
|
163
|
+
## Security boundary
|
|
164
|
+
|
|
165
|
+
The Angular app **selects and holds** inventory. Your trusted backend **inspects
|
|
166
|
+
and books** the hold after payment or order validation.
|
|
167
|
+
|
|
168
|
+
- Never ship a SeatLayer secret key in browser code or a bundled environment
|
|
169
|
+
file.
|
|
170
|
+
- Send only the `holdId` and your normal checkout context to your backend.
|
|
171
|
+
- Calculate the charge from server-inspected hold items, not from browser input.
|
|
172
|
+
- Reuse your stable order id as `bookingRef` so a retried booking is idempotent.
|
|
173
|
+
|
|
174
|
+
Read [how the integration works](https://docs.seatlayer.io/start/how-it-works/)
|
|
175
|
+
before connecting checkout.
|
|
176
|
+
|
|
177
|
+
## Architecture
|
|
178
|
+
|
|
179
|
+
This package is a thin Angular layer over
|
|
180
|
+
[`@seatlayer/js`](https://www.npmjs.com/package/@seatlayer/js), the
|
|
181
|
+
framework-agnostic browser runtime. The component's template is a single
|
|
182
|
+
`<div>`, `ngOnChanges` decides which inputs rebuild the chart, and the
|
|
183
|
+
imperative methods forward to the runtime handle. Chart geometry, availability,
|
|
184
|
+
and holds come from the SeatLayer API at runtime.
|
|
185
|
+
|
|
186
|
+
## Frequently asked questions
|
|
187
|
+
|
|
188
|
+
### How do I add a seat map to an Angular app?
|
|
189
|
+
|
|
190
|
+
Install `@seatlayer/angular`, import the standalone
|
|
191
|
+
`SeatLayerSeatingChartComponent`, and put `<seatlayer-seating-chart
|
|
192
|
+
event="ev_…">` on screen inside a block with a definite height. That is a
|
|
193
|
+
complete interactive seating chart with live availability; the
|
|
194
|
+
[seat-picker documentation](https://docs.seatlayer.io/buyer-sdk/seat-picker/)
|
|
195
|
+
covers inputs, outputs, holds, and checkout in depth.
|
|
196
|
+
|
|
197
|
+
### Is this a real Angular component or an iframe?
|
|
198
|
+
|
|
199
|
+
`SeatLayerSeatingChartComponent` is a real standalone Angular component whose
|
|
200
|
+
template is a plain `<div>` in your own tree — no iframe and no stylesheet of
|
|
201
|
+
its own. Its render loop and pointer handlers are created outside the Angular
|
|
202
|
+
zone and re-enter it only to emit, so a running chart does not schedule change
|
|
203
|
+
detection on every frame. If you would rather embed the buyer picker in an iframe,
|
|
204
|
+
`attachPickerFrame` is exported for that.
|
|
205
|
+
|
|
206
|
+
### How do temporary seat holds work?
|
|
207
|
+
|
|
208
|
+
When a buyer commits to a selection, `holdSelection()` reserves that inventory
|
|
209
|
+
against concurrent buyers for a limited checkout window and returns an opaque
|
|
210
|
+
`holdId`. The hold lapses on its own if checkout never completes —
|
|
211
|
+
`(holdExpired)` tells the app to return the buyer to the map — and
|
|
212
|
+
`resumeHold()` restores it after a same-tab checkout navigation or a reload.
|
|
213
|
+
This is what prevents double-selling without locking seats forever.
|
|
214
|
+
|
|
215
|
+
### Can I use my own payment provider?
|
|
216
|
+
|
|
217
|
+
Yes. Nothing in this package takes a payment. The browser hands your code a
|
|
218
|
+
`holdId` and priced line items, your backend charges through whatever provider
|
|
219
|
+
you already use, and it then books the hold through the
|
|
220
|
+
[server-side checkout flow](https://docs.seatlayer.io/buyer-sdk/holds-and-checkout/).
|
|
221
|
+
|
|
222
|
+
### Can I evaluate it without a SeatLayer account?
|
|
223
|
+
|
|
224
|
+
You can explore a live seating chart in the browser at the
|
|
225
|
+
[buyer seat-map demo](https://app.seatlayer.io/demo/play/grand-theatre) with no
|
|
226
|
+
account. Rendering your own venue needs an event key, because the chart and its
|
|
227
|
+
availability are served by the SeatLayer API — create a free test event for
|
|
228
|
+
that, which books no real inventory.
|
|
229
|
+
|
|
230
|
+
## Continue your Angular integration
|
|
231
|
+
|
|
232
|
+
- [Follow the buyer SDK installation guide](https://docs.seatlayer.io/buyer-sdk/install/)
|
|
233
|
+
for the full browser integration, options, and events.
|
|
234
|
+
- [Connect seat holds to secure server-side checkout](https://docs.seatlayer.io/buyer-sdk/holds-and-checkout/)
|
|
235
|
+
without putting booking credentials in the browser.
|
|
236
|
+
- [Run the complete checkout example](https://docs.seatlayer.io/examples/complete-checkout/)
|
|
237
|
+
to connect a buyer hold id to payment and idempotent booking.
|
|
238
|
+
- [Compare SeatLayer's mobile seat map SDKs](https://docs.seatlayer.io/buyer-sdk/mobile/)
|
|
239
|
+
when the same event also has to render in native iOS, Android, Flutter, or
|
|
240
|
+
React Native apps.
|
|
241
|
+
- [Read the embedded Designer guide](https://docs.seatlayer.io/platform/embedded-designer/)
|
|
242
|
+
to let organizers draw their own venues inside your product.
|
|
243
|
+
- [Explore the 3D seating chart](https://seatlayer.io/3d-seat-map/) for the
|
|
244
|
+
interactive venue view buyers can switch to from the map.
|
|
245
|
+
- [Point AI coding agents at the SeatLayer docs index](https://docs.seatlayer.io/llms.txt)
|
|
246
|
+
(`llms.txt`) for an agent-readable map of the documentation.
|
|
247
|
+
|
|
248
|
+
## SeatLayer SDK ecosystem
|
|
249
|
+
|
|
250
|
+
| Surface | Package or source |
|
|
251
|
+
| --- | --- |
|
|
252
|
+
| JavaScript | [`@seatlayer/js`](https://www.npmjs.com/package/@seatlayer/js) |
|
|
253
|
+
| React | [`@seatlayer/react`](https://www.npmjs.com/package/@seatlayer/react) |
|
|
254
|
+
| Vue | [`@seatlayer/vue`](https://www.npmjs.com/package/@seatlayer/vue) |
|
|
255
|
+
| Angular | [`@seatlayer/angular`](https://www.npmjs.com/package/@seatlayer/angular) (this package) |
|
|
256
|
+
| React Native | [`@seatlayer/react-native`](https://www.npmjs.com/package/@seatlayer/react-native) |
|
|
257
|
+
| iOS | [`seatlayer-ios`](https://github.com/seatlayer/seatlayer-ios) |
|
|
258
|
+
| Flutter | [`seatlayer`](https://pub.dev/packages/seatlayer) |
|
|
259
|
+
| Android | [`seatlayer-android`](https://github.com/seatlayer/seatlayer-android) |
|
|
260
|
+
| Server SDKs | [Node.js, Python, PHP, Ruby, .NET, Java, and Go](https://docs.seatlayer.io/server-sdk/install/) |
|
|
261
|
+
|
|
262
|
+
## Development
|
|
263
|
+
|
|
264
|
+
```bash
|
|
265
|
+
pnpm install
|
|
266
|
+
pnpm verify
|
|
267
|
+
```
|
|
133
268
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
- [`@seatlayer/js`](https://www.npmjs.com/package/@seatlayer/js) — framework-agnostic core
|
|
137
|
-
- [Server SDKs](https://docs.seatlayer.io/server-sdk/install/) — Node.js, Python, PHP, Java, Go, Ruby, .NET
|
|
269
|
+
Source, issues, and contribution guidance live in
|
|
270
|
+
[seatlayer/seatlayer-sdk](https://github.com/seatlayer/seatlayer-sdk).
|
|
138
271
|
|
|
139
272
|
## License
|
|
140
273
|
|
|
141
|
-
MIT
|
|
274
|
+
MIT © SeatLayer
|
package/dist/README.md
CHANGED
|
@@ -1,20 +1,42 @@
|
|
|
1
|
-
#
|
|
1
|
+
# SeatLayer Angular Seat Map SDK for Reserved Seating
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@seatlayer/angular)
|
|
4
4
|
[](https://www.npmjs.com/package/@seatlayer/angular)
|
|
5
5
|
[](https://angular.dev/)
|
|
6
|
+
[](https://www.typescriptlang.org/)
|
|
6
7
|
[](../../LICENSE)
|
|
7
8
|
|
|
8
|
-
The official Angular wrapper for SeatLayer reserved seating
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
`attachPickerFrame` helpers exported by this package; they are not additional
|
|
12
|
-
Angular components.
|
|
9
|
+
The official Angular wrapper for SeatLayer reserved seating. Render an
|
|
10
|
+
interactive seating chart with live seat availability inside an Angular app, let
|
|
11
|
+
buyers pick seats, and take a temporary hold on the inventory they choose.
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
The buyer modal and iframe integration stay framework-agnostic: this package
|
|
14
|
+
also re-exports the plain JavaScript `SeatPickerWidget` class and the
|
|
15
|
+
`attachPickerFrame` helper, so an Angular host depends on one package.
|
|
16
|
+
|
|
17
|
+
[SeatLayer Angular SDK on npm](https://www.npmjs.com/package/@seatlayer/angular) ·
|
|
18
|
+
[Angular seat-map documentation](https://docs.seatlayer.io/buyer-sdk/seat-picker/) ·
|
|
19
|
+
[SeatLayer reserved-seating platform](https://seatlayer.io/) ·
|
|
20
|
+
[Buyer seat-map demo](https://app.seatlayer.io/demo/play/grand-theatre) ·
|
|
21
|
+
[SeatLayer JavaScript seat map SDK](https://www.npmjs.com/package/@seatlayer/js) ·
|
|
22
|
+
[SeatLayer React seat map SDK](https://www.npmjs.com/package/@seatlayer/react) ·
|
|
23
|
+
[SeatLayer Vue seat map SDK](https://www.npmjs.com/package/@seatlayer/vue) ·
|
|
24
|
+
[SeatLayer AI Toolkit](https://github.com/seatlayer/seatlayer-ai-toolkit)
|
|
25
|
+
|
|
26
|
+
## What is included
|
|
27
|
+
|
|
28
|
+
- `SeatLayerSeatingChartComponent` — one standalone Angular component with the
|
|
29
|
+
`seatlayer-seating-chart` selector.
|
|
30
|
+
- `SeatPickerWidget` — the framework-agnostic one-call buyer modal.
|
|
31
|
+
- `attachPickerFrame` — the host-side iframe helper for embedded pickers.
|
|
32
|
+
- An Angular Package Format build (`fesm2022`) with TypeScript declarations at
|
|
33
|
+
`dist/index.d.ts`.
|
|
34
|
+
|
|
35
|
+
## Requirements
|
|
36
|
+
|
|
37
|
+
- Angular 17 or newer (`@angular/core` and `@angular/common` are peer
|
|
38
|
+
dependencies).
|
|
39
|
+
- A browser DOM: the chart is created when the component initialises.
|
|
18
40
|
|
|
19
41
|
## Install
|
|
20
42
|
|
|
@@ -22,10 +44,9 @@ Angular components.
|
|
|
22
44
|
npm install @seatlayer/angular
|
|
23
45
|
```
|
|
24
46
|
|
|
25
|
-
|
|
26
|
-
directly, no NgModule needed.
|
|
47
|
+
The component is **standalone** — import it directly, no NgModule needed.
|
|
27
48
|
|
|
28
|
-
##
|
|
49
|
+
## Quick start
|
|
29
50
|
|
|
30
51
|
```ts
|
|
31
52
|
import { Component, ViewChild } from '@angular/core';
|
|
@@ -74,6 +95,10 @@ export class CheckoutComponent {
|
|
|
74
95
|
| `colorblindSafe` | `boolean` | Render colorblind-safe seat glyphs. |
|
|
75
96
|
| `seatTooltip` | `boolean` | Set `false` to draw your own popover from `(seatHover)`. |
|
|
76
97
|
| `messages` | `object` | Copy overrides. Read once per rebuild. |
|
|
98
|
+
| `initialView` | `RendererViewMode` | Initial 2D projection, read once per rebuild. |
|
|
99
|
+
| `errorDisplay` | `'message' \| 'none'` | `'message'` (default) shows a notice with Try again; `'none'` is silent. |
|
|
100
|
+
| `buyerAccessTokenProvider` | `BuyerAccessTokenProvider` | Sales Channels: mint a buyer access session on demand from your backend. |
|
|
101
|
+
| `buyerAccessToken` | `string \| BuyerAccessToken` | One-shot session for hosts that own the lifecycle. Cannot be renewed. |
|
|
77
102
|
|
|
78
103
|
`numberOfPlacesToSelect`, `selectionValidators`, and the other identity inputs rebuild the
|
|
79
104
|
canvas. `selectedObjects` and `selectableObjects` are initial values; use the
|
|
@@ -96,6 +121,9 @@ mid-selection because an array instance changed.
|
|
|
96
121
|
| `(deckTap)` | `string` (floor id) |
|
|
97
122
|
| `(hint)` | `string \| null` — `null` clears the hint |
|
|
98
123
|
| `(seatHover)` | `SeatHoverDetails \| null` — `null` when the pointer leaves |
|
|
124
|
+
| `(accessExpired)` | `BuyerAccessExpiredEvent` |
|
|
125
|
+
| `(accessUnavailable)` | `BuyerAccessUnavailableEvent` |
|
|
126
|
+
| `(selectedObjectUnavailable)` | `SelectedObjectUnavailableEvent` |
|
|
99
127
|
|
|
100
128
|
> `(errored)` rather than `(error)`: `error` collides with the native DOM error
|
|
101
129
|
> event on the host element, which would fire your handler for unrelated
|
|
@@ -111,7 +139,10 @@ Via a template ref (`#chart`):
|
|
|
111
139
|
`deselectCategories` · `setSelectableObjects` · `setMaxSelection` ·
|
|
112
140
|
`getSelectionValidity` ·
|
|
113
141
|
`getFloors` · `setFloor` · `setColorblindSafe` · `zoomIn` · `zoomOut` ·
|
|
114
|
-
`zoomToFit`
|
|
142
|
+
`zoomToFit` · `refreshAccess`
|
|
143
|
+
|
|
144
|
+
Calling any of them before the chart exists returns an empty answer rather than
|
|
145
|
+
throwing, so a template ref used one frame early is safe.
|
|
115
146
|
|
|
116
147
|
> `holdSelection()` rather than `hold()`: `hold` is already the name of the
|
|
117
148
|
> `@Output`, and a class cannot have both.
|
|
@@ -129,13 +160,115 @@ re-enters the zone only to emit, which is the only part Angular needs to see.
|
|
|
129
160
|
- `attachPickerFrame` — raw framework-agnostic JavaScript iframe helper; grows on `seatlayer:height` and
|
|
130
161
|
pins on `seatlayer:fullscreen`.
|
|
131
162
|
|
|
132
|
-
##
|
|
163
|
+
## Security boundary
|
|
164
|
+
|
|
165
|
+
The Angular app **selects and holds** inventory. Your trusted backend **inspects
|
|
166
|
+
and books** the hold after payment or order validation.
|
|
167
|
+
|
|
168
|
+
- Never ship a SeatLayer secret key in browser code or a bundled environment
|
|
169
|
+
file.
|
|
170
|
+
- Send only the `holdId` and your normal checkout context to your backend.
|
|
171
|
+
- Calculate the charge from server-inspected hold items, not from browser input.
|
|
172
|
+
- Reuse your stable order id as `bookingRef` so a retried booking is idempotent.
|
|
173
|
+
|
|
174
|
+
Read [how the integration works](https://docs.seatlayer.io/start/how-it-works/)
|
|
175
|
+
before connecting checkout.
|
|
176
|
+
|
|
177
|
+
## Architecture
|
|
178
|
+
|
|
179
|
+
This package is a thin Angular layer over
|
|
180
|
+
[`@seatlayer/js`](https://www.npmjs.com/package/@seatlayer/js), the
|
|
181
|
+
framework-agnostic browser runtime. The component's template is a single
|
|
182
|
+
`<div>`, `ngOnChanges` decides which inputs rebuild the chart, and the
|
|
183
|
+
imperative methods forward to the runtime handle. Chart geometry, availability,
|
|
184
|
+
and holds come from the SeatLayer API at runtime.
|
|
185
|
+
|
|
186
|
+
## Frequently asked questions
|
|
187
|
+
|
|
188
|
+
### How do I add a seat map to an Angular app?
|
|
189
|
+
|
|
190
|
+
Install `@seatlayer/angular`, import the standalone
|
|
191
|
+
`SeatLayerSeatingChartComponent`, and put `<seatlayer-seating-chart
|
|
192
|
+
event="ev_…">` on screen inside a block with a definite height. That is a
|
|
193
|
+
complete interactive seating chart with live availability; the
|
|
194
|
+
[seat-picker documentation](https://docs.seatlayer.io/buyer-sdk/seat-picker/)
|
|
195
|
+
covers inputs, outputs, holds, and checkout in depth.
|
|
196
|
+
|
|
197
|
+
### Is this a real Angular component or an iframe?
|
|
198
|
+
|
|
199
|
+
`SeatLayerSeatingChartComponent` is a real standalone Angular component whose
|
|
200
|
+
template is a plain `<div>` in your own tree — no iframe and no stylesheet of
|
|
201
|
+
its own. Its render loop and pointer handlers are created outside the Angular
|
|
202
|
+
zone and re-enter it only to emit, so a running chart does not schedule change
|
|
203
|
+
detection on every frame. If you would rather embed the buyer picker in an iframe,
|
|
204
|
+
`attachPickerFrame` is exported for that.
|
|
205
|
+
|
|
206
|
+
### How do temporary seat holds work?
|
|
207
|
+
|
|
208
|
+
When a buyer commits to a selection, `holdSelection()` reserves that inventory
|
|
209
|
+
against concurrent buyers for a limited checkout window and returns an opaque
|
|
210
|
+
`holdId`. The hold lapses on its own if checkout never completes —
|
|
211
|
+
`(holdExpired)` tells the app to return the buyer to the map — and
|
|
212
|
+
`resumeHold()` restores it after a same-tab checkout navigation or a reload.
|
|
213
|
+
This is what prevents double-selling without locking seats forever.
|
|
214
|
+
|
|
215
|
+
### Can I use my own payment provider?
|
|
216
|
+
|
|
217
|
+
Yes. Nothing in this package takes a payment. The browser hands your code a
|
|
218
|
+
`holdId` and priced line items, your backend charges through whatever provider
|
|
219
|
+
you already use, and it then books the hold through the
|
|
220
|
+
[server-side checkout flow](https://docs.seatlayer.io/buyer-sdk/holds-and-checkout/).
|
|
221
|
+
|
|
222
|
+
### Can I evaluate it without a SeatLayer account?
|
|
223
|
+
|
|
224
|
+
You can explore a live seating chart in the browser at the
|
|
225
|
+
[buyer seat-map demo](https://app.seatlayer.io/demo/play/grand-theatre) with no
|
|
226
|
+
account. Rendering your own venue needs an event key, because the chart and its
|
|
227
|
+
availability are served by the SeatLayer API — create a free test event for
|
|
228
|
+
that, which books no real inventory.
|
|
229
|
+
|
|
230
|
+
## Continue your Angular integration
|
|
231
|
+
|
|
232
|
+
- [Follow the buyer SDK installation guide](https://docs.seatlayer.io/buyer-sdk/install/)
|
|
233
|
+
for the full browser integration, options, and events.
|
|
234
|
+
- [Connect seat holds to secure server-side checkout](https://docs.seatlayer.io/buyer-sdk/holds-and-checkout/)
|
|
235
|
+
without putting booking credentials in the browser.
|
|
236
|
+
- [Run the complete checkout example](https://docs.seatlayer.io/examples/complete-checkout/)
|
|
237
|
+
to connect a buyer hold id to payment and idempotent booking.
|
|
238
|
+
- [Compare SeatLayer's mobile seat map SDKs](https://docs.seatlayer.io/buyer-sdk/mobile/)
|
|
239
|
+
when the same event also has to render in native iOS, Android, Flutter, or
|
|
240
|
+
React Native apps.
|
|
241
|
+
- [Read the embedded Designer guide](https://docs.seatlayer.io/platform/embedded-designer/)
|
|
242
|
+
to let organizers draw their own venues inside your product.
|
|
243
|
+
- [Explore the 3D seating chart](https://seatlayer.io/3d-seat-map/) for the
|
|
244
|
+
interactive venue view buyers can switch to from the map.
|
|
245
|
+
- [Point AI coding agents at the SeatLayer docs index](https://docs.seatlayer.io/llms.txt)
|
|
246
|
+
(`llms.txt`) for an agent-readable map of the documentation.
|
|
247
|
+
|
|
248
|
+
## SeatLayer SDK ecosystem
|
|
249
|
+
|
|
250
|
+
| Surface | Package or source |
|
|
251
|
+
| --- | --- |
|
|
252
|
+
| JavaScript | [`@seatlayer/js`](https://www.npmjs.com/package/@seatlayer/js) |
|
|
253
|
+
| React | [`@seatlayer/react`](https://www.npmjs.com/package/@seatlayer/react) |
|
|
254
|
+
| Vue | [`@seatlayer/vue`](https://www.npmjs.com/package/@seatlayer/vue) |
|
|
255
|
+
| Angular | [`@seatlayer/angular`](https://www.npmjs.com/package/@seatlayer/angular) (this package) |
|
|
256
|
+
| React Native | [`@seatlayer/react-native`](https://www.npmjs.com/package/@seatlayer/react-native) |
|
|
257
|
+
| iOS | [`seatlayer-ios`](https://github.com/seatlayer/seatlayer-ios) |
|
|
258
|
+
| Flutter | [`seatlayer`](https://pub.dev/packages/seatlayer) |
|
|
259
|
+
| Android | [`seatlayer-android`](https://github.com/seatlayer/seatlayer-android) |
|
|
260
|
+
| Server SDKs | [Node.js, Python, PHP, Ruby, .NET, Java, and Go](https://docs.seatlayer.io/server-sdk/install/) |
|
|
261
|
+
|
|
262
|
+
## Development
|
|
263
|
+
|
|
264
|
+
```bash
|
|
265
|
+
pnpm install
|
|
266
|
+
pnpm verify
|
|
267
|
+
```
|
|
133
268
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
- [`@seatlayer/js`](https://www.npmjs.com/package/@seatlayer/js) — framework-agnostic core
|
|
137
|
-
- [Server SDKs](https://docs.seatlayer.io/server-sdk/install/) — Node.js, Python, PHP, Java, Go, Ruby, .NET
|
|
269
|
+
Source, issues, and contribution guidance live in
|
|
270
|
+
[seatlayer/seatlayer-sdk](https://github.com/seatlayer/seatlayer-sdk).
|
|
138
271
|
|
|
139
272
|
## License
|
|
140
273
|
|
|
141
|
-
MIT
|
|
274
|
+
MIT © SeatLayer
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seatlayer/angular",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Angular
|
|
3
|
+
"version": "0.67.15",
|
|
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",
|
|
@@ -18,17 +18,26 @@
|
|
|
18
18
|
},
|
|
19
19
|
"sideEffects": false,
|
|
20
20
|
"keywords": [
|
|
21
|
-
"
|
|
21
|
+
"seat map",
|
|
22
|
+
"seating chart",
|
|
22
23
|
"seat-map",
|
|
23
24
|
"seating-chart",
|
|
24
25
|
"seat-picker",
|
|
26
|
+
"seat-selection",
|
|
27
|
+
"seat-reservation",
|
|
28
|
+
"reserved-seating",
|
|
29
|
+
"seat-booking",
|
|
30
|
+
"event-ticketing",
|
|
31
|
+
"ticketing",
|
|
32
|
+
"live-inventory",
|
|
33
|
+
"seating",
|
|
25
34
|
"seatlayer",
|
|
26
35
|
"angular",
|
|
27
|
-
"
|
|
36
|
+
"typescript"
|
|
28
37
|
],
|
|
29
38
|
"dependencies": {
|
|
30
|
-
"@seatlayer/core": "0.
|
|
31
|
-
"@seatlayer/js": "0.
|
|
39
|
+
"@seatlayer/core": "0.67.15",
|
|
40
|
+
"@seatlayer/js": "0.67.15",
|
|
32
41
|
"tslib": "^2.8.1"
|
|
33
42
|
},
|
|
34
43
|
"peerDependencies": {
|