@linkdlab/funcnodes_react_flow 0.1.6 → 0.2.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.
Files changed (122) hide show
  1. package/dist/css/style.css +41 -33
  2. package/dist/esm/index.esm.js +4685 -0
  3. package/dist/types/frontend/datarenderer/data_renderer_overlay.d.ts +7 -0
  4. package/dist/types/frontend/datarenderer/data_renderer_overlay.d.ts.map +1 -0
  5. package/dist/types/frontend/datarenderer/data_renderer_preview.d.ts +7 -0
  6. package/dist/types/frontend/datarenderer/data_renderer_preview.d.ts.map +1 -0
  7. package/dist/{frontend → types/frontend}/datarenderer/default_preview_renderer.d.ts +19 -15
  8. package/dist/types/frontend/datarenderer/default_preview_renderer.d.ts.map +1 -0
  9. package/dist/{frontend → types/frontend}/datarenderer/images.d.ts +15 -11
  10. package/dist/types/frontend/datarenderer/images.d.ts.map +1 -0
  11. package/dist/{frontend → types/frontend}/datarenderer/index.d.ts +17 -16
  12. package/dist/types/frontend/datarenderer/index.d.ts.map +1 -0
  13. package/dist/{frontend → types/frontend}/datarenderer/rendermappings.d.ts +123 -122
  14. package/dist/types/frontend/datarenderer/rendermappings.d.ts.map +1 -0
  15. package/dist/{frontend → types/frontend}/dialog.d.ts +19 -18
  16. package/dist/types/frontend/dialog.d.ts.map +1 -0
  17. package/dist/{frontend → types/frontend}/edge.d.ts +6 -5
  18. package/dist/types/frontend/edge.d.ts.map +1 -0
  19. package/dist/{frontend → types/frontend}/funcnodesreactflow/index.d.ts +7 -6
  20. package/dist/types/frontend/funcnodesreactflow/index.d.ts.map +1 -0
  21. package/dist/{frontend → types/frontend}/funcnodesreactflow/react_flow_layer.d.ts +6 -5
  22. package/dist/types/frontend/funcnodesreactflow/react_flow_layer.d.ts.map +1 -0
  23. package/dist/types/frontend/header/index.d.ts +6 -0
  24. package/dist/types/frontend/header/index.d.ts.map +1 -0
  25. package/dist/{frontend → types/frontend}/index.d.ts +4 -3
  26. package/dist/types/frontend/index.d.ts.map +1 -0
  27. package/dist/{frontend → types/frontend}/lib.d.ts +11 -10
  28. package/dist/types/frontend/lib.d.ts.map +1 -0
  29. package/dist/types/frontend/node/body_data_renderer.d.ts +12 -0
  30. package/dist/types/frontend/node/body_data_renderer.d.ts.map +1 -0
  31. package/dist/{frontend → types/frontend}/node/index.d.ts +3 -2
  32. package/dist/types/frontend/node/index.d.ts.map +1 -0
  33. package/dist/{frontend → types/frontend}/node/io/default_input_renderer.d.ts +12 -11
  34. package/dist/types/frontend/node/io/default_input_renderer.d.ts.map +1 -0
  35. package/dist/{frontend → types/frontend}/node/io/default_output_render.d.ts +7 -6
  36. package/dist/types/frontend/node/io/default_output_render.d.ts.map +1 -0
  37. package/dist/types/frontend/node/io/handle_renderer.d.ts +12 -0
  38. package/dist/types/frontend/node/io/handle_renderer.d.ts.map +1 -0
  39. package/dist/{frontend → types/frontend}/node/io/index.d.ts +4 -3
  40. package/dist/types/frontend/node/io/index.d.ts.map +1 -0
  41. package/dist/{frontend → types/frontend}/node/io/io.d.ts +17 -16
  42. package/dist/types/frontend/node/io/io.d.ts.map +1 -0
  43. package/dist/{frontend → types/frontend}/node/io/nodeinput.d.ts +7 -6
  44. package/dist/types/frontend/node/io/nodeinput.d.ts.map +1 -0
  45. package/dist/{frontend → types/frontend}/node/io/nodeoutput.d.ts +7 -6
  46. package/dist/types/frontend/node/io/nodeoutput.d.ts.map +1 -0
  47. package/dist/{frontend → types/frontend}/node/node.d.ts +21 -20
  48. package/dist/types/frontend/node/node.d.ts.map +1 -0
  49. package/dist/{frontend → types/frontend}/utils/colorpicker.d.ts +22 -21
  50. package/dist/types/frontend/utils/colorpicker.d.ts.map +1 -0
  51. package/dist/{frontend → types/frontend}/utils/jsondata.d.ts +7 -6
  52. package/dist/types/frontend/utils/jsondata.d.ts.map +1 -0
  53. package/dist/{frontend → types/frontend}/utils/select.d.ts +15 -14
  54. package/dist/types/frontend/utils/select.d.ts.map +1 -0
  55. package/dist/{frontend → types/frontend}/utils/table.d.ts +12 -11
  56. package/dist/types/frontend/utils/table.d.ts.map +1 -0
  57. package/dist/{funcnodes → types/funcnodes}/funcnodesworker.d.ts +88 -88
  58. package/dist/types/funcnodes/funcnodesworker.d.ts.map +1 -0
  59. package/dist/{funcnodes → types/funcnodes}/index.d.ts +5 -4
  60. package/dist/types/funcnodes/index.d.ts.map +1 -0
  61. package/dist/{funcnodes → types/funcnodes}/websocketworker.d.ts +28 -27
  62. package/dist/types/funcnodes/websocketworker.d.ts.map +1 -0
  63. package/dist/{funcnodes → types/funcnodes}/workermanager.d.ts +33 -32
  64. package/dist/types/funcnodes/workermanager.d.ts.map +1 -0
  65. package/dist/{index.d.ts → types/index.d.ts} +9 -7
  66. package/dist/types/index.d.ts.map +1 -0
  67. package/dist/types/plugin/index.d.ts +12 -0
  68. package/dist/types/plugin/index.d.ts.map +1 -0
  69. package/dist/{plugin → types/plugin}/rendenderer.d.ts +21 -20
  70. package/dist/types/plugin/rendenderer.d.ts.map +1 -0
  71. package/dist/{states → types/states}/edge.d.ts +8 -7
  72. package/dist/types/states/edge.d.ts.map +1 -0
  73. package/dist/{states → types/states}/edge.t.d.ts +17 -16
  74. package/dist/types/states/edge.t.d.ts.map +1 -0
  75. package/dist/{states → types/states}/fnrfzst.d.ts +11 -10
  76. package/dist/types/states/fnrfzst.d.ts.map +1 -0
  77. package/dist/{states → types/states}/fnrfzst.t.d.ts +115 -111
  78. package/dist/types/states/fnrfzst.t.d.ts.map +1 -0
  79. package/dist/{states → types/states}/index.d.ts +8 -7
  80. package/dist/types/states/index.d.ts.map +1 -0
  81. package/dist/{states → types/states}/lib.d.ts +4 -3
  82. package/dist/types/states/lib.d.ts.map +1 -0
  83. package/dist/{states → types/states}/lib.t.d.ts +39 -38
  84. package/dist/types/states/lib.t.d.ts.map +1 -0
  85. package/dist/{states → types/states}/node.d.ts +6 -5
  86. package/dist/types/states/node.d.ts.map +1 -0
  87. package/dist/{states → types/states}/node.t.d.ts +74 -73
  88. package/dist/types/states/node.t.d.ts.map +1 -0
  89. package/dist/{states → types/states}/nodeio.t.d.ts +68 -67
  90. package/dist/types/states/nodeio.t.d.ts.map +1 -0
  91. package/dist/{states → types/states}/nodespace.d.ts +4 -3
  92. package/dist/types/states/nodespace.d.ts.map +1 -0
  93. package/dist/{states → types/states}/nodespace.t.d.ts +17 -16
  94. package/dist/types/states/nodespace.t.d.ts.map +1 -0
  95. package/dist/{states → types/states}/reactflow.d.ts +9 -8
  96. package/dist/types/states/reactflow.d.ts.map +1 -0
  97. package/dist/{states → types/states}/reactflow.t.d.ts +12 -11
  98. package/dist/types/states/reactflow.t.d.ts.map +1 -0
  99. package/dist/types/{rendering.t.d.ts → types/rendering.t.d.ts} +11 -10
  100. package/dist/types/types/rendering.t.d.ts.map +1 -0
  101. package/dist/{utils → types/utils}/autolayout/force.d.ts +3 -2
  102. package/dist/types/utils/autolayout/force.d.ts.map +1 -0
  103. package/dist/{utils → types/utils}/autolayout/index.d.ts +3 -2
  104. package/dist/types/utils/autolayout/index.d.ts.map +1 -0
  105. package/dist/types/utils/helperfunctions.d.ts +17 -0
  106. package/dist/types/utils/helperfunctions.d.ts.map +1 -0
  107. package/dist/{utils → types/utils}/index.d.ts +4 -3
  108. package/dist/types/utils/index.d.ts.map +1 -0
  109. package/dist/{utils → types/utils}/objects.d.ts +20 -19
  110. package/dist/types/utils/objects.d.ts.map +1 -0
  111. package/dist/umd/index.umd.js +5221 -0
  112. package/package.json +36 -75
  113. package/README.md +0 -46
  114. package/dist/data_text_javascript_base64_.index.js +0 -22
  115. package/dist/frontend/datarenderer/data_renderer_overlay.d.ts +0 -5
  116. package/dist/frontend/datarenderer/data_renderer_preview.d.ts +0 -5
  117. package/dist/frontend/datarenderer/plotly.d.ts +0 -10
  118. package/dist/frontend/header/index.d.ts +0 -4
  119. package/dist/frontend/node/body_data_renderer.d.ts +0 -7
  120. package/dist/frontend/node/io/handle_renderer.d.ts +0 -7
  121. package/dist/index.js +0 -910
  122. package/dist/plugin/index.d.ts +0 -6
