@gandalan/weblibs 1.5.34 → 1.5.35

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.
@@ -98,7 +98,9 @@
98
98
 
99
99
  /**
100
100
  * @typedef {Object} NeherApp3
101
- * @property {(menuItem: NeherApp3MenuItem) => void} addMenuItem
101
+ * @property {(menuItem: NeherApp3MenuItem) => void} addMenuItem - Adds a menu item. If an item with the same `id` already exists it is replaced.
102
+ * @property {(id: string, patch: Partial<NeherApp3MenuItem>) => boolean} updateMenuItem - Updates properties of an existing menu item by `id`. Only keys present in `patch` are changed; the `id` is preserved. Returns `true` if the item existed. Relative icon URLs are resolved against the module's base URL.
103
+ * @property {(id: string) => boolean} removeMenuItem - Removes the menu item with the given `id`. Returns `true` if an item was removed.
102
104
  * @property {(appModule: NeherApp3Module | string) => Promise<void>} addApp
103
105
  * @property {(message: string, type?: NeherApp3NotifyType, cb?: function) => void} notify - Shows a notification. Type defaults to 0 (info). Callback is optional.
104
106
  * @property {NeherApp3ApiCollection} api
package/index.d.ts CHANGED
@@ -1961,6 +1961,8 @@ export type NachrichtenDTO = {
1961
1961
 
1962
1962
  export type NeherApp3 = {
1963
1963
  addMenuItem: (menuItem: NeherApp3MenuItem) => void;
1964
+ updateMenuItem: (id: string, patch: Partial<NeherApp3MenuItem>) => boolean;
1965
+ removeMenuItem: (id: string) => boolean;
1964
1966
  addApp: (appModule: NeherApp3Module | string) => Promise<void>;
1965
1967
  notify: (message: string, type?: NeherApp3NotifyType, cb?: Function) => void;
1966
1968
  api: NeherApp3ApiCollection;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gandalan/weblibs",
3
- "version": "1.5.34",
3
+ "version": "1.5.35",
4
4
  "description": "WebLibs for Gandalan JS/TS projects",
5
5
  "keywords": [
6
6
  "gandalan"