seat-editor 3.1.21 → 3.1.22

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.
@@ -21,7 +21,7 @@ const boardSlice = createSlice({
21
21
  state.components.push(action.payload);
22
22
  },
23
23
  removeComponent: (state, action) => {
24
- state.components = state.components.filter((component) => component.id !== action.payload.id);
24
+ state.components = state.components.filter((component) => (component === null || component === void 0 ? void 0 : component.id) !== action.payload.id);
25
25
  },
26
26
  removeExtraComponent: (state, action) => {
27
27
  state.extraComponents = state.extraComponents.filter((component) => component.id !== action.payload.id);
@@ -14,9 +14,11 @@ export type TableMatchEvent = {
14
14
  event: EventHandleType;
15
15
  properties: PropertiesProps;
16
16
  };
17
- export type ComponentProps<T = PropertiesProps> = T | {
18
- [K in string]: T;
19
- };
17
+ export type ComponentProps<T = undefined> = PropertiesProps | ({
18
+ [key: string]: PropertiesProps | string | number | boolean | null | undefined;
19
+ } & (T extends undefined ? {} : {
20
+ meta: T;
21
+ }));
20
22
  export type OnCurrentStateChange = ({ components, extraComponents, }: {
21
23
  components: ComponentProps[];
22
24
  extraComponents: ComponentProps[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seat-editor",
3
- "version": "3.1.21",
3
+ "version": "3.1.22",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",