overleaf/services/web/frontend/js/features/ide-react/scope-adapters/review-panel-context-adapter.ts
ilkin-overleaf 7db5d761ea Merge pull request #15557 from overleaf/ii-ide-page-prototype-review-panel-track-changes
Review panel track changes for React IDE page

GitOrigin-RevId: d061596581ff10bd897b286dcd5c280ce79a6384
2023-11-17 09:03:02 +00:00

34 lines
1.3 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.rendererData.lineHeight', 0)
store.set('resolveComment', () => {})
store.set('submitNewComment', async () => {})
store.set('deleteComment', () => {})
store.set('gotoEntry', () => {})
store.set('saveEdit', () => {})
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', () => {})
}