Hydrate body ranges for story replies

This commit is contained in:
Fedor Indutny 2022-11-09 20:59:36 -08:00 committed by GitHub
parent 9f85db3fd8
commit be6e988a95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 221 additions and 172 deletions

View file

@ -206,12 +206,14 @@ export const Mention = (): JSX.Element => {
length: 1,
mentionUuid: '7d007e95-771d-43ad-9191-eaa86c773cb8',
replacementText: 'Shoe',
conversationID: 'x',
start: 113,
},
{
length: 1,
mentionUuid: '7d007e95-771d-43ad-9191-eaa86c773cb8',
replacementText: 'Shoe',
conversationID: 'x',
start: 237,
},
],
@ -236,6 +238,7 @@ export const MentionRegexp = (): JSX.Element => {
length: 1,
mentionUuid: '7d007e95-771d-43ad-9191-eaa86c773cb8',
replacementText: 'RegExp',
conversationID: 'x',
start: 0,
},
],
@ -260,6 +263,7 @@ export const MentionNoMatches = (): JSX.Element => {
length: 1,
mentionUuid: '7d007e95-771d-43ad-9191-eaa86c773cb8',
replacementText: 'Neo',
conversationID: 'x',
start: 0,
},
],
@ -283,12 +287,14 @@ export const _MentionNoMatches = (): JSX.Element => {
length: 1,
mentionUuid: '7d007e95-771d-43ad-9191-eaa86c773cb8',
replacementText: 'Shoe',
conversationID: 'x',
start: 113,
},
{
length: 1,
mentionUuid: '7d007e95-771d-43ad-9191-eaa86c773cb8',
replacementText: 'Shoe',
conversationID: 'x',
start: 237,
},
],
@ -313,12 +319,14 @@ export const DoubleMention = (): JSX.Element => {
length: 1,
mentionUuid: '9eb2eb65-992a-4909-a2a5-18c56bd7648f',
replacementText: 'Alice',
conversationID: 'x',
start: 4,
},
{
length: 1,
mentionUuid: '755ec61b-1590-48da-b003-3e57b2b54448',
replacementText: 'Bob',
conversationID: 'x',
start: 6,
},
],