platform-calendar-seatmap 1.0.45 → 1.0.46

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.
@@ -1,16 +1,17 @@
1
1
  import { FC } from 'react';
2
2
  import '@wix/design-system/styles.global.css';
3
- import { T_Seat, T_SeatMap, T_Ticket } from 'platform-calendar-helpers';
3
+ import { T_SeatMap, T_Ticket } from 'platform-calendar-helpers';
4
4
  import "../../assets/styles/global.css";
5
5
  import { actions } from "../actionsHandler/ActionsHandler";
6
6
  import { T_ActionHandlersState } from "../../store/reducers/actionHandlers/types";
7
7
  import { T_Mode } from "../../helpers/types/commons";
8
+ import { T_MainState } from "../../store/reducers/main/types";
8
9
  type T_Props = {
9
10
  tickets: T_Ticket[];
10
11
  seatMap: T_SeatMap | null;
11
12
  actionsRef: React.ForwardedRef<actions>;
12
13
  mode?: T_Mode;
13
- soldSeats?: T_Seat['id'][];
14
+ soldSeats?: T_MainState['soldSeats'];
14
15
  } & Partial<T_ActionHandlersState>;
15
16
  declare const App: FC<T_Props>;
16
17
  export { App };
@@ -1,11 +1,11 @@
1
1
  import { T_Element_Table, T_Seat } from 'platform-calendar-helpers';
2
2
  import { FC } from 'react';
3
3
  import { selectSelectedSeatsObj } from "../../../../store/reducers/seatMap/selectors";
4
- import { selectTicketIds } from "../../../../store/reducers/main/selectors";
4
+ import { selectTicketByIds } from "../../../../store/reducers/main/selectors";
5
5
  type T_Props = {
6
6
  table: T_Element_Table;
7
7
  selectedSeatsObj: ReturnType<typeof selectSelectedSeatsObj>;
8
- ticketIds: ReturnType<typeof selectTicketIds>;
8
+ ticketIds: ReturnType<typeof selectTicketByIds>['ticketIds'];
9
9
  isViewOnly: boolean;
10
10
  selectSeatForMobile: (seat: T_Seat) => void;
11
11
  };
@@ -1,11 +1,11 @@
1
1
  import { T_Element_Table, T_Seat } from 'platform-calendar-helpers';
2
2
  import { FC } from 'react';
3
3
  import { selectSelectedSeatsObj } from "../../../../store/reducers/seatMap/selectors";
4
- import { selectTicketIds } from "../../../../store/reducers/main/selectors";
4
+ import { selectTicketByIds } from "../../../../store/reducers/main/selectors";
5
5
  type T_Props = {
6
6
  table: T_Element_Table;
7
7
  selectedSeatsObj: ReturnType<typeof selectSelectedSeatsObj>;
8
- ticketIds: ReturnType<typeof selectTicketIds>;
8
+ ticketIds: ReturnType<typeof selectTicketByIds>['ticketIds'];
9
9
  isViewOnly: boolean;
10
10
  selectSeatForMobile: (seat: T_Seat) => void;
11
11
  };
@@ -1,6 +1,6 @@
1
1
  import { T_Seat } from 'platform-calendar-helpers';
2
2
  import { FC } from 'react';
3
- import { selectTicketIds } from "../../store/reducers/main/selectors";
3
+ import { selectTicketByIds } from "../../store/reducers/main/selectors";
4
4
  type T_Props = {
5
5
  seat: T_Seat;
6
6
  selected: boolean;
@@ -10,7 +10,7 @@ type T_Props = {
10
10
  top?: number;
11
11
  left?: number;
12
12
  };
13
- ticketIds: ReturnType<typeof selectTicketIds>;
13
+ ticketIds: ReturnType<typeof selectTicketByIds>['ticketIds'];
14
14
  isViewOnly: boolean;
15
15
  select: (seat: T_Seat) => void;
16
16
  };
@@ -1,7 +1,7 @@
1
1
  import { T_Seat, T_SeatMap } from 'platform-calendar-helpers';
2
2
  declare const removeFakeElementsFromSeatMap: (_seatMap: T_SeatMap) => T_SeatMap;
3
3
  declare const addFakeElementsToSeatMap: (_seatMap: T_SeatMap) => T_SeatMap;
4
- declare const disableSoldSeats: (seatMap: T_SeatMap, _soldSeatIds: T_Seat["id"][]) => T_SeatMap;
4
+ declare const disableSoldSeats: (seatMap: T_SeatMap, _soldSeats: T_Seat[]) => T_SeatMap;
5
5
  declare const getElementInitialPosition: (sceneCoords: {
6
6
  x: number;
7
7
  y: number;