platform-calendar-seatmap 1.0.0

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 (58) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +26 -0
  3. package/custom.d.ts +8 -0
  4. package/dist/95e22bc3998dc0647dea.svg +192 -0
  5. package/dist/components/app/App.d.ts +5 -0
  6. package/dist/components/background/Background.d.ts +3 -0
  7. package/dist/components/deleteModal/DeleteModal.d.ts +4 -0
  8. package/dist/components/draggableElementTitle/DraggableElementTitle.d.ts +12 -0
  9. package/dist/components/elementSelector/ElementSelector.d.ts +3 -0
  10. package/dist/components/elementSelector/dropdown/Dropdown.d.ts +7 -0
  11. package/dist/components/elementSelector/dropdown/sections/objects/Objects.d.ts +3 -0
  12. package/dist/components/elementSelector/dropdown/sections/seatEditor/SeatEditor.d.ts +3 -0
  13. package/dist/components/elementSelector/dropdown/sections/seatingGroup/SeatingGroup.d.ts +3 -0
  14. package/dist/components/elementSelector/dropdown/sections/settings/Settings.d.ts +3 -0
  15. package/dist/components/elementSelector/dropdown/sections/standingArea/StandingArea.d.ts +3 -0
  16. package/dist/components/elementSelector/dropdown/sections/tables/Tables.d.ts +3 -0
  17. package/dist/components/elementSelector/dropdown/sections/text/Text.d.ts +3 -0
  18. package/dist/components/elementWrapper/ElementWrapper.d.ts +9 -0
  19. package/dist/components/elements/object/Object.d.ts +7 -0
  20. package/dist/components/elements/seatingGroup/SeatingGroup.d.ts +7 -0
  21. package/dist/components/elements/standingArea/StandingArea.d.ts +7 -0
  22. package/dist/components/elements/table/Table.d.ts +7 -0
  23. package/dist/components/elements/table/round/Round.d.ts +7 -0
  24. package/dist/components/elements/table/square/Square.d.ts +7 -0
  25. package/dist/components/elements/text/Text.d.ts +7 -0
  26. package/dist/components/mouseSeatSelector/MouseSeatSelector.d.ts +10 -0
  27. package/dist/components/resizer/Resizer.d.ts +7 -0
  28. package/dist/components/rotate/Rotate.d.ts +6 -0
  29. package/dist/components/sceneContainer/SceneContainer.d.ts +3 -0
  30. package/dist/components/seat/Seat.d.ts +12 -0
  31. package/dist/helpers/constants/seatMap.d.ts +11 -0
  32. package/dist/helpers/functions/commons.d.ts +7 -0
  33. package/dist/helpers/functions/seat.d.ts +7 -0
  34. package/dist/helpers/types/seatMap.d.ts +79 -0
  35. package/dist/hooks/useScaleTracker.d.ts +2 -0
  36. package/dist/index.d.ts +1 -0
  37. package/dist/index.html +1 -0
  38. package/dist/index.js +2 -0
  39. package/dist/index.js.LICENSE.txt +63 -0
  40. package/dist/store/reducers/elementSelector/actionCreators.d.ts +10 -0
  41. package/dist/store/reducers/elementSelector/actionTypes.d.ts +8 -0
  42. package/dist/store/reducers/elementSelector/reducer.d.ts +3 -0
  43. package/dist/store/reducers/elementSelector/selectors.d.ts +9 -0
  44. package/dist/store/reducers/elementSelector/types.d.ts +60 -0
  45. package/dist/store/reducers/main/actionCreators.d.ts +5 -0
  46. package/dist/store/reducers/main/actionTypes.d.ts +4 -0
  47. package/dist/store/reducers/main/reducer.d.ts +3 -0
  48. package/dist/store/reducers/main/selectors.d.ts +6 -0
  49. package/dist/store/reducers/main/types.d.ts +33 -0
  50. package/dist/store/reducers/rootReducer.d.ts +10 -0
  51. package/dist/store/reducers/seatMap/actionCreators.d.ts +7 -0
  52. package/dist/store/reducers/seatMap/actionTypes.d.ts +5 -0
  53. package/dist/store/reducers/seatMap/reducer.d.ts +3 -0
  54. package/dist/store/reducers/seatMap/selectors.d.ts +4 -0
  55. package/dist/store/reducers/seatMap/types.d.ts +33 -0
  56. package/dist/store/store.d.ts +8 -0
  57. package/package.json +45 -0
  58. package/tsconfig.json +23 -0