package/package.json CHANGED
@@ -1,110 +1,71 @@
1
1
  {
2
2
  "name": "@linkdlab/funcnodes_react_flow",
3
- "version": "0.1.6",
4
- "description": "This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).",
3
+ "version": "0.2.1",
4
+ "description": "Frontend with React Flow for FuncNodes",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/Linkdlab/FuncNodesReact.git"
8
8
  },
9
9
  "author": "Julian Kimmig",
10
- "license": "ISC",
10
+ "license": "MIT",
11
11
  "bugs": {
12
12
  "url": "https://github.com/Linkdlab/FuncNodesReact/issues"
13
13
  },
14
14
  "homepage": "https://github.com/Linkdlab/FuncNodesReact#readme",
15
- "main": "dist/index.js",
15
+ "type": "module",
16
16
  "source": "src/index.tsx",
17
+ "main": "dist/umd/index.umd.js",
18
+ "types": "dist/types/index.d.ts",
19
+ "style": "dist/css/style.css",
17
20
  "files": [
18
21
  "dist"
19
22
  ],
20
- "engines": {
21
- "node": ">=10"
22
- },
23
23
  "scripts": {
24
- "start": "react-scripts start",
25
- "build": "react-scripts build",
26
- "test": "react-scripts test",
27
- "eject": "react-scripts eject",
28
- "webpack:app": "cd app && webpack",
29
- "webpack:module": "webpack",
30
- "serve": "cd app && webpack serve --mode=development",
31
- "watch": "webpack --watch --progress",
32
- "pretty": "prettier --write \"./src/**/*.{js,jsx,mjs,cjs,ts,tsx,json}\""
24
+ "typecheck": "tsc --noEmit --watch",
25
+ "watch:esm": "webpack --config webpack.config.esm.cjs --watch --progress",
26
+ "watch:umd": "webpack --config webpack.config.umd.cjs --watch --progress",
27
+ "watch:css": "webpack --config webpack.config.css.cjs --watch --progress",
28
+ "test": "jest"
33
29
  },
