stream-chat-react-native-core 5.23.0-beta.2 → 5.23.0-beta.4
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/Channel/hooks/useCreateMessagesContext.js +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.js +1 -1
- package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.test.js +1 -1
- package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.test.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +33 -30
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/MessageOverlay.js +30 -36
- package/lib/commonjs/components/MessageOverlay/MessageOverlay.js.map +1 -1
- package/lib/commonjs/i18n/fr.json +27 -27
- package/lib/commonjs/i18n/hi.json +27 -27
- package/lib/commonjs/i18n/it.json +27 -27
- package/lib/commonjs/i18n/nl.json +27 -27
- package/lib/commonjs/i18n/ru.json +27 -27
- package/lib/commonjs/i18n/tr.json +27 -27
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +1 -1
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/utils/parseLinks.js +1 -1
- package/lib/module/components/Message/MessageSimple/utils/parseLinks.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/utils/parseLinks.test.js +1 -1
- package/lib/module/components/Message/MessageSimple/utils/parseLinks.test.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js +33 -30
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/components/MessageOverlay/MessageOverlay.js +30 -36
- package/lib/module/components/MessageOverlay/MessageOverlay.js.map +1 -1
- package/lib/module/i18n/fr.json +27 -27
- package/lib/module/i18n/hi.json +27 -27
- package/lib/module/i18n/it.json +27 -27
- package/lib/module/i18n/nl.json +27 -27
- package/lib/module/i18n/ru.json +27 -27
- package/lib/module/i18n/tr.json +27 -27
- package/lib/module/version.json +1 -1
- package/lib/typescript/i18n/fr.json +27 -27
- package/lib/typescript/i18n/hi.json +27 -27
- package/lib/typescript/i18n/it.json +27 -27
- package/lib/typescript/i18n/nl.json +27 -27
- package/lib/typescript/i18n/ru.json +27 -27
- package/lib/typescript/i18n/tr.json +27 -27
- package/package.json +1 -1
- package/src/components/Channel/hooks/useCreateMessagesContext.ts +1 -0
- package/src/components/Message/MessageSimple/utils/parseLinks.test.ts +4 -0
- package/src/components/Message/MessageSimple/utils/parseLinks.ts +3 -3
- package/src/components/MessageList/MessageList.tsx +3 -1
- package/src/components/MessageOverlay/MessageOverlay.tsx +1 -6
- package/src/i18n/fr.json +27 -27
- package/src/i18n/hi.json +27 -27
- package/src/i18n/it.json +27 -27
- package/src/i18n/nl.json +27 -27
- package/src/i18n/ru.json +27 -27
- package/src/i18n/tr.json +27 -27
- package/src/version.json +1 -1
|
@@ -176,7 +176,7 @@ var useCreateMessagesContext = function useCreateMessagesContext(_ref) {
|
|
|
176
176
|
UrlPreview: UrlPreview,
|
|
177
177
|
VideoThumbnail: VideoThumbnail
|
|
178
178
|
};
|
|
179
|
-
}, [additionalTouchablePropsLength, channelId, disableTypingIndicator, dismissKeyboardOnMessageTouch, initialScrollToFirstUnreadMessage, markdownRulesLength, messageContentOrderValue, supportedReactionsLength, targetedMessage]);
|
|
179
|
+
}, [additionalTouchablePropsLength, channelId, disableTypingIndicator, dismissKeyboardOnMessageTouch, initialScrollToFirstUnreadMessage, markdownRulesLength, messageContentOrderValue, supportedReactionsLength, myMessageTheme, targetedMessage]);
|
|
180
180
|
return messagesContext;
|
|
181
181
|
};
|
|
182
182
|
exports.useCreateMessagesContext = useCreateMessagesContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","useCreateMessagesContext","_ref","additionalTouchableProps","Attachment","AttachmentActions","AudioAttachment","Card","CardCover","CardFooter","CardHeader","channelId","DateHeader","deletedMessagesVisibilityType","deleteMessage","deleteReaction","disableTypingIndicator","dismissKeyboardOnMessageTouch","enableMessageGroupingByUser","FileAttachment","FileAttachmentGroup","FileAttachmentIcon","FlatList","forceAlignMessages","formatDate","Gallery","getMessagesGroupStyles","Giphy","giphyVersion","handleBlock","handleCopy","handleDelete","handleEdit","handleFlag","handleMute","handlePinMessage","handleQuotedReply","handleReaction","handleRetry","handleThreadReply","ImageLoadingFailedIndicator","ImageLoadingIndicator","initialScrollToFirstUnreadMessage","InlineDateSeparator","InlineUnreadIndicator","isAttachmentEqual","legacyImageViewerSwipeBehaviour","markdownRules","Message","messageActions","MessageAvatar","MessageContent","messageContentOrder","MessageDeleted","MessageError","MessageFooter","MessageHeader","MessageList","MessagePinnedHeader","MessageReplies","MessageRepliesAvatars","MessageSimple","MessageStatus","MessageSystem","MessageText","myMessageTheme","onLongPressMessage","onPressInMessage","onPressMessage","OverlayReactionList","ReactionList","removeMessage","Reply","retrySendMessage","ScrollToBottomButton","selectReaction","sendReaction","setEditingState","setQuotedMessageState","supportedReactions","targetedMessage","TypingIndicator","TypingIndicatorContainer","updateMessage","UrlPreview","VideoThumbnail","additionalTouchablePropsLength","Object","keys","length","markdownRulesLength","messageContentOrderValue","join","supportedReactionsLength","messagesContext","useMemo","exports"],"sources":["useCreateMessagesContext.ts"],"sourcesContent":["import { useMemo } from 'react';\n\nimport type { MessagesContextValue } from '../../../contexts/messagesContext/MessagesContext';\nimport type { DefaultStreamChatGenerics } from '../../../types/types';\n\nexport const useCreateMessagesContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>({\n additionalTouchableProps,\n Attachment,\n AttachmentActions,\n AudioAttachment,\n Card,\n CardCover,\n CardFooter,\n CardHeader,\n channelId,\n DateHeader,\n deletedMessagesVisibilityType,\n deleteMessage,\n deleteReaction,\n disableTypingIndicator,\n dismissKeyboardOnMessageTouch,\n enableMessageGroupingByUser,\n FileAttachment,\n FileAttachmentGroup,\n FileAttachmentIcon,\n FlatList,\n forceAlignMessages,\n formatDate,\n Gallery,\n getMessagesGroupStyles,\n Giphy,\n giphyVersion,\n handleBlock,\n handleCopy,\n handleDelete,\n handleEdit,\n handleFlag,\n handleMute,\n handlePinMessage,\n handleQuotedReply,\n handleReaction,\n handleRetry,\n handleThreadReply,\n ImageLoadingFailedIndicator,\n ImageLoadingIndicator,\n initialScrollToFirstUnreadMessage,\n InlineDateSeparator,\n InlineUnreadIndicator,\n isAttachmentEqual,\n legacyImageViewerSwipeBehaviour,\n markdownRules,\n Message,\n messageActions,\n MessageAvatar,\n MessageContent,\n messageContentOrder,\n MessageDeleted,\n MessageError,\n MessageFooter,\n MessageHeader,\n MessageList,\n MessagePinnedHeader,\n MessageReplies,\n MessageRepliesAvatars,\n MessageSimple,\n MessageStatus,\n MessageSystem,\n MessageText,\n myMessageTheme,\n onLongPressMessage,\n onPressInMessage,\n onPressMessage,\n OverlayReactionList,\n ReactionList,\n removeMessage,\n Reply,\n retrySendMessage,\n ScrollToBottomButton,\n selectReaction,\n sendReaction,\n setEditingState,\n setQuotedMessageState,\n supportedReactions,\n targetedMessage,\n TypingIndicator,\n TypingIndicatorContainer,\n updateMessage,\n UrlPreview,\n VideoThumbnail,\n}: MessagesContextValue<StreamChatGenerics> & {\n /**\n * To ensure we allow re-render, when channel is changed\n */\n channelId?: string;\n}) => {\n const additionalTouchablePropsLength = Object.keys(additionalTouchableProps || {}).length;\n const markdownRulesLength = Object.keys(markdownRules || {}).length;\n const messageContentOrderValue = messageContentOrder.join();\n const supportedReactionsLength = supportedReactions.length;\n\n const messagesContext: MessagesContextValue<StreamChatGenerics> = useMemo(\n () => ({\n additionalTouchableProps,\n Attachment,\n AttachmentActions,\n AudioAttachment,\n Card,\n CardCover,\n CardFooter,\n CardHeader,\n DateHeader,\n deletedMessagesVisibilityType,\n deleteMessage,\n deleteReaction,\n disableTypingIndicator,\n dismissKeyboardOnMessageTouch,\n enableMessageGroupingByUser,\n FileAttachment,\n FileAttachmentGroup,\n FileAttachmentIcon,\n FlatList,\n forceAlignMessages,\n formatDate,\n Gallery,\n getMessagesGroupStyles,\n Giphy,\n giphyVersion,\n handleBlock,\n handleCopy,\n handleDelete,\n handleEdit,\n handleFlag,\n handleMute,\n handlePinMessage,\n handleQuotedReply,\n handleReaction,\n handleRetry,\n handleThreadReply,\n ImageLoadingFailedIndicator,\n ImageLoadingIndicator,\n initialScrollToFirstUnreadMessage,\n InlineDateSeparator,\n InlineUnreadIndicator,\n isAttachmentEqual,\n legacyImageViewerSwipeBehaviour,\n markdownRules,\n Message,\n messageActions,\n MessageAvatar,\n MessageContent,\n messageContentOrder,\n MessageDeleted,\n MessageError,\n MessageFooter,\n MessageHeader,\n MessageList,\n MessagePinnedHeader,\n MessageReplies,\n MessageRepliesAvatars,\n MessageSimple,\n MessageStatus,\n MessageSystem,\n MessageText,\n myMessageTheme,\n onLongPressMessage,\n onPressInMessage,\n onPressMessage,\n OverlayReactionList,\n ReactionList,\n removeMessage,\n Reply,\n retrySendMessage,\n ScrollToBottomButton,\n selectReaction,\n sendReaction,\n setEditingState,\n setQuotedMessageState,\n supportedReactions,\n targetedMessage,\n TypingIndicator,\n TypingIndicatorContainer,\n updateMessage,\n UrlPreview,\n VideoThumbnail,\n }),\n [\n additionalTouchablePropsLength,\n channelId,\n disableTypingIndicator,\n dismissKeyboardOnMessageTouch,\n initialScrollToFirstUnreadMessage,\n markdownRulesLength,\n messageContentOrderValue,\n supportedReactionsLength,\n targetedMessage,\n ],\n );\n\n return messagesContext;\n};\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAKO,IAAMC,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAAC,IAAA,EA2F/B;EAAA,IAxFJC,wBAAwB,GAAAD,IAAA,CAAxBC,wBAAwB;IACxBC,UAAU,GAAAF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c,EAAdA;IACF,CAAC;EAAA,CAAC,EACF,CACEC,8BAA8B,EAC9B3E,SAAS,EACTK,sBAAsB,EACtBC,6BAA6B,EAC7ByB,iCAAiC,EACjCgD,mBAAmB,EACnBC,wBAAwB,EACxBE,wBAAwB,EACxBb,eAAe,CAEnB,CAAC;EAED,OAAOc,eAAe;AACxB,CAAC;AAACE,OAAA,CAAA/F,wBAAA,GAAAA,wBAAA"}
|
|
1
|
+
{"version":3,"names":["_react","require","useCreateMessagesContext","_ref","additionalTouchableProps","Attachment","AttachmentActions","AudioAttachment","Card","CardCover","CardFooter","CardHeader","channelId","DateHeader","deletedMessagesVisibilityType","deleteMessage","deleteReaction","disableTypingIndicator","dismissKeyboardOnMessageTouch","enableMessageGroupingByUser","FileAttachment","FileAttachmentGroup","FileAttachmentIcon","FlatList","forceAlignMessages","formatDate","Gallery","getMessagesGroupStyles","Giphy","giphyVersion","handleBlock","handleCopy","handleDelete","handleEdit","handleFlag","handleMute","handlePinMessage","handleQuotedReply","handleReaction","handleRetry","handleThreadReply","ImageLoadingFailedIndicator","ImageLoadingIndicator","initialScrollToFirstUnreadMessage","InlineDateSeparator","InlineUnreadIndicator","isAttachmentEqual","legacyImageViewerSwipeBehaviour","markdownRules","Message","messageActions","MessageAvatar","MessageContent","messageContentOrder","MessageDeleted","MessageError","MessageFooter","MessageHeader","MessageList","MessagePinnedHeader","MessageReplies","MessageRepliesAvatars","MessageSimple","MessageStatus","MessageSystem","MessageText","myMessageTheme","onLongPressMessage","onPressInMessage","onPressMessage","OverlayReactionList","ReactionList","removeMessage","Reply","retrySendMessage","ScrollToBottomButton","selectReaction","sendReaction","setEditingState","setQuotedMessageState","supportedReactions","targetedMessage","TypingIndicator","TypingIndicatorContainer","updateMessage","UrlPreview","VideoThumbnail","additionalTouchablePropsLength","Object","keys","length","markdownRulesLength","messageContentOrderValue","join","supportedReactionsLength","messagesContext","useMemo","exports"],"sources":["useCreateMessagesContext.ts"],"sourcesContent":["import { useMemo } from 'react';\n\nimport type { MessagesContextValue } from '../../../contexts/messagesContext/MessagesContext';\nimport type { DefaultStreamChatGenerics } from '../../../types/types';\n\nexport const useCreateMessagesContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>({\n additionalTouchableProps,\n Attachment,\n AttachmentActions,\n AudioAttachment,\n Card,\n CardCover,\n CardFooter,\n CardHeader,\n channelId,\n DateHeader,\n deletedMessagesVisibilityType,\n deleteMessage,\n deleteReaction,\n disableTypingIndicator,\n dismissKeyboardOnMessageTouch,\n enableMessageGroupingByUser,\n FileAttachment,\n FileAttachmentGroup,\n FileAttachmentIcon,\n FlatList,\n forceAlignMessages,\n formatDate,\n Gallery,\n getMessagesGroupStyles,\n Giphy,\n giphyVersion,\n handleBlock,\n handleCopy,\n handleDelete,\n handleEdit,\n handleFlag,\n handleMute,\n handlePinMessage,\n handleQuotedReply,\n handleReaction,\n handleRetry,\n handleThreadReply,\n ImageLoadingFailedIndicator,\n ImageLoadingIndicator,\n initialScrollToFirstUnreadMessage,\n InlineDateSeparator,\n InlineUnreadIndicator,\n isAttachmentEqual,\n legacyImageViewerSwipeBehaviour,\n markdownRules,\n Message,\n messageActions,\n MessageAvatar,\n MessageContent,\n messageContentOrder,\n MessageDeleted,\n MessageError,\n MessageFooter,\n MessageHeader,\n MessageList,\n MessagePinnedHeader,\n MessageReplies,\n MessageRepliesAvatars,\n MessageSimple,\n MessageStatus,\n MessageSystem,\n MessageText,\n myMessageTheme,\n onLongPressMessage,\n onPressInMessage,\n onPressMessage,\n OverlayReactionList,\n ReactionList,\n removeMessage,\n Reply,\n retrySendMessage,\n ScrollToBottomButton,\n selectReaction,\n sendReaction,\n setEditingState,\n setQuotedMessageState,\n supportedReactions,\n targetedMessage,\n TypingIndicator,\n TypingIndicatorContainer,\n updateMessage,\n UrlPreview,\n VideoThumbnail,\n}: MessagesContextValue<StreamChatGenerics> & {\n /**\n * To ensure we allow re-render, when channel is changed\n */\n channelId?: string;\n}) => {\n const additionalTouchablePropsLength = Object.keys(additionalTouchableProps || {}).length;\n const markdownRulesLength = Object.keys(markdownRules || {}).length;\n const messageContentOrderValue = messageContentOrder.join();\n const supportedReactionsLength = supportedReactions.length;\n\n const messagesContext: MessagesContextValue<StreamChatGenerics> = useMemo(\n () => ({\n additionalTouchableProps,\n Attachment,\n AttachmentActions,\n AudioAttachment,\n Card,\n CardCover,\n CardFooter,\n CardHeader,\n DateHeader,\n deletedMessagesVisibilityType,\n deleteMessage,\n deleteReaction,\n disableTypingIndicator,\n dismissKeyboardOnMessageTouch,\n enableMessageGroupingByUser,\n FileAttachment,\n FileAttachmentGroup,\n FileAttachmentIcon,\n FlatList,\n forceAlignMessages,\n formatDate,\n Gallery,\n getMessagesGroupStyles,\n Giphy,\n giphyVersion,\n handleBlock,\n handleCopy,\n handleDelete,\n handleEdit,\n handleFlag,\n handleMute,\n handlePinMessage,\n handleQuotedReply,\n handleReaction,\n handleRetry,\n handleThreadReply,\n ImageLoadingFailedIndicator,\n ImageLoadingIndicator,\n initialScrollToFirstUnreadMessage,\n InlineDateSeparator,\n InlineUnreadIndicator,\n isAttachmentEqual,\n legacyImageViewerSwipeBehaviour,\n markdownRules,\n Message,\n messageActions,\n MessageAvatar,\n MessageContent,\n messageContentOrder,\n MessageDeleted,\n MessageError,\n MessageFooter,\n MessageHeader,\n MessageList,\n MessagePinnedHeader,\n MessageReplies,\n MessageRepliesAvatars,\n MessageSimple,\n MessageStatus,\n MessageSystem,\n MessageText,\n myMessageTheme,\n onLongPressMessage,\n onPressInMessage,\n onPressMessage,\n OverlayReactionList,\n ReactionList,\n removeMessage,\n Reply,\n retrySendMessage,\n ScrollToBottomButton,\n selectReaction,\n sendReaction,\n setEditingState,\n setQuotedMessageState,\n supportedReactions,\n targetedMessage,\n TypingIndicator,\n TypingIndicatorContainer,\n updateMessage,\n UrlPreview,\n VideoThumbnail,\n }),\n [\n additionalTouchablePropsLength,\n channelId,\n disableTypingIndicator,\n dismissKeyboardOnMessageTouch,\n initialScrollToFirstUnreadMessage,\n markdownRulesLength,\n messageContentOrderValue,\n supportedReactionsLength,\n myMessageTheme,\n targetedMessage,\n ],\n );\n\n return messagesContext;\n};\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAKO,IAAMC,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAAC,IAAA,EA2F/B;EAAA,IAxFJC,wBAAwB,GAAAD,IAAA,CAAxBC,wBAAwB;IACxBC,UAAU,GAAAF,IAAA,CAAVE,UAAU;IACVC,iBAAiB,GAAAH,IAAA,CAAjBG,iBAAiB;IACjBC,eAAe,GAAAJ,IAAA,CAAfI,eAAe;IACfC,IAAI,GAAAL,IAAA,CAAJK,IAAI;IACJC,SAAS,GAAAN,IAAA,CAATM,SAAS;IACTC,UAAU,GAAAP,IAAA,CAAVO,UAAU;IACVC,UAAU,GAAAR,IAAA,CAAVQ,UAAU;IACVC,SAAS,GAAAT,IAAA,CAATS,SAAS;IACTC,UAAU,GAAAV,IAAA,CAAVU,UAAU;IACVC,6BAA6B,GAAAX,IAAA,CAA7BW,6BAA6B;IAC7BC,aAAa,GAAAZ,IAAA,CAAbY,aAAa;IACbC,cAAc,GAAAb,IAAA,CAAda,cAAc;IACdC,sBAAsB,GAAAd,IAAA,CAAtBc,sBAAsB;IACtBC,6BAA6B,GAAAf,IAAA,CAA7Be,6BAA6B;IAC7BC,2BAA2B,GAAAhB,IAAA,CAA3BgB,2BAA2B;IAC3BC,cAAc,GAAAjB,IAAA,CAAdiB,cAAc;IACdC,mBAAmB,GAAAlB,IAAA,CAAnBkB,mBAAmB;IACnBC,kBAAkB,GAAAnB,IAAA,CAAlBmB,kBAAkB;IAClBC,QAAQ,GAAApB,IAAA,CAARoB,QAAQ;IACRC,kBAAkB,GAAArB,IAAA,CAAlBqB,kBAAkB;IAClBC,UAAU,GAAAtB,IAAA,CAAVsB,UAAU;IACVC,OAAO,GAAAvB,IAAA,CAAPuB,OAAO;IACPC,sBAAsB,GAAAxB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B,EAApBA,oBAAoB;MACpBC,cAAc,EAAdA,cAAc;MACdC,YAAY,EAAZA,YAAY;MACZC,eAAe,EAAfA,eAAe;MACfC,qBAAqB,EAArBA,qBAAqB;MACrBC,kBAAkB,EAAlBA,kBAAkB;MAClBC,eAAe,EAAfA,eAAe;MACfC,eAAe,EAAfA,eAAe;MACfC,wBAAwB,EAAxBA,wBAAwB;MACxBC,aAAa,EAAbA,aAAa;MACbC,UAAU,EAAVA,UAAU;MACVC,cAAc,EAAdA;IACF,CAAC;EAAA,CAAC,EACF,CACEC,8BAA8B,EAC9B3E,SAAS,EACTK,sBAAsB,EACtBC,6BAA6B,EAC7ByB,iCAAiC,EACjCgD,mBAAmB,EACnBC,wBAAwB,EACxBE,wBAAwB,EACxB5B,cAAc,EACde,eAAe,CAEnB,CAAC;EAED,OAAOc,eAAe;AACxB,CAAC;AAACE,OAAA,CAAA/F,wBAAA,GAAAA,wBAAA"}
|
|
@@ -6,7 +6,7 @@ exports.parseLinksFromText = void 0;
|
|
|
6
6
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
7
7
|
var _linkifyjs = require("linkifyjs");
|
|
8
8
|
var removeMarkdownLinksFromText = function removeMarkdownLinksFromText(input) {
|
|
9
|
-
return input.replace(/\[
|
|
9
|
+
return input.replace(/\[.*\]\(.*\)/g, '');
|
|
10
10
|
};
|
|
11
11
|
var removeUserNamesWithEmailFromText = function removeUserNamesWithEmailFromText(input) {
|
|
12
12
|
return input.replace(/@(\w+(\.\w+)?)(@\w+\.\w+)/g, '');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_linkifyjs","require","removeMarkdownLinksFromText","input","replace","removeUserNamesWithEmailFromText","parseLinksFromText","strippedInput","reduce","acc","fn","links","find","emails","result","concat","_toConsumableArray2","map","_ref","href","value","raw","url","exports"],"sources":["parseLinks.ts"],"sourcesContent":["import { find } from 'linkifyjs';\n\ninterface LinkInfo {\n raw: string;\n url: string;\n}\n\n/**\n * This is done
|
|
1
|
+
{"version":3,"names":["_linkifyjs","require","removeMarkdownLinksFromText","input","replace","removeUserNamesWithEmailFromText","parseLinksFromText","strippedInput","reduce","acc","fn","links","find","emails","result","concat","_toConsumableArray2","map","_ref","href","value","raw","url","exports"],"sources":["parseLinks.ts"],"sourcesContent":["import { find } from 'linkifyjs';\n\ninterface LinkInfo {\n raw: string;\n url: string;\n}\n\n/**\n * This is done to remove all markdown formatted links.\n * eg: [google.com](https://www.google.com), [Google](https://www.google.com), [https://www.google.com](https://www.google.com)\n * */\nconst removeMarkdownLinksFromText = (input: string) => input.replace(/\\[.*\\]\\(.*\\)/g, '');\n\n/**\n * This is done to avoid parsing usernames with dot as well as an email address in it.\n */\nconst removeUserNamesWithEmailFromText = (input: string) =>\n input.replace(/@(\\w+(\\.\\w+)?)(@\\w+\\.\\w+)/g, '');\n\nexport const parseLinksFromText = (input: string): LinkInfo[] => {\n const strippedInput = [removeMarkdownLinksFromText, removeUserNamesWithEmailFromText].reduce(\n (acc, fn) => fn(acc),\n input,\n );\n\n const links = find(strippedInput, 'url');\n const emails = find(strippedInput, 'email');\n\n const result: LinkInfo[] = [...links, ...emails].map(({ href, value }) => ({\n raw: value,\n url: href,\n }));\n\n return result;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAWA,IAAMC,2BAA2B,GAAG,SAA9BA,2BAA2BA,CAAIC,KAAa;EAAA,OAAKA,KAAK,CAACC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC;AAAA;AAKzF,IAAMC,gCAAgC,GAAG,SAAnCA,gCAAgCA,CAAIF,KAAa;EAAA,OACrDA,KAAK,CAACC,OAAO,CAAC,4BAA4B,EAAE,EAAE,CAAC;AAAA;AAE1C,IAAME,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIH,KAAa,EAAiB;EAC/D,IAAMI,aAAa,GAAG,CAACL,2BAA2B,EAAEG,gCAAgC,CAAC,CAACG,MAAM,CAC1F,UAACC,GAAG,EAAEC,EAAE;IAAA,OAAKA,EAAE,CAACD,GAAG,CAAC;EAAA,GACpBN,KACF,CAAC;EAED,IAAMQ,KAAK,GAAG,IAAAC,eAAI,EAACL,aAAa,EAAE,KAAK,CAAC;EACxC,IAAMM,MAAM,GAAG,IAAAD,eAAI,EAACL,aAAa,EAAE,OAAO,CAAC;EAE3C,IAAMO,MAAkB,GAAG,GAAAC,MAAA,KAAAC,mBAAA,aAAIL,KAAK,OAAAK,mBAAA,aAAKH,MAAM,GAAEI,GAAG,CAAC,UAAAC,IAAA;IAAA,IAAGC,IAAI,GAAAD,IAAA,CAAJC,IAAI;MAAEC,KAAK,GAAAF,IAAA,CAALE,KAAK;IAAA,OAAQ;MACzEC,GAAG,EAAED,KAAK;MACVE,GAAG,EAAEH;IACP,CAAC;EAAA,CAAC,CAAC;EAEH,OAAOL,MAAM;AACf,CAAC;AAACS,OAAA,CAAAjB,kBAAA,GAAAA,kBAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _parseLinks = require("./parseLinks");
|
|
2
2
|
describe('parseLinksFromText', function () {
|
|
3
|
-
it.each([['https://www.getstream.io', 'https://www.getstream.io'], ['https://getstream.io', 'https://getstream.io'], ['scrn://team-chat', undefined], ['https://localhost', 'https://localhost'], ['https://localhost/with/path?and=query&multiple=params', 'https://localhost/with/path?and=query&multiple=params'], ['https://localhost/with/path?and=query#fragment', 'https://localhost/with/path?and=query#fragment'], ['reactnative.dev', 'http://reactnative.dev'], ['hinge.health/schedule-with-a-coach', 'http://hinge.health/schedule-with-a-coach'], ['https://zh.wikipedia.org/wiki/挪威牛油危機', 'https://zh.wikipedia.org/wiki/挪威牛油危機'], ['https://getstream.io/chat/docs/react-native/?language=javascript', 'https://getstream.io/chat/docs/react-native/?language=javascript'], ['127.0.0.1/local_(development)_server', undefined], ['https://a.co:8999/ab.php?p=12', 'https://a.co:8999/ab.php?p=12'], ['https://help.apple.com/xcode/mac/current/#/devba7f53ad4', 'https://help.apple.com/xcode/mac/current/#/devba7f53ad4']])('Returns the encoded value of %p as %p', function (link, expected) {
|
|
3
|
+
it.each([['https://www.getstream.io', 'https://www.getstream.io'], ['https://getstream.io', 'https://getstream.io'], ['scrn://team-chat', undefined], ['https://localhost', 'https://localhost'], ['https://localhost/with/path?and=query&multiple=params', 'https://localhost/with/path?and=query&multiple=params'], ['https://localhost/with/path?and=query#fragment', 'https://localhost/with/path?and=query#fragment'], ['reactnative.dev', 'http://reactnative.dev'], ['hinge.health/schedule-with-a-coach', 'http://hinge.health/schedule-with-a-coach'], ['https://zh.wikipedia.org/wiki/挪威牛油危機', 'https://zh.wikipedia.org/wiki/挪威牛油危機'], ['https://getstream.io/chat/docs/react-native/?language=javascript', 'https://getstream.io/chat/docs/react-native/?language=javascript'], ['127.0.0.1/local_(development)_server', undefined], ['https://a.co:8999/ab.php?p=12', 'https://a.co:8999/ab.php?p=12'], ['https://help.apple.com/xcode/mac/current/#/devba7f53ad4', 'https://help.apple.com/xcode/mac/current/#/devba7f53ad4'], ['[google.com](https://www.google.com)', undefined], ['[https://www.google.com](https://www.google.com)', undefined], ['[abc]()', undefined], ['[](https://www.google.com)', undefined]])('Returns the encoded value of %p as %p', function (link, expected) {
|
|
4
4
|
var _result$;
|
|
5
5
|
var result = (0, _parseLinks.parseLinksFromText)(link);
|
|
6
6
|
expect((_result$ = result[0]) == null ? void 0 : _result$.url).toBe(expected);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_parseLinks","require","describe","it","each","undefined","link","expected","_result$","result","parseLinksFromText","expect","url","toBe","input","toEqual","raw","email","toHaveLength"],"sources":["parseLinks.test.ts"],"sourcesContent":["import { parseLinksFromText } from './parseLinks';\n\ndescribe('parseLinksFromText', () => {\n it.each([\n ['https://www.getstream.io', 'https://www.getstream.io'],\n ['https://getstream.io', 'https://getstream.io'],\n ['scrn://team-chat', undefined],\n ['https://localhost', 'https://localhost'],\n [\n 'https://localhost/with/path?and=query&multiple=params',\n 'https://localhost/with/path?and=query&multiple=params',\n ],\n [\n 'https://localhost/with/path?and=query#fragment',\n 'https://localhost/with/path?and=query#fragment',\n ],\n ['reactnative.dev', 'http://reactnative.dev'],\n ['hinge.health/schedule-with-a-coach', 'http://hinge.health/schedule-with-a-coach'],\n ['https://zh.wikipedia.org/wiki/挪威牛油危機', 'https://zh.wikipedia.org/wiki/挪威牛油危機'],\n [\n 'https://getstream.io/chat/docs/react-native/?language=javascript',\n 'https://getstream.io/chat/docs/react-native/?language=javascript',\n ],\n ['127.0.0.1/local_(development)_server', undefined],\n ['https://a.co:8999/ab.php?p=12', 'https://a.co:8999/ab.php?p=12'],\n [\n 'https://help.apple.com/xcode/mac/current/#/devba7f53ad4',\n 'https://help.apple.com/xcode/mac/current/#/devba7f53ad4',\n ],\n ])('Returns the encoded value of %p as %p', (link, expected) => {\n const result = parseLinksFromText(link);\n expect(result[0]?.url).toBe(expected);\n });\n it('parses fqdn', () => {\n const input = `We have put the apim bol,\n temporarily so :sj: we can later put the monitors on my grasp\n on reality right now is\n https://www.contrived-example.com:8080/sub/page.php?p1=1🇳🇴&p2=2#fragment-identifier\n :)`;\n const result = parseLinksFromText(input);\n expect(result).toEqual([\n {\n raw: 'https://www.contrived-example.com:8080/sub/page.php?p1=1🇳🇴&p2=2#fragment-identifier',\n url: 'https://www.contrived-example.com:8080/sub/page.php?p1=1🇳🇴&p2=2#fragment-identifier',\n },\n ]);\n });\n it.each([\n ['support+rn@getstream.io'],\n ['support.rn@getstream.io'],\n ['support-rn@getstream.io'],\n ['support_rn@getstream.io'],\n ])('Can parse the email address %p', (email) => {\n const result = parseLinksFromText(email);\n expect(result[0].url).toBe('mailto:' + email);\n expect(result[0].raw).toBe(email);\n });\n it(\"doesn't double the mailto prefix\", () => {\n const input = 'mailto:support@getstream.io';\n const result = parseLinksFromText(input);\n expect(result[0]).toEqual({\n raw: input,\n url: input,\n });\n });\n it('Does not falsely parse LINKs from text content', () => {\n const input = `#This string exists to test that we don't produce false positives\n Existing links:\n [already a parsed link](https://getstream.io/blog/react-native-how-to-build-bidirectional-infinite-scroll/)\n [even a bogus one]( should not match )\n ## These should, however, be parsed:\n www.getstream.io\n getstream.io\n `;\n const result = parseLinksFromText(input);\n expect(result).toHaveLength(2);\n });\n it('Encodes incomplete emoji unicode', () => {\n const input = 'https://getstream.io/�';\n const result = parseLinksFromText(input);\n expect(result[0]).toEqual({\n raw: input,\n url: 'https://getstream.io/�',\n });\n });\n});\n"],"mappings":"AAAA,IAAAA,WAAA,GAAAC,OAAA;AAEAC,QAAQ,CAAC,oBAAoB,EAAE,YAAM;EACnCC,EAAE,CAACC,IAAI,CAAC,CACN,CAAC,0BAA0B,EAAE,0BAA0B,CAAC,EACxD,CAAC,sBAAsB,EAAE,sBAAsB,CAAC,EAChD,CAAC,kBAAkB,EAAEC,SAAS,CAAC,EAC/B,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,EAC1C,CACE,uDAAuD,EACvD,uDAAuD,CACxD,EACD,CACE,gDAAgD,EAChD,gDAAgD,CACjD,EACD,CAAC,iBAAiB,EAAE,wBAAwB,CAAC,EAC7C,CAAC,oCAAoC,EAAE,2CAA2C,CAAC,EACnF,CAAC,sCAAsC,EAAE,sCAAsC,CAAC,EAChF,CACE,kEAAkE,EAClE,kEAAkE,CACnE,EACD,CAAC,sCAAsC,EAAEA,SAAS,CAAC,EACnD,CAAC,+BAA+B,EAAE,+BAA+B,CAAC,EAClE,CACE,yDAAyD,EACzD,yDAAyD,CAC1D,
|
|
1
|
+
{"version":3,"names":["_parseLinks","require","describe","it","each","undefined","link","expected","_result$","result","parseLinksFromText","expect","url","toBe","input","toEqual","raw","email","toHaveLength"],"sources":["parseLinks.test.ts"],"sourcesContent":["import { parseLinksFromText } from './parseLinks';\n\ndescribe('parseLinksFromText', () => {\n it.each([\n ['https://www.getstream.io', 'https://www.getstream.io'],\n ['https://getstream.io', 'https://getstream.io'],\n ['scrn://team-chat', undefined],\n ['https://localhost', 'https://localhost'],\n [\n 'https://localhost/with/path?and=query&multiple=params',\n 'https://localhost/with/path?and=query&multiple=params',\n ],\n [\n 'https://localhost/with/path?and=query#fragment',\n 'https://localhost/with/path?and=query#fragment',\n ],\n ['reactnative.dev', 'http://reactnative.dev'],\n ['hinge.health/schedule-with-a-coach', 'http://hinge.health/schedule-with-a-coach'],\n ['https://zh.wikipedia.org/wiki/挪威牛油危機', 'https://zh.wikipedia.org/wiki/挪威牛油危機'],\n [\n 'https://getstream.io/chat/docs/react-native/?language=javascript',\n 'https://getstream.io/chat/docs/react-native/?language=javascript',\n ],\n ['127.0.0.1/local_(development)_server', undefined],\n ['https://a.co:8999/ab.php?p=12', 'https://a.co:8999/ab.php?p=12'],\n [\n 'https://help.apple.com/xcode/mac/current/#/devba7f53ad4',\n 'https://help.apple.com/xcode/mac/current/#/devba7f53ad4',\n ],\n ['[google.com](https://www.google.com)', undefined],\n ['[https://www.google.com](https://www.google.com)', undefined],\n ['[abc]()', undefined],\n ['[](https://www.google.com)', undefined],\n ])('Returns the encoded value of %p as %p', (link, expected) => {\n const result = parseLinksFromText(link);\n expect(result[0]?.url).toBe(expected);\n });\n it('parses fqdn', () => {\n const input = `We have put the apim bol,\n temporarily so :sj: we can later put the monitors on my grasp\n on reality right now is\n https://www.contrived-example.com:8080/sub/page.php?p1=1🇳🇴&p2=2#fragment-identifier\n :)`;\n const result = parseLinksFromText(input);\n expect(result).toEqual([\n {\n raw: 'https://www.contrived-example.com:8080/sub/page.php?p1=1🇳🇴&p2=2#fragment-identifier',\n url: 'https://www.contrived-example.com:8080/sub/page.php?p1=1🇳🇴&p2=2#fragment-identifier',\n },\n ]);\n });\n it.each([\n ['support+rn@getstream.io'],\n ['support.rn@getstream.io'],\n ['support-rn@getstream.io'],\n ['support_rn@getstream.io'],\n ])('Can parse the email address %p', (email) => {\n const result = parseLinksFromText(email);\n expect(result[0].url).toBe('mailto:' + email);\n expect(result[0].raw).toBe(email);\n });\n it(\"doesn't double the mailto prefix\", () => {\n const input = 'mailto:support@getstream.io';\n const result = parseLinksFromText(input);\n expect(result[0]).toEqual({\n raw: input,\n url: input,\n });\n });\n it('Does not falsely parse LINKs from text content', () => {\n const input = `#This string exists to test that we don't produce false positives\n Existing links:\n [already a parsed link](https://getstream.io/blog/react-native-how-to-build-bidirectional-infinite-scroll/)\n [even a bogus one]( should not match )\n ## These should, however, be parsed:\n www.getstream.io\n getstream.io\n `;\n const result = parseLinksFromText(input);\n expect(result).toHaveLength(2);\n });\n it('Encodes incomplete emoji unicode', () => {\n const input = 'https://getstream.io/�';\n const result = parseLinksFromText(input);\n expect(result[0]).toEqual({\n raw: input,\n url: 'https://getstream.io/�',\n });\n });\n});\n"],"mappings":"AAAA,IAAAA,WAAA,GAAAC,OAAA;AAEAC,QAAQ,CAAC,oBAAoB,EAAE,YAAM;EACnCC,EAAE,CAACC,IAAI,CAAC,CACN,CAAC,0BAA0B,EAAE,0BAA0B,CAAC,EACxD,CAAC,sBAAsB,EAAE,sBAAsB,CAAC,EAChD,CAAC,kBAAkB,EAAEC,SAAS,CAAC,EAC/B,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,EAC1C,CACE,uDAAuD,EACvD,uDAAuD,CACxD,EACD,CACE,gDAAgD,EAChD,gDAAgD,CACjD,EACD,CAAC,iBAAiB,EAAE,wBAAwB,CAAC,EAC7C,CAAC,oCAAoC,EAAE,2CAA2C,CAAC,EACnF,CAAC,sCAAsC,EAAE,sCAAsC,CAAC,EAChF,CACE,kEAAkE,EAClE,kEAAkE,CACnE,EACD,CAAC,sCAAsC,EAAEA,SAAS,CAAC,EACnD,CAAC,+BAA+B,EAAE,+BAA+B,CAAC,EAClE,CACE,yDAAyD,EACzD,yDAAyD,CAC1D,EACD,CAAC,sCAAsC,EAAEA,SAAS,CAAC,EACnD,CAAC,kDAAkD,EAAEA,SAAS,CAAC,EAC/D,CAAC,SAAS,EAAEA,SAAS,CAAC,EACtB,CAAC,4BAA4B,EAAEA,SAAS,CAAC,CAC1C,CAAC,CA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AAG,EAAEE;IACP,CAAC,CAAC;EACJ,CAAC,CAAC;EACFX,EAAE,CAAC,gDAAgD,EAAE,YAAM;IACzD,IAAMW,KAAK,kUAOZ;IACC,IAAML,MAAM,GAAG,IAAAC,8BAAkB,EAACI,KAAK,CAAC;IACxCH,MAAM,CAACF,MAAM,CAAC,CAACS,YAAY,CAAC,CAAC,CAAC;EAChC,CAAC,CAAC;EACFf,EAAE,CAAC,kCAAkC,EAAE,YAAM;IAC3C,IAAMW,KAAK,GAAG,wBAAwB;IACtC,IAAML,MAAM,GAAG,IAAAC,8BAAkB,EAACI,KAAK,CAAC;IACxCH,MAAM,CAACF,MAAM,CAAC,CAAC,CAAC,CAAC,CAACM,OAAO,CAAC;MACxBC,GAAG,EAAEF,KAAK;MACVF,GAAG,EAAE;IACP,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -153,12 +153,15 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
153
153
|
listContainer = _theme$messageList.listContainer,
|
|
154
154
|
messageContainer = _theme$messageList.messageContainer,
|
|
155
155
|
screenPadding = theme.screenPadding;
|
|
156
|
+
var myMessageThemeString = (0, _react.useMemo)(function () {
|
|
157
|
+
return JSON.stringify(myMessageTheme);
|
|
158
|
+
}, [myMessageTheme]);
|
|
156
159
|
var modifiedTheme = (0, _react.useMemo)(function () {
|
|
157
160
|
return (0, _ThemeContext.mergeThemes)({
|
|
158
161
|
style: myMessageTheme,
|
|
159
162
|
theme: theme
|
|
160
163
|
});
|
|
161
|
-
}, [
|
|
164
|
+
}, [myMessageThemeString, theme]);
|
|
162
165
|
var _useMessageList = (0, _useMessageList2.useMessageList)({
|
|
163
166
|
noGroupByUser: noGroupByUser,
|
|
164
167
|
threadList: threadList
|
|
@@ -354,7 +357,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
354
357
|
__self: _this,
|
|
355
358
|
__source: {
|
|
356
359
|
fileName: _jsxFileName,
|
|
357
|
-
lineNumber:
|
|
360
|
+
lineNumber: 628,
|
|
358
361
|
columnNumber: 11
|
|
359
362
|
}
|
|
360
363
|
}, _react["default"].createElement(MessageSystem, {
|
|
@@ -365,14 +368,14 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
365
368
|
__self: _this,
|
|
366
369
|
__source: {
|
|
367
370
|
fileName: _jsxFileName,
|
|
368
|
-
lineNumber:
|
|
371
|
+
lineNumber: 629,
|
|
369
372
|
columnNumber: 13
|
|
370
373
|
}
|
|
371
374
|
})), insertInlineUnreadIndicator && _react["default"].createElement(InlineUnreadIndicator, {
|
|
372
375
|
__self: _this,
|
|
373
376
|
__source: {
|
|
374
377
|
fileName: _jsxFileName,
|
|
375
|
-
lineNumber:
|
|
378
|
+
lineNumber: 634,
|
|
376
379
|
columnNumber: 43
|
|
377
380
|
}
|
|
378
381
|
}));
|
|
@@ -383,7 +386,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
383
386
|
__self: _this,
|
|
384
387
|
__source: {
|
|
385
388
|
fileName: _jsxFileName,
|
|
386
|
-
lineNumber:
|
|
389
|
+
lineNumber: 641,
|
|
387
390
|
columnNumber: 32
|
|
388
391
|
}
|
|
389
392
|
});
|
|
@@ -402,7 +405,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
402
405
|
__self: _this,
|
|
403
406
|
__source: {
|
|
404
407
|
fileName: _jsxFileName,
|
|
405
|
-
lineNumber:
|
|
408
|
+
lineNumber: 643,
|
|
406
409
|
columnNumber: 7
|
|
407
410
|
}
|
|
408
411
|
});
|
|
@@ -411,7 +414,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
411
414
|
__self: _this,
|
|
412
415
|
__source: {
|
|
413
416
|
fileName: _jsxFileName,
|
|
414
|
-
lineNumber:
|
|
417
|
+
lineNumber: 660,
|
|
415
418
|
columnNumber: 9
|
|
416
419
|
}
|
|
417
420
|
}, _react["default"].createElement(_reactNative.View, {
|
|
@@ -419,14 +422,14 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
419
422
|
__self: _this,
|
|
420
423
|
__source: {
|
|
421
424
|
fileName: _jsxFileName,
|
|
422
|
-
lineNumber:
|
|
425
|
+
lineNumber: 661,
|
|
423
426
|
columnNumber: 11
|
|
424
427
|
}
|
|
425
428
|
}, renderMessage)), !shouldApplyAndroidWorkaround && renderDateSeperator, insertInlineUnreadIndicator && _react["default"].createElement(InlineUnreadIndicator, {
|
|
426
429
|
__self: _this,
|
|
427
430
|
__source: {
|
|
428
431
|
fileName: _jsxFileName,
|
|
429
|
-
lineNumber:
|
|
432
|
+
lineNumber: 665,
|
|
430
433
|
columnNumber: 41
|
|
431
434
|
}
|
|
432
435
|
})) : _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement(_reactNative.View, {
|
|
@@ -434,14 +437,14 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
434
437
|
__self: _this,
|
|
435
438
|
__source: {
|
|
436
439
|
fileName: _jsxFileName,
|
|
437
|
-
lineNumber:
|
|
440
|
+
lineNumber: 669,
|
|
438
441
|
columnNumber: 9
|
|
439
442
|
}
|
|
440
443
|
}, shouldApplyAndroidWorkaround && renderDateSeperator, renderMessage), !shouldApplyAndroidWorkaround && renderDateSeperator, insertInlineUnreadIndicator && _react["default"].createElement(InlineUnreadIndicator, {
|
|
441
444
|
__self: _this,
|
|
442
445
|
__source: {
|
|
443
446
|
fileName: _jsxFileName,
|
|
444
|
-
lineNumber:
|
|
447
|
+
lineNumber: 675,
|
|
445
448
|
columnNumber: 41
|
|
446
449
|
}
|
|
447
450
|
}));
|
|
@@ -761,7 +764,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
761
764
|
__self: _this,
|
|
762
765
|
__source: {
|
|
763
766
|
fileName: _jsxFileName,
|
|
764
|
-
lineNumber:
|
|
767
|
+
lineNumber: 1069,
|
|
765
768
|
columnNumber: 7
|
|
766
769
|
}
|
|
767
770
|
}, _react["default"].createElement(EmptyStateIndicator, {
|
|
@@ -769,7 +772,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
769
772
|
__self: _this,
|
|
770
773
|
__source: {
|
|
771
774
|
fileName: _jsxFileName,
|
|
772
|
-
lineNumber:
|
|
775
|
+
lineNumber: 1073,
|
|
773
776
|
columnNumber: 9
|
|
774
777
|
}
|
|
775
778
|
}));
|
|
@@ -780,14 +783,14 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
780
783
|
__self: _this,
|
|
781
784
|
__source: {
|
|
782
785
|
fileName: _jsxFileName,
|
|
783
|
-
lineNumber:
|
|
786
|
+
lineNumber: 1081,
|
|
784
787
|
columnNumber: 7
|
|
785
788
|
}
|
|
786
789
|
}, _react["default"].createElement(FooterComponent, {
|
|
787
790
|
__self: _this,
|
|
788
791
|
__source: {
|
|
789
792
|
fileName: _jsxFileName,
|
|
790
|
-
lineNumber:
|
|
793
|
+
lineNumber: 1082,
|
|
791
794
|
columnNumber: 9
|
|
792
795
|
}
|
|
793
796
|
}));
|
|
@@ -798,14 +801,14 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
798
801
|
__self: _this,
|
|
799
802
|
__source: {
|
|
800
803
|
fileName: _jsxFileName,
|
|
801
|
-
lineNumber:
|
|
804
|
+
lineNumber: 1090,
|
|
802
805
|
columnNumber: 7
|
|
803
806
|
}
|
|
804
807
|
}, _react["default"].createElement(HeaderComponent, {
|
|
805
808
|
__self: _this,
|
|
806
809
|
__source: {
|
|
807
810
|
fileName: _jsxFileName,
|
|
808
|
-
lineNumber:
|
|
811
|
+
lineNumber: 1091,
|
|
809
812
|
columnNumber: 9
|
|
810
813
|
}
|
|
811
814
|
}));
|
|
@@ -817,7 +820,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
817
820
|
__self: _this,
|
|
818
821
|
__source: {
|
|
819
822
|
fileName: _jsxFileName,
|
|
820
|
-
lineNumber:
|
|
823
|
+
lineNumber: 1101,
|
|
821
824
|
columnNumber: 7
|
|
822
825
|
}
|
|
823
826
|
}, _react["default"].createElement(LoadingIndicator, {
|
|
@@ -825,7 +828,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
825
828
|
__self: _this,
|
|
826
829
|
__source: {
|
|
827
830
|
fileName: _jsxFileName,
|
|
828
|
-
lineNumber:
|
|
831
|
+
lineNumber: 1102,
|
|
829
832
|
columnNumber: 9
|
|
830
833
|
}
|
|
831
834
|
}));
|
|
@@ -837,7 +840,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
837
840
|
__self: _this,
|
|
838
841
|
__source: {
|
|
839
842
|
fileName: _jsxFileName,
|
|
840
|
-
lineNumber:
|
|
843
|
+
lineNumber: 1109,
|
|
841
844
|
columnNumber: 30
|
|
842
845
|
}
|
|
843
846
|
});
|
|
@@ -846,7 +849,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
846
849
|
__self: _this,
|
|
847
850
|
__source: {
|
|
848
851
|
fileName: _jsxFileName,
|
|
849
|
-
lineNumber:
|
|
852
|
+
lineNumber: 1110,
|
|
850
853
|
columnNumber: 46
|
|
851
854
|
}
|
|
852
855
|
});
|
|
@@ -867,7 +870,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
867
870
|
__self: _this,
|
|
868
871
|
__source: {
|
|
869
872
|
fileName: _jsxFileName,
|
|
870
|
-
lineNumber:
|
|
873
|
+
lineNumber: 1126,
|
|
871
874
|
columnNumber: 5
|
|
872
875
|
}
|
|
873
876
|
}, _react["default"].createElement(FlatList, (0, _extends2["default"])({
|
|
@@ -904,7 +907,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
904
907
|
__self: _this,
|
|
905
908
|
__source: {
|
|
906
909
|
fileName: _jsxFileName,
|
|
907
|
-
lineNumber:
|
|
910
|
+
lineNumber: 1130,
|
|
908
911
|
columnNumber: 7
|
|
909
912
|
}
|
|
910
913
|
})), !loading && _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement(_reactNative.View, {
|
|
@@ -912,28 +915,28 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
912
915
|
__self: _this,
|
|
913
916
|
__source: {
|
|
914
917
|
fileName: _jsxFileName,
|
|
915
|
-
lineNumber:
|
|
918
|
+
lineNumber: 1181,
|
|
916
919
|
columnNumber: 11
|
|
917
920
|
}
|
|
918
921
|
}, _react["default"].createElement(StickyHeaderComponent, {
|
|
919
922
|
__self: _this,
|
|
920
923
|
__source: {
|
|
921
924
|
fileName: _jsxFileName,
|
|
922
|
-
lineNumber:
|
|
925
|
+
lineNumber: 1182,
|
|
923
926
|
columnNumber: 13
|
|
924
927
|
}
|
|
925
928
|
})), !disableTypingIndicator && TypingIndicator && _react["default"].createElement(TypingIndicatorContainer, {
|
|
926
929
|
__self: _this,
|
|
927
930
|
__source: {
|
|
928
931
|
fileName: _jsxFileName,
|
|
929
|
-
lineNumber:
|
|
932
|
+
lineNumber: 1185,
|
|
930
933
|
columnNumber: 13
|
|
931
934
|
}
|
|
932
935
|
}, _react["default"].createElement(TypingIndicator, {
|
|
933
936
|
__self: _this,
|
|
934
937
|
__source: {
|
|
935
938
|
fileName: _jsxFileName,
|
|
936
|
-
lineNumber:
|
|
939
|
+
lineNumber: 1186,
|
|
937
940
|
columnNumber: 15
|
|
938
941
|
}
|
|
939
942
|
})), _react["default"].createElement(ScrollToBottomButton, {
|
|
@@ -943,14 +946,14 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
943
946
|
__self: _this,
|
|
944
947
|
__source: {
|
|
945
948
|
fileName: _jsxFileName,
|
|
946
|
-
lineNumber:
|
|
949
|
+
lineNumber: 1189,
|
|
947
950
|
columnNumber: 11
|
|
948
951
|
}
|
|
949
952
|
})), _react["default"].createElement(NetworkDownIndicator, {
|
|
950
953
|
__self: _this,
|
|
951
954
|
__source: {
|
|
952
955
|
fileName: _jsxFileName,
|
|
953
|
-
lineNumber:
|
|
956
|
+
lineNumber: 1196,
|
|
954
957
|
columnNumber: 7
|
|
955
958
|
}
|
|
956
959
|
}));
|
|
@@ -1057,7 +1060,7 @@ var MessageList = function MessageList(props) {
|
|
|
1057
1060
|
__self: _this,
|
|
1058
1061
|
__source: {
|
|
1059
1062
|
fileName: _jsxFileName,
|
|
1060
|
-
lineNumber:
|
|
1063
|
+
lineNumber: 1254,
|
|
1061
1064
|
columnNumber: 5
|
|
1062
1065
|
}
|
|
1063
1066
|
}));
|