@gleich/ui 1.2.7 → 1.3.0

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,10 +1,10 @@
1
1
  <script lang="ts">
2
2
  import { page } from '$app/state';
3
+ import { siteName } from './sitename.js';
3
4
 
4
5
  let {
5
6
  title,
6
7
  description,
7
- siteName,
8
8
  opengraphImage = {
9
9
  url: 'https://mattglei.ch/opengraph.png',
10
10
  width: '1200',
@@ -15,7 +15,6 @@
15
15
  }: {
16
16
  title: string;
17
17
  description: string;
18
- siteName: string;
19
18
  opengraphImage?: OpenGraphImage;
20
19
  keywords?: string[];
21
20
  iconRoot?: string;
@@ -77,7 +76,7 @@
77
76
  <meta property="og:title" content={title} />
78
77
  <meta property="og:description" content={description} />
79
78
  <meta property="og:url" content={page.url.href} />
80
- <meta property="og:site_name" content={siteName} />
79
+ <meta property="og:site_name" content={$siteName} />
81
80
  <meta property="og:locale" content="en-US" />
82
81
  <meta property="og:image" content={opengraphImage.url} />
83
82
  <meta property="og:image:width" content={opengraphImage.width} />
@@ -6,7 +6,6 @@ export interface OpenGraphImage {
6
6
  type $$ComponentProps = {
7
7
  title: string;
8
8
  description: string;
9
- siteName: string;
10
9
  opengraphImage?: OpenGraphImage;
11
10
  keywords?: string[];
12
11
  iconRoot?: string;
package/dist/index.d.ts CHANGED
@@ -7,4 +7,5 @@ import Layout from './layout.svelte';
7
7
  import Logo from './logo.svelte';
8
8
  import NavLogo from './nav-logo.svelte';
9
9
  import Scrolling from './scrolling.svelte';
10
- export { Card, Copyright, DynamicHead, Error, Image, Layout, Logo, NavLogo, Scrolling };
10
+ import { siteName } from './sitename.js';
11
+ export { siteName, Card, Copyright, DynamicHead, Error, Image, Layout, Logo, NavLogo, Scrolling };
package/dist/index.js CHANGED
@@ -7,4 +7,5 @@ import Layout from './layout.svelte';
7
7
  import Logo from './logo.svelte';
8
8
  import NavLogo from './nav-logo.svelte';
9
9
  import Scrolling from './scrolling.svelte';
10
- export { Card, Copyright, DynamicHead, Error, Image, Layout, Logo, NavLogo, Scrolling };
10
+ import { siteName } from './sitename.js';
11
+ export { siteName, Card, Copyright, DynamicHead, Error, Image, Layout, Logo, NavLogo, Scrolling };
@@ -2,11 +2,15 @@
2
2
  import type { Snippet } from 'svelte';
3
3
  import Copyright from './copyright.svelte';
4
4
 
5
- const { children, repo }: { children: Snippet; repo: string } = $props();
5
+ const {
6
+ children,
7
+ fadeIn = true,
8
+ repo
9
+ }: { children: Snippet; fadeIn: boolean; repo: string } = $props();
6
10
  </script>
7
11
 
8
12
  <div class="container">
9
- <div class="main">
13
+ <div class="main" style={fadeIn ? '' : 'animation: none; opacity: 1;'}>
10
14
  <div class="page-content">
11
15
  {@render children()}
12
16
  </div>
@@ -1,6 +1,7 @@
1
1
  import type { Snippet } from 'svelte';
2
2
  type $$ComponentProps = {
3
3
  children: Snippet;
4
+ fadeIn: boolean;
4
5
  repo: string;
5
6
  };
6
7
  declare const Layout: import("svelte").Component<$$ComponentProps, {}, "">;
@@ -0,0 +1 @@
1
+ export declare const siteName: import("svelte/store").Writable<string>;
@@ -0,0 +1,2 @@
1
+ import { writable } from 'svelte/store';
2
+ export const siteName = writable('mattglei.ch');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gleich/ui",
3
- "version": "1.2.7",
3
+ "version": "1.3.0",
4
4
  "license": "MIT",
5
5
  "packageManager": "pnpm@10.11.0",
6
6
  "scripts": {