2018-04-09 23:43:50 +00:00
|
|
|
### With a quotation, text-only replies
|
|
|
|
|
|
|
|
#### Plain text
|
|
|
|
|
|
|
|
```jsx
|
2018-04-20 22:17:08 +00:00
|
|
|
<util.ConversationContext theme={util.theme}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="About six"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
onClick: () => console.log('onClick'),
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="About six"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
onClick: () => console.log('onClick'),
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
</util.ConversationContext>
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Name variations
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<util.ConversationContext theme={util.theme}>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Profile name"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
authorProfileName: 'OnFire',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Profile name"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
authorProfileName: 'OnFire',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Profile name"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
authorProfileName: 'OnFire',
|
|
|
|
authorName: 'Mr. Fire',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Profile name"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
authorProfileName: 'OnFire',
|
|
|
|
authorName: 'Mr. Fire',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-20 22:17:08 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### With emoji
|
|
|
|
|
|
|
|
```jsx
|
2018-04-12 06:55:32 +00:00
|
|
|
<util.ConversationContext theme={util.theme}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="About 🔥six🔥"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many 🔥ferrets🔥 do you have?',
|
|
|
|
authorName: 'Mr. 🔥Fire🔥',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="About 🔥six🔥"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many 🔥ferrets🔥 do you have?',
|
|
|
|
authorName: 'Mr. 🔥Fire🔥',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-12 06:55:32 +00:00
|
|
|
```
|
|
|
|
|
2018-04-12 19:21:37 +00:00
|
|
|
#### Replies to you or yourself
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<util.ConversationContext theme={util.theme}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="About six"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
isFromMe: true,
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="About six"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
isFromMe: true,
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-12 19:21:37 +00:00
|
|
|
```
|
|
|
|
|
2018-04-12 06:55:32 +00:00
|
|
|
#### In a group conversation
|
|
|
|
|
|
|
|
```jsx
|
2018-04-14 01:01:02 +00:00
|
|
|
<util.ConversationContext theme={util.theme} type="group">
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
conversationType="group"
|
|
|
|
authorName="Mr. 🔥Fire🔥"
|
|
|
|
authorColor="green"
|
|
|
|
text="About six"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
authorAvatarPath={util.gifObjectUrl}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
conversationType="group"
|
|
|
|
authorName="Mr. 🔥Fire🔥"
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="About six"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
authorAvatarPath={util.gifObjectUrl}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
</util.ConversationContext>
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Long names and context
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<util.ConversationContext theme={util.theme} type="group">
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Woo, otters!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text:
|
|
|
|
'A really long link https://app.zeplin.io/project/5b2136b8e490ad6a54399857/screen/5b3bd068e03b763a0ee4c3e9',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
authorProfileName:
|
|
|
|
'Really really really really really really really really really long!',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Woo, otters!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text:
|
|
|
|
'A really long link https://app.zeplin.io/project/5b2136b8e490ad6a54399857/screen/5b3bd068e03b763a0ee4c3e9',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
authorProfileName:
|
|
|
|
'Really really really really really really really really really long!',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-12 06:55:32 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### A lot of text in quotation
|
|
|
|
|
|
|
|
```jsx
|
2018-04-09 23:43:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Woo, otters!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text:
|
|
|
|
'I have lots of things to say. First, I enjoy otters. Second best are cats. ' +
|
|
|
|
'After that, probably dogs. And then, you know, reptiles of all types. ' +
|
|
|
|
'Then birds. They are dinosaurs, after all. Then cephalapods, because they are ' +
|
|
|
|
'really smart.',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Woo, otters!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text:
|
|
|
|
'I have lots of things to say. First, I enjoy otters. Second best are cats. ' +
|
|
|
|
'After that, probably dogs. And then, you know, reptiles of all types. ' +
|
|
|
|
'Then birds. They are dinosaurs, after all. Then cephalapods, because they are ' +
|
|
|
|
'really smart.',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-09 23:43:50 +00:00
|
|
|
```
|
|
|
|
|
2018-04-12 19:02:35 +00:00
|
|
|
#### A lot of text in quotation, with icon
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<util.ConversationContext theme={util.theme}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Woo, otters!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text:
|
|
|
|
'I have lots of things to say. First, I enjoy otters. Second best are cats. ' +
|
|
|
|
'After that, probably dogs. And then, you know, reptiles of all types. ' +
|
|
|
|
'Then birds. They are dinosaurs, after all. Then cephalapods, because they are ' +
|
|
|
|
'really smart.',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'text/plain',
|
|
|
|
fileName: 'lorum_ipsum.txt',
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Woo, otters!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text:
|
|
|
|
'I have lots of things to say. First, I enjoy otters. Second best are cats. ' +
|
|
|
|
'After that, probably dogs. And then, you know, reptiles of all types. ' +
|
|
|
|
'Then birds. They are dinosaurs, after all. Then cephalapods, because they are ' +
|
|
|
|
'really smart.',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'text/plain',
|
|
|
|
fileName: 'lorum_ipsum.txt',
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-12 19:02:35 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### A lot of text in quotation, with image
|
2018-04-09 23:43:50 +00:00
|
|
|
|
|
|
|
```jsx
|
2018-06-27 20:53:49 +00:00
|
|
|
<util.ConversationContext theme={util.theme}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Woo, otters!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text:
|
|
|
|
'I have lots of things to say. First, I enjoy otters. Second best are cats. ' +
|
|
|
|
'After that, probably dogs. And then, you know, reptiles of all types. ' +
|
|
|
|
'Then birds. They are dinosaurs, after all. Then cephalapods, because they are ' +
|
|
|
|
'really smart.',
|
|
|
|
attachment: {
|
2018-04-10 01:31:52 +00:00
|
|
|
contentType: 'image/gif',
|
2018-06-27 20:53:49 +00:00
|
|
|
fileName: 'pi.gif',
|
|
|
|
thumbnail: {
|
|
|
|
contentType: 'image/gif',
|
|
|
|
objectUrl: util.gifObjectUrl,
|
|
|
|
},
|
2018-04-10 01:31:52 +00:00
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Woo, otters!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text:
|
|
|
|
'I have lots of things to say. First, I enjoy otters. Second best are cats. ' +
|
|
|
|
'After that, probably dogs. And then, you know, reptiles of all types. ' +
|
|
|
|
'Then birds. They are dinosaurs, after all. Then cephalapods, because they are ' +
|
|
|
|
'really smart.',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'image/gif',
|
|
|
|
fileName: 'pi.gif',
|
|
|
|
thumbnail: {
|
|
|
|
contentType: 'image/gif',
|
|
|
|
objectUrl: util.gifObjectUrl,
|
|
|
|
},
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-09 23:43:50 +00:00
|
|
|
```
|
|
|
|
|
2018-04-12 19:02:35 +00:00
|
|
|
#### Image with caption
|
|
|
|
|
|
|
|
```jsx
|
2018-06-27 20:53:49 +00:00
|
|
|
<util.ConversationContext theme={util.theme}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Totally, it's a pretty unintuitive concept."
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'I am pretty confused about Pi.',
|
|
|
|
attachment: {
|
2018-04-12 19:02:35 +00:00
|
|
|
contentType: 'image/gif',
|
2018-06-27 20:53:49 +00:00
|
|
|
fileName: 'pi.gif',
|
|
|
|
thumbnail: {
|
|
|
|
contentType: 'image/gif',
|
|
|
|
objectUrl: util.gifObjectUrl,
|
|
|
|
},
|
2018-04-12 19:02:35 +00:00
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Totally, it's a pretty unintuitive concept."
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'I am pretty confused about Pi.',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'image/gif',
|
|
|
|
fileName: 'pi.gif',
|
|
|
|
thumbnail: {
|
|
|
|
contentType: 'image/gif',
|
|
|
|
objectUrl: util.gifObjectUrl,
|
|
|
|
},
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-12 19:02:35 +00:00
|
|
|
```
|
|
|
|
|
2018-04-09 23:43:50 +00:00
|
|
|
#### Image
|
|
|
|
|
|
|
|
```jsx
|
2018-06-27 20:53:49 +00:00
|
|
|
<util.ConversationContext theme={util.theme}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Yeah, pi. Tough to wrap your head around."
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-04-10 01:31:52 +00:00
|
|
|
contentType: 'image/gif',
|
2018-06-27 20:53:49 +00:00
|
|
|
fileName: 'pi.gif',
|
|
|
|
thumbnail: {
|
|
|
|
contentType: 'image/gif',
|
|
|
|
objectUrl: util.gifObjectUrl,
|
|
|
|
},
|
2018-04-10 01:31:52 +00:00
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Yeah, pi. Tough to wrap your head around."
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'image/gif',
|
|
|
|
fileName: 'pi.gif',
|
|
|
|
thumbnail: {
|
|
|
|
contentType: 'image/gif',
|
|
|
|
objectUrl: util.gifObjectUrl,
|
|
|
|
},
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-12 06:55:32 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Image with no thumbnail
|
|
|
|
|
|
|
|
```jsx
|
2018-04-09 23:43:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Yeah, pi. Tough to wrap your head around."
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'image/gif',
|
|
|
|
fileName: 'pi.gif',
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Yeah, pi. Tough to wrap your head around."
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'image/gif',
|
|
|
|
fileName: 'pi.gif',
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-09 23:43:50 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Video with caption
|
2018-04-05 16:19:00 +00:00
|
|
|
|
|
|
|
```jsx
|
|
|
|
<util.ConversationContext theme={util.theme}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Sweet the way the video sneaks up on you!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'Check out this video I found!',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'video/mp4',
|
|
|
|
fileName: 'freezing_bubble.mp4',
|
|
|
|
thumbnail: {
|
|
|
|
contentType: 'image/gif',
|
|
|
|
objectUrl: util.gifObjectUrl,
|
|
|
|
},
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Sweet the way the video sneaks up on you!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'Check out this video I found!',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'video/mp4',
|
|
|
|
fileName: 'freezing_bubble.mp4',
|
|
|
|
thumbnail: {
|
|
|
|
contentType: 'image/gif',
|
|
|
|
objectUrl: util.gifObjectUrl,
|
|
|
|
},
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-09 23:43:50 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Video
|
|
|
|
|
|
|
|
```jsx
|
2018-04-12 06:55:32 +00:00
|
|
|
<util.ConversationContext theme={util.theme}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Awesome!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'video/mp4',
|
|
|
|
fileName: 'freezing_bubble.mp4',
|
|
|
|
thumbnail: {
|
|
|
|
contentType: 'image/gif',
|
|
|
|
objectUrl: util.gifObjectUrl,
|
|
|
|
},
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Awesome!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'video/mp4',
|
|
|
|
fileName: 'freezing_bubble.mp4',
|
|
|
|
thumbnail: {
|
|
|
|
contentType: 'image/gif',
|
|
|
|
objectUrl: util.gifObjectUrl,
|
|
|
|
},
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-12 06:55:32 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Video with no thumbnail
|
|
|
|
|
|
|
|
```jsx
|
2018-04-09 23:43:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Awesome!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'video/mp4',
|
|
|
|
fileName: 'freezing_bubble.mp4',
|
|
|
|
thumbnail: {
|
|
|
|
contentType: 'image/gif',
|
|
|
|
},
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Awesome!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'video/mp4',
|
|
|
|
fileName: 'freezing_bubble.mp4',
|
|
|
|
thumbnail: {
|
|
|
|
contentType: 'image/gif',
|
|
|
|
},
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-09 23:43:50 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Audio with caption
|
|
|
|
|
2018-06-27 20:53:49 +00:00
|
|
|
```jsx
|
2018-04-09 23:43:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="I really like it!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'Check out this beautiful song!',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'audio/mp3',
|
|
|
|
fileName: 'agnus_dei.mp4',
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="I really like it!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'Check out this beautiful song!',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'audio/mp3',
|
|
|
|
fileName: 'agnus_dei.mp4',
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-09 23:43:50 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Audio
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<util.ConversationContext theme={util.theme}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="I really like it!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'audio/mp3',
|
|
|
|
fileName: 'agnus_dei.mp4',
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="I really like it!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'audio/mp3',
|
|
|
|
fileName: 'agnus_dei.mp4',
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-09 23:43:50 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Voice message
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<util.ConversationContext theme={util.theme}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Thanks for letting me know!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'audio/mp3',
|
|
|
|
fileName: 'agnus_dei.mp4',
|
|
|
|
// Note: generated from 'flags' attribute, proposed afternoon of
|
|
|
|
// 4/6 in Quoted Replies group
|
|
|
|
isVoiceMessage: true,
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Thanks for letting me know!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'audio/mp3',
|
|
|
|
fileName: 'agnus_dei.mp4',
|
|
|
|
isVoiceMessage: true,
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
</util.ConversationContext>
|
2018-04-09 23:43:50 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Other file type with caption
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<util.ConversationContext theme={util.theme}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="I can't read latin."
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'This is my manifesto. Tell me what you think!',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'text/plain',
|
|
|
|
fileName: 'lorum_ipsum.txt',
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="I can't read latin."
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'This is my manifesto. Tell me what you think!',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'text/plain',
|
|
|
|
fileName: 'lorum_ipsum.txt',
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="I can't read latin."
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'This is my manifesto. Tell me what you think!',
|
|
|
|
attachment: {
|
|
|
|
contentType: 'text/plain',
|
|
|
|
fileName:
|
|
|
|
'really_really_really_really_really_really_really_really_really_long.txt',
|
|
|
|
},
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="I can't read latin."
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'This is my manifesto. Tell me what you think!',
|
|
|
|
attachment: {
|
|
|
|
contentType: 'text/plain',
|
|
|
|
fileName:
|
|
|
|
'really_really_really_really_really_really_really_really_really_long.txt',
|
|
|
|
},
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-09 23:43:50 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Other file type
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<util.ConversationContext theme={util.theme}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Sorry, I can't read latin!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'text/plain',
|
|
|
|
fileName: 'lorum_ipsum.txt',
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Sorry, I can't read latin!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'text/plain',
|
|
|
|
fileName: 'lorum_ipsum.txt',
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-05 16:19:00 +00:00
|
|
|
```
|
2018-04-16 20:02:51 +00:00
|
|
|
|
|
|
|
### With a quotation, including attachment
|
|
|
|
|
|
|
|
#### Quote, image attachment, and caption
|
|
|
|
|
|
|
|
```jsx
|
2018-06-27 20:53:49 +00:00
|
|
|
<util.ConversationContext theme={util.theme}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
attachment={{
|
|
|
|
url: util.gifObjectUrl,
|
|
|
|
fileName: 'pi.gif',
|
|
|
|
contentType: 'image/gif',
|
|
|
|
}}
|
|
|
|
text="About six"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
attachment={{
|
|
|
|
url: util.gifObjectUrl,
|
|
|
|
fileName: 'pi.gif',
|
|
|
|
contentType: 'image/gif',
|
|
|
|
}}
|
|
|
|
authorColor="green"
|
|
|
|
text="About six"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-16 20:02:51 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Quote, image attachment
|
|
|
|
|
|
|
|
```jsx
|
2018-06-27 20:53:49 +00:00
|
|
|
<util.ConversationContext theme={util.theme}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
attachment={{
|
|
|
|
url: util.gifObjectUrl,
|
|
|
|
fileName: 'pi.gif',
|
|
|
|
contentType: 'image/gif',
|
|
|
|
}}
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
attachment={{
|
|
|
|
url: util.gifObjectUrl,
|
|
|
|
fileName: 'pi.gif',
|
|
|
|
contentType: 'image/gif',
|
|
|
|
}}
|
|
|
|
authorColor="green"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-16 20:02:51 +00:00
|
|
|
```
|
|
|
|
|
2018-04-20 23:02:33 +00:00
|
|
|
#### Quote, portrait image attachment
|
|
|
|
|
|
|
|
```jsx
|
2018-06-27 20:53:49 +00:00
|
|
|
<util.ConversationContext theme={util.theme}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
attachment={{
|
|
|
|
url: util.portraitYellowObjectUrl,
|
|
|
|
fileName: 'pi.gif',
|
|
|
|
contentType: 'image/gif',
|
|
|
|
}}
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
attachment={{
|
|
|
|
url: util.portraitYellowObjectUrl,
|
|
|
|
fileName: 'pi.gif',
|
|
|
|
contentType: 'image/gif',
|
|
|
|
}}
|
|
|
|
authorColor="green"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-20 23:02:33 +00:00
|
|
|
```
|
|
|
|
|
2018-04-16 20:02:51 +00:00
|
|
|
#### Quote, video attachment
|
|
|
|
|
|
|
|
```jsx
|
2018-06-27 20:53:49 +00:00
|
|
|
<util.ConversationContext theme={util.theme}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
attachment={{
|
|
|
|
url: util.mp4ObjectUrl,
|
|
|
|
fileName: 'freezing_bubble.mp4',
|
|
|
|
contentType: 'video/mp4',
|
|
|
|
}}
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
attachment={{
|
|
|
|
url: util.mp4ObjectUrl,
|
|
|
|
fileName: 'freezing_bubble.mp4',
|
|
|
|
contentType: 'video/mp4',
|
|
|
|
}}
|
|
|
|
authorColor="green"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-16 20:02:51 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Quote, audio attachment
|
|
|
|
|
|
|
|
```jsx
|
2018-06-27 20:53:49 +00:00
|
|
|
<util.ConversationContext theme={util.theme}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
attachment={{
|
|
|
|
data: util.mp3ObjectUrl,
|
|
|
|
fileName: 'agnus_dei.mp3',
|
|
|
|
contentType: 'audio/mp3',
|
|
|
|
}}
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
attachment={{
|
|
|
|
data: util.mp3ObjectUrl,
|
|
|
|
fileName: 'agnus_dei.mp3',
|
|
|
|
contentType: 'audio/mp3',
|
|
|
|
}}
|
|
|
|
authorColor="green"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-16 20:02:51 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Quote, file attachment
|
|
|
|
|
|
|
|
```jsx
|
2018-06-27 20:53:49 +00:00
|
|
|
<util.ConversationContext theme={util.theme}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
attachment={{
|
|
|
|
data: util.txtObjectUrl,
|
|
|
|
fileName: 'lorum_ipsum.txt',
|
|
|
|
contentType: 'text/plain',
|
|
|
|
fileSize: '3.05 KB',
|
|
|
|
}}
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
attachment={{
|
|
|
|
data: util.txtObjectUrl,
|
|
|
|
fileName: 'lorum_ipsum.txt',
|
|
|
|
contentType: 'text/plain',
|
|
|
|
fileSize: '3.05 KB',
|
|
|
|
}}
|
|
|
|
authorColor="green"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-24 02:16:00 +00:00
|
|
|
```
|
|
|
|
|
2018-04-18 20:06:33 +00:00
|
|
|
### In bottom bar
|
|
|
|
|
|
|
|
#### Plain text
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<div className={util.theme}>
|
|
|
|
<div className="bottom-bar">
|
|
|
|
<Quote
|
|
|
|
text="How many ferrets do you have?"
|
|
|
|
authorColor="blue"
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber="(202) 555-1000"
|
2018-04-18 20:06:33 +00:00
|
|
|
authorProfileName="Mr. Blue"
|
|
|
|
id={Date.now() - 1000}
|
|
|
|
i18n={window.i18n}
|
2018-07-09 21:29:13 +00:00
|
|
|
onClick={() => console.log('onClick')}
|
2018-04-18 20:06:33 +00:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
```
|
|
|
|
|
|
|
|
#### With an icon
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<div className={util.theme}>
|
|
|
|
<div className="bottom-bar">
|
|
|
|
<Quote
|
|
|
|
text="How many ferrets do you have?"
|
|
|
|
authorColor="blue"
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber="(202) 555-1000"
|
2018-04-18 20:06:33 +00:00
|
|
|
authorProfileName="Mr. Blue"
|
|
|
|
id={Date.now() - 1000}
|
2018-07-09 21:29:13 +00:00
|
|
|
i18n={util.i18n}
|
|
|
|
attachment={{
|
|
|
|
contentType: 'image/jpeg',
|
|
|
|
fileName: 'llama.jpg',
|
|
|
|
}}
|
|
|
|
onClick={() => console.log('onClick')}
|
2018-04-18 20:06:33 +00:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
```
|
|
|
|
|
|
|
|
#### With an image
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<div className={util.theme}>
|
|
|
|
<div className="bottom-bar">
|
|
|
|
<Quote
|
|
|
|
text="How many ferrets do you have?"
|
|
|
|
authorColor="blue"
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber="(202) 555-1000"
|
2018-04-18 20:06:33 +00:00
|
|
|
authorProfileName="Mr. Blue"
|
|
|
|
id={Date.now() - 1000}
|
2018-07-09 21:29:13 +00:00
|
|
|
i18n={util.i18n}
|
|
|
|
attachment={{
|
|
|
|
contentType: 'image/gif',
|
|
|
|
fileName: 'llama.gif',
|
|
|
|
thumbnail: {
|
|
|
|
objectUrl: util.gifObjectUrl,
|
2018-04-18 20:06:33 +00:00
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
}}
|
|
|
|
onClick={() => console.log('onClick')}
|
2018-04-18 20:06:33 +00:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
```
|
|
|
|
|
|
|
|
#### With a close button
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<div className={util.theme}>
|
|
|
|
<div className="bottom-bar">
|
|
|
|
<Quote
|
|
|
|
text="How many ferrets do you have?"
|
|
|
|
authorColor="blue"
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber="(202) 555-1000"
|
2018-04-18 20:06:33 +00:00
|
|
|
authorProfileName="Mr. Blue"
|
|
|
|
id={Date.now() - 1000}
|
2018-07-09 21:29:13 +00:00
|
|
|
onClose={() => console.log('onClose')}
|
|
|
|
onClick={() => console.log('onClick')}
|
2018-04-18 20:06:33 +00:00
|
|
|
i18n={window.i18n}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
```
|
|
|
|
|
|
|
|
#### With a close button and icon
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<div className={util.theme}>
|
|
|
|
<div className="bottom-bar">
|
|
|
|
<Quote
|
|
|
|
text="How many ferrets do you have?"
|
|
|
|
authorColor="blue"
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber="(202) 555-1000"
|
2018-04-18 20:06:33 +00:00
|
|
|
authorProfileName="Mr. Blue"
|
|
|
|
id={Date.now() - 1000}
|
2018-07-09 21:29:13 +00:00
|
|
|
onClose={() => console.log('onClose')}
|
|
|
|
onClick={() => console.log('onClick')}
|
2018-04-18 20:06:33 +00:00
|
|
|
i18n={window.i18n}
|
2018-07-09 21:29:13 +00:00
|
|
|
attachment={{
|
|
|
|
contentType: 'image/jpeg',
|
|
|
|
fileName: 'llama.jpg',
|
|
|
|
}}
|
2018-04-18 20:06:33 +00:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
```
|
|
|
|
|
|
|
|
#### With a close button and image
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<div className={util.theme}>
|
|
|
|
<div className="bottom-bar">
|
|
|
|
<Quote
|
|
|
|
text="How many ferrets do you have?"
|
|
|
|
authorColor="blue"
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber="(202) 555-1000"
|
2018-04-18 20:06:33 +00:00
|
|
|
authorProfileName="Mr. Blue"
|
|
|
|
id={Date.now() - 1000}
|
2018-07-09 21:29:13 +00:00
|
|
|
onClose={() => console.log('onClose')}
|
|
|
|
onClick={() => console.log('onClick')}
|
|
|
|
i18n={util.i18n}
|
|
|
|
attachment={{
|
|
|
|
contentType: 'image/gif',
|
|
|
|
fileName: 'llama.gif',
|
|
|
|
thumbnail: {
|
|
|
|
objectUrl: util.gifObjectUrl,
|
2018-04-18 20:06:33 +00:00
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
}}
|
2018-04-18 20:06:33 +00:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
```
|