overleaf/services/web/frontend/js/features/ide-react/scope-adapters/review-panel-context-adapter.ts
Tim Down 6f34a84ebd Merge pull request #15684 from overleaf/td-ide-page-main-doc-left-menu
Add docs to FileTreeDataContext to replace 'docs' scope value in React code

GitOrigin-RevId: 430f795eb0cd17f0f4fab9c61e46fb04ff3030b3
2023-11-14 09:04:40 +00:00

44 lines
1.8 KiB
TypeScript

import { ReactScopeValueStore } from '@/features/ide-react/scope-value-store/react-scope-value-store'
export default function populateReviewPanelScope(store: ReactScopeValueStore) {
store.set('reviewPanel.overview.docsCollapsedState', {})
store.set('reviewPanel.subView', 'cur_file')
store.set('reviewPanel.overview.loading', false)
store.set('reviewPanel.nVisibleSelectedChanges', 0)
store.set('reviewPanel.commentThreads', {})
store.set('reviewPanel.entries', {})
store.set('loadingThreads', true)
store.set('permissions', {
read: false,
write: false,
admin: false,
comment: false,
})
store.set('users', {})
store.set('reviewPanel.resolvedComments', {})
store.set('reviewPanel.fullTCStateCollapsed', true)
store.set('reviewPanel.rendererData.lineHeight', 0)
store.set('reviewPanel.trackChangesState', {})
store.set('reviewPanel.trackChangesOnForEveryone', false)
store.set('reviewPanel.trackChangesOnForGuests', false)
store.set('reviewPanel.trackChangesForGuestsAvailable', false)
store.set('reviewPanel.formattedProjectMembers', {})
store.set('toggleTrackChangesForEveryone', () => {})
store.set('toggleTrackChangesForUser', () => {})
store.set('toggleTrackChangesForGuests', () => {})
store.set('resolveComment', () => {})
store.set('submitNewComment', async () => {})
store.set('deleteComment', () => {})
store.set('gotoEntry', () => {})
store.set('saveEdit', () => {})
store.set('toggleReviewPanel', () => {})
store.set('unresolveComment', () => {})
store.set('deleteThread', () => {})
store.set('refreshResolvedCommentsDropdown', async () => {})
store.set('acceptChanges', () => {})
store.set('rejectChanges', () => {})
store.set('bulkAcceptActions', () => {})
store.set('bulkRejectActions', () => {})
store.set('submitReply', () => {})
store.set('addNewComment', () => {})
}