vistaview 0.10.10 → 0.10.11

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/README.md CHANGED
@@ -337,8 +337,8 @@ VistaView provides official bindings for popular frameworks:
337
337
 
338
338
  - **React** — `useVistaView` hook and `<VistaView>` component
339
339
  - **Vue 3** — `useVistaView` composable and `<VistaView>` component
340
- - **Svelte** — `useVistaView` hook
341
- - **Solid** — `useVistaView` hook and `<VistaView>` component
340
+ - **Svelte** — `useVistaView` hook and `createVistaView` action
341
+ - **Solid** — `useVistaView` hook and `createVistaView` directive
342
342
  - **Angular** — Manual setup example
343
343
  - **Vanilla JS** — Works out of the box
344
344
 
@@ -1 +1 @@
1
- {"version":3,"file":"solid.d.ts","sourceRoot":"","sources":["../src/solid.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElE,wBAAgB,YAAY,CAAC,OAAO,EAAE,cAAc,GAAG,cAAc,CAmBpE;AAED,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACtD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,CAAC,QAAQ,EAAE,cAAc,KAAK,IAAI,CAAC;CAC1C;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,gBAAgB,QAyB9E"}
1
+ {"version":3,"file":"solid.d.ts","sourceRoot":"","sources":["../src/solid.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElE,wBAAgB,YAAY,CAAC,OAAO,EAAE,cAAc,GAAG,cAAc,CAmBpE;AAED,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACtD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,CAAC,QAAQ,EAAE,cAAc,KAAK,IAAI,CAAC;CAC1C;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,gBAAgB,QAuB9E"}
package/dist/solid.js CHANGED
@@ -1,11 +1,11 @@
1
- import { onCleanup as d, onMount as p } from "solid-js";
2
- import { vistaView as m } from "./vistaview.js";
3
- function y(e) {
4
- const o = m(e);
5
- return d(() => {
1
+ import { onCleanup as l, onMount as p } from "solid-js";
2
+ import { vistaView as v } from "./vistaview.js";
3
+ function y(r) {
4
+ const o = v(r);
5
+ return l(() => {
6
6
  o == null || o.destroy();
7
7
  }), {
8
- open: (r = 0) => o == null ? void 0 : o.open(r),
8
+ open: (e = 0) => o == null ? void 0 : o.open(e),
9
9
  close: () => (o == null ? void 0 : o.close()) ?? Promise.resolve(),
10
10
  reset: () => o == null ? void 0 : o.reset(),
11
11
  next: () => o == null ? void 0 : o.next(),
@@ -13,20 +13,20 @@ function y(e) {
13
13
  zoomIn: () => o == null ? void 0 : o.zoomIn(),
14
14
  zoomOut: () => o == null ? void 0 : o.zoomOut(),
15
15
  getCurrentIndex: () => (o == null ? void 0 : o.getCurrentIndex()) ?? -1,
16
- view: (r) => o == null ? void 0 : o.view(r),
16
+ view: (e) => o == null ? void 0 : o.view(e),
17
17
  destroy: () => o == null ? void 0 : o.destroy()
18
18
  };
19
19
  }
20
- function g(e, o) {
21
- let r = null;
22
- const { selector: v = "> a", ref: l, ...t } = o, u = o.id || e.id || `vvw-gallery-${Math.random().toString(36).substr(2, 9)}`;
23
- e.id || (e.id = u), p(() => {
24
- r = m({
25
- ...t,
26
- elements: t.elements || `#${u} ${v}`
27
- }), l && r && l(r);
28
- }), d(() => {
29
- r == null || r.destroy(), r = null;
20
+ function g(r, o) {
21
+ const { selector: e = "> a", ref: d, ...u } = o, m = o.id || r.id || `vvw-gallery-${Math.random().toString(36).substr(2, 9)}`;
22
+ r.id || (r.id = m), p(() => {
23
+ const t = v({
24
+ ...u,
25
+ elements: u.elements || `#${m} ${e}`
26
+ });
27
+ d && t && d(t), l(() => {
28
+ t == null || t.destroy();
29
+ });
30
30
  });
31
31
  }
32
32
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vistaview",
3
- "version": "0.10.10",
3
+ "version": "0.10.11",
4
4
  "description": "A lightweight, zero-dependency image lightbox library with smooth animations and touch support",
5
5
  "keywords": [
6
6
  "image",