platform-calendar-seatmap 1.0.37 → 1.0.39

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/README.md CHANGED
@@ -23,4 +23,14 @@ const App = () => {
23
23
  export default App;
24
24
  ```
25
25
 
26
+ How to start project locally:
27
+
28
+ npm i in root directory
29
+
30
+ npm start in root directory
31
+
32
+ npm i in example folder
33
+
34
+ npm start in example folder
35
+
26
36
  Full documentation is on the way.
@@ -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 };
@@ -3,6 +3,7 @@ type T_Props = {
3
3
  rotateContainer: MutableRefObject<HTMLElement | null>;
4
4
  onRotateEnd: (angle: number) => void;
5
5
  initialAngle?: number;
6
+ dataHook?: string;
6
7
  };
7
8
  declare const Rotate: FC<PropsWithChildren<T_Props>>;
8
9
  export { Rotate };
@@ -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 };
@@ -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 };