manifold/common/util
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
..
algos.ts 🧾 Limit orders! (#495) 2022-07-10 13:05:44 -05:00
array.ts Embed market: dynamically adjust graph height 2022-03-24 12:03:17 -05:00
clean-username.ts Clean up unclean user names (#543) 2022-06-18 14:31:39 -07:00
format.ts show 2 decimal places for fees 2022-06-17 16:28:25 -05:00
math.ts 🧾 Limit orders! (#495) 2022-07-10 13:05:44 -05:00
object.ts Liquidity withdrawal (#457) 2022-06-08 13:00:49 -05:00
parse.ts Rich content (#620) 2022-07-13 11:58:22 -07:00
promise.ts Fix leaderboard out of memory error with batchedWaitAll instead of Promise.all 2022-03-07 13:45:56 -08:00
random.ts Add tsconfig, more linting to common package (#324) 2022-05-25 17:12:36 -07:00
slugify.ts formatting 2022-01-10 17:52:03 -06:00
time.ts Add weekly activiation rate 2022-04-19 01:47:58 -05:00