@nextcloud/files 3.2.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dav/dav.d.ts +3 -24
- package/dist/fileAction.d.ts +1 -21
- package/dist/fileListHeaders.d.ts +1 -21
- package/dist/filename.d.ts +10 -0
- package/dist/files/file.d.ts +1 -21
- package/dist/files/folder.d.ts +1 -21
- package/dist/files/node.d.ts +33 -1
- package/dist/files/nodeData.d.ts +1 -21
- package/dist/index.cjs +2083 -1134
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -24
- package/dist/index.mjs +2082 -1140
- package/dist/index.mjs.map +1 -1
- package/dist/navigation/column.d.ts +1 -21
- package/dist/navigation/navigation.d.ts +1 -21
- package/dist/navigation/view.d.ts +3 -22
- package/dist/newFileMenu.d.ts +23 -22
- package/dist/utils/logger.d.ts +1 -1
- package/dist/vendor.LICENSE.txt +1 -1
- package/package.json +14 -13
|
@@ -1,26 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Copyright (c) 2022 John Molakvoæ <skjnldsv@protonmail.com>
|
|
3
|
-
*
|
|
4
|
-
* @author John Molakvoæ <skjnldsv@protonmail.com>
|
|
5
|
-
*
|
|
6
|
-
* @license AGPL-3.0-or-later
|
|
7
|
-
*
|
|
8
|
-
* This program is free software: you can redistribute it and/or modify
|
|
9
|
-
* it under the terms of the GNU Affero General Public License as
|
|
10
|
-
* published by the Free Software Foundation, either version 3 of the
|
|
11
|
-
* License, or (at your option) any later version.
|
|
12
|
-
*
|
|
13
|
-
* This program is distributed in the hope that it will be useful,
|
|
14
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
-
* GNU Affero General Public License for more details.
|
|
17
|
-
*
|
|
18
|
-
* You should have received a copy of the GNU Affero General Public License
|
|
19
|
-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
-
*
|
|
21
|
-
*/
|
|
22
1
|
import { View } from './view';
|
|
23
2
|
import { Node } from '../files/node';
|
|
3
|
+
|
|
24
4
|
interface ColumnData {
|
|
25
5
|
/** Unique column ID */
|
|
26
6
|
id: string;
|
|
@@ -1,25 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Copyright (c) 2022 John Molakvoæ <skjnldsv@protonmail.com>
|
|
3
|
-
*
|
|
4
|
-
* @author John Molakvoæ <skjnldsv@protonmail.com>
|
|
5
|
-
*
|
|
6
|
-
* @license AGPL-3.0-or-later
|
|
7
|
-
*
|
|
8
|
-
* This program is free software: you can redistribute it and/or modify
|
|
9
|
-
* it under the terms of the GNU Affero General Public License as
|
|
10
|
-
* published by the Free Software Foundation, either version 3 of the
|
|
11
|
-
* License, or (at your option) any later version.
|
|
12
|
-
*
|
|
13
|
-
* This program is distributed in the hope that it will be useful,
|
|
14
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
-
* GNU Affero General Public License for more details.
|
|
17
|
-
*
|
|
18
|
-
* You should have received a copy of the GNU Affero General Public License
|
|
19
|
-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
-
*
|
|
21
|
-
*/
|
|
22
1
|
import { View } from './view';
|
|
2
|
+
|
|
23
3
|
export declare class Navigation {
|
|
24
4
|
private _views;
|
|
25
5
|
private _currentView;
|
|
@@ -1,26 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* @author John Molakvoæ <skjnldsv@protonmail.com>
|
|
5
|
-
*
|
|
6
|
-
* @license AGPL-3.0-or-later
|
|
7
|
-
*
|
|
8
|
-
* This program is free software: you can redistribute it and/or modify
|
|
9
|
-
* it under the terms of the GNU Affero General Public License as
|
|
10
|
-
* published by the Free Software Foundation, either version 3 of the
|
|
11
|
-
* License, or (at your option) any later version.
|
|
12
|
-
*
|
|
13
|
-
* This program is distributed in the hope that it will be useful,
|
|
14
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
-
* GNU Affero General Public License for more details.
|
|
17
|
-
*
|
|
18
|
-
* You should have received a copy of the GNU Affero General Public License
|
|
19
|
-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
-
*
|
|
21
|
-
*/
|
|
22
|
-
import type { Folder, Node } from '@nextcloud/files';
|
|
1
|
+
import { Folder } from '../files/folder';
|
|
2
|
+
import { Node } from '../files/node';
|
|
23
3
|
import { Column } from './column.js';
|
|
4
|
+
|
|
24
5
|
export type ContentsWithRoot = {
|
|
25
6
|
folder: Folder;
|
|
26
7
|
contents: Node[];
|
package/dist/newFileMenu.d.ts
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
*
|
|
18
|
-
* You should have received a copy of the GNU Affero General Public License
|
|
19
|
-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
-
*
|
|
21
|
-
*/
|
|
22
|
-
import type { Folder, Node } from './index';
|
|
1
|
+
import { Folder, Node } from './index';
|
|
2
|
+
|
|
3
|
+
export declare enum NewMenuEntryCategory {
|
|
4
|
+
/**
|
|
5
|
+
* For actions where the user is intended to upload from their device
|
|
6
|
+
*/
|
|
7
|
+
UploadFromDevice = 0,
|
|
8
|
+
/**
|
|
9
|
+
* For actions that create new nodes on the server without uploading
|
|
10
|
+
*/
|
|
11
|
+
CreateNew = 1,
|
|
12
|
+
/**
|
|
13
|
+
* For everything not matching the other categories
|
|
14
|
+
*/
|
|
15
|
+
Other = 2
|
|
16
|
+
}
|
|
23
17
|
export interface Entry {
|
|
24
18
|
/** Unique ID */
|
|
25
19
|
id: string;
|
|
20
|
+
/**
|
|
21
|
+
* Category to put this entry in
|
|
22
|
+
* (supported since Nextcloud 30)
|
|
23
|
+
* @since 3.3.0
|
|
24
|
+
* @default NewMenuEntryCategory.CreateNew
|
|
25
|
+
*/
|
|
26
|
+
category?: NewMenuEntryCategory;
|
|
26
27
|
/** Translatable string displayed in the menu */
|
|
27
28
|
displayName: string;
|
|
28
29
|
/**
|
package/dist/utils/logger.d.ts
CHANGED
package/dist/vendor.LICENSE.txt
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextcloud/files",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "Nextcloud files utils",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -47,31 +47,32 @@
|
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
49
|
"node": "^20.0.0",
|
|
50
|
-
"npm": "^
|
|
50
|
+
"npm": "^10.0.0"
|
|
51
51
|
},
|
|
52
52
|
"homepage": "https://github.com/nextcloud-libraries/nextcloud-files",
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@
|
|
54
|
+
"@codecov/vite-plugin": "^0.0.1-beta.6",
|
|
55
|
+
"@nextcloud/eslint-config": "^8.4.1",
|
|
55
56
|
"@nextcloud/typings": "^1.8.0",
|
|
56
|
-
"@nextcloud/vite-config": "^
|
|
57
|
-
"@types/node": "^20.12.
|
|
58
|
-
"@vitest/coverage-istanbul": "^1.
|
|
57
|
+
"@nextcloud/vite-config": "^2.0.0",
|
|
58
|
+
"@types/node": "^20.12.12",
|
|
59
|
+
"@vitest/coverage-istanbul": "^1.6.0",
|
|
59
60
|
"fast-xml-parser": "^4.3.6",
|
|
60
61
|
"jsdom": "^24.0.0",
|
|
61
62
|
"tslib": "^2.6.2",
|
|
62
63
|
"typedoc": "^0.25.13",
|
|
63
64
|
"typescript": "^5.4.5",
|
|
64
|
-
"vite": "^5.2.
|
|
65
|
+
"vite": "^5.2.11",
|
|
65
66
|
"vitest": "^1.3.0"
|
|
66
67
|
},
|
|
67
68
|
"dependencies": {
|
|
68
|
-
"@nextcloud/auth": "^2.
|
|
69
|
-
"@nextcloud/l10n": "^
|
|
70
|
-
"@nextcloud/logger": "^
|
|
69
|
+
"@nextcloud/auth": "^2.3.0",
|
|
70
|
+
"@nextcloud/l10n": "^3.1.0",
|
|
71
|
+
"@nextcloud/logger": "^3.0.2",
|
|
71
72
|
"@nextcloud/paths": "^2.1.0",
|
|
72
|
-
"@nextcloud/router": "^3.0.
|
|
73
|
+
"@nextcloud/router": "^3.0.1",
|
|
73
74
|
"cancelable-promise": "^4.3.1",
|
|
74
|
-
"is-svg": "^5.0.
|
|
75
|
-
"webdav": "^5.
|
|
75
|
+
"is-svg": "^5.0.1",
|
|
76
|
+
"webdav": "^5.6.0"
|
|
76
77
|
}
|
|
77
78
|
}
|