astro-accelerator 0.3.2 → 0.3.3

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,5 +1,5 @@
1
1
  {
2
- "version": "0.3.2",
2
+ "version": "0.3.3",
3
3
  "author": "Steve Fenton",
4
4
  "name": "astro-accelerator",
5
5
  "description": "A super-lightweight, accessible, SEO-friendly starter project for Astro",
@@ -31,8 +31,8 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@astrojs/mdx": "^1.0.0",
34
- "astro": "^3.0.3",
35
- "astro-accelerator-utils": "^0.2.39",
34
+ "astro": "^3.0.5",
35
+ "astro-accelerator-utils": "^0.2.40",
36
36
  "csv": "^6.3.3",
37
37
  "hast-util-from-selector": "^3.0.0",
38
38
  "html-to-text": "^9.0.5",
@@ -1,35 +1,23 @@
1
- import type { NavPage } from 'astro-accelerator-utils/types/NavPage';
1
+ import type { MenuItem } from 'astro-accelerator-utils/types/NavPage';
2
2
 
3
- export const menu: (NavPage | 'categories' | 'tags' | 'toptags')[] = [
3
+ export const menu: (MenuItem | 'categories' | 'tags' | 'toptags')[] = [
4
4
  'categories',
5
5
  'tags',
6
6
  {
7
7
  title: 'Quick Links',
8
- url: '',
9
- ariaCurrent: false,
10
- isOpen: false,
11
8
  order: 1,
12
9
  children: [{
13
10
  title: 'Steve Fenton',
14
11
  url: 'https://www.stevefenton.co.uk/',
15
- ariaCurrent: false,
16
- isOpen: false,
17
12
  order: 1,
18
- children: []
19
13
  },{
20
14
  title: 'Astro',
21
15
  url: 'https://astro.build',
22
- ariaCurrent: false,
23
- isOpen: false,
24
16
  order: 1,
25
- children: []
26
17
  },{
27
18
  title: 'GitHub',
28
19
  url: 'https://github.com/Steve-Fenton/astro-accelerator',
29
- ariaCurrent: false,
30
- isOpen: false,
31
20
  order: 1,
32
- children: []
33
21
  }]
34
22
  }];
35
23
 
@@ -1,6 +1,6 @@
1
- import type { NavPage } from 'astro-accelerator-utils/types/NavPage';
1
+ import type { MenuItem } from 'astro-accelerator-utils/types/NavPage';
2
2
 
3
- export const menu: (NavPage | 'auto')[] = [
3
+ export const menu: (MenuItem | 'auto')[] = [
4
4
  'auto'
5
5
  ];
6
6
 
@@ -10,7 +10,7 @@ export const menu: (NavPage | 'auto')[] = [
10
10
  * Use the string 'auto' in the menu to automatically generate the navigation,
11
11
  * or specify items individually to have full control. The simplest example is:
12
12
 
13
- export const menu: (NavPage | 'auto')[] = [
13
+ export const menu: (MenuItem | 'auto')[] = [
14
14
  'auto'
15
15
  ];
16
16
 
@@ -23,39 +23,28 @@ export const menu: (NavPage | 'auto')[] = [
23
23
  * of automatic and manual entries is "merged", so you don't need to place 'auto'
24
24
  * anywhere specific in this list. Set the order fields instead.
25
25
 
26
- export const menu: (NavPage | 'auto')[] = [
26
+ export const menu: (MenuItem | 'auto')[] = [
27
27
  'auto',
28
28
  {
29
29
  title: 'Section',
30
30
  url: '/section/',
31
- ariaCurrent: false,
32
- isOpen: false,
33
31
  order: 1,
34
32
  section: 'Section',
35
33
  children: [
36
34
  {
37
35
  title: 'Blog',
38
36
  url: '/section/blog/',
39
- ariaCurrent: false,
40
- isOpen: false,
41
37
  order: 1,
42
- children: []
43
38
  },
44
39
  {
45
40
  title: 'Publications',
46
41
  url: '/section/publications/',
47
- ariaCurrent: false,
48
- isOpen: false,
49
42
  order: 2,
50
- children: []
51
43
  },
52
44
  {
53
45
  title: 'About',
54
46
  url: '/section/about/',
55
- ariaCurrent: false,
56
- isOpen: false,
57
47
  order: 3,
58
- children: []
59
48
  },
60
49
  ]
61
50
  },