stream-chat-react-native-core 5.20.0-beta.3 → 5.20.0-beta.5
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/Message/MessageSimple/utils/renderText.js +23 -23
- package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js.map +1 -1
- package/lib/commonjs/components/docs/data.js +1 -1
- package/lib/commonjs/components/docs/data.js.map +1 -1
- package/lib/commonjs/i18n/en.json +1 -1
- package/lib/commonjs/i18n/fr.json +42 -42
- package/lib/commonjs/i18n/hi.json +42 -42
- package/lib/commonjs/i18n/it.json +42 -42
- package/lib/commonjs/i18n/nl.json +42 -42
- package/lib/commonjs/i18n/ru.json +41 -41
- package/lib/commonjs/i18n/tr.json +41 -41
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Message/MessageSimple/utils/renderText.js +23 -23
- package/lib/module/components/Message/MessageSimple/utils/renderText.js.map +1 -1
- package/lib/module/components/docs/data.js +1 -1
- package/lib/module/components/docs/data.js.map +1 -1
- package/lib/module/i18n/en.json +1 -1
- package/lib/module/i18n/fr.json +42 -42
- package/lib/module/i18n/hi.json +42 -42
- package/lib/module/i18n/it.json +42 -42
- package/lib/module/i18n/nl.json +42 -42
- package/lib/module/i18n/ru.json +41 -41
- package/lib/module/i18n/tr.json +41 -41
- package/lib/module/version.json +1 -1
- package/lib/typescript/i18n/en.json +1 -1
- package/lib/typescript/i18n/fr.json +42 -42
- package/lib/typescript/i18n/hi.json +42 -42
- package/lib/typescript/i18n/it.json +42 -42
- package/lib/typescript/i18n/nl.json +42 -42
- package/lib/typescript/i18n/ru.json +41 -41
- package/lib/typescript/i18n/tr.json +41 -41
- package/lib/typescript/utils/Streami18n.d.ts +4 -0
- package/package.json +1 -1
- package/src/__tests__/offline-support/offline-feature.js +1 -1
- package/src/components/Message/MessageSimple/utils/renderText.tsx +14 -11
- package/src/components/docs/data.js +1 -1
- package/src/i18n/en.json +1 -1
- package/src/i18n/fr.json +42 -42
- package/src/i18n/hi.json +42 -42
- package/src/i18n/it.json +42 -42
- package/src/i18n/nl.json +42 -42
- package/src/i18n/ru.json +41 -41
- package/src/i18n/tr.json +41 -41
- package/src/version.json +1 -1
|
@@ -108,7 +108,7 @@ var renderText = function renderText(params) {
|
|
|
108
108
|
return canOpenUrl && _reactNative.Linking.openURL(url);
|
|
109
109
|
});
|
|
110
110
|
};
|
|
111
|
-
var
|
|
111
|
+
var linkReact = function linkReact(node, output, _ref) {
|
|
112
112
|
var state = (0, _extends2["default"])({}, ((0, _objectDestructuringEmpty2["default"])(_ref), _ref));
|
|
113
113
|
var url = node.target;
|
|
114
114
|
var onPress = function onPress(event) {
|
|
@@ -152,7 +152,7 @@ var renderText = function renderText(params) {
|
|
|
152
152
|
withinLink: true
|
|
153
153
|
})));
|
|
154
154
|
};
|
|
155
|
-
var
|
|
155
|
+
var paragraphTextReact = function paragraphTextReact(node, output, _ref2) {
|
|
156
156
|
var state = (0, _extends2["default"])({}, ((0, _objectDestructuringEmpty2["default"])(_ref2), _ref2));
|
|
157
157
|
if (messageTextNumberOfLines !== undefined) {
|
|
158
158
|
if (state.key === '0' || state.key === 0) {
|
|
@@ -185,11 +185,11 @@ var renderText = function renderText(params) {
|
|
|
185
185
|
var mentionedUsers = Array.isArray(mentioned_users) ? mentioned_users.reduce(function (acc, cur) {
|
|
186
186
|
var userName = cur.name || cur.id || '';
|
|
187
187
|
if (userName) {
|
|
188
|
-
acc += (acc.length ? '|' : '') + "@" + userName
|
|
188
|
+
acc += (acc.length ? '|' : '') + "@" + userName.replace(/[.*+?^${}()|[\]\\]/g, function (match) {
|
|
189
|
+
return '\\' + match;
|
|
190
|
+
});
|
|
189
191
|
}
|
|
190
|
-
return acc
|
|
191
|
-
return '\\' + match;
|
|
192
|
-
});
|
|
192
|
+
return acc;
|
|
193
193
|
}, '') : '';
|
|
194
194
|
var regEx = new RegExp("^\\B(" + mentionedUsers + ")", 'g');
|
|
195
195
|
var match = function match(source) {
|
|
@@ -228,14 +228,14 @@ var renderText = function renderText(params) {
|
|
|
228
228
|
__self: _this,
|
|
229
229
|
__source: {
|
|
230
230
|
fileName: _jsxFileName,
|
|
231
|
-
lineNumber:
|
|
231
|
+
lineNumber: 269,
|
|
232
232
|
columnNumber: 7
|
|
233
233
|
}
|
|
234
234
|
}, Array.isArray(node.content) ? node.content.reduce(function (acc, current) {
|
|
235
235
|
return acc + current.content;
|
|
236
236
|
}, '') || '' : output(node.content, state));
|
|
237
237
|
};
|
|
238
|
-
var
|
|
238
|
+
var listReact = function listReact(node, output, state) {
|
|
239
239
|
return _react["default"].createElement(ListOutput, {
|
|
240
240
|
key: "list-" + state.key,
|
|
241
241
|
node: node,
|
|
@@ -245,7 +245,7 @@ var renderText = function renderText(params) {
|
|
|
245
245
|
__self: _this,
|
|
246
246
|
__source: {
|
|
247
247
|
fileName: _jsxFileName,
|
|
248
|
-
lineNumber:
|
|
248
|
+
lineNumber: 278,
|
|
249
249
|
columnNumber: 5
|
|
250
250
|
}
|
|
251
251
|
});
|
|
@@ -257,13 +257,13 @@ var renderText = function renderText(params) {
|
|
|
257
257
|
}
|
|
258
258
|
},
|
|
259
259
|
link: {
|
|
260
|
-
react:
|
|
260
|
+
react: linkReact
|
|
261
261
|
},
|
|
262
262
|
list: {
|
|
263
|
-
react:
|
|
263
|
+
react: listReact
|
|
264
264
|
},
|
|
265
265
|
paragraph: messageTextNumberOfLines ? {
|
|
266
|
-
react:
|
|
266
|
+
react: paragraphTextReact
|
|
267
267
|
} : {},
|
|
268
268
|
reflink: {
|
|
269
269
|
match: function match() {
|
|
@@ -271,7 +271,7 @@ var renderText = function renderText(params) {
|
|
|
271
271
|
}
|
|
272
272
|
},
|
|
273
273
|
sublist: {
|
|
274
|
-
react:
|
|
274
|
+
react: listReact
|
|
275
275
|
}
|
|
276
276
|
}, mentionedUsers ? {
|
|
277
277
|
mentions: {
|
|
@@ -289,7 +289,7 @@ var renderText = function renderText(params) {
|
|
|
289
289
|
__self: _this,
|
|
290
290
|
__source: {
|
|
291
291
|
fileName: _jsxFileName,
|
|
292
|
-
lineNumber:
|
|
292
|
+
lineNumber: 310,
|
|
293
293
|
columnNumber: 5
|
|
294
294
|
}
|
|
295
295
|
}, newText);
|
|
@@ -308,7 +308,7 @@ var ListOutput = function ListOutput(_ref4) {
|
|
|
308
308
|
__self: _this,
|
|
309
309
|
__source: {
|
|
310
310
|
fileName: _jsxFileName,
|
|
311
|
-
lineNumber:
|
|
311
|
+
lineNumber: 345,
|
|
312
312
|
columnNumber: 5
|
|
313
313
|
}
|
|
314
314
|
}, node.items.map(function (item, index) {
|
|
@@ -322,7 +322,7 @@ var ListOutput = function ListOutput(_ref4) {
|
|
|
322
322
|
__self: _this,
|
|
323
323
|
__source: {
|
|
324
324
|
fileName: _jsxFileName,
|
|
325
|
-
lineNumber:
|
|
325
|
+
lineNumber: 351,
|
|
326
326
|
columnNumber: 13
|
|
327
327
|
}
|
|
328
328
|
}, _react["default"].createElement(Bullet, {
|
|
@@ -331,7 +331,7 @@ var ListOutput = function ListOutput(_ref4) {
|
|
|
331
331
|
__self: _this,
|
|
332
332
|
__source: {
|
|
333
333
|
fileName: _jsxFileName,
|
|
334
|
-
lineNumber:
|
|
334
|
+
lineNumber: 352,
|
|
335
335
|
columnNumber: 15
|
|
336
336
|
}
|
|
337
337
|
}));
|
|
@@ -348,7 +348,7 @@ var ListOutput = function ListOutput(_ref4) {
|
|
|
348
348
|
__self: _this,
|
|
349
349
|
__source: {
|
|
350
350
|
fileName: _jsxFileName,
|
|
351
|
-
lineNumber:
|
|
351
|
+
lineNumber: 365,
|
|
352
352
|
columnNumber: 11
|
|
353
353
|
}
|
|
354
354
|
}, _react["default"].createElement(Bullet, {
|
|
@@ -357,7 +357,7 @@ var ListOutput = function ListOutput(_ref4) {
|
|
|
357
357
|
__self: _this,
|
|
358
358
|
__source: {
|
|
359
359
|
fileName: _jsxFileName,
|
|
360
|
-
lineNumber:
|
|
360
|
+
lineNumber: 366,
|
|
361
361
|
columnNumber: 13
|
|
362
362
|
}
|
|
363
363
|
}), _react["default"].createElement(ListItem, {
|
|
@@ -366,7 +366,7 @@ var ListOutput = function ListOutput(_ref4) {
|
|
|
366
366
|
__self: _this,
|
|
367
367
|
__source: {
|
|
368
368
|
fileName: _jsxFileName,
|
|
369
|
-
lineNumber:
|
|
369
|
+
lineNumber: 370,
|
|
370
370
|
columnNumber: 13
|
|
371
371
|
}
|
|
372
372
|
}, output(item, state)));
|
|
@@ -382,7 +382,7 @@ var Bullet = function Bullet(_ref5) {
|
|
|
382
382
|
__self: _this,
|
|
383
383
|
__source: {
|
|
384
384
|
fileName: _jsxFileName,
|
|
385
|
-
lineNumber:
|
|
385
|
+
lineNumber: 385,
|
|
386
386
|
columnNumber: 3
|
|
387
387
|
}
|
|
388
388
|
}, index ? index + ". " : "\u2022 ");
|
|
@@ -395,7 +395,7 @@ var ListRow = function ListRow(_ref6) {
|
|
|
395
395
|
__self: _this,
|
|
396
396
|
__source: {
|
|
397
397
|
fileName: _jsxFileName,
|
|
398
|
-
lineNumber:
|
|
398
|
+
lineNumber: 391,
|
|
399
399
|
columnNumber: 3
|
|
400
400
|
}
|
|
401
401
|
}, children);
|
|
@@ -408,7 +408,7 @@ var ListItem = function ListItem(_ref7) {
|
|
|
408
408
|
__self: _this,
|
|
409
409
|
__source: {
|
|
410
410
|
fileName: _jsxFileName,
|
|
411
|
-
lineNumber:
|
|
411
|
+
lineNumber: 395,
|
|
412
412
|
columnNumber: 3
|
|
413
413
|
}
|
|
414
414
|
}, children);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeMarkdownPackage","_truncate","_simpleMarkdown","_parseLinks","_this","_jsxFileName","_createForOfIteratorHelperLoose","o","allowArrayLike","it","Symbol","iterator","call","next","bind","Array","isArray","_unsupportedIterableToArray","length","i","done","value","TypeError","minLen","_arrayLikeToArray","n","Object","prototype","toString","slice","constructor","name","from","test","arr","len","arr2","defaultMarkdownStyles","inlineCode","fontSize","padding","paddingHorizontal","list","marginBottom","marginTop","listItemNumber","fontWeight","listItemText","flex","listRow","flexDirection","mentions","paragraph","paragraphCenter","paragraphWithImage","parse","capture","state","content","parseInline","renderText","params","colors","markdownRules","markdownStyles","message","messageOverlay","messageTextNumberOfLines","onLinkParams","onLink","onLongPressParam","onLongPress","onlyEmojis","onPressParam","onPress","preventPress","mentioned_users","text","newText","trim","linkInfos","parseLinksFromText","_iterator","_step","linkInfo","displayLink","truncate","raw","omission","markdown","encodedUrl","replace","styles","_extends2","autolink","color","accent_blue","backgroundColor","white_smoke","borderColor","grey_gainsboro","accent_red","black","url","pattern","RegExp","Linking","canOpenURL","then","canOpenUrl","openURL","link","node","output","_ref","_objectDestructuringEmpty2","target","event","additionalInfo","defaultHandler","emitter","createElement","Text","key","style","suppressHighlighting","__self","__source","fileName","lineNumber","columnNumber","withinLink","paragraphText","_ref2","undefined","numberOfLines","mentionedUsers","reduce","acc","cur","userName","id","match","regEx","source","exec","mentionsReact","_ref3","_node$content$","_node$content$$conten","substring","user","find","current","ListOutput","customRules","image","react","reflink","sublist","order","defaultRules","JSON","stringify","rules","exports","_ref4","isSublist","withinList","parentTypes","View","items","map","item","index","_item$","indexAfterStart","start","ListRow","testID","Bullet","ordered","listItemBullet","type","isSublistWithinText","includes","ListItem","_ref5","_ref6","children","_ref7"],"sources":["renderText.tsx"],"sourcesContent":["import React, { PropsWithChildren } from 'react';\nimport { GestureResponderEvent, Linking, Text, TextProps, View, ViewProps } from 'react-native';\n\n// @ts-expect-error\nimport Markdown from 'react-native-markdown-package';\n\nimport truncate from 'lodash/truncate';\nimport {\n DefaultRules,\n defaultRules,\n MatchFunction,\n ParseFunction,\n parseInline,\n ReactNodeOutput,\n ReactOutput,\n SingleASTNode,\n State,\n} from 'simple-markdown';\n\nimport type { UserResponse } from 'stream-chat';\n\nimport { parseLinksFromText } from './parseLinks';\n\nimport type { MessageContextValue } from '../../../../contexts/messageContext/MessageContext';\nimport type { Colors, MarkdownStyle } from '../../../../contexts/themeContext/utils/theme';\nimport type { DefaultStreamChatGenerics } from '../../../../types/types';\nimport type { MessageType } from '../../../MessageList/hooks/useMessageList';\n\nconst defaultMarkdownStyles: MarkdownStyle = {\n inlineCode: {\n fontSize: 13,\n padding: 3,\n paddingHorizontal: 5,\n },\n list: {\n marginBottom: 8,\n marginTop: 8,\n },\n listItemNumber: {\n fontWeight: 'bold',\n },\n listItemText: {\n flex: 0,\n },\n listRow: {\n flexDirection: 'row',\n },\n mentions: {\n fontWeight: '700',\n },\n paragraph: {\n marginBottom: 8,\n marginTop: 8,\n },\n paragraphCenter: {\n marginBottom: 8,\n marginTop: 8,\n },\n paragraphWithImage: {\n marginBottom: 8,\n marginTop: 8,\n },\n};\n\nconst parse: ParseFunction = (capture, parse, state) => ({\n content: parseInline(parse, capture[0], state),\n});\n\nexport type MarkdownRules = Partial<DefaultRules>;\n\nexport type RenderTextParams<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Partial<\n Pick<MessageContextValue<StreamChatGenerics>, 'onLongPress' | 'onPress' | 'preventPress'>\n> & {\n colors: typeof Colors;\n message: MessageType<StreamChatGenerics>;\n markdownRules?: MarkdownRules;\n markdownStyles?: MarkdownStyle;\n messageOverlay?: boolean;\n messageTextNumberOfLines?: number;\n onLink?: (url: string) => Promise<void>;\n onlyEmojis?: boolean;\n};\n\nexport const renderText = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n params: RenderTextParams<StreamChatGenerics>,\n) => {\n const {\n colors,\n markdownRules,\n markdownStyles,\n message,\n messageOverlay,\n messageTextNumberOfLines,\n onLink: onLinkParams,\n onLongPress: onLongPressParam,\n onlyEmojis,\n onPress: onPressParam,\n preventPress,\n } = params;\n\n // take the @ mentions and turn them into markdown?\n // translate links\n const { mentioned_users, text } = message;\n\n if (!text) return null;\n\n let newText = text.trim();\n const linkInfos = parseLinksFromText(newText);\n\n for (const linkInfo of linkInfos) {\n const displayLink = truncate(linkInfo.raw, {\n length: 200,\n omission: '...',\n });\n const markdown = `[${displayLink}](${linkInfo.encodedUrl})`;\n newText = newText.replace(linkInfo.raw, markdown);\n }\n\n newText = newText.replace(/[<&\"'>]/g, '\\\\$&');\n\n const styles: MarkdownStyle = {\n ...defaultMarkdownStyles,\n ...markdownStyles,\n autolink: {\n ...defaultMarkdownStyles.autolink,\n color: colors.accent_blue,\n ...markdownStyles?.autolink,\n },\n inlineCode: {\n ...defaultMarkdownStyles.inlineCode,\n backgroundColor: colors.white_smoke,\n borderColor: colors.grey_gainsboro,\n color: colors.accent_red,\n ...markdownStyles?.inlineCode,\n },\n mentions: {\n ...defaultMarkdownStyles.mentions,\n color: colors.accent_blue,\n ...markdownStyles?.mentions,\n },\n text: {\n ...defaultMarkdownStyles.text,\n color: colors.black,\n ...markdownStyles?.text,\n },\n };\n\n const onLink = (url: string) => {\n const pattern = new RegExp(/^\\S+:\\/\\//);\n if (!pattern.test(url)) {\n url = 'http://' + url;\n }\n\n return onLinkParams\n ? onLinkParams(url)\n : Linking.canOpenURL(url).then((canOpenUrl) => canOpenUrl && Linking.openURL(url));\n };\n\n const link: ReactNodeOutput = (node, output, { ...state }) => {\n const url = node.target;\n const onPress = (event: GestureResponderEvent) => {\n if (!preventPress && onPressParam) {\n onPressParam({\n additionalInfo: { url },\n defaultHandler: () => {\n onLink(url);\n },\n emitter: 'textLink',\n event,\n });\n }\n };\n\n const onLongPress = (event: GestureResponderEvent) => {\n if (!preventPress && onLongPressParam) {\n onLongPressParam({\n additionalInfo: { url },\n emitter: 'textLink',\n event,\n });\n }\n };\n\n return (\n <Text\n key={state.key}\n onLongPress={onLongPress}\n onPress={onPress}\n style={styles.autolink}\n suppressHighlighting={true}\n >\n {output(node.content, { ...state, withinLink: true })}\n </Text>\n );\n };\n\n const paragraphText: ReactNodeOutput = (node, output, { ...state }) => {\n if (messageTextNumberOfLines !== undefined) {\n // If we want to truncate the message text, lets only truncate the first paragraph\n // and simply not render rest of the paragraphs.\n if (state.key === '0' || state.key === 0) {\n return (\n <Text key={state.key} numberOfLines={messageTextNumberOfLines} style={styles.paragraph}>\n {output(node.content, state)}\n </Text>\n );\n } else {\n return null;\n }\n }\n\n return (\n <Text key={state.key} style={styles.paragraph}>\n {output(node.content, state)}\n </Text>\n );\n };\n\n const mentionedUsers = Array.isArray(mentioned_users)\n ? mentioned_users.reduce((acc, cur) => {\n const userName = cur.name || cur.id || '';\n if (userName) {\n acc += `${acc.length ? '|' : ''}@${userName}`;\n }\n\n return acc.replace(/[.*+?^${}()|[\\]\\\\]/g, function (match) {\n return '\\\\' + match;\n });\n }, '')\n : '';\n\n const regEx = new RegExp(`^\\\\B(${mentionedUsers})`, 'g');\n const match: MatchFunction = (source) => regEx.exec(source);\n\n const mentionsReact: ReactNodeOutput = (node, output, { ...state }) => {\n /**removes the @ prefix of username */\n const userName = node.content[0]?.content?.substring(1);\n const onPress = (event: GestureResponderEvent) => {\n if (!preventPress && onPressParam) {\n onPressParam({\n additionalInfo: {\n user: mentioned_users?.find(\n (user: UserResponse<StreamChatGenerics>) => userName === user.name,\n ),\n },\n emitter: 'textMention',\n event,\n });\n }\n };\n\n const onLongPress = (event: GestureResponderEvent) => {\n if (!preventPress && onLongPressParam) {\n onLongPressParam({\n emitter: 'textMention',\n event,\n });\n }\n };\n\n return (\n <Text key={state.key} onLongPress={onLongPress} onPress={onPress} style={styles.mentions}>\n {Array.isArray(node.content)\n ? node.content.reduce((acc, current) => acc + current.content, '') || ''\n : output(node.content, state)}\n </Text>\n );\n };\n\n const list: ReactNodeOutput = (node, output, state) => (\n <ListOutput\n key={`list-${state.key}`}\n node={node}\n output={output}\n state={state}\n styles={styles}\n />\n );\n\n const customRules = {\n // do not render images, we will scrape them out of the message and show on attachment card component\n image: { match: () => null },\n link: { react: link },\n list: { react: list },\n // Truncate long text content in the message overlay\n paragraph: messageTextNumberOfLines ? { react: paragraphText } : {},\n // we have no react rendering support for reflinks\n reflink: { match: () => null },\n sublist: { react: list },\n ...(mentionedUsers\n ? {\n mentions: {\n match,\n order: defaultRules.text.order - 0.5,\n parse,\n react: mentionsReact,\n },\n }\n : {}),\n };\n\n return (\n <Markdown\n key={`${JSON.stringify(mentioned_users)}-${onlyEmojis}-${\n messageOverlay ? JSON.stringify(markdownStyles) : undefined\n }-${JSON.stringify(colors)}`}\n onLink={onLink}\n rules={{\n ...customRules,\n ...markdownRules,\n }}\n styles={styles}\n >\n {newText}\n </Markdown>\n );\n};\n\nexport interface ListOutputProps {\n node: SingleASTNode;\n output: ReactOutput;\n state: State;\n styles?: Partial<MarkdownStyle>;\n}\n\n/**\n * For lists and sublists, the default behavior of the markdown library we use is\n * to always renumber any list, so all ordered lists start from 1.\n *\n * This custom rule overrides this behavior both for top level lists and sublists,\n * in order to start the numbering from the number of the first list item provided.\n */\nexport const ListOutput = ({ node, output, state, styles }: ListOutputProps) => {\n let isSublist = state.withinList;\n const parentTypes = ['text', 'paragraph', 'strong'];\n\n return (\n <View key={state.key} style={isSublist ? styles?.sublist : styles?.list}>\n {node.items.map((item: SingleASTNode, index: number) => {\n const indexAfterStart = node.start + index;\n\n if (item === null) {\n return (\n <ListRow key={index} style={styles?.listRow} testID='list-item'>\n <Bullet\n index={node.ordered && indexAfterStart}\n style={node.ordered ? styles?.listItemNumber : styles?.listItemBullet}\n />\n </ListRow>\n );\n }\n\n isSublist = item.length > 1 && item[1].type === 'list';\n const isSublistWithinText = parentTypes.includes((item[0] ?? {}).type) && isSublist;\n const style = isSublistWithinText ? { marginBottom: 0 } : {};\n\n return (\n <ListRow key={index} style={styles?.listRow} testID='list-item'>\n <Bullet\n index={node.ordered && indexAfterStart}\n style={node.ordered ? styles?.listItemNumber : styles?.listItemBullet}\n />\n <ListItem key={1} style={[styles?.listItemText, style]}>\n {output(item, state)}\n </ListItem>\n </ListRow>\n );\n })}\n </View>\n );\n};\n\ninterface BulletProps extends TextProps {\n index?: number;\n}\n\nconst Bullet = ({ index, style }: BulletProps) => (\n <Text key={0} style={style}>\n {index ? `${index}. ` : '\\u2022 '}\n </Text>\n);\n\nconst ListRow = ({ children, style }: PropsWithChildren<ViewProps>) => (\n <Text style={style}>{children}</Text>\n);\n\nconst ListItem = ({ children, style }: PropsWithChildren<TextProps>) => (\n <Text style={style}>{children}</Text>\n);\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,2BAAA,GAAAH,sBAAA,CAAAC,OAAA;AAEA,IAAAG,SAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AAcA,IAAAK,WAAA,GAAAL,OAAA;AAAkD,IAAAM,KAAA;EAAAC,YAAA;AAAA,SAAAC,gCAAAC,CAAA,EAAAC,cAAA,QAAAC,EAAA,UAAAC,MAAA,oBAAAH,CAAA,CAAAG,MAAA,CAAAC,QAAA,KAAAJ,CAAA,oBAAAE,EAAA,UAAAA,EAAA,GAAAA,EAAA,CAAAG,IAAA,CAAAL,CAAA,GAAAM,IAAA,CAAAC,IAAA,CAAAL,EAAA,OAAAM,KAAA,CAAAC,OAAA,CAAAT,CAAA,MAAAE,EAAA,GAAAQ,2BAAA,CAAAV,CAAA,MAAAC,cAAA,IAAAD,CAAA,WAAAA,CAAA,CAAAW,MAAA,qBAAAT,EAAA,EAAAF,CAAA,GAAAE,EAAA,MAAAU,CAAA,+BAAAA,CAAA,IAAAZ,CAAA,CAAAW,MAAA,WAAAE,IAAA,mBAAAA,IAAA,SAAAC,KAAA,EAAAd,CAAA,CAAAY,CAAA,sBAAAG,SAAA;AAAA,SAAAL,4BAAAV,CAAA,EAAAgB,MAAA,SAAAhB,CAAA,qBAAAA,CAAA,sBAAAiB,iBAAA,CAAAjB,CAAA,EAAAgB,MAAA,OAAAE,CAAA,GAAAC,MAAA,CAAAC,SAAA,CAAAC,QAAA,CAAAhB,IAAA,CA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AACE,KAAK,EAAEA,KAAM;IAAAE,MAAA,EAAA1H,KAAA;IAAA2H,QAAA;MAAAC,QAAA,EAAA3H,YAAA;MAAA4H,UAAA;MAAAC,YAAA;IAAA;EAAA,GAAE2D,QAAe,CAAC;AAAA,CACtC;AAED,IAAMH,QAAQ,GAAG,SAAXA,QAAQA,CAAAI,KAAA;EAAA,IAAMD,QAAQ,GAAAC,KAAA,CAARD,QAAQ;IAAEjE,KAAK,GAAAkE,KAAA,CAALlE,KAAK;EAAA,OACjChI,MAAA,YAAA6H,aAAA,CAAC1H,YAAA,CAAA2H,IAAI;IAACE,KAAK,EAAEA,KAAM;IAAAE,MAAA,EAAA1H,KAAA;IAAA2H,QAAA;MAAAC,QAAA,EAAA3H,YAAA;MAAA4H,UAAA;MAAAC,YAAA;IAAA;EAAA,GAAE2D,QAAe,CAAC;AAAA,CACtC"}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeMarkdownPackage","_truncate","_simpleMarkdown","_parseLinks","_this","_jsxFileName","_createForOfIteratorHelperLoose","o","allowArrayLike","it","Symbol","iterator","call","next","bind","Array","isArray","_unsupportedIterableToArray","length","i","done","value","TypeError","minLen","_arrayLikeToArray","n","Object","prototype","toString","slice","constructor","name","from","test","arr","len","arr2","defaultMarkdownStyles","inlineCode","fontSize","padding","paddingHorizontal","list","marginBottom","marginTop","listItemNumber","fontWeight","listItemText","flex","listRow","flexDirection","mentions","paragraph","paragraphCenter","paragraphWithImage","parse","capture","state","content","parseInline","renderText","params","colors","markdownRules","markdownStyles","message","messageOverlay","messageTextNumberOfLines","onLinkParams","onLink","onLongPressParam","onLongPress","onlyEmojis","onPressParam","onPress","preventPress","mentioned_users","text","newText","trim","linkInfos","parseLinksFromText","_iterator","_step","linkInfo","displayLink","truncate","raw","omission","markdown","encodedUrl","replace","styles","_extends2","autolink","color","accent_blue","backgroundColor","white_smoke","borderColor","grey_gainsboro","accent_red","black","url","pattern","RegExp","Linking","canOpenURL","then","canOpenUrl","openURL","linkReact","node","output","_ref","_objectDestructuringEmpty2","target","event","additionalInfo","defaultHandler","emitter","createElement","Text","key","style","suppressHighlighting","__self","__source","fileName","lineNumber","columnNumber","withinLink","paragraphTextReact","_ref2","undefined","numberOfLines","mentionedUsers","reduce","acc","cur","userName","id","match","regEx","source","exec","mentionsReact","_ref3","_node$content$","_node$content$$conten","substring","user","find","current","listReact","ListOutput","customRules","image","link","react","reflink","sublist","order","defaultRules","JSON","stringify","rules","exports","_ref4","isSublist","withinList","parentTypes","View","items","map","item","index","_item$","indexAfterStart","start","ListRow","testID","Bullet","ordered","listItemBullet","type","isSublistWithinText","includes","ListItem","_ref5","_ref6","children","_ref7"],"sources":["renderText.tsx"],"sourcesContent":["import React, { PropsWithChildren } from 'react';\nimport { GestureResponderEvent, Linking, Text, TextProps, View, ViewProps } from 'react-native';\n\n// @ts-expect-error\nimport Markdown from 'react-native-markdown-package';\n\nimport truncate from 'lodash/truncate';\nimport {\n DefaultRules,\n defaultRules,\n MatchFunction,\n ParseFunction,\n parseInline,\n ReactNodeOutput,\n ReactOutput,\n SingleASTNode,\n State,\n} from 'simple-markdown';\n\nimport type { UserResponse } from 'stream-chat';\n\nimport { parseLinksFromText } from './parseLinks';\n\nimport type { MessageContextValue } from '../../../../contexts/messageContext/MessageContext';\nimport type { Colors, MarkdownStyle } from '../../../../contexts/themeContext/utils/theme';\nimport type { DefaultStreamChatGenerics } from '../../../../types/types';\nimport type { MessageType } from '../../../MessageList/hooks/useMessageList';\n\nconst defaultMarkdownStyles: MarkdownStyle = {\n inlineCode: {\n fontSize: 13,\n padding: 3,\n paddingHorizontal: 5,\n },\n list: {\n marginBottom: 8,\n marginTop: 8,\n },\n listItemNumber: {\n fontWeight: 'bold',\n },\n listItemText: {\n flex: 0,\n },\n listRow: {\n flexDirection: 'row',\n },\n mentions: {\n fontWeight: '700',\n },\n paragraph: {\n marginBottom: 8,\n marginTop: 8,\n },\n paragraphCenter: {\n marginBottom: 8,\n marginTop: 8,\n },\n paragraphWithImage: {\n marginBottom: 8,\n marginTop: 8,\n },\n};\n\nconst parse: ParseFunction = (capture, parse, state) => ({\n content: parseInline(parse, capture[0], state),\n});\n\nexport type MarkdownRules = Partial<DefaultRules>;\n\nexport type RenderTextParams<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Partial<\n Pick<MessageContextValue<StreamChatGenerics>, 'onLongPress' | 'onPress' | 'preventPress'>\n> & {\n colors: typeof Colors;\n message: MessageType<StreamChatGenerics>;\n markdownRules?: MarkdownRules;\n markdownStyles?: MarkdownStyle;\n messageOverlay?: boolean;\n messageTextNumberOfLines?: number;\n onLink?: (url: string) => Promise<void>;\n onlyEmojis?: boolean;\n};\n\nexport const renderText = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n params: RenderTextParams<StreamChatGenerics>,\n) => {\n const {\n colors,\n markdownRules,\n markdownStyles,\n message,\n messageOverlay,\n messageTextNumberOfLines,\n onLink: onLinkParams,\n onLongPress: onLongPressParam,\n onlyEmojis,\n onPress: onPressParam,\n preventPress,\n } = params;\n\n // take the @ mentions and turn them into markdown?\n // translate links\n const { mentioned_users, text } = message;\n\n if (!text) return null;\n\n let newText = text.trim();\n const linkInfos = parseLinksFromText(newText);\n\n for (const linkInfo of linkInfos) {\n const displayLink = truncate(linkInfo.raw, {\n length: 200,\n omission: '...',\n });\n const markdown = `[${displayLink}](${linkInfo.encodedUrl})`;\n newText = newText.replace(linkInfo.raw, markdown);\n }\n\n newText = newText.replace(/[<&\"'>]/g, '\\\\$&');\n\n const styles: MarkdownStyle = {\n ...defaultMarkdownStyles,\n ...markdownStyles,\n autolink: {\n ...defaultMarkdownStyles.autolink,\n color: colors.accent_blue,\n ...markdownStyles?.autolink,\n },\n inlineCode: {\n ...defaultMarkdownStyles.inlineCode,\n backgroundColor: colors.white_smoke,\n borderColor: colors.grey_gainsboro,\n color: colors.accent_red,\n ...markdownStyles?.inlineCode,\n },\n mentions: {\n ...defaultMarkdownStyles.mentions,\n color: colors.accent_blue,\n ...markdownStyles?.mentions,\n },\n text: {\n ...defaultMarkdownStyles.text,\n color: colors.black,\n ...markdownStyles?.text,\n },\n };\n\n const onLink = (url: string) => {\n const pattern = new RegExp(/^\\S+:\\/\\//);\n if (!pattern.test(url)) {\n url = 'http://' + url;\n }\n\n return onLinkParams\n ? onLinkParams(url)\n : Linking.canOpenURL(url).then((canOpenUrl) => canOpenUrl && Linking.openURL(url));\n };\n\n const linkReact: ReactNodeOutput = (node, output, { ...state }) => {\n const url = node.target;\n const onPress = (event: GestureResponderEvent) => {\n if (!preventPress && onPressParam) {\n onPressParam({\n additionalInfo: { url },\n defaultHandler: () => {\n onLink(url);\n },\n emitter: 'textLink',\n event,\n });\n }\n };\n\n const onLongPress = (event: GestureResponderEvent) => {\n if (!preventPress && onLongPressParam) {\n onLongPressParam({\n additionalInfo: { url },\n emitter: 'textLink',\n event,\n });\n }\n };\n\n return (\n <Text\n key={state.key}\n onLongPress={onLongPress}\n onPress={onPress}\n style={styles.autolink}\n suppressHighlighting={true}\n >\n {output(node.content, { ...state, withinLink: true })}\n </Text>\n );\n };\n\n const paragraphTextReact: ReactNodeOutput = (node, output, { ...state }) => {\n if (messageTextNumberOfLines !== undefined) {\n // If we want to truncate the message text, lets only truncate the first paragraph\n // and simply not render rest of the paragraphs.\n if (state.key === '0' || state.key === 0) {\n return (\n <Text key={state.key} numberOfLines={messageTextNumberOfLines} style={styles.paragraph}>\n {output(node.content, state)}\n </Text>\n );\n } else {\n return null;\n }\n }\n\n return (\n <Text key={state.key} style={styles.paragraph}>\n {output(node.content, state)}\n </Text>\n );\n };\n\n const mentionedUsers = Array.isArray(mentioned_users)\n ? mentioned_users.reduce((acc, cur) => {\n const userName = cur.name || cur.id || '';\n if (userName) {\n acc += `${acc.length ? '|' : ''}@${userName.replace(\n /[.*+?^${}()|[\\]\\\\]/g,\n function (match) {\n return '\\\\' + match;\n },\n )}`;\n }\n\n return acc;\n }, '')\n : '';\n\n const regEx = new RegExp(`^\\\\B(${mentionedUsers})`, 'g');\n const match: MatchFunction = (source) => regEx.exec(source);\n\n const mentionsReact: ReactNodeOutput = (node, output, { ...state }) => {\n /**removes the @ prefix of username */\n const userName = node.content[0]?.content?.substring(1);\n const onPress = (event: GestureResponderEvent) => {\n if (!preventPress && onPressParam) {\n onPressParam({\n additionalInfo: {\n user: mentioned_users?.find(\n (user: UserResponse<StreamChatGenerics>) => userName === user.name,\n ),\n },\n emitter: 'textMention',\n event,\n });\n }\n };\n\n const onLongPress = (event: GestureResponderEvent) => {\n if (!preventPress && onLongPressParam) {\n onLongPressParam({\n emitter: 'textMention',\n event,\n });\n }\n };\n\n return (\n <Text key={state.key} onLongPress={onLongPress} onPress={onPress} style={styles.mentions}>\n {Array.isArray(node.content)\n ? node.content.reduce((acc, current) => acc + current.content, '') || ''\n : output(node.content, state)}\n </Text>\n );\n };\n\n const listReact: ReactNodeOutput = (node, output, state) => (\n <ListOutput\n key={`list-${state.key}`}\n node={node}\n output={output}\n state={state}\n styles={styles}\n />\n );\n\n const customRules = {\n // do not render images, we will scrape them out of the message and show on attachment card component\n image: { match: () => null },\n link: { react: linkReact },\n list: { react: listReact },\n // Truncate long text content in the message overlay\n paragraph: messageTextNumberOfLines ? { react: paragraphTextReact } : {},\n // we have no react rendering support for reflinks\n reflink: { match: () => null },\n sublist: { react: listReact },\n ...(mentionedUsers\n ? {\n mentions: {\n match,\n order: defaultRules.text.order - 0.5,\n parse,\n react: mentionsReact,\n },\n }\n : {}),\n };\n\n return (\n <Markdown\n key={`${JSON.stringify(mentioned_users)}-${onlyEmojis}-${\n messageOverlay ? JSON.stringify(markdownStyles) : undefined\n }-${JSON.stringify(colors)}`}\n onLink={onLink}\n rules={{\n ...customRules,\n ...markdownRules,\n }}\n styles={styles}\n >\n {newText}\n </Markdown>\n );\n};\n\nexport interface ListOutputProps {\n node: SingleASTNode;\n output: ReactOutput;\n state: State;\n styles?: Partial<MarkdownStyle>;\n}\n\n/**\n * For lists and sublists, the default behavior of the markdown library we use is\n * to always renumber any list, so all ordered lists start from 1.\n *\n * This custom rule overrides this behavior both for top level lists and sublists,\n * in order to start the numbering from the number of the first list item provided.\n */\nexport const ListOutput = ({ node, output, state, styles }: ListOutputProps) => {\n let isSublist = state.withinList;\n const parentTypes = ['text', 'paragraph', 'strong'];\n\n return (\n <View key={state.key} style={isSublist ? styles?.sublist : styles?.list}>\n {node.items.map((item: SingleASTNode, index: number) => {\n const indexAfterStart = node.start + index;\n\n if (item === null) {\n return (\n <ListRow key={index} style={styles?.listRow} testID='list-item'>\n <Bullet\n index={node.ordered && indexAfterStart}\n style={node.ordered ? styles?.listItemNumber : styles?.listItemBullet}\n />\n </ListRow>\n );\n }\n\n isSublist = item.length > 1 && item[1].type === 'list';\n const isSublistWithinText = parentTypes.includes((item[0] ?? {}).type) && isSublist;\n const style = isSublistWithinText ? { marginBottom: 0 } : {};\n\n return (\n <ListRow key={index} style={styles?.listRow} testID='list-item'>\n <Bullet\n index={node.ordered && indexAfterStart}\n style={node.ordered ? styles?.listItemNumber : styles?.listItemBullet}\n />\n <ListItem key={1} style={[styles?.listItemText, style]}>\n {output(item, state)}\n </ListItem>\n </ListRow>\n );\n })}\n </View>\n );\n};\n\ninterface BulletProps extends TextProps {\n index?: number;\n}\n\nconst Bullet = ({ index, style }: BulletProps) => (\n <Text key={0} style={style}>\n {index ? `${index}. ` : '\\u2022 '}\n </Text>\n);\n\nconst ListRow = ({ children, style }: PropsWithChildren<ViewProps>) => (\n <Text style={style}>{children}</Text>\n);\n\nconst ListItem = ({ children, style }: PropsWithChildren<TextProps>) => (\n <Text style={style}>{children}</Text>\n);\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,2BAAA,GAAAH,sBAAA,CAAAC,OAAA;AAEA,IAAAG,SAAA,GAAAJ,sBAAA,CAAA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IAAAE,MAAA,EAAA1H,KAAA;IAAA2H,QAAA;MAAAC,QAAA,EAAA3H,YAAA;MAAA4H,UAAA;MAAAC,YAAA;IAAA;EAAA,GAAE6D,QAAe,CAAC;AAAA,CACtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Dayjs","require","StreamChat","client","exports","connectUser","id","channel","image","name","channelContext","translationContext","t","text","tDateTimeParser","date","suggestionsContext","closeSuggestions","openSuggestions","setInputBoxContainerRef","updateSuggestions","filters","example","type","sort","last_message_at","channels","queryChannels","subscribe","message","__html","attachments","command","created_at","html","own_reactions","message_id","user","last_active","online","role","updated_at","reaction_counts","like","love","reactions","reply_count","status","messageWithImages","image_url","thumb_url","messageWithUrlPreview","og_scrape_url","title","title_link","thread","threadMessages","Date","parent_id","invisible","mutes","messages","users","MessageMock","canDeleteMessage","canEditMessage","handleDelete","console","log","handleEdit","handleFlag","handleMute","dynamicallyLoadScript","url","Promise","resolve","reject","script","document","createElement","src","onload","onerror","Error","body","appendChild"],"sources":["data.js"],"sourcesContent":["/* global require */\nconst Dayjs = require('dayjs');\nconst StreamChat = require('stream-chat').StreamChat;\nexport const client = new StreamChat('qk4nn7rpcn75');\n\nclient.connectUser(\n {\n id: 'John',\n },\n 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiSm9obiIsImlhdCI6MTU0ODI5ODUxN30.hyonbQnOLuFsr15mdmc_JF4sBOm2SURK4eBvTOx3ZIg',\n);\n\nexport const channel = client.channel('messaging', 'general', {\n image:\n 'https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/chat_avatar_01_green.jpg',\n name: 'Talk about the documentation',\n});\n\nexport const channelContext = {\n channel,\n client,\n};\n\nexport const translationContext = {\n t: (text) => text,\n tDateTimeParser: (date) => Dayjs(date),\n};\nexport const suggestionsContext = {\n closeSuggestions: () => {},\n openSuggestions: () => {},\n setInputBoxContainerRef: () => {},\n updateSuggestions: () => {},\n};\n\nconst filters = { example: 1, type: 'team' };\nconst sort = { last_message_at: -1 };\n\nexport const channels = client.queryChannels(filters, sort, {\n subscribe: true,\n});\n\nexport const message = {\n __html:\n '<p><a href=\"https://unsplash.com/photos/lxuB4abGzXc\" rel=\"nofollow\">https://unsplash.com/photos/lxuB4abGzXc</a></p>\\n',\n attachments: [],\n command: '',\n created_at: '2019-01-25T00:18:59.675Z',\n html:\n '<p><a href=\"https://unsplash.com/photos/lxuB4abGzXc\" rel=\"nofollow\">https://unsplash.com/photos/lxuB4abGzXc</a></p>\\n',\n id: 'thierry-e298f569-8745-407f-a02b-f75c0206612f',\n own_reactions: [\n {\n created_at: '2019-01-25T16:24:00.173967Z',\n id: 142,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'love',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n {\n created_at: '2019-01-25T16:23:58.939438Z',\n id: 141,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'like',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n ],\n reaction_counts: {\n like: 1,\n love: 1,\n },\n reactions: [\n {\n created_at: '2019-01-25T16:24:00.173967Z',\n id: 142,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'love',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n {\n created_at: '2019-01-25T16:23:58.939438Z',\n id: 141,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'like',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n ],\n reply_count: 0,\n status: 'received',\n text: 'Hey this is getstream message',\n type: 'regular',\n updated_at: '2019-01-25T16:24:00.181Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n image:\n 'https://cdn.pixabay.com/photo/2014/03/25/16/54/user-297566__340.png',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n};\n\nexport const messageWithImages = {\n __html:\n '<p><a href=\"https://unsplash.com/photos/lxuB4abGzXc\" rel=\"nofollow\">https://unsplash.com/photos/lxuB4abGzXc</a></p>\\n',\n attachments: [\n {\n image_url:\n 'https://images.unsplash.com/photo-1548256434-c7d2374b1077?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',\n thumb_url:\n 'https://images.unsplash.com/photo-1548256434-c7d2374b1077?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',\n type: 'image',\n },\n {\n image_url:\n 'https://www.fujifilm.com/products/digital_cameras/x/fujifilm_x_t1/sample_images/img/index/ff_x_t1_002.JPG',\n thumb_url:\n 'https://www.fujifilm.com/products/digital_cameras/x/fujifilm_x_t1/sample_images/img/index/ff_x_t1_002.JPG',\n type: 'image',\n },\n {\n image_url:\n 'https://www.fujixpassion.com/wp-content/uploads/2016/01/Image-1-Title.jpg',\n thumb_url:\n 'https://www.fujixpassion.com/wp-content/uploads/2016/01/Image-1-Title.jpg',\n type: 'image',\n },\n {\n image_url:\n 'https://i-cdn.phonearena.com/images/articles/47012-image/photo2.jpg',\n thumb_url:\n 'https://i-cdn.phonearena.com/images/articles/47012-image/photo2.jpg',\n type: 'image',\n },\n ],\n command: '',\n created_at: '2019-01-25T00:18:59.675Z',\n html: '',\n id: 'thierry-e298f569-8745-407f-a02b-f75c0206612f',\n own_reactions: [\n {\n created_at: '2019-01-25T16:24:00.173967Z',\n id: 142,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'love',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n {\n created_at: '2019-01-25T16:23:58.939438Z',\n id: 141,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'like',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n ],\n reaction_counts: {\n like: 1,\n love: 1,\n },\n reactions: [\n {\n created_at: '2019-01-25T16:24:00.173967Z',\n id: 142,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'love',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n {\n created_at: '2019-01-25T16:23:58.939438Z',\n id: 141,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'like',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n ],\n reply_count: 0,\n status: 'received',\n text: 'This message contains images',\n type: 'regular',\n updated_at: '2019-01-25T16:24:00.181Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n image:\n 'https://cdn.pixabay.com/photo/2014/03/25/16/54/user-297566__340.png',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n \n};\n\nexport const messageWithUrlPreview = {\n __html:\n '<p><a href=\"https://unsplash.com/photos/lxuB4abGzXc\" rel=\"nofollow\">https://unsplash.com/photos/lxuB4abGzXc</a></p>\\n',\n attachments: [\n {\n image_url:\n 'https://images.unsplash.com/photo-1548256434-c7d2374b1077?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',\n og_scrape_url: 'https://unsplash.com/photos/lxuB4abGzXc',\n text:\n 'Download this photo in Addu City, Maldives by Ibrahim Shabil (@shabilphotos)',\n thumb_url:\n 'https://images.unsplash.com/photo-1548256434-c7d2374b1077?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',\n title: 'Cosmic Home photo by Ibrahim Shabil (@shabilphotos) on Unsplash',\n title_link: 'https://unsplash.com/photos/lxuB4abGzXc',\n type: 'image',\n },\n ],\n command: '',\n created_at: '2019-01-25T00:18:59.675Z',\n html:\n '<p><a href=\"https://unsplash.com/photos/lxuB4abGzXc\" rel=\"nofollow\">https://unsplash.com/photos/lxuB4abGzXc</a></p>\\n',\n id: 'thierry-e298f569-8745-407f-a02b-f75c0206612f',\n own_reactions: [\n {\n created_at: '2019-01-25T16:24:00.173967Z',\n id: 142,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'love',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n {\n created_at: '2019-01-25T16:23:58.939438Z',\n id: 141,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'like',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n ],\n reaction_counts: {\n like: 1,\n love: 1,\n },\n reactions: [\n {\n created_at: '2019-01-25T16:24:00.173967Z',\n id: 142,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'love',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n {\n created_at: '2019-01-25T16:23:58.939438Z',\n id: 141,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'like',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n ],\n reply_count: 0,\n status: 'received',\n text: 'https://unsplash.com/photos/lxuB4abGzXc',\n type: 'regular',\n updated_at: '2019-01-25T16:24:00.181Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n image:\n 'https://cdn.pixabay.com/photo/2014/03/25/16/54/user-297566__340.png',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n};\n\nexport const thread = {\n __html:\n '<p>this place looks amazing: <a href=\"https://unsplash.com/photos/f3hDGOHptrM\" rel=\"nofollow\">https://unsplash.com/photos/f3hDGOHptrM</a></p>\\n',\n attachments: [\n {\n image_url:\n 'https://images.unsplash.com/photo-1548345233-4557b8809829?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',\n og_scrape_url: 'https://unsplash.com/photos/f3hDGOHptrM',\n text: 'Download this photo by Sandra Seitamaa (@seitamaaphotography)',\n thumb_url:\n 'https://images.unsplash.com/photo-1548345233-4557b8809829?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',\n title:\n 'Plant, tree, nature and river HD photo by Sandra Seitamaa (@seitamaaphotography) on Unsplash',\n title_link: 'https://unsplash.com/photos/f3hDGOHptrM',\n type: 'image',\n },\n ],\n command: '',\n created_at: '2019-01-25T21:25:45.306Z',\n html:\n '<p>this place looks amazing: <a href=\"https://unsplash.com/photos/f3hDGOHptrM\" rel=\"nofollow\">https://unsplash.com/photos/f3hDGOHptrM</a></p>\\n',\n id: 'thierry-ec4eac2b-1278-4f49-8b20-2ebcd76dace5',\n own_reactions: [],\n reaction_counts: null,\n reactions: [],\n reply_count: 2,\n status: 'received',\n text: 'this place looks amazing: https://unsplash.com/photos/f3hDGOHptrM',\n type: 'regular',\n updated_at: '2019-01-25T21:25:45.306Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T21:27:39.606466Z',\n },\n \n};\n\nexport const threadMessages = [\n {\n __html: '<p>whow, where is that?</p>\\n',\n attachments: [],\n command: '',\n created_at: new Date('2019-01-25T21:26:06.346Z'),\n html: '<p>whow, where is that?</p>\\n',\n id: 'thierry-97a02ade-3a38-4400-9377-001c10fc2663',\n own_reactions: [],\n parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',\n reaction_counts: null,\n reactions: [],\n reply_count: 0,\n status: 'received',\n text: 'whow, where is that?',\n type: 'reply',\n updated_at: '2019-01-25T21:26:06.346Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n invisible: false,\n last_active: '0001-01-01T00:00:00Z',\n mutes: [],\n online: false,\n role: 'user',\n updated_at: '2019-01-25T21:27:39.606466Z',\n },\n },\n {\n __html: '<p>it’s soo green, amazing</p>\\n',\n attachments: [],\n command: '',\n created_at: new Date('2019-01-25T21:26:11.863Z'),\n html: '<p>it’s soo green, amazing</p>\\n',\n id: 'thierry-264fdc4d-03c5-4f93-b97c-cfe5612968aa',\n own_reactions: [],\n parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',\n reaction_counts: null,\n reactions: [],\n reply_count: 0,\n status: 'received',\n text: \"it's soo green, amazing\",\n type: 'reply',\n updated_at: '2019-01-25T21:26:11.863Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n invisible: false,\n last_active: '0001-01-01T00:00:00Z',\n mutes: [],\n online: false,\n role: 'user',\n updated_at: '2019-01-25T21:27:39.606466Z',\n },\n },\n];\n\nexport const messages = [\n {\n __html: '<p>whow, where is that?</p>\\n',\n attachments: [],\n command: '',\n created_at: new Date('2019-01-25T21:26:06.346Z'),\n html: '<p>whow, where is that?</p>\\n',\n id: 'thierry-97a02ade-3a38-4400-9377-001c10fc2663',\n own_reactions: [],\n parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',\n reaction_counts: null,\n reactions: [],\n reply_count: 0,\n status: 'received',\n text: 'whow, where is that?',\n type: 'reply',\n updated_at: '2019-01-25T21:26:06.346Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n invisible: false,\n last_active: '0001-01-01T00:00:00Z',\n mutes: [],\n online: false,\n role: 'user',\n updated_at: '2019-01-25T21:27:39.606466Z',\n },\n },\n {\n __html: '<p>it’s soo green, amazing</p>\\n',\n attachments: [],\n command: '',\n created_at: new Date('2019-01-25T21:26:11.863Z'),\n html: '<p>it’s soo green, amazing</p>\\n',\n id: 'thierry-264fdc4d-03c5-4f93-b97c-cfe5612968aa',\n own_reactions: [],\n parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',\n reaction_counts: null,\n reactions: [],\n reply_count: 0,\n status: 'received',\n text: \"it's soo green, amazing\",\n type: 'reply',\n updated_at: '2019-01-25T21:26:11.863Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n invisible: false,\n last_active: '0001-01-01T00:00:00Z',\n mutes: [],\n online: false,\n role: 'user',\n updated_at: '2019-01-25T21:27:39.606466Z',\n },\n },\n];\n\nexport const users = [\n {\n created_at: '2019-01-28T16:03:25.619982Z',\n id: 'thierry',\n last_active: '2019-01-28T15:07:32.314676-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-28T22:07:32.297119Z',\n },\n];\n\nexport const MessageMock = {\n canDeleteMessage: () => true,\n canEditMessage: () => true,\n handleDelete: console.log,\n handleEdit: console.log,\n handleFlag: console.log,\n handleMute: console.log,\n};\n\n// Based on: https://javascript.info/promise-basics#example-loadscript\nfunction dynamicallyLoadScript(url) {\n return new Promise(function(resolve, reject) {\n const script = document.createElement('script');\n script.src = url;\n script.onload = resolve;\n script.onerror = () => reject(new Error(`Error when loading ${url}!`));\n document.body.appendChild(script);\n });\n}\ndynamicallyLoadScript('https://snack.expo.io/embed.js');\n"],"mappings":";;;;AACA,IAAMA,KAAK,GAAGC,OAAO,CAAC,OAAO,CAAC;AAC9B,IAAMC,UAAU,GAAGD,OAAO,CAAC,aAAa,CAAC,CAACC,UAAU;AAC7C,IAAMC,MAAM,GAAG,IAAID,UAAU,CAAC,cAAc,CAAC;AAACE,OAAA,CAAAD,MAAA,GAAAA,MAAA;AAErDA,MAAM,CAACE,WAAW,CAChB;EACEC,EAAE,EAAE;AACN,CAAC,EACD,kIACF,CAAC;AAEM,IAAMC,OAAO,GAAGJ,MAAM,CAACI,OAAO,CAAC,WAAW,EAAE,SAAS,EAAE;EAC5DC,KAAK,EACH,8EAA8E;EAChFC,IAAI,EAAE;AACR,CAAC,CAAC;AAACL,OAAA,CAAAG,OAAA,GAAAA,OAAA;AAEI,IAAMG,cAAc,GAAG;EAC5BH,OAAO,EAAPA,OAAO;EACPJ,MAAM,EAANA;AACF,CAAC;AAACC,OAAA,CAAAM,cAAA,GAAAA,cAA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vBE,UAAU,EAAEH,OAAO,CAACC,GAAG;EACvBG,UAAU,EAAEJ,OAAO,CAACC;AACtB,CAAC;AAAChE,OAAA,CAAA2D,WAAA,GAAAA,WAAA;AAGF,SAASS,qBAAqBA,CAACC,GAAG,EAAE;EAClC,OAAO,IAAIC,OAAO,CAAC,UAASC,OAAO,EAAEC,MAAM,EAAE;IAC3C,IAAMC,MAAM,GAAGC,QAAQ,CAACC,aAAa,CAAC,QAAQ,CAAC;IAC/CF,MAAM,CAACG,GAAG,GAAGP,GAAG;IAChBI,MAAM,CAACI,MAAM,GAAGN,OAAO;IACvBE,MAAM,CAACK,OAAO,GAAG;MAAA,OAAMN,MAAM,CAAC,IAAIO,KAAK,yBAAuBV,GAAG,MAAG,CAAC,CAAC;IAAA;IACtEK,QAAQ,CAACM,IAAI,CAACC,WAAW,CAACR,MAAM,CAAC;EACnC,CAAC,CAAC;AACJ;AACAL,qBAAqB,CAAC,gCAAgC,CAAC"}
|
|
1
|
+
{"version":3,"names":["Dayjs","require","StreamChat","client","exports","connectUser","id","channel","image","name","channelContext","translationContext","t","text","tDateTimeParser","date","suggestionsContext","closeSuggestions","openSuggestions","setInputBoxContainerRef","updateSuggestions","filters","example","type","sort","last_updated","channels","queryChannels","subscribe","message","__html","attachments","command","created_at","html","own_reactions","message_id","user","last_active","online","role","updated_at","reaction_counts","like","love","reactions","reply_count","status","messageWithImages","image_url","thumb_url","messageWithUrlPreview","og_scrape_url","title","title_link","thread","threadMessages","Date","parent_id","invisible","mutes","messages","users","MessageMock","canDeleteMessage","canEditMessage","handleDelete","console","log","handleEdit","handleFlag","handleMute","dynamicallyLoadScript","url","Promise","resolve","reject","script","document","createElement","src","onload","onerror","Error","body","appendChild"],"sources":["data.js"],"sourcesContent":["/* global require */\nconst Dayjs = require('dayjs');\nconst StreamChat = require('stream-chat').StreamChat;\nexport const client = new StreamChat('qk4nn7rpcn75');\n\nclient.connectUser(\n {\n id: 'John',\n },\n 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiSm9obiIsImlhdCI6MTU0ODI5ODUxN30.hyonbQnOLuFsr15mdmc_JF4sBOm2SURK4eBvTOx3ZIg',\n);\n\nexport const channel = client.channel('messaging', 'general', {\n image:\n 'https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/chat_avatar_01_green.jpg',\n name: 'Talk about the documentation',\n});\n\nexport const channelContext = {\n channel,\n client,\n};\n\nexport const translationContext = {\n t: (text) => text,\n tDateTimeParser: (date) => Dayjs(date),\n};\nexport const suggestionsContext = {\n closeSuggestions: () => {},\n openSuggestions: () => {},\n setInputBoxContainerRef: () => {},\n updateSuggestions: () => {},\n};\n\nconst filters = { example: 1, type: 'team' };\nconst sort = { last_updated: -1 };\n\nexport const channels = client.queryChannels(filters, sort, {\n subscribe: true,\n});\n\nexport const message = {\n __html:\n '<p><a href=\"https://unsplash.com/photos/lxuB4abGzXc\" rel=\"nofollow\">https://unsplash.com/photos/lxuB4abGzXc</a></p>\\n',\n attachments: [],\n command: '',\n created_at: '2019-01-25T00:18:59.675Z',\n html:\n '<p><a href=\"https://unsplash.com/photos/lxuB4abGzXc\" rel=\"nofollow\">https://unsplash.com/photos/lxuB4abGzXc</a></p>\\n',\n id: 'thierry-e298f569-8745-407f-a02b-f75c0206612f',\n own_reactions: [\n {\n created_at: '2019-01-25T16:24:00.173967Z',\n id: 142,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'love',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n {\n created_at: '2019-01-25T16:23:58.939438Z',\n id: 141,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'like',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n ],\n reaction_counts: {\n like: 1,\n love: 1,\n },\n reactions: [\n {\n created_at: '2019-01-25T16:24:00.173967Z',\n id: 142,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'love',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n {\n created_at: '2019-01-25T16:23:58.939438Z',\n id: 141,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'like',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n ],\n reply_count: 0,\n status: 'received',\n text: 'Hey this is getstream message',\n type: 'regular',\n updated_at: '2019-01-25T16:24:00.181Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n image:\n 'https://cdn.pixabay.com/photo/2014/03/25/16/54/user-297566__340.png',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n};\n\nexport const messageWithImages = {\n __html:\n '<p><a href=\"https://unsplash.com/photos/lxuB4abGzXc\" rel=\"nofollow\">https://unsplash.com/photos/lxuB4abGzXc</a></p>\\n',\n attachments: [\n {\n image_url:\n 'https://images.unsplash.com/photo-1548256434-c7d2374b1077?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',\n thumb_url:\n 'https://images.unsplash.com/photo-1548256434-c7d2374b1077?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',\n type: 'image',\n },\n {\n image_url:\n 'https://www.fujifilm.com/products/digital_cameras/x/fujifilm_x_t1/sample_images/img/index/ff_x_t1_002.JPG',\n thumb_url:\n 'https://www.fujifilm.com/products/digital_cameras/x/fujifilm_x_t1/sample_images/img/index/ff_x_t1_002.JPG',\n type: 'image',\n },\n {\n image_url:\n 'https://www.fujixpassion.com/wp-content/uploads/2016/01/Image-1-Title.jpg',\n thumb_url:\n 'https://www.fujixpassion.com/wp-content/uploads/2016/01/Image-1-Title.jpg',\n type: 'image',\n },\n {\n image_url:\n 'https://i-cdn.phonearena.com/images/articles/47012-image/photo2.jpg',\n thumb_url:\n 'https://i-cdn.phonearena.com/images/articles/47012-image/photo2.jpg',\n type: 'image',\n },\n ],\n command: '',\n created_at: '2019-01-25T00:18:59.675Z',\n html: '',\n id: 'thierry-e298f569-8745-407f-a02b-f75c0206612f',\n own_reactions: [\n {\n created_at: '2019-01-25T16:24:00.173967Z',\n id: 142,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'love',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n {\n created_at: '2019-01-25T16:23:58.939438Z',\n id: 141,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'like',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n ],\n reaction_counts: {\n like: 1,\n love: 1,\n },\n reactions: [\n {\n created_at: '2019-01-25T16:24:00.173967Z',\n id: 142,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'love',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n {\n created_at: '2019-01-25T16:23:58.939438Z',\n id: 141,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'like',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n ],\n reply_count: 0,\n status: 'received',\n text: 'This message contains images',\n type: 'regular',\n updated_at: '2019-01-25T16:24:00.181Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n image:\n 'https://cdn.pixabay.com/photo/2014/03/25/16/54/user-297566__340.png',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n \n};\n\nexport const messageWithUrlPreview = {\n __html:\n '<p><a href=\"https://unsplash.com/photos/lxuB4abGzXc\" rel=\"nofollow\">https://unsplash.com/photos/lxuB4abGzXc</a></p>\\n',\n attachments: [\n {\n image_url:\n 'https://images.unsplash.com/photo-1548256434-c7d2374b1077?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',\n og_scrape_url: 'https://unsplash.com/photos/lxuB4abGzXc',\n text:\n 'Download this photo in Addu City, Maldives by Ibrahim Shabil (@shabilphotos)',\n thumb_url:\n 'https://images.unsplash.com/photo-1548256434-c7d2374b1077?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',\n title: 'Cosmic Home photo by Ibrahim Shabil (@shabilphotos) on Unsplash',\n title_link: 'https://unsplash.com/photos/lxuB4abGzXc',\n type: 'image',\n },\n ],\n command: '',\n created_at: '2019-01-25T00:18:59.675Z',\n html:\n '<p><a href=\"https://unsplash.com/photos/lxuB4abGzXc\" rel=\"nofollow\">https://unsplash.com/photos/lxuB4abGzXc</a></p>\\n',\n id: 'thierry-e298f569-8745-407f-a02b-f75c0206612f',\n own_reactions: [\n {\n created_at: '2019-01-25T16:24:00.173967Z',\n id: 142,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'love',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n {\n created_at: '2019-01-25T16:23:58.939438Z',\n id: 141,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'like',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n ],\n reaction_counts: {\n like: 1,\n love: 1,\n },\n reactions: [\n {\n created_at: '2019-01-25T16:24:00.173967Z',\n id: 142,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'love',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n {\n created_at: '2019-01-25T16:23:58.939438Z',\n id: 141,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'like',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n ],\n reply_count: 0,\n status: 'received',\n text: 'https://unsplash.com/photos/lxuB4abGzXc',\n type: 'regular',\n updated_at: '2019-01-25T16:24:00.181Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n image:\n 'https://cdn.pixabay.com/photo/2014/03/25/16/54/user-297566__340.png',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n};\n\nexport const thread = {\n __html:\n '<p>this place looks amazing: <a href=\"https://unsplash.com/photos/f3hDGOHptrM\" rel=\"nofollow\">https://unsplash.com/photos/f3hDGOHptrM</a></p>\\n',\n attachments: [\n {\n image_url:\n 'https://images.unsplash.com/photo-1548345233-4557b8809829?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',\n og_scrape_url: 'https://unsplash.com/photos/f3hDGOHptrM',\n text: 'Download this photo by Sandra Seitamaa (@seitamaaphotography)',\n thumb_url:\n 'https://images.unsplash.com/photo-1548345233-4557b8809829?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',\n title:\n 'Plant, tree, nature and river HD photo by Sandra Seitamaa (@seitamaaphotography) on Unsplash',\n title_link: 'https://unsplash.com/photos/f3hDGOHptrM',\n type: 'image',\n },\n ],\n command: '',\n created_at: '2019-01-25T21:25:45.306Z',\n html:\n '<p>this place looks amazing: <a href=\"https://unsplash.com/photos/f3hDGOHptrM\" rel=\"nofollow\">https://unsplash.com/photos/f3hDGOHptrM</a></p>\\n',\n id: 'thierry-ec4eac2b-1278-4f49-8b20-2ebcd76dace5',\n own_reactions: [],\n reaction_counts: null,\n reactions: [],\n reply_count: 2,\n status: 'received',\n text: 'this place looks amazing: https://unsplash.com/photos/f3hDGOHptrM',\n type: 'regular',\n updated_at: '2019-01-25T21:25:45.306Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T21:27:39.606466Z',\n },\n \n};\n\nexport const threadMessages = [\n {\n __html: '<p>whow, where is that?</p>\\n',\n attachments: [],\n command: '',\n created_at: new Date('2019-01-25T21:26:06.346Z'),\n html: '<p>whow, where is that?</p>\\n',\n id: 'thierry-97a02ade-3a38-4400-9377-001c10fc2663',\n own_reactions: [],\n parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',\n reaction_counts: null,\n reactions: [],\n reply_count: 0,\n status: 'received',\n text: 'whow, where is that?',\n type: 'reply',\n updated_at: '2019-01-25T21:26:06.346Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n invisible: false,\n last_active: '0001-01-01T00:00:00Z',\n mutes: [],\n online: false,\n role: 'user',\n updated_at: '2019-01-25T21:27:39.606466Z',\n },\n },\n {\n __html: '<p>it’s soo green, amazing</p>\\n',\n attachments: [],\n command: '',\n created_at: new Date('2019-01-25T21:26:11.863Z'),\n html: '<p>it’s soo green, amazing</p>\\n',\n id: 'thierry-264fdc4d-03c5-4f93-b97c-cfe5612968aa',\n own_reactions: [],\n parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',\n reaction_counts: null,\n reactions: [],\n reply_count: 0,\n status: 'received',\n text: \"it's soo green, amazing\",\n type: 'reply',\n updated_at: '2019-01-25T21:26:11.863Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n invisible: false,\n last_active: '0001-01-01T00:00:00Z',\n mutes: [],\n online: false,\n role: 'user',\n updated_at: '2019-01-25T21:27:39.606466Z',\n },\n },\n];\n\nexport const messages = [\n {\n __html: '<p>whow, where is that?</p>\\n',\n attachments: [],\n command: '',\n created_at: new Date('2019-01-25T21:26:06.346Z'),\n html: '<p>whow, where is that?</p>\\n',\n id: 'thierry-97a02ade-3a38-4400-9377-001c10fc2663',\n own_reactions: [],\n parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',\n reaction_counts: null,\n reactions: [],\n reply_count: 0,\n status: 'received',\n text: 'whow, where is that?',\n type: 'reply',\n updated_at: '2019-01-25T21:26:06.346Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n invisible: false,\n last_active: '0001-01-01T00:00:00Z',\n mutes: [],\n online: false,\n role: 'user',\n updated_at: '2019-01-25T21:27:39.606466Z',\n },\n },\n {\n __html: '<p>it’s soo green, amazing</p>\\n',\n attachments: [],\n command: '',\n created_at: new Date('2019-01-25T21:26:11.863Z'),\n html: '<p>it’s soo green, amazing</p>\\n',\n id: 'thierry-264fdc4d-03c5-4f93-b97c-cfe5612968aa',\n own_reactions: [],\n parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',\n reaction_counts: null,\n reactions: [],\n reply_count: 0,\n status: 'received',\n text: \"it's soo green, amazing\",\n type: 'reply',\n updated_at: '2019-01-25T21:26:11.863Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n invisible: false,\n last_active: '0001-01-01T00:00:00Z',\n mutes: [],\n online: false,\n role: 'user',\n updated_at: '2019-01-25T21:27:39.606466Z',\n },\n },\n];\n\nexport const users = [\n {\n created_at: '2019-01-28T16:03:25.619982Z',\n id: 'thierry',\n last_active: '2019-01-28T15:07:32.314676-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-28T22:07:32.297119Z',\n },\n];\n\nexport const MessageMock = {\n canDeleteMessage: () => true,\n canEditMessage: () => true,\n handleDelete: console.log,\n handleEdit: console.log,\n handleFlag: console.log,\n handleMute: console.log,\n};\n\n// Based on: https://javascript.info/promise-basics#example-loadscript\nfunction dynamicallyLoadScript(url) {\n return new Promise(function(resolve, reject) {\n const script = document.createElement('script');\n script.src = url;\n script.onload = resolve;\n script.onerror = () => reject(new Error(`Error when loading ${url}!`));\n document.body.appendChild(script);\n });\n}\ndynamicallyLoadScript('https://snack.expo.io/embed.js');\n"],"mappings":";;;;AACA,IAAMA,KAAK,GAAGC,OAAO,CAAC,OAAO,CAAC;AAC9B,IAAMC,UAAU,GAAGD,OAAO,CAAC,aAAa,CAAC,CAACC,UAAU;AAC7C,IAAMC,MAAM,GAAG,IAAID,UAAU,CA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E7B,UAAU,EAAE,6BAA6B;EACzC3B,EAAE,EAAE,SAAS;EACbgC,WAAW,EAAE,kCAAkC;EAC/CC,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE,MAAM;EACZC,UAAU,EAAE;AACd,CAAC,CACF;AAACrC,OAAA,CAAA0D,KAAA,GAAAA,KAAA;AAEK,IAAMC,WAAW,GAAG;EACzBC,gBAAgB,EAAE,SAAAA,iBAAA;IAAA,OAAM,IAAI;EAAA;EAC5BC,cAAc,EAAE,SAAAA,eAAA;IAAA,OAAM,IAAI;EAAA;EAC1BC,YAAY,EAAEC,OAAO,CAACC,GAAG;EACzBC,UAAU,EAAEF,OAAO,CAACC,GAAG;EACvBE,UAAU,EAAEH,OAAO,CAACC,GAAG;EACvBG,UAAU,EAAEJ,OAAO,CAACC;AACtB,CAAC;AAAChE,OAAA,CAAA2D,WAAA,GAAAA,WAAA;AAGF,SAASS,qBAAqBA,CAACC,GAAG,EAAE;EAClC,OAAO,IAAIC,OAAO,CAAC,UAASC,OAAO,EAAEC,MAAM,EAAE;IAC3C,IAAMC,MAAM,GAAGC,QAAQ,CAACC,aAAa,CAAC,QAAQ,CAAC;IAC/CF,MAAM,CAACG,GAAG,GAAGP,GAAG;IAChBI,MAAM,CAACI,MAAM,GAAGN,OAAO;IACvBE,MAAM,CAACK,OAAO,GAAG;MAAA,OAAMN,MAAM,CAAC,IAAIO,KAAK,yBAAuBV,GAAG,MAAG,CAAC,CAAC;IAAA;IACtEK,QAAQ,CAACM,IAAI,CAACC,WAAW,CAACR,MAAM,CAAC;EACnC,CAAC,CAAC;AACJ;AACAL,qBAAqB,CAAC,gCAAgC,CAAC"}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"File type not supported": "File type not supported",
|
|
23
23
|
"Flag": "Flag",
|
|
24
24
|
"Flag Message": "Flag Message",
|
|
25
|
-
"Flag action failed either due to a network issue or the message is already flagged": "Flag action failed either due to a network issue or the message is already flagged
|
|
25
|
+
"Flag action failed either due to a network issue or the message is already flagged": "Flag action failed either due to a network issue or the message is already flagged",
|
|
26
26
|
"Instant Commands": "Instant Commands",
|
|
27
27
|
"Links are disabled": "Links are disabled",
|
|
28
28
|
"Loading channels...": "Loading channels...",
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"1 Reply": "1 Réponse",
|
|
3
3
|
"1 Thread Reply": "Réponse à 1 fil",
|
|
4
|
-
"Allow access to your Gallery": "
|
|
5
|
-
"Also send to channel": "
|
|
6
|
-
"Are you sure you want to permanently delete this message?": "
|
|
7
|
-
"Block User": "
|
|
8
|
-
"Cancel": "
|
|
9
|
-
"Cannot Flag Message": "
|
|
10
|
-
"Copy Message": "
|
|
11
|
-
"Delete": "
|
|
12
|
-
"Delete Message": "
|
|
13
|
-
"Do you want to send a copy of this message to a moderator for further investigation?": "
|
|
14
|
-
"Edit Message": "
|
|
15
|
-
"Editing Message": "
|
|
4
|
+
"Allow access to your Gallery": "",
|
|
5
|
+
"Also send to channel": "",
|
|
6
|
+
"Are you sure you want to permanently delete this message?": "",
|
|
7
|
+
"Block User": "",
|
|
8
|
+
"Cancel": "",
|
|
9
|
+
"Cannot Flag Message": "",
|
|
10
|
+
"Copy Message": "",
|
|
11
|
+
"Delete": "",
|
|
12
|
+
"Delete Message": "",
|
|
13
|
+
"Do you want to send a copy of this message to a moderator for further investigation?": "",
|
|
14
|
+
"Edit Message": "",
|
|
15
|
+
"Editing Message": "",
|
|
16
16
|
"Emoji matching": "Correspondance Emoji",
|
|
17
17
|
"Empty message...": "Message vide...",
|
|
18
18
|
"Error loading": "Erreur lors du chargement",
|
|
@@ -20,50 +20,50 @@
|
|
|
20
20
|
"Error loading messages for this channel...": "Erreur lors du chargement des messages de ce canal...",
|
|
21
21
|
"Error while loading, please reload/refresh": "Erreur lors du chargement, veuillez recharger/rafraîchir",
|
|
22
22
|
"File type not supported": "Le type de fichier n'est pas pris en charge",
|
|
23
|
-
"Flag": "
|
|
24
|
-
"Flag Message": "
|
|
25
|
-
"Flag action failed either due to a network issue or the message is already flagged": "
|
|
23
|
+
"Flag": "",
|
|
24
|
+
"Flag Message": "",
|
|
25
|
+
"Flag action failed either due to a network issue or the message is already flagged": "",
|
|
26
26
|
"Instant Commands": "Commandes Instantanées",
|
|
27
|
-
"Links are disabled": "
|
|
27
|
+
"Links are disabled": "",
|
|
28
28
|
"Loading channels...": "Chargement des canaux...",
|
|
29
29
|
"Loading messages...": "Chargement des messages...",
|
|
30
30
|
"Loading...": "Chargement...",
|
|
31
|
-
"Message Reactions": "
|
|
31
|
+
"Message Reactions": "",
|
|
32
32
|
"Message deleted": "Message supprimé",
|
|
33
|
-
"Message flagged": "
|
|
34
|
-
"Mute User": "
|
|
33
|
+
"Message flagged": "",
|
|
34
|
+
"Mute User": "",
|
|
35
35
|
"Not supported": "Non pris en charge",
|
|
36
36
|
"Nothing yet...": "Aucun message...",
|
|
37
|
-
"Ok": "
|
|
38
|
-
"Only visible to you": "
|
|
39
|
-
"Photo": "
|
|
40
|
-
"Photos and Videos": "
|
|
41
|
-
"Pin to Conversation": "
|
|
37
|
+
"Ok": "",
|
|
38
|
+
"Only visible to you": "",
|
|
39
|
+
"Photo": "",
|
|
40
|
+
"Photos and Videos": "",
|
|
41
|
+
"Pin to Conversation": "",
|
|
42
42
|
"Pinned by": "Épinglé par",
|
|
43
|
-
"Please enable access to your photos and videos so you can share them.": "
|
|
44
|
-
"Please select a channel first": "
|
|
43
|
+
"Please enable access to your photos and videos so you can share them.": "",
|
|
44
|
+
"Please select a channel first": "",
|
|
45
45
|
"Reconnecting...": "Se Reconnecter...",
|
|
46
|
-
"Reply": "
|
|
47
|
-
"Reply to Message": "
|
|
48
|
-
"Resend": "
|
|
46
|
+
"Reply": "",
|
|
47
|
+
"Reply to Message": "",
|
|
48
|
+
"Resend": "",
|
|
49
49
|
"Search GIFs": "Rechercher des GIF",
|
|
50
50
|
"Send a message": "Envoyer un message",
|
|
51
|
-
"Sending links is not allowed in this conversation": "
|
|
51
|
+
"Sending links is not allowed in this conversation": "",
|
|
52
52
|
"Slow mode ON": "Mode lent activé",
|
|
53
|
-
"The message has been reported to a moderator.": "
|
|
54
|
-
"Thread Reply": "
|
|
55
|
-
"Unblock User": "
|
|
56
|
-
"Unknown User": "
|
|
57
|
-
"Unmute User": "
|
|
58
|
-
"Unpin from Conversation": "
|
|
59
|
-
"Unread Messages": "
|
|
60
|
-
"Video": "
|
|
53
|
+
"The message has been reported to a moderator.": "",
|
|
54
|
+
"Thread Reply": "",
|
|
55
|
+
"Unblock User": "",
|
|
56
|
+
"Unknown User": "",
|
|
57
|
+
"Unmute User": "",
|
|
58
|
+
"Unpin from Conversation": "",
|
|
59
|
+
"Unread Messages": "",
|
|
60
|
+
"Video": "",
|
|
61
61
|
"You": "Toi",
|
|
62
|
-
"You can't send messages in this channel": "
|
|
63
|
-
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "
|
|
64
|
-
"{{ index }} of {{ photoLength }}": "
|
|
62
|
+
"You can't send messages in this channel": "",
|
|
63
|
+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
64
|
+
"{{ index }} of {{ photoLength }}": "",
|
|
65
65
|
"{{ replyCount }} Replies": "{{ replyCount }} Réponses",
|
|
66
66
|
"{{ replyCount }} Thread Replies": "{{replyCount}} Réponses à la discussion",
|
|
67
|
-
"{{ user }} is typing": "
|
|
67
|
+
"{{ user }} is typing": "",
|
|
68
68
|
"🏙 Attachment...": "🏙 Pièce jointe..."
|
|
69
69
|
}
|