hensei-web/components/common
Justin Edmund 4c949d9206
July 2023 Feature Release: Rich text editor and support for tagging objects (#340) (#341)
* Preliminary work around making an Element type

* Disabled Youtube code for now

* Clean description with DOMPurify

* Update GranblueElement with slug

* Add new api endpoint for searching all resources

* Add new variables and themes

* Remove fixed height on html tag for now

* Update README.md

We renamed the folders for character images from `chara-` to `character-`

* Add no results string

* Add tiptap and associated packages

* Update .gitignore

* Update components that use character images

* Add Editor component

This commit adds the bulk of the code for our new rich-text editor. The Editor component will be used to edit and display rich text via Tiptap.

* Add mention components

This adds the code required for us to mention objects in rich text fields like team descriptions.

The mentionSuggestion util fetches data from the server and serves it to MentionList for the user to select, then inserts it into the Editor as a token.

* Implements Editor in edit team and team footer

This implements the Editor component in EditPartyModal and PartyFooter. In PartyFooter, it is read-only.

* Remove min-width on tokens

* Add rudimentary conversion for old descriptions

Old descriptions just translate as a blob of text, so we try to insert some paragraphs and newlines to keep things presentable and lessen the load if users decide to update

* Add support for displaying jobs in MentionList

* Handle numbers and value=0 better

* Keep description reactive

This shouldn't work? The snapshot should be the reactive one? I don't fucking know

* Send locale to api with search query

* Delete getLocale.tsx

We didn't actually use this

* Fix build errors
2023-07-05 21:51:30 -07:00
..
Alert Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
Button Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
Command Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
ContextMenu Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
ContextMenuItem Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
Dialog Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
DialogContent Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
DialogFooter Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
DialogHeader Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
DropdownMenuContent Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
DropdownMenuGroup Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
DropdownMenuItem Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
DropdownMenuLabel Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
DurationInput Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
Editor July 2023 Feature Release: Rich text editor and support for tagging objects (#340) (#341) 2023-07-05 21:51:30 -07:00
Hovercard Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
Input Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
InputTableField July 2023 Feature Release: Rich text editor and support for tagging objects (#340) (#341) 2023-07-05 21:51:30 -07:00
Overlay Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
Popover Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
PopoverContent Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
Segment Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
SegmentedControl Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
Select Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
SelectGroup Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
SelectItem Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
SelectTableField Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
SelectWithInput Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
Slider Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
SliderTableField Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
Switch Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
SwitchTableField Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
TableField Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
Textarea Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
Toast Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
Token July 2023 Feature Release: Rich text editor and support for tagging objects (#340) (#341) 2023-07-05 21:51:30 -07:00
Tooltip Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00