@seatmap.pro/renderer 1.68.4 → 1.69.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/lib/index.d.ts +19 -3
- package/lib/index.js +1 -1
- package/package.json +6 -8
package/lib/index.d.ts
CHANGED
|
@@ -252,6 +252,7 @@ interface IPriceListDTO {
|
|
|
252
252
|
requestTime?: number;
|
|
253
253
|
responseSize?: number;
|
|
254
254
|
}
|
|
255
|
+
declare const emptyPriceList: () => IPriceListDTO;
|
|
255
256
|
/**
|
|
256
257
|
* Interface representing a price data transfer object from the API.
|
|
257
258
|
* @hidden
|
|
@@ -300,6 +301,7 @@ interface IBookingApiClientSettings {
|
|
|
300
301
|
publicKey: string;
|
|
301
302
|
debug?: boolean;
|
|
302
303
|
forceSvg?: boolean;
|
|
304
|
+
requestTimeoutMs?: number;
|
|
303
305
|
}
|
|
304
306
|
/**
|
|
305
307
|
* Metrics for API requests.
|
|
@@ -852,7 +854,11 @@ declare class Context {
|
|
|
852
854
|
removeSeatFromCart(seatId: number): void;
|
|
853
855
|
getCartSeats(): ISeat[];
|
|
854
856
|
getSeatSelection(): ISeat[];
|
|
855
|
-
|
|
857
|
+
/**
|
|
858
|
+
* Replaces the current section selection. Unknown ids/names are skipped.
|
|
859
|
+
* Returns the resolved section ids that are now selected.
|
|
860
|
+
*/
|
|
861
|
+
setSectionSelection(sections?: number[] | string[]): number[];
|
|
856
862
|
getSvgSectionBySelection(): ISectorDTO[];
|
|
857
863
|
getGaSectors(): ISector[];
|
|
858
864
|
seatToCartSeat: (seat: ISeat, origCartSeat?: ICartSeat) => ICartSeat;
|
|
@@ -956,6 +962,7 @@ interface ISection {
|
|
|
956
962
|
* The price for the section.
|
|
957
963
|
*/
|
|
958
964
|
price?: number;
|
|
965
|
+
priceId?: IPriceId;
|
|
959
966
|
/**
|
|
960
967
|
* Special state information for the section.
|
|
961
968
|
*/
|
|
@@ -3218,6 +3225,13 @@ interface IBookingRendererSettings extends IRendererSettings {
|
|
|
3218
3225
|
* @hidden
|
|
3219
3226
|
*/
|
|
3220
3227
|
debug?: boolean;
|
|
3228
|
+
/**
|
|
3229
|
+
* Request timeout in milliseconds for API calls. Requests that exceed this
|
|
3230
|
+
* reject with a `TimeoutError` `DOMException`.
|
|
3231
|
+
*
|
|
3232
|
+
* @defaultValue `30000`
|
|
3233
|
+
*/
|
|
3234
|
+
requestTimeoutMs?: number;
|
|
3221
3235
|
}
|
|
3222
3236
|
/**
|
|
3223
3237
|
* Booking Renderer class for seatmap booking.
|
|
@@ -3282,7 +3296,9 @@ declare class SeatmapBookingRenderer extends Renderer {
|
|
|
3282
3296
|
*
|
|
3283
3297
|
* @param eventId - Event GUID to load
|
|
3284
3298
|
* @param sectorId - Optional sector ID to show only a specific sector
|
|
3285
|
-
* @returns A promise that resolves
|
|
3299
|
+
* @returns A promise that resolves after schema, prices, and rows are loaded and applied and
|
|
3300
|
+
* cart interactions are enabled; it rejects (after showing the loader error state) if any of
|
|
3301
|
+
* those requests fail. Use the onSchemaDataLoaded callback for a first-paint hook.
|
|
3286
3302
|
*/
|
|
3287
3303
|
loadEvent(eventId: string, sectorId?: number): Promise<void>;
|
|
3288
3304
|
/** @hidden */
|
|
@@ -3361,4 +3377,4 @@ declare class RotationAnimation {
|
|
|
3361
3377
|
getAnimation(): IRotationAnimation | null;
|
|
3362
3378
|
}
|
|
3363
3379
|
|
|
3364
|
-
export { ApiError, BookingApiClient, type BuiltinSeatStateKey, type ById, type ColorById, type ColorSequenceSettings, DataManager, type DataManagerEvent, type DataManagerEventCallback, type DeepPartial, type DestEvent, DestEventType, type IAdminRendererSettings, type IBackgroundImageLoadedEvent, type IBaseSeat, type IBaseSector, type IBasicSeatStyle, type IBeforeSeatDrawEvent, type IBookingRendererSettings, type ICart, type ICartGa, type ICartSeat, type IClickSrcEvent, type IColoredPrice, type IConfigurationDTO, type ICustomSeatStyle, type IDeselectDestEvent, type IDragEndSrcEvent, type IDragMoveSrcEvent, type IDragStartSrcEvent, type IEntityStates, type IErrorMessage, type IExtendedSeat, type ILabelStyle, type ILoadProgressEvent, type ILoaderSettings, type ILoaderTheme, type IMarker, type IMarkerSettings, type IMinimapSettings, type IMouseMoveSrcEvent, type IPanDestEvent, type IPanZoomDestEvent, type IPlainSeatsDTO, type IPngBackgroundDTO, type IPoint, type IPrice, type IPriceDTO, type IPriceId, type IPriceListDTO, type IRectSelectDestEvent, type IRemovedCartGa, type IRenderer, type IRendererAnimation, type IRendererMachineContext, type IRendererSettings, type IRendererSvgSectionStylesSetting, type IRendererTheme, type IResolvedMarker, type IRowDTO, type ISVGBackgroundDTO, type ISchemaDTO, type ISeat, type ISeatCartSwitchDestEvent, type ISeatDTO, type ISeatMetadata, type ISeatMouseEnterDestEvent, type ISeatMouseLeaveDestEvent, type ISeatPriceScheme, type ISeatSelectDestEvent, type ISeatStateRenderArgs, type ISeatStyle, type ISection, type ISectionClickDestEvent, type ISectionMetadata, type ISectionMouseEnterDestEvent, type ISectionMouseLeaveDestEvent, type ISectionRect, type ISectionWithCoords, type ISector, type ISectorDTO, type IShapeMetadata, type ISpecialPrice, type ISpecialState, type ISvgSectionStyle, type IVenueDTO, type IVisibilitySettings, type IZoomSettings, type InteractionZoomStrategy, type InteractionZoomStrategyType, type LoaderStyle, type LoadingPhase, type MarkerAppearance, type MarkerTarget, type MinimapPosition, type Nullable, Renderer, type RendererMachine, type RendererMachineReducer, type RendererMachineService, RendererSelectMode, RendererTargetType, type RequestMetrics, RotationAnimation, type SeatFilter, type SeatInteractionState, type SeatStylesMap, SeatmapAdminRenderer, SeatmapBookingRenderer, type SrcEvent, SrcEventType, StateManager, type StateManagerEvent, type StateManagerEventCallback, type TransformArray, VERSION, convertPricesToColored, convertPricesToColoredById, defaultZoomSettings, mergeSettings, sortPrices };
|
|
3380
|
+
export { ApiError, BookingApiClient, type BuiltinSeatStateKey, type ById, type ColorById, type ColorSequenceSettings, DataManager, type DataManagerEvent, type DataManagerEventCallback, type DeepPartial, type DestEvent, DestEventType, type IAdminRendererSettings, type IBackgroundImageLoadedEvent, type IBaseSeat, type IBaseSector, type IBasicSeatStyle, type IBeforeSeatDrawEvent, type IBookingRendererSettings, type ICart, type ICartGa, type ICartSeat, type IClickSrcEvent, type IColoredPrice, type IConfigurationDTO, type ICustomSeatStyle, type IDeselectDestEvent, type IDragEndSrcEvent, type IDragMoveSrcEvent, type IDragStartSrcEvent, type IEntityStates, type IErrorMessage, type IExtendedSeat, type ILabelStyle, type ILoadProgressEvent, type ILoaderSettings, type ILoaderTheme, type IMarker, type IMarkerSettings, type IMinimapSettings, type IMouseMoveSrcEvent, type IPanDestEvent, type IPanZoomDestEvent, type IPlainSeatsDTO, type IPngBackgroundDTO, type IPoint, type IPrice, type IPriceDTO, type IPriceId, type IPriceListDTO, type IRectSelectDestEvent, type IRemovedCartGa, type IRenderer, type IRendererAnimation, type IRendererMachineContext, type IRendererSettings, type IRendererSvgSectionStylesSetting, type IRendererTheme, type IResolvedMarker, type IRowDTO, type ISVGBackgroundDTO, type ISchemaDTO, type ISeat, type ISeatCartSwitchDestEvent, type ISeatDTO, type ISeatMetadata, type ISeatMouseEnterDestEvent, type ISeatMouseLeaveDestEvent, type ISeatPriceScheme, type ISeatSelectDestEvent, type ISeatStateRenderArgs, type ISeatStyle, type ISection, type ISectionClickDestEvent, type ISectionMetadata, type ISectionMouseEnterDestEvent, type ISectionMouseLeaveDestEvent, type ISectionRect, type ISectionWithCoords, type ISector, type ISectorDTO, type IShapeMetadata, type ISpecialPrice, type ISpecialState, type ISvgSectionStyle, type IVenueDTO, type IVisibilitySettings, type IZoomSettings, type InteractionZoomStrategy, type InteractionZoomStrategyType, type LoaderStyle, type LoadingPhase, type MarkerAppearance, type MarkerTarget, type MinimapPosition, type Nullable, Renderer, type RendererMachine, type RendererMachineReducer, type RendererMachineService, RendererSelectMode, RendererTargetType, type RequestMetrics, RotationAnimation, type SeatFilter, type SeatInteractionState, type SeatStylesMap, SeatmapAdminRenderer, SeatmapBookingRenderer, type SrcEvent, SrcEventType, StateManager, type StateManagerEvent, type StateManagerEventCallback, type TransformArray, VERSION, convertPricesToColored, convertPricesToColoredById, defaultZoomSettings, emptyPriceList, mergeSettings, sortPrices };
|