vistaview 0.10.15 → 0.10.16
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/react.d.ts +2 -2
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +14 -14
- package/dist/solid.d.ts +2 -2
- package/dist/solid.d.ts.map +1 -1
- package/dist/solid.js +15 -15
- package/dist/svelte.d.ts +2 -2
- package/dist/svelte.d.ts.map +1 -1
- package/dist/svelte.js +12 -12
- package/dist/vue.d.ts +2 -2
- package/dist/vue.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/react.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
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
|
|
4
|
+
export interface VistaViewProps extends VistaOpt {
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
className?: string;
|
|
7
7
|
id?: string;
|
package/dist/react.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5E,wBAAgB,YAAY,CAAC,OAAO,EAAE,cAAc,GAAG,cAAc,CAuBpE;AAED,MAAM,WAAW,cAAe,SAAQ,QAAQ;IAC9C,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,SAAS,2GA6BrB,CAAC"}
|
package/dist/react.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { forwardRef as I, useRef as s, useId as w, useImperativeHandle as g, useEffect as
|
|
4
|
-
import { vistaView as
|
|
2
|
+
import { jsx as v } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as I, useRef as s, useId as w, useImperativeHandle as g, useEffect as a, useCallback as t } from "react";
|
|
4
|
+
import { vistaView as d } from "./vistaview.js";
|
|
5
5
|
function z(c) {
|
|
6
6
|
const r = s(null);
|
|
7
|
-
return
|
|
7
|
+
return a(() => (r.current = d(c), () => {
|
|
8
8
|
var e;
|
|
9
9
|
(e = r.current) == null || e.destroy(), r.current = null;
|
|
10
10
|
}), []), {
|
|
@@ -51,18 +51,18 @@ function z(c) {
|
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
const R = I(
|
|
54
|
-
({ children: c, className: r, id: e, selector: n = "> a", ...
|
|
55
|
-
const
|
|
56
|
-
return g(
|
|
57
|
-
if (
|
|
58
|
-
return u.current =
|
|
59
|
-
...
|
|
60
|
-
elements:
|
|
54
|
+
({ children: c, className: r, id: e, selector: n = "> a", ...f }, m) => {
|
|
55
|
+
const l = s(null), u = s(null), p = w(), o = e || `vvw-gallery-${p.replace(/:/g, "")}`;
|
|
56
|
+
return g(m, () => u.current, []), a(() => {
|
|
57
|
+
if (l.current)
|
|
58
|
+
return u.current = d({
|
|
59
|
+
...f,
|
|
60
|
+
elements: `#${o} ${n}`
|
|
61
61
|
}), () => {
|
|
62
|
-
var
|
|
63
|
-
(
|
|
62
|
+
var i;
|
|
63
|
+
(i = u.current) == null || i.destroy(), u.current = null;
|
|
64
64
|
};
|
|
65
|
-
}, [o, n]), /* @__PURE__ */
|
|
65
|
+
}, [o, n]), /* @__PURE__ */ v("div", { ref: l, id: o, className: r, children: c });
|
|
66
66
|
}
|
|
67
67
|
);
|
|
68
68
|
export {
|
package/dist/solid.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { VistaParamsNeo, VistaInterface } from './vistaview';
|
|
1
|
+
import { VistaParamsNeo, VistaInterface, VistaOpt } from './vistaview';
|
|
2
2
|
export declare function useVistaView(options: VistaParamsNeo): VistaInterface;
|
|
3
|
-
export interface VistaViewOptions extends
|
|
3
|
+
export interface VistaViewOptions extends VistaOpt {
|
|
4
4
|
id?: string;
|
|
5
5
|
selector?: string;
|
|
6
6
|
ref?: (instance: VistaInterface) => void;
|
package/dist/solid.d.ts.map
CHANGED
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"solid.d.ts","sourceRoot":"","sources":["../src/solid.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5E,wBAAgB,YAAY,CAAC,OAAO,EAAE,cAAc,GAAG,cAAc,CAmBpE;AAED,MAAM,WAAW,gBAAiB,SAAQ,QAAQ;IAChD,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,QAmB9E"}
|
package/dist/solid.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { onCleanup as
|
|
2
|
-
import { vistaView as
|
|
3
|
-
function y(
|
|
4
|
-
const o =
|
|
5
|
-
return
|
|
1
|
+
import { onCleanup as d, onMount as p } from "solid-js";
|
|
2
|
+
import { vistaView as u } from "./vistaview.js";
|
|
3
|
+
function y(t) {
|
|
4
|
+
const o = u(t);
|
|
5
|
+
return d(() => {
|
|
6
6
|
o == null || o.destroy();
|
|
7
7
|
}), {
|
|
8
|
-
open: (
|
|
8
|
+
open: (r = 0) => o == null ? void 0 : o.open(r),
|
|
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,19 +13,19 @@ function y(r) {
|
|
|
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: (
|
|
16
|
+
view: (r) => o == null ? void 0 : o.view(r),
|
|
17
17
|
destroy: () => o == null ? void 0 : o.destroy()
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
function g(
|
|
21
|
-
const { selector:
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
...
|
|
25
|
-
elements:
|
|
20
|
+
function g(t, o) {
|
|
21
|
+
const { selector: r = "> a", ref: l, ...v } = o, m = o.id || `vvw-gallery-${Math.random().toString(36).slice(2)}`;
|
|
22
|
+
t.id = m, p(() => {
|
|
23
|
+
const e = u({
|
|
24
|
+
...v,
|
|
25
|
+
elements: `#${m} ${r}`
|
|
26
26
|
});
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
l && e && l(e), d(() => {
|
|
28
|
+
e == null || e.destroy();
|
|
29
29
|
});
|
|
30
30
|
});
|
|
31
31
|
}
|
package/dist/svelte.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { VistaParamsNeo, VistaInterface } from './vistaview';
|
|
1
|
+
import { VistaParamsNeo, VistaInterface, VistaOpt } from './vistaview';
|
|
2
2
|
export declare function useVistaView(options: VistaParamsNeo): VistaInterface;
|
|
3
|
-
export interface VistaViewProps extends
|
|
3
|
+
export interface VistaViewProps extends VistaOpt {
|
|
4
4
|
id?: string;
|
|
5
5
|
class?: string;
|
|
6
6
|
selector?: string;
|
package/dist/svelte.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"svelte.d.ts","sourceRoot":"","sources":["../src/svelte.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"svelte.d.ts","sourceRoot":"","sources":["../src/svelte.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,wBAAgB,YAAY,CAAC,OAAO,EAAE,cAAc,GAAG,cAAc,CAmBpE;AAED,MAAM,WAAW,cAAe,SAAQ,QAAQ;IAC9C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,cAAc,CAAC;CACtB;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,cAAc;;EA0BxE"}
|
package/dist/svelte.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { onDestroy as
|
|
2
|
-
import { vistaView as
|
|
1
|
+
import { onDestroy as y, onMount as f } from "svelte";
|
|
2
|
+
import { vistaView as u } from "./vistaview.js";
|
|
3
3
|
function w(e) {
|
|
4
|
-
const o =
|
|
5
|
-
return
|
|
4
|
+
const o = u(e);
|
|
5
|
+
return y(() => {
|
|
6
6
|
o == null || o.destroy();
|
|
7
7
|
}), {
|
|
8
8
|
open: (r = 0) => o == null ? void 0 : o.open(r),
|
|
@@ -19,16 +19,16 @@ function w(e) {
|
|
|
19
19
|
}
|
|
20
20
|
function x(e, o) {
|
|
21
21
|
let r = null;
|
|
22
|
-
const { selector:
|
|
23
|
-
e.id
|
|
24
|
-
function
|
|
25
|
-
r =
|
|
26
|
-
...
|
|
27
|
-
elements:
|
|
22
|
+
const { selector: d = "> a", ref: t, ...m } = o, l = o.id || `vvw-gallery-${Math.random().toString(36).slice(2)}`;
|
|
23
|
+
e.id = l;
|
|
24
|
+
function v() {
|
|
25
|
+
r = u({
|
|
26
|
+
...m,
|
|
27
|
+
elements: `#${l} ${d}`
|
|
28
28
|
}), t && r && Object.assign(t, r);
|
|
29
29
|
}
|
|
30
|
-
return
|
|
31
|
-
|
|
30
|
+
return f(() => {
|
|
31
|
+
v();
|
|
32
32
|
}), {
|
|
33
33
|
destroy() {
|
|
34
34
|
r == null || r.destroy(), r = null;
|
package/dist/vue.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
|
|
4
|
+
export interface VistaViewProps extends VistaOpt {
|
|
5
5
|
id?: string;
|
|
6
6
|
class?: string;
|
|
7
7
|
selector?: string;
|
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;
|
|
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,cAAe,SAAQ,QAAQ;IAC9C,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"}
|