diff --git a/actions-sample-plugin/package-lock.json b/actions-sample-plugin/package-lock.json index 2e8c53b..a19c795 100644 --- a/actions-sample-plugin/package-lock.json +++ b/actions-sample-plugin/package-lock.json @@ -8,6 +8,7 @@ "name": "my-vue-app", "version": "0.0.0", "dependencies": { + "@sigmacomputing/plugin": "^1.1.1", "react": "^18.2.0", "react-dom": "^18.2.0" }, @@ -1189,6 +1190,16 @@ "win32" ] }, + "node_modules/@sigmacomputing/plugin": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@sigmacomputing/plugin/-/plugin-1.1.1.tgz", + "integrity": "sha512-vlJX+vibR6Mb9eX/InK28wiMZA4rO0qWzvMaCklJSkXw18XOx7yj8WZ65DOeol6eD9MzkZdEuJtCK+wwv7K0sA==", + "license": "MIT", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, "node_modules/@types/babel__core": { "version": "7.20.5", "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", @@ -3245,4 +3256,4 @@ } } } -} +} \ No newline at end of file diff --git a/actions-sample-plugin/package.json b/actions-sample-plugin/package.json index 0c10d43..c03556b 100644 --- a/actions-sample-plugin/package.json +++ b/actions-sample-plugin/package.json @@ -10,7 +10,7 @@ "preview": "vite preview" }, "dependencies": { - "@sigmacomputing/plugin": "^1.0.5", + "@sigmacomputing/plugin": "^1.1.1", "react": "^18.2.0", "react-dom": "^18.2.0" }, @@ -27,4 +27,4 @@ "vite": "^5.2.0" }, "packageManager": "yarn@4.3.1+sha512.af78262d7d125afbfeed740602ace8c5e4405cd7f4735c08feb327286b2fdb2390fbca01589bfd1f50b1240548b74806767f5a063c94b67e431aabd0d86f7774" -} +} \ No newline at end of file diff --git a/clustering-map/package.json b/clustering-map/package.json index 4fa40eb..ffccf43 100644 --- a/clustering-map/package.json +++ b/clustering-map/package.json @@ -10,7 +10,10 @@ "preview": "vite preview" }, "dependencies": { - "@sigmacomputing/plugin": "^1.0.6", + "@deck.gl/core": "8.3.11", + "@deck.gl/layers": "8.3.11", + "@deck.gl/react": "8.3.11", + "@sigmacomputing/plugin": "^1.1.1", "copy-to-clipboard": "^3.3.1", "deck.gl": "8.3.11", "mapbox-gl": "^3.10.0", diff --git a/clustering-map/yarn.lock b/clustering-map/yarn.lock index bbacce0..92500f6 100644 --- a/clustering-map/yarn.lock +++ b/clustering-map/yarn.lock @@ -1319,13 +1319,13 @@ __metadata: languageName: node linkType: hard -"@sigmacomputing/plugin@npm:^1.0.6": - version: 1.0.6 - resolution: "@sigmacomputing/plugin@npm:1.0.6" +"@sigmacomputing/plugin@npm:^1.1.1": + version: 1.1.1 + resolution: "@sigmacomputing/plugin@npm:1.1.1" peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 - checksum: 10c0/30326be8a39fff6368db56d335cc48c8ff7d61e0dd590a721b572d2a65051c9669a3d632564686ce8d5670126cccf2119c36bd1d96f91ad4949194f8a6b2e85f + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + checksum: 10c0/f2e3c15f37287cc81a13586f13d7d6702418ba7dcea3b25cd4313622dd26a533a68f1e3af712bac64a44ca80484d27ba763c9b71c8a39174661dc434d646d547 languageName: node linkType: hard @@ -2079,7 +2079,10 @@ __metadata: version: 0.0.0-use.local resolution: "clustering-map@workspace:." dependencies: - "@sigmacomputing/plugin": "npm:^1.0.6" + "@deck.gl/core": "npm:8.3.11" + "@deck.gl/layers": "npm:8.3.11" + "@deck.gl/react": "npm:8.3.11" + "@sigmacomputing/plugin": "npm:^1.1.1" "@testing-library/jest-dom": "npm:^5.11.4" "@testing-library/react": "npm:^11.1.0" "@testing-library/user-event": "npm:^12.1.10" diff --git a/control-api-demo-plugin/package.json b/control-api-demo-plugin/package.json index 44e6f49..e91d493 100644 --- a/control-api-demo-plugin/package.json +++ b/control-api-demo-plugin/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { - "@sigmacomputing/plugin": "^0.7.33", + "@sigmacomputing/plugin": "^1.1.1", "@testing-library/jest-dom": "^5.14.1", "@testing-library/react": "^13.0.0", "@testing-library/user-event": "^13.2.1", @@ -36,4 +36,4 @@ "last 1 safari version" ] } -} +} \ No newline at end of file diff --git a/control-api-demo-plugin/yarn.lock b/control-api-demo-plugin/yarn.lock index 6b14b5b..793c59a 100644 --- a/control-api-demo-plugin/yarn.lock +++ b/control-api-demo-plugin/yarn.lock @@ -1555,17 +1555,10 @@ resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.1.4.tgz#0c8b74c50f29ee44f423f7416829c0bf8bb5eb27" integrity sha512-LwzQKA4vzIct1zNZzBmRKI9QuNpLgTQMEjsQLf3BXuGYb3QPTP4Yjf6mkdX+X1mYttZ808QpOwAzZjv28kq7DA== -"@sigmacomputing/plugin-types@^0.7.34": - version "0.7.34" - resolved "https://registry.yarnpkg.com/@sigmacomputing/plugin-types/-/plugin-types-0.7.34.tgz#4876401176d8c642431bd43a51116a0d8feba2c9" - integrity sha512-5VXuRR5t91vp6w5MdJGJ9bRzPsCp2MHSHjNKpWIJsgRY4EXjgVAGFnpp3P116yl1YOQHb/crTtTox0JBn8gTHg== - -"@sigmacomputing/plugin@^0.7.33": - version "0.7.34" - resolved "https://registry.yarnpkg.com/@sigmacomputing/plugin/-/plugin-0.7.34.tgz#723b36761043ce426aebdb4be40a917b35a442f8" - integrity sha512-k/gPpdu/U0nF35p+RGQ8LYuM5UR8WUmeVcLw4E0TvEsfnHn1vfjbyM7QeGxIJsSs/0TBV3G2NAXyiOin+UFmJw== - dependencies: - "@sigmacomputing/plugin-types" "^0.7.34" +"@sigmacomputing/plugin@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@sigmacomputing/plugin/-/plugin-1.1.1.tgz#a9f92b609abf4324f5707be509ebf6aee55ece37" + integrity sha512-vlJX+vibR6Mb9eX/InK28wiMZA4rO0qWzvMaCklJSkXw18XOx7yj8WZ65DOeol6eD9MzkZdEuJtCK+wwv7K0sA== "@sinclair/typebox@^0.24.1": version "0.24.20" diff --git a/d3-bar-chart-race/package.json b/d3-bar-chart-race/package.json index 0ad77fb..4546f5d 100644 --- a/d3-bar-chart-race/package.json +++ b/d3-bar-chart-race/package.json @@ -6,7 +6,7 @@ "@emotion/react": "^11.7.1", "@emotion/styled": "^11.6.0", "@observablehq/stdlib": "^3.15.4", - "@sigmacomputing/plugin": "^0.6.71", + "@sigmacomputing/plugin": "^1.1.1", "@testing-library/jest-dom": "^5.16.1", "@testing-library/react": "^12.1.2", "@testing-library/user-event": "^13.5.0", diff --git a/d3-bar-chart-race/src/App.js b/d3-bar-chart-race/src/App.js index 3cb121a..811caf7 100644 --- a/d3-bar-chart-race/src/App.js +++ b/d3-bar-chart-race/src/App.js @@ -77,9 +77,9 @@ function transform(config, columns, sigmaData) { function createkeyframes() { const keyframes = []; - let ka, a; - for ([ka, a] of datevalues) { - keyframes.push([ka, rank((name) => a.get(name) || 0)]); + for (const [ka, a] of datevalues) { + const dataMap = a; + keyframes.push([ka, rank((name) => dataMap.get(name) || 0)]); } return keyframes; } diff --git a/d3-bar-chart-race/yarn.lock b/d3-bar-chart-race/yarn.lock index b027d6e..7ea273d 100644 --- a/d3-bar-chart-race/yarn.lock +++ b/d3-bar-chart-race/yarn.lock @@ -1533,10 +1533,10 @@ "resolved" "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.1.0.tgz" "version" "1.1.0" -"@sigmacomputing/plugin@^0.6.71": - "integrity" "sha512-Si0z4pvJEF4FPAQhNqliybFfy26S2nZILgyZwZ2sUt6ebH6E6IZw9Ody3Ip56tmrtBQXFb304DHumFQRcXA3/A==" - "resolved" "https://registry.npmjs.org/@sigmacomputing/plugin/-/plugin-0.6.71.tgz" - "version" "0.6.71" +"@sigmacomputing/plugin@^1.1.1": + "integrity" "sha512-vlJX+vibR6Mb9eX/InK28wiMZA4rO0qWzvMaCklJSkXw18XOx7yj8WZ65DOeol6eD9MzkZdEuJtCK+wwv7K0sA==" + "resolved" "https://registry.npmjs.org/@sigmacomputing/plugin/-/plugin-1.1.1.tgz" + "version" "1.1.1" "@sinonjs/commons@^1.7.0": "integrity" "sha512-xkNcLAn/wZaX14RPlwizcKicDk9G3F8m2nU3L7Ukm5zBgTwiT0wsoFAHx9Jq56fJA1z/7uKGtCRu16sOUCLIHQ==" diff --git a/d3-graph/package.json b/d3-graph/package.json index e4c4aa5..5d2c133 100644 --- a/d3-graph/package.json +++ b/d3-graph/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { - "@sigmacomputing/plugin": "^0.6.43", + "@sigmacomputing/plugin": "^1.1.1", "@testing-library/jest-dom": "^5.11.4", "@testing-library/react": "^11.1.0", "@testing-library/user-event": "^12.1.10", diff --git a/d3-graph/src/App.js b/d3-graph/src/App.js index b4b47b0..434df65 100644 --- a/d3-graph/src/App.js +++ b/d3-graph/src/App.js @@ -1,4 +1,3 @@ -import logo from './logo.svg'; import './App.css'; import * as d3 from 'd3'; import {client, useConfig, useElementData} from '@sigmacomputing/plugin'; diff --git a/d3-graph/yarn.lock b/d3-graph/yarn.lock index 7d70e9c..a2ad37e 100644 --- a/d3-graph/yarn.lock +++ b/d3-graph/yarn.lock @@ -2409,10 +2409,10 @@ resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.2.0.tgz#8be36a1f66f3265389e90b5f9c9962146758f728" integrity sha512-sXo/qW2/pAcmT43VoRKOJbDOfV3cYpq3szSVfIThQXNt+E4DfKj361vaAt3c88U5tPUxzEswam7GW48PJqtKAg== -"@sigmacomputing/plugin@^0.6.43": - version "0.6.43" - resolved "https://registry.yarnpkg.com/@sigmacomputing/plugin/-/plugin-0.6.43.tgz#e1a6aeca45551e09e1fe399bc75e0d2875fa2cd1" - integrity sha512-ygrpJacwajW3thYLGGIfmYVNDwX9aKS93ymAspTHMJl0m9ptXkcDM3G+MIeW1Asll2H7saeN9vpT5u0z0Z5ysA== +"@sigmacomputing/plugin@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@sigmacomputing/plugin/-/plugin-1.1.1.tgz#a9f92b609abf4324f5707be509ebf6aee55ece37" + integrity sha512-vlJX+vibR6Mb9eX/InK28wiMZA4rO0qWzvMaCklJSkXw18XOx7yj8WZ65DOeol6eD9MzkZdEuJtCK+wwv7K0sA== "@sinclair/typebox@^0.24.1": version "0.24.50" diff --git a/d3-sunburst/package.json b/d3-sunburst/package.json index 9d126e9..9e43ee3 100644 --- a/d3-sunburst/package.json +++ b/d3-sunburst/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { - "@sigmacomputing/plugin": "^0.6.43", + "@sigmacomputing/plugin": "^1.1.1", "@testing-library/jest-dom": "^5.11.4", "@testing-library/react": "^11.1.0", "@testing-library/user-event": "^12.1.10", diff --git a/d3-sunburst/yarn.lock b/d3-sunburst/yarn.lock index e2c9aeb..7916bda 100644 --- a/d3-sunburst/yarn.lock +++ b/d3-sunburst/yarn.lock @@ -2409,10 +2409,10 @@ resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.2.0.tgz#8be36a1f66f3265389e90b5f9c9962146758f728" integrity sha512-sXo/qW2/pAcmT43VoRKOJbDOfV3cYpq3szSVfIThQXNt+E4DfKj361vaAt3c88U5tPUxzEswam7GW48PJqtKAg== -"@sigmacomputing/plugin@^0.6.43": - version "0.6.78" - resolved "https://registry.yarnpkg.com/@sigmacomputing/plugin/-/plugin-0.6.78.tgz#bfc958c34c6b31e74741a0b72b5b1c875127e116" - integrity sha512-pQXl9uO+MhNuXiQalshNY/ia8JPObRQFelbX1DkkJlhQV/p0NM01IzmZk3/oggyIWEHQKt/vz7mn+t7h+MtRVA== +"@sigmacomputing/plugin@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@sigmacomputing/plugin/-/plugin-1.1.1.tgz#a9f92b609abf4324f5707be509ebf6aee55ece37" + integrity sha512-vlJX+vibR6Mb9eX/InK28wiMZA4rO0qWzvMaCklJSkXw18XOx7yj8WZ65DOeol6eD9MzkZdEuJtCK+wwv7K0sA== "@sinclair/typebox@^0.24.1": version "0.24.51" diff --git a/d3-timeline/package.json b/d3-timeline/package.json index b690b36..e50f1e1 100644 --- a/d3-timeline/package.json +++ b/d3-timeline/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { - "@sigmacomputing/plugin": "^0.7.19", + "@sigmacomputing/plugin": "^1.1.1", "@testing-library/jest-dom": "^5.16.4", "@testing-library/react": "^13.2.0", "@testing-library/user-event": "^13.5.0", diff --git a/d3-timeline/yarn.lock b/d3-timeline/yarn.lock index 1a9a73a..ef6990c 100644 --- a/d3-timeline/yarn.lock +++ b/d3-timeline/yarn.lock @@ -1524,17 +1524,10 @@ resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.1.3.tgz#6801033be7ff87a6b7cadaf5b337c9f366a3c4b0" integrity sha512-WiBSI6JBIhC6LRIsB2Kwh8DsGTlbBU+mLRxJmAe3LjHTdkDpwIbEOZgoXBbZilk/vlfjK8i6nKRAvIRn1XaIMw== -"@sigmacomputing/plugin-types@^0.7.19": - version "0.7.19" - resolved "https://registry.yarnpkg.com/@sigmacomputing/plugin-types/-/plugin-types-0.7.19.tgz#6454af4c2fffbac45aa4d661bc1f7caa8994f2f2" - integrity sha512-Fw0B0SxuB3qFsavEunioGEOwYD2aTn9yNr8qTOVuHvLCkwETZSFvx4glCEDg3YZv9vUFp5kfCBSoHlLt0jcNQA== - -"@sigmacomputing/plugin@^0.7.19": - version "0.7.19" - resolved "https://registry.yarnpkg.com/@sigmacomputing/plugin/-/plugin-0.7.19.tgz#e42b0fa65f58762c8d01a9676227daf71adbb0ab" - integrity sha512-2CHsAXdz8SeCcZSFSz2rtypdBPhTDXLhljgOYcEzJAFyn2ok+c/Ex9CxAa8PoE70MEdQ7f0jSlTWG1ZvLCdDdA== - dependencies: - "@sigmacomputing/plugin-types" "^0.7.19" +"@sigmacomputing/plugin@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@sigmacomputing/plugin/-/plugin-1.1.1.tgz#a9f92b609abf4324f5707be509ebf6aee55ece37" + integrity sha512-vlJX+vibR6Mb9eX/InK28wiMZA4rO0qWzvMaCklJSkXw18XOx7yj8WZ65DOeol6eD9MzkZdEuJtCK+wwv7K0sA== "@sinclair/typebox@^0.23.3": version "0.23.5" diff --git a/frappe-gantt/package.json b/frappe-gantt/package.json index dacec75..f2c9ce6 100644 --- a/frappe-gantt/package.json +++ b/frappe-gantt/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { - "@sigmacomputing/plugin": "^1.0.5", + "@sigmacomputing/plugin": "^1.1.1", "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", diff --git a/frappe-gantt/yarn.lock b/frappe-gantt/yarn.lock index 9b810e0..6d4b2b8 100644 --- a/frappe-gantt/yarn.lock +++ b/frappe-gantt/yarn.lock @@ -2438,13 +2438,13 @@ __metadata: languageName: node linkType: hard -"@sigmacomputing/plugin@npm:^1.0.5": - version: 1.0.5 - resolution: "@sigmacomputing/plugin@npm:1.0.5" +"@sigmacomputing/plugin@npm:^1.1.1": + version: 1.1.1 + resolution: "@sigmacomputing/plugin@npm:1.1.1" peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 - checksum: 6713914b3f776a66371f46d34371974d1d77689bf8ab7c33876c104f3e323cf58edd4c2244fa4c3c234dc170292b3fc9d053a47b2fcbc92dde110011f3fb0645 + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + checksum: 10c0/f2e3c15f37287cc81a13586f13d7d6702418ba7dcea3b25cd4313622dd26a533a68f1e3af712bac64a44ca80484d27ba763c9b71c8a39174661dc434d646d547 languageName: node linkType: hard @@ -6630,7 +6630,7 @@ __metadata: version: 0.0.0-use.local resolution: "frappe-gantt@workspace:." dependencies: - "@sigmacomputing/plugin": "npm:^1.0.5" + "@sigmacomputing/plugin": "npm:^1.1.1" "@testing-library/jest-dom": "npm:^5.17.0" "@testing-library/react": "npm:^13.4.0" "@testing-library/user-event": "npm:^13.5.0" diff --git a/frappe-heatmap/package.json b/frappe-heatmap/package.json index e869499..cad49b5 100644 --- a/frappe-heatmap/package.json +++ b/frappe-heatmap/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { - "@sigmacomputing/plugin": "^0.6.43", + "@sigmacomputing/plugin": "^1.1.1", "@testing-library/jest-dom": "^5.11.4", "@testing-library/react": "^11.1.0", "@testing-library/user-event": "^12.1.10", diff --git a/frappe-heatmap/src/App.js b/frappe-heatmap/src/App.js index b1ff554..9715083 100644 --- a/frappe-heatmap/src/App.js +++ b/frappe-heatmap/src/App.js @@ -45,6 +45,7 @@ function App() { start: new Date(start), end: new Date(end), }; + // eslint-disable-next-line react-hooks/exhaustive-deps }, [columns, config.dimension, config.measures, sigmaData]); React.useEffect(() => { @@ -52,6 +53,7 @@ function App() { type: 'heatmap', data, }); + // eslint-disable-next-line react-hooks/exhaustive-deps }, []); React.useEffect(() => { diff --git a/frappe-heatmap/yarn.lock b/frappe-heatmap/yarn.lock index 7af811d..23cc8ba 100644 --- a/frappe-heatmap/yarn.lock +++ b/frappe-heatmap/yarn.lock @@ -2409,10 +2409,10 @@ resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.2.0.tgz#8be36a1f66f3265389e90b5f9c9962146758f728" integrity sha512-sXo/qW2/pAcmT43VoRKOJbDOfV3cYpq3szSVfIThQXNt+E4DfKj361vaAt3c88U5tPUxzEswam7GW48PJqtKAg== -"@sigmacomputing/plugin@^0.6.43": - version "0.6.43" - resolved "https://registry.yarnpkg.com/@sigmacomputing/plugin/-/plugin-0.6.43.tgz#e1a6aeca45551e09e1fe399bc75e0d2875fa2cd1" - integrity sha512-ygrpJacwajW3thYLGGIfmYVNDwX9aKS93ymAspTHMJl0m9ptXkcDM3G+MIeW1Asll2H7saeN9vpT5u0z0Z5ysA== +"@sigmacomputing/plugin@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@sigmacomputing/plugin/-/plugin-1.1.1.tgz#a9f92b609abf4324f5707be509ebf6aee55ece37" + integrity sha512-vlJX+vibR6Mb9eX/InK28wiMZA4rO0qWzvMaCklJSkXw18XOx7yj8WZ65DOeol6eD9MzkZdEuJtCK+wwv7K0sA== "@sinclair/typebox@^0.24.1": version "0.24.50" diff --git a/hello-world/package.json b/hello-world/package.json index c4d7156..e2fb418 100644 --- a/hello-world/package.json +++ b/hello-world/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { - "@sigmacomputing/plugin": "^0.7.27", + "@sigmacomputing/plugin": "^1.1.1", "@testing-library/jest-dom": "^5.16.4", "@testing-library/react": "^13.3.0", "@testing-library/user-event": "^13.5.0", diff --git a/hello-world/yarn.lock b/hello-world/yarn.lock index 8586dbf..9a45fdd 100644 --- a/hello-world/yarn.lock +++ b/hello-world/yarn.lock @@ -1554,17 +1554,10 @@ resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.1.3.tgz#6801033be7ff87a6b7cadaf5b337c9f366a3c4b0" integrity sha512-WiBSI6JBIhC6LRIsB2Kwh8DsGTlbBU+mLRxJmAe3LjHTdkDpwIbEOZgoXBbZilk/vlfjK8i6nKRAvIRn1XaIMw== -"@sigmacomputing/plugin-types@^0.7.27": - version "0.7.27" - resolved "https://registry.yarnpkg.com/@sigmacomputing/plugin-types/-/plugin-types-0.7.27.tgz#136b60653e46e8d927d62226bc88ff5a46939ba4" - integrity sha512-uKZLkOZ1KDSphbBcc3bmmiNYl5/l8K4cdvEa9/iJVfjrZHuElX5chaQKDzBe5+DwQCYuUy2lNzT+JfR4iawpBA== - -"@sigmacomputing/plugin@^0.7.27": - version "0.7.27" - resolved "https://registry.yarnpkg.com/@sigmacomputing/plugin/-/plugin-0.7.27.tgz#ca96c235d13bee92385957dc1602b97c7dced8cd" - integrity sha512-+t5D4kk16DN2hDRpGcU52SQOIRLKJqPgLiRRaxWJIjuxNnxeFm5lXPD1r/jj3U+wmXQT7CV+PC2TG+ZzuUlT1w== - dependencies: - "@sigmacomputing/plugin-types" "^0.7.27" +"@sigmacomputing/plugin@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@sigmacomputing/plugin/-/plugin-1.1.1.tgz#a9f92b609abf4324f5707be509ebf6aee55ece37" + integrity sha512-vlJX+vibR6Mb9eX/InK28wiMZA4rO0qWzvMaCklJSkXw18XOx7yj8WZ65DOeol6eD9MzkZdEuJtCK+wwv7K0sA== "@sinclair/typebox@^0.23.3": version "0.23.5" diff --git a/orgchart/package.json b/orgchart/package.json index dbce158..1772225 100644 --- a/orgchart/package.json +++ b/orgchart/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { - "@sigmacomputing/plugin": "^1.0.5", + "@sigmacomputing/plugin": "^1.1.1", "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", @@ -13,7 +13,6 @@ "react-dom": "^18.3.1", "react-scripts": "5.0.1", "web-vitals": "^2.1.4" - }, "scripts": { "start": "react-scripts start", diff --git a/orgchart/src/App.js b/orgchart/src/App.js index 2d262c2..cb63fc1 100644 --- a/orgchart/src/App.js +++ b/orgchart/src/App.js @@ -2,7 +2,7 @@ import './App.css'; import default_face from "./default.png"; import root_face from "./sigma.jpg"; import {client, useConfig, useElementData, useElementColumns} from '@sigmacomputing/plugin'; -import { useEffect, useRef, useMemo } from 'react'; +import { useEffect } from 'react'; import { OrgChart } from 'd3-org-chart'; import * as d3 from 'd3'; diff --git a/orgchart/yarn.lock b/orgchart/yarn.lock index e5992b3..659c1cc 100644 --- a/orgchart/yarn.lock +++ b/orgchart/yarn.lock @@ -3674,13 +3674,13 @@ __metadata: languageName: node linkType: hard -"@sigmacomputing/plugin@npm:^1.0.5": - version: 1.0.5 - resolution: "@sigmacomputing/plugin@npm:1.0.5" +"@sigmacomputing/plugin@npm:^1.1.1": + version: 1.1.1 + resolution: "@sigmacomputing/plugin@npm:1.1.1" peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 - checksum: 6713914b3f776a66371f46d34371974d1d77689bf8ab7c33876c104f3e323cf58edd4c2244fa4c3c234dc170292b3fc9d053a47b2fcbc92dde110011f3fb0645 + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + checksum: 10c0/f2e3c15f37287cc81a13586f13d7d6702418ba7dcea3b25cd4313622dd26a533a68f1e3af712bac64a44ca80484d27ba763c9b71c8a39174661dc434d646d547 languageName: node linkType: hard @@ -14012,7 +14012,7 @@ __metadata: version: 0.0.0-use.local resolution: "sigma-plugin-org-chart@workspace:." dependencies: - "@sigmacomputing/plugin": "npm:^1.0.5" + "@sigmacomputing/plugin": "npm:^1.1.1" "@testing-library/jest-dom": "npm:^5.17.0" "@testing-library/react": "npm:^13.4.0" "@testing-library/user-event": "npm:^13.5.0" diff --git a/sample-plugin-bar-chart/package.json b/sample-plugin-bar-chart/package.json index 97dd2ff..2db1db5 100644 --- a/sample-plugin-bar-chart/package.json +++ b/sample-plugin-bar-chart/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { - "@sigmacomputing/plugin": "^0.6.45", + "@sigmacomputing/plugin": "^1.1.1", "@testing-library/jest-dom": "^5.11.4", "@testing-library/react": "^11.1.0", "@testing-library/user-event": "^12.1.10", diff --git a/sample-plugin-bar-chart/yarn.lock b/sample-plugin-bar-chart/yarn.lock index c5f5746..36d162f 100644 --- a/sample-plugin-bar-chart/yarn.lock +++ b/sample-plugin-bar-chart/yarn.lock @@ -2419,10 +2419,10 @@ resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.2.0.tgz#8be36a1f66f3265389e90b5f9c9962146758f728" integrity sha512-sXo/qW2/pAcmT43VoRKOJbDOfV3cYpq3szSVfIThQXNt+E4DfKj361vaAt3c88U5tPUxzEswam7GW48PJqtKAg== -"@sigmacomputing/plugin@^0.6.45": - version "0.6.45" - resolved "https://registry.yarnpkg.com/@sigmacomputing/plugin/-/plugin-0.6.45.tgz#7376393aeb5c7b7c194f89f64901079ddcff2512" - integrity sha512-a43M+I900F3G9KB7aF+qCKu705NYHaoOodHrIkqrkHEKtPZVL2yuq9xlhviDxI5eQhdAElREPru36/YvYyG/WQ== +"@sigmacomputing/plugin@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@sigmacomputing/plugin/-/plugin-1.1.1.tgz#a9f92b609abf4324f5707be509ebf6aee55ece37" + integrity sha512-vlJX+vibR6Mb9eX/InK28wiMZA4rO0qWzvMaCklJSkXw18XOx7yj8WZ65DOeol6eD9MzkZdEuJtCK+wwv7K0sA== "@sinclair/typebox@^0.24.1": version "0.24.51" diff --git a/sample-plugin-candlestick-chart/package.json b/sample-plugin-candlestick-chart/package.json index f6974c1..37dfd33 100644 --- a/sample-plugin-candlestick-chart/package.json +++ b/sample-plugin-candlestick-chart/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { - "@sigmacomputing/plugin": "^0.6.48", + "@sigmacomputing/plugin": "^1.1.1", "@testing-library/jest-dom": "^5.11.4", "@testing-library/react": "^11.1.0", "@testing-library/user-event": "^12.1.10", diff --git a/sample-plugin-candlestick-chart/yarn.lock b/sample-plugin-candlestick-chart/yarn.lock index 43b49fe..84ab719 100644 --- a/sample-plugin-candlestick-chart/yarn.lock +++ b/sample-plugin-candlestick-chart/yarn.lock @@ -1476,10 +1476,10 @@ estree-walker "^1.0.1" picomatch "^2.2.2" -"@sigmacomputing/plugin@^0.6.48": - version "0.6.48" - resolved "https://registry.yarnpkg.com/@sigmacomputing/plugin/-/plugin-0.6.48.tgz#fa24166a229ea8552ead932d8f8890944a9fa1f0" - integrity sha512-ZY7DAQYiKFIMFIB5JssHv8j/E0pI+PJpn48k5QBQuy2w1lm6Tf9mzj5ZKwTG/ozNKX08FHsTJUm6B0th7mf+Hw== +"@sigmacomputing/plugin@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@sigmacomputing/plugin/-/plugin-1.1.1.tgz#a9f92b609abf4324f5707be509ebf6aee55ece37" + integrity sha512-vlJX+vibR6Mb9eX/InK28wiMZA4rO0qWzvMaCklJSkXw18XOx7yj8WZ65DOeol6eD9MzkZdEuJtCK+wwv7K0sA== "@sinonjs/commons@^1.7.0": version "1.8.2" diff --git a/trace-viewer/package-lock.json b/trace-viewer/package-lock.json index d39eb93..5739670 100644 --- a/trace-viewer/package-lock.json +++ b/trace-viewer/package-lock.json @@ -11,7 +11,7 @@ "@fortawesome/fontawesome-svg-core": "^6.2.1", "@fortawesome/free-solid-svg-icons": "^6.2.1", "@fortawesome/react-fontawesome": "^0.2.0", - "@sigmacomputing/plugin": "^1.0.5", + "@sigmacomputing/plugin": "^1.1.1", "@testing-library/jest-dom": "^5.16.4", "@testing-library/react": "^13.2.0", "@testing-library/user-event": "^13.5.0", @@ -2913,12 +2913,13 @@ "license": "MIT" }, "node_modules/@sigmacomputing/plugin": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@sigmacomputing/plugin/-/plugin-1.0.5.tgz", - "integrity": "sha512-82/D0t8JId1qxq6kG48n0/zBbygsyNPxa3VNPZJSi9xAFbPsJ+CoQE4dK8sjshmmk9zix4ff/GGKm0EFcOxcPA==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@sigmacomputing/plugin/-/plugin-1.1.1.tgz", + "integrity": "sha512-vlJX+vibR6Mb9eX/InK28wiMZA4rO0qWzvMaCklJSkXw18XOx7yj8WZ65DOeol6eD9MzkZdEuJtCK+wwv7K0sA==", + "license": "MIT", "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "node_modules/@sinclair/typebox": { @@ -17537,9 +17538,9 @@ "integrity": "sha512-WiBSI6JBIhC6LRIsB2Kwh8DsGTlbBU+mLRxJmAe3LjHTdkDpwIbEOZgoXBbZilk/vlfjK8i6nKRAvIRn1XaIMw==" }, "@sigmacomputing/plugin": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@sigmacomputing/plugin/-/plugin-1.0.5.tgz", - "integrity": "sha512-82/D0t8JId1qxq6kG48n0/zBbygsyNPxa3VNPZJSi9xAFbPsJ+CoQE4dK8sjshmmk9zix4ff/GGKm0EFcOxcPA==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@sigmacomputing/plugin/-/plugin-1.1.1.tgz", + "integrity": "sha512-vlJX+vibR6Mb9eX/InK28wiMZA4rO0qWzvMaCklJSkXw18XOx7yj8WZ65DOeol6eD9MzkZdEuJtCK+wwv7K0sA==", "requires": {} }, "@sinclair/typebox": { diff --git a/trace-viewer/package.json b/trace-viewer/package.json index fcfb6e9..ea3cc9a 100644 --- a/trace-viewer/package.json +++ b/trace-viewer/package.json @@ -6,7 +6,7 @@ "@fortawesome/fontawesome-svg-core": "^6.2.1", "@fortawesome/free-solid-svg-icons": "^6.2.1", "@fortawesome/react-fontawesome": "^0.2.0", - "@sigmacomputing/plugin": "^1.0.5", + "@sigmacomputing/plugin": "^1.1.1", "@testing-library/jest-dom": "^5.16.4", "@testing-library/react": "^13.2.0", "@testing-library/user-event": "^13.5.0", diff --git a/trace-viewer/src/App.js b/trace-viewer/src/App.js index f6104f4..1563c94 100644 --- a/trace-viewer/src/App.js +++ b/trace-viewer/src/App.js @@ -4,7 +4,6 @@ import 'pretty-print-json/css/pretty-print-json.dark-mode.min.css'; import { useConfig, useEditorPanelConfig, - useElementColumns, useElementData, } from "@sigmacomputing/plugin"; import WaterfallChart from './WaterfallChart'; @@ -43,7 +42,6 @@ function App() { { name: "Tags", type: "column", source: "source", allowMultiple: false }, ]); const config = useConfig(); - const columnInfo = useElementColumns(config.source); const data = useElementData(config.source); const trace_id_column = config["Trace ID"]; diff --git a/trace-viewer/src/WaterfallChart/DetailedTraceSummary/MiniTraceViewer.js b/trace-viewer/src/WaterfallChart/DetailedTraceSummary/MiniTraceViewer.js index 430de0b..bbc15f5 100644 --- a/trace-viewer/src/WaterfallChart/DetailedTraceSummary/MiniTraceViewer.js +++ b/trace-viewer/src/WaterfallChart/DetailedTraceSummary/MiniTraceViewer.js @@ -4,7 +4,7 @@ import React from 'react'; // import { formatDuration } from '../../util/timestamp'; import { formatDuration } from './util/timestamp'; // import { getServiceNameColor } from '../../util/color'; -import { getServiceNameColor, getColorFromSpan } from './util/color'; +import { getColorFromSpan } from './util/color'; const propTypes = { startTs: PropTypes.number.isRequired, diff --git a/trace-viewer/src/WaterfallChart/DetailedTraceSummary/Timeline/TimelineSpanData.js b/trace-viewer/src/WaterfallChart/DetailedTraceSummary/Timeline/TimelineSpanData.js index 7272548..f64936e 100644 --- a/trace-viewer/src/WaterfallChart/DetailedTraceSummary/Timeline/TimelineSpanData.js +++ b/trace-viewer/src/WaterfallChart/DetailedTraceSummary/Timeline/TimelineSpanData.js @@ -2,8 +2,7 @@ import PropTypes from 'prop-types'; import React from 'react'; import { prettyPrintJson } from 'pretty-print-json'; -import ServiceNameBadge from './ServiceNameBadge'; -import { getServiceNameColor, getColorFromSpan } from '../util/color'; +import { getColorFromSpan } from '../util/color'; import { detailedSpanPropTypes } from '../prop-types'; const propTypes = { @@ -11,22 +10,6 @@ const propTypes = { span: detailedSpanPropTypes.isRequired, }; -// Parse string values if objects, to display better objects instead of plain strings. -const parseTagsData = (tags) => { - let parsedTags = {}; - - Object.keys(tags).forEach( tagKey => { - try { - const parsedTagValue = JSON.parse(tags[tagKey]); - parsedTags[tagKey] = parsedTagValue; - } catch(e) { - parsedTags[tagKey] = tags[tagKey]; - } - }); - - return parsedTags; -} - // Render span details info const renderInfo = (span, showSpanDetailTitle, spanDetail) => { //console.log("TSD; span: ", span, spanDetail); @@ -48,8 +31,8 @@ const renderInfo = (span, showSpanDetailTitle, spanDetail) => {
diff --git a/trace-viewer/src/WaterfallChart/DetailedTraceSummary/Timeline/index.js b/trace-viewer/src/WaterfallChart/DetailedTraceSummary/Timeline/index.js
index 83c3c4f..ddf5852 100644
--- a/trace-viewer/src/WaterfallChart/DetailedTraceSummary/Timeline/index.js
+++ b/trace-viewer/src/WaterfallChart/DetailedTraceSummary/Timeline/index.js
@@ -41,9 +41,9 @@ class Timeline extends React.Component {
const { spans } = this.props.traceSummary
console.log("found spans", spans);
this.spanRefs = new Map();
- spans.map((span) => {
- this.spanRefs[span.spanId] = React.createRef()
- })
+ spans.forEach((span) => {
+ this.spanRefs[span.spanId] = React.createRef();
+ });
}
componentDidMount() {
@@ -135,12 +135,12 @@ class Timeline extends React.Component {
// console.log("setDataOpenedSpans; spanIdArr: ", spanIdArr);
let dataOpenedSpans = {}
- spanIdArr.map((spanId) => {
+ spanIdArr.forEach((spanId) => {
dataOpenedSpans = {
...dataOpenedSpans,
[spanId]: true,
- }
- })
+ };
+ });
this.setState({ dataOpenedSpans })
}
@@ -214,7 +214,6 @@ class Timeline extends React.Component {
calculateChildsSpanMeasures = (span) => {
const { spans } = this.props.traceSummary
let measures = []
- let left
let childSpan
diff --git a/vanilla-js-example/package.json b/vanilla-js-example/package.json
index 230c188..4542c69 100644
--- a/vanilla-js-example/package.json
+++ b/vanilla-js-example/package.json
@@ -12,7 +12,7 @@
"vite": "^5.4.1"
},
"dependencies": {
- "@sigmacomputing/plugin": "^1.0.5",
+ "@sigmacomputing/plugin": "^1.1.1",
"react": "^18.3.1"
}
}
diff --git a/vanilla-js-example/yarn.lock b/vanilla-js-example/yarn.lock
index 5411292..16e9429 100644
--- a/vanilla-js-example/yarn.lock
+++ b/vanilla-js-example/yarn.lock
@@ -197,10 +197,10 @@
resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.21.3.tgz#4115233aa1bd5a2060214f96d8511f6247093212"
integrity sha512-fOvu7PCQjAj4eWDEuD8Xz5gpzFqXzGlxHZozHP4b9Jxv9APtdxL6STqztDzMLuRXEc4UpXGGhx029Xgm91QBeA==
-"@sigmacomputing/plugin@^1.0.5":
- version "1.0.5"
- resolved "https://registry.yarnpkg.com/@sigmacomputing/plugin/-/plugin-1.0.5.tgz#531e0bc24c48f0b073444fe476d73d8c7cdce729"
- integrity sha512-82/D0t8JId1qxq6kG48n0/zBbygsyNPxa3VNPZJSi9xAFbPsJ+CoQE4dK8sjshmmk9zix4ff/GGKm0EFcOxcPA==
+"@sigmacomputing/plugin@^1.1.1":
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/@sigmacomputing/plugin/-/plugin-1.1.1.tgz#a9f92b609abf4324f5707be509ebf6aee55ece37"
+ integrity sha512-vlJX+vibR6Mb9eX/InK28wiMZA4rO0qWzvMaCklJSkXw18XOx7yj8WZ65DOeol6eD9MzkZdEuJtCK+wwv7K0sA==
"@types/estree@1.0.5":
version "1.0.5"