@seatsio/seatsio-types 5.1.0 → 5.2.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +93 -3
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -73,8 +73,13 @@ export interface ChartRendererConfigOptions extends DeprecatedConfigProperties,
73
73
  mode?: ChartRendererMode;
74
74
  /**
75
75
  * Allows to toggle on or off some features of the cursor tooltip, displayed when hovering objects when using pointing devices like a mouse, or when tapping on an object on touch devices.
76
+ * @deprecated Use `objectPopover` instead.
76
77
  */
77
78
  objectTooltip?: ChartRendererObjectTooltip;
79
+ /**
80
+ * Allows to toggle on or off some features from the Object Popover, displayed when hovering objects when using pointing devices like a mouse, or when tapping on an object on touch devices.
81
+ */
82
+ objectPopover?: ChartRendererObjectPopover;
78
83
  /**
79
84
  * Seats supports two types of pricing: simple pricing and multi-level pricing. {@link https://docs.seats.io/docs/renderer/config-pricing See documentation}
80
85
  */
@@ -148,8 +153,13 @@ export interface ChartRendererConfigOptions extends DeprecatedConfigProperties,
148
153
  objectWithoutCategorySelectable?: boolean;
149
154
  /**
150
155
  * A function whose result will be displayed as extra information on the cursor tooltip. {@link https://docs.seats.io/docs/renderer/config-tooltipinfo See documentation}
156
+ * @deprecated Use `popoverInfo` instead.
151
157
  */
152
158
  tooltipInfo?: (object: SelectableObject) => string;
159
+ /**
160
+ * A function whose result will be displayed as extra information on the object popover. {@link https://docs.seats.io/docs/renderer/config-popoverInfo See documentation}
161
+ */
162
+ popoverInfo?: (object: SelectableObject) => string;
153
163
  /**
154
164
  * On mobile, when displaying a chart with sections, a tooltip is shown at the bottom of the screen with the section name and pricing.
155
165
  * You can hide this tooltip on mobile by passing `showActiveSectionTooltipOnMobile: false`.
@@ -159,11 +169,13 @@ export interface ChartRendererConfigOptions extends DeprecatedConfigProperties,
159
169
  /**
160
170
  * On mobile, a view from seat thumbnail is displayed on the top left of the screen. Tapping this image will expand the thumbnail. You can hide this thumbnail on mobile by passing `showViewFromYourSeatOnMobile: false`.
161
171
  * @default true
172
+ * @deprecated Does not have any effect.
162
173
  */
163
174
  showViewFromYourSeatOnMobile?: boolean;
164
175
  /**
165
176
  * On desktop, a view from seat is displayed inside the tooltip when hovering a seat. You can hide this picture on desktop by passing `showViewFromYourSeatOnDesktop: false`.
166
177
  * @default true
178
+ * @deprecated Does not have any effect.
167
179
  */
168
180
  showViewFromYourSeatOnDesktop?: boolean;
169
181
  /**
@@ -267,6 +279,7 @@ export interface ChartRendererConfigOptions extends DeprecatedConfigProperties,
267
279
  };
268
280
  /**
269
281
  * Sets the preset of styles to use for the seating chart user interface. {@link https://docs.seats.io/docs/renderer/stylepreset See documentation}
282
+ * @deprecated Does not have any effect.
270
283
  */
271
284
  stylePreset?: 'balance' | 'bubblegum' | 'flathead' | 'bezels' | 'leaf';
272
285
  /**
@@ -313,7 +326,7 @@ export interface ChartRendererConfigOptions extends DeprecatedConfigProperties,
313
326
  */
314
327
  hideSectionsNotForSale?: boolean;
315
328
  }
316
- export type ExtractedEventManagerProps = Pick<ChartRendererConfigOptions, 'colors' | 'colorScheme' | 'extraConfig' | 'fitTo' | 'objectColor' | 'showFullScreenButton' | 'style' | 'stylePreset' | 'tooltipInfo' | 'themePreset' | 'themeColors'>;
329
+ export type ExtractedEventManagerProps = Pick<ChartRendererConfigOptions, 'colors' | 'colorScheme' | 'extraConfig' | 'fitTo' | 'objectColor' | 'showFullScreenButton' | 'style' | 'stylePreset' | 'popoverInfo' | 'tooltipInfo' | 'themePreset' | 'themeColors'>;
317
330
  export interface BaseEventManagerConfigOptions extends CommonConfigOptions, ExtractedEventManagerProps, EventManagerCallbacks {
318
331
  mode: EventManagerMode;
319
332
  /**
@@ -349,6 +362,18 @@ export interface BaseEventManagerConfigOptions extends CommonConfigOptions, Extr
349
362
  */
350
363
  showTechnicalLabel?: boolean;
351
364
  };
