about summary refs log tree commit diff
path: root/src/view/com/composer/text-input/web
Commit message (Collapse)AuthorAgeFilesLines
* run `yarn lint --fix` (#9013)Samuel Newman2025-09-092-2/+2
|
* Close web mention suggestions popup on `Escape` (#8605)Samuel Newman2025-08-281-174/+139
| | | | | | | | | | | | | * alf web typeahead * fix type error * fix escape behaviour * change selection on hover * rm React. * undo random change
* Upgrade prettier to 3.6 (#8558)Samuel Newman2025-06-231-2/+2
| | | | | | | * upgrade prettier * run prettier * more files
* Keep all radix dependencies aligned by using single package (#8219)Samuel Newman2025-04-242-6/+42
| | | | | | | * keep all radix deps aligned by using single package * import directly from `radix-ui` or `radix-ui/internal` * prevent radix leaking into native build
* Add check to composer user autocomplete (#8253)Eric Bailey2025-04-211-39/+81
| | | | | * Add check to composer autocomplete web * Add check to composer autocomplete mobile
* Preload emoji picker data for reactions on web (#8079)Eric Bailey2025-03-281-0/+24
| | | | | * Preload emoji picker data for reactions on web * Sort imports
* Refine accessibilityHint (#7554)Minseo Lee2025-02-111-2/+2
| | | | | | | | | | | | | | | * `accessibilityHint` * accessibilityHint * Update Co-Authored-By: jason-me <mail@jason-hester.me> * Update LoginForm.tsx --------- Co-authored-by: jason-me <mail@jason-hester.me>
* Fix Emoji picker focus (#7217)Eric Bailey2024-12-201-36/+51
| | | | | | | | | | | | | | | | | | | * Only portal the emoji picker where needed * Add optional portal prop to emoji picker * Use FocusScope to our advantage * Pare back, add guards, fix focus trap * Don't return focus to emoji button * Set DM input position on emoji insert * Let the caller determine next focus node --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Fix emoji picker position (#7146)Eric Bailey2024-12-171-34/+37
|
* Fix overflow issue on iOS autocomplete, among other things (#6611)Samuel Newman2024-11-211-2/+6
| | | | | | | | | | | * stop using ref in render * fix display name fallback on web * use unicode ellipsis for useGrapheme * fix overflow issue * sanitize handle/displayname on web
* Leverage jsx transform to remove unnecessary react imports and update eslint ↵Paul Coroneos2024-11-191-6/+1
| | | | | | | | | config (#6516) * update eslint config with jsx runtime * leverage jsx transform to remove unnecessary react imports and update eslint config * run yarn lint --fix to remove eslint disables related to react/prop-types that is now disabled
* Sort imports (#6009)dan2024-10-292-3/+3
| | | | | * Mark import sort/order/style rules as error * npm run lint -- --fix
* Move Dialogs to Radix (#5648)Samuel Newman2024-10-081-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use Redix FocusTrap (#5638) * Use Redix FocusTrap * force resolutions on radix libs * add focus guards * use @radix-ui/dismissable-layer for escape handling * fix banner menu keypress by using `Pressable` * add menu in dialog example to storybook --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com> * use DismissableLayer/FocusScope for composer * fix storybook dialog * thread Portal through Prompt and avatar/banner * fix dialog style regression * remove tamagui --------- Co-authored-by: Eric Bailey <git@esb.lol>
* [Neue] Handle emoji within custom font (#5449)Eric Bailey2024-09-241-7/+8
| | | | | | | | | | | | | * Support emoji in text with custom font * Add emoji support to elements that need it * Remove unused file causing lint failure * Fix a few more emoji locations * Couple more * No throw
* Add emoji picker to chat composer (#5196)Eric Bailey2024-09-061-4/+23
| | | | | Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> Co-authored-by: Adrov Igor <nucleartux@gmail.com>
* Fix: emoji picker closes when hitting spacebar (#4422) (#4441)Michał Gołda2024-07-111-21/+23
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Remove unnecessary `.trimEnd()` and fix facet detection (#3672)Hailey2024-04-241-3/+3
| | | | | | | | | | | | | | | * Fix link facet detection Exclude the trailing period from the link, similar as done in the atproto package * Fix JSON to text conversion The trimEnd() call was only needed because we were always appending \n\n at the end. Fix that by only adding line breaks after non-final paragraphs. * Detect paste reliably --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Use consistent avatar shape/defaults for labelers (#3257)Eric Bailey2024-03-191-1/+5
| | | | | | | | | | | | | | | | | | | | | | | * Add type: labeler to easy spots * Search and ProfileCard * Filter out of suggested follows * ComposeReplyTo * PReviewable avatar in posts * Lists * PostMeta * Notifications * Autocomplete * Straggler * Bump sdk
* Integrate new tag detection and regexes (#3063)Eric Bailey2024-03-012-9/+18
| | | | | | | | | | | * Integrate new tag detection and regexes * Bump SDK * Can use const * Clarify intent * Enhance clarity
* Add tags and mute words (#2968)Eric Bailey2024-02-261-0/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add bare minimum hashtags support (#2804) * Add bare minimum hashtags support As atproto/api already parses hashtags, this is as simple as hooking it up like link segments. This is "bare minimum" because: - Opening hashtag "#foo" is actually just a search for "foo" right now to work around #2491. - There is no integration in the composer. This hasn't stopped people from using hashtags already, and can be added later. - This change itself only had to hook things up - thank you for having already put the hashtag parsing in place. * Remove workaround for hash search not working now that it's fixed * Add RichTextTag and TagMenu * Sketch * Remove hackfix * Some cleanup * Sketch web * Mobile design * Mobile handling of tags search * Web only * Fix navigation woes * Use new callback * Hook it up * Integrate muted tags * Fix dropdown styles * Type error * Use close callback * Fix styles * Cleanup, install latest sdk * Quick muted words screen * Targets * Dir structure * Icons, list view * Move to dialog * Add removal confirmation * Swap copy * Improve checkboxees * Update matching, add tests * Moderate embeds * Create global dialogs concept again to prevent flashing * Add access from moderation screen * Highlight tags on native * Add web highlighting * Add close to web modal * Adjust close color * Rename toggles and adjust logic * Icon update * Load states * Improve regex * Improve regex * Improve regex * Revert link test * Hyphenated words * Improve matching * Enhance * Some tweaks * Muted words modal changes * Handle invalid handles, handle long tags * Remove main regex * Better test * Space/punct check drop to includes * Lowercase post text before comparison * Add better real world test case --------- Co-authored-by: Kisaragi Hiu <mail@kisaragi-hiu.com>
* New Web Layout (#2126)dan2024-01-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rip out virtualization on the web * Screw around with layout * onEndReached * scrollToOffset * Fix background * onScroll * Shell bars * More scroll * Fixes * position: sticky * Clean up 1 * Clean up 2 * Undo PagerWithHeader changes and fork it * Trim down both versions * Cleanup 3 * Memoize, lint * Don't scroll away modal or lightbox * Add content-visibility for rows * Fix composer * Fix types * Fix borked scroll animation * Fixes to layout * More FlatList parity * Layout fixes * Fix more layout * More layout * More layouts * Fix profile layout * Remove onScroll * Display: none inactive pages * Add an intermediate List component * Fix type * Add onScrolledDownChange * Port pager to use onScrolledDownChange * Fix on mobile * Don't pass down onScroll (replacement TBD) * Remove resetMainScroll * Replace onMainScroll with MainScrollProvider * Hook ScrollProvider to pager * Fix the remaining special case * Optimize a bit * Enforce that onScroll cannot be passed * Keep value updated even if no handler * Also memo it * Move the fork to List.web * Add scroll handler * Consolidate List props a bit * More stuff * Rm unused * Simplify * Make isScrolledDown work * Oops * Fixes * Hook up context scroll handlers * Scroll restore for tabs * Route scroll restoration POC * Fix some issues with restoration * Remove bad idea * Fix pager scroll restoration * Undo accidental locale changes * onContentSizeChange * Scroll to post * Better positioning * Layout fixes * Factor out navigation stuff * Cleanup * Oops * Cleanup * Fixes and types * Naming etc * Fix crash * Match FL semantics * Snap the header scroll on the web * Add body scroll lock * Scroll to top on search * Fix types * Typos * Fix Safari overflow * Fix search positioning * Add border * Patch react navigation * Revert "Patch react navigation" This reverts commit 62516ed9c20410d166e1582b43b656c819495ddc. * fixes * scroll * scrollbar * cleanup unrelated * undo unrel * flatter * Fix css * twk
* Internationalize more strings (#2440)Stanislas Signoud2024-01-091-1/+2
| | | Co-authored-by: Ansh <anshnanda10@gmail.com>
* emoji picker improvements (#2392)Hailey2024-01-021-57/+83
| | | | | | | | | | | | | * rework emoji picker * dynamic position * always prefer the left if it will fit * add accessibility label * Update EmojiPicker.web.tsx oops. remove accessibility from fake button
* Bump react-native to 0.73.1, expo to 50 (#2214)Eric Bailey2023-12-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Bump to react-native@0.73, bump expo@next Includes bumps for all expo deps and dev dependencies. Updates react-native patch and others, and removes the babel-preset-expo patch. * Remove duplicate Splash ref * Bump more deps * Properly install expo-notifications * Bump webview dep * Bump packages according to expo fix; remove pager-view patch as it is no longer needed * Don't access expo-camera from Web * Fix crypto dep on web * Fix some type issues * Build esnext modules to support dynamic imports --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Web composer improvements (#2257)Paul Frazee2023-12-201-1/+1
| | | | | * Keep the emoji picker in the tablet width (close #1880) * Support pressing tab to select a mention (close #1831)
* Restore autofocus on emoji drop down (#1821)Elie Michel2023-12-201-1/+1
|
* Add "Who can reply" controls [WIP] (#1954)Paul Frazee2023-12-101-1/+2
| | | | | | | | | | | | | | | | | | | | | * Add threadgating * UI improvements * More ui work * Remove comment * Tweak colors * Add missing keys * Tweak sizing * Only show composer option on non-reply * Flex wrap fix * Move the threadgate control to the top of the composer
* Autocomplete updates (react-query refactor) (#1911)Paul Frazee2023-11-151-4/+4
| | | | | | | | | | | | | * Unify the autocomplete code; drop fuse * Persist autocomplete results while they're in progress * Commit lockfile * Use ReturnType helper --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Composer update (react-query refactor) (#1899)Paul Frazee2023-11-141-6/+5
| | | | | | | | | * Move composer state to a context * Rework composer to use RQ --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Simplify loading emoji data (#1790)dan2023-11-012-2/+4
|
* fix link highlighting with mention present (#1544)Eric Bailey2023-09-271-7/+6
|
* make sure click events on the emoji picker don't bubble up to the mask (#1427)Ansh2023-09-111-15/+21
|
* Add ESLint React plugin (#1412)dan2023-09-071-1/+1
| | | | | * Add eslint-plugin-react * Enable display name rule
* Fix #1328 fix emoji picker scroll on firefox and chrome (#1332)Ansh2023-08-301-16/+36
| | | | | | | | | * fix emoji picker scroll on firefox and chrome * click outside emoji picker to dismiss * dynamically position emoji picker * dynamically placing picker
* Replace web editor link behavior (#1319)Paul Frazee2023-08-281-0/+106
| | | | | * Replace web editor link behavior (close #1293) (close #1292) * Update link decorator to match rich text link detector
* [APP-836] Emoji picker for web (#1254)Ansh2023-08-231-0/+81
| | | | | | | | | | | | | | | | | | | | | | | | | * add emoji-mart package for emoji dropdown picker * remove emoji picker modal * load emoji mart data not as part of the main bundle * remove @emoji-mart/data * setup emoji insertion with events * get emoji data from local static assets * close emoji picker after one emoji has been inserted * Switch emoji picker trigger to an icon * Update emoji-mart-data.js * make grabbing emoji data work on more browsers --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Make autocomplete pressable (#620)Ollie H2023-05-151-4/+8
|
* Add avatar to mobile autocomplete and create grapheme hook (#602)Ollie H2023-05-091-25/+5
| | | | | * Add avatar to mobile autocomplete and create grapheme hook * Remove comment, update filename, cut out redundant logic
* Visual improvements to web autocomplete (#591)Ollie H2023-05-081-14/+108
| | | | | * Visual improvements to web autocomplete * Remove stray styling
* Reorganize state models for clarity (#378)Paul Frazee2023-04-031-2/+2
|
* Move to expo and react-navigation (#288)Paul Frazee2023-03-131-0/+157
* WIP - adding expo * WIP - adding expo 2 * Fix tsc * Finish adding expo * Disable the 'require cycle' warning * Tweak plist * Modify some dependency versions to make expo happy * Fix icon fill * Get Web compiling for expo * 1.7 * Switch to react-navigation in expo2 (#287) * WIP Switch to react-navigation * WIP Switch to react-navigation 2 * WIP Switch to react-navigation 3 * Convert all screens to react navigation * Update BottomBar for react navigation * Update mobile menu to be react-native drawer * Fixes to drawer and bottombar * Factor out some helpers * Replace the navigation model with react-navigation * Restructure the shell folder and fix the header positioning * Restore the error boundary * Fix tsc * Implement not-found page * Remove react-native-gesture-handler (no longer used) * Handle notifee card presses * Handle all navigations from the state layer * Fix drawer behaviors * Fix two linking issues * Switch to our react-native-progress fork to fix an svg rendering issue * Get Web working with react-navigation * Refactor routes and navigation for a bit more clarity * Remove dead code * Rework Web shell to left/right nav to make this easier * Fix ViewHeader for desktop web * Hide profileheader back btn on desktop web * Move the compose button to the left nav * Implement reply prompt in threads for desktop web * Composer refactors * Factor out all platform-specific text input behaviors from the composer * Small fix * Update the web build to use tiptap for the composer * Tune up the mention autocomplete dropdown * Simplify the default avatar and banner * Fixes to link cards in web composer * Fix dropdowns on web * Tweak load latest on desktop * Add web beta message and feedback link * Fix up links in desktop web