34
30
  "dependencies": {
35
- "@emotion/react": "^11.11.3",
36
- "@emotion/styled": "^11.11.0",
37
- "@mui/icons-material": "^5.15.10",
38
- "@mui/material": "^5.15.10",
31
+ "@emotion/react": "^11.11.4",
32
+ "@emotion/styled": "^11.11.5",
33
+ "@mui/icons-material": "^5.15.18",
34
+ "@mui/material": "^5.15.18",
39
35
  "@radix-ui/react-dialog": "^1.0.5",
40
36
  "@radix-ui/react-popover": "^1.0.7",
41
- "@radix-ui/react-slider": "^1.1.2",
42
37
  "@radix-ui/react-tooltip": "^1.0.7",
43
- "@testing-library/jest-dom": "^5.14.1",
44
- "@testing-library/react": "^13.0.0",
45
- "@testing-library/user-event": "^13.2.1",
46
- "@types/color-convert": "^2.0.3",
47
- "@types/d3": "^7.4.3",
48
- "@types/jest": "^27.0.1",
49
- "@types/node": "^16.7.13",
50
- "@types/react": "^18.0.0",
51
- "@types/react-dom": "^18.0.0",
52
- "@types/uuid": "^9.0.8",
53
- "buffer": "^6.0.3",
54
38
  "color-convert": "^2.0.1",
55
- "d3": "^7.9.0",
56
- "react": "^18.2.0",
57
- "react-dom": "^18.2.0",
58
- "react-json-view-lite": "^1.3.0",
59
- "react-scripts": "5.0.1",
39
+ "react": "*",
40
+ "react-dom": "*",
41
+ "react-json-view-lite": "^1.4.0",
60
42
  "react-select": "^5.8.0",
61
- "reactflow": "^11.10.3",
62
- "sass": "^1.75.0",
63
- "scss": "^0.2.4",
64
- "typescript": "^4.4.2",
65
- "uuid": "^9.0.1",
66
- "web-vitals": "^2.1.0",
67
- "zustand": "^4.5.0"
68
- },
69
- "eslintConfig": {
70
- "extends": [
71
- "react-app",
72
- "react-app/jest"
73
- ]
74
- },
75
- "browserslist": {
76
- "production": [
77
- ">0.2%",
78
- "not dead",
79
- "not op_mini all"
80
- ],
81
- "development": [
82
- "last 1 chrome version",
83
- "last 1 firefox version",
84
- "last 1 safari version"
85
- ]
43
+ "react-svg": "^16.1.34",
44
+ "reactflow": "^11.11.3",
45
+ "uuid": "^9.0.1"
86
46
  },
