vistaview 0.10.19 → 0.10.20

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
@@ -373,15 +373,21 @@ function Gallery() {
373
373
 
374
374
  ```svelte
375
375
  <script>
376
- import { VistaView } from 'vistaview/svelte';
376
+ import { useVistaView } from 'vistaview/svelte';
377
377
  import 'vistaview/style.css';
378
+
379
+ const id = 'gallery-' + Math.random().toString(36).slice(2);
380
+ const vista = useVistaView({
381
+ elements: `#${id} a`,
382
+ });
378
383
  </script>
379
384
 
380
- <VistaView selector="> a">
381
- <a href="/full.jpg">
382
- <img src="/thumb.jpg" alt="Photo" />
385
+ <div id={id}>
386
+ <a href="/images/full.jpg">
387
+ <img src="/images/thumb.jpg" alt="Photo" />
383
388
  </a>
384
- </VistaView>
389
+ <button on:click={() => vista.open(0)}>Open Gallery</button>
390
+ </div>
385
391
  ```
386
392
 
387
393
  ## Accessibility
package/dist/svelte.d.ts CHANGED
@@ -1,8 +1,3 @@
1
- import { VistaParamsNeo, VistaInterface, VistaOpt } from './vistaview';
1
+ import { VistaParamsNeo, VistaInterface } from './vistaview';
2
2
  export declare function useVistaView(options: VistaParamsNeo): VistaInterface;
3
- export interface VistaViewProps extends VistaOpt {
4
- selector?: string;
5
- ref?: VistaInterface;
6
- }
7
- export { default as VistaView } from './VistaView.svelte';
8
3
  //# sourceMappingURL=svelte.d.ts.map
@@ -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;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,wBAAgB,YAAY,CAAC,OAAO,EAAE,cAAc,GAAG,cAAc,CA8BpE;AAED,MAAM,WAAW,cAAe,SAAQ,QAAQ;IAC9C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,cAAc,CAAC;CACtB;AAED,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,oBAAoB,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;AAElE,wBAAgB,YAAY,CAAC,OAAO,EAAE,cAAc,GAAG,cAAc,CA8BpE"}