Commit 70b11e3
feat!: message composer attachment manager integration and improve send flow (#3093)
* chore: modify gh workflows
* feat: removal of StreamChatGenerics (#2993)
* feat: remove StreamChatGenerics and introduce interface merging
* fix: some of the outstanding todos
* chore: add default interfaces
* chore: remove SCG from sample app
* fix: remove redundant types
* fix: remove type module
* fix: change the way interface declaration is consumed
* fix: ignore ts complaints for interface declaration
* chore: migrate TypescriptMessagingApp away from SCG
* chore: migrate the Expo sample app away from SCG
* fix: commit missing files
* fix: revert mistaken change
* fix: add resolutions for symlinked libs
* chore: remove support for react-native-document-picker (#3000)
* BREAKING CHANGE: V7 release candidate
* chore: add rc channel
* fix: typo in branch name
* feat: trigger breaking change for v7 (#3005)
BREAKING CHANGE: Release V7
* chore: remove dryRun
* chore: bump stream-chat version to latest rc
* chore: bump stream-chat to latest
* feat: introduce expo-video support (#3010)
* feat: introduce support for expo-video
* fix: remove redundant test
* fix: add check for audio component
* fix: lint issues
* fix: different types inference with latest stream-chat changes
* chore(deps): update sample apps too
* fix: remove generics from new hook
* fix: remove remnants from SCG and fix missing types
* fix: lint issues
* fix: replace TouchableOpacity with Pressable
* fix: move to RN TouchableOpacity instead
* chore(deps): update peer deps
* chore: remove unused hooks
* chore: remove deps scope
* fix: all instances of FormatMessageResponse in respect to the new llc changes
* chore: ref branch specifically
* fix: try clearing cache
* fix: remove cache clean
* fix: remove console.log
* fix: use latest commit
* fix: use latest rc of llc
* chore: use specific commit again
* fix: SCG remnants from merge
* fix: lint issues
* fix: lint issues
* fix: unify file and image types (#3050)
* fix: unify file and image types
* fix: refine types
* fix: remove props from auto complete input
* chore: update deps
* fix: failing tests and AutoCompleteInput type
* chore: update custom data module interfaces
* fix: change RNFile to FileReference as per latest client changes (#3061)
* fix: merge conflicts
* fix: remove MessageType type from the SDK
* fix: resolve conflicts from V7 branch
* fix: broken tests
* fix: useMessageActions remove reserved fields logic
* revert: useMessageActions change
* fix: confine readBy data to Message Status component
* fix: change date separator and group styles to ref
* fix: add app changes
* feat: use new text composer for RN SDK
* fix: bump stream-chat to latest rc
* chore: bump stream-chat version to latest rc again
* fix: thread messages state not updating properly
* chore: change type to inferred one
* fix: set correct core lib versions
* chore: bump stream-chat to latest rc again
* chore: update sample app yarn.locks as well
* fix: refine the implementation
* fix: add useCallback
* fix: keyboard taking full screen issue when the prefer cross-fade transition setting is enabled (#3073)
* fix: respect the hasCommand channel prop as well
* fix: keybaord taking full screen issue when the prefer cross-fade transition setting is enabled (#3072)
* fix: keybaord taking full screen issue when the prefer cross-fade transition setting is enabled
* chore: bump stream-chat-js rc again
* chore: full reinstall after merge from develop
* fix: add back mistakenly removed mime dep
* feat: add poll composer
* feat: add emoji middleware and make text input better
* fix: add channel command middleware
* fix: add channel command middleware
* fix: remove unused values from message input context
* fix: remove unused values from message input context
* fix: code clean up
* fix: point out a bug with the ban user command
* fix: added option reordering fix
* fix: improve the emoji and command middleware and cleanup
* fix: quoted message state using the message composer
* fix: improve poll composer integration
* fix: reduce prop surface area from auto complete input
* fix: tests
* feat: add integration for attachment manager
* fix: yarn.lock update
* fix: poll composer crash bug
* fix: change emoji middleware name
* chore: remove workflow changes
* feat: move attachment picker context to Channel wrapper and handle only bottom sheet stuff in it
* fix: add app refactor
* fix: add app refactor
* fix: auto complete input changes
* refactor: add improvements
* refactor: add poll changes
* fix: add back react memo
* fix: input buttons hasText optimization
* fix: improve upload preview components
* fix: improve upload preview components
* fix: audio attachment issues
* chore: resolve conflicts
* fix: sync up changes
* fix: sync up changes
* fix: commands button hastext optimization
* fix: create poll options useEffect
* fix: comment
* fix: default values
* fix: try out picker in channel
* fix: attachment picker component usage
* fix: cleanup for the attachment manager
* fix: input button hasText bug
* fix: file unsupported types
* fix: style for upload unsupported indicator
* fix: improve upload new file
* fix: send button and audiorecordingbutton re-renders
* fix: send button and audiorecordingbutton re-renders
* revert: the memo change
* fix: remove profiler code
* fix: optimize send button performance
* fix: type export from audio recording button
* fix: iLocalUri utility
* fix: update yarn lock
* fix: attachment send while offline support is enabled
* fix: make sending flow faster and bug free and fix bug with cooldown
* fix: edited message usage
* fix: attachments draft middleware
* fix: make command control middleware better
* fix: use text composer for command handling
* tests: add tests
* tests: add tests
* fix: remove thread from MessageInput
* perf: messages rerendering on every composer change
* perf: remove editing state from channel ctx and add composer ctx
* fix: double editing issue
* fix: introduce hasText
* fix: quoted message edited update bug
* fix: quoted message edited update bug
* fix: close poll modal before send to avoid reset on the UI
* fix: selected picker bug
* fix: memoize the photos
* fix: performance issue with quoted message checks
* fix: further optimize memo checks
* perf: separate composer ctxs and optimize usage (#3112)
* perf: abstract away composer api and usage
* fix: remove props inport and remove comments
---------
Co-authored-by: Khushal Agarwal <[email protected]>
* fix: change how message composer config is set
* perf: make attachbutton better
* fix: poll option animation breaking (#3115)
* fix: poll option animation breaking
* fix: add container animation
* chore: remove console.log
* fix: revert not needed prop drilling
* fix: use draft attachments middlware
* fix: image upload preview loading indicator
* tests: add tests setup
* tests: add tests setup
* tests: add more tests
* perf: improve the input buttons and command input perf
* fix: sample app channel header component perf
* fix: remove isCommandUIEnabled from channel context
* chore: temporarily comment out commands feature
* chore: bump stream-chat to latest
* chore: comment out setting up middleware again
* fix: send button visibility when async audio off and fixed few tests
---------
Co-authored-by: Ivan Sekovanikj <[email protected]>
Co-authored-by: Ivan Sekovanikj <[email protected]>1 parent 5ef5da3 commit 70b11e3
File tree
115 files changed
+4966
-5687
lines changed- examples
- SampleApp
- ios
- src
- components
- screens
- TypeScriptMessaging
- ios
- package
- expo-package
- native-package
- src
- components
- AttachmentPicker
- components
- Attachment
- AutoCompleteInput
- ChannelPreview/hooks
- Channel
- hooks
- MessageInput
- __tests__
- __snapshots__
- components
- AttachmentPreview
- AudioRecorder
- hooks
- MessageMenu/__tests__
- Message
- MessageSimple
- __tests__/__snapshots__
- utils
- hooks
- Poll
- components
- Reply
- contexts
- attachmentPickerContext
- channelContext
- messageComposerContext
- messageContext
- messageInputContext
- __tests__
- __snapshots__
- hooks
- utils
- messagesContext
- overlayContext
- themeContext/utils
- hooks
- icons
- middlewares
- mock-builders
- api
- generator
- store/apis
- types
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
115 files changed
+4966
-5687
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
173 | 172 | | |
174 | 173 | | |
175 | 174 | | |
176 | 175 | | |
177 | | - | |
| 176 | + | |
178 | 177 | | |
179 | 178 | | |
180 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1475 | 1475 | | |
1476 | 1476 | | |
1477 | 1477 | | |
1478 | | - | |
| 1478 | + | |
1479 | 1479 | | |
1480 | 1480 | | |
1481 | 1481 | | |
| |||
2581 | 2581 | | |
2582 | 2582 | | |
2583 | 2583 | | |
2584 | | - | |
| 2584 | + | |
2585 | 2585 | | |
2586 | 2586 | | |
2587 | 2587 | | |
| |||
2615 | 2615 | | |
2616 | 2616 | | |
2617 | 2617 | | |
2618 | | - | |
| 2618 | + | |
2619 | 2619 | | |
2620 | 2620 | | |
2621 | 2621 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | 125 | | |
133 | 126 | | |
134 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 60 | | |
66 | 61 | | |
67 | 62 | | |
68 | 63 | | |
69 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
70 | 92 | | |
71 | 93 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 94 | + | |
81 | 95 | | |
82 | 96 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
96 | 102 | | |
97 | 103 | | |
98 | | - | |
| 104 | + | |
99 | 105 | | |
100 | 106 | | |
101 | 107 | | |
| |||
135 | 141 | | |
136 | 142 | | |
137 | 143 | | |
138 | | - | |
| 144 | + | |
139 | 145 | | |
140 | 146 | | |
141 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 4 | + | |
12 | 5 | | |
13 | 6 | | |
14 | 7 | | |
| |||
65 | 58 | | |
66 | 59 | | |
67 | 60 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | 61 | | |
76 | 62 | | |
77 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2862 | 2862 | | |
2863 | 2863 | | |
2864 | 2864 | | |
| 2865 | + | |
| 2866 | + | |
| 2867 | + | |
| 2868 | + | |
| 2869 | + | |
2865 | 2870 | | |
2866 | 2871 | | |
2867 | 2872 | | |
| |||
3894 | 3899 | | |
3895 | 3900 | | |
3896 | 3901 | | |
3897 | | - | |
| 3902 | + | |
3898 | 3903 | | |
3899 | 3904 | | |
3900 | 3905 | | |
| |||
6922 | 6927 | | |
6923 | 6928 | | |
6924 | 6929 | | |
6925 | | - | |
6926 | | - | |
6927 | | - | |
6928 | | - | |
| 6930 | + | |
| 6931 | + | |
| 6932 | + | |
| 6933 | + | |
6929 | 6934 | | |
6930 | 6935 | | |
6931 | 6936 | | |
| |||
7595 | 7600 | | |
7596 | 7601 | | |
7597 | 7602 | | |
7598 | | - | |
7599 | | - | |
7600 | | - | |
| 7603 | + | |
| 7604 | + | |
| 7605 | + | |
7601 | 7606 | | |
7602 | 7607 | | |
7603 | 7608 | | |
| |||
7609 | 7614 | | |
7610 | 7615 | | |
7611 | 7616 | | |
7612 | | - | |
7613 | | - | |
7614 | | - | |
7615 | | - | |
| 7617 | + | |
| 7618 | + | |
| 7619 | + | |
7616 | 7620 | | |
7617 | 7621 | | |
7618 | 7622 | | |
| |||
7624 | 7628 | | |
7625 | 7629 | | |
7626 | 7630 | | |
7627 | | - | |
7628 | | - | |
7629 | | - | |
7630 | | - | |
7631 | | - | |
7632 | | - | |
7633 | | - | |
7634 | | - | |
7635 | | - | |
7636 | | - | |
7637 | | - | |
7638 | | - | |
7639 | | - | |
7640 | | - | |
7641 | | - | |
7642 | 7631 | | |
7643 | 7632 | | |
7644 | 7633 | | |
| |||
0 commit comments