@functionalcms/svelte-components 3.5.10 → 3.5.11

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.
@@ -53,7 +53,6 @@ export const authenticationHandle = (provider, sessionProvider) => {
53
53
  }
54
54
  //logout
55
55
  if (event.url.pathname === '/auth/logout') {
56
- // await provider.logout();
57
56
  const headers = await logout(event.cookies, sessionProvider);
58
57
  return new Response('Logging Out...', { status: 303, headers });
59
58
  }
@@ -1,3 +1,3 @@
1
- import { type Handle } from '@sveltejs/kit';
1
+ import type { Handle } from "@sveltejs/kit";
2
2
  declare const authorizationHandle: () => Handle;
3
3
  export default authorizationHandle;
@@ -1,4 +1,3 @@
1
- import { redirect } from '@sveltejs/kit';
2
1
  const authorizationHandle = () => {
3
2
  return async ({ event, resolve }) => {
4
3
  const path = event.url.pathname;
@@ -41,3 +41,5 @@ export interface ISessionStorage {
41
41
  deleteSession(sid: Sid): Promise<void>;
42
42
  updateSession(sid: Sid, session: ISession, maxAge: number): Promise<void>;
43
43
  }
44
+ export interface Cookies {
45
+ }
@@ -1 +1 @@
1
- export declare function mergedClasses(...params: any[]): string;
1
+ export declare function mergedClasses(...params: string[]): string;
@@ -1,7 +1,4 @@
1
1
  <script lang="ts">
2
- import Link from "../Link.svelte";
3
- import { Justify } from "../Styling.js";
4
-
5
2
  export let description: string;
6
3
  export let css: string = "";
7
4
  </script>
@@ -4,7 +4,7 @@ export function convertShowItemsToNavigationItems(showItems) {
4
4
  .map((item) => ({
5
5
  name: item?.title,
6
6
  path: item?.path,
7
- visiblity: Visiblity.Always
7
+ visiblity: Visiblity.Always,
8
8
  }));
9
9
  return navItems;
10
10
  }
@@ -1,6 +1,6 @@
1
1
  export declare enum Types {
2
2
  Text = "",
3
- TeaxtArea = "",
3
+ TeaxtArea = "textarea",
4
4
  Email = "type=\"email\"",
5
5
  Password = "type=\"password\"",
6
6
  Search = "type=\"search\"",
@@ -1,7 +1,7 @@
1
1
  export var Types;
2
2
  (function (Types) {
3
3
  Types["Text"] = "";
4
- Types["TeaxtArea"] = "";
4
+ Types["TeaxtArea"] = "textarea";
5
5
  Types["Email"] = "type=\"email\"";
6
6
  Types["Password"] = "type=\"password\"";
7
7
  Types["Search"] = "type=\"search\"";
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import type { Snippet } from "svelte";
2
+ import type { Snippet } from 'svelte';
3
3
 
4
4
  interface TwoColumnLayoutProps {
5
5
  leftRender: Snippet;
@@ -8,7 +8,12 @@
8
8
  rightCss: string;
9
9
  }
10
10
 
11
- let { leftRender, rightRender, leftCss = 'w50p', rightCss = 'w50p' } = $props();
11
+ let {
12
+ leftRender,
13
+ rightRender,
14
+ leftCss = 'w50p',
15
+ rightCss = 'w50p'
16
+ }: TwoColumnLayoutProps = $props();
12
17
  </script>
13
18
 
14
19
  <section class="flex flex-row-dynamic fw">
@@ -295,9 +295,9 @@
295
295
  </span>
296
296
  {:else}
297
297
  <span class="screenreader-only">{menuTitle}</span>
298
- <span class={dotBarClasses} />
299
- <span class={dotBarClasses} />
300
- <span class={dotBarClasses} />
298
+ <span class={dotBarClasses}></span>
299
+ <span class={dotBarClasses}></span>
300
+ <span class={dotBarClasses}></span>
301
301
  {/if}
302
302
  </button>
303
303
  <div class={menuItemsClasses()} id={id} role="menu" hidden={!expanded}>
@@ -1,5 +1,4 @@
1
1
  import { Visiblity } from '@functionalcms/svelte-components';
2
- import { get } from 'svelte/store';
3
2
  export function isAuthenticated(page) {
4
3
  const isAuthenticated = page?.data?.session != null;
5
4
  const visibility = isAuthenticated ? Visiblity.Authenticated : Visiblity.NotAuthenticated;
@@ -1,7 +1,8 @@
1
1
  import { CommunicationService, DataService, TemplateService, WebsitesService, BlobService, AiService } from "@functionalcms/services";
2
- export declare const getDataService: (locals: any) => DataService;
3
- export declare const getCommunicationService: (locals: any) => CommunicationService;
4
- export declare const getWebsiteService: (locals: any) => WebsitesService;
5
- export declare const getTemplateService: (locals: any) => TemplateService;
6
- export declare const getBlobService: (locals: any) => BlobService;
7
- export declare const getAIService: (locals: any) => AiService;
2
+ import type { Locals } from "./types";
3
+ export declare const getDataService: (locals: Locals) => DataService;
4
+ export declare const getCommunicationService: (locals: Locals) => CommunicationService;
5
+ export declare const getWebsiteService: (locals: Locals) => WebsitesService;
6
+ export declare const getTemplateService: (locals: Locals) => TemplateService;
7
+ export declare const getBlobService: (locals: Locals) => BlobService;
8
+ export declare const getAIService: (locals: Locals) => AiService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "3.5.10",
3
+ "version": "3.5.11",
4
4
  "watch": {
5
5
  "build": {
6
6
  "patterns": [
@@ -17,9 +17,9 @@
17
17
  "preview": "vite preview",
18
18
  "package": "npm run build-css && svelte-kit sync && svelte-package && publint",
19
19
  "prepublishOnly": "npm run package",
20
- "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
21
- "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
22
- "watch": "npm-watch build"
20
+ "watch": "npm-watch build",
21
+ "lint": "eslint . && prettier --check .",
22
+ "format": "prettier --write ."
23
23
  },
24
24
  "exports": {
25
25
  ".": {
@@ -40,19 +40,28 @@
40
40
  "!dist/**/*.test.*",
41
41
  "!dist/**/*.spec.*"
42
42
  ],
43
+ "sideEffects": [
44
+ "**/*.css"
45
+ ],
43
46
  "devDependencies": {
47
+ "@eslint/compat": "^1.2.3",
48
+ "@eslint/js": "^9.17.0",
44
49
  "@functionalcms/services": "latest",
45
- "@sveltejs/adapter-auto": "^3.1.0",
50
+ "@sveltejs/adapter-netlify": "^4.4.0",
46
51
  "@sveltejs/kit": "^2.0.0",
47
52
  "@sveltejs/package": "^2.2.5",
48
53
  "@sveltejs/vite-plugin-svelte": "^5.0.0",
54
+ "eslint": "^9.7.0",
55
+ "eslint-config-prettier": "^9.1.0",
56
+ "eslint-plugin-svelte": "^2.36.0",
57
+ "prettier-plugin-svelte": "^3.2.6",
49
58
  "publint": "^0.2.12",
50
59
  "sass": "^1.69.7",
51
- "svelte": "^5.0.0",
52
- "svelte-check": "^4.0.0",
60
+ "svelte": "^5.12.0",
53
61
  "tslib": "^2.6.2",
54
62
  "typescript": "^5.0.0",
55
- "vite": "^6.0.0",
63
+ "typescript-eslint": "^8.19.1",
64
+ "vite": "^6.0.3",
56
65
  "watch": "^1.0.2"
57
66
  },
58
67
  "dependencies": {
@@ -72,6 +81,5 @@
72
81
  },
73
82
  "svelte": "./dist/index.js",
74
83
  "types": "./dist/index.d.ts",
75
- "type": "module",
76
- "sideEffects": false
84
+ "type": "module"
77
85
  }