@functionalcms/svelte-components 5.5.0 → 5.5.2

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.
@@ -142,10 +142,9 @@
142
142
  id={field.id}
143
143
  name={field.id}
144
144
  required={field.required}
145
- readonly={field.readonly}
146
145
  disabled={field.disabled}
147
146
  class={field.class}
148
- items={field.options}
147
+ items={field.options.map(option => ({ name: option.label, value: option.value }))}
149
148
  bind:value={field.value}
150
149
  />
151
150
  {:else}
@@ -5,7 +5,7 @@ export { machineAuthenticationHandle } from './server-side/auth/machine_authenti
5
5
  export { userAuthenticationProvider } from './server-side/auth/userAuthenticationProvider.js';
6
6
  export { hookSequence } from './server-side/functionalSequence.js';
7
7
  export { sessionStorageHandler } from './server-side/handlers/sessionStorageHandler.js';
8
- export { getCommunicationService, getDataService, getTemplateService, getWebsiteService, getAuthService, getFileService, getUsersService } from './server-side/getServices.js';
8
+ export { getCommunicationService, getDataService, getTemplateService, getWebsiteService, getFileService, getUsersService } from './server-side/getServices.js';
9
9
  export type { RedirectResponse } from './server-side/auth/RedirectResponse.js';
10
10
  export { isHuman } from './components/form/AntiBot.js';
11
11
  export { paraglideHandler } from './server-side/handlers/paraglideHandler.js';
@@ -5,7 +5,7 @@ export { machineAuthenticationHandle } from './server-side/auth/machine_authenti
5
5
  export { userAuthenticationProvider } from './server-side/auth/userAuthenticationProvider.js';
6
6
  export { hookSequence } from './server-side/functionalSequence.js';
7
7
  export { sessionStorageHandler } from './server-side/handlers/sessionStorageHandler.js';
8
- export { getCommunicationService, getDataService, getTemplateService, getWebsiteService, getAuthService, getFileService, getUsersService } from './server-side/getServices.js';
8
+ export { getCommunicationService, getDataService, getTemplateService, getWebsiteService, getFileService, getUsersService } from './server-side/getServices.js';
9
9
  export { isHuman } from './components/form/AntiBot.js';
10
10
  export { paraglideHandler } from './server-side/handlers/paraglideHandler.js';
11
11
  export { redirectPipelineHandler } from './server-side/handlers/redirectPipelineHandler.js';
@@ -1,9 +1,8 @@
1
- import { CommunicationService, DataService, TemplateService, WebsitesService, AuthService, FilesService, UsersService } from "@functionalcms/services";
1
+ import { CommunicationService, DataService, TemplateService, WebsitesService, FilesService, UsersService } from "@functionalcms/services";
2
2
  import type { Locals } from "./types.js";
3
3
  export declare const getDataService: (locals: Locals, endpoint: string) => DataService;
4
4
  export declare const getCommunicationService: (locals: Locals, endpoint: string) => CommunicationService;
5
5
  export declare const getWebsiteService: (locals: Locals, endpoint: string) => WebsitesService;
6
6
  export declare const getTemplateService: (locals: Locals, endpoint: string) => TemplateService;
7
- export declare const getAuthService: (locals: Locals, endpoint: string) => AuthService;
8
7
  export declare const getFileService: (locals: Locals, endpoint: string) => FilesService;
9
8
  export declare const getUsersService: (locals: Locals, endpoint: string) => UsersService;
@@ -1,4 +1,4 @@
1
- import { CommunicationService, DataService, TemplateService, WebsitesService, AuthService, FilesService, UsersService, } from "@functionalcms/services";
1
+ import { CommunicationService, DataService, TemplateService, WebsitesService, FilesService, UsersService, } from "@functionalcms/services";
2
2
  const getAccessToken = (locals) => locals.token;
3
3
  export const getDataService = (locals, endpoint) => {
4
4
  const accessToken = getAccessToken(locals);
@@ -20,11 +20,6 @@ export const getTemplateService = (locals, endpoint) => {
20
20
  const service = new TemplateService(accessToken, endpoint);
21
21
  return service;
22
22
  };
23
- export const getAuthService = (locals, endpoint) => {
24
- const accessToken = getAccessToken(locals);
25
- const service = new AuthService(accessToken, endpoint);
26
- return service;
27
- };
28
23
  export const getFileService = (locals, endpoint) => {
29
24
  const accessToken = getAccessToken(locals);
30
25
  const service = new FilesService(accessToken, endpoint);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "5.5.0",
3
+ "version": "5.5.2",
4
4
  "license": "MIT",
5
5
  "watch": {
6
6
  "build": {