@functionalcms/svelte-components 2.38.4 → 2.38.6

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.
@@ -4,7 +4,7 @@ const authorizationHandle = () => {
4
4
  const path = event.url.pathname;
5
5
  if (path.startsWith('/auth/') === false) {
6
6
  const route = event.route;
7
- if (route.id.includes('/(protect)/')) {
7
+ if (route.id.includes('/(protect)')) {
8
8
  const session = event?.locals?.session;
9
9
  if (!session) {
10
10
  const cookieHeader = `retrunToAddress=${event.url.toString()}; HttpOnly; Secure; SameSite=Lax; Max-Age=3600; Path=/`;
@@ -2,7 +2,7 @@
2
2
  import { isAuthenticated } from "./authentication.js";
3
3
  import { page } from "$app/stores";
4
4
  import { mergedClasses } from "../CssHelper.js";
5
- export let css = defaultCss;
5
+ export let css;
6
6
  const cssClasses = { ...defaultCss, ...css };
7
7
  export let localPages = [];
8
8
  $: pagesVisiblity = isAuthenticated($page);
@@ -2,7 +2,7 @@ import { SvelteComponent } from "svelte";
2
2
  import { HeaderNavigationItem } from './Menu.js';
3
3
  declare const __propDef: {
4
4
  props: {
5
- css?: {
5
+ css: {
6
6
  container: string[];
7
7
  };
8
8
  localPages?: Array<HeaderNavigationItem>;
@@ -14,17 +14,23 @@ const linkCss = mergedClasses(cssClasses.link);
14
14
 
15
15
  <ul class={containerCss} role="menu" aria-roledescription="">
16
16
  {#each localPages as pageItem}
17
- <li aria-current={isSelected(includeSubpagesForSelect, $page, pageItem)} class={linkCss} role="presentation">
17
+ <li
18
+ aria-current={isSelected(includeSubpagesForSelect, $page, pageItem)}
19
+ class={linkCss}
20
+ role="presentation"
21
+ >
18
22
  <span class="screenreader-only">Navigate to {pageItem.name}</span>
19
- <Link href={pageItem.path} role="menuItem">
23
+ <!-- <Link href={pageItem.path} role="menuItem"> -->
24
+ <a href={pageItem.path} role="menuItem">
20
25
  {pageItem.name}
21
- </Link>
26
+ </a>
27
+ <!-- </Link> -->
22
28
  </li>
23
29
  {/each}
24
30
  </ul>
25
31
 
26
32
  <style>
27
- ul {
33
+ /* ul {
28
34
  background: var(--functional-menu-background);
29
35
  margin: var(--functional-menu-margin);
30
36
  padding: var(--functional-menu-padding);
@@ -65,5 +71,5 @@ const linkCss = mergedClasses(cssClasses.link);
65
71
  border-bottom: var(--functional-menu-item-selected-border-bottom);
66
72
  border-left: var(--functional-menu-item-selected-border-left);
67
73
  border-radius: var(--functional-menu-item-selected-radius, var(--functional-radius));
68
- }
74
+ } */
69
75
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "2.38.4",
3
+ "version": "2.38.6",
4
4
  "watch": {
5
5
  "build": {
6
6
  "patterns": [