87
47
  "devDependencies": {
88
- "@rollup/plugin-node-resolve": "^15.2.3",
48
+ "@babel/core": "^7.24.6",
49
+ "@types/babel__core": "^7",
50
+ "@types/color-convert": "^2",
51
+ "@types/react": "*",
52
+ "@types/react-dom": "*",
53
+ "@types/testing-library__jest-dom": "^6.0.0",
54
+ "@types/uuid": "^9.0.8",
89
55
  "autoprefixer": "^10.4.19",
90
56
  "babel-loader": "^9.1.3",
91
- "css-loader": "^7.1.1",
92
- "cssnano": "^6.1.2",
93
- "html-webpack-plugin": "^5.6.0",
94
- "microbundle-crl": "^0.13.11",
57
+ "css-loader": "^7.1.2",
58
+ "cssnano": "^7.0.1",
95
59
  "mini-css-extract-plugin": "^2.9.0",
96
60
  "postcss": "^8.4.38",
97
61
  "postcss-loader": "^8.1.1",
98
- "purgecss-webpack-plugin": "^6.0.0",
99
- "rollup": "^4.16.3",
100
- "rollup-plugin-import-css": "^3.5.0",
101
- "rollup-plugin-scss": "^4.0.0",
102
- "rollup-plugin-typescript2": "^0.36.0",
62
+ "sass": "^1.77.2",
103
63
  "sass-loader": "^14.2.1",
104
64
  "ts-loader": "^9.5.1",
105
- "tsup": "^8.0.2",
65
+ "typescript": "^5.4.5",
106
66
  "webpack": "^5.91.0",
107
67
  "webpack-cli": "^5.1.4",
108
- "webpack-node-externals": "^3.0.0"
109
- }
68
+ "webpack-merge": "^5.10.0"
69
+ },
70
+ "packageManager": "yarn@4.2.2"
110
71
  }
