about summary refs log tree commit diff
path: root/src/view/com/composer/text-input
Commit message (Collapse)AuthorAgeFilesLines
* run `yarn lint --fix` (#9013)Samuel Newman2025-09-093-3/+3
|
* Close web mention suggestions popup on `Escape` (#8605)Samuel Newman2025-08-284-268/+248
| | | | | | | | | | | | | * alf web typeahead * fix type error * fix escape behaviour * change selection on hover * rm React. * undo random change
* don't override backspace if alt or meta key (#8855)Samuel Newman2025-08-151-1/+5
|
* Fix deletion of composed emojis in web composer (#8829)Arturo Fonseca2025-08-131-1/+20
|
* fix some auto complete issuesChenyu Huang2025-07-241-4/+5
|
* fix whitespace collapse (#8659)Samuel Newman2025-07-171-1/+3
|
* specify autocap (#8619)Samuel Newman2025-07-081-0/+3
|
* Reduce composer font size (#8591)Samuel Newman2025-06-301-1/+1
|
* Upgrade prettier to 3.6 (#8558)Samuel Newman2025-06-231-2/+2
| | | | | | | * upgrade prettier * run prettier * more files
* new arch (#8295)hailey2025-06-121-7/+7
| | | | | | Co-authored-by: Samuel Newman <mozzius@protonmail.com> Co-authored-by: Charlotte Som <charlotte@som.codes> Co-authored-by: Hailey <me@haileyok.com>
* Keep all radix dependencies aligned by using single package (#8219)Samuel Newman2025-04-243-9/+45
| | | | | | | * keep all radix deps aligned by using single package * import directly from `radix-ui` or `radix-ui/internal` * prevent radix leaking into native build
* Tweak alignment (#8258)Eric Bailey2025-04-211-5/+19
|
* Add check to composer user autocomplete (#8253)Eric Bailey2025-04-212-84/+154
| | | | | * 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
* Revert "Small revert to be on the safe side (#7932)" (#7958)Samuel Newman2025-03-242-3/+5
| | | This reverts commit 0014b8b9cd0a5858ea7fad31361e5b611296e912.
* Small revert to be on the safe side (#7932)Eric Bailey2025-03-072-5/+3
| | | | | | | | | * Revert "fix autocomplete (#7930)" This reverts commit f06a78017a92de96bb4df0812c5934023440df95. * Revert "#6861: Use available space to make focus on Composer TextInput easier (copy) (#7836)" This reverts commit e40656128d2fad41762ec1e7f022bc10fcdd25fc.
* fix autocomplete (#7930)Samuel Newman2025-03-072-2/+2
|
* #6861: Use available space to make focus on Composer TextInput easier (copy) ↵Samuel Newman2025-02-251-2/+4
| | | | | | | | | | | | | | | | | | | | (#7836) * 6861: Use available space to make focus on Composer TextInput easier * Undo web * bluesky-social#6861: Adjust focus area for native platforms taking Embeds into consideration * use atoms * remove empty div * remove debug atom, whoopsie --------- Co-authored-by: GrizliK1988 <dgrachikov@gmail.com> Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* 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
|
* Immediately parse pre-filled links in composer state (#6974)Eric Bailey2024-12-062-3/+7
| | | | | | | * Immediately parse pre-filled links in composer state * Add hack to fix PasteInput height bug * Parse out ext links separately from post links
* perf: optimizations for composer with Tiptap (#6315)Nick Perez2024-11-231-8/+3
| | | | | | | | | | | | | * chore: update tiptap packages * perf: reduce number of re-renders * refactor: apply min height without a layout effect * Remove stale zeed-dom resolution --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Fix Newline handling in Web's Composer (#6658)Horus Lugo2024-11-231-0/+20
|
* Fix overflow issue on iOS autocomplete, among other things (#6611)Samuel Newman2024-11-213-40/+27
| | | | | | | | | | | * stop using ref in render * fix display name fallback on web * use unicode ellipsis for useGrapheme * fix overflow issue * sanitize handle/displayname on web
* Fix Fast Refresh in <Text> files (#6609)dan2024-11-212-2/+2
| | | | | | | | | | | * Separate non-components from components * Mark old Text as deprecated * Move emoji utilities to non-React file * Fix type * Fix import
* Leverage jsx transform to remove unnecessary react imports and update eslint ↵Paul Coroneos2024-11-192-7/+2
| | | | | | | | | 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
* set includeFontPadding false for fixed TextInput height on Android (#6170)khuddite2024-11-091-1/+5
|
* Composer UI fixes (#6065)dan2024-11-012-2/+9
| | | | | | | | | * Fix close button overlap * Make footer actually sticky on web * Special toast for thread * Only stick to bottom for last post
* Fix duplicates in thread composer (#6068)dan2024-11-012-4/+21
|
* Thread composer UI (#6050)dan2024-11-011-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Basic adding of posts * Switch active post on focus * Conditionally show plus button * Insert posts midthread * Track active/inactive post * Delete posts in a thread * Focus after deletion * Tweak empty post detection * Mix height for active only * Move toolbar with post on web * Fix footer positioning * Post All button * Fix reply to positioning * Improve memoization * Improve memoization for clearVideo * Remove unnecessary argument * Add some manual memoization to fix re-renders * Scroll to bottom on add new * Fix opacity on Android * Add backdrop * Fix videos * Check alt for video too * Clear pending publish on error * Fork alt message by type * Separate placeholder for next posts * Limit hitslop to avoid clashes
* Sort imports (#6009)dan2024-10-293-4/+4
| | | | | * Mark import sort/order/style rules as error * npm run lint -- --fix
* Make composer min height conditional and align attachments (#5976)dan2024-10-282-2/+12
| | | | | | | * Make web composer min height condiitonal * Fix alignment * Fix alignment on mobile
* Split composer into smaller components (#5941)dan2024-10-252-6/+6
| | | | | | | | | | | | | | | * Extract ComposerTopBar * Rename state variables to align with props * Extract ComposerEmbeds * Extract ComposerPills * Extract ComposerFooter * Tweak condition to be simpler * Extract ComposerPost
* 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>
* Move remaining composer state into reducer (#5623)dan2024-10-071-1/+1
| | | | | | Co-authored-by: Mary <git@mary.my.id> Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> Co-authored-by: Hailey <me@haileyok.com>
* Rework native autocomplete (#5521)Hailey2024-09-272-108/+93
| | | | Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* Fix composer jumpiness on native (#5476)Eric Bailey2024-09-241-30/+20
|
* [Neue] Handle emoji within custom font (#5449)Eric Bailey2024-09-242-16/+18
| | | | | | | | | | | | | * 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
* [Neue] Ligatures & composer (#5427)Eric Bailey2024-09-192-23/+60
| | | | | | | | | * Disable contextual ligatures * Ensure new type styles are applied to the composer * Clean up using real devices * Feedback
* [Video] Allow drag-and-drop & pasting video (#5252)Samuel Newman2024-09-101-7/+17
| | | | | * allow DnD/pasting video * rm await
* Add emoji picker to chat composer (#5196)Eric Bailey2024-09-063-7/+27
| | | | | Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> Co-authored-by: Adrov Igor <nucleartux@gmail.com>
* Fix Android composer cursor bug by removing `setTimeout` from native ↵Hailey2024-08-121-57/+45
| | | | composer `onChangeText` (#4922)
* Fix: emoji picker closes when hitting spacebar (#4422) (#4441)Michał Gołda2024-07-111-21/+23
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Fix pasting images on web (#4670)dan2024-06-271-8/+7
|
* Prevent rich-formatting paste (#4327)Mary2024-06-131-8/+19
| | | | | * fix: prevent rich-formatting paste * fix: return true instead of preventDefault
* Rewrite the link detection (#3687)dan2024-04-243-87/+110
| | | | | * Rewrite the link detection * Handle parens and colons
* Remove unnecessary `.trimEnd()` and fix facet detection (#3672)Hailey2024-04-242-12/+23
| | | | | | | | | | | | | | | * 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>
* Automatically add a link card for URLs in the composer (#3566)Hailey2024-04-163-50/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * automatically add a link card for urls in the composer simplify was paste check use a set simplify the cross platform reuse web implementation remove log pasting in the middle of a block of text proper regex dont re-add immediately after paste and remove don't use `byteIndex` lfg automatically add link card * `mayBePaste` * remove accidentally pasted url from comment
* Use consistent avatar shape/defaults for labelers (#3257)Eric Bailey2024-03-192-2/+10
| | | | | | | | | | | | | | | | | | | | | | | * 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