@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.
- package/README.md +51 -0
- package/dist/dav/dav.d.ts +5 -4
- package/dist/index.cjs +18 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -3
- package/dist/index.mjs +1095 -244
- package/dist/index.mjs.map +1 -1
- package/dist/newFileMenu.d.ts +11 -7
- package/dist/vendor.LICENSE.txt +13 -1
- package/package.json +1 -1
package/dist/newFileMenu.d.ts
CHANGED
|
@@ -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
|
|
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
|
-
/**
|
|
40
|
+
/**
|
|
41
|
+
* Existing icon css class
|
|
42
|
+
* @deprecated use iconSvgInline instead
|
|
43
|
+
*/
|
|
42
44
|
iconClass?: string;
|
|
43
|
-
/**
|
|
44
|
-
|
|
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
|
|
60
|
+
getEntries(context?: Folder): Array<Entry>;
|
|
57
61
|
private getEntryIndex;
|
|
58
62
|
private validateEntry;
|
|
59
63
|
}
|
package/dist/vendor.LICENSE.txt
CHANGED