@nextcloud/files 3.0.0-beta.21 → 3.0.0-beta.22
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/fileAction.d.ts +3 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +5 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
package/dist/index.mjs
CHANGED
|
@@ -67,6 +67,9 @@ class Ye {
|
|
|
67
67
|
get displayName() {
|
|
68
68
|
return this._action.displayName;
|
|
69
69
|
}
|
|
70
|
+
get title() {
|
|
71
|
+
return this._action.title;
|
|
72
|
+
}
|
|
70
73
|
get iconSvgInline() {
|
|
71
74
|
return this._action.iconSvgInline;
|
|
72
75
|
}
|
|
@@ -96,6 +99,8 @@ class Ye {
|
|
|
96
99
|
throw new Error("Invalid id");
|
|
97
100
|
if (!e.displayName || typeof e.displayName != "function")
|
|
98
101
|
throw new Error("Invalid displayName function");
|
|
102
|
+
if ("title" in e && typeof e.title != "function")
|
|
103
|
+
throw new Error("Invalid title function");
|
|
99
104
|
if (!e.iconSvgInline || typeof e.iconSvgInline != "function")
|
|
100
105
|
throw new Error("Invalid iconSvgInline function");
|
|
101
106
|
if (!e.exec || typeof e.exec != "function")
|