{"version":3,"file":"globalScope.mjs","sources":["../lib/globalScope.ts"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport type { DavProperty } from './dav/index.ts'\nimport type {\n\tIFileListFilter,\n\tIFileListHeader,\n\tNavigation,\n\tNewMenu,\n} from './index.ts'\nimport type { IFileAction, IFileListAction } from './ui/actions/index.ts'\nimport type { FilesRegistry } from './ui/registry.ts'\nimport type { ISidebarAction, ISidebarTab } from './ui/sidebar/index.ts'\nimport type { Uploader } from './upload/index.ts'\n\ninterface InternalGlobalScope {\n\tdavNamespaces?: DavProperty\n\tdavProperties?: string[]\n\n\tnewFileMenu?: NewMenu\n\tnavigation?: Navigation\n\tregistry?: FilesRegistry\n\n\tuploader?: Uploader\n\n\tfileActions?: Map<string, IFileAction>\n\tfileListActions?: Map<string, IFileListAction>\n\tfileListFilters?: Map<string, IFileListFilter>\n\tfileListHeaders?: Map<string, IFileListHeader>\n\n\tfilesSidebarActions?: Map<string, ISidebarAction>\n\tfilesSidebarTabs?: Map<string, ISidebarTab>\n}\n\nwindow._nc_files_scope ??= {}\nwindow._nc_files_scope.v4_0 ??= {}\n\n/**\n * Get the global scope for the files library.\n * This is used to store global variables scoped to prevent breaking changes in the future.\n *\n * @internal\n */\nexport const scopedGlobals = window._nc_files_scope.v4_0 as InternalGlobalScope\n"],"names":[],"mappings":"AAoCA,OAAO,oBAAoB,CAAA;AAC3B,OAAO,gBAAgB,SAAS,CAAA;AAQzB,MAAM,gBAAgB,OAAO,gBAAgB;"}