@functionalcms/svelte-components 5.12.4 → 5.13.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.
@@ -5,5 +5,5 @@ export declare const getCommunicationService: (locals: Locals, endpoint: string)
5
5
  export declare const getWebsiteService: (locals: Locals, endpoint: string) => WebsitesService;
6
6
  export declare const getTemplateService: (locals: Locals, endpoint: string) => TemplateService;
7
7
  export declare const getFileService: (locals: Locals, endpoint: string) => FilesService;
8
- export declare const getUsersService: (locals: Locals, endpoint: string) => UsersService;
8
+ export declare const getUsersService: (locals: Locals) => UsersService;
9
9
  export declare const getSetupService: (locals: Locals, endpoint: string) => SetupService;
@@ -1,4 +1,5 @@
1
1
  import { CommunicationService, DataService, TemplateService, WebsitesService, FilesService, UsersService, SetupService, } from "@functionalcms/services";
2
+ import { ENDPOINT } from '$app/env/private';
2
3
  const getAccessToken = (locals) => locals.token;
3
4
  export const getDataService = (locals, endpoint) => {
4
5
  const accessToken = getAccessToken(locals);
@@ -25,9 +26,9 @@ export const getFileService = (locals, endpoint) => {
25
26
  const service = new FilesService(accessToken, endpoint);
26
27
  return service;
27
28
  };
28
- export const getUsersService = (locals, endpoint) => {
29
+ export const getUsersService = (locals) => {
29
30
  const accessToken = getAccessToken(locals);
30
- const service = new UsersService(accessToken, endpoint);
31
+ const service = new UsersService(accessToken, ENDPOINT);
31
32
  return service;
32
33
  };
33
34
  export const getSetupService = (locals, endpoint) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "5.12.4",
3
+ "version": "5.13.1",
4
4
  "license": "MIT",
5
5
  "watch": {
6
6
  "build": {
@@ -43,30 +43,30 @@
43
43
  "devDependencies": {
44
44
  "@functionalcms/services": "latest",
45
45
  "@sveltejs/adapter-auto": "^7.0.1",
46
- "@sveltejs/kit": "^2.55.0",
47
- "@sveltejs/package": "^2.5.7",
48
- "@sveltejs/vite-plugin-svelte": "^7.0.0",
49
- "publint": "^0.3.18",
50
- "svelte": "^5.54.0",
51
- "svelte-check": "^4.4.5",
52
- "tailwind-merge": "^3.5.0",
46
+ "@sveltejs/kit": "^2.69.2",
47
+ "@sveltejs/package": "^2.5.8",
48
+ "@sveltejs/vite-plugin-svelte": "^7.2.0",
49
+ "publint": "^0.3.21",
50
+ "svelte": "^5.56.4",
51
+ "svelte-check": "^4.7.2",
52
+ "tailwind-merge": "^3.6.0",
53
53
  "tailwind-variants": "^3.2.2",
54
54
  "tw-animate-css": "^1.4.0",
55
- "typescript": "^5.9.3",
56
- "vite": "^8.0.1"
55
+ "typescript": "^6.0.3",
56
+ "vite": "^8.1.4"
57
57
  },
58
58
  "dependencies": {
59
59
  "@keenmate/svelte-treeview": "^4.8.0",
60
- "@milkdown/kit": "^7.21.2",
61
- "@milkdown/theme-nord": "^7.21.2",
62
- "@tailwindcss/vite": "^4.2.2",
63
- "@upstash/redis": "^1.37.0",
64
- "flowbite": "^4.0.1",
65
- "flowbite-svelte": "^1.31.0",
60
+ "@milkdown/kit": "^7.21.3",
61
+ "@milkdown/theme-nord": "^7.21.3",
62
+ "@tailwindcss/vite": "^4.3.2",
63
+ "@upstash/redis": "^1.38.0",
64
+ "flowbite": "^4.0.2",
65
+ "flowbite-svelte": "^1.33.1",
66
66
  "flowbite-svelte-icons": "^3.1.0",
67
67
  "mdsvex": "^0.12.7",
68
- "oauth4webapi": "^3.8.5",
69
- "tailwindcss": "^4.2.2"
68
+ "oauth4webapi": "^3.8.6",
69
+ "tailwindcss": "^4.3.2"
70
70
  },
71
71
  "type": "module",
72
72
  "main": "./dist/index.js",