From b6ec71338b850ff74443e9ea600a44ed787d8de0 Mon Sep 17 00:00:00 2001 From: lana-k Date: Sun, 5 Jul 2026 19:12:24 +0200 Subject: [PATCH] fix plotly warnings see issue 7809 --- package-lock.json | 6 +++--- package.json | 2 +- patches/plotly.js+2.35.3.patch | 12 ++++++++++++ 3 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 patches/plotly.js+2.35.3.patch diff --git a/package-lock.json b/package-lock.json index 4c80ac9..f1f430e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "sqliteviz", - "version": "0.29.0", + "version": "0.30.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "sqliteviz", - "version": "0.29.0", + "version": "0.30.0", "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { @@ -24,7 +24,7 @@ "nanoid": "^3.1.12", "papaparse": "^5.4.1", "pivottable": "^2.23.0", - "plotly.js": "^2.35.2", + "plotly.js": "^2.35.3", "promise-worker": "^2.0.1", "react": "^16.14.0", "react-chart-editor": "^0.46.1", diff --git a/package.json b/package.json index 91274c0..23fa25a 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "nanoid": "^3.1.12", "papaparse": "^5.4.1", "pivottable": "^2.23.0", - "plotly.js": "^2.35.2", + "plotly.js": "^2.35.3", "promise-worker": "^2.0.1", "react": "^16.14.0", "react-chart-editor": "^0.46.1", diff --git a/patches/plotly.js+2.35.3.patch b/patches/plotly.js+2.35.3.patch new file mode 100644 index 0000000..90c9546 --- /dev/null +++ b/patches/plotly.js+2.35.3.patch @@ -0,0 +1,12 @@ +diff --git a/node_modules/plotly.js/src/plot_api/plot_api.js b/node_modules/plotly.js/src/plot_api/plot_api.js +index 75e98f5..5c38053 100644 +--- a/node_modules/plotly.js/src/plot_api/plot_api.js ++++ b/node_modules/plotly.js/src/plot_api/plot_api.js +@@ -2394,6 +2394,7 @@ var layoutUIControlPatterns = [ + + {pattern: /^legend\.(x|y)$/, attr: 'editrevision'}, + {pattern: /^(shapes|annotations)/, attr: 'editrevision'}, ++ {pattern: /^selections/, attr: 'selectionrevision'}, + {pattern: /^title\.text$/, attr: 'editrevision'} + ]; +