Add per-document control over who can see viewer insights (#5594)
This commit is contained in:
@@ -19,6 +19,8 @@ type Props = {
|
||||
templateId?: string | null;
|
||||
/** If the document should be displayed full-width on the screen */
|
||||
fullWidth?: boolean;
|
||||
/** Whether insights should be visible on the document */
|
||||
insightsEnabled?: boolean;
|
||||
/** Whether the text be appended to the end instead of replace */
|
||||
append?: boolean;
|
||||
/** Whether the document should be published to the collection */
|
||||
@@ -46,6 +48,7 @@ export default async function documentUpdater({
|
||||
editorVersion,
|
||||
templateId,
|
||||
fullWidth,
|
||||
insightsEnabled,
|
||||
append,
|
||||
publish,
|
||||
collectionId,
|
||||
@@ -68,6 +71,9 @@ export default async function documentUpdater({
|
||||
if (fullWidth !== undefined) {
|
||||
document.fullWidth = fullWidth;
|
||||
}
|
||||
if (insightsEnabled !== undefined) {
|
||||
document.insightsEnabled = insightsEnabled;
|
||||
}
|
||||
if (text !== undefined) {
|
||||
document = DocumentHelper.applyMarkdownToDocument(document, text, append);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user