@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.
@@ -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
- * @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
- 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[];
@@ -1,28 +1,29 @@
1
- /**
2
- * @copyright Copyright (c) 2021 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
- 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
  /**
@@ -19,5 +19,5 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  *
21
21
  */
22
- declare const _default: import("@nextcloud/logger").ILogger;
22
+ declare const _default: import('@nextcloud/logger').ILogger;
23
23
  export default _default;
@@ -5,7 +5,7 @@ version: 4.3.6
5
5
  license: MIT
6
6
 
7
7
  is-svg
8
- version: 5.0.0
8
+ version: 5.0.1
9
9
  license: MIT
10
10
 
11
11
  strnum
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextcloud/files",
3
- "version": "3.2.0",
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": "^9.0.0"
50
+ "npm": "^10.0.0"
51
51
  },
52
52
  "homepage": "https://github.com/nextcloud-libraries/nextcloud-files",
53
53
  "devDependencies": {
54
- "@nextcloud/eslint-config": "^8.3.0",
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": "^1.2.2",
57
- "@types/node": "^20.12.7",
58
- "@vitest/coverage-istanbul": "^1.5.0",
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.8",
65
+ "vite": "^5.2.11",
65
66
  "vitest": "^1.3.0"
66
67
  },
67
68
  "dependencies": {
68
- "@nextcloud/auth": "^2.2.1",
69
- "@nextcloud/l10n": "^2.2.0",
70
- "@nextcloud/logger": "^2.7.0",
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.0",
73
+ "@nextcloud/router": "^3.0.1",
73
74
  "cancelable-promise": "^4.3.1",
74
- "is-svg": "^5.0.0",
75
- "webdav": "^5.5.0"
75
+ "is-svg": "^5.0.1",
76
+ "webdav": "^5.6.0"
76
77
  }
77
78
  }