platform-calendar-seatmap 1.0.32 → 1.0.33

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,10 +1,10 @@
1
1
  import { FC } from 'react';
2
2
  import '@wix/design-system/styles.global.css';
3
3
  import { T_SeatMap, T_Ticket } from 'platform-calendar-helpers';
4
- import 'assets/styles/global.css';
5
- import { actions } from 'components/actionsHandler/ActionsHandler';
6
- import { T_ActionHandlersState } from 'store/reducers/actionHandlers/types';
7
- import { T_Mode } from 'helpers/types/commons';
4
+ import "../../assets/styles/global.css";
5
+ import { actions } from "../actionsHandler/ActionsHandler";
6
+ import { T_ActionHandlersState } from "../../store/reducers/actionHandlers/types";
7
+ import { T_Mode } from "../../helpers/types/commons";
8
8
  type T_Props = {
9
9
  tickets: T_Ticket[];
10
10
  seatMap: T_SeatMap | null;
@@ -1,7 +1,7 @@
1
1
  import { T_Element_Table } from 'platform-calendar-helpers';
2
2
  import { FC } from 'react';
3
- import { selectSelectedSeatsObj } from 'store/reducers/seatMap/selectors';
4
- import { selectTicketIds } from 'store/reducers/main/selectors';
3
+ import { selectSelectedSeatsObj } from "../../../../store/reducers/seatMap/selectors";
4
+ import { selectTicketIds } from "../../../../store/reducers/main/selectors";
5
5
  type T_Props = {
6
6
  table: T_Element_Table;
7
7
  selectedSeatsObj: ReturnType<typeof selectSelectedSeatsObj>;
@@ -1,7 +1,7 @@
1
1
  import { T_Element_Table } from 'platform-calendar-helpers';
2
2
  import { FC } from 'react';
3
- import { selectSelectedSeatsObj } from 'store/reducers/seatMap/selectors';
4
- import { selectTicketIds } from 'store/reducers/main/selectors';
3
+ import { selectSelectedSeatsObj } from "../../../../store/reducers/seatMap/selectors";
4
+ import { selectTicketIds } from "../../../../store/reducers/main/selectors";
5
5
  type T_Props = {
6
6
  table: T_Element_Table;
7
7
  selectedSeatsObj: ReturnType<typeof selectSelectedSeatsObj>;
@@ -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 { selectTicketIds } from "../../store/reducers/main/selectors";
4
4
  type T_Props = {
5
5
  seat: T_Seat;
6
6
  selected: boolean;
@@ -1,4 +1,4 @@
1
- import { MODES } from 'helpers/constants/commons';
1
+ import { MODES } from "../constants/commons";
2
2
  type RecursivePartial<T> = {
3
3
  [P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object ? RecursivePartial<T[P]> : T[P];
4
4
  };
@@ -1,4 +1,4 @@
1
- import { T_RootState } from 'store/store';
1
+ import { T_RootState } from "../../store";
2
2
  declare const selectChangeHandler: (state: T_RootState) => (edited: boolean, seatMap: import("platform-calendar-helpers").T_SeatMap) => void;
3
3
  declare const selectSelectHandler: (state: T_RootState) => (seats: (import("platform-calendar-helpers").T_Seat & {
4
4
  elementId: import("platform-calendar-helpers").T_Element["id"];
@@ -1,4 +1,4 @@
1
- import { T_Mode } from 'helpers/types/commons';
1
+ import { T_Mode } from "../../../helpers/types/commons";
2
2
  import { T_Ticket } from 'platform-calendar-helpers';
3
3
  import { T_SetElementToDelete, T_SetHasChanges, T_SetInitialized, T_SetIsDraggingScene, T_SetMode, T_SetScale, T_SetTickets } from './types';
4
4
  declare const setScale: (scale: number) => T_SetScale;
@@ -1,6 +1,6 @@
1
- import { T_Mode } from 'helpers/types/commons';
1
+ import { T_Mode } from "../../../helpers/types/commons";
2
2
  import { T_Ticket } from 'platform-calendar-helpers';
3
- import { T_RootState } from 'store/store';
3
+ import { T_RootState } from "../../store";
4
4
  import { T_MainState } from './types';
5
5
  declare const selectInitialized: (state: T_RootState) => boolean;
6
6
  declare const selectScale: (state: T_RootState) => number;
@@ -1,6 +1,6 @@
1
- import { T_Mode } from 'helpers/types/commons';
1
+ import { T_Mode } from "../../../helpers/types/commons";
2
2
  import { T_Element, T_ElementType, T_Ticket } from 'platform-calendar-helpers';
3
- import { T_AddElement, T_DeleteElement, T_EditElement, T_EditSeats, T_SetElementPosition, T_SetSeatMapName } from 'store/reducers/seatMap/types';
3
+ import { T_AddElement, T_DeleteElement, T_EditElement, T_EditSeats, T_SetElementPosition, T_SetSeatMapName } from "../seatMap/types";
4
4
  import { SET_ELEMENT_TO_DELETE, SET_HAS_CHANGES, SET_INITIALIZED, SET_IS_DRAGGING_SCENE, SET_MODE, SET_SCALE, SET_TICKETS } from './actionTypes';
5
5
  type T_MainState = {
6
6
  initialized: boolean;
@@ -1,5 +1,5 @@
1
1
  import { T_Element, T_ElementType, T_Seat, T_SeatMap } from 'platform-calendar-helpers';
2
- import { T_RootState } from 'store/store';
2
+ import { T_RootState } from "../../store";
3
3
  declare const selectSeatMap: (state: T_RootState) => T_SeatMap;
4
4
  declare const selectSeatMapName: (state: T_RootState) => T_SeatMap["name"];
5
5
  declare const selectSelectedElement: ((state: T_RootState) => T_Element) & {
@@ -1,4 +1,4 @@
1
- import { RecursivePartial } from 'helpers/types/commons';
1
+ import { RecursivePartial } from "../../../helpers/types/commons";
2
2
  import { T_Element, T_ElementType, T_Seat, T_SeatMap } from 'platform-calendar-helpers';
3
3
  import { ADD_ELEMENT, DELETE_ELEMENT, EDIT_ELEMENT, EDIT_SEATS, SET_ELEMENT_POSITION, SET_SEAT_MAP, SET_SEAT_MAP_NAME } from './actionTypes';
4
4
  type T_SeatMapsState = T_SeatMap;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "platform-calendar-seatmap",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
4
4
  "description": "Powerful and customizable calendar package",
5
5
  "author": {
6
6
  "name": "Arman Azaryan"
@@ -14,14 +14,17 @@
14
14
  "deploy": "npm i && npm run build && npm publish"
15
15
  },
16
16
  "devDependencies": {
17
- "@babel/core": "^7.24.7",
17
+ "@babel/core": "^7.26.0",
18
+ "@babel/preset-env": "^7.26.0",
19
+ "@babel/preset-react": "^7.26.3",
18
20
  "@redux-devtools/extension": "^3.3.0",
19
21
  "@svgr/webpack": "^8.1.0",
20
22
  "@types/node": "^20.14.8",
21
23
  "@types/react": "^18.3.3",
22
24
  "@types/react-dom": "^18.3.0",
23
25
  "@types/uuid": "^10.0.0",
24
- "babel-loader": "^9.1.3",
26
+ "babel-loader": "^9.2.1",
27
+ "babel-plugin-module-resolver": "^5.0.2",
25
28
  "css-loader": "~6.6.0",
26
29
  "dotenv-webpack": "^8.1.0",
27
30
  "html-webpack-plugin": "^5.6.0",
@@ -29,6 +32,8 @@
29
32
  "rimraf": "^5.0.7",
30
33
  "style-loader": "~3.3.1",
31
34
  "ts-loader": "^9.5.1",
35
+ "ts-transform-paths": "^3.0.0",
36
+ "tsconfig-paths-webpack-plugin": "^4.2.0",
32
37
  "typescript": "^5.5.2",
33
38
  "webpack": "^5.92.1",
34
39
  "webpack-cli": "^5.1.4",
package/tsconfig.json CHANGED
@@ -25,7 +25,8 @@
25
25
  "hooks/*": ["src/hooks/*"],
26
26
  "lib/*": ["src/lib/*"],
27
27
  "store/*": ["src/store/*"]
28
- }
28
+ },
29
+ "plugins": [{ "transform": "ts-transform-paths" }]
29
30
  },
30
31
  "include": ["src", "./custom.d.ts"],
31
32
  "exclude": ["dist"]