{"_id":"@adnit/superset-google-charts","name":"@adnit/superset-google-charts","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@adnit/superset-google-charts","version":"0.1.0","description":"Superset Google Charts plugin","sideEffects":false,"main":"lib/index.js","module":"esm/index.js","scripts":{"build":"npm run build-cjs && npm run build-esm && npm run ts-types","build-cjs":"babel src --extensions \".ts,.tsx,.js,.jsx\" --copy-files --out-dir lib","build-clean":"npm run clean && npm run build","build-esm":"BABEL_OUTPUT=esm babel src --extensions \".ts,.tsx,.js,.jsx\" --copy-files --out-dir esm","dev":"BABEL_OUTPUT=esm babel src --extensions \".ts,.tsx,.js,.jsx\" --watch --copy-files --out-dir esm","prebuild":"rimraf {lib,esm,tsconfig.tsbuildinfo}","postbuild":"npm run test","ts-types":"tsc --build","test":"jest"},"author":{"name":"adnit"},"publishConfig":{"access":"public"},"dependencies":{"json5":"^2.2.3","react-ace":"^11.0.1","react-google-charts":"^4.0.1"},"peerDependencies":{"@airbnb/config-babel":"^2.0.1","@superset-ui/chart-controls":"*","@superset-ui/core":"*","react":"^16.13.1"},"devDependencies":{"@babel/cli":"^7.16.0","@types/jest":"^26.0.4","jest":"^26.6.3","rimraf":"^3.0.2","typescript":"^4.1.2"},"_id":"@adnit/superset-google-charts@0.1.0","gitHead":"ddcf1ff7e270e8db79a6691eac6a28d3e12b9e6d","types":"./lib/index.d.ts","_nodeVersion":"18.20.1","_npmVersion":"10.5.0","dist":{"integrity":"sha512-hmhbFQE0Qn9cfJHJkFrU7i7c8HCEIOFwFYw3u531LF6/Q65GET3Lt1Qr+JiPkzDMzt9hyvNi3ZlmnWynaoH/SA==","shasum":"18fd182bb4385b3cd8a45c931016979119700da8","tarball":"https://registry.npmjs.org/@adnit/superset-google-charts/-/superset-google-charts-0.1.0.tgz","fileCount":44,"unpackedSize":307657,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClgvqr5Vd/qsoz5J/b2/fg70lhAS+wN0QT7tC/ZUYDDQIgWpBs5R5VsKaAcp5bMn37OIcUszNBJ1MRDyT+3tlyJoE="}]},"_npmUser":{"name":"adnit","email":"adnitkamberi.rks@gmail.com"},"directories":{},"maintainers":[{"name":"adnit","email":"adnitkamberi.rks@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/superset-google-charts_0.1.0_1713624469106_0.20614821278592133"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-20T14:47:48.976Z","0.1.0":"2024-04-20T14:47:49.337Z","modified":"2024-04-20T14:47:49.644Z"},"maintainers":[{"name":"adnit","email":"adnitkamberi.rks@gmail.com"}],"description":"Superset Google Charts plugin","author":{"name":"adnit"},"readme":"# @adnit/superset-google-charts\n\nThis is the Superset Google Charts plugin Superset Chart Plugin.\n\n### Usage\n\nTo build the plugin, run the following commands:\n\n```\nnpm ci\nnpm run build\n```\n\nAlternatively, to run the plugin in development mode (=rebuilding whenever changes are made), start the dev server with the following command:\n\n```\nnpm run dev\n```\n\nTo add the package to Superset, go to the `superset-frontend` subdirectory in your Superset source folder (assuming both the `@adnit/superset-google-charts` plugin and `superset` repos are in the same root directory) and run\n```\nnpm i -S ../../@adnit/superset-google-charts\n```\n\nIf your Superset plugin exists in the `superset-frontend` directory and you wish to resolve TypeScript errors about `@superset-ui/core` not being resolved correctly, add the following to your `tsconfig.json` file:\n\n```\n\"references\": [\n  {\n    \"path\": \"../../packages/superset-ui-chart-controls\"\n  },\n  {\n    \"path\": \"../../packages/superset-ui-core\"\n  }\n]\n```\n\nYou may also wish to add the following to the `include` array in `tsconfig.json` to make Superset types available to your plugin:\n\n```\n\"../../types/**/*\"\n```\n\nFinally, if you wish to ensure your plugin `tsconfig.json` is aligned with the root Superset project, you may add the following to your `tsconfig.json` file:\n\n```\n\"extends\": \"../../tsconfig.json\",\n```\n\nAfter this edit the `superset-frontend/src/visualizations/presets/MainPreset.js` and make the following changes:\n\n```js\nimport { SupersetGoogleCharts } from '@adnit/superset-google-charts';\n```\n\nto import the plugin and later add the following to the array that's passed to the `plugins` property:\n```js\nnew SupersetGoogleCharts().configure({ key: '@adnit/superset-google-charts' }),\n```\n\nAfter that the plugin should show up when you run Superset, e.g. the development server:\n\n```\nnpm run dev-server\n```\n","readmeFilename":"README.md"}