@uipath/apollo-react 3.51.1 → 3.51.2
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/dist/canvas/components/BaseCanvas/BaseCanvas.cjs +0 -2
- package/dist/canvas/components/BaseCanvas/BaseCanvas.d.ts.map +1 -1
- package/dist/canvas/components/BaseCanvas/BaseCanvas.js +0 -2
- package/dist/canvas/components/TriggerNode/TriggerNode.stories.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/canvas/components/BaseCanvas/usePreventBackNavigation.cjs +0 -60
- package/dist/canvas/components/BaseCanvas/usePreventBackNavigation.d.ts +0 -2
- package/dist/canvas/components/BaseCanvas/usePreventBackNavigation.d.ts.map +0 -1
- package/dist/canvas/components/BaseCanvas/usePreventBackNavigation.js +0 -26
|
@@ -35,7 +35,6 @@ const external_BaseCanvas_hooks_cjs_namespaceObject = require("./BaseCanvas.hook
|
|
|
35
35
|
const external_CanvasBackground_cjs_namespaceObject = require("./CanvasBackground.cjs");
|
|
36
36
|
const external_CanvasProviders_cjs_namespaceObject = require("./CanvasProviders.cjs");
|
|
37
37
|
const external_PanShortcutTeachingUI_cjs_namespaceObject = require("./PanShortcutTeachingUI.cjs");
|
|
38
|
-
const external_usePreventBackNavigation_cjs_namespaceObject = require("./usePreventBackNavigation.cjs");
|
|
39
38
|
const BaseCanvasInnerComponent = (props)=>{
|
|
40
39
|
const { innerRef, fitViewOptions: fitViewOptionsProps, ...canvasProps } = props;
|
|
41
40
|
const fitViewOptions = fitViewOptionsProps ?? external_BaseCanvas_constants_cjs_namespaceObject.BASE_CANVAS_DEFAULTS.fitViewOptions;
|
|
@@ -45,7 +44,6 @@ const BaseCanvasInnerComponent = (props)=>{
|
|
|
45
44
|
const [reactFlowInstance, setReactFlowInstance] = (0, external_react_namespaceObject.useState)();
|
|
46
45
|
const { isReady } = (0, external_BaseCanvas_hooks_cjs_namespaceObject.useAutoLayout)(nodes, initialAutoLayout, fitViewOptions);
|
|
47
46
|
const { ensureNodesInView, ensureAllNodesInView, centerNode } = (0, external_BaseCanvas_hooks_cjs_namespaceObject.useEnsureNodesInView)();
|
|
48
|
-
(0, external_usePreventBackNavigation_cjs_namespaceObject.usePreventBackNavigation)();
|
|
49
47
|
(0, external_BaseCanvas_hooks_cjs_namespaceObject.useMaintainNodesInView)(maintainNodesInView, fitViewOptions);
|
|
50
48
|
(0, ToolbarActionContext_cjs_namespaceObject.useToolbarActionStore)(mode, onToolbarAction, breakpoints);
|
|
51
49
|
const handleInit = (0, external_react_namespaceObject.useCallback)((instance)=>{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseCanvas.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseCanvas/BaseCanvas.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAqB,MAAM,0CAA0C,CAAC;AAE9F,OAAO,EAIL,KAAK,YAAY,EAKlB,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseCanvas.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseCanvas/BaseCanvas.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAqB,MAAM,0CAA0C,CAAC;AAE9F,OAAO,EAIL,KAAK,YAAY,EAKlB,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAmMzE,eAAO,MAAM,UAAU,EAKjB,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAS,IAAI,GAAG,IAAI,EAC/D,KAAK,EAAE,eAAe,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAAG;IAC3C,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;CACpD,KACE,YAAY,CAAC"}
|
|
@@ -7,7 +7,6 @@ import { useAutoLayout, useEnsureNodesInView, useMaintainNodesInView } from "./B
|
|
|
7
7
|
import { CanvasBackground } from "./CanvasBackground.js";
|
|
8
8
|
import { CanvasProviders } from "./CanvasProviders.js";
|
|
9
9
|
import { PanShortcutTeachingUI } from "./PanShortcutTeachingUI.js";
|
|
10
|
-
import { usePreventBackNavigation } from "./usePreventBackNavigation.js";
|
|
11
10
|
const BaseCanvasInnerComponent = (props)=>{
|
|
12
11
|
const { innerRef, fitViewOptions: fitViewOptionsProps, ...canvasProps } = props;
|
|
13
12
|
const fitViewOptions = fitViewOptionsProps ?? BASE_CANVAS_DEFAULTS.fitViewOptions;
|
|
@@ -17,7 +16,6 @@ const BaseCanvasInnerComponent = (props)=>{
|
|
|
17
16
|
const [reactFlowInstance, setReactFlowInstance] = useState();
|
|
18
17
|
const { isReady } = useAutoLayout(nodes, initialAutoLayout, fitViewOptions);
|
|
19
18
|
const { ensureNodesInView, ensureAllNodesInView, centerNode } = useEnsureNodesInView();
|
|
20
|
-
usePreventBackNavigation();
|
|
21
19
|
useMaintainNodesInView(maintainNodesInView, fitViewOptions);
|
|
22
20
|
useToolbarActionStore(mode, onToolbarAction, breakpoints);
|
|
23
21
|
const handleInit = useCallback((instance)=>{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TriggerNode.stories.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/TriggerNode/TriggerNode.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAEV,IAAI,EAEJ,IAAI,EAEL,MAAM,0CAA0C,CAAC;AAsNlD,QAAA,MAAM,IAAI;;;
|
|
1
|
+
{"version":3,"file":"TriggerNode.stories.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/TriggerNode/TriggerNode.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAEV,IAAI,EAEJ,IAAI,EAEL,MAAM,0CAA0C,CAAC;AAsNlD,QAAA,MAAM,IAAI;;;WAyBkzE,CAAC;;yBArBjzE,GAAG;;;;CAaoB,CAAC;AAEpC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/apollo-react",
|
|
3
|
-
"version": "3.51.
|
|
3
|
+
"version": "3.51.2",
|
|
4
4
|
"description": "Apollo Design System - React component library with Material UI theming",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
"zod": "^4.3.5",
|
|
202
202
|
"zustand": "^5.0.9",
|
|
203
203
|
"@uipath/apollo-core": "5.7.1",
|
|
204
|
-
"@uipath/apollo-wind": "0.
|
|
204
|
+
"@uipath/apollo-wind": "0.13.0"
|
|
205
205
|
},
|
|
206
206
|
"devDependencies": {
|
|
207
207
|
"@lingui/cli": "^5.6.1",
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_require__ = {};
|
|
3
|
-
(()=>{
|
|
4
|
-
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: definition[key]
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
})();
|
|
11
|
-
(()=>{
|
|
12
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
-
})();
|
|
14
|
-
(()=>{
|
|
15
|
-
__webpack_require__.r = (exports1)=>{
|
|
16
|
-
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
-
value: 'Module'
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
-
value: true
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
})();
|
|
24
|
-
var __webpack_exports__ = {};
|
|
25
|
-
__webpack_require__.r(__webpack_exports__);
|
|
26
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
usePreventBackNavigation: ()=>usePreventBackNavigation
|
|
28
|
-
});
|
|
29
|
-
const external_react_namespaceObject = require("react");
|
|
30
|
-
function usePreventBackNavigation() {
|
|
31
|
-
(0, external_react_namespaceObject.useEffect)(()=>{
|
|
32
|
-
const preventBackNavigation = (e)=>{
|
|
33
|
-
if (2 === e.touches.length) e.preventDefault();
|
|
34
|
-
};
|
|
35
|
-
const preventWheel = (e)=>{
|
|
36
|
-
if (Math.abs(e.deltaX) > Math.abs(e.deltaY)) e.preventDefault();
|
|
37
|
-
};
|
|
38
|
-
document.addEventListener('touchstart', preventBackNavigation, {
|
|
39
|
-
passive: false
|
|
40
|
-
});
|
|
41
|
-
document.addEventListener('touchmove', preventBackNavigation, {
|
|
42
|
-
passive: false
|
|
43
|
-
});
|
|
44
|
-
document.addEventListener('wheel', preventWheel, {
|
|
45
|
-
passive: false
|
|
46
|
-
});
|
|
47
|
-
return ()=>{
|
|
48
|
-
document.removeEventListener('touchstart', preventBackNavigation);
|
|
49
|
-
document.removeEventListener('touchmove', preventBackNavigation);
|
|
50
|
-
document.removeEventListener('wheel', preventWheel);
|
|
51
|
-
};
|
|
52
|
-
}, []);
|
|
53
|
-
}
|
|
54
|
-
exports.usePreventBackNavigation = __webpack_exports__.usePreventBackNavigation;
|
|
55
|
-
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
56
|
-
"usePreventBackNavigation"
|
|
57
|
-
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
58
|
-
Object.defineProperty(exports, '__esModule', {
|
|
59
|
-
value: true
|
|
60
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePreventBackNavigation.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseCanvas/usePreventBackNavigation.ts"],"names":[],"mappings":"AAMA,wBAAgB,wBAAwB,SAyBvC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { useEffect } from "react";
|
|
2
|
-
function usePreventBackNavigation() {
|
|
3
|
-
useEffect(()=>{
|
|
4
|
-
const preventBackNavigation = (e)=>{
|
|
5
|
-
if (2 === e.touches.length) e.preventDefault();
|
|
6
|
-
};
|
|
7
|
-
const preventWheel = (e)=>{
|
|
8
|
-
if (Math.abs(e.deltaX) > Math.abs(e.deltaY)) e.preventDefault();
|
|
9
|
-
};
|
|
10
|
-
document.addEventListener('touchstart', preventBackNavigation, {
|
|
11
|
-
passive: false
|
|
12
|
-
});
|
|
13
|
-
document.addEventListener('touchmove', preventBackNavigation, {
|
|
14
|
-
passive: false
|
|
15
|
-
});
|
|
16
|
-
document.addEventListener('wheel', preventWheel, {
|
|
17
|
-
passive: false
|
|
18
|
-
});
|
|
19
|
-
return ()=>{
|
|
20
|
-
document.removeEventListener('touchstart', preventBackNavigation);
|
|
21
|
-
document.removeEventListener('touchmove', preventBackNavigation);
|
|
22
|
-
document.removeEventListener('wheel', preventWheel);
|
|
23
|
-
};
|
|
24
|
-
}, []);
|
|
25
|
-
}
|
|
26
|
-
export { usePreventBackNavigation };
|