@functionalcms/svelte-components 0.7.0 → 0.8.1

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.
@@ -25,7 +25,7 @@
25
25
  </a>
26
26
  </div>
27
27
  <HeaderNav>
28
- {#each pages as page}
28
+ {#each pages.filter(x => x.isVisible) as page}
29
29
  <HeaderNavItem>
30
30
  <a on:click={page.action} href={page.path}>
31
31
  {page.name}
@@ -3,5 +3,6 @@ export declare class HeaderNavigationItem {
3
3
  name: string;
4
4
  path: string | undefined;
5
5
  action: ClickAction | undefined;
6
+ isVisible: boolean;
6
7
  }
7
8
  export {};
@@ -2,4 +2,5 @@ export class HeaderNavigationItem {
2
2
  name;
3
3
  path;
4
4
  action;
5
+ isVisible = false;
5
6
  }
package/dist/index.d.ts CHANGED
@@ -3,4 +3,5 @@ import Hero from './components/Hero.svelte';
3
3
  import Header from './components/Header.svelte';
4
4
  import Footer from './components/Footer.svelte';
5
5
  import { authStore } from './authStore';
6
- export { Box, Hero, Header, Footer, authStore };
6
+ import { AuthConfig } from './authStore';
7
+ export { Box, Hero, Header, Footer, authStore, AuthConfig };
package/dist/index.js CHANGED
@@ -4,12 +4,13 @@ import Box from './components/Box.svelte';
4
4
  import Hero from './components/Hero.svelte';
5
5
  import Header from './components/Header.svelte';
6
6
  import Footer from './components/Footer.svelte';
7
- import { authStore } from './authStore';
7
+ import { authStore, AuthConfig } from './authStore';
8
8
 
9
9
  export {
10
10
  Box,
11
11
  Hero,
12
12
  Header,
13
13
  Footer,
14
- authStore
14
+ authStore,
15
+ AuthConfig
15
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "0.7.0",
3
+ "version": "0.8.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,8 +30,9 @@
30
30
  "!dist/**/*.spec.*"
31
31
  ],
32
32
  "peerDependencies": {
33
- "svelte": "^4.0.0",
34
- "@azure/msal-browser": "^3.3.0"
33
+ "svelte": "^4.0.5",
34
+ "@azure/msal-browser": "^3.3.0",
35
+ "agnostic-svelte": "^1.1.27"
35
36
  },
36
37
  "devDependencies": {
37
38
  "@sveltejs/adapter-auto": "^2.0.0",
@@ -45,12 +46,10 @@
45
46
  "prettier": "^2.8.0",
46
47
  "prettier-plugin-svelte": "^2.10.1",
47
48
  "publint": "^0.1.9",
48
- "svelte": "^4.0.5",
49
49
  "svelte-check": "^3.4.3",
50
50
  "tslib": "^2.4.1",
51
51
  "typescript": "^5.0.0",
52
- "vite": "^4.4.2",
53
- "agnostic-svelte": "^1.1.27"
52
+ "vite": "^4.4.2"
54
53
  },
55
54
  "svelte": "./dist/index.js",
56
55
  "types": "./dist/index.d.ts",