seat-editor 3.5.0 → 3.5.1

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.
@@ -37,7 +37,7 @@ export declare function getAnchorByHandle(handle: ResizeHandle, box: {
37
37
  ax: number;
38
38
  ay: number;
39
39
  };
40
- import { TableProps } from "@/dto/table";
40
+ import { TableProps } from "../../dto/table";
41
41
  interface ResizeSeatSquare {
42
42
  seatsPositions: {
43
43
  top: number;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useAppDispatch, useAppSelector } from "@/hooks/use-redux";
3
+ import { useAppDispatch, useAppSelector } from "../../hooks/use-redux";
4
4
  import { Button, ColorPicker, Flex, Form, InputNumber } from "antd";
5
5
  const PolygonTool = () => {
6
6
  const dispatch = useAppDispatch();
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { useAppDispatch, useAppSelector } from "@/hooks/use-redux";
2
+ import { useAppDispatch, useAppSelector } from "../../hooks/use-redux";
3
3
  import { Button, ColorPicker, Flex, Form, InputNumber } from "antd";
4
4
  const PolygonTool = () => {
5
5
  const dispatch = useAppDispatch();
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useAppDispatch, useAppSelector } from "@/hooks/use-redux";
3
+ import { useAppDispatch, useAppSelector } from "../../hooks/use-redux";
4
4
  import { Button, ColorPicker, Flex, Form, Input, InputNumber } from "antd";
5
5
  const TextTool = () => {
6
6
  const dispatch = useAppDispatch();
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { useAppDispatch, useAppSelector } from "@/hooks/use-redux";
2
+ import { useAppDispatch, useAppSelector } from "../../hooks/use-redux";
3
3
  import { Button, ColorPicker, Flex, Form, Input, InputNumber } from "antd";
4
4
  const TextTool = () => {
5
5
  const dispatch = useAppDispatch();
@@ -1,5 +1,5 @@
1
1
  import { EdgeType, NodeType } from "./utils";
2
- import { PropertiesProps } from "@/dto/table";
2
+ import { PropertiesProps } from "../../dto/table";
3
3
  import { TableMatchKey } from ".";
4
4
  export type UseConnectionGraphOptions = {
5
5
  svgRef: React.RefObject<SVGSVGElement>;
@@ -1,7 +1,7 @@
1
1
  // hooks/use-connection-graph.ts
2
2
  import { useCallback, useEffect, useRef, useState } from "react";
3
3
  import { defaultWaypoints, getRectEdge, snap, } from "./utils"; // sesuaikan path
4
- import { useAppSelector } from "@/hooks/use-redux";
4
+ import { useAppSelector } from "../../hooks/use-redux";
5
5
  export const useConnectionGraph = ({ svgRef, getNodeById, onEdgesChange, keyNode, mappingKey, tableMatchKey, statusKey, }) => {
6
6
  const components = useAppSelector((state) => state.board.components);
7
7
  const [selectedWaypoint, setSelectedWaypoint] = useState(null);
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { EdgeType, NodeType } from "./utils";
3
3
  import { DraggingAnchor } from "./connection-layer";
4
- import { PropertiesProps } from "@/dto/table";
4
+ import { PropertiesProps } from "../../dto/table";
5
5
  import { TableMatchKey } from ".";
6
6
  export type UseConnectionGraphOptions = {
7
7
  svgRef: React.RefObject<SVGSVGElement>;
@@ -1,7 +1,7 @@
1
1
  // use-connection-graph.ts
2
2
  import { useCallback, useEffect, useRef, useState } from "react";
3
3
  import { snap } from "./utils";
4
- import { useAppSelector } from "@/hooks/use-redux";
4
+ import { useAppSelector } from "../../hooks/use-redux";
5
5
  export const useConnectionGraph = ({ svgRef, getNodeById, onEdgesChange, keyNode, mappingKey, tableMatchKey, statusKey, }) => {
6
6
  const components = useAppSelector((state) => state.board.components);
7
7
  const [edges, setEdges] = useState([]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seat-editor",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",