tsv2-library 1.0.61-alpha.34 → 1.0.61-alpha.36

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.
@@ -55387,6 +55387,9 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
55387
55387
  });
55388
55388
  const usePreview = computed(() => {
55389
55389
  var _a, _b;
55390
+ if (!thumbnailString.value) {
55391
+ return false;
55392
+ }
55390
55393
  return !errorLoadImage.value && (!!previewString.value || !((_a = imageThumbnail.value) == null ? void 0 : _a.toString().includes("data:image/svg+xml"))) && !((_b = imageThumbnail.value) == null ? void 0 : _b.toString().toLowerCase().includes("placeholder"));
55391
55394
  });
55392
55395
  const imageThumbnail = computedAsync(
@@ -55470,6 +55473,20 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
55470
55473
  return image2;
55471
55474
  };
55472
55475
  watch(() => props.galleries, resolveGallerySrcs, { immediate: true });
55476
+ watch(
55477
+ usePreview,
55478
+ (val) => {
55479
+ console.log("👽👽:", val, thumbnailString.value);
55480
+ },
55481
+ { immediate: true }
55482
+ );
55483
+ watch(
55484
+ imagePreview,
55485
+ (val) => {
55486
+ console.log("🤖🤖:", val);
55487
+ },
55488
+ { immediate: true }
55489
+ );
55473
55490
  return (_ctx, _cache) => {
55474
55491
  return openBlock(), createBlock(unref(script$h), mergeProps(_ctx.$props, {
55475
55492
  class: [