platform-calendar-seatmap 1.0.38 → 1.0.40

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,6 +1,6 @@
1
1
  import { T_Seat, T_SeatMap } from 'platform-calendar-helpers';
2
2
  type actions = {
3
- save: () => T_SeatMap;
3
+ save: () => T_SeatMap | false;
4
4
  cancel: () => void;
5
5
  updateSeatMap: (seatMap: T_SeatMap) => void;
6
6
  unselectSeat: (seatId: T_Seat['id']) => void;
@@ -1,6 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  import '@wix/design-system/styles.global.css';
3
- import { T_SeatMap, T_Ticket } from 'platform-calendar-helpers';
3
+ import { T_Seat, 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";
@@ -10,6 +10,7 @@ type T_Props = {
10
10
  seatMap: T_SeatMap | null;
11
11
  actionsRef: React.ForwardedRef<actions>;
12
12
  mode?: T_Mode;
13
+ soldSeats?: T_Seat['id'][];
13
14
  } & Partial<T_ActionHandlersState>;
14
15
  declare const App: FC<T_Props>;
15
16
  export { App };
@@ -1,4 +1,4 @@
1
- import { T_Element_Table } from 'platform-calendar-helpers';
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
4
  import { selectTicketIds } from "../../../../store/reducers/main/selectors";
@@ -7,6 +7,7 @@ type T_Props = {
7
7
  selectedSeatsObj: ReturnType<typeof selectSelectedSeatsObj>;
8
8
  ticketIds: ReturnType<typeof selectTicketIds>;
9
9
  isViewOnly: boolean;
10
+ selectSeatForMobile: (seat: T_Seat) => void;
10
11
  };
11
12
  declare const Round: FC<T_Props>;
12
13
  export { Round };
@@ -1,4 +1,4 @@
1
- import { T_Element_Table } from 'platform-calendar-helpers';
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
4
  import { selectTicketIds } from "../../../../store/reducers/main/selectors";
@@ -7,6 +7,7 @@ type T_Props = {
7
7
  selectedSeatsObj: ReturnType<typeof selectSelectedSeatsObj>;
8
8
  ticketIds: ReturnType<typeof selectTicketIds>;
9
9
  isViewOnly: boolean;
10
+ selectSeatForMobile: (seat: T_Seat) => void;
10
11
  };
11
12
  declare const Square: FC<T_Props>;
12
13
  export { Square };
@@ -12,6 +12,7 @@ type T_Props = {
12
12
  };
13
13
  ticketIds: ReturnType<typeof selectTicketIds>;
14
14
  isViewOnly: boolean;
15
+ select: (seat: T_Seat) => void;
15
16
  };
16
17
  declare const Seat: FC<T_Props>;
17
18
  export { Seat };
@@ -5,5 +5,6 @@ declare const IS_MOBILE: boolean;
5
5
  declare const MODES: {
6
6
  readonly edit: "edit";
7
7
  readonly view: "view";
8
+ readonly microPreview: "microPreview";
8
9
  };
9
10
  export { ALPHABET, CURVE_UPDATED_EVENT_NAME, STRETCH_UPDATED_EVENT_NAME, MODES, IS_MOBILE };
@@ -1,6 +1,7 @@
1
- import { T_SeatMap } from 'platform-calendar-helpers';
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
5
  declare const getElementInitialPosition: (sceneCoords: {
5
6
  x: number;
6
7
  y: number;
@@ -8,4 +9,4 @@ declare const getElementInitialPosition: (sceneCoords: {
8
9
  top: number;
9
10
  left: number;
10
11
  };
11
- export { removeFakeElementsFromSeatMap, addFakeElementsToSeatMap, getElementInitialPosition };
12
+ export { removeFakeElementsFromSeatMap, addFakeElementsToSeatMap, getElementInitialPosition, disableSoldSeats };