@gleich/ui 1.2.5 → 1.2.7

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/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # [ui](https://ui.mattglei.ch)
2
2
 
3
+ [![lint](https://github.com/gleich/ui/actions/workflows/lint.yml/badge.svg)](https://github.com/gleich/ui/actions/workflows/lint.yml)
4
+ [![build](https://github.com/gleich/ui/actions/workflows/build.yml/badge.svg)](https://github.com/gleich/ui/actions/workflows/build.yml)
5
+
3
6
  shared ui components used across my personal projects
4
7
 
5
8
  ## Install
@@ -4,6 +4,7 @@
4
4
  let {
5
5
  title,
6
6
  description,
7
+ siteName,
7
8
  opengraphImage = {
8
9
  url: 'https://mattglei.ch/opengraph.png',
9
10
  width: '1200',
@@ -14,6 +15,7 @@
14
15
  }: {
15
16
  title: string;
16
17
  description: string;
18
+ siteName: string;
17
19
  opengraphImage?: OpenGraphImage;
18
20
  keywords?: string[];
19
21
  iconRoot?: string;
@@ -73,9 +75,9 @@
73
75
 
74
76
  <!-- opengraph -->
75
77
  <meta property="og:title" content={title} />
76
- <meta property="og:description" content={title} />
78
+ <meta property="og:description" content={description} />
77
79
  <meta property="og:url" content={page.url.href} />
78
- <meta property="og:site_name" content="mattglei.ch" />
80
+ <meta property="og:site_name" content={siteName} />
79
81
  <meta property="og:locale" content="en-US" />
80
82
  <meta property="og:image" content={opengraphImage.url} />
81
83
  <meta property="og:image:width" content={opengraphImage.width} />
@@ -6,6 +6,7 @@ export interface OpenGraphImage {
6
6
  type $$ComponentProps = {
7
7
  title: string;
8
8
  description: string;
9
+ siteName: string;
9
10
  opengraphImage?: OpenGraphImage;
10
11
  keywords?: string[];
11
12
  iconRoot?: string;
package/dist/image.svelte CHANGED
@@ -33,7 +33,7 @@
33
33
  {alt}
34
34
  {height}
35
35
  {width}
36
- style={`${aspectRatio ? `aspect-ratio: ${aspectRatio};` : ''} ${placeholder ? `background-image: url('${placeholder}');` : ''}`}
36
+ style={`${aspectRatio ? `aspect-ratio: ${aspectRatio};` : ''} ${placeholder && placeholder != '' ? `background-image: url('${placeholder}');` : ''}`}
37
37
  />
38
38
 
39
39
  <style>
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@gleich/ui",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "license": "MIT",
5
+ "packageManager": "pnpm@10.11.0",
5
6
  "scripts": {
6
7
  "dev": "vite dev --open",
7
8
  "build": "vite build && npm run prepack",