Skip to content
Merged

Test #30

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/install_package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ runs:
- name: Install Dependencies
shell: bash
run: |
uv sync
uv sync --refresh
echo "python-version=${{ steps.setup_python.outputs.python-version }}" >> "$GITHUB_OUTPUT"
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
graft src
graft tests
prune **/__pycache__/
prune src/react_plugin
prune src/react_plugin*
12 changes: 5 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "funcnodes-plotly"
version = "0.3.2"
version = "1.0.0"
description = ""
readme = "README.md"
classifiers = [
Expand Down Expand Up @@ -31,8 +31,8 @@ dev = [
]

[build-system]
requires = [ "setuptools>=42",]
build-backend = "setuptools.build_meta"
requires = ["hatchling"]
build-backend = "hatchling.build"

[project.license]
text = "AGPL-3.0"
Expand All @@ -44,8 +44,8 @@ source = "https://github.com/Linkdlab/funcnodes_plotly"
tracker = "https://github.com/Linkdlab/funcnodes_plotly/issues"
download = "https://pypi.org/project/funcnodes-plotly/#files"

[tool.setuptools.package-dir]
"" = "src"
[tool.hatch.build.targets.wheel]
packages = ["src/funcnodes_plotly"]


[tool.commitizen]
Expand All @@ -58,5 +58,3 @@ update_changelog_on_bump = true
module = "funcnodes_plotly"
shelf = "funcnodes_plotly:NODE_SHELF"

[tool.setuptools.packages.find]
where = [ "src",]
6 changes: 3 additions & 3 deletions src/funcnodes_plotly/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ def figure_byte_encoder(figure: go.Figure, preview) -> fn.BytesEncdata:
)

REACT_PLUGIN = {
"module": os.path.join(os.path.dirname(__file__), "react_plugin", "main.js"),
"css": [os.path.join(os.path.dirname(__file__), "react_plugin", "style.css")],
"module": os.path.join(os.path.dirname(__file__), "react_plugin", "index.iife.js"),
"css": [os.path.join(os.path.dirname(__file__), "react_plugin", "plugin-custom-renders.css")],
}


__version__ = "0.3.1"
__version__ = "1.0.0"
3,866 changes: 3,866 additions & 0 deletions src/funcnodes_plotly/react_plugin/index.iife.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions src/funcnodes_plotly/react_plugin/main.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.funcnodes_plotly_container{width:100%;height:100%;min-height:300px;min-width:300px}.dialogchildren .funcnodes_plotly_container{min-height:60vh}
7 changes: 0 additions & 7 deletions src/funcnodes_plotly/react_plugin/style.css

This file was deleted.

69 changes: 33 additions & 36 deletions src/react_plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,35 @@
{
"name": "plotly_demo_build",
"version": "1.0.0",
"main": "dist/index.js",
"license": "MIT",
"source": "src/index.ts",
"type": "module",
"files": [
"dist"
],
"scripts": {
"build": "webpack build --mode production",
"watch": "webpack build --mode development --watch",
"test": "mocha"
},
"dependencies": {
"@linkdlab/funcnodes_react_flow": "^0.4.0",
"plotly.js-dist-min": "*"
},
"devDependencies": {
"@types/plotly.js-dist-min": "^2.3.4",
"@types/react": "^18.3.2",
"chai": "^5.1.1",
"mocha": "^10.4.0",
"react": "19",
"react-dom": "19",
"react-scripts": "^5.0.1",
"ts-loader": "^9.5.1",
"typescript": "^5.4.5",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
},
"peerDependencies": {
"react": "19",
"react-dom": "19"
},
"packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
"name": "@funcnodes/plugin-custom-renders",
"version": "0.1.0",
"description": "An example plugin for FuncNodes React Flow with custom renderers.",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "tsc && vite build",
"dev": "vite build --watch",
"typecheck": "tsc --noEmit"
},
"peerDependencies": {
"@linkdlab/funcnodes_react_flow": ">=1.0.0",
"react": "^19.0.0"
},
"devDependencies": {
"@linkdlab/funcnodes-react-flow-plugin": "^1.0.1",
"@types/plotly.js": "^3",
"@types/react": "^19.0.0",
"@types/react-plotly.js": "^2",
"@vitejs/plugin-react": "^4.0.0",
"react": "^19.1.1",
"typescript": "^5.0.0",
"vite": "^7.0.0",
"vite-plugin-dts": "^4.0.0"
},
"dependencies": {
"plotly.js": "^3.1.0",
"react-plotly.js": "^2.6.0"
}
}
Loading
Loading