@elmethis/qwik 0.0.25 → 0.0.26
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/lib/index.qwik.cjs +11 -1
- package/lib/index.qwik.mjs +11 -1
- package/package.json +4 -5
package/lib/index.qwik.cjs
CHANGED
|
@@ -2338,6 +2338,14 @@ const styles$f = {
|
|
|
2338
2338
|
link
|
|
2339
2339
|
};
|
|
2340
2340
|
const ElmBookmark = qwik.component$(({ url, image: image2, title: title2, description: description2, favicon }) => {
|
|
2341
|
+
const isError = qwik.useSignal(false);
|
|
2342
|
+
const handleImageOnError = qwik.$(() => {
|
|
2343
|
+
isError.value = true;
|
|
2344
|
+
});
|
|
2345
|
+
const hiddenStyle = {
|
|
2346
|
+
visibility: "hidden",
|
|
2347
|
+
width: "0"
|
|
2348
|
+
};
|
|
2341
2349
|
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
2342
2350
|
class: styles$f.bookmark,
|
|
2343
2351
|
children: /* @__PURE__ */ jsxRuntime.jsxs("a", {
|
|
@@ -2349,7 +2357,9 @@ const ElmBookmark = qwik.component$(({ url, image: image2, title: title2, descri
|
|
|
2349
2357
|
/* @__PURE__ */ jsxRuntime.jsx("img", {
|
|
2350
2358
|
class: styles$f.image,
|
|
2351
2359
|
src: image2,
|
|
2352
|
-
alt: "OGP Image"
|
|
2360
|
+
alt: "OGP Image",
|
|
2361
|
+
onError$: handleImageOnError,
|
|
2362
|
+
style: isError.value || image2 == null ? hiddenStyle : {}
|
|
2353
2363
|
}),
|
|
2354
2364
|
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
2355
2365
|
class: styles$f.content,
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -2336,6 +2336,14 @@ const styles$f = {
|
|
|
2336
2336
|
link
|
|
2337
2337
|
};
|
|
2338
2338
|
const ElmBookmark = component$(({ url, image: image2, title: title2, description: description2, favicon }) => {
|
|
2339
|
+
const isError = useSignal(false);
|
|
2340
|
+
const handleImageOnError = $(() => {
|
|
2341
|
+
isError.value = true;
|
|
2342
|
+
});
|
|
2343
|
+
const hiddenStyle = {
|
|
2344
|
+
visibility: "hidden",
|
|
2345
|
+
width: "0"
|
|
2346
|
+
};
|
|
2339
2347
|
return /* @__PURE__ */ jsx("div", {
|
|
2340
2348
|
class: styles$f.bookmark,
|
|
2341
2349
|
children: /* @__PURE__ */ jsxs("a", {
|
|
@@ -2347,7 +2355,9 @@ const ElmBookmark = component$(({ url, image: image2, title: title2, description
|
|
|
2347
2355
|
/* @__PURE__ */ jsx("img", {
|
|
2348
2356
|
class: styles$f.image,
|
|
2349
2357
|
src: image2,
|
|
2350
|
-
alt: "OGP Image"
|
|
2358
|
+
alt: "OGP Image",
|
|
2359
|
+
onError$: handleImageOnError,
|
|
2360
|
+
style: isError.value || image2 == null ? hiddenStyle : {}
|
|
2351
2361
|
}),
|
|
2352
2362
|
/* @__PURE__ */ jsxs("div", {
|
|
2353
2363
|
class: styles$f.content,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elmethis/qwik",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.26",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -38,10 +38,9 @@
|
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@builder.io/qwik": "1.19.0",
|
|
40
40
|
"@eslint/js": "latest",
|
|
41
|
-
"@storybook/addon-docs": "8",
|
|
42
|
-
"@storybook/addon-essentials": "8",
|
|
41
|
+
"@storybook/addon-docs": "8.6.17",
|
|
42
|
+
"@storybook/addon-essentials": "8.6.17",
|
|
43
43
|
"@types/lodash-es": "^4.17.12",
|
|
44
|
-
"@types/marked": "^6.0.0",
|
|
45
44
|
"@types/node": "20.19.0",
|
|
46
45
|
"eslint": "10.0.2",
|
|
47
46
|
"eslint-plugin-qwik": "1.19.1",
|
|
@@ -55,7 +54,7 @@
|
|
|
55
54
|
"typescript": "5.4.5",
|
|
56
55
|
"typescript-eslint": "8.56.1",
|
|
57
56
|
"undici": "*",
|
|
58
|
-
"vite": "
|
|
57
|
+
"vite": "^6.4.1",
|
|
59
58
|
"vite-tsconfig-paths": "^6.1.1"
|
|
60
59
|
},
|
|
61
60
|
"dependencies": {
|