@jskit-ai/shell-web 0.1.166 → 0.1.168

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.
@@ -20,18 +20,6 @@ const COMPONENTS = new Map([
20
20
  ["fixture.tab-link", ShellTabLinkItem]
21
21
  ]);
22
22
 
23
- const placementContainer = Object.freeze({
24
- has(token) {
25
- return COMPONENTS.has(token);
26
- },
27
- make(token) {
28
- return COMPONENTS.get(token);
29
- },
30
- resolveTag() {
31
- return [];
32
- }
33
- });
34
-
35
23
  function createSurfacePlacement(surface, order, label, suffix) {
36
24
  return {
37
25
  id: `fixture.${surface}.${label.toLowerCase()}`,
@@ -102,7 +90,7 @@ const placementTopology = [
102
90
  }
103
91
  ];
104
92
 
105
- const placementRuntime = createWebPlacementRuntime({ app: placementContainer });
93
+ const placementRuntime = createWebPlacementRuntime({ components: COMPONENTS });
106
94
  placementRuntime.replacePlacements(placements);
107
95
  placementRuntime.replacePlacementTopology(placementTopology);
108
96
  placementRuntime.setContext({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/shell-web",
3
- "version": "0.1.166",
3
+ "version": "0.1.168",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "test": "node --test"
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@mdi/js": "^7.4.47",
32
- "@jskit-ai/kernel": "0.1.162"
32
+ "@jskit-ai/kernel": "0.1.164"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "pinia": "^3.0.4",
@@ -828,6 +828,10 @@ function touchListIncludesActiveTouch(touchList) {
828
828
  padding-bottom: env(safe-area-inset-bottom, 0px);
829
829
  }
830
830
 
831
+ .shell-layout__bottom-nav :deep(.v-btn) {
832
+ min-height: 48px;
833
+ }
834
+
831
835
  .shell-layout__supporting-sheet {
832
836
  max-height: min(72vh, 40rem);
833
837
  overflow: auto;
@@ -232,6 +232,15 @@ test("shell-web adaptive navigation passes package-owned browser contracts", {
232
232
  }).toBeLessThanOrEqual(1);
233
233
  await configuredPage.close();
234
234
  await context.close();
235
+ } catch (error) {
236
+ const fixtureOutput = vite.readOutput().trim();
237
+ if (!fixtureOutput) {
238
+ throw error;
239
+ }
240
+ throw new Error(
241
+ `${error.message}\n\nAdaptive shell fixture output:\n${fixtureOutput}`,
242
+ { cause: error }
243
+ );
235
244
  } finally {
236
245
  await browser?.close();
237
246
  await stopProcess(vite);
@@ -76,6 +76,7 @@ test("shell-web shell layout registers navigation at the app layout level", asyn
76
76
  assert.doesNotMatch(source, /<v-chip[^>]*resolvedSurfaceLabel/);
77
77
  assert.match(source, /shell-layout__top-right[\s\S]*max-width:\s*min\(45vw, 18rem\)/);
78
78
  assert.match(source, /<v-bottom-navigation[\s\S]*target="shell-layout:primary-bottom-nav"/);
79
+ assert.match(source, /\.shell-layout__bottom-nav\s+:deep\(\.v-btn\)\s*\{[\s\S]*min-height:\s*48px;/);
79
80
  assert.match(source, /<v-bottom-sheet[\s\S]*target="shell-layout:supporting-bottom-sheet"/);
80
81
  assert.match(source, /target="shell-layout:supporting-side-panel"/);
81
82
  assert.match(source, /data-testid="jskit-shell-supporting-bottom-sheet"/);