@heswell/vuu-portal 2.2.5 → 2.4.0

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/195.js CHANGED
@@ -410,6 +410,10 @@ const managedModuleKeys = [
410
410
  "navIconUrl",
411
411
  "accessRole"
412
412
  ];
413
+ const navEntryKeys = [
414
+ "location",
415
+ "path"
416
+ ];
413
417
  const optionalModuleKeys = [
414
418
  "navOrder",
415
419
  "navBadge",
@@ -426,7 +430,7 @@ function parseManagedModule(value, index) {
426
430
  for (const key of Object.keys(value))if (!managedModuleKeys.includes(key) && !optionalModuleKeys.includes(key) && !retiredModuleKeys.includes(key)) throw new Error(`Modules file entry ${index} contains unknown field '${key}'`);
427
431
  const module = {};
428
432
  for (const key of managedModuleKeys){
429
- const fieldValue = value[key];
433
+ const fieldValue = void 0 === value[key] && navEntryKeys.includes(key) ? "" : value[key];
430
434
  if (void 0 === fieldValue) throw new Error(`Modules file entry ${index} is missing '${key}'`);
431
435
  const expected = [
432
436
  "id",
package/README.md CHANGED
@@ -166,6 +166,12 @@ for the field. In [`default-modules.yaml`](./default-modules.yaml):
166
166
  | `vuu-table-browser` | none | It is itself a workspace page; its tables are in the palette's Tables tab |
167
167
  | `vuu-table-viewer` | none | Nested module; it only works inside the table browser |
168
168
 
169
+ A top-level module with a `workspace` descriptor may leave `location` and
170
+ `path` empty (or omit them from the YAML) to be offered only in the palette,
171
+ with no nav entry or route. It is still sent in `LOGIN_SUCCESS`, with an empty
172
+ `navLocation` and `path`. Top-level modules without `workspace` still need
173
+ both.
174
+
169
175
  The seed only applies when `modules.yaml` is first created. To change an
170
176
  existing deployment, edit `modules.yaml` or use the module admin
171
177
  (`updateModule` with `workspace`, or `workspace: null` to remove a module from
@@ -23,7 +23,8 @@
23
23
  # navOrder: 1
24
24
  # navBadge: "modules.pending"
25
25
  # notificationTopics: ["modules"]
26
- # # Optional: list the module in the workspace Panels palette.
26
+ # # Optional: list the module in the workspace Panels palette. With it,
27
+ # # location and path may be "" (or omitted) for a palette-only module.
27
28
  # workspace:
28
29
  # paletteGroup: "Admin"
29
30
  # iconUrl: "" # optional; data:image/... or http(s) URL
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heswell/vuu-portal",
3
- "version": "2.2.5",
3
+ "version": "2.4.0",
4
4
  "description": "VUU portal server with remote module discovery",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -26,12 +26,12 @@
26
26
  "author": "heswell",
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
- "@heswell/module-admin": "^2.2.0"
29
+ "@heswell/module-admin": "^2.3.0"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "@heswell/vuu-server": "^3.1.0 || ^4.0.0",
33
33
  "@heswell/vuu-table": "^1.0.1",
34
- "@vuu-ui/vuu-protocol-types": "^4.0.0-alpha.26"
34
+ "@vuu-ui/vuu-protocol-types": "^5.0.0-alpha.2"
35
35
  },
36
36
  "repository": {
37
37
  "type": "git",