Skip to content

Commit

Permalink
chore(release): Release 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
daybrush committed Feb 23, 2022
1 parent 81651c6 commit d9d9098
Show file tree
Hide file tree
Showing 103 changed files with 493 additions and 8,752 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -217,4 +217,4 @@ packages/*/dist/
test/e2e/log/
test/e2e/screenshots/diff/
storybook/build/
dist/

2 changes: 1 addition & 1 deletion demo/docs/examples/Methods.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ You can also use scroll-related functions through methods.
|PARAMETER|TYPE|OPTIONAL|DEFAULT|DESCRIPTION|
|:---:|:---:|:---:|:---:|:---:|
|target|HTMLElement \| "start" \| "end" \| "prev" \| "next"|||<p>direction of the element. &quot;start&quot; and &quot;end&quot; find inside. &quot;prev&quot; and &quot;next&quot; find outside. </p>|
|options|[ScrollIntoViewOptions](ScrollIntoViewOptions)|✔️|{}|<p>Options for the <code>scrollIntoView</code> method. </p>|
|options|[ScrollIntoViewOptions](/docs/api/ScrollIntoViewOptions)|✔️|{}|<p>Options for the <code>scrollIntoView</code> method. </p>|



Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
custom_edit_url: null
---

```ts
const CONVEYER_METHODS
```

<div>

</div>

<p>egjs-conveyer<br />Copyright (c) 2022-present NAVER Corp.<br />MIT license</p>

Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,15 @@ conveyer.isReachEnd

</div>

해당 방향에 대해 엘리먼트를 찾는다.
해당 방향에 대해 엘리먼트를 찾는다.]

|PARAMETER|TYPE|OPTIONAL|DEFAULT|DESCRIPTION|
|:---:|:---:|:---:|:---:|:---:|
|direction|"start" \| "end" \| "prev" \| "next"|||엘리먼트의 방향. &quot;start&quot;, &quot;end&quot;는 안쪽으로 찾는다. &quot;prev&quot;, &quot;next&quot;는 바깥쪽으로 찾는다.|
|options|[FindItemOptions](FindItemOptions)|✔️|{}|findElement 메서드의 옵션|

<h4>target</h4>
**See**:
- [direction's example](/docs/examples/Methods) page for detailed information
<p align="center">
<img src="/img/scrollIntoView1.png" height="200" />
</p>
Expand All @@ -101,7 +102,8 @@ conveyer.isReachEnd
|target|HTMLElement \| "start" \| "end" \| "prev" \| "next"|||엘리먼트의 방향. &quot;start&quot;, &quot;end&quot;는 안쪽으로 찾는다. &quot;prev&quot;, &quot;next&quot;는 바깥쪽으로 찾는다.|
|options|[FindItemOptions](FindItemOptions)|✔️|{}|<code>findItem</code> 메서드의 옵션|

<h4>target</h4>
**See**:
- [direction's example](/docs/examples/Methods) page for detailed information
<p align="center">
<img src="/img/scrollIntoView1.png" height="200" />
</p>
Expand All @@ -122,7 +124,8 @@ conveyer.isReachEnd
|target|HTMLElement \| "start" \| "end" \| "prev" \| "next"|||엘리먼트의 방향. &quot;start&quot;, &quot;end&quot;는 안쪽으로 찾는다. &quot;prev&quot;, &quot;next&quot;는 바깥쪽으로 찾는다.|
|options|[ScrollIntoViewOptions](ScrollIntoViewOptions)|✔️|{}|<code>scrollIntoView</code> 메서드의 옵션|

<h4>target</h4>
**See**:
- [target's example](/docs/examples/Methods) page for detailed information
<p align="center">
<img src="/img/scrollIntoView1.png" height="200" />
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ custom_edit_url: null

|PROPERTY|TYPE|DESCRIPTION|
|:---:|:---:|:---:|
|horizontal|boolean|스크롤 방향. (default: true)|
|horizontal|boolean|스크롤 방향. (true: 가로 스크롤, false: 세로 스크롤) (default: true)|
|itemSelector|string|내부의 아이템들을 찾기 위한 selector. (default: &quot;&quot;)|
|useDrag|boolean| 드래그를 사용할지 여부. (default: true)|
|scrollDebounce|number| finishScroll 이벤트가 발생되기 위한 scroll 이벤트가 발생하지 않는 최대 시간. (default: 100)|
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
custom_edit_url: null
---

```ts
function isString(val: any)
```

<div>

</div>

<p>egjs-conveyer<br />Copyright (c) 2022-present NAVER Corp.<br />MIT license</p>

**Returns**: val is string

|PARAMETER|TYPE|OPTIONAL|DEFAULT|DESCRIPTION|
|:---:|:---:|:---:|:---:|:---:|
|val|any||||

14 changes: 7 additions & 7 deletions demo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@docusaurus/preset-classic": "^2.0.0-beta.14",
"@docusaurus/theme-live-codeblock": "^2.0.0-beta.14",
"@egjs/flicking-plugins": "^4.2.1",
"@egjs/react-conveyer": "^0.1.0",
"@egjs/react-conveyer": "^1.0.1",
"@egjs/react-flicking": "^4.2.1",
"@egjs/react-infinitegrid": "^4.2.0-beta.0",
"@mdx-js/react": "^1.6.21",
Expand Down
16 changes: 0 additions & 16 deletions demo/versioned_docs/version-1.0.0/api/ScrollOptions.mdx

This file was deleted.

14 changes: 0 additions & 14 deletions demo/versioned_docs/version-1.0.0/api/isReachStart.mdx

This file was deleted.

24 changes: 0 additions & 24 deletions demo/versioned_docs/version-1.0.0/examples/Methods.mdx

This file was deleted.

14 changes: 14 additions & 0 deletions demo/versioned_docs/version-1.0.1/api/CONVEYER_METHODS.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
custom_edit_url: null
---

```ts
const CONVEYER_METHODS
```

<div>

</div>

<p>egjs-conveyer<br />Copyright (c) 2022-present NAVER Corp.<br />MIT license</p>

Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ conveyer.isReachEnd
|direction|"start" \| "end" \| "prev" \| "next"|||<p>direction of the element. &quot;start&quot; and &quot;end&quot; find inside. &quot;prev&quot; and &quot;next&quot; find outside. </p>|
|options|[FindItemOptions](FindItemOptions)|✔️|{}|<p>Options for the <code>findElement</code> method. </p>|

<h4>target</h4>
**See**:
- [direction's example](/docs/examples/Methods) page for detailed information
<p align="center">
<img src="/img/scrollIntoView1.png" height="200" />
</p>
Expand All @@ -101,7 +102,8 @@ conveyer.isReachEnd
|target|HTMLElement \| "start" \| "end" \| "prev" \| "next"|||<p>direction of the element. &quot;start&quot; and &quot;end&quot; find inside. &quot;prev&quot; and &quot;next&quot; find outside. </p>|
|options|[FindItemOptions](FindItemOptions)|✔️|{}|<p>Options for the <code>findItem</code> method. </p>|

<h4>target</h4>
**See**:
- [direction's example](/docs/examples/Methods) page for detailed information
<p align="center">
<img src="/img/scrollIntoView1.png" height="200" />
</p>
Expand All @@ -122,7 +124,8 @@ conveyer.isReachEnd
|target|HTMLElement \| "start" \| "end" \| "prev" \| "next"|||<p>direction of the element. &quot;start&quot; and &quot;end&quot; find inside. &quot;prev&quot; and &quot;next&quot; find outside. </p>|
|options|[ScrollIntoViewOptions](ScrollIntoViewOptions)|✔️|{}|<p>Options for the <code>scrollIntoView</code> method. </p>|

<h4>target</h4>
**See**:
- [target's example](/docs/examples/Methods) page for detailed information
<p align="center">
<img src="/img/scrollIntoView1.png" height="200" />
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ custom_edit_url: null

|PROPERTY|TYPE|DESCRIPTION|
|:---:|:---:|:---:|
|horizontal|boolean|<p>scroll direction. (default: true) </p>|
|horizontal|boolean|<p>scroll direction. (true: Horizontal Scroll, false: Vertical Scroll) (default: true) </p>|
|itemSelector|string|<p>selector to find items inside. (default: &quot;&quot;) </p>|
|useDrag|boolean|<p>Whether to use drag (default: true) </p>|
|scrollDebounce|number|<p>The maximum amount of time the scroll event does not fire for the finishScroll event to be triggered. (default: 100) </p>|
Expand Down
20 changes: 20 additions & 0 deletions demo/versioned_docs/version-1.0.1/api/isString.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
custom_edit_url: null
---

```ts
function isString(val: any)
```

<div>

</div>

<p>egjs-conveyer<br />Copyright (c) 2022-present NAVER Corp.<br />MIT license</p>

**Returns**: val is string

|PARAMETER|TYPE|OPTIONAL|DEFAULT|DESCRIPTION|
|:---:|:---:|:---:|:---:|:---:|
|val|any||||

Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,17 @@ export class AppComponent {
this.conveyer.updateContainer();
}
prev() {
this.conveyer.scrollIntoView("prev", {
this.conveyer.scrollIntoView("start", {
align: "end",
duration: 500,
excludeStand: true,
});
}
next() {
this.conveyer.scrollIntoView("next", {
this.conveyer.scrollIntoView("end", {
align: "start",
duration: 500,
excludeStand: true,
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,18 @@ conveyer.subscribe("isReachEnd", (isReachEnd) => {
// scrollIntoView
prev.addEventListener("click", () => {
// start to end
conveyer.scrollIntoView("prev", {
conveyer.scrollIntoView("start", {
align: "end",
duration: 500,
excludeStand: true,
});
});
next.addEventListener("click", () => {
// end to start
conveyer.scrollIntoView("next", {
conveyer.scrollIntoView("end", {
align: "start",
duration: 500,
excludeStand: true,
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,18 @@
<div className="buttons">
<button className="prev" disabled={$isReachStart} on:click={() => {
// start to end
scrollIntoView("prev", {
scrollIntoView("start", {
align: "end",
duration: 500,
excludeStand: true,
});
}}>Prev</button>
<button className="next" disabled={$isReachEnd} on:click={() => {
// end to start
scrollIntoView("next", {
scrollIntoView("end", {
align: "start",
duration: 500,
excludeStand: true,
});
}}>Next</button>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,17 @@ export default {
this.updateContainer();
},
prev() {
this.scrollIntoView("prev", {
this.scrollIntoView("start", {
align: "end",
duration: 500,
excludeStand: true,
});
},
next() {
this.scrollIntoView("next", {
this.scrollIntoView("end", {
align: "start",
duration: 500,
excludeStand: true,
});
},
},
Expand Down
Loading

0 comments on commit d9d9098

Please sign in to comment.