mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-30 19:41:46 +01:00
f71e011a86
* add hotkey base * add platform check * Rename CommandBox to CommandPalette * Add styled-components * Restructure CommandPalette and add Esc handling * Update utils.js * add search box * Add logic types * Implement base logic * Fix scroll prevention * Update logic and add goto command base with Fuse fuzzy serach * ux hotkey * Implement command (de)registration * minor fix * base UI * error message & hints * command groups UI * Add commands search * Make commands work * Prepare palette for fuzzy search and add basic labeling * ui adjustments * ui * Improve colors * switch to global command * Optimize resolution * global go to commands * abstract item selection logic to command palette * Update casing and types * Add conditional useCommands * Improve results * keyboard nav * keyboard nav fix * removed double fuse (synonyms broken) * Update style * Fix highlighting * Remove extra style * conditional go to commands * add mouse hover handling and rename functions * remove mac check * add more commands * added insights stub pages * Add command components * refactor logic * Update styling * Remove extraneous `input` * load custom dashboards to command palette * Add input styling * Add write icon * Refactor results * minor adjustments * add person search * remove papercups fully * fix input indexing * fix result executing empty * Add command grouping and improve navigation * add urls * make logic explicit * fix error with hadnler * Remove redundant border-top * add trend functions * personal api key stub * Add command palette toggle button * Fix things * fix personal api keys * copy api key to clipboard * Add toggle text * Improve palette UX and perform refactoring * Improve UX and add palette usage reporting * tests refactor * filter person list * refactor api person tests * add squeak * deprecate by_distinct_id & by_email person endpoints * Optimize squeak * fix typegen error * use new filters in frontend * Optimize squeak * key identifier refactor * fix mypy * removed unused code * Make custom command UI more coherent * Add calculator to palette * Use equal sign * Make palette button nicer * Add lodash back officially and show palette suggestions lodash is still used in a few places, but it was not in package.json. The reason this was working was that lodash is a dependency of some other depedencies, but this was fragile. It's still not ideal to use this, but at least this is now not a hack the way it was. * Remove isHint * Optimize graph time range command * Move command results grouping to Kea logic * Fix result focus autoshift * Improve palette result focusing * Adjust for window.posthog being optional * add test for third-party person filters * Remove styled-components in favor of .scss files * Remove redundant container class * Use insect (sic!) squeak instead of pig squeak * Show only unique palette results * Fix palette overlay * Add powerful command building protocol CommandFlow * Fix minor issues * Always show scope when flow active * Use custom label icon * Add feedback sharing command * block command input from being captured in screen recording at least until we can figure out how to capture this info in a privacy-preserving way * Hide palette button on narrow screens * Improve responsiveness * Fix palette feedback sending * Fix Esc handling * Add Message Sent info * Fix Message Sent info * Fix dashboard creation and null name handling * Rename Cy tests to JS convention * Add basic Cypress test * Address feedback Co-authored-by: Eric <eeoneric@gmail.com> Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
134 lines
5.0 KiB
JSON
134 lines
5.0 KiB
JSON
{
|
|
"name": "posthog",
|
|
"description": "",
|
|
"version": "0.0.0",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/posthog/posthog.git"
|
|
},
|
|
"author": "PostHog Inc.",
|
|
"bugs": {
|
|
"url": "https://github.com/posthog/posthog/issues"
|
|
},
|
|
"homepage": "https://github.com/posthog/posthog#readme",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"copy-scripts": "cp node_modules/posthog-js/dist/array.js* frontend/dist/; cp node_modules/rrweb/dist/rrweb.min.js frontend/dist/recorder.js",
|
|
"start": "concurrently -n WEBPACK,TYPEGEN -c blue,green \"yarn run start-http\" \"yarn run typegen:watch\"",
|
|
"start-http": "mkdir -p frontend/dist/ && cp -a frontend/public/* frontend/dist/ && npm run copy-scripts && webpack-dev-server --hotOnly",
|
|
"start-https": "mkdir -p frontend/dist/ && cp -a frontend/public/* frontend/dist/ && npm run copy-scripts && webpack-dev-server --hotOnly --https",
|
|
"build": "kea-typegen write && echo \"Building Webpack\" && NODE_ENV=production webpack --config webpack.config.js && cp -a frontend/public/* frontend/dist/ && npm run copy-scripts",
|
|
"prettier": "prettier --write \"./frontend/src/**/*.{js,css,scss}\"",
|
|
"prettier:check": "prettier --check \"./**/*.{js,ts,tsx,json,yml,css,scss}\"",
|
|
"eslint": "eslint frontend/src",
|
|
"eslint:github-action": "yarn run eslint",
|
|
"typegen:watch": "kea-typegen watch"
|
|
},
|
|
"dependencies": {
|
|
"@babel/core": "^7.10.4",
|
|
"@babel/runtime": "^7.10.4",
|
|
"@mariusandra/query-selector-shadow-dom": "0.7.2-posthog.2",
|
|
"@mariusandra/react-grid-layout": "0.18.3",
|
|
"@mariusandra/simmerjs": "0.7.1-posthog.1",
|
|
"@types/lodash": "^4.14.162",
|
|
"@types/react-syntax-highlighter": "^11.0.4",
|
|
"@types/zxcvbn": "^4.4.0",
|
|
"antd": "^4.1.1",
|
|
"babel-preset-nano-react-app": "^0.1.0",
|
|
"bootstrap": "^4.4.1",
|
|
"chart.js": "^2.9.3",
|
|
"core-js": "3.6.5",
|
|
"d3": "^5.15.0",
|
|
"d3-sankey": "^0.12.3",
|
|
"editor": "^1.0.0",
|
|
"eslint-plugin-cypress": "^2.11.1",
|
|
"expr-eval": "^2.0.2",
|
|
"funnel-graph-js": "^1.4.1",
|
|
"fuse.js": "^6.4.1",
|
|
"kea": "^2.2.0",
|
|
"kea-loaders": "^0.3.0",
|
|
"kea-localstorage": "^1.0.2",
|
|
"kea-router": "^0.4.0",
|
|
"kea-window-values": "^0.0.1",
|
|
"lodash": "^4.17.20",
|
|
"moment": "^2.24.0",
|
|
"posthog-js": "1.5.0-beta.0",
|
|
"posthog-js-lite": "^0.0.3",
|
|
"prop-types": "^15.7.2",
|
|
"query-string": "^6.13.1",
|
|
"react": "^16.13.1",
|
|
"react-datepicker": "^2.13.0",
|
|
"react-dom": "^16.12.0",
|
|
"react-draggable": "^4.2.0",
|
|
"react-redux": "^7.2.0",
|
|
"react-shadow": "^17.4.0",
|
|
"react-syntax-highlighter": "^13.5.1",
|
|
"react-toastify": "^5.5.0",
|
|
"redux": "^4.0.5",
|
|
"reselect": "^4.0.0",
|
|
"rrweb": "^0.9.7",
|
|
"rrweb-player": "^0.6.2",
|
|
"sass": "^1.26.2",
|
|
"zxcvbn": "^4.4.2"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
|
"@babel/plugin-transform-react-jsx": "^7.10.4",
|
|
"@babel/plugin-transform-runtime": "^7.10.4",
|
|
"@babel/preset-env": "7.10.4",
|
|
"@babel/preset-typescript": "^7.10.4",
|
|
"@hot-loader/react-dom": "^16.13.0",
|
|
"@types/react-dom": "^16.9.8",
|
|
"@types/react-redux": "^7.1.9",
|
|
"@typescript-eslint/eslint-plugin": "^3.6.0",
|
|
"@typescript-eslint/parser": "^3.6.0",
|
|
"autoprefixer": "^9.7.4",
|
|
"babel-eslint": "^10.1.0",
|
|
"babel-loader": "^8.0.6",
|
|
"babel-plugin-import": "^1.13.0",
|
|
"babel-plugin-kea": "^0.1.0",
|
|
"concurrently": "^5.3.0",
|
|
"css-loader": "^3.4.2",
|
|
"cssnano": "^4.1.10",
|
|
"cypress": "^4.11.0",
|
|
"cypress-terminal-report": "^1.4.1",
|
|
"eslint": "^7.8.0",
|
|
"eslint-config-prettier": "^6.11.0",
|
|
"eslint-plugin-prettier": "^3.1.4",
|
|
"eslint-plugin-react": "^7.20.3",
|
|
"file-loader": "^6.1.0",
|
|
"html-webpack-harddisk-plugin": "^1.0.1",
|
|
"html-webpack-plugin": "^4.4.1",
|
|
"husky": "~4.2.5",
|
|
"kea-typegen": "^0.3.0",
|
|
"lint-staged": "~10.2.13",
|
|
"mini-css-extract-plugin": "^0.11.0",
|
|
"nodemon": "^2.0.4",
|
|
"postcss-loader": "^3.0.0",
|
|
"prettier": "^2.1.1",
|
|
"react-hot-loader": "^4.12.21",
|
|
"sass-loader": "^10.0.1",
|
|
"style-loader": "^1.2.1",
|
|
"typescript": "^3.9.0",
|
|
"webpack": "^4.44.1",
|
|
"webpack-cli": "^3.3.12",
|
|
"webpack-dev-server": "^3.11.0"
|
|
},
|
|
"optionalDependencies": {
|
|
"fsevents": "^2.1.2"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,ts,tsx,json,yml,css,scss}": "prettier --write",
|
|
"*.{js,ts,tsx}": "eslint",
|
|
"*.py": [
|
|
"./env/bin/black -l 120",
|
|
"./env/bin/isort -m 3 --tc --fgw 8 --up -n -l 120"
|
|
]
|
|
}
|
|
}
|