spoko-design-system 0.2.72 → 0.2.73

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/.env.example CHANGED
@@ -1,2 +1,3 @@
1
- API_URL = 'https://host/api/';
2
- CACHE_DIR './.cache'
1
+ API_URL=https://host/api/
2
+ IMG_URL=https://domain.com
3
+ CACHE_DIR=./.cache
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spoko-design-system",
3
- "version": "0.2.72",
3
+ "version": "0.2.73",
4
4
  "private": false,
5
5
  "main": "./index.ts",
6
6
  "module": "./index.ts",
@@ -62,7 +62,7 @@
62
62
  "@iconify-json/ph": "^1.2.1",
63
63
  "@iconify-json/simple-icons": "^1.2.11",
64
64
  "@iconify-json/uil": "^1.2.1",
65
- "@iconify/json": "^2.2.270",
65
+ "@iconify/json": "^2.2.271",
66
66
  "@iconify/vue": "^4.1.2",
67
67
  "@playform/compress": "^0.1.6",
68
68
  "@playform/inline": "github:playform/inline",
@@ -1,7 +1,5 @@
1
1
  ---
2
2
  import { Image } from 'astro:assets'
3
- import getEnvVariable from "./../../utils/getEnvVariable";
4
- const API_URL = getEnvVariable('API_URL', 'https://default-api.com');
5
3
  interface ImageObject {
6
4
  src: string;
7
5
  alt?: string;
@@ -29,10 +27,10 @@ if (imageObject.srcset && imageObject.srcset.length) {
29
27
 
30
28
  ---
31
29
  <Image
32
- src={`${API_URL}${imageObject.src}`}
30
+ src={imageObject.src}
33
31
  alt={imageObject.alt}
34
- height={imageObject.height}
35
- width={imageObject.width}
32
+ height={Number(imageObject.height)}
33
+ width={Number(imageObject.width)}
36
34
  loading={imageObject.loading ? imageObject.loading : 'lazy'}
37
35
  itemprop="image"
38
36
  format="avif"