seat-editor 3.3.32 → 3.3.34

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.
@@ -1575,6 +1575,7 @@ const BoardTemplate = ({ refs, loadingRender }) => {
1575
1575
  "table-seat-circle",
1576
1576
  "table-seat-square",
1577
1577
  "bounding-box",
1578
+ ""
1578
1579
  ].includes(activeTool),
1579
1580
  }}
1580
1581
  // centerZoomedOut={true}
@@ -13,6 +13,7 @@ const TableEditor = (props) => {
13
13
  const { componentProps, extraComponentProps, onCurrentStateChange, dragOnly, mappingKey, viewOnly, deleteAutorized, refs, loadingRender, } = props;
14
14
  const { components, extraComponents, backgroundColor, boundingBox } = useAppSelector((state) => state.board);
15
15
  const { loading } = useAppSelector((state) => state.panel);
16
+ const { isPreview } = useAppSelector((state) => state.tool);
16
17
  const dispatch = useAppDispatch();
17
18
  const refsBoard = useRef(null);
18
19
  useImperativeHandle(refs, () => {
@@ -73,10 +74,11 @@ const TableEditor = (props) => {
73
74
  useEffect(() => {
74
75
  if (!isEqual(components, convertComponentProps()) ||
75
76
  !isEqual(extraComponents, extraComponentProps) ||
76
- !isEqual(backgroundColor, props === null || props === void 0 ? void 0 : props.defaultBackground)) {
77
+ !isEqual(backgroundColor, props === null || props === void 0 ? void 0 : props.defaultBackground) ||
78
+ !isEqual(boundingBox, props === null || props === void 0 ? void 0 : props.defaultBoundingBox)) {
77
79
  onCurrentStateChange && onUpdateCurrentState();
78
80
  }
79
- }, [components, extraComponents, backgroundColor]);
81
+ }, [components, extraComponents, backgroundColor, boundingBox]);
80
82
  const convertComponentProps = () => {
81
83
  let mappingData = componentProps === null || componentProps === void 0 ? void 0 : componentProps.map((item) => {
82
84
  if (item && mappingKey && (item === null || item === void 0 ? void 0 : item[mappingKey])) {
@@ -163,7 +165,7 @@ const TableEditor = (props) => {
163
165
  {viewOnly ? (<div className="w-full h-full flex relative">
164
166
  <LayerView key={`${viewOnly}`} statusKey="status" loadingRender={props === null || props === void 0 ? void 0 : props.loadingRender}/>
165
167
  </div>) : (<div key={`${viewOnly}`} className="w-full h-full flex relative">
166
- {loading && (<div className="absolute z-10 top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 bg-opacity-50 bg-white w-full h-full flex items-center justify-center">
168
+ {(loading && !isPreview) && (<div className="absolute z-10 top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 bg-opacity-50 bg-white w-full h-full flex items-center justify-center">
167
169
  {(loadingRender === null || loadingRender === void 0 ? void 0 : loadingRender.element) || <Spin />}
168
170
  </div>)}
169
171
  <SideTool dragOnly={dragOnly} deleteAutorized={deleteAutorized}/>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seat-editor",
3
- "version": "3.3.32",
3
+ "version": "3.3.34",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",