@seatlayer/angular 0.113.0 → 0.115.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 +50 -0
- package/dist/README.md +50 -0
- package/dist/fesm2022/seatlayer-angular.mjs +21 -1
- package/dist/fesm2022/seatlayer-angular.mjs.map +1 -1
- package/dist/index.d.ts +14 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -53,6 +53,56 @@ npm install @seatlayer/angular
|
|
|
53
53
|
|
|
54
54
|
The component is **standalone**: import it directly, no NgModule needed.
|
|
55
55
|
|
|
56
|
+
## Upgrading to 0.115.0
|
|
57
|
+
|
|
58
|
+
Nothing needs a code change, and no type or prop changed. What a buyer may now see:
|
|
59
|
+
|
|
60
|
+
- **A Season map shows the package price.** The map's hover card, its
|
|
61
|
+
screen-reader line and the price legend show the price of the package being
|
|
62
|
+
bought, not one date's ticket price. If a category has no package price, the
|
|
63
|
+
map shows no price rather than a wrong one.
|
|
64
|
+
- **A Season hold that runs out says so on screen**, above the map, in one
|
|
65
|
+
sentence. On a phone the step line no longer shows a step number, and a
|
|
66
|
+
Season of several dates no longer shows only its first date in the map's
|
|
67
|
+
header.
|
|
68
|
+
- **With `webMcp` on**, the browser tools load from one more small file, so
|
|
69
|
+
they register a moment later. If you serve your own copy of the CDN files,
|
|
70
|
+
copy `seatlayer-webmcp.mjs` beside `seatlayer.js`. Without it, the tools are
|
|
71
|
+
not registered (a console warning says why) and the picker works as usual.
|
|
72
|
+
- **One version of the SDK.** If your app also installs `@seatlayer/js`
|
|
73
|
+
itself, move it to 0.115.0 as well.
|
|
74
|
+
|
|
75
|
+
## Upgrading to 0.114.0
|
|
76
|
+
|
|
77
|
+
No existing type or prop changed. Two additions, and what a buyer may now see.
|
|
78
|
+
|
|
79
|
+
New on `SeasonPicker`:
|
|
80
|
+
- `tryRelease(releaseActionId)` on the `seatlayer-season-picker` component resolves `true` when the seats were
|
|
81
|
+
let go and `false` when nothing was held or the server kept them. It never
|
|
82
|
+
rejects for a failed release; `release()` stays as it was.
|
|
83
|
+
- a `releaseHoldOnDestroy` input (default `false`). When true, destroying the component releases a hold the buyer left
|
|
84
|
+
unfinished. A hold that was continued, handed off, restored, booked or kept
|
|
85
|
+
is never released. It is off by default because hosts that rebuild the
|
|
86
|
+
picker, or hand the hold to their own checkout, rely on the hold surviving.
|
|
87
|
+
|
|
88
|
+
What changes without asking for it:
|
|
89
|
+
- **A short server stall heals on its own in more places.** A read of the map,
|
|
90
|
+
its availability or an order's status that meets a `503` with
|
|
91
|
+
`retryable: true` is sent again (at most three times, 2, 4 and 8 seconds
|
|
92
|
+
apart, at least the server's `Retry-After`), so it may resolve up to about
|
|
93
|
+
14 seconds later instead of failing at once. A busy Season is tried again
|
|
94
|
+
for up to 7 seconds before its error. Writes are never resent.
|
|
95
|
+
- **A Season release says what really happened.** A release the server refuses
|
|
96
|
+
no longer announces that the seats were released, and the buyer stays on the
|
|
97
|
+
map. A release that ends booked or expired reports once through `onError`.
|
|
98
|
+
When the picker had to send the release itself, `release()` then rejects
|
|
99
|
+
with that error (`SeasonApiError`, code `season_already_booked` or
|
|
100
|
+
`hold_not_active`) where it used to resolve; `tryRelease()` answers `false`.
|
|
101
|
+
- **A `release()` just before the picker is destroyed now reaches the server.**
|
|
102
|
+
Before, it could be dropped unsent.
|
|
103
|
+
- **One version of the SDK.** If your app also installs `@seatlayer/js`
|
|
104
|
+
itself, move it to 0.114.0 as well.
|
|
105
|
+
|
|
56
106
|
## Upgrading to 0.113.0
|
|
57
107
|
|
|
58
108
|
Nothing needs a code change, and no type changed. What a buyer sees:
|
package/dist/README.md
CHANGED
|
@@ -53,6 +53,56 @@ npm install @seatlayer/angular
|
|
|
53
53
|
|
|
54
54
|
The component is **standalone**: import it directly, no NgModule needed.
|
|
55
55
|
|
|
56
|
+
## Upgrading to 0.115.0
|
|
57
|
+
|
|
58
|
+
Nothing needs a code change, and no type or prop changed. What a buyer may now see:
|
|
59
|
+
|
|
60
|
+
- **A Season map shows the package price.** The map's hover card, its
|
|
61
|
+
screen-reader line and the price legend show the price of the package being
|
|
62
|
+
bought, not one date's ticket price. If a category has no package price, the
|
|
63
|
+
map shows no price rather than a wrong one.
|
|
64
|
+
- **A Season hold that runs out says so on screen**, above the map, in one
|
|
65
|
+
sentence. On a phone the step line no longer shows a step number, and a
|
|
66
|
+
Season of several dates no longer shows only its first date in the map's
|
|
67
|
+
header.
|
|
68
|
+
- **With `webMcp` on**, the browser tools load from one more small file, so
|
|
69
|
+
they register a moment later. If you serve your own copy of the CDN files,
|
|
70
|
+
copy `seatlayer-webmcp.mjs` beside `seatlayer.js`. Without it, the tools are
|
|
71
|
+
not registered (a console warning says why) and the picker works as usual.
|
|
72
|
+
- **One version of the SDK.** If your app also installs `@seatlayer/js`
|
|
73
|
+
itself, move it to 0.115.0 as well.
|
|
74
|
+
|
|
75
|
+
## Upgrading to 0.114.0
|
|
76
|
+
|
|
77
|
+
No existing type or prop changed. Two additions, and what a buyer may now see.
|
|
78
|
+
|
|
79
|
+
New on `SeasonPicker`:
|
|
80
|
+
- `tryRelease(releaseActionId)` on the `seatlayer-season-picker` component resolves `true` when the seats were
|
|
81
|
+
let go and `false` when nothing was held or the server kept them. It never
|
|
82
|
+
rejects for a failed release; `release()` stays as it was.
|
|
83
|
+
- a `releaseHoldOnDestroy` input (default `false`). When true, destroying the component releases a hold the buyer left
|
|
84
|
+
unfinished. A hold that was continued, handed off, restored, booked or kept
|
|
85
|
+
is never released. It is off by default because hosts that rebuild the
|
|
86
|
+
picker, or hand the hold to their own checkout, rely on the hold surviving.
|
|
87
|
+
|
|
88
|
+
What changes without asking for it:
|
|
89
|
+
- **A short server stall heals on its own in more places.** A read of the map,
|
|
90
|
+
its availability or an order's status that meets a `503` with
|
|
91
|
+
`retryable: true` is sent again (at most three times, 2, 4 and 8 seconds
|
|
92
|
+
apart, at least the server's `Retry-After`), so it may resolve up to about
|
|
93
|
+
14 seconds later instead of failing at once. A busy Season is tried again
|
|
94
|
+
for up to 7 seconds before its error. Writes are never resent.
|
|
95
|
+
- **A Season release says what really happened.** A release the server refuses
|
|
96
|
+
no longer announces that the seats were released, and the buyer stays on the
|
|
97
|
+
map. A release that ends booked or expired reports once through `onError`.
|
|
98
|
+
When the picker had to send the release itself, `release()` then rejects
|
|
99
|
+
with that error (`SeasonApiError`, code `season_already_booked` or
|
|
100
|
+
`hold_not_active`) where it used to resolve; `tryRelease()` answers `false`.
|
|
101
|
+
- **A `release()` just before the picker is destroyed now reaches the server.**
|
|
102
|
+
Before, it could be dropped unsent.
|
|
103
|
+
- **One version of the SDK.** If your app also installs `@seatlayer/js`
|
|
104
|
+
itself, move it to 0.114.0 as well.
|
|
105
|
+
|
|
56
106
|
## Upgrading to 0.113.0
|
|
57
107
|
|
|
58
108
|
Nothing needs a code change, and no type changed. What a buyer sees:
|
|
@@ -397,6 +397,17 @@ class SeatLayerSeasonPickerComponent {
|
|
|
397
397
|
buyerAccessToken;
|
|
398
398
|
/** Operation restored after an uncertain create response. */
|
|
399
399
|
initialOperationId;
|
|
400
|
+
/**
|
|
401
|
+
* Release, on destroy, a hold the buyer left unfinished (`@seatlayer/js`
|
|
402
|
+
* `releaseHoldOnDestroy`). Default false: destroying the component releases
|
|
403
|
+
* nothing. Not in REBUILD_INPUTS: changing it does not rebuild the picker,
|
|
404
|
+
* which reads the current value when it is destroyed.
|
|
405
|
+
*
|
|
406
|
+
* Do not turn this on if you rebuild the picker (changing inputs the
|
|
407
|
+
* component rebuilds on, REBUILD_INPUTS) or hand the hold to your own
|
|
408
|
+
* checkout without the `continued` output.
|
|
409
|
+
*/
|
|
410
|
+
releaseHoldOnDestroy;
|
|
400
411
|
/** The package to open on, by its key; the first package without it. */
|
|
401
412
|
package;
|
|
402
413
|
/** The host emails a ticket per date itself: step 1 says so. */
|
|
@@ -479,6 +490,10 @@ class SeatLayerSeasonPickerComponent {
|
|
|
479
490
|
release(releaseActionId) {
|
|
480
491
|
return this.current().release(releaseActionId);
|
|
481
492
|
}
|
|
493
|
+
/** As release(), resolving true when the seats were let go, false when nothing was held or the server kept the hold. */
|
|
494
|
+
tryRelease(releaseActionId) {
|
|
495
|
+
return this.current().tryRelease(releaseActionId);
|
|
496
|
+
}
|
|
482
497
|
/** Records renewal intent; trusted server code still inspects and commits it. */
|
|
483
498
|
createRenewalIntent(offerId) {
|
|
484
499
|
return this.current().createRenewalIntent(offerId);
|
|
@@ -505,6 +520,7 @@ class SeatLayerSeasonPickerComponent {
|
|
|
505
520
|
}
|
|
506
521
|
build() {
|
|
507
522
|
this.destroy();
|
|
523
|
+
const inputs = this;
|
|
508
524
|
this.zone.runOutsideAngular(() => {
|
|
509
525
|
const picker = new SeasonPicker({
|
|
510
526
|
container: this.container.nativeElement,
|
|
@@ -535,6 +551,8 @@ class SeatLayerSeasonPickerComponent {
|
|
|
535
551
|
onOrderConfirmed: (value) => this.zone.run(() => this.orderConfirmed.emit(value)),
|
|
536
552
|
onStatusChange: (value) => this.zone.run(() => this.statusChange.emit(value)),
|
|
537
553
|
onError: (value) => this.zone.run(() => this.errored.emit(value)),
|
|
554
|
+
// Not a rebuild input: read from the current input when the picker is destroyed.
|
|
555
|
+
get releaseHoldOnDestroy() { return inputs.releaseHoldOnDestroy; },
|
|
538
556
|
});
|
|
539
557
|
this.picker = picker;
|
|
540
558
|
void picker.render().catch(() => undefined);
|
|
@@ -550,7 +568,7 @@ class SeatLayerSeasonPickerComponent {
|
|
|
550
568
|
this.picker = null;
|
|
551
569
|
}
|
|
552
570
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.29", ngImport: i0, type: SeatLayerSeasonPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
553
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.29", type: SeatLayerSeasonPickerComponent, isStandalone: true, selector: "seatlayer-season-picker", inputs: { season: "season", apiBase: "apiBase", publicKey: "publicKey", checkout: "checkout", returnUrl: "returnUrl", buyerEmail: "buyerEmail", buyerName: "buyerName", buyerAccessTokenProvider: "buyerAccessTokenProvider", buyerAccessToken: "buyerAccessToken", initialOperationId: "initialOperationId", package: "package", ticketsByEmail: "ticketsByEmail", recoveryTimeoutMs: "recoveryTimeoutMs", enable3D: "enable3D", enable3DCrowd: "enable3DCrowd", touchNavigation3D: "touchNavigation3D", fetch: "fetch", priceTypes: "priceTypes" }, outputs: { hold: "hold", holdChange: "holdChange", continued: "continued", renewalIntent: "renewalIntent", accessExpired: "accessExpired", accessUnavailable: "accessUnavailable", orderConfirmed: "orderConfirmed", statusChange: "statusChange", errored: "errored" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: '<div #container class="seatlayer-season-container"></div>', isInline: true, styles: [":host{display:block}.seatlayer-season-container{width:100%}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
571
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.29", type: SeatLayerSeasonPickerComponent, isStandalone: true, selector: "seatlayer-season-picker", inputs: { season: "season", apiBase: "apiBase", publicKey: "publicKey", checkout: "checkout", returnUrl: "returnUrl", buyerEmail: "buyerEmail", buyerName: "buyerName", buyerAccessTokenProvider: "buyerAccessTokenProvider", buyerAccessToken: "buyerAccessToken", initialOperationId: "initialOperationId", releaseHoldOnDestroy: "releaseHoldOnDestroy", package: "package", ticketsByEmail: "ticketsByEmail", recoveryTimeoutMs: "recoveryTimeoutMs", enable3D: "enable3D", enable3DCrowd: "enable3DCrowd", touchNavigation3D: "touchNavigation3D", fetch: "fetch", priceTypes: "priceTypes" }, outputs: { hold: "hold", holdChange: "holdChange", continued: "continued", renewalIntent: "renewalIntent", accessExpired: "accessExpired", accessUnavailable: "accessUnavailable", orderConfirmed: "orderConfirmed", statusChange: "statusChange", errored: "errored" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: '<div #container class="seatlayer-season-container"></div>', isInline: true, styles: [":host{display:block}.seatlayer-season-container{width:100%}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
554
572
|
}
|
|
555
573
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.29", ngImport: i0, type: SeatLayerSeasonPickerComponent, decorators: [{
|
|
556
574
|
type: Component,
|
|
@@ -576,6 +594,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.29", ngImpo
|
|
|
576
594
|
type: Input
|
|
577
595
|
}], initialOperationId: [{
|
|
578
596
|
type: Input
|
|
597
|
+
}], releaseHoldOnDestroy: [{
|
|
598
|
+
type: Input
|
|
579
599
|
}], package: [{
|
|
580
600
|
type: Input
|
|
581
601
|
}], ticketsByEmail: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seatlayer-angular.mjs","sources":["../../src/seating-chart.component.ts","../../src/season-picker.component.ts","../../src/index.ts","../../src/seatlayer-angular.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n EventEmitter,\n Input,\n NgZone,\n OnChanges,\n Output,\n SimpleChanges,\n ViewChild,\n inject,\n} from '@angular/core';\nimport {\n SeatingChart as CoreSeatingChart,\n SEATING_CHART_IDENTITY_PROPS,\n bindSeatingChartHandle,\n buildSeatingChartOptions,\n type RendererViewMode,\n type SeatingChartHandle,\n type SeatingChartOptions,\n type SelectedSeat,\n type HoldResult,\n type BestAvailableResult,\n type GAAreaAvailability,\n type SeatHoverDetails,\n type PickerSelectionValidity,\n type PickerSelectionValidator,\n type BuyerAccessToken,\n type BuyerAccessTokenProvider,\n type BuyerAccessExpiredEvent,\n type BuyerAccessUnavailableEvent,\n type SelectedObjectUnavailableEvent,\n} from '@seatlayer/js';\n\n/**\n * Angular wrapper around the framework-agnostic `@seatlayer/js` SDK.\n *\n * Standalone, so it is imported directly rather than through an NgModule.\n *\n * The canvas is created once and torn down on destroy. Only the inputs that\n * change the chart's identity (`SEATING_CHART_IDENTITY_PROPS`: `event`,\n * `apiBase`, `maxSelection`, `numberOfPlacesToSelect`, `publicKey`, `locale`, `currency`,\n * `colorblindSafe`, `initialView`, `errorDisplay`, `enable3D`, `enable3DCrowd`,\n * `touchNavigation3D`) trigger a rebuild, so an\n * unrelated change-detection pass never destroys the canvas mid-selection.\n *\n * @example\n * ```html\n * <seatlayer-seating-chart\n * #chart\n * event=\"summer-gala\"\n * (selectionChange)=\"onSelectionChange($event)\"\n * (hold)=\"onHold($event)\"\n * />\n * <button (click)=\"chart.hold()\">Continue</button>\n * ```\n */\n@Component({\n selector: 'seatlayer-seating-chart',\n standalone: true,\n template: '<div #container class=\"seatlayer-container\"></div>',\n styles: [':host { display: block; } .seatlayer-container { width: 100%; height: 100%; }'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SeatLayerSeatingChartComponent implements OnChanges {\n /** Event key to render. Changing it rebuilds the chart. */\n @Input({ required: true }) event!: string;\n\n /** API base URL. Defaults to the public API. */\n @Input() apiBase?: string;\n\n /** Cap on how many seats a buyer may select. */\n @Input() maxSelection?: number;\n\n /** Object ids or public labels selected after availability loads. */\n @Input() selectedObjects?: string[];\n\n /** Object ids or public labels the buyer may select. */\n @Input() selectableObjects?: string[] | null;\n\n /** Exact ticket count required for a valid selection. */\n @Input() numberOfPlacesToSelect?: number;\n\n /** Local buyer selection guards. Changing them rebuilds the chart. */\n @Input() selectionValidators?: PickerSelectionValidator[];\n\n /** Publishable key, when your integration uses one. */\n @Input() publicKey?: string;\n\n /** BCP-47 locale for built-in copy. */\n @Input() locale?: string;\n\n /** ISO currency for price formatting. */\n @Input() currency?: string;\n\n /** Render with colorblind-safe seat glyphs. */\n @Input() colorblindSafe?: boolean;\n\n /**\n * Initial canvas projection. Read once when the chart is built, so changing\n * it rebuilds.\n * @deprecated `'isometric'` and `'perspective'` are retired in favour of the\n * real 3D venue view; use `'flat'`.\n */\n @Input() initialView?: RendererViewMode;\n\n /**\n * What the BUYER sees when the chart cannot load: `'message'` (default) is a\n * styleable notice with a Try again button, `'none'` is silent for hosts that\n * render their own failure UI from `errored`.\n */\n @Input() errorDisplay?: 'message' | 'none';\n\n /** Offer the 3D venue view (default true). Changing it rebuilds. */\n @Input() enable3D?: boolean;\n\n /** The standing crowd in 3D, drawn by default; false turns it off. Changing it rebuilds. */\n @Input() enable3DCrowd?: boolean;\n\n /** How fingers move the 3D view: `'map'` (default) or `'classic'`. Changing it rebuilds. */\n @Input() touchNavigation3D?: 'map' | 'classic';\n\n /** Show the built-in seat tooltip. Set false to draw your own from `seatHover`. */\n @Input() seatTooltip?: boolean;\n\n /** Copy overrides, read once per rebuild. */\n @Input() messages?: SeatingChartOptions['messages'];\n\n /**\n * Sales Channels: mint a buyer access session on demand. Called with a\n * `reason`; returns `{ token, expiresAt }` from YOUR backend. The token is\n * held in memory only — never storage, never a URL, never a log.\n */\n @Input() buyerAccessTokenProvider?: BuyerAccessTokenProvider;\n\n /** One-shot session for hosts that own the lifecycle. Cannot be renewed. */\n @Input() buyerAccessToken?: string | BuyerAccessToken;\n\n /** The buyer's selection changed. */\n @Output() readonly selectionChange: EventEmitter<SelectedSeat[]> = new EventEmitter<SelectedSeat[]>();\n\n /** Exact-count state changed. */\n @Output() readonly selectionValidityChange: EventEmitter<PickerSelectionValidity> =\n new EventEmitter<PickerSelectionValidity>();\n\n /** The exact count was reached. */\n @Output() readonly selectionValid: EventEmitter<SelectedSeat[]> = new EventEmitter<SelectedSeat[]>();\n\n /** The selection is not at the exact count. */\n @Output() readonly selectionInvalid: EventEmitter<PickerSelectionValidity> =\n new EventEmitter<PickerSelectionValidity>();\n\n /** The active selection cap was reached. */\n @Output() readonly selectionLimit: EventEmitter<number> = new EventEmitter<number>();\n\n /** A hold succeeded. */\n @Output() readonly hold: EventEmitter<HoldResult> = new EventEmitter<HoldResult>();\n\n /** A previous hold was restored on mount. */\n @Output() readonly holdRestored: EventEmitter<HoldResult> = new EventEmitter<HoldResult>();\n\n /** The active hold lapsed. */\n @Output() readonly holdExpired: EventEmitter<void> = new EventEmitter<void>();\n\n /** A GA area was clicked. */\n @Output() readonly gaClick: EventEmitter<GAAreaAvailability> = new EventEmitter<GAAreaAvailability>();\n\n /** Something failed — a network error, a rejected hold. */\n @Output() readonly errored: EventEmitter<unknown> = new EventEmitter<unknown>();\n\n /** A floor deck was tapped in the 3D view. */\n @Output() readonly deckTap: EventEmitter<string> = new EventEmitter<string>();\n\n /** A transient hint worth showing the buyer, or `null` to clear it. */\n @Output() readonly hint: EventEmitter<string | null> = new EventEmitter<string | null>();\n\n /** The pointer moved onto a seat, or off one (`null`). */\n @Output() readonly seatHover: EventEmitter<SeatHoverDetails | null> = new EventEmitter<SeatHoverDetails | null>();\n\n /** The buyer access session lapsed; `refreshed` says whether it recovered. */\n @Output() readonly accessExpired: EventEmitter<BuyerAccessExpiredEvent> =\n new EventEmitter<BuyerAccessExpiredEvent>();\n\n /** Private inventory is unavailable and refreshing will not fix it. */\n @Output() readonly accessUnavailable: EventEmitter<BuyerAccessUnavailableEvent> =\n new EventEmitter<BuyerAccessUnavailableEvent>();\n\n /** Selected-but-unheld units stopped being selectable. */\n @Output() readonly selectedObjectUnavailable: EventEmitter<SelectedObjectUnavailableEvent> =\n new EventEmitter<SelectedObjectUnavailableEvent>();\n\n @ViewChild('container', { static: true })\n private readonly container!: ElementRef<HTMLDivElement>;\n\n private readonly zone = inject(NgZone);\n private chart: CoreSeatingChart | null = null;\n\n /**\n * Inputs that require tearing the canvas down and rebuilding it. The shared\n * list from `@seatlayer/js`, not a hand-copied one — this is exactly the place\n * Angular fell two inputs behind React.\n */\n private static readonly REBUILD_INPUTS = SEATING_CHART_IDENTITY_PROPS;\n\n /**\n * The canonical forwarding object. Every imperative method below is a\n * one-line delegate to it, so the component cannot forward a method the other\n * wrappers do not, or miss one they do.\n */\n private readonly handle: SeatingChartHandle = bindSeatingChartHandle(() => this.chart);\n\n constructor() {\n inject(DestroyRef).onDestroy(() => this.destroy());\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n const needsRebuild = SeatLayerSeatingChartComponent.REBUILD_INPUTS.some((name) => name in changes);\n if (needsRebuild) {\n this.build();\n }\n }\n\n // ---------- imperative API, for a template ref ----------\n\n /** Hold the current selection. Resolves the hold, or `null` on a 409 conflict. */\n holdSelection(options?: { ttlMs?: number }): Promise<HoldResult | null> {\n return this.handle.hold(options);\n }\n\n /** Restore an active hold by its opaque id. */\n resumeHold(holdId: string): Promise<HoldResult | null> {\n return this.handle.resumeHold(holdId);\n }\n\n /** Current active hold known to the chart. */\n getCurrentHold(): HoldResult | null {\n return this.handle.getCurrentHold();\n }\n\n /** GA areas with live remaining capacity. */\n getGAAreas(): GAAreaAvailability[] {\n return this.handle.getGAAreas();\n }\n\n /** Atomically hold a quantity from one GA area. */\n holdGA(\n areaId: string,\n qty: number,\n options?: { tierId?: string | null; ttlMs?: number },\n ): Promise<HoldResult | null> {\n return this.handle.holdGA(areaId, qty, options);\n }\n\n /** Ask the server for the `qty` best free seats and hold them atomically. */\n bestAvailable(qty: number, categoryKey?: string): Promise<BestAvailableResult | null> {\n return this.handle.bestAvailable(qty, categoryKey);\n }\n\n /** Release the current hold (if any). */\n release(): Promise<void> {\n return this.handle.release();\n }\n\n /** Release some held labels while keeping the remainder active. */\n releaseLabels(labels: string[]): Promise<boolean> {\n return this.handle.releaseLabels(labels);\n }\n\n /** The current selection, with prices resolved from the chart categories. */\n getSelection(): SelectedSeat[] {\n return this.handle.getSelection();\n }\n\n selectObjects(objects: string[]): SelectedSeat[] {\n return this.handle.selectObjects(objects);\n }\n\n deselectObjects(objects: string[]): void {\n this.handle.deselectObjects(objects);\n }\n\n clearSelection(): void {\n this.handle.clearSelection();\n }\n\n selectCategories(categoryKeys: string[]): SelectedSeat[] {\n return this.handle.selectCategories(categoryKeys);\n }\n\n deselectCategories(categoryKeys: string[]): void {\n this.handle.deselectCategories(categoryKeys);\n }\n\n setSelectableObjects(objects: string[] | null): void {\n this.handle.setSelectableObjects(objects);\n }\n\n setMaxSelection(maxSelection: number): void {\n this.handle.setMaxSelection(maxSelection);\n }\n\n getSelectionValidity(): PickerSelectionValidity | null {\n return this.handle.getSelectionValidity();\n }\n\n /** Choose a ticket tier for a selected seat; `null` reverts to the default. */\n setSeatTier(seatId: string, tierId: string | null): void {\n this.handle.setSeatTier(seatId, tierId);\n }\n\n /** Floors of a multi-floor chart. Empty before the first render. */\n getFloors(): { id: string; name: string }[] {\n return this.handle.getFloors();\n }\n\n /** Switch the shown floor (2D). No-ops on single-floor charts. */\n setFloor(floorId: string): void {\n this.handle.setFloor(floorId);\n }\n\n /** Toggle colorblind-safe rendering at runtime. */\n setColorblindSafe(on: boolean): void {\n this.handle.setColorblindSafe(on);\n }\n\n /** Zoom in one step (same increment as the wheel/pinch gesture). */\n zoomIn(): void {\n this.handle.zoomIn();\n }\n\n /** Zoom out one step. */\n zoomOut(): void {\n this.handle.zoomOut();\n }\n\n /** Reset the camera so the whole chart fits the container. */\n zoomToFit(): void {\n this.handle.zoomToFit();\n }\n\n /**\n * Re-acquire the buyer access session after your app re-authorizes the buyer\n * (Sales Channels). Resolves false when the chart is not access-scoped.\n */\n refreshAccess(): Promise<boolean> {\n return this.handle.refreshAccess();\n }\n\n // ---------- internals ----------\n\n private build(): void {\n const element = this.container?.nativeElement;\n if (!element) return;\n\n this.destroy();\n\n // The chart runs a rAF render loop and pointer handlers. Left inside the\n // Angular zone, every frame would schedule change detection for the whole\n // application — so it is built outside, and each callback re-enters the zone\n // only to emit, which is the only part Angular needs to see.\n this.zone.runOutsideAngular(() => {\n const emit = <T>(emitter: EventEmitter<T>, value: T) =>\n this.zone.run(() => emitter.emit(value));\n\n const instance = new CoreSeatingChart(buildSeatingChartOptions(\n element,\n {\n event: this.event,\n apiBase: this.apiBase,\n maxSelection: this.maxSelection,\n selectedObjects: this.selectedObjects,\n selectableObjects: this.selectableObjects,\n numberOfPlacesToSelect: this.numberOfPlacesToSelect,\n selectionValidators: this.selectionValidators,\n publicKey: this.publicKey,\n locale: this.locale,\n currency: this.currency,\n colorblindSafe: this.colorblindSafe,\n initialView: this.initialView,\n errorDisplay: this.errorDisplay,\n enable3D: this.enable3D,\n enable3DCrowd: this.enable3DCrowd,\n touchNavigation3D: this.touchNavigation3D,\n messages: this.messages,\n seatTooltip: this.seatTooltip,\n buyerAccessTokenProvider: this.buyerAccessTokenProvider,\n buyerAccessToken: this.buyerAccessToken,\n },\n {\n onSelectionChange: (seats) => emit(this.selectionChange, seats),\n onSelectionValidityChange: (state) => emit(this.selectionValidityChange, state),\n onSelectionValid: (seats) => emit(this.selectionValid, seats),\n onSelectionInvalid: (state) => emit(this.selectionInvalid, state),\n onSelectionLimit: (max) => emit(this.selectionLimit, max),\n onHold: (result) => emit(this.hold, result),\n onHoldRestored: (result) => emit(this.holdRestored, result),\n onHoldExpired: () => this.zone.run(() => this.holdExpired.emit()),\n onGAClick: (area) => emit(this.gaClick, area),\n onError: (error) => emit(this.errored, error),\n onDeckTap: (floorId) => emit(this.deckTap, floorId),\n onHint: (message) => emit(this.hint, message),\n onSeatHover: (details) => emit(this.seatHover, details),\n onAccessExpired: (state) => emit(this.accessExpired, state),\n onAccessUnavailable: (state) => emit(this.accessUnavailable, state),\n onSelectedObjectUnavailable: (state) => emit(this.selectedObjectUnavailable, state),\n },\n ));\n\n this.chart = instance;\n void instance.render();\n });\n }\n\n private destroy(): void {\n this.chart?.destroy();\n this.chart = null;\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n EventEmitter,\n Input,\n NgZone,\n OnChanges,\n Output,\n SimpleChanges,\n ViewChild,\n inject,\n} from '@angular/core';\nimport {\n SeasonPicker as CoreSeasonPicker,\n type SeasonAvailability,\n type SeasonBestAvailableOptions,\n type SeasonCheckoutHandoff,\n type SeasonDescriptor,\n type SeasonHeldOrder,\n type SeasonPickerOptions,\n type SeasonPriceType,\n type SeasonRenewalIntent,\n type SeasonSeatPriceTypes,\n type SeasonStatusEvent,\n} from '@seatlayer/js';\n\n/** Standalone Angular adapter for the distinct fixed-inclusion Season buyer flow. */\n@Component({\n selector: 'seatlayer-season-picker',\n standalone: true,\n template: '<div #container class=\"seatlayer-season-container\"></div>',\n styles: [':host { display: block; } .seatlayer-season-container { width: 100%; }'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SeatLayerSeasonPickerComponent implements OnChanges {\n /** Season key to render. */\n @Input({ required: true }) season!: string;\n\n /** Public API base override. */\n @Input() apiBase?: string;\n\n /** Publishable account key, accepted for snippet parity. Never sent. */\n @Input() publicKey?: string;\n\n /** Who takes the money once the package is held. Default `'handoff'`. */\n @Input() checkout?: SeasonPickerOptions['checkout'];\n\n /** Where a redirecting gateway returns the buyer, for hosted checkout. */\n @Input() returnUrl?: string;\n /** Prefills SeatLayer checkout's email field (a signed-in member's). */\n @Input() buyerEmail?: string;\n /** Prefills SeatLayer checkout's name field. */\n @Input() buyerName?: string;\n\n /** Refreshable one-time browser bearer provider. */\n @Input() buyerAccessTokenProvider?: SeasonPickerOptions['buyerAccessTokenProvider'];\n\n /** One-time Season browser bearer. */\n @Input() buyerAccessToken?: SeasonPickerOptions['buyerAccessToken'];\n\n /** Operation restored after an uncertain create response. */\n @Input() initialOperationId?: string;\n\n /** The package to open on, by its key; the first package without it. */\n @Input() package?: string;\n\n /** The host emails a ticket per date itself: step 1 says so. */\n @Input() ticketsByEmail?: boolean;\n\n /** Maximum recovery polling time. */\n @Input() recoveryTimeoutMs?: number;\n\n /** Offer the 3D venue view (default true). Changing it rebuilds. */\n @Input() enable3D?: boolean;\n\n /** The standing crowd in 3D, drawn by default; false turns it off. Changing it rebuilds. */\n @Input() enable3DCrowd?: boolean;\n\n /** How fingers move the 3D view: `'map'` (default) or `'classic'`. Changing it rebuilds. */\n @Input() touchNavigation3D?: 'map' | 'classic';\n\n /** Test or host fetch implementation. */\n @Input() fetch?: typeof fetch;\n\n /**\n * The price types the picker sells, e.g. `['adult', 'child']`. With a type\n * besides adult, the buyer chooses one per seat before the hold.\n */\n @Input() priceTypes?: readonly SeasonPriceType[];\n\n /** A same-seat hold reached a safe handoff. */\n @Output() readonly hold = new EventEmitter<SeasonCheckoutHandoff>();\n\n /** The active handoff changed or was released. */\n @Output() readonly holdChange = new EventEmitter<SeasonCheckoutHandoff | null>();\n\n /** The buyer continued with an opaque handoff. */\n @Output() readonly continued = new EventEmitter<SeasonCheckoutHandoff>();\n\n /** A returning holder recorded browser intent only. */\n @Output() readonly renewalIntent = new EventEmitter<SeasonRenewalIntent>();\n\n /** Buyer access expired. */\n @Output() readonly accessExpired = new EventEmitter<unknown>();\n\n /** Buyer access cannot be recovered. */\n @Output() readonly accessUnavailable = new EventEmitter<unknown>();\n\n /** Hosted checkout only: the gateway webhook landed and the order is paid. */\n @Output() readonly orderConfirmed = new EventEmitter<unknown>();\n\n /** Buyer-visible operation status changed. */\n @Output() readonly statusChange = new EventEmitter<SeasonStatusEvent>();\n\n /** The Season buyer flow failed. */\n @Output() readonly errored = new EventEmitter<unknown>();\n\n @ViewChild('container', { static: true })\n private readonly container!: ElementRef<HTMLDivElement>;\n\n private static readonly REBUILD_INPUTS = new Set([\n 'season', 'apiBase', 'publicKey', 'checkout', 'returnUrl',\n 'buyerAccessTokenProvider', 'buyerAccessToken',\n 'initialOperationId', 'package', 'ticketsByEmail', 'recoveryTimeoutMs', 'fetch', 'priceTypes',\n 'enable3D', 'enable3DCrowd', 'touchNavigation3D',\n ]);\n private readonly zone = inject(NgZone);\n private picker: CoreSeasonPicker | null = null;\n\n constructor() {\n inject(DestroyRef).onDestroy(() => this.destroy());\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (Object.keys(changes).some((name) => SeatLayerSeasonPickerComponent.REBUILD_INPUTS.has(name))) {\n this.build();\n }\n }\n\n /**\n * Holds the same labels across every included occurrence. `priceTypes` names\n * each seat's price type by label (`{ 'A-2': 'child' }`); a label it leaves\n * out is adult.\n */\n holdSameSeat(\n labels: readonly string[], operationId: string, priceTypes?: SeasonSeatPriceTypes,\n ): Promise<SeasonCheckoutHandoff> {\n return this.current().holdSameSeat(labels, operationId, priceTypes);\n }\n\n /**\n * Holds the best `qty` seats free on every included performance, as a map\n * selection would. Same contract as `@seatlayer/js` `holdBestAvailable`: a\n * caller-stable `sop_` id, 1 to `maxSelection` seats, one call at a time.\n */\n holdBestAvailable(\n qty: number, operationId: string, options?: SeasonBestAvailableOptions,\n ): Promise<SeasonCheckoutHandoff> {\n return this.current().holdBestAvailable(qty, operationId, options);\n }\n\n /** Restores a caller-stable Season operation after uncertainty. */\n restoreOperation(operationId: string): Promise<SeasonCheckoutHandoff | null> {\n return this.current().restoreOperation(operationId);\n }\n\n /** Your server booked the held seats: show booked and stop the hold clock. */\n markBooked(): Promise<boolean> {\n return this.current().markBooked();\n }\n\n /** Releases the active selection with a caller-stable action id. */\n release(releaseActionId: string): Promise<void> {\n return this.current().release(releaseActionId);\n }\n\n /** Records renewal intent; trusted server code still inspects and commits it. */\n createRenewalIntent(offerId: string): Promise<SeasonRenewalIntent> {\n return this.current().createRenewalIntent(offerId);\n }\n\n /** Current immutable Season descriptor. */\n getDescriptor(): SeasonDescriptor | null {\n return this.picker?.getDescriptor() ?? null;\n }\n\n /** Current same-seat aggregate availability. */\n getAvailability(): SeasonAvailability | null {\n return this.picker?.getAvailability() ?? null;\n }\n\n /** Current opaque checkout handoff. */\n getHandoff(): SeasonCheckoutHandoff | null {\n return this.picker?.getHandoff() ?? null;\n }\n\n /**\n * The held Season order for your own order summary: each held seat with its\n * price type and package price, and the total. Null with no live hold.\n * Display only: checkout prices the order on the server.\n */\n getHeldOrder(): SeasonHeldOrder | null {\n return this.picker?.getHeldOrder() ?? null;\n }\n\n private build(): void {\n this.destroy();\n this.zone.runOutsideAngular(() => {\n const picker = new CoreSeasonPicker({\n container: this.container.nativeElement,\n season: this.season,\n apiBase: this.apiBase,\n publicKey: this.publicKey,\n checkout: this.checkout,\n returnUrl: this.returnUrl,\n buyerEmail: this.buyerEmail,\n buyerName: this.buyerName,\n buyerAccessTokenProvider: this.buyerAccessTokenProvider,\n buyerAccessToken: this.buyerAccessToken,\n initialOperationId: this.initialOperationId,\n package: this.package,\n ticketsByEmail: this.ticketsByEmail,\n recoveryTimeoutMs: this.recoveryTimeoutMs,\n enable3D: this.enable3D,\n enable3DCrowd: this.enable3DCrowd,\n touchNavigation3D: this.touchNavigation3D,\n fetch: this.fetch,\n priceTypes: this.priceTypes,\n onHold: (value) => this.zone.run(() => this.hold.emit(value)),\n onHoldChange: (value) => this.zone.run(() => this.holdChange.emit(value)),\n onContinue: (value) => this.zone.run(() => this.continued.emit(value)),\n onRenewalIntent: (value) => this.zone.run(() => this.renewalIntent.emit(value)),\n onAccessExpired: (value) => this.zone.run(() => this.accessExpired.emit(value)),\n onAccessUnavailable: (value) => this.zone.run(() => this.accessUnavailable.emit(value)),\n onOrderConfirmed: (value) => this.zone.run(() => this.orderConfirmed.emit(value)),\n onStatusChange: (value) => this.zone.run(() => this.statusChange.emit(value)),\n onError: (value) => this.zone.run(() => this.errored.emit(value)),\n });\n this.picker = picker;\n void picker.render().catch(() => undefined);\n });\n }\n\n private current(): CoreSeasonPicker {\n if (!this.picker) throw new Error('seatlayer: Angular SeasonPicker is not mounted');\n return this.picker;\n }\n\n private destroy(): void {\n this.picker?.destroy();\n this.picker = null;\n }\n}\n","/**\n * @seatlayer/angular — the Angular wrapper for the SeatLayer embed SDK.\n *\n * The component is standalone; import it directly rather than through an\n * NgModule.\n */\nexport { SeatLayerSeatingChartComponent } from './seating-chart.component';\nexport { SeatLayerSeasonPickerComponent } from './season-picker.component';\n\nexport type {\n SelectedSeat,\n HoldResult,\n BestAvailableResult,\n GAAreaAvailability,\n HoldLineItem,\n SeatHoverDetails,\n SeasonAvailability,\n SeasonBestAvailableOptions,\n SeasonCheckoutHandoff,\n SeasonCheckoutSeat,\n SeasonDescriptor,\n SeasonHeldOrder,\n SeasonHeldSeat,\n SeasonOperation,\n SeasonOperationState,\n SeasonPickerOptions,\n SeasonPriceType,\n SeasonRenewalIntent,\n SeasonSeatPriceTypes,\n SeasonStatusEvent,\n} from '@seatlayer/js';\n\n// Sales Channels — buyer access sessions for private channel inventory.\nexport type {\n BuyerAccessToken,\n BuyerAccessTokenProvider,\n BuyerAccessRefreshReason,\n BuyerAccessUnavailableReason,\n BuyerAccessExpiredEvent,\n BuyerAccessUnavailableEvent,\n SelectedObjectUnavailableEvent,\n} from '@seatlayer/js';\n\n// The framework-agnostic widget class — for the one-call modal (SeatPickerWidget.open()).\nexport { SeatPicker as SeatPickerWidget } from '@seatlayer/js';\n\n// Host-side embed helper: grows the iframe on `seatlayer:height` and pins it on\n// `seatlayer:fullscreen`. Angular hosts depend on this package alone, so it has to\n// be reachable here rather than only from @seatlayer/js.\nexport { attachPickerFrame } from '@seatlayer/js';\nexport type { AttachPickerFrameOptions } from '@seatlayer/js';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["CoreSeatingChart","CoreSeasonPicker"],"mappings":";;;;;AAoCA;;;;;;;;;;;;;;;;;;;;;;AAsBG;MAQU,8BAA8B,CAAA;;AAEd,IAAA,KAAK;;AAGvB,IAAA,OAAO;;AAGP,IAAA,YAAY;;AAGZ,IAAA,eAAe;;AAGf,IAAA,iBAAiB;;AAGjB,IAAA,sBAAsB;;AAGtB,IAAA,mBAAmB;;AAGnB,IAAA,SAAS;;AAGT,IAAA,MAAM;;AAGN,IAAA,QAAQ;;AAGR,IAAA,cAAc;AAEvB;;;;;AAKG;AACM,IAAA,WAAW;AAEpB;;;;AAIG;AACM,IAAA,YAAY;;AAGZ,IAAA,QAAQ;;AAGR,IAAA,aAAa;;AAGb,IAAA,iBAAiB;;AAGjB,IAAA,WAAW;;AAGX,IAAA,QAAQ;AAEjB;;;;AAIG;AACM,IAAA,wBAAwB;;AAGxB,IAAA,gBAAgB;;AAGN,IAAA,eAAe,GAAiC,IAAI,YAAY,EAA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A,MAAA,EAAA,CAAA,+DAAA,CAAA,EAAA;;sBAI9C,KAAK;uBAAC,EAAE,QAAQ,EAAE,IAAI,EAAE;;sBAGxB;;sBAGA;;sBAGA;;sBAGA;;sBAEA;;sBAEA;;sBAGA;;sBAGA;;sBAGA;;sBAGA;;sBAGA;;sBAGA;;sBAGA;;sBAGA;;sBAGA;;sBAGA;;sBAMA;;sBAGA;;sBAGA;;sBAGA;;sBAGA;;sBAGA;;sBAGA;;sBAGA;;sBAGA;;sBAGA;;sBAEA,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,WAAW,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;;ACvH1C;;;;;AAKG;;ACLH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"seatlayer-angular.mjs","sources":["../../src/seating-chart.component.ts","../../src/season-picker.component.ts","../../src/index.ts","../../src/seatlayer-angular.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n EventEmitter,\n Input,\n NgZone,\n OnChanges,\n Output,\n SimpleChanges,\n ViewChild,\n inject,\n} from '@angular/core';\nimport {\n SeatingChart as CoreSeatingChart,\n SEATING_CHART_IDENTITY_PROPS,\n bindSeatingChartHandle,\n buildSeatingChartOptions,\n type RendererViewMode,\n type SeatingChartHandle,\n type SeatingChartOptions,\n type SelectedSeat,\n type HoldResult,\n type BestAvailableResult,\n type GAAreaAvailability,\n type SeatHoverDetails,\n type PickerSelectionValidity,\n type PickerSelectionValidator,\n type BuyerAccessToken,\n type BuyerAccessTokenProvider,\n type BuyerAccessExpiredEvent,\n type BuyerAccessUnavailableEvent,\n type SelectedObjectUnavailableEvent,\n} from '@seatlayer/js';\n\n/**\n * Angular wrapper around the framework-agnostic `@seatlayer/js` SDK.\n *\n * Standalone, so it is imported directly rather than through an NgModule.\n *\n * The canvas is created once and torn down on destroy. Only the inputs that\n * change the chart's identity (`SEATING_CHART_IDENTITY_PROPS`: `event`,\n * `apiBase`, `maxSelection`, `numberOfPlacesToSelect`, `publicKey`, `locale`, `currency`,\n * `colorblindSafe`, `initialView`, `errorDisplay`, `enable3D`, `enable3DCrowd`,\n * `touchNavigation3D`) trigger a rebuild, so an\n * unrelated change-detection pass never destroys the canvas mid-selection.\n *\n * @example\n * ```html\n * <seatlayer-seating-chart\n * #chart\n * event=\"summer-gala\"\n * (selectionChange)=\"onSelectionChange($event)\"\n * (hold)=\"onHold($event)\"\n * />\n * <button (click)=\"chart.hold()\">Continue</button>\n * ```\n */\n@Component({\n selector: 'seatlayer-seating-chart',\n standalone: true,\n template: '<div #container class=\"seatlayer-container\"></div>',\n styles: [':host { display: block; } .seatlayer-container { width: 100%; height: 100%; }'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SeatLayerSeatingChartComponent implements OnChanges {\n /** Event key to render. Changing it rebuilds the chart. */\n @Input({ required: true }) event!: string;\n\n /** API base URL. Defaults to the public API. */\n @Input() apiBase?: string;\n\n /** Cap on how many seats a buyer may select. */\n @Input() maxSelection?: number;\n\n /** Object ids or public labels selected after availability loads. */\n @Input() selectedObjects?: string[];\n\n /** Object ids or public labels the buyer may select. */\n @Input() selectableObjects?: string[] | null;\n\n /** Exact ticket count required for a valid selection. */\n @Input() numberOfPlacesToSelect?: number;\n\n /** Local buyer selection guards. Changing them rebuilds the chart. */\n @Input() selectionValidators?: PickerSelectionValidator[];\n\n /** Publishable key, when your integration uses one. */\n @Input() publicKey?: string;\n\n /** BCP-47 locale for built-in copy. */\n @Input() locale?: string;\n\n /** ISO currency for price formatting. */\n @Input() currency?: string;\n\n /** Render with colorblind-safe seat glyphs. */\n @Input() colorblindSafe?: boolean;\n\n /**\n * Initial canvas projection. Read once when the chart is built, so changing\n * it rebuilds.\n * @deprecated `'isometric'` and `'perspective'` are retired in favour of the\n * real 3D venue view; use `'flat'`.\n */\n @Input() initialView?: RendererViewMode;\n\n /**\n * What the BUYER sees when the chart cannot load: `'message'` (default) is a\n * styleable notice with a Try again button, `'none'` is silent for hosts that\n * render their own failure UI from `errored`.\n */\n @Input() errorDisplay?: 'message' | 'none';\n\n /** Offer the 3D venue view (default true). Changing it rebuilds. */\n @Input() enable3D?: boolean;\n\n /** The standing crowd in 3D, drawn by default; false turns it off. Changing it rebuilds. */\n @Input() enable3DCrowd?: boolean;\n\n /** How fingers move the 3D view: `'map'` (default) or `'classic'`. Changing it rebuilds. */\n @Input() touchNavigation3D?: 'map' | 'classic';\n\n /** Show the built-in seat tooltip. Set false to draw your own from `seatHover`. */\n @Input() seatTooltip?: boolean;\n\n /** Copy overrides, read once per rebuild. */\n @Input() messages?: SeatingChartOptions['messages'];\n\n /**\n * Sales Channels: mint a buyer access session on demand. Called with a\n * `reason`; returns `{ token, expiresAt }` from YOUR backend. The token is\n * held in memory only — never storage, never a URL, never a log.\n */\n @Input() buyerAccessTokenProvider?: BuyerAccessTokenProvider;\n\n /** One-shot session for hosts that own the lifecycle. Cannot be renewed. */\n @Input() buyerAccessToken?: string | BuyerAccessToken;\n\n /** The buyer's selection changed. */\n @Output() readonly selectionChange: EventEmitter<SelectedSeat[]> = new EventEmitter<SelectedSeat[]>();\n\n /** Exact-count state changed. */\n @Output() readonly selectionValidityChange: EventEmitter<PickerSelectionValidity> =\n new EventEmitter<PickerSelectionValidity>();\n\n /** The exact count was reached. */\n @Output() readonly selectionValid: EventEmitter<SelectedSeat[]> = new EventEmitter<SelectedSeat[]>();\n\n /** The selection is not at the exact count. */\n @Output() readonly selectionInvalid: EventEmitter<PickerSelectionValidity> =\n new EventEmitter<PickerSelectionValidity>();\n\n /** The active selection cap was reached. */\n @Output() readonly selectionLimit: EventEmitter<number> = new EventEmitter<number>();\n\n /** A hold succeeded. */\n @Output() readonly hold: EventEmitter<HoldResult> = new EventEmitter<HoldResult>();\n\n /** A previous hold was restored on mount. */\n @Output() readonly holdRestored: EventEmitter<HoldResult> = new EventEmitter<HoldResult>();\n\n /** The active hold lapsed. */\n @Output() readonly holdExpired: EventEmitter<void> = new EventEmitter<void>();\n\n /** A GA area was clicked. */\n @Output() readonly gaClick: EventEmitter<GAAreaAvailability> = new EventEmitter<GAAreaAvailability>();\n\n /** Something failed — a network error, a rejected hold. */\n @Output() readonly errored: EventEmitter<unknown> = new EventEmitter<unknown>();\n\n /** A floor deck was tapped in the 3D view. */\n @Output() readonly deckTap: EventEmitter<string> = new EventEmitter<string>();\n\n /** A transient hint worth showing the buyer, or `null` to clear it. */\n @Output() readonly hint: EventEmitter<string | null> = new EventEmitter<string | null>();\n\n /** The pointer moved onto a seat, or off one (`null`). */\n @Output() readonly seatHover: EventEmitter<SeatHoverDetails | null> = new EventEmitter<SeatHoverDetails | null>();\n\n /** The buyer access session lapsed; `refreshed` says whether it recovered. */\n @Output() readonly accessExpired: EventEmitter<BuyerAccessExpiredEvent> =\n new EventEmitter<BuyerAccessExpiredEvent>();\n\n /** Private inventory is unavailable and refreshing will not fix it. */\n @Output() readonly accessUnavailable: EventEmitter<BuyerAccessUnavailableEvent> =\n new EventEmitter<BuyerAccessUnavailableEvent>();\n\n /** Selected-but-unheld units stopped being selectable. */\n @Output() readonly selectedObjectUnavailable: EventEmitter<SelectedObjectUnavailableEvent> =\n new EventEmitter<SelectedObjectUnavailableEvent>();\n\n @ViewChild('container', { static: true })\n private readonly container!: ElementRef<HTMLDivElement>;\n\n private readonly zone = inject(NgZone);\n private chart: CoreSeatingChart | null = null;\n\n /**\n * Inputs that require tearing the canvas down and rebuilding it. The shared\n * list from `@seatlayer/js`, not a hand-copied one — this is exactly the place\n * Angular fell two inputs behind React.\n */\n private static readonly REBUILD_INPUTS = SEATING_CHART_IDENTITY_PROPS;\n\n /**\n * The canonical forwarding object. Every imperative method below is a\n * one-line delegate to it, so the component cannot forward a method the other\n * wrappers do not, or miss one they do.\n */\n private readonly handle: SeatingChartHandle = bindSeatingChartHandle(() => this.chart);\n\n constructor() {\n inject(DestroyRef).onDestroy(() => this.destroy());\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n const needsRebuild = SeatLayerSeatingChartComponent.REBUILD_INPUTS.some((name) => name in changes);\n if (needsRebuild) {\n this.build();\n }\n }\n\n // ---------- imperative API, for a template ref ----------\n\n /** Hold the current selection. Resolves the hold, or `null` on a 409 conflict. */\n holdSelection(options?: { ttlMs?: number }): Promise<HoldResult | null> {\n return this.handle.hold(options);\n }\n\n /** Restore an active hold by its opaque id. */\n resumeHold(holdId: string): Promise<HoldResult | null> {\n return this.handle.resumeHold(holdId);\n }\n\n /** Current active hold known to the chart. */\n getCurrentHold(): HoldResult | null {\n return this.handle.getCurrentHold();\n }\n\n /** GA areas with live remaining capacity. */\n getGAAreas(): GAAreaAvailability[] {\n return this.handle.getGAAreas();\n }\n\n /** Atomically hold a quantity from one GA area. */\n holdGA(\n areaId: string,\n qty: number,\n options?: { tierId?: string | null; ttlMs?: number },\n ): Promise<HoldResult | null> {\n return this.handle.holdGA(areaId, qty, options);\n }\n\n /** Ask the server for the `qty` best free seats and hold them atomically. */\n bestAvailable(qty: number, categoryKey?: string): Promise<BestAvailableResult | null> {\n return this.handle.bestAvailable(qty, categoryKey);\n }\n\n /** Release the current hold (if any). */\n release(): Promise<void> {\n return this.handle.release();\n }\n\n /** Release some held labels while keeping the remainder active. */\n releaseLabels(labels: string[]): Promise<boolean> {\n return this.handle.releaseLabels(labels);\n }\n\n /** The current selection, with prices resolved from the chart categories. */\n getSelection(): SelectedSeat[] {\n return this.handle.getSelection();\n }\n\n selectObjects(objects: string[]): SelectedSeat[] {\n return this.handle.selectObjects(objects);\n }\n\n deselectObjects(objects: string[]): void {\n this.handle.deselectObjects(objects);\n }\n\n clearSelection(): void {\n this.handle.clearSelection();\n }\n\n selectCategories(categoryKeys: string[]): SelectedSeat[] {\n return this.handle.selectCategories(categoryKeys);\n }\n\n deselectCategories(categoryKeys: string[]): void {\n this.handle.deselectCategories(categoryKeys);\n }\n\n setSelectableObjects(objects: string[] | null): void {\n this.handle.setSelectableObjects(objects);\n }\n\n setMaxSelection(maxSelection: number): void {\n this.handle.setMaxSelection(maxSelection);\n }\n\n getSelectionValidity(): PickerSelectionValidity | null {\n return this.handle.getSelectionValidity();\n }\n\n /** Choose a ticket tier for a selected seat; `null` reverts to the default. */\n setSeatTier(seatId: string, tierId: string | null): void {\n this.handle.setSeatTier(seatId, tierId);\n }\n\n /** Floors of a multi-floor chart. Empty before the first render. */\n getFloors(): { id: string; name: string }[] {\n return this.handle.getFloors();\n }\n\n /** Switch the shown floor (2D). No-ops on single-floor charts. */\n setFloor(floorId: string): void {\n this.handle.setFloor(floorId);\n }\n\n /** Toggle colorblind-safe rendering at runtime. */\n setColorblindSafe(on: boolean): void {\n this.handle.setColorblindSafe(on);\n }\n\n /** Zoom in one step (same increment as the wheel/pinch gesture). */\n zoomIn(): void {\n this.handle.zoomIn();\n }\n\n /** Zoom out one step. */\n zoomOut(): void {\n this.handle.zoomOut();\n }\n\n /** Reset the camera so the whole chart fits the container. */\n zoomToFit(): void {\n this.handle.zoomToFit();\n }\n\n /**\n * Re-acquire the buyer access session after your app re-authorizes the buyer\n * (Sales Channels). Resolves false when the chart is not access-scoped.\n */\n refreshAccess(): Promise<boolean> {\n return this.handle.refreshAccess();\n }\n\n // ---------- internals ----------\n\n private build(): void {\n const element = this.container?.nativeElement;\n if (!element) return;\n\n this.destroy();\n\n // The chart runs a rAF render loop and pointer handlers. Left inside the\n // Angular zone, every frame would schedule change detection for the whole\n // application — so it is built outside, and each callback re-enters the zone\n // only to emit, which is the only part Angular needs to see.\n this.zone.runOutsideAngular(() => {\n const emit = <T>(emitter: EventEmitter<T>, value: T) =>\n this.zone.run(() => emitter.emit(value));\n\n const instance = new CoreSeatingChart(buildSeatingChartOptions(\n element,\n {\n event: this.event,\n apiBase: this.apiBase,\n maxSelection: this.maxSelection,\n selectedObjects: this.selectedObjects,\n selectableObjects: this.selectableObjects,\n numberOfPlacesToSelect: this.numberOfPlacesToSelect,\n selectionValidators: this.selectionValidators,\n publicKey: this.publicKey,\n locale: this.locale,\n currency: this.currency,\n colorblindSafe: this.colorblindSafe,\n initialView: this.initialView,\n errorDisplay: this.errorDisplay,\n enable3D: this.enable3D,\n enable3DCrowd: this.enable3DCrowd,\n touchNavigation3D: this.touchNavigation3D,\n messages: this.messages,\n seatTooltip: this.seatTooltip,\n buyerAccessTokenProvider: this.buyerAccessTokenProvider,\n buyerAccessToken: this.buyerAccessToken,\n },\n {\n onSelectionChange: (seats) => emit(this.selectionChange, seats),\n onSelectionValidityChange: (state) => emit(this.selectionValidityChange, state),\n onSelectionValid: (seats) => emit(this.selectionValid, seats),\n onSelectionInvalid: (state) => emit(this.selectionInvalid, state),\n onSelectionLimit: (max) => emit(this.selectionLimit, max),\n onHold: (result) => emit(this.hold, result),\n onHoldRestored: (result) => emit(this.holdRestored, result),\n onHoldExpired: () => this.zone.run(() => this.holdExpired.emit()),\n onGAClick: (area) => emit(this.gaClick, area),\n onError: (error) => emit(this.errored, error),\n onDeckTap: (floorId) => emit(this.deckTap, floorId),\n onHint: (message) => emit(this.hint, message),\n onSeatHover: (details) => emit(this.seatHover, details),\n onAccessExpired: (state) => emit(this.accessExpired, state),\n onAccessUnavailable: (state) => emit(this.accessUnavailable, state),\n onSelectedObjectUnavailable: (state) => emit(this.selectedObjectUnavailable, state),\n },\n ));\n\n this.chart = instance;\n void instance.render();\n });\n }\n\n private destroy(): void {\n this.chart?.destroy();\n this.chart = null;\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n EventEmitter,\n Input,\n NgZone,\n OnChanges,\n Output,\n SimpleChanges,\n ViewChild,\n inject,\n} from '@angular/core';\nimport {\n SeasonPicker as CoreSeasonPicker,\n type SeasonAvailability,\n type SeasonBestAvailableOptions,\n type SeasonCheckoutHandoff,\n type SeasonDescriptor,\n type SeasonHeldOrder,\n type SeasonPickerOptions,\n type SeasonPriceType,\n type SeasonRenewalIntent,\n type SeasonSeatPriceTypes,\n type SeasonStatusEvent,\n} from '@seatlayer/js';\n\n/** Standalone Angular adapter for the distinct fixed-inclusion Season buyer flow. */\n@Component({\n selector: 'seatlayer-season-picker',\n standalone: true,\n template: '<div #container class=\"seatlayer-season-container\"></div>',\n styles: [':host { display: block; } .seatlayer-season-container { width: 100%; }'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SeatLayerSeasonPickerComponent implements OnChanges {\n /** Season key to render. */\n @Input({ required: true }) season!: string;\n\n /** Public API base override. */\n @Input() apiBase?: string;\n\n /** Publishable account key, accepted for snippet parity. Never sent. */\n @Input() publicKey?: string;\n\n /** Who takes the money once the package is held. Default `'handoff'`. */\n @Input() checkout?: SeasonPickerOptions['checkout'];\n\n /** Where a redirecting gateway returns the buyer, for hosted checkout. */\n @Input() returnUrl?: string;\n /** Prefills SeatLayer checkout's email field (a signed-in member's). */\n @Input() buyerEmail?: string;\n /** Prefills SeatLayer checkout's name field. */\n @Input() buyerName?: string;\n\n /** Refreshable one-time browser bearer provider. */\n @Input() buyerAccessTokenProvider?: SeasonPickerOptions['buyerAccessTokenProvider'];\n\n /** One-time Season browser bearer. */\n @Input() buyerAccessToken?: SeasonPickerOptions['buyerAccessToken'];\n\n /** Operation restored after an uncertain create response. */\n @Input() initialOperationId?: string;\n\n /**\n * Release, on destroy, a hold the buyer left unfinished (`@seatlayer/js`\n * `releaseHoldOnDestroy`). Default false: destroying the component releases\n * nothing. Not in REBUILD_INPUTS: changing it does not rebuild the picker,\n * which reads the current value when it is destroyed.\n *\n * Do not turn this on if you rebuild the picker (changing inputs the\n * component rebuilds on, REBUILD_INPUTS) or hand the hold to your own\n * checkout without the `continued` output.\n */\n @Input() releaseHoldOnDestroy?: boolean;\n\n /** The package to open on, by its key; the first package without it. */\n @Input() package?: string;\n\n /** The host emails a ticket per date itself: step 1 says so. */\n @Input() ticketsByEmail?: boolean;\n\n /** Maximum recovery polling time. */\n @Input() recoveryTimeoutMs?: number;\n\n /** Offer the 3D venue view (default true). Changing it rebuilds. */\n @Input() enable3D?: boolean;\n\n /** The standing crowd in 3D, drawn by default; false turns it off. Changing it rebuilds. */\n @Input() enable3DCrowd?: boolean;\n\n /** How fingers move the 3D view: `'map'` (default) or `'classic'`. Changing it rebuilds. */\n @Input() touchNavigation3D?: 'map' | 'classic';\n\n /** Test or host fetch implementation. */\n @Input() fetch?: typeof fetch;\n\n /**\n * The price types the picker sells, e.g. `['adult', 'child']`. With a type\n * besides adult, the buyer chooses one per seat before the hold.\n */\n @Input() priceTypes?: readonly SeasonPriceType[];\n\n /** A same-seat hold reached a safe handoff. */\n @Output() readonly hold = new EventEmitter<SeasonCheckoutHandoff>();\n\n /** The active handoff changed or was released. */\n @Output() readonly holdChange = new EventEmitter<SeasonCheckoutHandoff | null>();\n\n /** The buyer continued with an opaque handoff. */\n @Output() readonly continued = new EventEmitter<SeasonCheckoutHandoff>();\n\n /** A returning holder recorded browser intent only. */\n @Output() readonly renewalIntent = new EventEmitter<SeasonRenewalIntent>();\n\n /** Buyer access expired. */\n @Output() readonly accessExpired = new EventEmitter<unknown>();\n\n /** Buyer access cannot be recovered. */\n @Output() readonly accessUnavailable = new EventEmitter<unknown>();\n\n /** Hosted checkout only: the gateway webhook landed and the order is paid. */\n @Output() readonly orderConfirmed = new EventEmitter<unknown>();\n\n /** Buyer-visible operation status changed. */\n @Output() readonly statusChange = new EventEmitter<SeasonStatusEvent>();\n\n /** The Season buyer flow failed. */\n @Output() readonly errored = new EventEmitter<unknown>();\n\n @ViewChild('container', { static: true })\n private readonly container!: ElementRef<HTMLDivElement>;\n\n private static readonly REBUILD_INPUTS = new Set([\n 'season', 'apiBase', 'publicKey', 'checkout', 'returnUrl',\n 'buyerAccessTokenProvider', 'buyerAccessToken',\n 'initialOperationId', 'package', 'ticketsByEmail', 'recoveryTimeoutMs', 'fetch', 'priceTypes',\n 'enable3D', 'enable3DCrowd', 'touchNavigation3D',\n ]);\n private readonly zone = inject(NgZone);\n private picker: CoreSeasonPicker | null = null;\n\n constructor() {\n inject(DestroyRef).onDestroy(() => this.destroy());\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (Object.keys(changes).some((name) => SeatLayerSeasonPickerComponent.REBUILD_INPUTS.has(name))) {\n this.build();\n }\n }\n\n /**\n * Holds the same labels across every included occurrence. `priceTypes` names\n * each seat's price type by label (`{ 'A-2': 'child' }`); a label it leaves\n * out is adult.\n */\n holdSameSeat(\n labels: readonly string[], operationId: string, priceTypes?: SeasonSeatPriceTypes,\n ): Promise<SeasonCheckoutHandoff> {\n return this.current().holdSameSeat(labels, operationId, priceTypes);\n }\n\n /**\n * Holds the best `qty` seats free on every included performance, as a map\n * selection would. Same contract as `@seatlayer/js` `holdBestAvailable`: a\n * caller-stable `sop_` id, 1 to `maxSelection` seats, one call at a time.\n */\n holdBestAvailable(\n qty: number, operationId: string, options?: SeasonBestAvailableOptions,\n ): Promise<SeasonCheckoutHandoff> {\n return this.current().holdBestAvailable(qty, operationId, options);\n }\n\n /** Restores a caller-stable Season operation after uncertainty. */\n restoreOperation(operationId: string): Promise<SeasonCheckoutHandoff | null> {\n return this.current().restoreOperation(operationId);\n }\n\n /** Your server booked the held seats: show booked and stop the hold clock. */\n markBooked(): Promise<boolean> {\n return this.current().markBooked();\n }\n\n /** Releases the active selection with a caller-stable action id. */\n release(releaseActionId: string): Promise<void> {\n return this.current().release(releaseActionId);\n }\n\n /** As release(), resolving true when the seats were let go, false when nothing was held or the server kept the hold. */\n tryRelease(releaseActionId: string): Promise<boolean> {\n return this.current().tryRelease(releaseActionId);\n }\n\n /** Records renewal intent; trusted server code still inspects and commits it. */\n createRenewalIntent(offerId: string): Promise<SeasonRenewalIntent> {\n return this.current().createRenewalIntent(offerId);\n }\n\n /** Current immutable Season descriptor. */\n getDescriptor(): SeasonDescriptor | null {\n return this.picker?.getDescriptor() ?? null;\n }\n\n /** Current same-seat aggregate availability. */\n getAvailability(): SeasonAvailability | null {\n return this.picker?.getAvailability() ?? null;\n }\n\n /** Current opaque checkout handoff. */\n getHandoff(): SeasonCheckoutHandoff | null {\n return this.picker?.getHandoff() ?? null;\n }\n\n /**\n * The held Season order for your own order summary: each held seat with its\n * price type and package price, and the total. Null with no live hold.\n * Display only: checkout prices the order on the server.\n */\n getHeldOrder(): SeasonHeldOrder | null {\n return this.picker?.getHeldOrder() ?? null;\n }\n\n private build(): void {\n this.destroy();\n const inputs = this;\n this.zone.runOutsideAngular(() => {\n const picker = new CoreSeasonPicker({\n container: this.container.nativeElement,\n season: this.season,\n apiBase: this.apiBase,\n publicKey: this.publicKey,\n checkout: this.checkout,\n returnUrl: this.returnUrl,\n buyerEmail: this.buyerEmail,\n buyerName: this.buyerName,\n buyerAccessTokenProvider: this.buyerAccessTokenProvider,\n buyerAccessToken: this.buyerAccessToken,\n initialOperationId: this.initialOperationId,\n package: this.package,\n ticketsByEmail: this.ticketsByEmail,\n recoveryTimeoutMs: this.recoveryTimeoutMs,\n enable3D: this.enable3D,\n enable3DCrowd: this.enable3DCrowd,\n touchNavigation3D: this.touchNavigation3D,\n fetch: this.fetch,\n priceTypes: this.priceTypes,\n onHold: (value) => this.zone.run(() => this.hold.emit(value)),\n onHoldChange: (value) => this.zone.run(() => this.holdChange.emit(value)),\n onContinue: (value) => this.zone.run(() => this.continued.emit(value)),\n onRenewalIntent: (value) => this.zone.run(() => this.renewalIntent.emit(value)),\n onAccessExpired: (value) => this.zone.run(() => this.accessExpired.emit(value)),\n onAccessUnavailable: (value) => this.zone.run(() => this.accessUnavailable.emit(value)),\n onOrderConfirmed: (value) => this.zone.run(() => this.orderConfirmed.emit(value)),\n onStatusChange: (value) => this.zone.run(() => this.statusChange.emit(value)),\n onError: (value) => this.zone.run(() => this.errored.emit(value)),\n // Not a rebuild input: read from the current input when the picker is destroyed.\n get releaseHoldOnDestroy() { return inputs.releaseHoldOnDestroy; },\n });\n this.picker = picker;\n void picker.render().catch(() => undefined);\n });\n }\n\n private current(): CoreSeasonPicker {\n if (!this.picker) throw new Error('seatlayer: Angular SeasonPicker is not mounted');\n return this.picker;\n }\n\n private destroy(): void {\n this.picker?.destroy();\n this.picker = null;\n }\n}\n","/**\n * @seatlayer/angular — the Angular wrapper for the SeatLayer embed SDK.\n *\n * The component is standalone; import it directly rather than through an\n * NgModule.\n */\nexport { SeatLayerSeatingChartComponent } from './seating-chart.component';\nexport { SeatLayerSeasonPickerComponent } from './season-picker.component';\n\nexport type {\n SelectedSeat,\n HoldResult,\n BestAvailableResult,\n GAAreaAvailability,\n HoldLineItem,\n SeatHoverDetails,\n SeasonAvailability,\n SeasonBestAvailableOptions,\n SeasonCheckoutHandoff,\n SeasonCheckoutSeat,\n SeasonDescriptor,\n SeasonHeldOrder,\n SeasonHeldSeat,\n SeasonOperation,\n SeasonOperationState,\n SeasonPickerOptions,\n SeasonPriceType,\n SeasonRenewalIntent,\n SeasonSeatPriceTypes,\n SeasonStatusEvent,\n} from '@seatlayer/js';\n\n// Sales Channels — buyer access sessions for private channel inventory.\nexport type {\n BuyerAccessToken,\n BuyerAccessTokenProvider,\n BuyerAccessRefreshReason,\n BuyerAccessUnavailableReason,\n BuyerAccessExpiredEvent,\n BuyerAccessUnavailableEvent,\n SelectedObjectUnavailableEvent,\n} from '@seatlayer/js';\n\n// The framework-agnostic widget class — for the one-call modal (SeatPickerWidget.open()).\nexport { SeatPicker as SeatPickerWidget } from '@seatlayer/js';\n\n// Host-side embed helper: grows the iframe on `seatlayer:height` and pins it on\n// `seatlayer:fullscreen`. Angular hosts depend on this package alone, so it has to\n// be reachable here rather than only from @seatlayer/js.\nexport { attachPickerFrame } from '@seatlayer/js';\nexport type { AttachPickerFrameOptions } from '@seatlayer/js';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["CoreSeatingChart","CoreSeasonPicker"],"mappings":";;;;;AAoCA;;;;;;;;;;;;;;;;;;;;;;AAsBG;MAQU,8BAA8B,CAAA;;AAEd,IAAA,KAAK;;AAGvB,IAAA,OAAO;;AAGP,IAAA,YAAY;;AAGZ,IAAA,eAAe;;AAGf,IAAA,iBAAiB;;AAGjB,IAAA,sBAAsB;;AAGtB,IAAA,mBAA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tB,QAAA,IAAI,CAAC,MAAM,GAAG,IAAI;IACpB;wGA7OW,8BAA8B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAA9B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,8BAA8B,2iCAJ/B,2DAA2D,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,+DAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAI1D,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAP1C,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,yBAAyB,cACvB,IAAI,EAAA,QAAA,EACN,2DAA2D,EAAA,eAAA,EAEpD,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,+DAAA,CAAA,EAAA;;sBAI9C,KAAK;uBAAC,EAAE,QAAQ,EAAE,IAAI,EAAE;;sBAGxB;;sBAGA;;sBAGA;;sBAGA;;sBAEA;;sBAEA;;sBAGA;;sBAGA;;sBAGA;;sBAYA;;sBAGA;;sBAGA;;sBAGA;;sBAGA;;sBAGA;;sBAGA;;sBAGA;;sBAMA;;sBAGA;;sBAGA;;sBAGA;;sBAGA;;sBAGA;;sBAGA;;sBAGA;;sBAGA;;sBAGA;;sBAEA,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,WAAW,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;;ACnI1C;;;;;AAKG;;ACLH;;AAEG;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -210,6 +210,17 @@ declare class SeatLayerSeasonPickerComponent implements OnChanges {
|
|
|
210
210
|
buyerAccessToken?: SeasonPickerOptions['buyerAccessToken'];
|
|
211
211
|
/** Operation restored after an uncertain create response. */
|
|
212
212
|
initialOperationId?: string;
|
|
213
|
+
/**
|
|
214
|
+
* Release, on destroy, a hold the buyer left unfinished (`@seatlayer/js`
|
|
215
|
+
* `releaseHoldOnDestroy`). Default false: destroying the component releases
|
|
216
|
+
* nothing. Not in REBUILD_INPUTS: changing it does not rebuild the picker,
|
|
217
|
+
* which reads the current value when it is destroyed.
|
|
218
|
+
*
|
|
219
|
+
* Do not turn this on if you rebuild the picker (changing inputs the
|
|
220
|
+
* component rebuilds on, REBUILD_INPUTS) or hand the hold to your own
|
|
221
|
+
* checkout without the `continued` output.
|
|
222
|
+
*/
|
|
223
|
+
releaseHoldOnDestroy?: boolean;
|
|
213
224
|
/** The package to open on, by its key; the first package without it. */
|
|
214
225
|
package?: string;
|
|
215
226
|
/** The host emails a ticket per date itself: step 1 says so. */
|
|
@@ -271,6 +282,8 @@ declare class SeatLayerSeasonPickerComponent implements OnChanges {
|
|
|
271
282
|
markBooked(): Promise<boolean>;
|
|
272
283
|
/** Releases the active selection with a caller-stable action id. */
|
|
273
284
|
release(releaseActionId: string): Promise<void>;
|
|
285
|
+
/** As release(), resolving true when the seats were let go, false when nothing was held or the server kept the hold. */
|
|
286
|
+
tryRelease(releaseActionId: string): Promise<boolean>;
|
|
274
287
|
/** Records renewal intent; trusted server code still inspects and commits it. */
|
|
275
288
|
createRenewalIntent(offerId: string): Promise<SeasonRenewalIntent>;
|
|
276
289
|
/** Current immutable Season descriptor. */
|
|
@@ -289,7 +302,7 @@ declare class SeatLayerSeasonPickerComponent implements OnChanges {
|
|
|
289
302
|
private current;
|
|
290
303
|
private destroy;
|
|
291
304
|
static ɵfac: i0.ɵɵFactoryDeclaration<SeatLayerSeasonPickerComponent, never>;
|
|
292
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SeatLayerSeasonPickerComponent, "seatlayer-season-picker", never, { "season": { "alias": "season"; "required": true; }; "apiBase": { "alias": "apiBase"; "required": false; }; "publicKey": { "alias": "publicKey"; "required": false; }; "checkout": { "alias": "checkout"; "required": false; }; "returnUrl": { "alias": "returnUrl"; "required": false; }; "buyerEmail": { "alias": "buyerEmail"; "required": false; }; "buyerName": { "alias": "buyerName"; "required": false; }; "buyerAccessTokenProvider": { "alias": "buyerAccessTokenProvider"; "required": false; }; "buyerAccessToken": { "alias": "buyerAccessToken"; "required": false; }; "initialOperationId": { "alias": "initialOperationId"; "required": false; }; "package": { "alias": "package"; "required": false; }; "ticketsByEmail": { "alias": "ticketsByEmail"; "required": false; }; "recoveryTimeoutMs": { "alias": "recoveryTimeoutMs"; "required": false; }; "enable3D": { "alias": "enable3D"; "required": false; }; "enable3DCrowd": { "alias": "enable3DCrowd"; "required": false; }; "touchNavigation3D": { "alias": "touchNavigation3D"; "required": false; }; "fetch": { "alias": "fetch"; "required": false; }; "priceTypes": { "alias": "priceTypes"; "required": false; }; }, { "hold": "hold"; "holdChange": "holdChange"; "continued": "continued"; "renewalIntent": "renewalIntent"; "accessExpired": "accessExpired"; "accessUnavailable": "accessUnavailable"; "orderConfirmed": "orderConfirmed"; "statusChange": "statusChange"; "errored": "errored"; }, never, never, true, never>;
|
|
305
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SeatLayerSeasonPickerComponent, "seatlayer-season-picker", never, { "season": { "alias": "season"; "required": true; }; "apiBase": { "alias": "apiBase"; "required": false; }; "publicKey": { "alias": "publicKey"; "required": false; }; "checkout": { "alias": "checkout"; "required": false; }; "returnUrl": { "alias": "returnUrl"; "required": false; }; "buyerEmail": { "alias": "buyerEmail"; "required": false; }; "buyerName": { "alias": "buyerName"; "required": false; }; "buyerAccessTokenProvider": { "alias": "buyerAccessTokenProvider"; "required": false; }; "buyerAccessToken": { "alias": "buyerAccessToken"; "required": false; }; "initialOperationId": { "alias": "initialOperationId"; "required": false; }; "releaseHoldOnDestroy": { "alias": "releaseHoldOnDestroy"; "required": false; }; "package": { "alias": "package"; "required": false; }; "ticketsByEmail": { "alias": "ticketsByEmail"; "required": false; }; "recoveryTimeoutMs": { "alias": "recoveryTimeoutMs"; "required": false; }; "enable3D": { "alias": "enable3D"; "required": false; }; "enable3DCrowd": { "alias": "enable3DCrowd"; "required": false; }; "touchNavigation3D": { "alias": "touchNavigation3D"; "required": false; }; "fetch": { "alias": "fetch"; "required": false; }; "priceTypes": { "alias": "priceTypes"; "required": false; }; }, { "hold": "hold"; "holdChange": "holdChange"; "continued": "continued"; "renewalIntent": "renewalIntent"; "accessExpired": "accessExpired"; "accessUnavailable": "accessUnavailable"; "orderConfirmed": "orderConfirmed"; "statusChange": "statusChange"; "errored": "errored"; }, never, never, true, never>;
|
|
293
306
|
}
|
|
294
307
|
|
|
295
308
|
export { SeatLayerSeasonPickerComponent, SeatLayerSeatingChartComponent };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seatlayer/angular",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.115.0",
|
|
4
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": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"typescript"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@seatlayer/core": "0.
|
|
40
|
-
"@seatlayer/js": "0.
|
|
39
|
+
"@seatlayer/core": "0.115.0",
|
|
40
|
+
"@seatlayer/js": "0.115.0",
|
|
41
41
|
"tslib": "^2.8.1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
@@ -82,6 +82,6 @@
|
|
|
82
82
|
],
|
|
83
83
|
"scripts": {
|
|
84
84
|
"build": "ng-packagr -p ng-package.json && node ./check-entry-points.mjs",
|
|
85
|
-
"typecheck": "tsc --noEmit -p tsconfig.lib.json"
|
|
85
|
+
"typecheck": "tsc --noEmit -p tsconfig.lib.json && tsc -p tsconfig.type-test.json"
|
|
86
86
|
}
|
|
87
87
|
}
|