vistaview 0.10.15 → 0.10.17

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/dist/vue.d.ts CHANGED
@@ -1,38 +1,25 @@
1
1
  import { PropType } from 'vue';
2
- import { VistaParamsNeo, VistaInterface } from './vistaview';
2
+ import { VistaParamsNeo, VistaInterface, VistaOpt } from './vistaview';
3
3
  export declare function useVistaView(options: VistaParamsNeo): VistaInterface;
4
- export interface VistaViewProps extends VistaParamsNeo {
5
- id?: string;
6
- class?: string;
4
+ export interface VistaViewProps {
7
5
  selector?: string;
6
+ options?: VistaOpt;
8
7
  }
9
8
  export declare const VistaView: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
10
- id: StringConstructor;
11
- class: StringConstructor;
12
9
  selector: {
13
10
  type: StringConstructor;
14
11
  default: string;
15
12
  };
16
- elements: StringConstructor;
17
- extensions: PropType<VistaParamsNeo["extensions"]>;
18
- closeOnScroll: BooleanConstructor;
19
- history: BooleanConstructor;
13
+ options: PropType<VistaOpt>;
20
14
  }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
21
15
  [key: string]: any;
22
16
  }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
- id: StringConstructor;
24
- class: StringConstructor;
25
17
  selector: {
26
18
  type: StringConstructor;
27
19
  default: string;
28
20
  };
