@gandalan/weblibs 1.5.7 → 1.5.8

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.
Files changed (2) hide show
  1. package/index.js +37 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -8,3 +8,40 @@ export { createAuthManager, fluentIdasAuthManager } from "./api/fluentAuthManage
8
8
  export { fetchEnvConfig } from "./api/fluentEnvUtils";
9
9
  export { restClient } from "./api/fluentRestClient";
10
10
 
11
+ /**
12
+ * @typedef {Object} NeherApp3Module
13
+ * @property {string} moduleName
14
+ * @property {(app: NeherApp3) => void} setup
15
+ * @property {(node : HTMLElement, props : *) => function} mount Must return an unmount function
16
+ * @property {string?} embedUrl
17
+ */
18
+
19
+ /**
20
+ * @typedef {Object} NeherApp3
21
+ * @property {(menuItem : NeherApp3MenuItem) => void} addMenuItem
22
+ * @property {(appModule: NeherApp3Module) => void} addApp
23
+ * @property {(message: string, type? : number, cb? : function) => void} notify - Shows a notification. Type defaults to 0 (info). Callback is optional.
24
+ * @property {function} getArtikelStamm
25
+ * @property {function} getWarenGruppen
26
+ * @property {function} getArtikelByGuid
27
+ * @property {function} getWertelisten
28
+ * @property {function} getScripts
29
+ * @property {function} getVarianten
30
+ */
31
+
32
+ /**
33
+ * @typedef {Object} NeherApp3MenuItem
34
+ * @property {string} [id] - Unique identifier for the menu item (auto-generated if not provided)
35
+ * @property {boolean} [selected] - Indicates if the menu item is currently selected (managed by the menu system)
36
+ * @property {string} [icon] - URL to an icon
37
+ * @property {string} url - Relative URL to use for routes
38
+ * @property {string} text - Display text
39
+ * @property {string} [parent] - Parent menu item (optional). If not set, the item will be added to the top level menu.
40
+ */
41
+
42
+ /**
43
+ * Global NeherApp3 instance
44
+ * @type {NeherApp3}
45
+ * @global
46
+ */
47
+ globalThis.neherapp3 = globalThis.neherapp3 || {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gandalan/weblibs",
3
- "version": "1.5.7",
3
+ "version": "1.5.8",
4
4
  "description": "WebLibs for Gandalan JS/TS projects",
5
5
  "keywords": [
6
6
  "gandalan"