@rytass/wms-map-react-components 0.1.2 → 0.1.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.
- package/index.cjs.js +3 -3
- package/package.json +5 -6
package/index.cjs.js
CHANGED
|
@@ -1948,7 +1948,7 @@ const ContextMenu = ({ visible, x, y, onClose, onCopyPaste, onDelete, arrangeAct
|
|
|
1948
1948
|
|
|
1949
1949
|
var styles$5 = {"imageNode":"image-node-module_imageNode__RA0Qo","selected":"image-node-module_selected__XB4vQ","image":"image-node-module_image__GnlBw","nonSelectable":"image-node-module_nonSelectable__GF-N6","imageContainer":"image-node-module_imageContainer__Bs4MJ","imageLabel":"image-node-module_imageLabel__BwBbB","customResizeHandle":"image-node-module_customResizeHandle__wBp7h"};
|
|
1950
1950
|
|
|
1951
|
-
const ImageNode = ({ data, selected, id, editMode, viewMode, showBackground = true })=>{
|
|
1951
|
+
const ImageNode$1 = ({ data, selected, id, editMode, viewMode, showBackground = true })=>{
|
|
1952
1952
|
const { setNodes } = react$1.useReactFlow();
|
|
1953
1953
|
const updateNodeInternals = react$1.useUpdateNodeInternals();
|
|
1954
1954
|
const { imageUrl, width = DEFAULT_IMAGE_WIDTH, height = DEFAULT_IMAGE_HEIGHT, fileName, originalWidth = width, originalHeight = height } = data;
|
|
@@ -2168,7 +2168,7 @@ const ImageNode = ({ data, selected, id, editMode, viewMode, showBackground = tr
|
|
|
2168
2168
|
]
|
|
2169
2169
|
});
|
|
2170
2170
|
};
|
|
2171
|
-
var ImageNode
|
|
2171
|
+
var ImageNode = /*#__PURE__*/ React.memo(ImageNode$1);
|
|
2172
2172
|
|
|
2173
2173
|
const useTextEditing = ({ id, label, isEditable, onTextEditComplete })=>{
|
|
2174
2174
|
const { setNodes } = react$1.useReactFlow();
|
|
@@ -3692,7 +3692,7 @@ const ReactFlowCanvas = ({ nodes, edges, onNodesChange, onEdgesChange, onConnect
|
|
|
3692
3692
|
onCreatePath
|
|
3693
3693
|
});
|
|
3694
3694
|
const nodeTypes = React.useMemo(()=>({
|
|
3695
|
-
imageNode: (props)=>/*#__PURE__*/ jsxRuntime.jsx(ImageNode
|
|
3695
|
+
imageNode: (props)=>/*#__PURE__*/ jsxRuntime.jsx(ImageNode, {
|
|
3696
3696
|
...props,
|
|
3697
3697
|
editMode: editMode,
|
|
3698
3698
|
viewMode: viewMode,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rytass/wms-map-react-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Rytass Warehouse Management System Map React Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rytass",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"url": "https://github.com/Rytass/Utils/issues"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@xyflow/react": "^12.
|
|
22
|
+
"@xyflow/react": "^12.10.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@mezzanine-ui/react": "*",
|
|
@@ -29,10 +29,9 @@
|
|
|
29
29
|
"react-hook-form": "*"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@storybook/addon-
|
|
33
|
-
"@storybook/react": "^
|
|
34
|
-
"
|
|
35
|
-
"storybook": "^9.1.3"
|
|
32
|
+
"@storybook/addon-docs": "^10.1.4",
|
|
33
|
+
"@storybook/react-vite": "^10.1.4",
|
|
34
|
+
"storybook": "^10.1.4"
|
|
36
35
|
},
|
|
37
36
|
"main": "./index.cjs.js",
|
|
38
37
|
"module": "./index.js",
|