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 +2 -2
- package/dist/solid.d.ts.map +1 -1
- package/dist/solid.js +17 -17
- package/package.json +1 -1
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
|
|
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
|
|
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;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,
|
|
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
|
|
2
|
-
import { vistaView as
|
|
3
|
-
function y(
|
|
4
|
-
const o =
|
|
5
|
-
return
|
|
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: (
|
|
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: (
|
|
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(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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 {
|