@seatsio/seatsio-types 2.4.2 → 2.5.1

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 +14 -9
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -27,11 +27,11 @@ export interface CommonConfigOptions {
27
27
  */
28
28
  divId?: string;
29
29
  }
30
- interface WithEvents {
30
+ export interface WithEvents {
31
31
  event?: string;
32
32
  events?: string[];
33
33
  }
34
- interface WithEvent {
34
+ export interface WithEvent {
35
35
  event: string;
36
36
  }
37
37
  type Session = 'continue' | 'manual' | 'none' | 'start';
@@ -278,7 +278,7 @@ export interface ChartRendererConfigOptions extends DeprecatedConfigProperties,
278
278
  channels?: string[];
279
279
  }
280
280
  export type ExtractedEventManagerProps = Pick<ChartRendererConfigOptions, 'colors' | 'colorScheme' | 'extraConfig' | 'fitTo' | 'objectColor' | 'showFullScreenButton' | 'style' | 'stylePreset' | 'tooltipInfo' | 'themePreset' | 'themeColors'>;
281
- interface BaseEventManagerConfigOptions extends CommonConfigOptions, ExtractedEventManagerProps, EventManagerCallbacks {
281
+ export interface BaseEventManagerConfigOptions extends CommonConfigOptions, ExtractedEventManagerProps, EventManagerCallbacks {
282
282
  mode: EventManagerMode;
283
283
  /**
284
284
  * The secret key of a workspace.
@@ -329,24 +329,24 @@ interface BaseEventManagerConfigOptions extends CommonConfigOptions, ExtractedEv
329
329
  useChannelColors?: boolean;
330
330
  };
331
331
  }
332
- interface EventManagerManageObjectStatusesModeConfigOptions extends BaseEventManagerConfigOptions, WithEvents {
332
+ export interface EventManagerManageObjectStatusesModeConfigOptions extends BaseEventManagerConfigOptions, WithEvents {
333
333
  mode: 'manageObjectStatuses';
334
334
  session?: Session;
335
335
  }
336
- interface EventManagerManageChannelsModeConfigOptions extends BaseEventManagerConfigOptions, WithEvent {
336
+ export interface EventManagerManageChannelsModeConfigOptions extends BaseEventManagerConfigOptions, WithEvent {
337
337
  mode: 'manageChannels';
338
338
  manageChannelsList?: boolean;
339
339
  unavailableObjectsSelectable?: boolean;
340
340
  }
341
- interface EventManagerManageCategoriesModeConfigOptions extends BaseEventManagerConfigOptions, WithEvent {
341
+ export interface EventManagerManageCategoriesModeConfigOptions extends BaseEventManagerConfigOptions, WithEvent {
342
342
  mode: 'manageCategories';
343
343
  unavailableObjectsSelectable?: boolean;
344
344
  }
345
- interface EventManagerFilterSectionsModeConfigOptions extends BaseEventManagerConfigOptions, WithEvent {
345
+ export interface EventManagerFilterSectionsModeConfigOptions extends BaseEventManagerConfigOptions, WithEvent {
346
346
  mode: 'filterSections';
347
347
  onFilteredSectionChange: (sectionLabels: string[]) => {};
348
348
  }
349
- interface EventManagerSelectModeConfigOptions extends BaseEventManagerConfigOptions, WithEvents {
349
+ export interface EventManagerSelectModeConfigOptions extends BaseEventManagerConfigOptions, WithEvents {
350
350
  mode: 'select';
351
351
  maxSelectedObjects?: SelectionLimiter;
352
352
  numberOfPlacesToSelect?: number;
@@ -357,7 +357,7 @@ interface EventManagerSelectModeConfigOptions extends BaseEventManagerConfigOpti
357
357
  unavailableObjectsSelectable?: boolean;
358
358
  selectableObjects?: string[];
359
359
  }
360
- interface EventManagerStaticModeConfigOptions extends BaseEventManagerConfigOptions, WithEvents {
360
+ export interface EventManagerStaticModeConfigOptions extends BaseEventManagerConfigOptions, WithEvents {
361
361
  mode: 'static';
362
362
  onObjectMouseOver?: (object: SelectableObjectProps) => void;
363
363
  onObjectMouseOut?: (object: SelectableObjectProps) => void;
@@ -592,6 +592,11 @@ export type CategoryFilter = {
592
592
  * @default false
593
593
  */
594
594
  zoomOnSelect?: boolean;
595
+ /**
596
+ * Sort categories by price, or use the order that's defined on the chart
597
+ * @default price
598
+ */
599
+ sortBy?: 'price' | 'none';
595
600
  };
596
601
  export type DeprecatedConfigProperties = {
597
602
  /**
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": "2.4.2",
4
+ "version": "2.5.1",
5
5
  "license": "MIT",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [