@jskit-ai/http-web 0.2.17 → 0.2.18

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.
@@ -33,17 +33,6 @@ import BookViewPage from "../../patterns/crud-screen-set/example/books/BookViewP
33
33
  // file-based router's definePage() macro is a no-op here; each route carries the meta the page declares.
34
34
  globalThis.definePage = () => {};
35
35
 
36
- function destination(order, label, suffix, icon) {
37
- return {
38
- id: `fixture.${label.toLowerCase()}`,
39
- target: "shell.primary-nav",
40
- kind: "link",
41
- surfaces: ["app"],
42
- order,
43
- props: { label, icon, surface: "app", scopedSuffix: suffix, unscopedSuffix: suffix, exact: suffix === "/" }
44
- };
45
- }
46
-
47
36
  const menuRenderers = Object.freeze({ link: "fixture.surface-menu-link" });
48
37
  const placementRuntime = createWebPlacementRuntime({
49
38
  components: new Map([
@@ -53,9 +42,30 @@ const placementRuntime = createWebPlacementRuntime({
53
42
  logger: silentLogger
54
43
  });
55
44
  placementRuntime.replacePlacements([
56
- destination(10, "Home", "/", "$home"),
57
- destination(20, "Books", "/books", "$description"),
58
- destination(30, "Settings", "/settings", "$settings")
45
+ {
46
+ id: "fixture.home",
47
+ target: "shell.primary-nav",
48
+ kind: "link",
49
+ surfaces: ["app"],
50
+ order: 10,
51
+ props: { label: "Home", icon: "$home", surface: "app", scopedSuffix: "/", unscopedSuffix: "/", exact: true }
52
+ },
53
+ {
54
+ id: "fixture.books",
55
+ target: "shell.primary-nav",
56
+ kind: "link",
57
+ surfaces: ["app"],
58
+ order: 20,
59
+ props: { label: "Books", icon: "$description", surface: "app", scopedSuffix: "/books", unscopedSuffix: "/books" }
60
+ },
61
+ {
62
+ id: "fixture.settings",
63
+ target: "shell.primary-nav",
64
+ kind: "link",
65
+ surfaces: ["app"],
66
+ order: 30,
67
+ props: { label: "Settings", icon: "$settings", surface: "app", scopedSuffix: "/settings", unscopedSuffix: "/settings" }
68
+ }
59
69
  ]);
60
70
  placementRuntime.replacePlacementTopology([
61
71
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/http-web",
3
- "version": "0.2.17",
3
+ "version": "0.2.18",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "test": "node --test --test-concurrency=1"
@@ -52,15 +52,15 @@
52
52
  "peerDependencies": {
53
53
  "@jskit-ai/http-runtime": "0.2.10",
54
54
  "@jskit-ai/kernel": "0.2.10",
55
- "@jskit-ai/realtime": "0.2.15",
56
- "@jskit-ai/shell-web": "0.2.12",
55
+ "@jskit-ai/realtime": "0.2.16",
56
+ "@jskit-ai/shell-web": "0.2.13",
57
57
  "@tanstack/vue-query": "^5.90.5",
58
58
  "vue": "^3.5.13",
59
59
  "vue-router": "^5.0.4",
60
60
  "vuetify": "^4.3.0"
61
61
  },
62
62
  "devDependencies": {
63
- "@jskit-ai/material-web": "0.1.1"
63
+ "@jskit-ai/material-web": "0.1.2"
64
64
  },
65
65
  "description": "Neutral Vue request, command, resource, and CRUD UI runtime for JSKIT web applications.",
66
66
  "jskit": {