seat-editor 3.5.52 → 3.5.54

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.
@@ -10,7 +10,15 @@ const defaultValue = [
10
10
  ];
11
11
  const keyExtra = ["uuid_table", "capacity", "tags"];
12
12
  export const TYPES_OBJECT = {
13
- text: [...defaultValue, "text", "fontColor"],
13
+ text: [
14
+ "labels",
15
+ "opacity",
16
+ "seatCount",
17
+ "seatPositions",
18
+ "src",
19
+ "openSpace",
20
+ "seatFill",
21
+ ],
14
22
  table: [
15
23
  ...defaultValue,
16
24
  ...keyExtra,
@@ -24,5 +24,5 @@ export declare function isSameAllByKey<T>(arr: T[] | undefined, key: keyof T): b
24
24
  export declare function getValueIfSame<T>(arr: T[], key: keyof T): number | any[] | T[keyof T];
25
25
  export declare function getAllValuesKey<T>(arr: T[], key: keyof T): T[keyof T][];
26
26
  export declare function showAllValueNotSame(arr: any[], key: string): string;
27
- export declare const sanitizeData: (data: TableProps) => _.Dictionary<any>;
27
+ export declare const sanitizeData: (data: TableProps) => _.Omit<TableProps, string>;
28
28
  export {};
@@ -155,7 +155,7 @@ export const sanitizeData = (data) => {
155
155
  const shape = data === null || data === void 0 ? void 0 : data.shape;
156
156
  switch (shape) {
157
157
  case "text":
158
- return _.pickBy(data, TYPES_OBJECT.text);
158
+ return _.omit(data, TYPES_OBJECT.text);
159
159
  default:
160
160
  return data;
161
161
  }
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "seat-editor",
3
- "version": "3.5.52",
3
+ "version": "3.5.54",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
8
- "dist",
9
- "dist/seat-editor.css"
8
+ "dist"
10
9
  ],
11
10
  "scripts": {
12
11
  "dev": "next dev",