@egjs/svelte-infinitegrid 4.1.1 → 4.1.2-beta.4

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.
@@ -4,7 +4,7 @@ name: @egjs/svelte-infinitegrid
4
4
  license: MIT
5
5
  author: NAVER Corp.
6
6
  repository: https://github.com/naver/egjs-infinitegrid
7
- version: 4.1.1
7
+ version: 4.1.2-beta.4
8
8
  */
9
9
  'use strict';
10
10
 
@@ -14,7 +14,7 @@ var infinitegrid = require('@egjs/infinitegrid');
14
14
 
15
15
  const SVELTE_INFINITEGRID_PROPS = ["status", "useFirstRender", "useLoading", "usePlaceholder", "items", "itemBy", "groupBy"];
16
16
 
17
- /* src/InfiniteGrid.svelte generated by Svelte v3.43.0 */
17
+ /* src/InfiniteGrid.svelte generated by Svelte v3.44.3 */
18
18
 
19
19
  const get_default_slot_changes_1 = dirty => ({
20
20
  visibleItems: dirty &
@@ -4,7 +4,7 @@ name: @egjs/svelte-infinitegrid
4
4
  license: MIT
5
5
  author: NAVER Corp.
6
6
  repository: https://github.com/naver/egjs-infinitegrid
7
- version: 4.1.1
7
+ version: 4.1.2-beta.4
8
8
  */
9
9
  import { SvelteComponent, init, safe_not_equal, assign, element, set_attributes, insert, group_outros, transition_out, check_outros, transition_in, get_spread_update, detach, exclude_internal_props, binding_callbacks, create_slot, update_slot_base, get_all_dirty_from_scope, get_slot_changes, attr } from 'svelte/internal';
10
10
  import { createEventDispatcher, beforeUpdate, onMount, afterUpdate, onDestroy } from 'svelte';
@@ -12,7 +12,7 @@ import { Renderer, INFINITEGRID_EVENTS, mountRenderingItems, getRenderingItems,
12
12
 
13
13
  const SVELTE_INFINITEGRID_PROPS = ["status", "useFirstRender", "useLoading", "usePlaceholder", "items", "itemBy", "groupBy"];
14
14
 
15
- /* src/InfiniteGrid.svelte generated by Svelte v3.43.0 */
15
+ /* src/InfiniteGrid.svelte generated by Svelte v3.44.3 */
16
16
 
17
17
  const get_default_slot_changes_1 = dirty => ({
18
18
  visibleItems: dirty &
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@egjs/svelte-infinitegrid",
3
- "version": "4.1.1",
3
+ "version": "4.1.2-beta.4",
4
4
  "description": "A Svelte component that can arrange items infinitely according to the type of grids",
5
5
  "sideEffects": false,
6
6
  "svelte": "src/index.js",
@@ -69,6 +69,6 @@
69
69
  "typescript": "^4.0.0"
70
70
  },
71
71
  "dependencies": {
72
- "@egjs/infinitegrid": "~4.1.1"
72
+ "@egjs/infinitegrid": "^4.2.0-beta.2"
73
73
  }
74
74
  }
package/src/index.d.ts CHANGED
@@ -1,20 +1,27 @@
1
- import VanillaGrid, {
2
- FrameGridOptions, GridMethods, GridOptions, JustifiedGridOptions,
3
- MasonryGridOptions, PackingGridOptions,
4
- } from "@egjs/grid";
1
+ import VanillaInfiniteGrid, {
2
+ FrameInfiniteGridOptions, InfiniteGridMethods, InfiniteGridOptions, JustifiedInfiniteGridOptions,
3
+ MasonryInfiniteGridOptions, PackingInfiniteGridOptions,
4
+ } from "@egjs/Infinitegrid";
5
5
  import { SvelteComponentDev } from "svelte/internal";
6
6
 
7
+ export interface SveltInfiniteGridOptions {
8
+ items?: any[];
9
+ useFirstRender?: boolean;
10
+ usePlaceholder?: boolean;
11
+ useLoading?: boolean;
12
+ status?: InfiniteGridStatus;
13
+ }
7
14
 
8
- export default abstract class Grid<T extends GridOptions> extends SvelteComponentDev {
9
- $$prop_def: T;
10
- getInstance(): VanillaGrid;
15
+ export default abstract class InfiniteGrid<T extends InfiniteGridOptions> extends SvelteComponentDev {
16
+ $$prop_def: Record<string, any> & SveltInfiniteGridOptions & T;
17
+ getInstance(): VanillaInfiniteGrid;
11
18
  }
12
19
 
13
- export default interface Grid<T extends GridOptions> extends GridMethods<Grid<T>> {
20
+ export default interface InfiniteGrid<T extends InfiniteGridOptions> extends InfiniteGridMethods<InfiniteGrid<T>> {
14
21
  // eslint-disable-next-line semi
15
22
  }
16
23
 
17
- export class MasonryGrid extends Grid<MasonryGridOptions> { }
18
- export class JustifiedGrid extends Grid<JustifiedGridOptions> { }
19
- export class FrameGrid extends Grid<FrameGridOptions> { }
20
- export class PackingGrid extends Grid<PackingGridOptions> { }
24
+ export class MasonryInfiniteGrid extends InfiniteGrid<MasonryInfiniteGridOptions> { }
25
+ export class JustifiedInfiniteGrid extends InfiniteGrid<JustifiedInfiniteGridOptions> { }
26
+ export class FrameInfiniteGrid extends InfiniteGrid<FrameInfiniteGridOptions> { }
27
+ export class PackingInfiniteGrid extends InfiniteGrid<PackingInfiniteGridOptions> { }