stream-chat-react-native-core 9.0.0-beta.36 → 9.0.0-beta.38

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.
Files changed (60) hide show
  1. package/lib/commonjs/contexts/componentsContext/ComponentsContext.js.map +1 -1
  2. package/lib/commonjs/contexts/componentsContext/defaultComponents.js +3 -16
  3. package/lib/commonjs/contexts/componentsContext/defaultComponents.js.map +1 -1
  4. package/lib/commonjs/version.json +1 -1
  5. package/lib/module/contexts/componentsContext/ComponentsContext.js.map +1 -1
  6. package/lib/module/contexts/componentsContext/defaultComponents.js +3 -16
  7. package/lib/module/contexts/componentsContext/defaultComponents.js.map +1 -1
  8. package/lib/module/version.json +1 -1
  9. package/lib/typescript/contexts/componentsContext/ComponentsContext.d.ts +2 -292
  10. package/lib/typescript/contexts/componentsContext/ComponentsContext.d.ts.map +1 -1
  11. package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts +46 -18
  12. package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts.map +1 -1
  13. package/package.json +1 -1
  14. package/src/contexts/componentsContext/ComponentsContext.tsx +2 -1
  15. package/src/contexts/componentsContext/defaultComponents.ts +47 -35
  16. package/src/version.json +1 -1
  17. package/lib/commonjs/components/BottomSheetCompatibility/BottomSheetModal.js +0 -8
  18. package/lib/commonjs/components/BottomSheetCompatibility/BottomSheetModal.js.map +0 -1
  19. package/lib/commonjs/components/ChannelList/utils.js +0 -51
  20. package/lib/commonjs/components/ChannelList/utils.js.map +0 -1
  21. package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js +0 -215
  22. package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js.map +0 -1
  23. package/lib/commonjs/components/MessageInput/components/NativeAttachmentPicker.js +0 -8
  24. package/lib/commonjs/components/MessageInput/components/NativeAttachmentPicker.js.map +0 -1
  25. package/lib/commonjs/components/MessageList/utils/getLastReceivedMessageFlashList.js +0 -15
  26. package/lib/commonjs/components/MessageList/utils/getLastReceivedMessageFlashList.js.map +0 -1
  27. package/lib/commonjs/components/docs/data.js +0 -476
  28. package/lib/commonjs/components/docs/data.js.map +0 -1
  29. package/lib/commonjs/contexts/componentsContext/PLAN.md +0 -148
  30. package/lib/module/components/BottomSheetCompatibility/BottomSheetModal.js +0 -8
  31. package/lib/module/components/BottomSheetCompatibility/BottomSheetModal.js.map +0 -1
  32. package/lib/module/components/ChannelList/utils.js +0 -51
  33. package/lib/module/components/ChannelList/utils.js.map +0 -1
  34. package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js +0 -215
  35. package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js.map +0 -1
  36. package/lib/module/components/MessageInput/components/NativeAttachmentPicker.js +0 -8
  37. package/lib/module/components/MessageInput/components/NativeAttachmentPicker.js.map +0 -1
  38. package/lib/module/components/MessageList/utils/getLastReceivedMessageFlashList.js +0 -15
  39. package/lib/module/components/MessageList/utils/getLastReceivedMessageFlashList.js.map +0 -1
  40. package/lib/module/components/docs/data.js +0 -476
  41. package/lib/module/components/docs/data.js.map +0 -1
  42. package/lib/module/contexts/componentsContext/PLAN.md +0 -148
  43. package/lib/typescript/components/BottomSheetCompatibility/BottomSheetModal.d.ts +0 -8
  44. package/lib/typescript/components/BottomSheetCompatibility/BottomSheetModal.d.ts.map +0 -1
  45. package/lib/typescript/components/ChannelList/utils.d.ts +0 -22
  46. package/lib/typescript/components/ChannelList/utils.d.ts.map +0 -1
  47. package/lib/typescript/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.d.ts +0 -10
  48. package/lib/typescript/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.d.ts.map +0 -1
  49. package/lib/typescript/components/MessageInput/components/NativeAttachmentPicker.d.ts +0 -8
  50. package/lib/typescript/components/MessageInput/components/NativeAttachmentPicker.d.ts.map +0 -1
  51. package/lib/typescript/components/MessageList/utils/getLastReceivedMessageFlashList.d.ts +0 -3
  52. package/lib/typescript/components/MessageList/utils/getLastReceivedMessageFlashList.d.ts.map +0 -1
  53. package/src/components/BottomSheetCompatibility/BottomSheetModal.tsx +0 -16
  54. package/src/components/ChannelList/utils.ts +0 -76
  55. package/src/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.tsx +0 -248
  56. package/src/components/MessageInput/components/NativeAttachmentPicker.tsx +0 -12
  57. package/src/components/MessageList/utils/getLastReceivedMessageFlashList.ts +0 -20
  58. package/src/components/docs/data.js +0 -524
  59. package/src/contexts/componentsContext/PLAN.md +0 -148
  60. package/src/contexts/componentsContext/__tests__/defaultComponents.test.ts +0 -45
