This is an automated email from the ASF dual-hosted git repository. rusackas pushed a commit to branch handlebars-helpers-rebased in repository https://gitbox.apache.org/repos/asf/superset.git
commit 89e2a75db54b702d6813895b13565fdd298d54c8 Author: Ville Brofeldt <[email protected]> AuthorDate: Wed May 18 06:46:16 2022 +0300 feat(plugin-chart-handlebars): add common helpers --- superset-frontend/package-lock.json | 49 +++++++++++++++++++++- .../plugins/plugin-chart-handlebars/package.json | 5 ++- 2 files changed, 50 insertions(+), 4 deletions(-) diff --git a/superset-frontend/package-lock.json b/superset-frontend/package-lock.json index 6ab0665b56..e6ea338b78 100644 --- a/superset-frontend/package-lock.json +++ b/superset-frontend/package-lock.json @@ -24983,6 +24983,12 @@ "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.9.tgz", "integrity": "sha512-xz39Sb4+OaTsULgUERcCk+TJj8ylkL4aSVDQiX/ksxbELSqwkgt4d4RD7fovIdgJGSuNYqwZEiVjYY5l0ask+Q==" }, + "node_modules/currencyformatter.js": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/currencyformatter.js/-/currencyformatter.js-1.0.5.tgz", + "integrity": "sha1-+MbZRdzmtn70j0dRaGEajZXJx14=", + "peer": true + }, "node_modules/cyclist": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-1.0.1.tgz", @@ -55371,7 +55377,8 @@ "version": "0.0.0", "license": "Apache-2.0", "dependencies": { - "handlebars": "^4.7.7" + "handlebars": "^4.7.7", + "just-handlebars-helpers": "^1.0.19" }, "devDependencies": { "@types/jest": "^26.0.0", @@ -55389,6 +55396,23 @@ "react-dom": "^16.13.1" } }, + "plugins/plugin-chart-handlebars/node_modules/just-handlebars-helpers": { + "version": "1.0.19", + "resolved": "https://registry.npmjs.org/just-handlebars-helpers/-/just-handlebars-helpers-1.0.19.tgz", + "integrity": "sha512-E+0eUn5xKfBAoU6mF3QbGZ939PZDw7RYI6AMTpRQtesRH2lZXjXaOqHzJ2nbHnDVmxNQM453sXFnMpd/uaLkKg==", + "peerDependencies": { + "currencyformatter.js": ">= 1.0.4 < 2", + "handlebars": ">= 3.*", + "moment": ">= 2.22.0 < 3", + "sprintf-js": ">= 1.1.1 < 2" + } + }, + "plugins/plugin-chart-handlebars/node_modules/sprintf-js": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz", + "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==", + "peer": true + }, "plugins/plugin-chart-pivot-table": { "name": "@superset-ui/plugin-chart-pivot-table", "version": "0.18.25", @@ -68176,7 +68200,22 @@ "@types/jest": "^26.0.0", "@types/lodash": "^4.14.149", "handlebars": "^4.7.7", - "jest": "^26.0.1" + "jest": "^26.0.1", + "just-handlebars-helpers": "*" + }, + "dependencies": { + "just-handlebars-helpers": { + "version": "1.0.19", + "resolved": "https://registry.npmjs.org/just-handlebars-helpers/-/just-handlebars-helpers-1.0.19.tgz", + "integrity": "sha512-E+0eUn5xKfBAoU6mF3QbGZ939PZDw7RYI6AMTpRQtesRH2lZXjXaOqHzJ2nbHnDVmxNQM453sXFnMpd/uaLkKg==", + "requires": {} + }, + "sprintf-js": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz", + "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==", + "peer": true + } } }, "@superset-ui/plugin-chart-pivot-table": { @@ -75266,6 +75305,12 @@ "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.9.tgz", "integrity": "sha512-xz39Sb4+OaTsULgUERcCk+TJj8ylkL4aSVDQiX/ksxbELSqwkgt4d4RD7fovIdgJGSuNYqwZEiVjYY5l0ask+Q==" }, + "currencyformatter.js": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/currencyformatter.js/-/currencyformatter.js-1.0.5.tgz", + "integrity": "sha1-+MbZRdzmtn70j0dRaGEajZXJx14=", + "peer": true + }, "cyclist": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-1.0.1.tgz", diff --git a/superset-frontend/plugins/plugin-chart-handlebars/package.json b/superset-frontend/plugins/plugin-chart-handlebars/package.json index da88ada90b..dd88786569 100644 --- a/superset-frontend/plugins/plugin-chart-handlebars/package.json +++ b/superset-frontend/plugins/plugin-chart-handlebars/package.json @@ -26,7 +26,8 @@ "access": "public" }, "dependencies": { - "handlebars": "^4.7.7" + "handlebars": "^4.7.7", + "just-handlebars-helpers": "^1.0.19" }, "peerDependencies": { "@superset-ui/chart-controls": "*", @@ -39,8 +40,8 @@ "react-dom": "^16.13.1" }, "devDependencies": { - "@types/lodash": "^4.14.149", "@types/jest": "^26.0.0", + "@types/lodash": "^4.14.149", "jest": "^26.0.1" } }
