manifold/web/components/feed
Sinclair Chen 9a11f55762
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 11:58:22 -07:00
..
activity-items.ts Rich content (#620) 2022-07-13 11:58:22 -07:00
category-selector.tsx exclude certain categories for new users 2022-06-21 10:01:51 -05:00
contract-activity.tsx 🧾 Limit orders! (#495) 2022-07-10 13:05:44 -05:00
copy-link-date-time.tsx Groups (#510) 2022-06-22 11:35:50 -05:00
feed-answer-comment-group.tsx Don't prompt to comment on FR bets, arrow spacing 2022-06-23 16:09:26 -05:00
feed-bets.tsx Fix erronous 0 prob shown in table 2022-07-11 15:53:13 -05:00
feed-comments.tsx Unused var 2022-07-13 09:13:34 -06:00
feed-items.tsx Rich content (#620) 2022-07-13 11:58:22 -07:00
feed-liquidity.tsx Add market liquidity addition events to bets feed (#578) 2022-06-26 19:00:02 -05:00
find-active-contracts.ts Groups (#510) 2022-06-22 11:35:50 -05:00