@gsa-tts/graymatter-ui 0.4.0 → 0.4.2

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": "@gsa-tts/graymatter-ui",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -61,9 +61,9 @@
61
61
  "typescript": "5.7.3",
62
62
  "vite": "^6.3.5",
63
63
  "vitest": "^3.0.7",
64
+ "@gsa-tts/graymatter-eslint": "0.0.2",
64
65
  "@gsa-tts/graymatter-typescript-config": "0.0.2",
65
- "@gsa-tts/graymatter-vitest-config": "0.0.1",
66
- "@gsa-tts/graymatter-eslint": "0.0.2"
66
+ "@gsa-tts/graymatter-vitest-config": "0.0.1"
67
67
  },
68
68
  "dependencies": {
69
69
  "@fontsource-variable/archivo": "^5.2.6",
@@ -5,7 +5,8 @@
5
5
  import ChatIcon from './icons/ChatIcon.svelte';
6
6
  import ConsoleIcon from './icons/ConsoleIcon.svelte';
7
7
  import ApiIcon from './icons/ApiIcon.svelte';
8
- import slugify from 'slugify';
8
+ import * as slugifyModule from 'slugify';
9
+ const slugify = slugifyModule.default || slugifyModule;
9
10
 
10
11
  let {
11
12
  onNavItemClick,
@@ -37,9 +37,14 @@ export function setupCommonMocks() {
37
37
  }),
38
38
  }));
39
39
 
40
- vi.mock('slugify', () => ({
41
- default: (x: string) => x.toLowerCase().replace(/ /g, '-'),
42
- }));
40
+ vi.mock('slugify', () => {
41
+ const mockSlugify = (x: string) => x.toLowerCase().replace(/ /g, '-');
42
+ return {
43
+ default: mockSlugify,
44
+ // fallback case
45
+ ...mockSlugify,
46
+ };
47
+ });
43
48
 
44
49
  vi.stubGlobal(
45
50
  'window',