Skip to content

Commit

Permalink
docs: update @nft-team/react 문서 및 changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
saseungmin committed Jul 28, 2023
1 parent d191bf9 commit 27f22a1
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 22 deletions.
5 changes: 0 additions & 5 deletions .changeset/silver-years-exercise.md

This file was deleted.

14 changes: 7 additions & 7 deletions apps/docs/docs/core/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ custom_edit_url: null

#### Defined in

[utils.ts:44](https://github.com/mbti-nf-team/frontend-libraries/blob/c4262dc/packages/core/src/utils.ts#L44)
[utils.ts:44](https://github.com/mbti-nf-team/frontend-libraries/blob/d191bf9/packages/core/src/utils.ts#L44)

___

Expand All @@ -50,7 +50,7 @@ ___

#### Defined in

[utils.ts:26](https://github.com/mbti-nf-team/frontend-libraries/blob/c4262dc/packages/core/src/utils.ts#L26)
[utils.ts:26](https://github.com/mbti-nf-team/frontend-libraries/blob/d191bf9/packages/core/src/utils.ts#L26)

___

Expand All @@ -71,7 +71,7 @@ ___

#### Defined in

[utils.ts:34](https://github.com/mbti-nf-team/frontend-libraries/blob/c4262dc/packages/core/src/utils.ts#L34)
[utils.ts:34](https://github.com/mbti-nf-team/frontend-libraries/blob/d191bf9/packages/core/src/utils.ts#L34)

___

Expand All @@ -91,7 +91,7 @@ ___

#### Defined in

[utils.ts:64](https://github.com/mbti-nf-team/frontend-libraries/blob/c4262dc/packages/core/src/utils.ts#L64)
[utils.ts:64](https://github.com/mbti-nf-team/frontend-libraries/blob/d191bf9/packages/core/src/utils.ts#L64)

___

Expand All @@ -117,7 +117,7 @@ ___

#### Defined in

[utils.ts:52](https://github.com/mbti-nf-team/frontend-libraries/blob/c4262dc/packages/core/src/utils.ts#L52)
[utils.ts:52](https://github.com/mbti-nf-team/frontend-libraries/blob/d191bf9/packages/core/src/utils.ts#L52)

___

Expand Down Expand Up @@ -153,7 +153,7 @@ console.log(result); // 'newValue';

#### Defined in

[utils.ts:14](https://github.com/mbti-nf-team/frontend-libraries/blob/c4262dc/packages/core/src/utils.ts#L14)
[utils.ts:14](https://github.com/mbti-nf-team/frontend-libraries/blob/d191bf9/packages/core/src/utils.ts#L14)

___

Expand All @@ -173,4 +173,4 @@ ___

#### Defined in

[utils.ts:36](https://github.com/mbti-nf-team/frontend-libraries/blob/c4262dc/packages/core/src/utils.ts#L36)
[utils.ts:36](https://github.com/mbti-nf-team/frontend-libraries/blob/d191bf9/packages/core/src/utils.ts#L36)
6 changes: 3 additions & 3 deletions apps/docs/docs/react/modules/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function ClintOnlyComponent() {

#### Defined in

[packages/react/src/components/ClientOnly.tsx:23](https://github.com/mbti-nf-team/frontend-libraries/blob/c4262dc/packages/react/src/components/ClientOnly.tsx#L23)
[packages/react/src/components/ClientOnly.tsx:23](https://github.com/mbti-nf-team/frontend-libraries/blob/d191bf9/packages/react/src/components/ClientOnly.tsx#L23)

___

Expand All @@ -65,7 +65,7 @@ ___

#### Defined in

[packages/react/src/components/DelayRenderComponent.tsx:11](https://github.com/mbti-nf-team/frontend-libraries/blob/c4262dc/packages/react/src/components/DelayRenderComponent.tsx#L11)
[packages/react/src/components/DelayRenderComponent.tsx:11](https://github.com/mbti-nf-team/frontend-libraries/blob/d191bf9/packages/react/src/components/DelayRenderComponent.tsx#L11)

___

Expand All @@ -85,4 +85,4 @@ ___

#### Defined in

[packages/react/src/components/GlobalPortal.tsx:10](https://github.com/mbti-nf-team/frontend-libraries/blob/c4262dc/packages/react/src/components/GlobalPortal.tsx#L10)
[packages/react/src/components/GlobalPortal.tsx:10](https://github.com/mbti-nf-team/frontend-libraries/blob/d191bf9/packages/react/src/components/GlobalPortal.tsx#L10)
72 changes: 66 additions & 6 deletions apps/docs/docs/react/modules/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ custom_edit_url: null

#### Defined in

[packages/react/src/hooks/useActionKeyEvent.ts:6](https://github.com/mbti-nf-team/frontend-libraries/blob/c4262dc/packages/react/src/hooks/useActionKeyEvent.ts#L6)
[packages/react/src/hooks/useActionKeyEvent.ts:6](https://github.com/mbti-nf-team/frontend-libraries/blob/d191bf9/packages/react/src/hooks/useActionKeyEvent.ts#L6)

___

Expand All @@ -52,7 +52,7 @@ ___

#### Defined in

[packages/react/src/hooks/useBoolean.ts:3](https://github.com/mbti-nf-team/frontend-libraries/blob/c4262dc/packages/react/src/hooks/useBoolean.ts#L3)
[packages/react/src/hooks/useBoolean.ts:3](https://github.com/mbti-nf-team/frontend-libraries/blob/d191bf9/packages/react/src/hooks/useBoolean.ts#L3)

___

Expand All @@ -79,7 +79,7 @@ ___

#### Defined in

[packages/react/src/hooks/useDebounce.ts:3](https://github.com/mbti-nf-team/frontend-libraries/blob/c4262dc/packages/react/src/hooks/useDebounce.ts#L3)
[packages/react/src/hooks/useDebounce.ts:3](https://github.com/mbti-nf-team/frontend-libraries/blob/d191bf9/packages/react/src/hooks/useDebounce.ts#L3)

___

Expand Down Expand Up @@ -111,7 +111,7 @@ useEffect(() => {

#### Defined in

[packages/react/src/hooks/useIsMounted.ts:18](https://github.com/mbti-nf-team/frontend-libraries/blob/c4262dc/packages/react/src/hooks/useIsMounted.ts#L18)
[packages/react/src/hooks/useIsMounted.ts:18](https://github.com/mbti-nf-team/frontend-libraries/blob/d191bf9/packages/react/src/hooks/useIsMounted.ts#L18)

___

Expand Down Expand Up @@ -146,6 +146,27 @@ node_modules/@types/react/ts5.0/index.d.ts:1064

___

### useLessThenScrollY

**useLessThenScrollY**(`targetScrollY?`, `delay?`): `boolean`

#### Parameters

| Name | Type | Default value |
| :------ | :------ | :------ |
| `targetScrollY` | `number` | `0` |
| `delay` | `number` | `200` |

#### Returns

`boolean`

#### Defined in

[packages/react/src/hooks/useLessThenScrollY.ts:5](https://github.com/mbti-nf-team/frontend-libraries/blob/d191bf9/packages/react/src/hooks/useLessThenScrollY.ts#L5)

___

### useResizeViewportHeight

**useResizeViewportHeight**(): `void`
Expand All @@ -156,7 +177,46 @@ ___

#### Defined in

[packages/react/src/hooks/useResizeViewportHeight.ts:3](https://github.com/mbti-nf-team/frontend-libraries/blob/c4262dc/packages/react/src/hooks/useResizeViewportHeight.ts#L3)
[packages/react/src/hooks/useResizeViewportHeight.ts:3](https://github.com/mbti-nf-team/frontend-libraries/blob/d191bf9/packages/react/src/hooks/useResizeViewportHeight.ts#L3)

___

### useThrottleCallback

**useThrottleCallback**<`U`\>(`callback`, `delay`): (...`args`: `U`) => `void`

#### Type parameters

| Name | Type |
| :------ | :------ |
| `U` | extends `never`[] |

#### Parameters

| Name | Type |
| :------ | :------ |
| `callback` | (...`args`: `U`) => `void` |
| `delay` | `number` |

#### Returns

`fn`

▸ (`...args`): `void`

##### Parameters

| Name | Type |
| :------ | :------ |
| `...args` | `U` |

##### Returns

`void`

#### Defined in

[packages/react/src/hooks/useThrottleCallback.ts:3](https://github.com/mbti-nf-team/frontend-libraries/blob/d191bf9/packages/react/src/hooks/useThrottleCallback.ts#L3)

___

Expand All @@ -177,4 +237,4 @@ ___

#### Defined in

[packages/react/src/hooks/useTimeout.ts:5](https://github.com/mbti-nf-team/frontend-libraries/blob/c4262dc/packages/react/src/hooks/useTimeout.ts#L5)
[packages/react/src/hooks/useTimeout.ts:5](https://github.com/mbti-nf-team/frontend-libraries/blob/d191bf9/packages/react/src/hooks/useTimeout.ts#L5)
6 changes: 6 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @nft-team/react

## 1.3.0

### Minor Changes

- 37edff5: feat(@nft-team/react): useLessThenScrollY, useThrottleCallback hook 적용

## 1.2.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nft-team/react",
"version": "1.2.2",
"version": "1.3.0",
"description": "nft team 리액트 라이브러리",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down

0 comments on commit 27f22a1

Please sign in to comment.