@elmethis/core 1.0.0-alpha.177 → 1.0.0-alpha.179

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,4 +1,4 @@
1
- import { defineComponent, createElementBlock, openBlock, normalizeStyle, normalizeClass, createCommentVNode, createTextVNode, createVNode, toDisplayString, unref } from "vue";
1
+ import { defineComponent, ref, createElementBlock, openBlock, normalizeStyle, normalizeClass, createCommentVNode, createTextVNode, createVNode, toDisplayString, unref } from "vue";
2
2
  import { Icon } from "@iconify/vue";
3
3
  const _hoisted_1 = ["href", "target"];
4
4
  const _hoisted_2 = ["src"];
@@ -21,8 +21,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  props.onClick();
22
22
  }
23
23
  }
24
+ const faviconSrc = ref(props.favicon);
24
25
  const handleError = () => {
25
- src.value = `data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="gray" d="M17.9 17.39c-.26-.8-1.01-1.39-1.9-1.39h-1v-3a1 1 0 0 0-1-1H8v-2h2a1 1 0 0 0 1-1V7h2a2 2 0 0 0 2-2v-.41a7.984 7.984 0 0 1 2.9 12.8M11 19.93c-3.95-.49-7-3.85-7-7.93c0-.62.08-1.22.21-1.79L9 15v1a2 2 0 0 0 2 2m1-16A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2"/></svg>`;
26
+ faviconSrc.value = `data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="gray" d="M17.9 17.39c-.26-.8-1.01-1.39-1.9-1.39h-1v-3a1 1 0 0 0-1-1H8v-2h2a1 1 0 0 0 1-1V7h2a2 2 0 0 0 2-2v-.41a7.984 7.984 0 0 1 2.9 12.8M11 19.93c-3.95-.49-7-3.85-7-7.93c0-.62.08-1.22.21-1.79L9 15v1a2 2 0 0 0 2 2m1-16A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2"/></svg>`;
26
27
  };
27
28
  return (_ctx, _cache) => {
28
29
  return openBlock(), createElementBlock("a", {
@@ -33,9 +34,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
33
34
  rel: "noopener noreferrer",
34
35
  onClick: handleClick
35
36
  }, [
36
- _ctx.favicon ? (openBlock(), createElementBlock("img", {
37
+ faviconSrc.value ? (openBlock(), createElementBlock("img", {
37
38
  key: 0,
38
- src: _ctx.favicon,
39
+ src: faviconSrc.value,
39
40
  alt: "favicon",
40
41
  onError: handleError,
41
42
  class: normalizeClass(_ctx.$style.icon)
@@ -3,7 +3,7 @@
3
3
  try {
4
4
  if (typeof document != "undefined") {
5
5
  var elementStyle = document.createElement("style");
6
- elementStyle.appendChild(document.createTextNode(".v-enter-to[data-v-b0e06ffd],.v-leave-from[data-v-b0e06ffd]{opacity:1}.v-enter-active[data-v-b0e06ffd],.v-leave-active[data-v-b0e06ffd]{transition:opacity .3s}.v-enter-from[data-v-b0e06ffd],.v-leave-to[data-v-b0e06ffd]{opacity:0}"));
6
+ elementStyle.appendChild(document.createTextNode(".v-enter-to[data-v-34d85fea],.v-leave-from[data-v-34d85fea]{opacity:1}.v-enter-active[data-v-34d85fea],.v-leave-active[data-v-34d85fea]{transition:opacity .3s}.v-enter-from[data-v-34d85fea],.v-leave-to[data-v-34d85fea]{opacity:0}"));
7
7
  document.head.appendChild(elementStyle);
8
8
  }
9
9
  } catch (e) {
@@ -16,7 +16,7 @@ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
16
16
  const cssModules = {
17
17
  "$style": style0
18
18
  };
19
- const ElmImage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-b0e06ffd"]]);
19
+ const ElmImage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-34d85fea"]]);
20
20
  export {
21
21
  ElmImage as default
22
22
  };
@@ -3,23 +3,23 @@
3
3
  try {
4
4
  if (typeof document != "undefined") {
5
5
  var elementStyle = document.createElement("style");
6
- elementStyle.appendChild(document.createTextNode("._image_1brnh_1{display:block;margin-block:var(--margin-block);width:100%;height:var(--height);opacity:var(--opacity);transition:opacity .4s;cursor:var(--cursor)}._error_1brnh_11{display:flex;justify-content:center;align-items:center;gap:1rem;width:100%;height:100%;min-height:10rem;line-height:1.5rem;color:#c56565}._fallback_1brnh_23{margin-block:var(--margin-block);margin:0;padding:0;position:relative;width:100%;z-index:1;display:flex;justify-content:center;align-items:center;aspect-ratio:16/9}._modal_1brnh_36{z-index:1000;position:fixed;width:100%;height:100vh;top:0;left:0;background-color:#000000b3;display:flex;justify-content:center;align-items:center;cursor:zoom-out}._modal_1brnh_36 ._modal-image_1brnh_49{width:100vw;height:100vh;-o-object-fit:contain;object-fit:contain}"));
6
+ elementStyle.appendChild(document.createTextNode("._image_1f28v_1{display:block;margin-block:var(--margin-block);width:100%;height:var(--height);opacity:var(--opacity);transition:opacity .4s;cursor:var(--cursor)}._error_1f28v_11{display:flex;justify-content:center;align-items:center;gap:1rem;width:100%;height:100%;min-height:10rem;line-height:1.5rem;color:#c56565}._fallback_1f28v_23{margin-block:var(--margin-block);margin:0;padding:0;position:relative;width:100%;z-index:1;display:flex;justify-content:center;align-items:center;aspect-ratio:1200/630}._modal_1f28v_36{z-index:1000;position:fixed;width:100%;height:100vh;top:0;left:0;background-color:#000000b3;display:flex;justify-content:center;align-items:center;cursor:zoom-out}._modal_1f28v_36 ._modal-image_1f28v_49{width:100vw;height:100vh;-o-object-fit:contain;object-fit:contain}"));
7
7
  document.head.appendChild(elementStyle);
8
8
  }
9
9
  } catch (e) {
10
10
  console.error("vite-plugin-css-injected-by-js", e);
11
11
  }
12
12
  })();
13
- const image = "_image_1brnh_1";
14
- const error = "_error_1brnh_11";
15
- const fallback = "_fallback_1brnh_23";
16
- const modal = "_modal_1brnh_36";
13
+ const image = "_image_1f28v_1";
14
+ const error = "_error_1f28v_11";
15
+ const fallback = "_fallback_1f28v_23";
16
+ const modal = "_modal_1f28v_36";
17
17
  const style0 = {
18
18
  image,
19
19
  error,
20
20
  fallback,
21
21
  modal,
22
- "modal-image": "_modal-image_1brnh_49"
22
+ "modal-image": "_modal-image_1f28v_49"
23
23
  };
24
24
  export {
25
25
  style0 as default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elmethis/core",
3
- "version": "1.0.0-alpha.177",
3
+ "version": "1.0.0-alpha.179",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },