chore: Setup ai components package (#10095)
* chore: setup S2 AI components package
* fix all the lints
* cleanup
* fix lint
* add test, fix implementation, remove extra subpaths, split components
* fix ts
* fix build
* copy code and reduce new exports
* reduce diff
* undo
* fix all the things
* feat: messagesource/sourcelist/responsestatus (#10079)
* support custom typography on s2 disclosure
* initialize message source
* add numberbadge, cleanup, formatting
* more cleanup
* remove story
* minor fixes
* support t-shirt sizing
* add response status component
* move files to ai package
* fix imports
* fix lint
* fix formatting
* actually fix lint?
* move to correct storybook folder
* add exports
* feat: add MessageFeedback + UserMessage (#10086)
* fix: rebase commits + add stories
* feat: migrate MessageFeedback and UserMessage components to s2-ai package
* Apply suggestions from code review
Co-authored-by: Yihui Liao <44729383+yihuiliao@users.noreply.github.com>
* add missing file
---------
Co-authored-by: Yihui Liao <44729383+yihuiliao@users.noreply.github.com>
* fix install?
* Revert "fix install?"
This reverts commit 6f97b014313853754887f4580d0b38f34afaf86d.
* fix install...
* add messagesuggestionlist/messagesuggestion component
* fix format and lint
* cleanup
* fix lint
* more cleanup
* fix: convert MessageFeedback to RSP ToggleButtonGroup, address PR comments
* move stuff to peer deps instead of dep
* remove one more dep and update lockfile
* followup
* fix: remove modalities in favor of of percentage
* fix lint
* fix format
* add export
* pls fix the tests
* feat: Thread component (#10045)
* base setup, transferring the stuff from the prototypes repo
* add dynamic story
* more things to fix
* explorations
* add scroll to bottom button and scroll when new messages are added if near button
* use aria live to announce new items
* tentative column reverse investigation and update stories to reflect that
* handle keyboard navigation when using column reverse
* fix pageup/page down looping in column reverse
* force shift tab and tab to go to newest card on first enty
* make it so whenever you tab into the thread, you go to newest content regardless of prev focused key
* virtualized story and testing stuff
* announcement of new items only
* add streaming example
* make example more realistic and fine tune announcement behavior
* add thinking response status
* tried aria live on gridlist item
* only announce if in thread or in field
* only announce "new message" if user is in the thread, fix focus loss to body
* forgot a new option doc
* move to more RAC like API
* move to ai components repo
* clean up
* add tests
* fix 16/17?
* update story to use available ai components
---------
Co-authored-by: Yihui Liao <44729383+yihuiliao@users.noreply.github.com>
Co-authored-by: Daniel P <daniel_pandyan@hotmail.com>
Co-authored-by: Daniel Lu <dl1644@gmail.com>