zartui 3.1.73 → 3.1.74

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/zartui.cjs.js CHANGED
@@ -12312,7 +12312,6 @@ var stdin_default$R = vue.defineComponent({
12312
12312
  slots
12313
12313
  }) {
12314
12314
  const swipeRef = vue.ref();
12315
- const hasDownloadSupport = vue.ref(false);
12316
12315
  const state = vue.reactive({
12317
12316
  active: 0,
12318
12317
  rootWidth: 0,
@@ -12397,7 +12396,7 @@ var stdin_default$R = vue.defineComponent({
12397
12396
  });
12398
12397
  const renderIndex = () => {
12399
12398
  const image = props.images[state.active];
12400
- const showDownload = props.showDownload && hasDownloadSupport.value && !image.url.startsWith("data:");
12399
+ const showDownload = props.showDownload && !image.url.startsWith("data:");
12401
12400
  if (props.showIndex || showDownload) {
12402
12401
  if (props.showIndex && slots.index) {
12403
12402
  return vue.createVNode("div", {
@@ -12480,20 +12479,9 @@ var stdin_default$R = vue.defineComponent({
12480
12479
  useExpose({
12481
12480
  swipeTo
12482
12481
  });
12483
- vue.onMounted(() => __async$3(this, null, function* () {
12484
- var _a;
12482
+ vue.onMounted(() => {
12485
12483
  resize();
12486
- try {
12487
- const universalJsSdk = yield Promise.resolve().then(() => require("./index-bb5638a0.js"));
12488
- if (universalJsSdk && universalJsSdk.getJSI) {
12489
- const fileJsi = (_a = universalJsSdk.getJSI()) == null ? void 0 : _a.file;
12490
- hasDownloadSupport.value = !!(fileJsi && fileJsi.download);
12491
- }
12492
- } catch (e) {
12493
- console.warn("Failed to check download support:", e);
12494
- hasDownloadSupport.value = false;
12495
- }
12496
- }));
12484
+ });
12497
12485
  vue.watch([windowWidth, windowHeight], resize);
12498
12486
  vue.watch(() => props.startPosition, (value) => setActive(+value));
12499
12487
  vue.watch(() => props.show, (value) => {
@@ -23509,7 +23497,7 @@ const Lazyload = {
23509
23497
  });
23510
23498
  }
23511
23499
  };
23512
- const version = "3.1.73";
23500
+ const version = "3.1.74";
23513
23501
  function install(app) {
23514
23502
  const components = [
23515
23503
  ActionSheet,
package/lib/zartui.es.js CHANGED
@@ -12310,7 +12310,6 @@ var stdin_default$R = defineComponent({
12310
12310
  slots
12311
12311
  }) {
12312
12312
  const swipeRef = ref();
12313
- const hasDownloadSupport = ref(false);
12314
12313
  const state = reactive({
12315
12314
  active: 0,
12316
12315
  rootWidth: 0,
@@ -12395,7 +12394,7 @@ var stdin_default$R = defineComponent({
12395
12394
  });
12396
12395
  const renderIndex = () => {
12397
12396
  const image = props.images[state.active];
12398
- const showDownload = props.showDownload && hasDownloadSupport.value && !image.url.startsWith("data:");
12397
+ const showDownload = props.showDownload && !image.url.startsWith("data:");
12399
12398
  if (props.showIndex || showDownload) {
12400
12399
  if (props.showIndex && slots.index) {
12401
12400
  return createVNode("div", {
@@ -12478,20 +12477,9 @@ var stdin_default$R = defineComponent({
12478
12477
  useExpose({
12479
12478
  swipeTo
12480
12479
  });
12481
- onMounted(() => __async$3(this, null, function* () {
12482
- var _a;
12480
+ onMounted(() => {
12483
12481
  resize();
12484
- try {
12485
- const universalJsSdk = yield import("./index-096e2873.mjs");
12486
- if (universalJsSdk && universalJsSdk.getJSI) {
12487
- const fileJsi = (_a = universalJsSdk.getJSI()) == null ? void 0 : _a.file;
12488
- hasDownloadSupport.value = !!(fileJsi && fileJsi.download);
12489
- }
12490
- } catch (e) {
12491
- console.warn("Failed to check download support:", e);
12492
- hasDownloadSupport.value = false;
12493
- }
12494
- }));
12482
+ });
12495
12483
  watch([windowWidth, windowHeight], resize);
12496
12484
  watch(() => props.startPosition, (value) => setActive(+value));
12497
12485
  watch(() => props.show, (value) => {
@@ -23507,7 +23495,7 @@ const Lazyload = {
23507
23495
  });
23508
23496
  }
23509
23497
  };
23510
- const version = "3.1.73";
23498
+ const version = "3.1.74";
23511
23499
  function install(app) {
23512
23500
  const components = [
23513
23501
  ActionSheet,
package/lib/zartui.js CHANGED
@@ -12550,7 +12550,6 @@
12550
12550
  slots
12551
12551
  }) {
12552
12552
  const swipeRef = vue.ref();
12553
- const hasDownloadSupport = vue.ref(false);
12554
12553
  const state = vue.reactive({
12555
12554
  active: 0,
12556
12555
  rootWidth: 0,
@@ -12635,7 +12634,7 @@
12635
12634
  });
12636
12635
  const renderIndex = () => {
12637
12636
  const image2 = props.images[state.active];
12638
- const showDownload = props.showDownload && hasDownloadSupport.value && !image2.url.startsWith("data:");
12637
+ const showDownload = props.showDownload && !image2.url.startsWith("data:");
12639
12638
  if (props.showIndex || showDownload) {
12640
12639
  if (props.showIndex && slots.index) {
12641
12640
  return vue.createVNode("div", {
@@ -12718,20 +12717,9 @@
12718
12717
  useExpose({
12719
12718
  swipeTo
12720
12719
  });
12721
- vue.onMounted(() => __async$4(this, null, function* () {
12722
- var _a;
12720
+ vue.onMounted(() => {
12723
12721
  resize2();
12724
- try {
12725
- const universalJsSdk = yield Promise.resolve().then(() => index);
12726
- if (universalJsSdk && universalJsSdk.getJSI) {
12727
- const fileJsi = (_a = universalJsSdk.getJSI()) == null ? void 0 : _a.file;
12728
- hasDownloadSupport.value = !!(fileJsi && fileJsi.download);
12729
- }
12730
- } catch (e) {
12731
- console.warn("Failed to check download support:", e);
12732
- hasDownloadSupport.value = false;
12733
- }
12734
- }));
12722
+ });
12735
12723
  vue.watch([windowWidth, windowHeight], resize2);
12736
12724
  vue.watch(() => props.startPosition, (value) => setActive(+value));
12737
12725
  vue.watch(() => props.show, (value) => {
@@ -27569,7 +27557,7 @@
27569
27557
  });
27570
27558
  }
27571
27559
  };
27572
- const version = "3.1.73";
27560
+ const version = "3.1.74";
27573
27561
  function install(app) {
27574
27562
  const components = [
27575
27563
  ActionSheet,