29
- elements: StringConstructor;
30
- extensions: PropType<VistaParamsNeo["extensions"]>;
31
- closeOnScroll: BooleanConstructor;
32
- history: BooleanConstructor;
21
+ options: PropType<VistaOpt>;
33
22
  }>> & Readonly<{}>, {
34
23
  selector: string;
35
- closeOnScroll: boolean;
36
- history: boolean;
37
24
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
38
25
  //# sourceMappingURL=vue.d.ts.map
package/dist/vue.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"vue.d.ts","sourceRoot":"","sources":["../src/vue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmD,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAC;AAErF,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElE,wBAAgB,YAAY,CAAC,OAAO,EAAE,cAAc,GAAG,cAAc,CAwBpE;AAED,MAAM,WAAW,cAAe,SAAQ,cAAc;IACpD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,SAAS;;;;;;;;gBAUG,QAAQ,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;;;;;;;;;;;;;gBAAtC,QAAQ,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;;;;;;;4EA0C7D,CAAC"}
1
+ {"version":3,"file":"vue.d.ts","sourceRoot":"","sources":["../src/vue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmD,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAC;AAErF,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5E,wBAAgB,YAAY,CAAC,OAAO,EAAE,cAAc,GAAG,cAAc,CAwBpE;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB;AAED,eAAO,MAAM,SAAS;;;;;aAQC,QAAQ,CAAC,QAAQ,CAAC;;;;;;;;aAAlB,QAAQ,CAAC,QAAQ,CAAC;;;4EAsCvC,CAAC"}
package/dist/vue.js CHANGED
@@ -1,13 +1,13 @@
1
- import { defineComponent as g, ref as s, onMounted as n, onUnmounted as v, h as p } from "vue";
2
- import { vistaView as f } from "./vistaview.js";
3
- function V(r) {
1
+ import { defineComponent as i, ref as v, onMounted as f, onUnmounted as p, h as w } from "vue";
2
+ import { vistaView as g } from "./vistaview.js";
3
+ function n(t) {
4
4
  let e = null;
5
- return n(() => {
6
- e = f(r);
7
- }), v(() => {
5
+ return f(() => {
6
+ e = g(t);
7
+ }), p(() => {
8
8
  e == null || e.destroy(), e = null;
9
9
  }), {
10
- open: (l) => e == null ? void 0 : e.open(l),
10
+ open: (o) => e == null ? void 0 : e.open(o),
11
11
  close: () => (e == null ? void 0 : e.close()) ?? Promise.resolve(),
12
12
  reset: () => e == null ? void 0 : e.reset(),
13
13
  next: () => e == null ? void 0 : e.next(),
@@ -15,55 +15,49 @@ function V(r) {
15
15
  zoomIn: () => e == null ? void 0 : e.zoomIn(),
16
16
  zoomOut: () => e == null ? void 0 : e.zoomOut(),
17
17
  getCurrentIndex: () => (e == null ? void 0 : e.getCurrentIndex()) ?? -1,
18
- view: (l) => e == null ? void 0 : e.view(l),
18
+ view: (o) => e == null ? void 0 : e.view(o),
19
19
  destroy: () => e == null ? void 0 : e.destroy()
20
20
  };
21
21
  }
22
- const x = g({
22
+ const x = i({
23
23
  name: "VistaView",
24
+ inheritAttrs: !1,
24
25
  props: {
25
- id: String,
26
- class: String,
27
26
  selector: {
28
27
  type: String,
29
28
  default: "> a"
30
29
  },
31
- elements: String,
32
- extensions: Array,
33
- closeOnScroll: Boolean,
34
- history: Boolean
30
+ options: Object
35
31
  },
36
- setup(r, { slots: e, expose: l }) {
37
- const u = s(null), t = s(null), d = r.id || `vvw-gallery-${Math.random().toString(36).substr(2, 9)}`;
38
- return n(() => {
39
- if (!u.value) return;
40
- const { id: o, class: y, selector: i, ...m } = r;
41
- t.value = f({
42
- ...m,
43
- elements: m.elements || `#${d} ${i}`
44
- });
45
- }), v(() => {
46
- var o;
47
- (o = t.value) == null || o.destroy(), t.value = null;
48
- }), l({
32
+ setup(t, { slots: e, expose: o, attrs: l }) {
33
+ const d = v(null), u = v(null), m = l.id || `vvw-gallery-${Math.random().toString(36).substr(2, 9)}`;
34
+ return f(() => {
35
+ d.value && (u.value = g({
36
+ ...t.options,
37
+ elements: `#${m} ${t.selector}`
38
+ }));
39
+ }), p(() => {
40
+ var r;
41
+ (r = u.value) == null || r.destroy(), u.value = null;
42
+ }), o({
49
43
  get instance() {
50
- return t.value;
44
+ return u.value;
51
45
  }
52
46
  }), () => {
53
- var o;
54
- return p(
47
+ var r;
48
+ return w(
55
49
  "div",
56
50
  {
57
- ref: u,
58
- id: d,
59
- class: r.class
51
+ ref: d,
52
+ ...l,
53
+ id: m
60
54
  },
61
- (o = e.default) == null ? void 0 : o.call(e)
55
+ (r = e.default) == null ? void 0 : r.call(e)
62
56
  );
63
57
  };
64
58
  }
65
59
  });
66
60
  export {
67
61
  x as VistaView,
68
- V as useVistaView
62
+ n as useVistaView
69
63
  };
@@ -0,0 +1,448 @@
1
+ import { untrack as I, createRenderEffect as g, sharedConfig as h } from "solid-js";
2
+ const L = [
3
+ "allowfullscreen",
4
+ "async",
5
+ "alpha",
6
+ "autofocus",
7
+ "autoplay",
8
+ "checked",
9
+ "controls",
10
+ "default",
11
+ "disabled",
12
+ "formnovalidate",
13
+ "hidden",
14
+ "indeterminate",
15
+ "inert",
16
+ "ismap",
17
+ "loop",
18
+ "multiple",
19
+ "muted",
20
+ "nomodule",
21
+ "novalidate",
22
+ "open",
23
+ "playsinline",
24
+ "readonly",
25
+ "required",
26
+ "reversed",
27
+ "seamless",
28
+ "selected",
29
+ "adauctionheaders",
30
+ "browsingtopics",
31
+ "credentialless",
32
+ "defaultchecked",
33
+ "defaultmuted",
34
+ "defaultselected",
35
+ "defer",
36
+ "disablepictureinpicture",
37
+ "disableremoteplayback",
38
+ "preservespitch",
39
+ "shadowrootclonable",
40
+ "shadowrootcustomelementregistry",
41
+ "shadowrootdelegatesfocus",
42
+ "shadowrootserializable",
43
+ "sharedstoragewritable"
44
+ ], O = /* @__PURE__ */ new Set([
45
+ "className",
46
+ "value",
47
+ "readOnly",
48
+ "noValidate",
49
+ "formNoValidate",
50
+ "isMap",
51
+ "noModule",
52
+ "playsInline",
53
+ "adAuctionHeaders",
54
+ "allowFullscreen",
55
+ "browsingTopics",
56
+ "defaultChecked",
57
+ "defaultMuted",
58
+ "defaultSelected",
59
+ "disablePictureInPicture",
60
+ "disableRemotePlayback",
61
+ "preservesPitch",
62
+ "shadowRootClonable",
63
+ "shadowRootCustomElementRegistry",
64
+ "shadowRootDelegatesFocus",
65
+ "shadowRootSerializable",
66
+ "sharedStorageWritable",
67
+ ...L
68
+ ]), S = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), M = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
69
+ className: "class",
70
+ htmlFor: "for"
71
+ }), k = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
72
+ class: "className",
73
+ novalidate: {
74
+ $: "noValidate",
75
+ FORM: 1
76
+ },
77
+ formnovalidate: {
78
+ $: "formNoValidate",
79
+ BUTTON: 1,
80
+ INPUT: 1
81
+ },
82
+ ismap: {
83
+ $: "isMap",
84
+ IMG: 1
85
+ },
86
+ nomodule: {
87
+ $: "noModule",
88
+ SCRIPT: 1
89
+ },
90
+ playsinline: {
91
+ $: "playsInline",
92
+ VIDEO: 1
93
+ },
94
+ readonly: {
95
+ $: "readOnly",
96
+ INPUT: 1,
97
+ TEXTAREA: 1
98
+ },
99
+ adauctionheaders: {
100
+ $: "adAuctionHeaders",
101
+ IFRAME: 1
102
+ },
103
+ allowfullscreen: {
104
+ $: "allowFullscreen",
105
+ IFRAME: 1
106
+ },
107
+ browsingtopics: {
108
+ $: "browsingTopics",
109
+ IMG: 1
110
+ },
111
+ defaultchecked: {
112
+ $: "defaultChecked",
113
+ INPUT: 1
114
+ },
115
+ defaultmuted: {
116
+ $: "defaultMuted",
117
+ AUDIO: 1,
118
+ VIDEO: 1
119
+ },
120
+ defaultselected: {
121
+ $: "defaultSelected",
122
+ OPTION: 1
123
+ },
124
+ disablepictureinpicture: {
125
+ $: "disablePictureInPicture",
126
+ VIDEO: 1
127
+ },
128
+ disableremoteplayback: {
129
+ $: "disableRemotePlayback",
130
+ AUDIO: 1,
131
+ VIDEO: 1
132
+ },
133
+ preservespitch: {
134
+ $: "preservesPitch",
135
+ AUDIO: 1,
136
+ VIDEO: 1
137
+ },
138
+ shadowrootclonable: {
139
+ $: "shadowRootClonable",
140
+ TEMPLATE: 1
141
+ },
142
+ shadowrootdelegatesfocus: {
143
+ $: "shadowRootDelegatesFocus",
144
+ TEMPLATE: 1
145
+ },
146
+ shadowrootserializable: {
147
+ $: "shadowRootSerializable",
148
+ TEMPLATE: 1
149
+ },
150
+ sharedstoragewritable: {
151
+ $: "sharedStorageWritable",
152
+ IFRAME: 1,
153
+ IMG: 1
154
+ }
155
+ });
156
+ function x(i, e) {
157
+ const t = k[i];
158
+ return typeof t == "object" ? t[e] ? t.$ : void 0 : t;
159
+ }
160
+ const R = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]);
161
+ function D(i, e, t) {
162
+ let l = t.length, o = e.length, n = l, f = 0, s = 0, c = e[o - 1].nextSibling, r = null;
163
+ for (; f < o || s < n; ) {
164
+ if (e[f] === t[s]) {
165
+ f++, s++;
166
+ continue;
167
+ }
168
+ for (; e[o - 1] === t[n - 1]; )
169
+ o--, n--;
170
+ if (o === f) {
171
+ const a = n < l ? s ? t[s - 1].nextSibling : t[n - s] : c;
172
+ for (; s < n; ) i.insertBefore(t[s++], a);
173
+ } else if (n === s)
174
+ for (; f < o; )
175
+ (!r || !r.has(e[f])) && e[f].remove(), f++;
176
+ else if (e[f] === t[n - 1] && t[s] === e[o - 1]) {
177
+ const a = e[--o].nextSibling;
178
+ i.insertBefore(t[s++], e[f++].nextSibling), i.insertBefore(t[--n], a), e[o] = t[n];
179
+ } else {
180
+ if (!r) {
181
+ r = /* @__PURE__ */ new Map();
182
+ let u = s;
183
+ for (; u < n; ) r.set(t[u], u++);
184
+ }
185
+ const a = r.get(e[f]);
186
+ if (a != null)
187
+ if (s < a && a < n) {
188
+ let u = f, d = 1, y;
189
+ for (; ++u < o && u < n && !((y = r.get(e[u])) == null || y !== a + d); )
190
+ d++;
191
+ if (d > a - s) {
192
+ const A = e[f];
193
+ for (; s < a; ) i.insertBefore(t[s++], A);
194
+ } else i.replaceChild(t[s++], e[f++]);
195
+ } else f++;
196
+ else e[f++].remove();
197
+ }
198
+ }
199
+ }
200
+ const T = "_$DX_DELEGATE";
201
+ function X(i, e, t, l) {
202
+ let o;
203
+ const n = () => {
204
+ const s = document.createElement("template");
205
+ return s.innerHTML = i, s.content.firstChild;
206
+ }, f = () => (o || (o = n())).cloneNode(!0);
207
+ return f.cloneNode = f, f;
208
+ }
209
+ function V(i, e = window.document) {
210
+ const t = e[T] || (e[T] = /* @__PURE__ */ new Set());
211
+ for (let l = 0, o = i.length; l < o; l++) {
212
+ const n = i[l];
213
+ t.has(n) || (t.add(n), e.addEventListener(n, q));
214
+ }
215
+ }
216
+ function $(i, e, t) {
217
+ b(i) || (t == null ? i.removeAttribute(e) : i.setAttribute(e, t));
218
+ }
219
+ function j(i, e, t) {
220
+ b(i) || (t ? i.setAttribute(e, "") : i.removeAttribute(e));
221
+ }
222
+ function B(i, e) {
223
+ b(i) || (e == null ? i.removeAttribute("class") : i.className = e);
224
+ }
225
+ function F(i, e, t, l) {
226
+ if (l)
227
+ Array.isArray(t) ? (i[`$$${e}`] = t[0], i[`$$${e}Data`] = t[1]) : i[`$$${e}`] = t;
228
+ else if (Array.isArray(t)) {
229
+ const o = t[0];
230
+ i.addEventListener(e, t[0] = (n) => o.call(i, t[1], n));
231
+ } else i.addEventListener(e, t, typeof t != "function" && t);
232
+ }
233
+ function U(i, e, t = {}) {
234
+ const l = Object.keys(e || {}), o = Object.keys(t);
235
+ let n, f;
236
+ for (n = 0, f = o.length; n < f; n++) {
237
+ const s = o[n];
238
+ !s || s === "undefined" || e[s] || (C(i, s, !1), delete t[s]);
239
+ }
240
+ for (n = 0, f = l.length; n < f; n++) {
241
+ const s = l[n], c = !!e[s];
242
+ !s || s === "undefined" || t[s] === c || !c || (C(i, s, !0), t[s] = c);
243
+ }
244
+ return t;
245
+ }
246
+ function _(i, e, t) {
247
+ if (!e) return t ? $(i, "style") : e;
248
+ const l = i.style;
249
+ if (typeof e == "string") return l.cssText = e;
250
+ typeof t == "string" && (l.cssText = t = void 0), t || (t = {}), e || (e = {});
251
+ let o, n;
252
+ for (n in t)
253
+ e[n] == null && l.removeProperty(n), delete t[n];
254
+ for (n in e)
255
+ o = e[n], o !== t[n] && (l.setProperty(n, o), t[n] = o);
256
+ return t;
257
+ }
258
+ function Y(i, e = {}, t, l) {
259
+ const o = {};
260
+ return g(() => typeof e.ref == "function" && H(e.ref, i)), g(() => G(i, e, t, !0, o, !0)), o;
261
+ }
262
+ function H(i, e, t) {
263
+ return I(() => i(e, t));
264
+ }
265
+ function z(i, e, t, l) {
266
+ if (typeof e != "function") return w(i, e, l, t);
267
+ g((o) => w(i, e(), o, t), l);
268
+ }
269
+ function G(i, e, t, l, o = {}, n = !1) {
270
+ e || (e = {});
271
+ for (const f in o)
272
+ if (!(f in e)) {
273
+ if (f === "children") continue;
274
+ o[f] = P(i, f, null, o[f], t, n, e);
275
+ }
276
+ for (const f in e) {
277
+ if (f === "children")
278
+ continue;
279
+ const s = e[f];
280
+ o[f] = P(i, f, s, o[f], t, n, e);
281
+ }
282
+ }
283
+ function b(i) {
284
+ return !!h.context && !h.done && (!i || i.isConnected);
285
+ }
286
+ function K(i) {
287
+ return i.toLowerCase().replace(/-([a-z])/g, (e, t) => t.toUpperCase());
288
+ }
289
+ function C(i, e, t) {
290
+ const l = e.trim().split(/\s+/);
291
+ for (let o = 0, n = l.length; o < n; o++) i.classList.toggle(l[o], t);
292
+ }
293
+ function P(i, e, t, l, o, n, f) {
294
+ let s, c, r, a, u;
295
+ if (e === "style") return _(i, t, l);
296
+ if (e === "classList") return U(i, t, l);
297
+ if (t === l) return l;
298
+ if (e === "ref")
299
+ n || t(i);
300
+ else if (e.slice(0, 3) === "on:") {
301
+ const d = e.slice(3);
302
+ l && i.removeEventListener(d, l, typeof l != "function" && l), t && i.addEventListener(d, t, typeof t != "function" && t);
303
+ } else if (e.slice(0, 10) === "oncapture:") {
304
+ const d = e.slice(10);
305
+ l && i.removeEventListener(d, l, !0), t && i.addEventListener(d, t, !0);
306
+ } else if (e.slice(0, 2) === "on") {
307
+ const d = e.slice(2).toLowerCase(), y = R.has(d);
308
+ if (!y && l) {
309
+ const A = Array.isArray(l) ? l[0] : l;
310
+ i.removeEventListener(d, A);
311
+ }
312
+ (y || t) && (F(i, d, t, y), y && V([d]));
313
+ } else if (e.slice(0, 5) === "attr:")
314
+ $(i, e.slice(5), t);
315
+ else if (e.slice(0, 5) === "bool:")
316
+ j(i, e.slice(5), t);
317
+ else if ((u = e.slice(0, 5) === "prop:") || (r = S.has(e)) || (a = x(e, i.tagName)) || (c = O.has(e)) || (s = i.nodeName.includes("-") || "is" in f)) {
318
+ if (u)
319
+ e = e.slice(5), c = !0;
320
+ else if (b(i)) return t;
321
+ e === "class" || e === "className" ? B(i, t) : s && !c && !r ? i[K(e)] = t : i[a || e] = t;
322
+ } else
323
+ $(i, M[e] || e, t);
324
+ return t;
325
+ }
326
+ function q(i) {
327
+ if (h.registry && h.events && h.events.find(([c, r]) => r === i))
328
+ return;
329
+ let e = i.target;
330
+ const t = `$$${i.type}`, l = i.target, o = i.currentTarget, n = (c) => Object.defineProperty(i, "target", {
331
+ configurable: !0,
332
+ value: c
333
+ }), f = () => {
334
+ const c = e[t];
335
+ if (c && !e.disabled) {
336
+ const r = e[`${t}Data`];
337
+ if (r !== void 0 ? c.call(e, r, i) : c.call(e, i), i.cancelBubble) return;
338
+ }
339
+ return e.host && typeof e.host != "string" && !e.host._$host && e.contains(i.target) && n(e.host), !0;
340
+ }, s = () => {
341
+ for (; f() && (e = e._$host || e.parentNode || e.host); ) ;
342
+ };
343
+ if (Object.defineProperty(i, "currentTarget", {
344
+ configurable: !0,
345
+ get() {
346
+ return e || document;
347
+ }
348
+ }), h.registry && !h.done && (h.done = _$HY.done = !0), i.composedPath) {
349
+ const c = i.composedPath();
350
+ n(c[0]);
351
+ for (let r = 0; r < c.length - 2 && (e = c[r], !!f()); r++) {
352
+ if (e._$host) {
353
+ e = e._$host, s();
354
+ break;
355
+ }
356
+ if (e.parentNode === o)
357
+ break;
358
+ }
359
+ } else s();
360
+ n(l);
361
+ }
362
+ function w(i, e, t, l, o) {
363
+ const n = b(i);
364
+ if (n) {
365
+ !t && (t = [...i.childNodes]);
366
+ let s = [];
367
+ for (let c = 0; c < t.length; c++) {
368
+ const r = t[c];
369
+ r.nodeType === 8 && r.data.slice(0, 2) === "!$" ? r.remove() : s.push(r);
370
+ }
371
+ t = s;
372
+ }
373
+ for (; typeof t == "function"; ) t = t();
374
+ if (e === t) return t;
375
+ const f = typeof e;
376
+ if (i = i, f === "string" || f === "number") {
377
+ if (n || f === "number" && (e = e.toString(), e === t))
378
+ return t;
379
+ t !== "" && typeof t == "string" ? t = i.firstChild.data = e : t = i.textContent = e;
380
+ } else if (e == null || f === "boolean") {
381
+ if (n) return t;
382
+ t = m(i, t, l);
383
+ } else {
384
+ if (f === "function")
385
+ return g(() => {
386
+ let s = e();
387
+ for (; typeof s == "function"; ) s = s();
388
+ t = w(i, s, t, l);
389
+ }), () => t;
390
+ if (Array.isArray(e)) {
391
+ const s = [], c = t && Array.isArray(t);
392
+ if (E(s, e, t, o))
393
+ return g(() => t = w(i, s, t, l, !0)), () => t;
394
+ if (n)
395
+ return s.length ? t = [...i.childNodes] : t;
396
+ s.length === 0 ? t = m(i, t, l) : c ? t.length === 0 ? N(i, s, l) : D(i, t, s) : (t && m(i), N(i, s)), t = s;
397
+ } else if (e.nodeType) {
398
+ if (n && e.parentNode) return t = e;
399
+ Array.isArray(t) ? m(i, t, null, e) : t == null || t === "" || !i.firstChild ? i.appendChild(e) : i.replaceChild(e, i.firstChild), t = e;
400
+ }
401
+ }
402
+ return t;
403
+ }
404
+ function E(i, e, t, l) {
405
+ let o = !1;
406
+ for (let n = 0, f = e.length; n < f; n++) {
407
+ let s = e[n], c = t && t[i.length], r;
408
+ if (!(s == null || s === !0 || s === !1)) if ((r = typeof s) == "object" && s.nodeType)
409
+ i.push(s);
410
+ else if (Array.isArray(s))
411
+ o = E(i, s, c) || o;
412
+ else if (r === "function")
413
+ if (l) {
414
+ for (; typeof s == "function"; ) s = s();
415
+ o = E(i, Array.isArray(s) ? s : [s], Array.isArray(c) ? c : [c]) || o;
416
+ } else
417
+ i.push(s), o = !0;
418
+ else {
419
+ const a = String(s);
420
+ c && c.nodeType === 3 && c.data === a ? i.push(c) : i.push(document.createTextNode(a));
421
+ }
422
+ }
423
+ return o;
424
+ }
425
+ function N(i, e, t = null) {
426
+ for (let l = 0, o = e.length; l < o; l++) i.insertBefore(e[l], t);
427
+ }
428
+ function m(i, e, t, l) {
429
+ if (t === void 0) return i.textContent = "";
430
+ const o = l || document.createTextNode("");
431
+ if (e.length) {
432
+ let n = !1;
433
+ for (let f = e.length - 1; f >= 0; f--) {
434
+ const s = e[f];
435
+ if (o !== s) {
436
+ const c = s.parentNode === i;
437
+ !n && !f ? c ? i.replaceChild(o, s) : i.insertBefore(o, t) : c && s.remove();
438
+ } else n = !0;
439
+ }
440
+ } else i.insertBefore(o, t);
441
+ return [o];
442
+ }
443
+ export {
444
+ z as i,
445
+ Y as s,
446
+ X as t,
447
+ H as u
448
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vistaview",
3
- "version": "0.10.15",
3
+ "version": "0.10.17",
4
4
  "description": "A lightweight, zero-dependency image lightbox library with smooth animations and touch support",
5
5
  "keywords": [
6
6
  "image",
@@ -83,6 +83,7 @@
83
83
  "*.{js,ts,css,json,md}": "prettier --write"
84
84
  },
85
85
  "devDependencies": {
86
+ "@sveltejs/vite-plugin-svelte": "^6.2.1",
86
87
  "@types/react": "^19.2.7",
87
88
  "@types/trusted-types": "^2.0.7",
88
89
  "husky": "^9.1.7",
@@ -94,6 +95,7 @@
94
95
  "typescript": "~5.9.3",
95
96
  "vite": "^6.4.1",
96
97
  "vite-plugin-dts": "^4.5.4",
98
+ "vite-plugin-solid": "^2.11.10",
97
99
  "vue": "^3.5.25"
98
100
  },
99
101
  "repository": {