@jskit-ai/kernel 0.1.24 → 0.1.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/kernel",
3
- "version": "0.1.24",
3
+ "version": "0.1.26",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "typebox": "^1.0.81"
@@ -41,7 +41,7 @@ test("resolveShellOutletPlacementTargetFromApp reads outlets across app Vue file
41
41
  "src/pages/admin/workspace/settings/index.vue",
42
42
  `<template>
43
43
  <section>
44
- <ShellOutlet host="workspace-settings" position="forms" default />
44
+ <ShellOutlet host="admin-settings" position="forms" default />
45
45
  </section>
46
46
  </template>
47
47
  `
@@ -52,7 +52,7 @@ test("resolveShellOutletPlacementTargetFromApp reads outlets across app Vue file
52
52
  context: "ui-generator"
53
53
  });
54
54
 
55
- assert.equal(target.host, "workspace-settings");
55
+ assert.equal(target.host, "admin-settings");
56
56
  assert.equal(target.position, "forms");
57
57
  });
58
58
  });
@@ -147,28 +147,28 @@ test("discoverShellOutletTargetsFromApp returns targets with sourcePath and defa
147
147
  "src/pages/admin/workspace/settings/index.vue",
148
148
  `<template>
149
149
  <section>
150
- <ShellOutlet host="workspace-settings" position="forms" default />
150
+ <ShellOutlet host="admin-settings" position="forms" default />
151
151
  </section>
152
152
  </template>
153
153
  `
154
154
  );
155
155
 
156
156
  const discovered = await discoverShellOutletTargetsFromApp({ appRoot });
157
- assert.equal(discovered.defaultTargetId, "workspace-settings:forms");
157
+ assert.equal(discovered.defaultTargetId, "admin-settings:forms");
158
158
  assert.deepEqual(discovered.targets, [
159
+ {
160
+ id: "admin-settings:forms",
161
+ host: "admin-settings",
162
+ position: "forms",
163
+ default: true,
164
+ sourcePath: "src/pages/admin/workspace/settings/index.vue"
165
+ },
159
166
  {
160
167
  id: "shell-layout:primary-menu",
161
168
  host: "shell-layout",
162
169
  position: "primary-menu",
163
170
  default: false,
164
171
  sourcePath: "src/components/ShellLayout.vue"
165
- },
166
- {
167
- id: "workspace-settings:forms",
168
- host: "workspace-settings",
169
- position: "forms",
170
- default: true,
171
- sourcePath: "src/pages/admin/workspace/settings/index.vue"
172
172
  }
173
173
  ]);
174
174
  });
@@ -287,7 +287,7 @@ test("resolveShellOutletPlacementTargetFromApp throws when multiple default outl
287
287
  "src/pages/admin/workspace/settings/index.vue",
288
288
  `<template>
289
289
  <section>
290
- <ShellOutlet host="workspace-settings" position="forms" default />
290
+ <ShellOutlet host="admin-settings" position="forms" default />
291
291
  </section>
292
292
  </template>
293
293
  `