@functionalcms/svelte-components 3.5.2 → 3.5.5

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.
@@ -1,13 +1,20 @@
1
1
  <script lang="ts">
2
- export let background: string = '';
3
- export let css: string = '';
2
+ import type { Snippet } from 'svelte';
3
+ import { mergedClasses } from './CssHelper';
4
4
 
5
- $: bannerKlasses = ['banner', css].filter((c) => c).join(' ');
5
+ interface Props {
6
+ children: Snippet;
7
+ background?: string;
8
+ css?: string;
9
+ }
10
+ let { children, background = '', css = '' }: Props = $props();
11
+
12
+ const bannerKlasses = mergedClasses('banner', css);
6
13
  </script>
7
14
 
8
15
  <div class={bannerKlasses} style="--functional-banner-background: {background};">
9
- <slot />
10
- </div>
16
+ {@render children()}
17
+ </div>
11
18
 
12
19
  <style>
13
20
  div.banner {
@@ -1,15 +1,10 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  declare const __propDef: {
3
- props: {
4
- background?: string;
5
- css?: string;
6
- };
3
+ props: Record<string, never>;
7
4
  events: {
8
5
  [evt: string]: CustomEvent<any>;
9
6
  };
10
- slots: {
11
- default: {};
12
- };
7
+ slots: {};
13
8
  };
14
9
  export type BannerProps = typeof __propDef.props;
15
10
  export type BannerEvents = typeof __propDef.events;
@@ -7,3 +7,4 @@ export { userAuthenticationProvider } from './auth/userAuthenticationProvider.js
7
7
  export { getBlobService, getCommunicationService, getDataService, getTemplateService, getWebsiteService, getAIService } from './server-side/getServices.js';
8
8
  export { AiMessage } from '@functionalcms/services';
9
9
  export type { RedirectResponse } from './auth/RedirectResponse.js';
10
+ export { getMachineAccessToken } from './auth/getMachineAccessToken.js';
@@ -8,3 +8,4 @@ export { machineAuthenticationProvider } from './auth/machineAuthenticationProvi
8
8
  export { userAuthenticationProvider } from './auth/userAuthenticationProvider.js';
9
9
  export { getBlobService, getCommunicationService, getDataService, getTemplateService, getWebsiteService, getAIService } from './server-side/getServices.js';
10
10
  export { AiMessage } from '@functionalcms/services';
11
+ export { getMachineAccessToken } from './auth/getMachineAccessToken.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "3.5.2",
3
+ "version": "3.5.5",
4
4
  "watch": {
5
5
  "build": {
6
6
  "patterns": [