365
+ objectPopover?: {
366
+ /**
367
+ * Show the orderId in the popover if present.
368
+ * @default true
369
+ */
370
+ showOrderId?: boolean;
371
+ /**
372
+ * Show the technical label, if one of the label components was overridden via the Displayed Label field in Designer.
373
+ * @default false
374
+ */
375
+ showTechnicalLabel?: boolean;
376
+ };
352
377
  viewSettingsDefaults?: {
353
378
  /**
354
379
  * @default false
@@ -409,6 +434,13 @@ export interface EventManagerSelectModeConfigOptions extends BaseEventManagerCon
409
434
  showChannel?: boolean;
410
435
  showActionHint?: boolean;
411
436
  };
437
+ objectPopover?: {
438
+ showOrderId?: boolean;
439
+ showTechnicalLabel?: boolean;
440
+ showLabel?: boolean;
441
+ showCategory?: boolean;
442
+ showChannel?: boolean;
443
+ };
412
444
  }
413
445
  export interface EventManagerStaticModeConfigOptions extends BaseEventManagerConfigOptions, WithEvents {
414
446
  mode: 'static';
@@ -577,11 +609,28 @@ export type HoldToken = {
577
609
  expiresInSeconds: number;
578
610
  };
579
611
  export type StyleOverride = {
580
- font?: 'Roboto' | 'Montserrat' | 'WorkSans' | 'NotoSansHK' | 'Lato' | 'NunitoSans';
612
+ font?: 'Inter' | 'Roboto' | 'Montserrat' | 'WorkSans' | 'NotoSansHK' | 'Lato' | 'NunitoSans';
613
+ cornerRadius?: 'round' | 'square';
614
+ buttonShape?: 'round' | 'square';
615
+ /**
616
+ * @deprecated
617
+ */
581
618
  fontWeight?: 'bolder' | 'minMax';
619
+ /**
620
+ * @deprecated
621
+ */
582
622
  borderRadius?: 'none' | 'max' | 'asymmetrical';
623
+ /**
624
+ * @deprecated
625
+ */
583
626
  border?: '3d' | 'thick';
627
+ /**
628
+ * @deprecated
629
+ */
584
630
  padding?: 'spacious';
631
+ /**
632
+ * @deprecated
633
+ */
585
634
  buttonFace: 'fillEnabled' | 'fillHighlightedOption';
586
635
  };
587
636
  export type ExtraConfig = Dict<any>;
@@ -643,6 +692,47 @@ export interface ChartRendererObjectTooltip {
643
692
  */
644
693
  confirmSelectionOnMobile?: boolean | 'auto';
645
694
  }
695
+ export interface ChartRendererObjectPopover {
696
+ /**
697
+ * If true, the amount of available seats of the section or general admission will be displayed.
698
+ * @default false
699
+ */
700
+ showAvailability?: boolean;
701
+ /**
702
+ * If true, the object's category color and name will be displayed.
703
+ * @default true
704
+ */
705
+ showCategory?: boolean;
706
+ /**
707
+ * If true, the section label, row label and/or seat label of the object will be visible. If false, no labeling will be shown.
708
+ * @default true
709
+ */
710
+ showLabel?: boolean;
711
+ /**
712
+ * If true, the price range of the object's category will be visible.
713
+ * @default true
714
+ */
715
+ showPricing?: boolean;
716
+ /**
717
+ * If true, a notice will be displayed on the popover if the object is unavailable.
718
+ * @default true
719
+ */
720
+ showUnavailableNotice?: boolean;
721
+ /**
722
+ * If true, a labels will be displayed in a hierarchy-based styling, improving readability. If false, labels will be displayed as flat text.
723
+ * @default true
724
+ */
725
+ stylizedLabel?: boolean;
726
+ /**
727
+ * Defines behavior when interacting with objects that don't have ticket types for pointing input devices (typically laptops, desktops) and touch input devices (typically phones, tablets)
728
+ * - If set to 'always', the popover will show a confirmation prompt when clicking or tapping an object with any kind of input device, instead of selecting them directly.
729
+ * - If set to 'touch', the popover will show a confirmation prompt when tapping an object on touch input devices, instead of selecting them directly. For pointing input devices it will still show on hover.
730
+ * - If set to 'never', the popover will only show on hover when using a pointing input device, but not show on touch input devices and instead select objects directly on tap.
731
+ * - If set to 'auto', it will behave just like 'touch', except that no popover will be shown on touch input devices when tapping on an object if the onObjectClicked parameter is passed in.
732
+ * @default 'auto'
733
+ */
734
+ confirmSelection?: 'auto' | 'always' | 'touch' | 'never';
735
+ }
646
736
  export type Language = 'ar' | 'be' | 'bg' | 'ca' | 'cs' | 'cy' | 'da' | 'de' | 'el' | 'en' | 'es' | 'et' | 'fa' | 'fi' | 'fr' | 'hr' | 'he' | 'hu' | 'it' | 'ja' | 'ku' | 'li' | 'lv' | 'no' | 'nl' | 'pl' | 'pt' | 'ro' | 'ru' | 'sk' | 'sl' | 'sr' | 'sv' | 'tr' | 'uk' | 'zh-Hans' | 'zh-Hant';
647
737
  export type CategoryFilter = {
648
738
  /**
@@ -676,7 +766,7 @@ export type DeprecatedConfigProperties = {
676
766
  */
677
767
  orphanSeats?: string;
678
768
  /**
679
- * @deprecated Use `tooltipInfo` instead. Read more at {@link https://docs.seats.io/docs/renderer-config-tooltipinfo}
769
+ * @deprecated Use `popoverInfo` instead.
680
770
  */
681
771
  customTooltipText?: boolean;
682
772
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@seatsio/seatsio-types",
3
3
  "description": "Type definitions for Seats.io",
4
- "version": "5.1.0",
4
+ "version": "5.2.0",
5
5
  "license": "MIT",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [