Document emoji picker (#4338)

Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
Apoorv Mishra
2023-09-03 18:41:14 +05:30
committed by GitHub
parent 0054b7152e
commit 1c7bb65c7a
57 changed files with 1367 additions and 510 deletions

View File

@@ -9,6 +9,8 @@ type Props = {
document: Document;
/** The new title */
title?: string;
/** The document emoji */
emoji?: string | null;
/** The new text content */
text?: string;
/** Whether the editing session is complete */
@@ -44,6 +46,7 @@ export default async function documentUpdater({
user,
document,
title,
emoji,
text,
editorVersion,
templateId,
@@ -62,6 +65,9 @@ export default async function documentUpdater({
if (title !== undefined) {
document.title = title.trim();
}
if (emoji !== undefined) {
document.emoji = emoji;
}
if (editorVersion) {
document.editorVersion = editorVersion;
}