package/README.md DELETED
@@ -1,46 +0,0 @@
1
- # Getting Started with Create React App
2
-
3
- This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4
-
5
- ## Available Scripts
6
-
7
- In the project directory, you can run:
8
-
9
- ### `yarn start`
10
-
11
- Runs the app in the development mode.\
12
- Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13
-
14
- The page will reload if you make edits.\
15
- You will also see any lint errors in the console.
16
-
17
- ### `yarn test`
18
-
19
- Launches the test runner in the interactive watch mode.\
20
- See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21
-
22
- ### `yarn build`
23
-
24
- Builds the app for production to the `build` folder.\
25
- It correctly bundles React in production mode and optimizes the build for the best performance.
26
-
27
- The build is minified and the filenames include the hashes.\
28
- Your app is ready to be deployed!
29
-
30
- See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31
-
32
- ### `yarn eject`
33
-
34
- **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35
-
36
- If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37
-
38
- Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39
-
40
- You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41
-
42
- ## Learn More
43
-
44
- You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45
-
46
- To learn React, check out the [React documentation](https://reactjs.org/).
@@ -1,22 +0,0 @@
1
- "use strict";
2
- /*
3
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
4
- * This devtool is neither made for production nor for readable output files.
5
- * It uses "eval()" calls to create a separate source file in the browser devtools.
6
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
7
- * or disable the default devtool with "devtool: false".
8
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
9
- */
10
- (self["webpackChunkModuleName"] = self["webpackChunkModuleName"] || []).push([["data_text_javascript_base64_"],{
11
-
12
- /***/ "data:text/javascript;base64,":
13
- /*!************************************!*\
14
- !*** data:text/javascript;base64, ***!
15
- \************************************/
16
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
17
-
18
- eval("__webpack_require__.r(__webpack_exports__);\n\n\n//# sourceURL=webpack://ModuleName/data:text/javascript;base64,?");
19
-
20
- /***/ })
21
-
22
- }]);
@@ -1,5 +0,0 @@
1
- import { IOType } from "../../states/nodeio.t";
2
- declare const DataOverlayRendererForIo: (io: IOType) => ({ io }: {
3
- io: IOType;
4
- }) => JSX.Element;
5
- export { DataOverlayRendererForIo };
@@ -1,5 +0,0 @@
1
- import { IOType } from "../../states/nodeio.t";
2
- declare const DataPreviewRendererForIo: (io: IOType) => ({ io }: {
3
- io: IOType;
4
- }) => JSX.Element;
5
- export { DataPreviewRendererForIo };
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- import RendererPlugin from "../../plugin/rendenderer";
3
- declare const RenderFigure: ({ data, layout, staticPlot, }: {
4
- data: Plotly.Data[];
5
- layout: Partial<Plotly.Layout>;
6
- staticPlot?: boolean | undefined;
7
- }) => React.JSX.Element;
8
- declare const PlotlyRendererPlugin: RendererPlugin;
9
- export default RenderFigure;
10
- export { PlotlyRendererPlugin };
@@ -1,4 +0,0 @@
1
- import "./header.scss";
2
- import React from "react";
3
- declare const FuncnodesHeader: () => React.JSX.Element;
4
- export default FuncnodesHeader;
@@ -1,7 +0,0 @@
1
- import { IOType } from "../../states/nodeio.t";
2
- declare const BodyDataRendererForIo: (io: IOType) => [({ io }: {
3
- io: IOType;
4
- }) => JSX.Element, ({ io }: {
5
- io: IOType;
6
- }) => JSX.Element];
7
- export { BodyDataRendererForIo };
@@ -1,7 +0,0 @@
1
- import { IOType } from "../../../states/nodeio.t";
2
- declare const PreviewHandleDataRendererForIo: (io: IOType) => [({ io }: {
3
- io: IOType;
4
- }) => JSX.Element, ({ io }: {
5
- io: IOType;
6
- }) => JSX.Element];
7
- export { PreviewHandleDataRendererForIo };