@@ -0,0 +1,63 @@
1
+ /*!
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */
6
+
7
+ /*!
8
+ Copyright (c) 2015 Jed Watson.
9
+ Based on code that is Copyright 2013-2015, Facebook, Inc.
10
+ All rights reserved.
11
+ */
12
+
13
+ /*!
14
+ * Adapted from jQuery UI core
15
+ *
16
+ * http://jqueryui.com
17
+ *
18
+ * Copyright 2014 jQuery Foundation and other contributors
19
+ * Released under the MIT license.
20
+ * http://jquery.org/license
21
+ *
22
+ * http://api.jqueryui.com/category/ui-core/
23
+ */
24
+
25
+ /**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */
34
+
35
+ /**
36
+ * @license React
37
+ * react-jsx-runtime.production.min.js
38
+ *
39
+ * Copyright (c) Facebook, Inc. and its affiliates.
40
+ *
41
+ * This source code is licensed under the MIT license found in the
42
+ * LICENSE file in the root directory of this source tree.
43
+ */
44
+
45
+ /**
46
+ * @license React
47
+ * scheduler.production.min.js
48
+ *
49
+ * Copyright (c) Facebook, Inc. and its affiliates.
50
+ *
51
+ * This source code is licensed under the MIT license found in the
52
+ * LICENSE file in the root directory of this source tree.
53
+ */
54
+
55
+ /**
56
+ * @license React
57
+ * use-sync-external-store-with-selector.production.min.js
58
+ *
59
+ * Copyright (c) Facebook, Inc. and its affiliates.
60
+ *
61
+ * This source code is licensed under the MIT license found in the
62
+ * LICENSE file in the root directory of this source tree.
63
+ */
@@ -0,0 +1,10 @@
1
+ import { T_Element_Object, T_Element_SeatingGroup, T_Element_StandingArea, T_Element_Table, T_Element_Text } from "../../../helpers/types/seatMap";
2
+ import { T_ElementSelectorState, T_SetSelected, T_SetSelectorActiveELement, T_SetSelectorElementObject, T_SetSelectorElementSeatingGroup, T_SetSelectorElementStandingArea, T_SetSelectorElementTable, T_SetSelectorElementText } from "./types";
3
+ declare const setSelectorActiveElement: (active: T_ElementSelectorState["active"]) => T_SetSelectorActiveELement;
4
+ declare const setSelectorElementText: (text: Partial<T_Element_Text>) => T_SetSelectorElementText;
5
+ declare const setSelectorElementObject: (object: Partial<T_Element_Object>) => T_SetSelectorElementObject;
6
+ declare const setSelectorElementStandingArea: (standingArea: Partial<T_Element_StandingArea>) => T_SetSelectorElementStandingArea;
7
+ declare const setSelectorElementSeatingGroup: (seatingGroup: Partial<T_Element_SeatingGroup>) => T_SetSelectorElementSeatingGroup;
8
+ declare const setSelectorElementTable: (table: Partial<T_Element_Table>) => T_SetSelectorElementTable;
9
+ declare const setSelected: (payload: T_SetSelected["payload"]) => T_SetSelected;
10
+ export { setSelectorActiveElement, setSelectorElementText, setSelectorElementObject, setSelectorElementStandingArea, setSelectorElementSeatingGroup, setSelectorElementTable, setSelected, };
@@ -0,0 +1,8 @@
1
+ declare const SET_SELECTOR_ACTIVE_ELEMENT = "SEAT_MAPS/SET_SELECTOR_ACTIVE_ELEMENT";
2
+ declare const SET_SELECTOR_ELEMENT_TEXT = "SEAT_MAPS/SET_SELECTOR_ELEMENT_TEXT";
3
+ declare const SET_SELECTOR_ELEMENT_OBJECT = "SEAT_MAPS/SET_SELECTOR_ELEMENT_OBJECT";
4
+ declare const SET_SELECTOR_ELEMENT_STANDING_AREA = "SEAT_MAPS/SET_SELECTOR_ELEMENT_STANDING_AREA";
5
+ declare const SET_SELECTOR_ELEMENT_SEATING_GROUP = "SEAT_MAPS/SET_SELECTOR_ELEMENT_SEATING_GROUP";
6
+ declare const SET_SELECTOR_ELEMENT_TABLE = "SEAT_MAPS/SET_SELECTOR_ELEMENT_TABLE";
7
+ declare const SET_SELECTED = "SEAT_MAPS/SET_SELECTED";
8
+ export { SET_SELECTOR_ACTIVE_ELEMENT, SET_SELECTOR_ELEMENT_TEXT, SET_SELECTOR_ELEMENT_OBJECT, SET_SELECTOR_ELEMENT_STANDING_AREA, SET_SELECTOR_ELEMENT_SEATING_GROUP, SET_SELECTOR_ELEMENT_TABLE, SET_SELECTED, };
@@ -0,0 +1,3 @@
1
+ import { T_ElementSelectorState, T_SeatMapsReducerAction } from "./types";
2
+ declare const elementSelectorReducer: (state: T_ElementSelectorState, { type, payload }: T_SeatMapsReducerAction) => T_ElementSelectorState;
3
+ export { elementSelectorReducer };
@@ -0,0 +1,9 @@
1
+ import { T_ElementType, T_Element_Object, T_Element_SeatingGroup, T_Element_StandingArea, T_Element_Table, T_Element_Text } from "../../../helpers/types/seatMap";
2
+ import { T_RootState } from "../../store";
3
+ declare const selectSelectorActiveElement: (state: T_RootState) => T_ElementType | "settings" | "seatEditor";
4
+ declare const selectSelectorElementText: (state: T_RootState) => T_Element_Text;
5
+ declare const selectSelectorElementObject: (state: T_RootState) => T_Element_Object;
6
+ declare const selectSelectorElementStandingArea: (state: T_RootState) => T_Element_StandingArea;
7
+ declare const selectSelectorElementSeatingGroup: (state: T_RootState) => T_Element_SeatingGroup;
8
+ declare const selectSelectorElementTable: (state: T_RootState) => T_Element_Table;
9
+ export { selectSelectorActiveElement, selectSelectorElementText, selectSelectorElementObject, selectSelectorElementStandingArea, selectSelectorElementSeatingGroup, selectSelectorElementTable, };
@@ -0,0 +1,60 @@
1
+ import { SEAT_MAP_ELEMENTS } from "../../../helpers/constants/seatMap";
2
+ import { T_Element, T_ElementType, T_Element_Object, T_Element_SeatingGroup, T_Element_StandingArea, T_Element_Table, T_Element_Text, T_Seat } from "../../../helpers/types/seatMap";
3
+ import { SET_SELECTED, SET_SELECTOR_ACTIVE_ELEMENT, SET_SELECTOR_ELEMENT_OBJECT, SET_SELECTOR_ELEMENT_SEATING_GROUP, SET_SELECTOR_ELEMENT_STANDING_AREA, SET_SELECTOR_ELEMENT_TABLE, SET_SELECTOR_ELEMENT_TEXT } from "./actionTypes";
4
+ type T_ElementSelectorState = {
5
+ active: T_ElementType | "settings" | "seatEditor" | null;
6
+ elements: {
7
+ [SEAT_MAP_ELEMENTS.seatingGroup]: T_Element_SeatingGroup;
8
+ [SEAT_MAP_ELEMENTS.standingArea]: T_Element_StandingArea;
9
+ [SEAT_MAP_ELEMENTS.tables]: T_Element_Table;
10
+ [SEAT_MAP_ELEMENTS.objects]: T_Element_Object;
11
+ [SEAT_MAP_ELEMENTS.text]: T_Element_Text;
12
+ };
13
+ selected: {
14
+ elementType: typeof SEAT_MAP_ELEMENTS.tables | typeof SEAT_MAP_ELEMENTS.seatingGroup;
15
+ elementId: T_Element["id"];
16
+ seats: T_Seat["id"][];
17
+ };
18
+ };
19
+ type T_SetSelectorActiveELement = {
20
+ type: typeof SET_SELECTOR_ACTIVE_ELEMENT;
21
+ payload: {
22
+ active: T_ElementSelectorState["active"];
23
+ };
24
+ };
25
+ type T_SetSelectorElementText = {
26
+ type: typeof SET_SELECTOR_ELEMENT_TEXT;
27
+ payload: {
28
+ text: Partial<T_Element_Text>;
29
+ };
30
+ };
31
+ type T_SetSelectorElementObject = {
32
+ type: typeof SET_SELECTOR_ELEMENT_OBJECT;
33
+ payload: {
34
+ object: Partial<T_Element_Object>;
35
+ };
36
+ };
37
+ type T_SetSelectorElementStandingArea = {
38
+ type: typeof SET_SELECTOR_ELEMENT_STANDING_AREA;
39
+ payload: {
40
+ standingArea: Partial<T_Element_StandingArea>;
41
+ };
42
+ };
43
+ type T_SetSelectorElementSeatingGroup = {
44
+ type: typeof SET_SELECTOR_ELEMENT_SEATING_GROUP;
45
+ payload: {
46
+ seatingGroup: Partial<T_Element_SeatingGroup>;
47
+ };
48
+ };
49
+ type T_SetSelectorElementTable = {
50
+ type: typeof SET_SELECTOR_ELEMENT_TABLE;
51
+ payload: {
52
+ table: Partial<T_Element_Table>;
53
+ };
54
+ };
55
+ type T_SetSelected = {
56
+ type: typeof SET_SELECTED;
57
+ payload: Partial<T_ElementSelectorState["selected"]>;
58
+ };
59
+ type T_SeatMapsReducerAction = T_SetSelectorActiveELement | T_SetSelectorElementText | T_SetSelectorElementObject | T_SetSelectorElementStandingArea | T_SetSelectorElementSeatingGroup | T_SetSelectorElementTable | T_SetSelected;
60
+ export type { T_SeatMapsReducerAction, T_SetSelectorActiveELement, T_ElementSelectorState, T_SetSelectorElementText, T_SetSelectorElementObject, T_SetSelectorElementStandingArea, T_SetSelectorElementSeatingGroup, T_SetSelectorElementTable, T_SetSelected, };
@@ -0,0 +1,5 @@
1
+ import { T_SetElementToDelete, T_SetIsDraggingScene, T_SetScale } from "./types";
2
+ declare const setScale: (scale: number) => T_SetScale;
3
+ declare const setIsDraggingScene: (isDraggingScene: boolean) => T_SetIsDraggingScene;
4
+ declare const setElementToDelete: (elementToDelete: T_SetElementToDelete["payload"]["elementToDelete"]) => T_SetElementToDelete;
5
+ export { setScale, setIsDraggingScene, setElementToDelete };
@@ -0,0 +1,4 @@
1
+ declare const SET_SCALE = "MAIN/SET_SCALE";
2
+ declare const SET_IS_DRAGGING_SCENE = "MAIN/SET_IS_DRAGGING_SCENE";
3
+ declare const SET_ELEMENT_TO_DELETE = "MAIN/SET_ELEMENT_TO_DELETE";
4
+ export { SET_SCALE, SET_IS_DRAGGING_SCENE, SET_ELEMENT_TO_DELETE };
@@ -0,0 +1,3 @@
1
+ import { T_MainReducerAction, T_MainState } from "./types";
2
+ declare const mainReducer: (state: T_MainState, { type, payload }: T_MainReducerAction) => T_MainState;
3
+ export { mainReducer };
@@ -0,0 +1,6 @@
1
+ import { T_RootState } from "../../store";
2
+ import { T_MainState } from "./types";
3
+ declare const selectScale: (state: T_RootState) => number;
4
+ declare const selectIsDraggingScene: (state: T_RootState) => boolean;
5
+ declare const selectElementToDelete: (state: T_RootState) => T_MainState["elementToDelete"];
6
+ export { selectScale, selectIsDraggingScene, selectElementToDelete };
@@ -0,0 +1,33 @@
1
+ import { T_Ticket } from "platform-calendar-helpers";
2
+ import { T_Element, T_ElementType } from "../../../helpers/types/seatMap";
3
+ import { T_DeleteElement } from "../seatMap/types";
4
+ import { SET_ELEMENT_TO_DELETE, SET_IS_DRAGGING_SCENE, SET_SCALE } from "./actionTypes";
5
+ type T_MainState = {
6
+ scale: number;
7
+ isDraggingScene: boolean;
8
+ elementToDelete: {
9
+ id: T_Element["id"];
10
+ type: T_ElementType;
11
+ } | null;
12
+ tickets: T_Ticket[];
13
+ };
14
+ type T_SetScale = {
15
+ type: typeof SET_SCALE;
16
+ payload: {
17
+ scale: number;
18
+ };
19
+ };
20
+ type T_SetIsDraggingScene = {
21
+ type: typeof SET_IS_DRAGGING_SCENE;
22
+ payload: {
23
+ isDraggingScene: boolean;
24
+ };
25
+ };
26
+ type T_SetElementToDelete = {
27
+ type: typeof SET_ELEMENT_TO_DELETE;
28
+ payload: {
29
+ elementToDelete: T_MainState["elementToDelete"];
30
+ };
31
+ };
32
+ type T_MainReducerAction = T_SetScale | T_SetIsDraggingScene | T_SetElementToDelete | T_DeleteElement;
33
+ export type { T_MainState, T_SetScale, T_MainReducerAction, T_SetIsDraggingScene, T_SetElementToDelete, };
@@ -0,0 +1,10 @@
1
+ declare const rootReducer: import("redux").Reducer<{
2
+ seatMap: import("../../helpers/types/seatMap").T_SeatMap;
3
+ main: import("./main/types").T_MainState;
4
+ elementSelector: import("./elementSelector/types").T_ElementSelectorState;
5
+ }, import("./seatMap/types").T_SetSeatMaps | import("./seatMap/types").T_AddElement | import("./seatMap/types").T_DeleteElement | import("./seatMap/types").T_SetElementPosition | import("./main/types").T_SetScale | import("./main/types").T_SetIsDraggingScene | import("./main/types").T_SetElementToDelete | import("./elementSelector/types").T_SetSelectorActiveELement | import("./elementSelector/types").T_SetSelectorElementText | import("./elementSelector/types").T_SetSelectorElementObject | import("./elementSelector/types").T_SetSelectorElementStandingArea | import("./elementSelector/types").T_SetSelectorElementSeatingGroup | import("./elementSelector/types").T_SetSelectorElementTable | import("./elementSelector/types").T_SetSelected, Partial<{
6
+ seatMap: import("../../helpers/types/seatMap").T_SeatMap;
7
+ main: import("./main/types").T_MainState;
8
+ elementSelector: import("./elementSelector/types").T_ElementSelectorState;
9
+ }>>;
10
+ export { rootReducer };
@@ -0,0 +1,7 @@
1
+ import { T_SeatMap } from "../../../helpers/types/seatMap";
2
+ import { T_AddElement, T_DeleteElement, T_SetElementPosition, T_SetSeatMaps } from "./types";
3
+ declare const setSeatMaps: (seatMaps: T_SeatMap[]) => T_SetSeatMaps;
4
+ declare const addElement: (payload: T_AddElement["payload"]) => T_AddElement;
5
+ declare const deleteElement: (payload: T_DeleteElement["payload"]) => T_DeleteElement;
6
+ declare const setElementPosition: (payload: T_SetElementPosition["payload"]) => T_SetElementPosition;
7
+ export { setSeatMaps, addElement, deleteElement, setElementPosition };
@@ -0,0 +1,5 @@
1
+ declare const SET_SEAT_MAPS = "SEAT_MAPS/SET_SEAT_MAPS";
2
+ declare const ADD_ELEMENT = "SEAT_MAPS/ADD_ELEMENT";
3
+ declare const DELETE_ELEMENT = "SEAT_MAPS/DELETE_ELEMENT";
4
+ declare const SET_ELEMENT_POSITION = "SEAT_MAPS/SET_ELEMENT_POSITION";
5
+ export { SET_SEAT_MAPS, ADD_ELEMENT, DELETE_ELEMENT, SET_ELEMENT_POSITION };
@@ -0,0 +1,3 @@
1
+ import { T_SeatMapsReducerAction, T_SeatMapsState } from "./types";
2
+ declare const seatMapsReducer: (state: import("../../../helpers/types/seatMap").T_SeatMap, { type, payload }: T_SeatMapsReducerAction) => T_SeatMapsState;
3
+ export { seatMapsReducer };
@@ -0,0 +1,4 @@
1
+ import { T_SeatMap } from "../../../helpers/types/seatMap";
2
+ import { T_RootState } from "../../store";
3
+ declare const selectSeatMap: (state: T_RootState) => T_SeatMap;
4
+ export { selectSeatMap };
@@ -0,0 +1,33 @@
1
+ import { T_Element, T_ElementType, T_SeatMap } from "../../../helpers/types/seatMap";
2
+ import { ADD_ELEMENT, DELETE_ELEMENT, SET_ELEMENT_POSITION, SET_SEAT_MAPS } from "./actionTypes";
3
+ type T_SeatMapsState = T_SeatMap;
4
+ type T_SetSeatMaps = {
5
+ type: typeof SET_SEAT_MAPS;
6
+ payload: {
7
+ seatMaps: T_SeatMap[];
8
+ };
9
+ };
10
+ type T_AddElement = {
11
+ type: typeof ADD_ELEMENT;
12
+ payload: {
13
+ element: T_Element;
14
+ type: T_ElementType;
15
+ };
16
+ };
17
+ type T_DeleteElement = {
18
+ type: typeof DELETE_ELEMENT;
19
+ payload: {
20
+ elementId: T_Element["id"];
21
+ type: T_ElementType;
22
+ };
23
+ };
24
+ type T_SetElementPosition = {
25
+ type: typeof SET_ELEMENT_POSITION;
26
+ payload: {
27
+ elementId: T_Element["id"];
28
+ elementType: T_ElementType;
29
+ position: T_Element["position"];
30
+ };
31
+ };
32
+ type T_SeatMapsReducerAction = T_SetSeatMaps | T_AddElement | T_DeleteElement | T_SetElementPosition;
33
+ export type { T_SeatMapsReducerAction, T_SetSeatMaps, T_SeatMapsState, T_AddElement, T_DeleteElement, T_SetElementPosition, };
@@ -0,0 +1,8 @@
1
+ declare const store: import("redux").Store<Partial<{
2
+ seatMap: import("../helpers/types/seatMap").T_SeatMap;
3
+ main: import("./reducers/main/types").T_MainState;
4
+ elementSelector: import("./reducers/elementSelector/types").T_ElementSelectorState;
5
+ }>, import("./reducers/seatMap/types").T_SetSeatMaps | import("./reducers/seatMap/types").T_AddElement | import("./reducers/seatMap/types").T_DeleteElement | import("./reducers/seatMap/types").T_SetElementPosition | import("./reducers/main/types").T_SetScale | import("./reducers/main/types").T_SetIsDraggingScene | import("./reducers/main/types").T_SetElementToDelete | import("./reducers/elementSelector/types").T_SetSelectorActiveELement | import("./reducers/elementSelector/types").T_SetSelectorElementText | import("./reducers/elementSelector/types").T_SetSelectorElementObject | import("./reducers/elementSelector/types").T_SetSelectorElementStandingArea | import("./reducers/elementSelector/types").T_SetSelectorElementSeatingGroup | import("./reducers/elementSelector/types").T_SetSelectorElementTable | import("./reducers/elementSelector/types").T_SetSelected, unknown>;
6
+ type T_RootState = ReturnType<typeof store.getState>;
7
+ type T_Dispatch = typeof store.dispatch;
8
+ export { store, type T_RootState, type T_Dispatch };
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "platform-calendar-seatmap",
3
+ "version": "1.0.0",
4
+ "description": "Powerful and customizable calendar package",
5
+ "author": {
6
+ "name": "Arman Azaryan"
7
+ },
8
+ "main": "dist/index.js",
9
+ "types": "dist/index.d.ts",
10
+ "license": "MIT",
11
+ "scripts": {
12
+ "build": "rimraf ./dist && webpack --env production",
13
+ "start": "webpack serve --env development --hot --mode development",
14
+ "deploy": "npm i && npm run build && npm publish"
15
+ },
16
+ "devDependencies": {
17
+ "@babel/core": "^7.24.7",
18
+ "@redux-devtools/extension": "^3.3.0",
19
+ "@svgr/webpack": "^8.1.0",
20
+ "@types/node": "^20.14.8",
21
+ "@types/react": "^18.3.3",
22
+ "@types/react-dom": "^18.3.0",
23
+ "babel-loader": "^9.1.3",
24
+ "css-loader": "~6.6.0",
25
+ "dotenv-webpack": "^8.1.0",
26
+ "html-webpack-plugin": "^5.6.0",
27
+ "prop-types": "^15.8.1",
28
+ "rimraf": "^5.0.7",
29
+ "style-loader": "~3.3.1",
30
+ "ts-loader": "^9.5.1",
31
+ "typescript": "^5.5.2",
32
+ "webpack": "^5.92.1",
33
+ "webpack-cli": "^5.1.4",
34
+ "webpack-dev-server": "^5.0.4"
35
+ },
36
+ "dependencies": {
37
+ "@wix/design-system": "^1.121.0",
38
+ "@wix/wix-ui-icons-common": "^3.39.0",
39
+ "platform-calendar-helpers": "^1.3.10",
40
+ "react": "^18.3.1",
41
+ "react-dom": "^18.3.1",
42
+ "react-redux": "^9.1.2",
43
+ "redux": "^5.0.1"
44
+ }
45
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "compilerOptions": {
3
+ "outDir": "dist",
4
+ "declaration": true,
5
+ "target": "ES2015",
6
+ "lib": ["dom", "dom.iterable", "esnext"],
7
+ "forceConsistentCasingInFileNames": true,
8
+ "module": "esnext",
9
+ "moduleResolution": "node",
10
+ "esModuleInterop": true,
11
+ "jsx":"react-jsx",
12
+ "allowSyntheticDefaultImports": true,
13
+ "types":["node"],
14
+ "noImplicitAny": true,
15
+ "sourceMap": true,
16
+ // "noUnusedLocals": true,
17
+ "noUnusedParameters": true,
18
+ "noFallthroughCasesInSwitch": true,
19
+ "allowJs": true
20
+ },
21
+ "include": ["src", "./custom.d.ts"],
22
+ "exclude": ["dist"]
23
+ }