@@ -1,10 +1,18 @@
1
1
  import React from 'react';
2
+ import { ImageProps, TextInputProps } from 'react-native';
3
+ import type { LocalMessage, UserResponse } from 'stream-chat';
4
+ import type { MessageTextProps } from '../../components/Message/MessageItemView/MessageTextContainer';
2
5
  import type { MessageActionsProps } from '../../contexts/overlayContext/MessageOverlayHostLayer';
3
6
  /**
4
- * All default component implementations used across the SDK.
5
- * These are the components used when no overrides are provided via WithComponents.
7
+ * Normalizes each component entry to React.ComponentType<P>, stripping
8
+ * extra inferred properties (like `displayName: string` from runtime
9
+ * assignments) that would otherwise leak into the override types and
10
+ * force integrators to match them.
6
11
  */
7
- export declare const DEFAULT_COMPONENTS: {
12
+ type NormalizeComponents<T> = {
13
+ [K in keyof T]: T[K] extends React.ComponentType<infer P> ? React.ComponentType<P> : T[K];
14
+ };
15
+ declare const components: {
8
16
  Attachment: (props: import("../../components/Attachment/Attachment").AttachmentProps) => React.JSX.Element | null;
9
17
  AttachButton: {
10
18
  (props: import("../../components/MessageInput/components/InputButtons/AttachButton").AttachButtonProps): React.JSX.Element;
@@ -279,20 +287,40 @@ export declare const DEFAULT_COMPONENTS: {
279
287
  };
280
288
  ImageGalleryVideoControls: React.MemoExoticComponent<(props: import("../..").ImageGalleryVideoControlProps) => React.JSX.Element>;
281
289
  MessageOverlayBackground: () => React.JSX.Element;
282
- ImageComponent: React.ComponentType<any>;
283
- AttachmentPickerIOSSelectMorePhotos: React.ComponentType<any> | undefined;
284
- ChatLoadingIndicator: React.ComponentType<any> | null | undefined;
285
- CreatePollContent: React.ComponentType<any> | undefined;
286
- MessageActions: React.ComponentType<MessageActionsProps> | undefined;
287
- Input: React.ComponentType<any> | undefined;
288
- ListHeaderComponent: React.ComponentType<any> | undefined;
289
- MessageContentBottomView: React.ComponentType<any> | undefined;
290
- MessageContentLeadingView: React.ComponentType<any> | undefined;
291
- MessageContentTopView: React.ComponentType<any> | undefined;
292
- MessageContentTrailingView: React.ComponentType<any> | undefined;
293
- MessageLocation: React.ComponentType<any> | undefined;
294
- MessageSpacer: React.ComponentType<any> | undefined;
295
- MessageText: React.ComponentType<any> | undefined;
296
- PollContent: React.ComponentType<any> | undefined;
290
+ ImageComponent: React.ComponentType<ImageProps>;
297
291
  };
292
+ /**
293
+ * Optional component slots that have no default implementation.
294
+ * These are `undefined` unless the integrator provides them via WithComponents.
295
+ */
296
+ export interface OptionalComponentOverrides {
297
+ AttachmentPickerIOSSelectMorePhotos?: React.ComponentType;
298
+ ChatLoadingIndicator?: React.ComponentType | null;
299
+ CreatePollContent?: React.ComponentType;
300
+ Input?: React.ComponentType<{
301
+ additionalTextInputProps?: TextInputProps;
302
+ getUsers: () => UserResponse[];
303
+ }>;
304
+ ListHeaderComponent?: React.ComponentType;
305
+ MessageActions?: React.ComponentType<MessageActionsProps>;
306
+ MessageContentBottomView?: React.ComponentType;
307
+ MessageContentLeadingView?: React.ComponentType;
308
+ MessageContentTopView?: React.ComponentType;
309
+ MessageContentTrailingView?: React.ComponentType;
310
+ MessageLocation?: React.ComponentType<{
311
+ message: LocalMessage;
312
+ }>;
313
+ MessageSpacer?: React.ComponentType;
314
+ MessageText?: React.ComponentType<MessageTextProps>;
315
+ PollContent?: React.ComponentType;
316
+ }
317
+ /**
318
+ * All default component implementations used across the SDK.
319
+ * These are the components used when no overrides are provided via WithComponents.
320
+ *
321
+ * The `NormalizeComponents` cast ensures that internal details like
322
+ * `displayName: string` don't leak into the public override types.
323
+ */
324
+ export declare const DEFAULT_COMPONENTS: NormalizeComponents<typeof components>;
325
+ export {};
298
326
  //# sourceMappingURL=defaultComponents.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"defaultComponents.d.ts","sourceRoot":"","sources":["../../../../src/contexts/componentsContext/defaultComponents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAkJ1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAEjG;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAuJJ,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC;yCAIC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,SAAS;0BAEnD,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,SAAS;uBAE9C,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,SAAS;oBACvC,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC,GAAG,SAAS;WAE7D,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,SAAS;yBAEtB,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,SAAS;8BAE/B,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,SAAS;+BAEnC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,SAAS;2BAExC,KAAK,CA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": "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.36",
4
+ "version": "9.0.0-beta.38",
5
5
  "author": {
6
6
  "company": "Stream.io Inc",
7
7
  "name": "Stream.io Inc"
@@ -9,7 +9,8 @@ import React, { PropsWithChildren, useContext, useMemo } from 'react';
9
9
  */
10
10
  export type ComponentOverrides = Partial<
11
11
  (typeof import('./defaultComponents'))['DEFAULT_COMPONENTS']
12
- >;
12
+ > &
13
+ import('./defaultComponents').OptionalComponentOverrides;
13
14
 
14
15
  const ComponentsContext = React.createContext<ComponentOverrides>({});
15
16
 
@@ -1,5 +1,7 @@
1
1
  import React from 'react';
2
- import { Image } from 'react-native';
2
+ import { Image, ImageProps, TextInputProps } from 'react-native';
3
+
4
+ import type { LocalMessage, UserResponse } from 'stream-chat';
3
5
 
4
6
  import { Attachment } from '../../components/Attachment/Attachment';
5
7
  import { AudioAttachment } from '../../components/Attachment/Audio';
@@ -64,6 +66,7 @@ import { MessageReplies } from '../../components/Message/MessageItemView/Message
64
66
  import { MessageRepliesAvatars } from '../../components/Message/MessageItemView/MessageRepliesAvatars';
65
67
  import { MessageStatus } from '../../components/Message/MessageItemView/MessageStatus';
66
68
  import { MessageSwipeContent } from '../../components/Message/MessageItemView/MessageSwipeContent';
69
+ import type { MessageTextProps } from '../../components/Message/MessageItemView/MessageTextContainer';
67
70
  import { MessageTimestamp } from '../../components/Message/MessageItemView/MessageTimestamp';
68
71
  import { ReactionListBottom } from '../../components/Message/MessageItemView/ReactionList/ReactionListBottom';
69
72
  import { ReactionListClustered } from '../../components/Message/MessageItemView/ReactionList/ReactionListClustered';
@@ -147,10 +150,16 @@ import { DefaultMessageOverlayBackground } from '../../contexts/overlayContext/M
147
150
  import type { MessageActionsProps } from '../../contexts/overlayContext/MessageOverlayHostLayer';
148
151
 
149
152
  /**
150
- * All default component implementations used across the SDK.
151
- * These are the components used when no overrides are provided via WithComponents.
153
+ * Normalizes each component entry to React.ComponentType<P>, stripping
154
+ * extra inferred properties (like `displayName: string` from runtime
155
+ * assignments) that would otherwise leak into the override types and
156
+ * force integrators to match them.
152
157
  */
153
- export const DEFAULT_COMPONENTS = {
158
+ type NormalizeComponents<T> = {
159
+ [K in keyof T]: T[K] extends React.ComponentType<infer P> ? React.ComponentType<P> : T[K];
160
+ };
161
+
162
+ const components = {
154
163
  Attachment,
155
164
  AttachButton,
156
165
  AttachmentPickerContent,
@@ -300,35 +309,38 @@ export const DEFAULT_COMPONENTS = {
300
309
  MessageOverlayBackground: DefaultMessageOverlayBackground,
301
310
 
302
311
  // Image
303
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
304
- ImageComponent: Image as React.ComponentType<any>,
305
-
306
- // Optional overrides (no defaults — undefined unless user provides via WithComponents)
307
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
308
- AttachmentPickerIOSSelectMorePhotos: undefined as React.ComponentType<any> | undefined,
309
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
310
- ChatLoadingIndicator: undefined as React.ComponentType<any> | null | undefined,
311
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
312
- CreatePollContent: undefined as React.ComponentType<any> | undefined,
313
- MessageActions: undefined as React.ComponentType<MessageActionsProps> | undefined,
314
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
315
- Input: undefined as React.ComponentType<any> | undefined,
316
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
317
- ListHeaderComponent: undefined as React.ComponentType<any> | undefined,
318
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
319
- MessageContentBottomView: undefined as React.ComponentType<any> | undefined,
320
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
321
- MessageContentLeadingView: undefined as React.ComponentType<any> | undefined,
322
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
323
- MessageContentTopView: undefined as React.ComponentType<any> | undefined,
324
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
325
- MessageContentTrailingView: undefined as React.ComponentType<any> | undefined,
326
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
327
- MessageLocation: undefined as React.ComponentType<any> | undefined,
328
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
329
- MessageSpacer: undefined as React.ComponentType<any> | undefined,
330
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
331
- MessageText: undefined as React.ComponentType<any> | undefined,
332
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
333
- PollContent: undefined as React.ComponentType<any> | undefined,
312
+ ImageComponent: Image as React.ComponentType<ImageProps>,
334
313
  };
314
+
315
+ /**
316
+ * Optional component slots that have no default implementation.
317
+ * These are `undefined` unless the integrator provides them via WithComponents.
318
+ */
319
+ export interface OptionalComponentOverrides {
320
+ AttachmentPickerIOSSelectMorePhotos?: React.ComponentType;
321
+ ChatLoadingIndicator?: React.ComponentType | null;
322
+ CreatePollContent?: React.ComponentType;
323
+ Input?: React.ComponentType<{
324
+ additionalTextInputProps?: TextInputProps;
325
+ getUsers: () => UserResponse[];
326
+ }>;
327
+ ListHeaderComponent?: React.ComponentType;
328
+ MessageActions?: React.ComponentType<MessageActionsProps>;
329
+ MessageContentBottomView?: React.ComponentType;
330
+ MessageContentLeadingView?: React.ComponentType;
331
+ MessageContentTopView?: React.ComponentType;
332
+ MessageContentTrailingView?: React.ComponentType;
333
+ MessageLocation?: React.ComponentType<{ message: LocalMessage }>;
334
+ MessageSpacer?: React.ComponentType;
335
+ MessageText?: React.ComponentType<MessageTextProps>;
336
+ PollContent?: React.ComponentType;
337
+ }
338
+
339
+ /**
340
+ * All default component implementations used across the SDK.
341
+ * These are the components used when no overrides are provided via WithComponents.
342
+ *
343
+ * The `NormalizeComponents` cast ensures that internal details like
344
+ * `displayName: string` don't leak into the public override types.
345
+ */
346
+ export const DEFAULT_COMPONENTS: NormalizeComponents<typeof components> = components;
package/src/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "9.0.0-beta.36"
2
+ "version": "9.0.0-beta.38"
3
3
  }
@@ -1,8 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", {
2
- value: true
3
- });
4
- exports.BottomSheetModalProvider = exports.BottomSheetModal = void 0;
5
- var _bottomSheet = require("@gorhom/bottom-sheet");
6
- var BottomSheetModalProvider = exports.BottomSheetModalProvider = _bottomSheet.BottomSheetModalProvider;
7
- var BottomSheetModal = exports.BottomSheetModal = _bottomSheet.BottomSheetModal;
8
- //# sourceMappingURL=BottomSheetModal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_bottomSheet","require","BottomSheetModalProvider","exports","BottomSheetModalProviderOriginal","BottomSheetModal","BottomSheetModalOriginal"],"sourceRoot":"../../../../src","sources":["components/BottomSheetCompatibility/BottomSheetModal.tsx"],"mappings":";;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AAUO,IAAMC,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA,GACnCE,qCAAsF;AACjF,IAAMC,gBAAgB,GAAAF,OAAA,CAAAE,gBAAA,GAC3BC,6BAAsE","ignoreList":[]}
@@ -1,51 +0,0 @@
1
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- exports.moveChannelUp = exports.getChannel = exports.MAX_QUERY_CHANNELS_LIMIT = exports.DEFAULT_QUERY_CHANNELS_LIMIT = void 0;
6
- var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
7
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
8
- var _utils = require("./hooks/utils");
9
- var moveChannelUp = exports.moveChannelUp = function moveChannelUp(_ref) {
10
- var channels = _ref.channels,
11
- channelToMove = _ref.channelToMove,
12
- channelToMoveIndexWithinChannels = _ref.channelToMoveIndexWithinChannels,
13
- sort = _ref.sort;
14
- var targetChannelIndex = channelToMoveIndexWithinChannels != null ? channelToMoveIndexWithinChannels : channels.findIndex(function (channel) {
15
- return channel.cid === channelToMove.cid;
16
- });
17
- var targetChannelExistsWithinList = targetChannelIndex >= 0;
18
- var targetChannelAlreadyAtTheTop = targetChannelIndex === 0;
19
- var considerPinnedChannels = (0, _utils.shouldConsiderPinnedChannels)(sort);
20
- if (targetChannelAlreadyAtTheTop) {
21
- return channels;
22
- }
23
- var newChannels = (0, _toConsumableArray2.default)(channels);
24
- if (targetChannelExistsWithinList) {
25
- newChannels.splice(targetChannelIndex, 1);
26
- }
27
- var lastPinnedChannelIndex = null;
28
- if (considerPinnedChannels) {
29
- lastPinnedChannelIndex = (0, _utils.findLastPinnedChannelIndex)({
30
- channels: newChannels
31
- });
32
- }
33
- newChannels.splice(typeof lastPinnedChannelIndex === 'number' ? lastPinnedChannelIndex + 1 : 0, 0, channelToMove);
34
- return newChannels;
35
- };
36
- var getChannel = exports.getChannel = function () {
37
- var _ref3 = (0, _asyncToGenerator2.default)(function* (_ref2) {
38
- var client = _ref2.client,
39
- id = _ref2.id,
40
- type = _ref2.type;
41
- var channel = client.channel(type, id);
42
- yield channel.watch();
43
- return channel;
44
- });
45
- return function getChannel(_x) {
46
- return _ref3.apply(this, arguments);
47
- };
48
- }();
49
- var DEFAULT_QUERY_CHANNELS_LIMIT = exports.DEFAULT_QUERY_CHANNELS_LIMIT = 10;
50
- var MAX_QUERY_CHANNELS_LIMIT = exports.MAX_QUERY_CHANNELS_LIMIT = 30;
51
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_utils","require","moveChannelUp","exports","_ref","channels","channelToMove","channelToMoveIndexWithinChannels","sort","targetChannelIndex","findIndex","channel","cid","targetChannelExistsWithinList","targetChannelAlreadyAtTheTop","considerPinnedChannels","shouldConsiderPinnedChannels","newChannels","_toConsumableArray2","default","splice","lastPinnedChannelIndex","findLastPinnedChannelIndex","getChannel","_ref3","_asyncToGenerator2","_ref2","client","id","type","watch","_x","apply","arguments","DEFAULT_QUERY_CHANNELS_LIMIT","MAX_QUERY_CHANNELS_LIMIT"],"sourceRoot":"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,CAAAoB,UAAA;EAAA,IAAAC,KAAA,OAAAC,kBAAA,CAAAN,OAAA,EAAG,WAAAO,KAAA,EAA+C;IAAA,IAAtCC,MAAM,GAAAD,KAAA,CAANC,MAAM;MAAEC,EAAE,GAAAF,KAAA,CAAFE,EAAE;MAAEC,IAAI,GAAAH,KAAA,CAAJG,IAAI;IACjD,IAAMlB,OAAO,GAAGgB,MAAM,CAAChB,OAAO,CAACkB,IAAI,EAAED,EAAE,CAAC;IACxC,MAAMjB,OAAO,CAACmB,KAAK,CAAC,CAAC;IACrB,OAAOnB,OAAO;EAChB,CAAC;EAAA,gBAJYY,UAAUA,CAAAQ,EAAA;IAAA,OAAAP,KAAA,CAAAQ,KAAA,OAAAC,SAAA;EAAA;AAAA,GAItB;AAEM,IAAMC,4BAA4B,GAAA/B,OAAA,CAAA+B,4BAAA,GAAG,EAAE;AACvC,IAAMC,wBAAwB,GAAAhC,OAAA,CAAAgC,wBAAA,GAAG,EAAE","ignoreList":[]}
@@ -1,215 +0,0 @@
1
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- exports.KeyboardCompatibleView = void 0;
6
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
7
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
8
- var _react = _interopRequireWildcard(require("react"));
9
- var _reactNative = require("react-native");
10
- var _KeyboardContext = require("../../contexts/keyboardContext/KeyboardContext");
11
- var _jsxRuntime = require("react/jsx-runtime");
12
- var _excluded = ["behavior", "children", "contentContainerStyle", "enabled", "keyboardVerticalOffset", "style"];
13
- var _this = this,
14
- _jsxFileName = "/home/runner/work/stream-chat-react-native/stream-chat-react-native/package/src/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.tsx";
15
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
16
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
17
- var KeyboardCompatibleView = exports.KeyboardCompatibleView = function KeyboardCompatibleView(_ref) {
18
- var _ref$behavior = _ref.behavior,
19
- behavior = _ref$behavior === void 0 ? _reactNative.Platform.OS === 'ios' ? 'padding' : 'position' : _ref$behavior,
20
- children = _ref.children,
21
- contentContainerStyle = _ref.contentContainerStyle,
22
- _ref$enabled = _ref.enabled,
23
- enabled = _ref$enabled === void 0 ? true : _ref$enabled,
24
- _ref$keyboardVertical = _ref.keyboardVerticalOffset,
25
- keyboardVerticalOffset = _ref$keyboardVertical === void 0 ? _reactNative.Platform.OS === 'ios' ? 86.5 : -300 : _ref$keyboardVertical,
26
- style = _ref.style,
27
- props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
28
- var frame = (0, _react.useRef)(undefined);
29
- var initialFrameHeight = (0, _react.useRef)(0);
30
- var keyboardEvent = (0, _react.useRef)(undefined);
31
- var subscriptions = (0, _react.useRef)([]);
32
- var viewRef = (0, _react.useRef)(null);
33
- var _useState = (0, _react.useState)(_reactNative.AppState.currentState),
34
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
35
- appState = _useState2[0],
36
- setAppState = _useState2[1];
37
- var _useState3 = (0, _react.useState)(0),
38
- _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
39
- bottom = _useState4[0],
40
- setBottom = _useState4[1];
41
- var _useState5 = (0, _react.useState)(false),
42
- _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
43
- isKeyboardOpen = _useState6[0],
44
- setIsKeyboardOpen = _useState6[1];
45
- (0, _react.useEffect)(function () {
46
- var handleAppStateChange = function handleAppStateChange(nextAppState) {
47
- if (appState.match(/inactive|background/) && nextAppState === 'active') {
48
- setKeyboardListeners();
49
- }
50
- if (nextAppState.match(/inactive|background/)) {
51
- unsetKeyboardListeners();
52
- }
53
- setAppState(nextAppState);
54
- };
55
- var onKeyboardChange = function onKeyboardChange(event) {
56
- keyboardEvent.current = event;
57
- };
58
- var setKeyboardListeners = function setKeyboardListeners() {
59
- if (_reactNative.Platform.OS === 'ios') {
60
- subscriptions.current = [_reactNative.Keyboard.addListener('keyboardWillChangeFrame', onKeyboardChange), _reactNative.Keyboard.addListener('keyboardDidHide', function () {
61
- setIsKeyboardOpen(false);
62
- }), _reactNative.Keyboard.addListener('keyboardDidShow', function () {
63
- setIsKeyboardOpen(true);
64
- })];
65
- } else {
66
- subscriptions.current = [_reactNative.Keyboard.addListener('keyboardDidHide', function (event) {
67
- onKeyboardChange(event);
68
- setIsKeyboardOpen(false);
69
- }), _reactNative.Keyboard.addListener('keyboardDidShow', function (event) {
70
- onKeyboardChange(event);
71
- setIsKeyboardOpen(true);
72
- })];
73
- }
74
- };
75
- var unsetKeyboardListeners = function unsetKeyboardListeners() {
76
- subscriptions.current = subscriptions.current.filter(function (subscription) {
77
- subscription.remove();
78
- return false;
79
- });
80
- };
81
- var subscription = _reactNative.AppState.addEventListener('change', handleAppStateChange);
82
- setKeyboardListeners();
83
- return function () {
84
- if (subscription != null && subscription.remove) {
85
- subscription == null || subscription.remove();
86
- } else if (_reactNative.AppState.removeEventListener) {
87
- _reactNative.AppState.removeEventListener('change', handleAppStateChange);
88
- }
89
- unsetKeyboardListeners();
90
- };
91
- }, []);
92
- (0, _react.useEffect)(function () {
93
- updateBottomIfNecessary();
94
- }, [keyboardEvent.current]);
95
- var dismissKeyboard = function dismissKeyboard() {
96
- if (!isKeyboardOpen) {
97
- return;
98
- }
99
- return new Promise(function (resolve) {
100
- var subscription = _reactNative.Keyboard.addListener('keyboardDidHide', function () {
101
- resolve();
102
- subscription.remove();
103
- });
104
- _reactNative.Keyboard.dismiss();
105
- });
106
- };
107
- var onLayout = function onLayout(event) {
108
- frame.current = event.nativeEvent.layout;
109
- if (!initialFrameHeight.current) {
110
- initialFrameHeight.current = frame.current.height;
111
- }
112
- updateBottomIfNecessary();
113
- };
114
- var relativeKeyboardHeight = function relativeKeyboardHeight(keyboardFrame) {
115
- if (!frame.current || !keyboardFrame) {
116
- return 0;
117
- }
118
- var keyboardY = keyboardFrame.screenY - keyboardVerticalOffset;
119
- return Math.max(frame.current.y + frame.current.height - keyboardY, 0);
120
- };
121
- var updateBottomIfNecessary = function updateBottomIfNecessary() {
122
- if (!keyboardEvent.current) {
123
- setBottom(0);
124
- return;
125
- }
126
- var _keyboardEvent$curren = keyboardEvent.current,
127
- duration = _keyboardEvent$curren.duration,
128
- easing = _keyboardEvent$curren.easing,
129
- endCoordinates = _keyboardEvent$curren.endCoordinates;
130
- var height = relativeKeyboardHeight(endCoordinates);
131
- if (bottom === height) {
132
- return;
133
- }
134
- if (duration && easing) {
135
- _reactNative.LayoutAnimation.configureNext({
136
- duration: duration > 10 ? duration : 10,
137
- update: {
138
- duration: duration > 10 ? duration : 10,
139
- type: _reactNative.LayoutAnimation.Types[easing] || 'keyboard'
140
- }
141
- });
142
- }
143
- setBottom(height);
144
- };
145
- var bottomHeight = enabled ? bottom : 0;
146
- switch (behavior) {
147
- case 'height':
148
- var heightStyle;
149
- if (frame.current && bottom > 0) {
150
- heightStyle = {
151
- flex: 0,
152
- height: initialFrameHeight.current - bottomHeight
153
- };
154
- }
155
- return (0, _jsxRuntime.jsx)(_KeyboardContext.KeyboardProvider, {
156
- value: {
157
- dismissKeyboard: dismissKeyboard
158
- },
159
- children: (0, _jsxRuntime.jsx)(_reactNative.View, Object.assign({
160
- onLayout: onLayout,
161
- ref: viewRef,
162
- style: _reactNative.StyleSheet.compose(style, heightStyle)
163
- }, props, {
164
- children: children
165
- }))
166
- });
167
- case 'position':
168
- return (0, _jsxRuntime.jsx)(_KeyboardContext.KeyboardProvider, {
169
- value: {
170
- dismissKeyboard: dismissKeyboard
171
- },
172
- children: (0, _jsxRuntime.jsx)(_reactNative.View, Object.assign({
173
- onLayout: onLayout,
174
- ref: viewRef,
175
- style: style
176
- }, props, {
177
- children: (0, _jsxRuntime.jsx)(_reactNative.View, {
178
- style: _reactNative.StyleSheet.compose(contentContainerStyle, {
179
- bottom: bottomHeight
180
- }),
181
- children: children
182
- })
183
- }))
184
- });
185
- case 'padding':
186
- return (0, _jsxRuntime.jsx)(_KeyboardContext.KeyboardProvider, {
187
- value: {
188
- dismissKeyboard: dismissKeyboard
189
- },
190
- children: (0, _jsxRuntime.jsx)(_reactNative.View, Object.assign({
191
- onLayout: onLayout,
192
- ref: viewRef,
193
- style: _reactNative.StyleSheet.compose(style, {
194
- paddingBottom: bottomHeight
195
- })
196
- }, props, {
197
- children: children
198
- }))
199
- });
200
- default:
201
- return (0, _jsxRuntime.jsx)(_KeyboardContext.KeyboardProvider, {
202
- value: {
203
- dismissKeyboard: dismissKeyboard
204
- },
205
- children: (0, _jsxRuntime.jsx)(_reactNative.View, Object.assign({
206
- onLayout: onLayout,
207
- ref: viewRef,
208
- style: style
209
- }, props, {
210
- children: children
211
- }))
212
- });
213
- }
214
- };
215
- //# sourceMappingURL=KeyboardCompatibleViewFC.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_KeyboardContext","_jsxRuntime","_excluded","_this","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","KeyboardCompatibleView","exports","_ref","_ref$behavior","behavior","Platform","OS","children","contentContainerStyle","_ref$enabled","enabled","_ref$keyboardVertical","keyboardVerticalOffset","style","props","_objectWithoutProperties2","frame","useRef","undefined","initialFrameHeight","keyboardEvent","subscriptions","viewRef","_useState","useState","AppState","currentState","_useState2","_slicedToArray2","appState","setAppState","_useState3","_useState4","bottom","setBottom","_useState5","_useState6","isKeyboardOpen","setIsKeyboardOpen","useEffect","handleAppStateChange","nextAppState","match","setKeyboardListeners","unsetKeyboardListeners","onKeyboardChange","event","current","Keyboard","addListener","filter","subscription","remove","addEventListener","removeEventListener","updateBottomIfNecessary","dismissKeyboard","Promise","resolve","dismiss","onLayout","nativeEvent","layout","height","relativeKeyboardHeight","keyboardFrame","keyboardY","screenY","Math","max","y","_keyboardEvent$curren","duration","easing","endCoordinates","LayoutAnimation","configureNext","update","type","Types","bottomHeight","heightStyle","flex","jsx","KeyboardProvider","value","View","assign","ref","StyleSheet","compose","paddingBottom"],"sourceRoot":"../../../../src","sources":["components/KeyboardCompatibleView/KeyboardCompatibleViewFC.tsx"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAiBA,IAAAE,gBAAA,GAAAF,OAAA;AAAkF,IAAAG,WAAA,GAAAH,OAAA;AAAA,IAAAI,SAAA;AAAA,IAAAC,KAAA;EAAAC,YAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAT,wBAAAS,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA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E,IAAA/B,WAAA,CAAA2G,GAAA,EAAC5G,gBAAA,CAAA6G,gBAAgB;QAACC,KAAK,EAAE;UAAE7B,eAAe,EAAfA;QAAgB,CAAE;QAAAjD,QAAA,EAC3C,IAAA/B,WAAA,CAAA2G,GAAA,EAAC7G,YAAA,CAAAgH,IAAI,EAAA9F,MAAA,CAAA+F,MAAA;UACH3B,QAAQ,EAAEA,QAAS;UACnB4B,GAAG,EAAElE,OAAQ;UACbT,KAAK,EAAE4E,uBAAU,CAACC,OAAO,CAAC7E,KAAK,EAAE;YAAE8E,aAAa,EAAEX;UAAa,CAAC;QAAE,GAC9DlE,KAAK;UAAAP,QAAA,EAERA;QAAQ,EACL;MAAC,CACS,CAAC;IAGvB;MACE,OACE,IAAA/B,WAAA,CAAA2G,GAAA,EAAC5G,gBAAA,CAAA6G,gBAAgB;QAACC,KAAK,EAAE;UAAE7B,eAAe,EAAfA;QAAgB,CAAE;QAAAjD,QAAA,EAC3C,IAAA/B,WAAA,CAAA2G,GAAA,EAAC7G,YAAA,CAAAgH,IAAI,EAAA9F,MAAA,CAAA+F,MAAA;UAAC3B,QAAQ,EAAEA,QAAS;UAAC4B,GAAG,EAAElE,OAAQ;UAACT,KAAK,EAAEA;QAAM,GAAKC,KAAK;UAAAP,QAAA,EAC5DA;QAAQ,EACL;MAAC,CACS,CAAC;EAEzB;AACF,CAAC","ignoreList":[]}
@@ -1,8 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", {
2
- value: true
3
- });
4
- exports.NativeAttachmentPicker = void 0;
5
- var NativeAttachmentPicker = exports.NativeAttachmentPicker = function NativeAttachmentPicker(_props) {
6
- return null;
7
- };
8
- //# sourceMappingURL=NativeAttachmentPicker.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["NativeAttachmentPicker","exports","_props"],"sourceRoot":"../../../../../src","sources":["components/MessageInput/components/NativeAttachmentPicker.tsx"],"mappings":";;;;AAQO,IAAMA,sBAAsB,GAAAC,OAAA,CAAAD,sBAAA,GAAG,SAAzBA,sBAAsBA,CAAIE,MAAmC,EAAK;EAE7E,OAAO,IAAI;AACb,CAAC","ignoreList":[]}
@@ -1,15 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", {
2
- value: true
3
- });
4
- exports.getLastReceivedMessageFlashList = void 0;
5
- var _utils = require("../../../utils/utils");
6
- var getLastReceivedMessageFlashList = exports.getLastReceivedMessageFlashList = function getLastReceivedMessageFlashList(messages) {
7
- for (var i = messages.length - 1; i >= 0; i--) {
8
- var message = messages[i];
9
- if ((message == null ? void 0 : message.status) === _utils.MessageStatusTypes.RECEIVED || (message == null ? void 0 : message.status) === _utils.MessageStatusTypes.SENDING) {
10
- return message;
11
- }
12
- }
13
- return;
14
- };
15
- //# sourceMappingURL=getLastReceivedMessageFlashList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_utils","require","getLastReceivedMessageFlashList","exports","messages","i","length","message","status","MessageStatusTypes","RECEIVED","SENDING"],"sourceRoot":"../../../../../src","sources":["components/MessageList/utils/getLastReceivedMessageFlashList.ts"],"mappings":";;;;AAEA,IAAAA,MAAA,GAAAC,OAAA;AAEO,IAAMC,+BAA+B,GAAAC,OAAA,CAAAD,+BAAA,GAAG,SAAlCA,+BAA+BA,CAAIE,QAAwB,EAAK;EAI3E,KAAK,IAAIC,CAAC,GAAGD,QAAQ,CAACE,MAAM,GAAG,CAAC,EAAED,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC7C,IAAME,OAAO,GAAGH,QAAQ,CAACC,CAAC,CAAC;IAC3B,IACE,CAAAE,OAAO,oBAAPA,OAAO,CAAEC,MAAM,MAAKC,yBAAkB,CAACC,QAAQ,IAC/C,CAAAH,OAAO,oBAAPA,OAAO,CAAEC,MAAM,MAAKC,yBAAkB,CAACE,OAAO,EAC9C;MACA,OAAOJ,OAAO;IAChB;EACF;EAEA;AACF,CAAC","ignoreList":[]}