seat-editor 3.4.2 → 3.4.3

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.
@@ -41,7 +41,7 @@ export default function NewBoard() {
41
41
  // properties: item?.properties?.
42
42
  // }
43
43
  // })
44
- return (_jsx(_Fragment, { children: _jsxs("div", { className: "w-full h-screen flex flex-col relative justify-center", children: [_jsx("div", { className: "w-full h-[1000px] bg-white border-r border-gray-200" }), _jsx("div", { className: "flex-1 h-full", children: _jsx(SeatEditor, { componentProps: initialValue, viewOnly: viewOnly, dragOnly: true, deleteAutorized: {
44
+ return (_jsx(_Fragment, { children: _jsxs("div", { className: "w-full h-screen flex flex-col relative justify-center", children: [_jsx("div", { className: "w-full h-[1000px] bg-white border-r border-gray-200" }), _jsx("div", { className: "flex-1 h-full", children: _jsx(SeatEditor, { componentProps: initialValue, viewOnly: true, dragOnly: true, deleteAutorized: {
45
45
  component: true,
46
46
  extraComponent: true,
47
47
  }, action: handleUploadImage, mappingKey: "properties", onCurrentStateChange: (setState) => {
@@ -51,7 +51,7 @@ export default function NewBoard() {
51
51
  {viewOnly ? "Edit Mode ddd" : "View Mode"}
52
52
  </button> */}
53
53
  <div className="flex-1 h-full">
54
- <SeatEditor componentProps={initialValue} viewOnly={viewOnly} dragOnly={true} deleteAutorized={{
54
+ <SeatEditor componentProps={initialValue} viewOnly={true} dragOnly={true} deleteAutorized={{
55
55
  component: true,
56
56
  extraComponent: true,
57
57
  }} action={handleUploadImage} mappingKey="properties" onCurrentStateChange={(setState) => {
@@ -146,11 +146,11 @@ const TableEditor = (props) => {
146
146
  // },
147
147
  // })
148
148
  // }
149
- if (loading) {
150
- setTimeout(() => {
151
- dispatch({ type: "panel/setLoading", payload: false });
152
- }, 1000);
153
- }
149
+ // if (loading) {
150
+ setTimeout(() => {
151
+ dispatch({ type: "panel/setLoading", payload: false });
152
+ }, 1000);
153
+ // }
154
154
  }, [
155
155
  componentProps,
156
156
  extraComponentProps,
@@ -145,11 +145,11 @@ const TableEditor = (props) => {
145
145
  // },
146
146
  // })
147
147
  // }
148
- if (loading) {
149
- setTimeout(() => {
150
- dispatch({ type: "panel/setLoading", payload: false });
151
- }, 1000);
152
- }
148
+ // if (loading) {
149
+ setTimeout(() => {
150
+ dispatch({ type: "panel/setLoading", payload: false });
151
+ }, 1000);
152
+ // }
153
153
  }, [
154
154
  componentProps,
155
155
  extraComponentProps,
@@ -89,11 +89,9 @@ const LayerView = (props) => {
89
89
  payload: defaultBoundingBox,
90
90
  });
91
91
  // }
92
- if (loading) {
93
- setTimeout(() => {
94
- dispatch({ type: "panel/setLoading", payload: false });
95
- }, 1000);
96
- }
92
+ setTimeout(() => {
93
+ dispatch({ type: "panel/setLoading", payload: false });
94
+ }, 1000);
97
95
  }, [
98
96
  componentProps,
99
97
  extraComponentProps,
@@ -88,11 +88,9 @@ const LayerView = (props) => {
88
88
  payload: defaultBoundingBox,
89
89
  });
90
90
  // }
91
- if (loading) {
92
- setTimeout(() => {
93
- dispatch({ type: "panel/setLoading", payload: false });
94
- }, 1000);
95
- }
91
+ setTimeout(() => {
92
+ dispatch({ type: "panel/setLoading", payload: false });
93
+ }, 1000);
96
94
  }, [
97
95
  componentProps,
98
96
  extraComponentProps,
@@ -90,11 +90,11 @@ const LayerView = (props) => {
90
90
  payload: defaultBoundingBox,
91
91
  });
92
92
  // }
93
- if (loading) {
94
- setTimeout(() => {
95
- dispatch({ type: "panel/setLoading", payload: false });
96
- }, 1000);
97
- }
93
+ // if (loading) {
94
+ setTimeout(() => {
95
+ dispatch({ type: "panel/setLoading", payload: false });
96
+ }, 1000);
97
+ // }
98
98
  }, [
99
99
  componentProps,
100
100
  extraComponentProps,
@@ -89,11 +89,11 @@ const LayerView = (props) => {
89
89
  payload: defaultBoundingBox,
90
90
  });
91
91
  // }
92
- if (loading) {
93
- setTimeout(() => {
94
- dispatch({ type: "panel/setLoading", payload: false });
95
- }, 1000);
96
- }
92
+ // if (loading) {
93
+ setTimeout(() => {
94
+ dispatch({ type: "panel/setLoading", payload: false });
95
+ }, 1000);
96
+ // }
97
97
  }, [
98
98
  componentProps,
99
99
  extraComponentProps,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seat-editor",
3
- "version": "3.4.2",
3
+ "version": "3.4.3",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",