Skip to content

Commit 4c1f8d3

Browse files
authored
Merge branch 'main' into fix/use-storate-state_literal-type-inference
2 parents ff52f54 + 2eca7df commit 4c1f8d3

File tree

8 files changed

+41
-5
lines changed

8 files changed

+41
-5
lines changed

packages/common/hangul/src/chosungIncludes.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/** @tossdocs-ignore */
12
import { HANGUL_CHARACTERS_BY_FIRST_INDEX } from './constants';
23
import { disassembleHangulToGroups } from './disassemble';
34
import { getFirstConsonants } from './utils';

packages/common/hangul/src/disassemble.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/** @tossdocs-ignore */
12
import { DISASSEMBLED_CONSONANTS_BY_CONSONANT, DISASSEMBLED_VOWELS_BY_VOWEL } from './constants';
23
import { disassembleCompleteHangulCharacter } from './disassembleCompleteHangulCharacter';
34

packages/common/hangul/src/hangulIncludes.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/** @tossdocs-ignore */
12
import { disassembleHangul } from './disassemble';
23

34
export function hangulIncludes(x: string, y: string) {

packages/common/utils/src/reverseKeyValue.ko.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# reverseKeyValue
22

3-
key와 value를 바꿔 { [value]: key } 형태의 object를 반환합니다
3+
key와 value를 바꿔 { [value]: key } 형태의 object를 반환합니다.
44

55
```typescript
66
function reverseKeyValue<KeyType extends string, ValueType extends string>(
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { render, screen } from '@testing-library/react';
2+
import { FullHeight } from './FullHeight';
3+
4+
const setInnerHeight = (height: number) => {
5+
Object.defineProperty(window, 'innerHeight', { writable: true, configurable: true, value: height });
6+
};
7+
8+
const CHILDREN_TEXT = 'FullHeight';
9+
10+
describe('FullHeight', () => {
11+
it('should have a default height of 768px(jsdom default value)', () => {
12+
render(<FullHeight>{CHILDREN_TEXT}</FullHeight>);
13+
14+
const fullHeightBox = screen.getByText(CHILDREN_TEXT);
15+
16+
expect(window.innerHeight).toBe(768);
17+
18+
expect(fullHeightBox).toBeInTheDocument();
19+
expect(fullHeightBox).toHaveStyle('height: 768px');
20+
});
21+
22+
it('should have a height of 1024px(setup value)', () => {
23+
setInnerHeight(1024);
24+
render(<FullHeight>{CHILDREN_TEXT}</FullHeight>);
25+
26+
const fullHeightBox = screen.getByText(CHILDREN_TEXT);
27+
28+
expect(window.innerHeight).toBe(1024);
29+
30+
expect(fullHeightBox).toBeInTheDocument();
31+
expect(fullHeightBox).toHaveStyle('height: 1024px');
32+
});
33+
});

packages/react/impression-area/src/ImpressionArea.ko.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: ImpressionArea
55
# ImpressionArea
66

77
브라우저 뷰포트에 보여지거나 사라지는 시점에 이벤트를 발생시키는 컴포넌트입니다.
8-
[IntersectionObserver](https://developer.mozilla.org/ko/docs/Web/API/Intersection_Observer_API) API를 사용하여 효율적으로 동작합니다.
8+
[IntersectionObserver](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API) API를 사용하여 효율적으로 동작합니다.
99

1010
ImpressionArea는 추가적인 div를 render합니다. (div가 없어야 하는 경우 `useImpressionRef` Hook을 사용하세요.)
1111

packages/react/impression-area/src/useImpressionRef.ko.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: useImpressionRef
66

77
`ref` 가 주어진 요소가 화면에 노출되거나 숨겨지는 시점에 이벤트를 발생시키는 Hook입니다.
88
"화면에 노출된다"는 문서가 포그라운드면서 뷰포트에 진입한 상태를 의미합니다.
9-
[IntersectionObserver](https://developer.mozilla.org/ko/docs/Web/API/Intersection_Observer_API) API를 사용하여 효율적으로 동작합니다.
9+
[IntersectionObserver](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API) API를 사용하여 효율적으로 동작합니다.
1010

1111
컴포넌트로 사용하려면 `ImpressionArea`를 사용하세요.
1212

packages/react/react/src/hooks/useCheckList.ko.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# useCheckList
22

3-
체크리스트에 사용할 hook - checked 관련 control을 제공한다.
3+
체크리스트에 사용할 hook - checked 관련 control을 제공합니다.
44

55
```ts
66
function useCheckList<T extends Item>(
@@ -36,4 +36,4 @@ useEffect(() => {
3636

3737
## Warning
3838

39-
리스트의 아이템이 많은 경우 perf 가 떨어질 수 있다.
39+
리스트의 아이템이 많은 경우 perf 가 떨어질 수 있습니다.

0 commit comments

Comments
 (0)