stream-chat-react-native-core 9.0.0-beta.21 → 9.0.0-beta.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/MessageInput/MessageComposer.js +4 -3
- package/lib/commonjs/components/MessageInput/MessageComposer.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageComposerLeadingView.js +3 -4
- package/lib/commonjs/components/MessageInput/MessageComposerLeadingView.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageInputHeaderView.js +8 -6
- package/lib/commonjs/components/MessageInput/MessageInputHeaderView.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageInputTrailingView.js +3 -4
- package/lib/commonjs/components/MessageInput/MessageInputTrailingView.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/OutputButtons/index.js +11 -9
- package/lib/commonjs/components/MessageInput/components/OutputButtons/index.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageFlashList.js +3 -2
- package/lib/commonjs/components/MessageList/MessageFlashList.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +4 -4
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/state-store/message-overlay-store.js +2 -7
- package/lib/commonjs/state-store/message-overlay-store.js.map +1 -1
- package/lib/commonjs/utils/transitions.js +13 -0
- package/lib/commonjs/utils/transitions.js.map +1 -0
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/MessageInput/MessageComposer.js +4 -3
- package/lib/module/components/MessageInput/MessageComposer.js.map +1 -1
- package/lib/module/components/MessageInput/MessageComposerLeadingView.js +3 -4
- package/lib/module/components/MessageInput/MessageComposerLeadingView.js.map +1 -1
- package/lib/module/components/MessageInput/MessageInputHeaderView.js +8 -6
- package/lib/module/components/MessageInput/MessageInputHeaderView.js.map +1 -1
- package/lib/module/components/MessageInput/MessageInputTrailingView.js +3 -4
- package/lib/module/components/MessageInput/MessageInputTrailingView.js.map +1 -1
- package/lib/module/components/MessageInput/components/OutputButtons/index.js +11 -9
- package/lib/module/components/MessageInput/components/OutputButtons/index.js.map +1 -1
- package/lib/module/components/MessageList/MessageFlashList.js +3 -2
- package/lib/module/components/MessageList/MessageFlashList.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js +4 -4
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/state-store/message-overlay-store.js +2 -7
- package/lib/module/state-store/message-overlay-store.js.map +1 -1
- package/lib/module/utils/transitions.js +13 -0
- package/lib/module/utils/transitions.js.map +1 -0
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/MessageInput/MessageComposer.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/MessageComposerLeadingView.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/MessageInputHeaderView.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/MessageInputTrailingView.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/OutputButtons/index.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/MessageFlashList.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/MessageList.d.ts.map +1 -1
- package/lib/typescript/state-store/message-overlay-store.d.ts.map +1 -1
- package/lib/typescript/utils/transitions.d.ts +9 -0
- package/lib/typescript/utils/transitions.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/components/MessageInput/MessageComposer.tsx +4 -4
- package/src/components/MessageInput/MessageComposerLeadingView.tsx +3 -2
- package/src/components/MessageInput/MessageInputHeaderView.tsx +5 -4
- package/src/components/MessageInput/MessageInputTrailingView.tsx +3 -2
- package/src/components/MessageInput/components/OutputButtons/index.tsx +10 -9
- package/src/components/MessageList/MessageFlashList.tsx +3 -2
- package/src/components/MessageList/MessageList.tsx +4 -5
- package/src/state-store/message-overlay-store.ts +1 -7
- package/src/utils/transitions.ts +9 -0
- package/src/version.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageComposer.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/MessageComposer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageComposer.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/MessageComposer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAmBlD,OAAO,EACL,gBAAgB,EAIjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,mBAAmB,EAEpB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,8BAA8B,EAE/B,MAAM,iEAAiE,CAAC;AAEzE,OAAO,EACL,wBAAwB,EAEzB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AAGxD,OAAO,EACL,uBAAuB,EAExB,MAAM,sDAAsD,CAAC;AAK9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AAIrF,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AA+FzF,KAAK,+BAA+B,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,GACvE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC,GAC7D,IAAI,CACF,wBAAwB,EACtB,sBAAsB,GACtB,0BAA0B,GAC1B,8BAA8B,GAC9B,uBAAuB,GACvB,2BAA2B,GAC3B,mCAAmC,GACnC,oCAAoC,GACpC,6BAA6B,GAC7B,eAAe,GACf,0BAA0B,GAC1B,6BAA6B,GAC7B,uBAAuB,GACvB,4BAA4B,GAC5B,uBAAuB,GACvB,sBAAsB,GACtB,OAAO,GACP,WAAW,GACX,aAAa,GACb,cAAc,GACd,4BAA4B,GAC5B,6BAA6B,GAC7B,sBAAsB,GACtB,yBAAyB,GACzB,wBAAwB,GACxB,0BAA0B,GAC1B,YAAY,GACZ,2BAA2B,GAC3B,eAAe,GACf,wBAAwB,GACxB,yBAAyB,GACzB,wBAAwB,GACxB,aAAa,GACb,mBAAmB,GACnB,qBAAqB,GACrB,4BAA4B,CAC/B,GACD,IAAI,CAAC,oBAAoB,EAAE,OAAO,CAAC,GACnC,IAAI,CAAC,uBAAuB,EAAE,GAAG,CAAC,GAClC,IAAI,CAAC,8BAA8B,EAAE,mBAAmB,CAAC,GACzD,IAAI,CAAC,yBAAyB,EAAE,WAAW,CAAC,GAAG;IAC7C,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,0BAA0B,CAAC;IAChD,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AA4bJ,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAAC;AAE5E;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe;YAAW,oBAAoB;;CAyH1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageComposerLeadingView.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/MessageComposerLeadingView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageComposerLeadingView.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/MessageComposerLeadingView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,eAAO,MAAM,0BAA0B,gCAwBtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageInputHeaderView.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/MessageInputHeaderView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageInputHeaderView.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/MessageInputHeaderView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAqB3C,eAAO,MAAM,sBAAsB,gCAsDlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageInputTrailingView.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/MessageInputTrailingView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageInputTrailingView.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/MessageInputTrailingView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAe1B,eAAO,MAAM,wBAAwB,gCAmBpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/MessageInput/components/OutputButtons/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAQ3C,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAKjB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,wBAAwB,EAEzB,MAAM,8DAA8D,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/MessageInput/components/OutputButtons/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAQ3C,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAKjB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,wBAAwB,EAEzB,MAAM,8DAA8D,CAAC;AAMtE,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;AAExE,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,GAC5E,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GACpC,IAAI,CACF,wBAAwB,EACtB,mCAAmC,GACnC,oCAAoC,GACpC,2BAA2B,GAC3B,8BAA8B,GAC9B,uBAAuB,GACvB,eAAe,GACf,YAAY,GACZ,4BAA4B,GAC5B,2BAA2B,CAC9B,GAAG;IACF,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC;AAOJ,eAAO,MAAM,wBAAwB,GAAI,OAAO,6BAA6B,sBAiF5E,CAAC;AAwCF,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,sBAqCtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageFlashList.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageList/MessageFlashList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+E,MAAM,OAAO,CAAC;AACpG,OAAO,EAEL,eAAe,EAKhB,MAAM,cAAc,CAAC;AAItB,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,KAAK,EAAkB,YAAY,EAAmB,MAAM,aAAa,CAAC;AASjF,OAAO,EACL,4BAA4B,EAE7B,MAAM,gEAAgE,CAAC;AACxE,OAAO,EACL,mBAAmB,EAEpB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAkB,MAAM,wCAAwC,CAAC;AAC1F,OAAO,EACL,wBAAwB,EAEzB,MAAM,wDAAwD,CAAC;AAKhE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,2BAA2B,EAE5B,MAAM,8DAA8D,CAAC;AACtE,OAAO,EACL,gCAAgC,EAEjC,MAAM,wEAAwE,CAAC;AAEhF,OAAO,EAAE,kBAAkB,EAAoB,MAAM,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageFlashList.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageList/MessageFlashList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+E,MAAM,OAA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wBAAwB,GACxB,UAAU,GACV,qBAAqB,GACrB,uBAAuB,GACvB,SAAS,GACT,sBAAsB,GACtB,eAAe,GACf,gBAAgB,GAChB,0BAA0B,GAC1B,iBAAiB,GACjB,0BAA0B,GAC1B,4BAA4B,CAC/B,GACD,IAAI,CACF,kBAAkB,EAClB,sBAAsB,GAAG,gBAAgB,GAAG,QAAQ,GAAG,gBAAgB,CACxE,GAAG;IACF;;;;;;;;;;;;;OAaG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC;IACjE;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACtC;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACtC,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4CAA4C;IAC5C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC;IAC3C;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,kBAAkB,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC;IACjE;;;;;;;;;;OAUG;IACH,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,YAAY,CAAC,YAAY,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IAClE;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AA66BJ,MAAM,MAAM,qBAAqB,GAAG,OAAO,CAAC,gCAAgC,CAAC,CAAC;AAE9E;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,OAAO,qBAAqB,sBAsG5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageList/MessageList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,EAEL,aAAa,EACb,QAAQ,IAAI,YAAY,EAExB,eAAe,EAKhB,MAAM,cAAc,CAAC;AAetB,OAAO,EAEL,6BAA6B,EAC9B,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EACL,4BAA4B,EAE7B,MAAM,gEAAgE,CAAC;AACxE,OAAO,EACL,mBAAmB,EAEpB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAkB,MAAM,wCAAwC,CAAC;AAG1F,OAAO,EACL,wBAAwB,EAEzB,MAAM,wDAAwD,CAAC;AAKhE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,2BAA2B,EAE5B,MAAM,8DAA8D,CAAC;AACtE,OAAO,EACL,gCAAgC,EAEjC,MAAM,wEAAwE,CAAC;AAEhF,OAAO,EAAE,kBAAkB,EAAoB,MAAM,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageList/MessageList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,EAEL,aAAa,EACb,QAAQ,IAAI,YAAY,EAExB,eAAe,EAKhB,MAAM,cAAc,CAAC;AAetB,OAAO,EAEL,6BAA6B,EAC9B,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EACL,4BAA4B,EAE7B,MAAM,gEAAgE,CAAC;AACxE,OAAO,EACL,mBAAmB,EAEpB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAkB,MAAM,wCAAwC,CAAC;AAG1F,OAAO,EACL,wBAAwB,EAEzB,MAAM,wDAAwD,CAAC;AAKhE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,2BAA2B,EAE5B,MAAM,8DAA8D,CAAC;AACtE,OAAO,EACL,gCAAgC,EAEjC,MAAM,wEAAwE,CAAC;AAEhF,OAAO,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,SAOvE,CAAC;AAEF,eAAO,MAAM,oBAAoB,YAMhC,CAAC;AAEF,eAAO,MAAM,YAAY,0BAA6C,CAAC;AAKvE,eAAO,MAAM,uCAAuC,cACiB,CAAC;AAuCtE,eAAO,MAAM,sBAAsB,GAAI,UAAU,MAAM,EAAE,IAAI,MAAM,EAAE,QAAQ,IAAI,SAkBhF,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,UAAU,MAAM,EAAE,IAAI,MAAM,SAkBpE,CAAC;AAuBF,eAAO,MAAM,oBAAoB;;;;CAEhC,CAAC;AAUF,eAAO,MAAM,mBAAmB,eAE/B,CAAC;AAEF,eAAO,MAAM,kCAAkC,gBAE9C,CAAC;AAEF,eAAO,MAAM,gCAAgC,GAAI,UAAU,MAAM,EAAE,IAAI,MAAM,YAY5E,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,6BAA6B,GAAI,WAAW,MAAM,EAAE,EAAE,iBAAc,SAyBhF,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,uBAAuB,kDAWnC,CAAC;AAIF,eAAO,MAAM,kBAAkB,GAAI,IAAI,MAAM;;;CAQ5C,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,WAAW,YAAY;;CAA2B,CAAC;AAEpF,eAAO,MAAM,cAAc,eAI1B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FadeIn, FadeOut, LinearTransition, ZoomIn, ZoomOut } from 'react-native-reanimated';
|
|
2
|
+
export declare const transitions: {
|
|
3
|
+
readonly fadeIn200: FadeIn;
|
|
4
|
+
readonly fadeOut200: FadeOut;
|
|
5
|
+
readonly layout200: LinearTransition;
|
|
6
|
+
readonly zoomIn200: ZoomIn;
|
|
7
|
+
readonly zoomOut200: ZoomOut;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=transitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transitions.d.ts","sourceRoot":"","sources":["../../../src/utils/transitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAE7F,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react-native-core",
|
|
3
3
|
"description": "The official React Native and Expo components for Stream Chat, a service for building chat applications",
|
|
4
|
-
"version": "9.0.0-beta.
|
|
4
|
+
"version": "9.0.0-beta.22",
|
|
5
5
|
"author": {
|
|
6
6
|
"company": "Stream.io Inc",
|
|
7
7
|
"name": "Stream.io Inc"
|
|
@@ -5,7 +5,6 @@ import { GestureHandlerRootView } from 'react-native-gesture-handler';
|
|
|
5
5
|
import Animated, {
|
|
6
6
|
Extrapolation,
|
|
7
7
|
interpolate,
|
|
8
|
-
LinearTransition,
|
|
9
8
|
useAnimatedStyle,
|
|
10
9
|
useSharedValue,
|
|
11
10
|
} from 'react-native-reanimated';
|
|
@@ -54,6 +53,7 @@ import { useStateStore } from '../../hooks/useStateStore';
|
|
|
54
53
|
import { AudioRecorderManagerState } from '../../state-store/audio-recorder-manager';
|
|
55
54
|
import { MessageInputHeightState } from '../../state-store/message-input-height-store';
|
|
56
55
|
import { primitives } from '../../theme';
|
|
56
|
+
import { transitions } from '../../utils/transitions';
|
|
57
57
|
import { type TextInputOverrideComponent } from '../AutoCompleteInput/AutoCompleteInput';
|
|
58
58
|
import { CreatePoll } from '../Poll/CreatePollContent';
|
|
59
59
|
import { PortalWhileClosingView } from '../UIComponents/PortalWhileClosingView';
|
|
@@ -383,7 +383,7 @@ const MessageComposerWithContext = (props: MessageComposerPropsWithContext) => {
|
|
|
383
383
|
]
|
|
384
384
|
: null
|
|
385
385
|
}
|
|
386
|
-
layout={
|
|
386
|
+
layout={transitions.layout200}
|
|
387
387
|
>
|
|
388
388
|
<PortalWhileClosingView portalHostName='overlay-composer' portalName='message-composer'>
|
|
389
389
|
<View
|
|
@@ -419,7 +419,7 @@ const MessageComposerWithContext = (props: MessageComposerPropsWithContext) => {
|
|
|
419
419
|
<View style={[styles.container, container]}>
|
|
420
420
|
<MessageComposerLeadingView />
|
|
421
421
|
<Animated.View
|
|
422
|
-
layout={
|
|
422
|
+
layout={transitions.layout200}
|
|
423
423
|
style={[
|
|
424
424
|
styles.inputBoxWrapper,
|
|
425
425
|
messageInputFloating ? [styles.shadow, inputFloatingContainer] : null,
|
|
@@ -438,7 +438,7 @@ const MessageComposerWithContext = (props: MessageComposerPropsWithContext) => {
|
|
|
438
438
|
|
|
439
439
|
<Animated.View
|
|
440
440
|
style={[styles.inputContainer, inputContainer]}
|
|
441
|
-
layout={
|
|
441
|
+
layout={transitions.layout200}
|
|
442
442
|
>
|
|
443
443
|
{!isRecordingStateIdle ? (
|
|
444
444
|
<AudioRecorder slideToCancelStyle={slideToCancelAnimatedStyle} />
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StyleSheet } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import Animated
|
|
4
|
+
import Animated from 'react-native-reanimated';
|
|
5
5
|
|
|
6
6
|
import { InputButtons } from './components/InputButtons';
|
|
7
7
|
import { idleRecordingStateSelector } from './utils/audioRecorderSelectors';
|
|
@@ -9,6 +9,7 @@ import { idleRecordingStateSelector } from './utils/audioRecorderSelectors';
|
|
|
9
9
|
import { useMessageInputContext } from '../../contexts/messageInputContext/MessageInputContext';
|
|
10
10
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
11
11
|
import { useStateStore } from '../../hooks/useStateStore';
|
|
12
|
+
import { transitions } from '../../utils/transitions';
|
|
12
13
|
|
|
13
14
|
export const MessageComposerLeadingView = () => {
|
|
14
15
|
const {
|
|
@@ -24,7 +25,7 @@ export const MessageComposerLeadingView = () => {
|
|
|
24
25
|
|
|
25
26
|
return isRecordingStateIdle ? (
|
|
26
27
|
<Animated.View
|
|
27
|
-
layout={
|
|
28
|
+
layout={transitions.layout200}
|
|
28
29
|
style={[
|
|
29
30
|
styles.inputButtonsContainer,
|
|
30
31
|
messageInputFloating ? styles.shadow : null,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import { StyleSheet } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import Animated
|
|
4
|
+
import Animated from 'react-native-reanimated';
|
|
5
5
|
|
|
6
6
|
import { LinkPreviewList } from './components/LinkPreviewList';
|
|
7
7
|
import { useHasLinkPreviews } from './hooks/useLinkPreviews';
|
|
@@ -17,6 +17,7 @@ import { useMessagesContext } from '../../contexts/messagesContext/MessagesConte
|
|
|
17
17
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
18
18
|
import { useStateStore } from '../../hooks/useStateStore';
|
|
19
19
|
import { primitives } from '../../theme';
|
|
20
|
+
import { transitions } from '../../utils/transitions';
|
|
20
21
|
|
|
21
22
|
export const MessageInputHeaderView = () => {
|
|
22
23
|
const {
|
|
@@ -42,7 +43,7 @@ export const MessageInputHeaderView = () => {
|
|
|
42
43
|
|
|
43
44
|
return isRecordingStateIdle ? (
|
|
44
45
|
<Animated.View
|
|
45
|
-
layout={
|
|
46
|
+
layout={transitions.layout200}
|
|
46
47
|
style={[
|
|
47
48
|
styles.contentContainer,
|
|
48
49
|
{
|
|
@@ -55,7 +56,7 @@ export const MessageInputHeaderView = () => {
|
|
|
55
56
|
]}
|
|
56
57
|
>
|
|
57
58
|
{editing ? (
|
|
58
|
-
<Animated.View entering={
|
|
59
|
+
<Animated.View entering={transitions.fadeIn200} exiting={transitions.fadeOut200}>
|
|
59
60
|
<Reply
|
|
60
61
|
mode='edit'
|
|
61
62
|
onDismiss={clearEditingState}
|
|
@@ -64,7 +65,7 @@ export const MessageInputHeaderView = () => {
|
|
|
64
65
|
</Animated.View>
|
|
65
66
|
) : null}
|
|
66
67
|
{quotedMessage && !editing ? (
|
|
67
|
-
<Animated.View entering={
|
|
68
|
+
<Animated.View entering={transitions.fadeIn200} exiting={transitions.fadeOut200}>
|
|
68
69
|
<Reply onDismiss={editing ? undefined : onDismissReply} mode='reply' />
|
|
69
70
|
</Animated.View>
|
|
70
71
|
) : null}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StyleSheet } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import Animated
|
|
4
|
+
import Animated from 'react-native-reanimated';
|
|
5
5
|
|
|
6
6
|
import { OutputButtons } from './components/OutputButtons';
|
|
7
7
|
|
|
@@ -11,6 +11,7 @@ import { useMessageInputContext } from '../../contexts/messageInputContext/Messa
|
|
|
11
11
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
12
12
|
import { useStateStore } from '../../hooks/useStateStore';
|
|
13
13
|
import { primitives } from '../../theme';
|
|
14
|
+
import { transitions } from '../../utils/transitions';
|
|
14
15
|
|
|
15
16
|
export const MessageInputTrailingView = () => {
|
|
16
17
|
const {
|
|
@@ -25,7 +26,7 @@ export const MessageInputTrailingView = () => {
|
|
|
25
26
|
);
|
|
26
27
|
return (recordingStatus === 'idle' || recordingStatus === 'recording') && !micLocked ? (
|
|
27
28
|
<Animated.View
|
|
28
|
-
layout={
|
|
29
|
+
layout={transitions.layout200}
|
|
29
30
|
style={[styles.outputButtonsContainer, outputButtonsContainer]}
|
|
30
31
|
>
|
|
31
32
|
<OutputButtons />
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
|
|
3
|
-
import Animated
|
|
3
|
+
import Animated from 'react-native-reanimated';
|
|
4
4
|
|
|
5
5
|
import { TextComposerState } from 'stream-chat';
|
|
6
6
|
|
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
useMessageInputContext,
|
|
22
22
|
} from '../../../../contexts/messageInputContext/MessageInputContext';
|
|
23
23
|
import { useStateStore } from '../../../../hooks/useStateStore';
|
|
24
|
+
import { transitions } from '../../../../utils/transitions';
|
|
24
25
|
import { AIStates, useAIState } from '../../../AITypingIndicatorView';
|
|
25
26
|
import { useIsCooldownActive } from '../../hooks/useIsCooldownActive';
|
|
26
27
|
|
|
@@ -88,8 +89,8 @@ export const OutputButtonsWithContext = (props: OutputButtonsWithContextProps) =
|
|
|
88
89
|
} else if (editing || command) {
|
|
89
90
|
return (
|
|
90
91
|
<Animated.View
|
|
91
|
-
entering={
|
|
92
|
-
exiting={
|
|
92
|
+
entering={transitions.zoomIn200}
|
|
93
|
+
exiting={transitions.zoomOut200}
|
|
93
94
|
key='edit-button'
|
|
94
95
|
style={editButtonContainer}
|
|
95
96
|
>
|
|
@@ -99,8 +100,8 @@ export const OutputButtonsWithContext = (props: OutputButtonsWithContextProps) =
|
|
|
99
100
|
} else if (cooldownIsActive) {
|
|
100
101
|
return (
|
|
101
102
|
<Animated.View
|
|
102
|
-
entering={
|
|
103
|
-
exiting={
|
|
103
|
+
entering={transitions.zoomIn200}
|
|
104
|
+
exiting={transitions.zoomOut200}
|
|
104
105
|
key='cooldown-timer'
|
|
105
106
|
style={cooldownButtonContainer}
|
|
106
107
|
>
|
|
@@ -110,8 +111,8 @@ export const OutputButtonsWithContext = (props: OutputButtonsWithContextProps) =
|
|
|
110
111
|
} else if (audioRecordingEnabled && textIsEmpty && !hasAttachments) {
|
|
111
112
|
return (
|
|
112
113
|
<Animated.View
|
|
113
|
-
entering={
|
|
114
|
-
exiting={
|
|
114
|
+
entering={transitions.zoomIn200}
|
|
115
|
+
exiting={transitions.zoomOut200}
|
|
115
116
|
key='audio-recording-button'
|
|
116
117
|
style={audioRecordingButtonContainer}
|
|
117
118
|
>
|
|
@@ -121,8 +122,8 @@ export const OutputButtonsWithContext = (props: OutputButtonsWithContextProps) =
|
|
|
121
122
|
} else {
|
|
122
123
|
return (
|
|
123
124
|
<Animated.View
|
|
124
|
-
entering={
|
|
125
|
-
exiting={
|
|
125
|
+
entering={transitions.zoomIn200}
|
|
126
|
+
exiting={transitions.zoomOut200}
|
|
126
127
|
key='send-button'
|
|
127
128
|
style={sendButtonContainer}
|
|
128
129
|
>
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
ViewToken,
|
|
9
9
|
} from 'react-native';
|
|
10
10
|
|
|
11
|
-
import Animated
|
|
11
|
+
import Animated from 'react-native-reanimated';
|
|
12
12
|
|
|
13
13
|
import type { FlashListProps, FlashListRef } from '@shopify/flash-list';
|
|
14
14
|
import type { Channel, Event, LocalMessage, MessageResponse } from 'stream-chat';
|
|
@@ -56,6 +56,7 @@ import { useStableCallback, useStateStore } from '../../hooks';
|
|
|
56
56
|
import { bumpOverlayLayoutRevision } from '../../state-store';
|
|
57
57
|
import { MessageInputHeightState } from '../../state-store/message-input-height-store';
|
|
58
58
|
import { primitives } from '../../theme';
|
|
59
|
+
import { transitions } from '../../utils/transitions';
|
|
59
60
|
import { MessageWrapper } from '../Message/MessageItemView/MessageWrapper';
|
|
60
61
|
|
|
61
62
|
type FlashListContextApi = { getRef?: () => FlashListRef<LocalMessage> | null } | undefined;
|
|
@@ -1094,7 +1095,7 @@ const MessageFlashListWithContext = (props: MessageFlashListPropsWithContext) =>
|
|
|
1094
1095
|
) : null}
|
|
1095
1096
|
</View>
|
|
1096
1097
|
<Animated.View
|
|
1097
|
-
layout={
|
|
1098
|
+
layout={transitions.layout200}
|
|
1098
1099
|
style={[
|
|
1099
1100
|
styles.scrollToBottomButtonContainer,
|
|
1100
1101
|
{
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
ViewToken,
|
|
12
12
|
} from 'react-native';
|
|
13
13
|
|
|
14
|
-
import Animated
|
|
14
|
+
import Animated from 'react-native-reanimated';
|
|
15
15
|
|
|
16
16
|
import debounce from 'lodash/debounce';
|
|
17
17
|
|
|
@@ -68,6 +68,7 @@ import { useStateStore } from '../../hooks/useStateStore';
|
|
|
68
68
|
import { bumpOverlayLayoutRevision } from '../../state-store';
|
|
69
69
|
import { MessageInputHeightState } from '../../state-store/message-input-height-store';
|
|
70
70
|
import { primitives } from '../../theme';
|
|
71
|
+
import { transitions } from '../../utils/transitions';
|
|
71
72
|
import { MessageWrapper } from '../Message/MessageItemView/MessageWrapper';
|
|
72
73
|
|
|
73
74
|
// This is just to make sure that the scrolling happens in a different task queue.
|
|
@@ -1263,7 +1264,7 @@ const MessageListWithContext = (props: MessageListPropsWithContext) => {
|
|
|
1263
1264
|
<MessageListItemProvider value={messageListItemContextValue}>
|
|
1264
1265
|
<ListComponent
|
|
1265
1266
|
// TODO: Consider hiding this behind a feature flag.
|
|
1266
|
-
layout={
|
|
1267
|
+
layout={transitions.layout200}
|
|
1267
1268
|
contentContainerStyle={flatListContentContainerStyle}
|
|
1268
1269
|
/** Disables the MessageList UI. Which means, message actions, reactions won't work. */
|
|
1269
1270
|
data={processedMessageListWithNeighbors}
|
|
@@ -1310,7 +1311,7 @@ const MessageListWithContext = (props: MessageListPropsWithContext) => {
|
|
|
1310
1311
|
</View>
|
|
1311
1312
|
{scrollToBottomButtonVisible ? (
|
|
1312
1313
|
<Animated.View
|
|
1313
|
-
layout={
|
|
1314
|
+
layout={transitions.layout200}
|
|
1314
1315
|
style={[
|
|
1315
1316
|
{
|
|
1316
1317
|
bottom: messageInputFloating
|
|
@@ -1462,5 +1463,3 @@ export const MessageList = (props: MessageListProps) => {
|
|
|
1462
1463
|
const AnimatedList = React.memo(
|
|
1463
1464
|
Animated.createAnimatedComponent(FlatList<MessageListItemWithNeighbours>),
|
|
1464
1465
|
);
|
|
1465
|
-
|
|
1466
|
-
const LayoutTransition = LinearTransition.duration(200);
|
|
@@ -94,13 +94,7 @@ export const closeOverlay = () => {
|
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
|
|
98
|
-
if (!overlayStore.getLatestValue().id) {
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
overlayStore.partialNext({ closing: true });
|
|
103
|
-
});
|
|
97
|
+
overlayStore.partialNext({ closing: true });
|
|
104
98
|
};
|
|
105
99
|
|
|
106
100
|
let actionQueue: Array<() => void | Promise<void>> = [];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FadeIn, FadeOut, LinearTransition, ZoomIn, ZoomOut } from 'react-native-reanimated';
|
|
2
|
+
|
|
3
|
+
export const transitions = {
|
|
4
|
+
fadeIn200: FadeIn.duration(200),
|
|
5
|
+
fadeOut200: FadeOut.duration(200),
|
|
6
|
+
layout200: LinearTransition.duration(200),
|
|
7
|
+
zoomIn200: ZoomIn.duration(200),
|
|
8
|
+
zoomOut200: ZoomOut.duration(200),
|
|
9
|
+
} as const;
|
package/src/version.json
CHANGED