mirror of
https://github.com/BillyOutlast/posthog.git
synced 2026-02-04 11:11:24 +01:00
320 lines
14 KiB
JSON
320 lines
14 KiB
JSON
{
|
|
"name": "@posthog/frontend",
|
|
"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",
|
|
"engines": {
|
|
"node": ">=22 <23"
|
|
},
|
|
"packageManager": "pnpm@9.15.5+sha256.8472168c3e1fd0bff287e694b053fccbbf20579a3ff9526b6333beab8df65a8d",
|
|
"scripts": {
|
|
"copy-scripts": "mkdir -p dist/ && ./bin/copy-posthog-js",
|
|
"clean": "rm -rf dist && mkdir dist",
|
|
"build": "pnpm copy-scripts && pnpm build:esbuild",
|
|
"build:esbuild": "DEBUG=0 node ./build.mjs",
|
|
"build:products": "DEBUG=0 node build-products.mjs",
|
|
"build:tailwind": "pnpm --filter=@posthog/tailwind build",
|
|
"watch:tailwind": "pnpm --filter=@posthog/tailwind start",
|
|
"start": "if [ -n \"$SKIP_TYPEGEN\" ]; then pnpm start-no-typegen; else pnpm start-all; fi",
|
|
"start-all": "concurrently -n ESBUILD,TYPEGEN,TAILWIND -c yellow,green,blue \"pnpm start-http\" \"${SKIP_TYPEGEN:-pnpm run typegen:watch}\" \"pnpm watch:tailwind\"",
|
|
"start-no-typegen": "concurrently -n ESBUILD,TAILWIND -c yellow,green,blue \"pnpm start-http\" \"pnpm watch:tailwind\"",
|
|
"start-http": "pnpm clean && pnpm copy-scripts && pnpm build:esbuild --dev",
|
|
"start-docker": "pnpm start-http --host 0.0.0.0",
|
|
"typegen:check": "cd .. && NODE_OPTIONS=\"--max-old-space-size=16384\" kea-typegen check",
|
|
"typegen:clean": "cd .. && find frontend/src products common -type f -name '*Type.ts' -delete",
|
|
"typegen:watch": "cd .. && NODE_OPTIONS=\"--max-old-space-size=16384\" kea-typegen watch --delete --show-ts-errors --use-cache",
|
|
"typegen:write": "cd .. && NODE_OPTIONS=\"--max-old-space-size=16384\" kea-typegen write --delete --show-ts-errors --use-cache",
|
|
"schema:build:json": "ts-node ./bin/build-schema-json.mjs && prettier --write ./src/queries/schema.json",
|
|
"test": "SHARD_IDX=${SHARD_INDEX:-1}; SHARD_TOTAL=${SHARD_COUNT:-1}; echo $SHARD_IDX/$SHARD_TOTAL; pnpm build:products && jest --testPathPattern='(frontend/|products/|common/)' --runInBand --forceExit --shard=$SHARD_IDX/$SHARD_TOTAL",
|
|
"jest": "pnpm build:products && jest",
|
|
"prettier": "prettier --write \"../{cypress,products,frontend/src}/**/*.{js,mjs,ts,tsx,json,yaml,yml,css,scss}\"",
|
|
"prettier:check": "prettier --check \"../{cypress,products,frontend/src}/**/*.{js,mjs,ts,tsx,json,yaml,yml,css,scss}\"",
|
|
"typescript:check": "tsc --noEmit && echo \"No errors reported by tsc.\"",
|
|
"lint": "pnpm lint:js && pnpm lint:css",
|
|
"lint:js": "cd .. && oxlint --quiet",
|
|
"lint:css": "stylelint \"../(frontend|products)/**/*.{css,scss}\" --ignore-path=frontend/.stylelintignore",
|
|
"format": "cd .. && oxlint --fix --fix-suggestions --fix-dangerously --quiet && pnpm prettier -w \"./{cypress,products,frontend/src}/**/*.{js,mjs,ts,tsx,json,yaml,yml,css,scss}\"",
|
|
"visualize-toolbar-bundle": "pnpm exec esbuild-visualizer --metadata ./toolbar-esbuild-meta.json --filename=toolbar-esbuild-bundle-visualization.html",
|
|
"check-toolbar-csp-eval": "node ./bin/check-toolbar-csp-eval.mjs",
|
|
"start-vite": "concurrently -n VITE,TYPEGEN,TAILWIND -c green,blue,yellow \"vite --host 0.0.0.0\" \"${SKIP_TYPEGEN:-pnpm run typegen:watch}\" \"pnpm watch:tailwind\""
|
|
},
|
|
"dependencies": {
|
|
"@babel/runtime": "^7.24.0",
|
|
"@dagrejs/dagre": "^1.1.5",
|
|
"@dnd-kit/core": "^6.0.8",
|
|
"@dnd-kit/modifiers": "^6.0.1",
|
|
"@dnd-kit/sortable": "^7.0.2",
|
|
"@dnd-kit/utilities": "^3.2.1",
|
|
"@floating-ui/react": "^0.26.9",
|
|
"@lottiefiles/react-lottie-player": "^3.4.7",
|
|
"@medv/finder": "^4.0.2",
|
|
"@microlink/react-json-view": "^1.26.2",
|
|
"@microsoft/fetch-event-source": "^2.0.1",
|
|
"@monaco-editor/react": "4.6.0",
|
|
"@posthog/ee": "workspace:*",
|
|
"@posthog/esbuilder": "workspace:*",
|
|
"@posthog/hogvm": "workspace:*",
|
|
"@posthog/icons": "*",
|
|
"@posthog/plugin-scaffold": "^1.4.4",
|
|
"@posthog/products-actions": "workspace:*",
|
|
"@posthog/products-cohorts": "workspace:*",
|
|
"@posthog/products-dashboards": "workspace:*",
|
|
"@posthog/products-early-access-features": "workspace:*",
|
|
"@posthog/products-error-tracking": "workspace:*",
|
|
"@posthog/products-experiments": "workspace:*",
|
|
"@posthog/products-feature-flags": "workspace:*",
|
|
"@posthog/products-games": "workspace:*",
|
|
"@posthog/products-groups": "workspace:*",
|
|
"@posthog/products-links": "workspace:*",
|
|
"@posthog/products-llm-observability": "workspace:*",
|
|
"@posthog/products-logs": "workspace:*",
|
|
"@posthog/products-managed-migrations": "workspace:*",
|
|
"@posthog/products-messaging": "workspace:*",
|
|
"@posthog/products-notebooks": "workspace:*",
|
|
"@posthog/products-persons": "workspace:*",
|
|
"@posthog/products-product-analytics": "workspace:*",
|
|
"@posthog/products-replay": "workspace:*",
|
|
"@posthog/products-revenue-analytics": "workspace:*",
|
|
"@posthog/products-surveys": "workspace:*",
|
|
"@posthog/products-user-interviews": "workspace:*",
|
|
"@posthog/products-web-analytics": "workspace:*",
|
|
"@posthog/rrweb": "0.0.24",
|
|
"@posthog/rrweb-plugin-console-record": "0.0.24",
|
|
"@posthog/rrweb-types": "0.0.24",
|
|
"@posthog/tailwind": "workspace:*",
|
|
"@radix-ui/react-accordion": "^1.2.2",
|
|
"@radix-ui/react-context-menu": "^2.2.6",
|
|
"@radix-ui/react-dismissable-layer": "^1.1.10",
|
|
"@radix-ui/react-dropdown-menu": "^2.1.6",
|
|
"@radix-ui/react-popover": "^1.1.14",
|
|
"@radix-ui/react-slot": "^1.1.2",
|
|
"@radix-ui/react-tabs": "^1.1.12",
|
|
"@radix-ui/react-toggle-group": "^1.1.10",
|
|
"@react-hook/size": "^2.1.2",
|
|
"@stripe/react-stripe-js": "^2.8.0",
|
|
"@stripe/stripe-js": "^4.5.0",
|
|
"@tailwindcss/cli": "4.0.11",
|
|
"@testing-library/dom": ">=7.21.4",
|
|
"@tiptap/core": "^2.1.16",
|
|
"@tiptap/extension-document": "^2.1.16",
|
|
"@tiptap/extension-floating-menu": "^2.1.16",
|
|
"@tiptap/extension-placeholder": "^2.1.16",
|
|
"@tiptap/extension-table-of-contents": "^2.25.0",
|
|
"@tiptap/extension-task-item": "^2.1.16",
|
|
"@tiptap/extension-task-list": "^2.1.16",
|
|
"@tiptap/pm": "^2.1.16",
|
|
"@tiptap/react": "^2.1.16",
|
|
"@tiptap/starter-kit": "^2.1.16",
|
|
"@tiptap/suggestion": "^2.1.16",
|
|
"@types/lodash.debounce": "^4.0.9",
|
|
"@types/lodash.isequal": "^4.5.8",
|
|
"@types/md5": "^2.3.0",
|
|
"@types/react-transition-group": "^4.4.5",
|
|
"@types/react-virtualized": "^9.21.23",
|
|
"@vitejs/plugin-react": "^4.7.0",
|
|
"@xyflow/react": "^12.6.0",
|
|
"ajv": "^8.12.0",
|
|
"algoliasearch": "^4.22.1",
|
|
"buffer": "^6.0.3",
|
|
"chart.js": "^4.4.3",
|
|
"chartjs-adapter-dayjs-3": "^1.2.3",
|
|
"chartjs-plugin-annotation": "2.2.1",
|
|
"chartjs-plugin-crosshair": "^1.2.0",
|
|
"chartjs-plugin-datalabels": "^2.2.0",
|
|
"chartjs-plugin-stacked100": "^1.4.0",
|
|
"chartjs-plugin-trendline": "^2.1.2",
|
|
"chokidar": "^3.5.3",
|
|
"classnames": "^2.5.1",
|
|
"clsx": "^1.1.1",
|
|
"core-js": "^3.32.0",
|
|
"country-flag-emoji-polyfill": "^0.1.8",
|
|
"crypto-browserify": "^3.12.0",
|
|
"cva": "1.0.0-beta.3",
|
|
"d3": "^7.9.0",
|
|
"d3-sankey": "^0.12.3",
|
|
"dayjs": "1.11.11",
|
|
"dompurify": "^3.2.6",
|
|
"elkjs": "^0.10.0",
|
|
"emoji-regex": "^10.4.0",
|
|
"eventsource-parser": "^3.0.0",
|
|
"expr-eval": "^2.0.2",
|
|
"fast-deep-equal": "^3.1.3",
|
|
"fastpriorityqueue": "^0.7.5",
|
|
"fflate": "^0.7.4",
|
|
"frimousse": "^0.3.0",
|
|
"fuse.js": "^6.6.2",
|
|
"heatmap.js": "^2.0.5",
|
|
"hls.js": "^1.5.15",
|
|
"html-to-image": "^1.11.13",
|
|
"husky": "^7.0.4",
|
|
"idb": "^8.0.3",
|
|
"image-blob-reduce": "^4.1.0",
|
|
"kea": "^3.1.5",
|
|
"kea-forms": "^3.2.0",
|
|
"kea-loaders": "^3.1.1",
|
|
"kea-localstorage": "^3.1.0",
|
|
"kea-router": "^3.2.1",
|
|
"kea-subscriptions": "^3.0.1",
|
|
"kea-test-utils": "^0.2.4",
|
|
"kea-waitfor": "^0.2.1",
|
|
"kea-window-values": "^3.0.0",
|
|
"liquidjs": "^10.21.1",
|
|
"lodash.debounce": "^4.0.8",
|
|
"lodash.difference": "^4.5.0",
|
|
"lodash.isequal": "^4.5.0",
|
|
"lodash.merge": "^4.6.2",
|
|
"lodash.sortby": "^4.7.0",
|
|
"lodash.uniqby": "^4.7.0",
|
|
"maplibre-gl": "^3.5.1",
|
|
"marked": "^15.0.11",
|
|
"mathjax-full": "3.2.2",
|
|
"md5": "^2.3.0",
|
|
"monaco-editor": "^0.49.0",
|
|
"natural-orderby": "^3.0.2",
|
|
"openai": "^4.81.0",
|
|
"papaparse": "^5.4.1",
|
|
"pmtiles": "^2.11.0",
|
|
"posthog-js": "1.258.3",
|
|
"posthog-js-lite": "4.1.0",
|
|
"prettier": "^2.8.8",
|
|
"prop-types": "^15.7.2",
|
|
"protomaps-themes-base": "2.0.0-alpha.1",
|
|
"query-selector-shadow-dom": "^1.0.0",
|
|
"rc-trigger": "^5.2.5",
|
|
"re2js": "^0.4.1",
|
|
"react": "^18.2.0",
|
|
"react-data-grid": "7.0.0-beta.47",
|
|
"react-dom": "^18.2.0",
|
|
"react-draggable": "^4.2.0",
|
|
"react-email-editor": "^1.7.11",
|
|
"react-grid-layout": "^1.3.0",
|
|
"react-instantsearch": "^7.6.0",
|
|
"react-intersection-observer": "^9.5.3",
|
|
"react-markdown": "^5.0.3",
|
|
"react-modal": "^3.15.1",
|
|
"react-resizable": "^3.0.5",
|
|
"react-shadow": "^20.3.0",
|
|
"react-syntax-highlighter": "^15.5.0",
|
|
"react-textarea-autosize": "^8.3.3",
|
|
"react-toastify": "^8.2.0",
|
|
"react-transition-group": "^4.4.5",
|
|
"react-virtualized": "^9.22.5",
|
|
"resize-observer-polyfill": "^1.5.1",
|
|
"sass": "^1.26.2",
|
|
"simple-statistics": "^7.8.8",
|
|
"tailwind-merge": "^2.2.2",
|
|
"tailwindcss": "4.0.7",
|
|
"ts-pattern": "4.3",
|
|
"typescript": "5.2.2",
|
|
"use-debounce": "^9.0.3",
|
|
"use-resize-observer": "^8.0.0",
|
|
"vite": "^6.3.5",
|
|
"zxcvbn": "^4.4.2"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/parser": "^7.24.0",
|
|
"@babel/traverse": "^7.24.0",
|
|
"@parcel/packager-ts": "2.13.3",
|
|
"@parcel/transformer-typescript-types": "2.13.3",
|
|
"@storybook/addon-actions": "^7.6.4",
|
|
"@storybook/react": "^7.6.4",
|
|
"@storybook/testing-library": "^0.2.2",
|
|
"@storybook/types": "^7.6.4",
|
|
"@sucrase/jest-plugin": "^3.0.0",
|
|
"@testing-library/dom": ">=7.21.4",
|
|
"@testing-library/jest-dom": "^5.16.2",
|
|
"@testing-library/react": "^13.4.0",
|
|
"@testing-library/user-event": "^13.5.0",
|
|
"@types/chartjs-plugin-crosshair": "^1.1.1",
|
|
"@types/chartjs-plugin-trendline": "^1.0.4",
|
|
"@types/clone": "^2.1.1",
|
|
"@types/d3": "^7.4.3",
|
|
"@types/d3-sankey": "^0.12.4",
|
|
"@types/dompurify": "^3.0.3",
|
|
"@types/heatmap.js": "^2.0.41",
|
|
"@types/image-blob-reduce": "^4.1.1",
|
|
"@types/jest": "^29.5.12",
|
|
"@types/jest-image-snapshot": "^6.1.0",
|
|
"@types/lodash.difference": "^4.5.9",
|
|
"@types/lodash.merge": "^4.6.9",
|
|
"@types/lodash.sortby": "^4.7.9",
|
|
"@types/lodash.uniqby": "^4.7.9",
|
|
"@types/md5": "^2.3.0",
|
|
"@types/node": "^22.13.14",
|
|
"@types/papaparse": "^5.3.8",
|
|
"@types/pixelmatch": "^5.2.4",
|
|
"@types/pngjs": "^6.0.1",
|
|
"@types/prettier": "^2.7.3",
|
|
"@types/query-selector-shadow-dom": "^1.0.0",
|
|
"@types/react": "^17.0.39",
|
|
"@types/react-dom": "^18.2.8",
|
|
"@types/react-grid-layout": "^1.1.2",
|
|
"@types/react-modal": "^3.13.1",
|
|
"@types/react-resizable": "^3.0.4",
|
|
"@types/react-syntax-highlighter": "^15.5.7",
|
|
"@types/react-virtualized": "^9.21.23",
|
|
"@types/testing-library__jest-dom": "^5.14.5",
|
|
"@types/zxcvbn": "^4.4.0",
|
|
"axe-core": "^4.4.3",
|
|
"babel-plugin-import": "^1.13.0",
|
|
"caniuse-lite": "^1.0.30001689",
|
|
"concurrently": "^5.3.0",
|
|
"esbuild-visualizer": "^0.6.0",
|
|
"fake-indexeddb": "^6.0.1",
|
|
"fs-extra": "^10.0.0",
|
|
"givens": "^1.3.6",
|
|
"history": "^5.0.1",
|
|
"jest": "^29.7.0",
|
|
"jest-canvas-mock": "^2.4.0",
|
|
"jest-environment-jsdom": "^29.3.1",
|
|
"jest-image-snapshot": "^6.1.0",
|
|
"kea-typegen": "3.4.7",
|
|
"less": "^3.12.2",
|
|
"lint-staged": "~15.4.3",
|
|
"mockdate": "^3.0.5",
|
|
"msw": "^0.49.0",
|
|
"path-browserify": "^1.0.1",
|
|
"pixelmatch": "^5.3.0",
|
|
"pngjs": "^6.0.0",
|
|
"process": "^0.11.10",
|
|
"redis": "^4.6.13",
|
|
"safe-stable-stringify": "^2.4.3",
|
|
"stream-browserify": "^3.0.0",
|
|
"stylelint": "^15.11.0",
|
|
"stylelint-config-recess-order": "^4.3.0",
|
|
"stylelint-config-standard-scss": "^11.1.0",
|
|
"stylelint-order": "^6.0.3",
|
|
"sucrase": "^3.29.0",
|
|
"timekeeper": "^2.2.0",
|
|
"ts-clone-node": "^4.0.0",
|
|
"ts-json-schema-generator": "^v2.4.0-next.6",
|
|
"ts-node": "^10.9.1",
|
|
"whatwg-fetch": "^3.6.2"
|
|
},
|
|
"optionalDependencies": {
|
|
"fsevents": "^2.3.2"
|
|
},
|
|
"browserslist": {
|
|
"development": [
|
|
"last 2 chrome versions",
|
|
"last 2 firefox versions",
|
|
"last 2 edge versions"
|
|
],
|
|
"production": [
|
|
"defaults and not op_mini all"
|
|
]
|
|
},
|
|
"browser": {
|
|
"path": "path-browserify"
|
|
}
|
|
}
|