@nextcloud/files 3.0.0-beta.17 → 3.0.0-beta.19

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.
@@ -20,7 +20,6 @@
20
20
  *
21
21
  */
22
22
  import { Folder } from './files/folder';
23
- import { View } from './navigation/view';
24
23
  export interface Entry {
25
24
  /** Unique ID */
26
25
  id: string;
@@ -32,16 +31,22 @@ export interface Entry {
32
31
  * Condition wether this entry is shown or not
33
32
  * @param {Folder} context the creation context. Usually the current folder
34
33
  */
35
- if?: (context: Folder, view: View) => boolean;
34
+ if?: (context: Folder) => boolean;
36
35
  /**
37
36
  * Either iconSvgInline or iconClass must be defined
38
37
  * Svg as inline string. <svg><path fill="..." /></svg>
39
38
  */
40
39
  iconSvgInline?: string;
41
- /** Existing icon css class */
40
+ /**
41
+ * Existing icon css class
42
+ * @deprecated use iconSvgInline instead
43
+ */
42
44
  iconClass?: string;
43
- /** Function to be run after creation */
44
- handler?: (context: Folder, view: View) => void;
45
+ /**
46
+ * Function to be run after creation
47
+ * @param {Folder} context the creation context. Usually the current folder
48
+ */
49
+ handler: (context: Folder) => void;
45
50
  }
46
51
  export declare class NewFileMenu {
47
52
  private _entries;
@@ -51,9 +56,8 @@ export declare class NewFileMenu {
51
56
  * Get the list of registered entries
52
57
  *
53
58
  * @param {Folder} context the creation context. Usually the current folder
54
- * @param {View} view the current view
55
59
  */
56
- getEntries(context?: Folder, view?: View): Array<Entry>;
60
+ getEntries(context?: Folder): Array<Entry>;
57
61
  private getEntryIndex;
58
62
  private validateEntry;
59
63
  }
@@ -1 +1,13 @@
1
- Included dependencies:
1
+ Included dependencies:
2
+
3
+ fast-xml-parser
4
+ version: 4.2.7
5
+ license: MIT
6
+
7
+ is-svg
8
+ version: 5.0.0
9
+ license: MIT
10
+
11
+ strnum
12
+ version: 1.0.5
13
+ license: MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextcloud/files",
3
- "version": "3.0.0-beta.17",
3
+ "version": "3.0.0-beta.19",
4
4
  "description": "Nextcloud files utils",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",