@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.
- package/dist/auth/authenticationHandle.js +0 -1
- package/dist/auth/authorizationHandle.d.ts +1 -1
- package/dist/auth/authorizationHandle.js +0 -1
- package/dist/auth/types.d.ts +2 -0
- package/dist/components/CssHelper.d.ts +1 -1
- package/dist/components/blog/BlogDescription.svelte +0 -3
- package/dist/components/converters/ShowItemToNavigationItems.js +1 -1
- package/dist/components/form/InputTypes.d.ts +1 -1
- package/dist/components/form/InputTypes.js +1 -1
- package/dist/components/layouts/TwoColumnsLayout.svelte +7 -2
- package/dist/components/menu/Menu.svelte +3 -3
- package/dist/components/menu/authentication.js +0 -1
- package/dist/server-side/getServices.d.ts +7 -6
- package/package.json +18 -10
|
@@ -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
|
}
|
package/dist/auth/types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function mergedClasses(...params:
|
|
1
|
+
export declare function mergedClasses(...params: string[]): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type { Snippet } from
|
|
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 {
|
|
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
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
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.
|
|
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
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
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-
|
|
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.
|
|
52
|
-
"svelte-check": "^4.0.0",
|
|
60
|
+
"svelte": "^5.12.0",
|
|
53
61
|
"tslib": "^2.6.2",
|
|
54
62
|
"typescript": "^5.0.0",
|
|
55
|
-
"
|
|
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
|
}
|