2021-12-01 04:20:13 +00:00
|
|
|
{
|
2022-02-01 21:25:51 +00:00
|
|
|
"name": "web",
|
|
|
|
"version": "1.0.0",
|
2021-12-01 04:20:13 +00:00
|
|
|
"private": true,
|
|
|
|
"scripts": {
|
2022-07-24 07:26:38 +00:00
|
|
|
"serve": "next dev -p 3000",
|
|
|
|
"ts-watch": "tsc --watch --noEmit --incremental --preserveWatchOutput --pretty",
|
|
|
|
"dev": "concurrently -n NEXT,TS -c magenta,cyan \"yarn serve\" \"yarn ts-watch\"",
|
|
|
|
"devdev": "cross-env NEXT_PUBLIC_FIREBASE_ENV=DEV yarn dev",
|
2022-03-09 02:43:30 +00:00
|
|
|
"dev:dev": "yarn devdev",
|
2022-07-24 07:26:38 +00:00
|
|
|
"dev:the": "cross-env NEXT_PUBLIC_FIREBASE_ENV=THEOREMONE yarn dev",
|
|
|
|
"dev:local": "cross-env NEXT_PUBLIC_FUNCTIONS_URL=http://localhost:8080 yarn devdev",
|
2022-05-28 20:21:05 +00:00
|
|
|
"dev:emulate": "cross-env NEXT_PUBLIC_FIREBASE_EMULATE=TRUE yarn devdev",
|
2021-12-13 21:44:04 +00:00
|
|
|
"build": "next build",
|
2021-12-01 04:20:13 +00:00
|
|
|
"start": "next start",
|
2021-12-02 23:49:46 +00:00
|
|
|
"lint": "next lint",
|
2022-10-11 01:47:02 +00:00
|
|
|
"lint-fix": "next lint --fix",
|
2021-12-14 07:21:14 +00:00
|
|
|
"format": "npx prettier --write .",
|
2022-06-28 19:46:25 +00:00
|
|
|
"verify": "(cd .. && yarn verify)",
|
|
|
|
"verify:dir": "npx prettier --check .; yarn lint --max-warnings 0; tsc --pretty --project tsconfig.json --noEmit"
|
2021-12-01 04:20:13 +00:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2022-06-15 03:00:36 +00:00
|
|
|
"@amplitude/analytics-browser": "0.4.1",
|
2022-08-13 03:35:08 +00:00
|
|
|
"@floating-ui/react-dom-interactions": "0.9.2",
|
2022-05-16 11:38:16 +00:00
|
|
|
"@headlessui/react": "1.6.1",
|
2022-10-05 07:23:23 +00:00
|
|
|
"@hello-pangea/dnd": "16.0.0",
|
2022-09-30 15:27:42 +00:00
|
|
|
"@heroicons/react": "1.0.6",
|
2022-06-08 03:24:18 +00:00
|
|
|
"@react-query-firebase/firestore": "0.4.2",
|
2022-10-13 00:25:17 +00:00
|
|
|
"@tiptap/core": "2.0.0-beta.199",
|
|
|
|
"@tiptap/extension-character-count": "2.0.0-beta.199",
|
|
|
|
"@tiptap/extension-image": "2.0.0-beta.199",
|
|
|
|
"@tiptap/extension-link": "2.0.0-beta.199",
|
|
|
|
"@tiptap/extension-mention": "2.0.0-beta.199",
|
|
|
|
"@tiptap/extension-placeholder": "2.0.0-beta.199",
|
|
|
|
"@tiptap/html": "2.0.0-beta.199",
|
|
|
|
"@tiptap/react": "2.0.0-beta.199",
|
|
|
|
"@tiptap/starter-kit": "2.0.0-beta.199",
|
|
|
|
"@tiptap/suggestion": "2.0.0-beta.199",
|
2022-05-09 17:38:33 +00:00
|
|
|
"algoliasearch": "4.13.0",
|
2022-07-25 19:51:51 +00:00
|
|
|
"browser-image-compression": "2.0.0",
|
2021-12-10 18:06:51 +00:00
|
|
|
"clsx": "1.1.1",
|
2022-05-17 04:43:40 +00:00
|
|
|
"cors": "2.8.5",
|
2022-09-28 08:00:39 +00:00
|
|
|
"d3-array": "3.2.0",
|
|
|
|
"d3-axis": "3.0.0",
|
|
|
|
"d3-brush": "3.0.0",
|
|
|
|
"d3-scale": "4.0.2",
|
|
|
|
"d3-selection": "3.0.0",
|
2022-10-05 07:23:23 +00:00
|
|
|
"d3-shape": "3.1.0",
|
2021-12-13 06:55:28 +00:00
|
|
|
"dayjs": "1.10.7",
|
2022-08-31 01:54:29 +00:00
|
|
|
"firebase": "9.9.3",
|
2022-03-30 04:55:47 +00:00
|
|
|
"gridjs": "5.0.2",
|
|
|
|
"gridjs-react": "5.0.2",
|
2021-12-15 07:41:50 +00:00
|
|
|
"lodash": "4.17.21",
|
2022-06-23 08:07:52 +00:00
|
|
|
"nanoid": "^3.3.4",
|
2022-09-22 19:46:48 +00:00
|
|
|
"next": "12.3.1",
|
2022-05-23 21:16:56 +00:00
|
|
|
"node-fetch": "3.2.4",
|
2022-09-16 06:37:17 +00:00
|
|
|
"prosemirror-state": "1.4.1",
|
2022-10-13 18:23:42 +00:00
|
|
|
"rc-slider": "10.0.1",
|
2022-10-05 06:16:39 +00:00
|
|
|
"react": "18.2.0",
|
2022-05-09 17:38:33 +00:00
|
|
|
"react-confetti": "6.0.1",
|
2022-10-05 06:16:39 +00:00
|
|
|
"react-dom": "18.2.0",
|
|
|
|
"react-expanding-textarea": "2.3.6",
|
2022-06-15 03:00:36 +00:00
|
|
|
"react-hot-toast": "2.2.0",
|
2022-06-08 03:24:18 +00:00
|
|
|
"react-instantsearch-hooks-web": "6.24.1",
|
2022-09-28 03:24:42 +00:00
|
|
|
"react-masonry-css": "1.0.16",
|
2022-06-25 23:18:49 +00:00
|
|
|
"react-query": "3.39.0",
|
2022-08-12 03:18:01 +00:00
|
|
|
"react-twitter-embed": "4.0.4",
|
2022-10-14 04:44:20 +00:00
|
|
|
"stability-client": "1.6.1",
|
2022-07-24 03:37:34 +00:00
|
|
|
"string-similarity": "^4.0.4",
|
|
|
|
"tippy.js": "6.3.7"
|
2021-12-01 04:20:13 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2021-12-12 20:09:41 +00:00
|
|
|
"@tailwindcss/forms": "0.4.0",
|
2022-04-29 23:35:56 +00:00
|
|
|
"@tailwindcss/line-clamp": "^0.3.1",
|
2022-02-06 08:35:58 +00:00
|
|
|
"@tailwindcss/typography": "^0.5.1",
|
2022-09-28 03:24:42 +00:00
|
|
|
"@types/d3": "7.4.0",
|
2021-12-19 21:26:59 +00:00
|
|
|
"@types/lodash": "4.14.178",
|
2021-12-01 04:20:13 +00:00
|
|
|
"@types/node": "16.11.11",
|
2022-10-05 07:23:23 +00:00
|
|
|
"@types/react": "18.0.21",
|
|
|
|
"@types/react-dom": "18.0.6",
|
2022-06-25 23:18:49 +00:00
|
|
|
"@types/string-similarity": "^4.0.0",
|
2021-12-03 00:53:21 +00:00
|
|
|
"autoprefixer": "10.2.6",
|
2022-01-14 23:05:12 +00:00
|
|
|
"critters": "0.0.16",
|
2022-05-28 20:21:05 +00:00
|
|
|
"cross-env": "^7.0.3",
|
2022-08-13 00:49:08 +00:00
|
|
|
"csstype": "^3.1.0",
|
2022-05-10 21:49:24 +00:00
|
|
|
"eslint-config-next": "12.1.6",
|
2022-08-16 22:01:03 +00:00
|
|
|
"eslint-config-prettier": "8.5.0",
|
2022-03-24 16:28:36 +00:00
|
|
|
"next-sitemap": "^2.5.14",
|
2021-12-03 00:53:21 +00:00
|
|
|
"postcss": "8.3.5",
|
2022-02-11 18:40:22 +00:00
|
|
|
"prettier-plugin-tailwindcss": "^0.1.5",
|
2022-08-13 00:49:08 +00:00
|
|
|
"prop-types": "^15.8.1",
|
Rich content (#620)
* Add TipTap editor and renderer components
* Change market description editor to rich text
* Type description as JSON, fix string-based logic
- Delete make-predictions.tsx
- Delete feed logic that showed descriptions
* wip Fix API validation
* fix type error
* fix extension import (backend)
In firebase, typescript compiles imports into common js imports
like `const StarterKit = require("@tiptap/starter-kit")`
Even though StarterKit is exported from the cjs file, it gets imported
as undefined. But it magically works if we import *
If you're reading this in the future, consider replacing StarterKit with
the entire list of extensions.
* Stop load on fail create market, improve warning
* Refactor editor as hook / fix infinite submit bug
Move state of editor back up to parent
We have to do this later anyways to allow parent to edit
* Add images - display, paste + uploading
* add uploading state of image
* Fix placeholder, misc styling
min height, quote
* Fix appending to description
* code review fixes: rename, refactor, chop carets
* Add hint & upload button on new lines
- bump to Tailwind 3.1 for arbitrary variants
* clean up, run prettier
* rename FileButton to FileUploadButton
* add image extension as functions dependency
2022-07-13 18:58:22 +00:00
|
|
|
"tailwindcss": "3.1.6",
|
2022-05-22 07:35:43 +00:00
|
|
|
"tsc-files": "1.1.3"
|
2021-12-18 20:59:40 +00:00
|
|
|
},
|
|
|
|
"lint-staged": {
|
|
|
|
"*.{ts,tsx}": "tsc-files --noEmit --incremental false"
|
2021-12-01 04:20:13 +00:00
|
|
|
}
|
|
|
|
}
|