@deephaven/js-plugin-plotly-express 0.9.0 → 0.11.0
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/DashboardPlugin.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useCallback, useEffect } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { nanoid } from 'nanoid';
|
|
3
3
|
import { LayoutUtils, PanelEvent, useListener, } from '@deephaven/dashboard';
|
|
4
4
|
import PlotlyExpressChartPanel from './PlotlyExpressChartPanel.js';
|
|
5
5
|
export function DashboardPlugin(props) {
|
|
6
6
|
const { id, layout, registerComponent } = props;
|
|
7
|
-
const handlePanelOpen = useCallback(async ({ dragEvent, fetch, metadata = {}, panelId =
|
|
7
|
+
const handlePanelOpen = useCallback(async ({ dragEvent, fetch, metadata = {}, panelId = nanoid(), widget, }) => {
|
|
8
8
|
const { type, name } = widget;
|
|
9
9
|
if (type !== 'deephaven.plot.express.DeephavenFigure') {
|
|
10
10
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardPlugin.js","sourceRoot":"","sources":["../src/DashboardPlugin.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAa,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,
|
|
1
|
+
{"version":3,"file":"DashboardPlugin.js","sourceRoot":"","sources":["../src/DashboardPlugin.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAa,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAEL,WAAW,EACX,UAAU,EACV,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAE9B,OAAO,uBAAuB,MAAM,8BAA8B,CAAC;AAGnE,MAAM,UAAU,eAAe,CAC7B,KAAoC;IAEpC,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,iBAAiB,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"}
|
package/dist/bundle/index.js
CHANGED
|
@@ -110175,6 +110175,15 @@ const PlotlyExpressPlugin = {
|
|
|
110175
110175
|
panelComponent: PlotlyExpressChartPanel,
|
|
110176
110176
|
icon: vsGraph
|
|
110177
110177
|
};
|
|
110178
|
+
const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
110179
|
+
let nanoid = (size = 21) => {
|
|
110180
|
+
let id = "";
|
|
110181
|
+
let bytes = crypto.getRandomValues(new Uint8Array(size));
|
|
110182
|
+
while (size--) {
|
|
110183
|
+
id += urlAlphabet[bytes[size] & 63];
|
|
110184
|
+
}
|
|
110185
|
+
return id;
|
|
110186
|
+
};
|
|
110178
110187
|
function isStack(item) {
|
|
110179
110188
|
return item.isStack;
|
|
110180
110189
|
}
|
|
@@ -111516,7 +111525,7 @@ function DashboardPlugin(props) {
|
|
|
111516
111525
|
dragEvent,
|
|
111517
111526
|
fetch,
|
|
111518
111527
|
metadata = {},
|
|
111519
|
-
panelId =
|
|
111528
|
+
panelId = nanoid(),
|
|
111520
111529
|
widget
|
|
111521
111530
|
}) => {
|
|
111522
111531
|
const { type, name: name2 } = widget;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/js-plugin-plotly-express",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Deephaven plotly express plugin",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Deephaven",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
27
|
-
"url": "git+https://github.com/deephaven/deephaven-
|
|
27
|
+
"url": "git+https://github.com/deephaven/deephaven-plugins"
|
|
28
28
|
},
|
|
29
29
|
"bugs": {
|
|
30
|
-
"url": "https://github.com/deephaven/deephaven-
|
|
30
|
+
"url": "https://github.com/deephaven/deephaven-plugins/issues"
|
|
31
31
|
},
|
|
32
|
-
"homepage": "https://github.com/deephaven/deephaven-
|
|
32
|
+
"homepage": "https://github.com/deephaven/deephaven-plugins",
|
|
33
33
|
"scripts": {
|
|
34
34
|
"start": "vite build --watch",
|
|
35
35
|
"build": "tsc && vite build",
|
|
@@ -63,11 +63,11 @@
|
|
|
63
63
|
"@deephaven/plugin": "0.75.0",
|
|
64
64
|
"@deephaven/utils": "0.75.0",
|
|
65
65
|
"deep-equal": "^2.2.1",
|
|
66
|
+
"nanoid": "^5.0.7",
|
|
66
67
|
"plotly.js": "^2.29.1",
|
|
67
68
|
"plotly.js-dist-min": "^2.29.1",
|
|
68
69
|
"react-plotly.js": "^2.4.0",
|
|
69
|
-
"react-redux": "^7.2.9"
|
|
70
|
-
"shortid": "^2.2.16"
|
|
70
|
+
"react-redux": "^7.2.9"
|
|
71
71
|
},
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"files": [
|
|
76
76
|
"dist"
|
|
77
77
|
],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "e05db9b2ac49be11a28a66439055db84877b2b7e"
|
|
79
79
|
}
|