funcnodes-react-flow 0.3.15__tar.gz → 0.3.17__tar.gz

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 (24) hide show
  1. {funcnodes_react_flow-0.3.15 → funcnodes_react_flow-0.3.17}/PKG-INFO +1 -1
  2. {funcnodes_react_flow-0.3.15 → funcnodes_react_flow-0.3.17}/funcnodes_react_flow/__init__.py +5 -1
  3. {funcnodes_react_flow-0.3.15 → funcnodes_react_flow-0.3.17}/funcnodes_react_flow/plugin_setup.py +0 -1
  4. {funcnodes_react_flow-0.3.15 → funcnodes_react_flow-0.3.17}/pyproject.toml +1 -1
  5. {funcnodes_react_flow-0.3.15 → funcnodes_react_flow-0.3.17}/LICENSE +0 -0
  6. {funcnodes_react_flow-0.3.15 → funcnodes_react_flow-0.3.17}/README.md +0 -0
  7. {funcnodes_react_flow-0.3.15 → funcnodes_react_flow-0.3.17}/funcnodes_react_flow/__main__.py +0 -0
  8. {funcnodes_react_flow-0.3.15 → funcnodes_react_flow-0.3.17}/funcnodes_react_flow/run.py +0 -0
  9. {funcnodes_react_flow-0.3.15 → funcnodes_react_flow-0.3.17}/funcnodes_react_flow/static/android-chrome-192x192.png +0 -0
  10. {funcnodes_react_flow-0.3.15 → funcnodes_react_flow-0.3.17}/funcnodes_react_flow/static/android-chrome-512x512.png +0 -0
  11. {funcnodes_react_flow-0.3.15 → funcnodes_react_flow-0.3.17}/funcnodes_react_flow/static/apple-touch-icon.png +0 -0
  12. {funcnodes_react_flow-0.3.15 → funcnodes_react_flow-0.3.17}/funcnodes_react_flow/static/asset-manifest.json +0 -0
  13. {funcnodes_react_flow-0.3.15 → funcnodes_react_flow-0.3.17}/funcnodes_react_flow/static/css/style.css +0 -0
  14. {funcnodes_react_flow-0.3.15 → funcnodes_react_flow-0.3.17}/funcnodes_react_flow/static/favicon-16x16.png +0 -0
  15. {funcnodes_react_flow-0.3.15 → funcnodes_react_flow-0.3.17}/funcnodes_react_flow/static/favicon-32x32.png +0 -0
  16. {funcnodes_react_flow-0.3.15 → funcnodes_react_flow-0.3.17}/funcnodes_react_flow/static/favicon.ico +0 -0
  17. {funcnodes_react_flow-0.3.15 → funcnodes_react_flow-0.3.17}/funcnodes_react_flow/static/index.html +0 -0
  18. {funcnodes_react_flow-0.3.15 → funcnodes_react_flow-0.3.17}/funcnodes_react_flow/static/js/index.js +0 -0
  19. {funcnodes_react_flow-0.3.15 → funcnodes_react_flow-0.3.17}/funcnodes_react_flow/static/js/index.js.map +0 -0
  20. {funcnodes_react_flow-0.3.15 → funcnodes_react_flow-0.3.17}/funcnodes_react_flow/static/logo.png +0 -0
  21. {funcnodes_react_flow-0.3.15 → funcnodes_react_flow-0.3.17}/funcnodes_react_flow/static/logo192.png +0 -0
  22. {funcnodes_react_flow-0.3.15 → funcnodes_react_flow-0.3.17}/funcnodes_react_flow/static/logo512.png +0 -0
  23. {funcnodes_react_flow-0.3.15 → funcnodes_react_flow-0.3.17}/funcnodes_react_flow/static/manifest.json +0 -0
  24. {funcnodes_react_flow-0.3.15 → funcnodes_react_flow-0.3.17}/funcnodes_react_flow/static/robots.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: funcnodes-react-flow
3
- Version: 0.3.15
3
+ Version: 0.3.17
4
4
  Summary: funcnodes frontend for react flow
5
5
  License: AGPL-3.0
6
6
  Author: Julian Kimmig
@@ -35,9 +35,13 @@ def get_react_plugin_content(key: str) -> ExpandedReactPlugin:
35
35
  if key not in FUNCNODES_REACT_PLUGIN:
36
36
  raise ValueError(f"React plugin {key} not found")
37
37
 
38
+ if FUNCNODES_REACT_PLUGIN[key]["module"]:
39
+ with open(FUNCNODES_REACT_PLUGIN[key]["module"], "rb") as f:
40
+ module = f.read()
41
+
38
42
  resp: ExpandedReactPlugin = {
39
43
  "js": [],
40
- "module": FUNCNODES_REACT_PLUGIN[key]["module"],
44
+ "module": module,
41
45
  "css": [],
42
46
  }
43
47
  if "js" in FUNCNODES_REACT_PLUGIN[key]:
@@ -26,7 +26,6 @@ def add_react_plugin(module: ModuleType, plugin: ReactPlugin):
26
26
  name (str): The name of the plugin.
27
27
  plugin (ReactPlugin): The plugin to add.
28
28
  """
29
- plugin["module"] = module.__file__
30
29
  FUNCNODES_REACT_PLUGIN[str(module)] = plugin
31
30
 
32
31
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "funcnodes-react-flow"
3
- version = "0.3.15"
3
+ version = "0.3.17"
4
4
  description = "funcnodes frontend for react flow"
5
5
  authors = [
6
6
  {name = "Julian Kimmig", email = "julian.kimmig@linkdlab.de>"}