@ihabdevteam/core 0.442.0 → 0.444.0

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.
Files changed (66) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/components.cjs.js +195 -190
  3. package/dist/components.esm.css +2 -2
  4. package/dist/hooks.cjs.js +5 -5
  5. package/dist/i18n.cjs.js +3 -3
  6. package/dist/ihabdevteam-core.cjs.js +191 -186
  7. package/dist/ihabdevteam-core.d.ts +346 -1
  8. package/dist/packages/core/src/components/DatePicker.css +8 -0
  9. package/dist/packages/core/src/components/DatePicker.js +13 -1
  10. package/dist/packages/core/src/components/ErrorBoundary.d.ts +55 -0
  11. package/dist/packages/core/src/components/ErrorBoundary.js +52 -0
  12. package/dist/packages/core/src/components/FolderAddPopup.d.ts +25 -0
  13. package/dist/packages/core/src/components/FolderAddPopup.js +21 -0
  14. package/dist/packages/core/src/components/FolderList.css +18 -0
  15. package/dist/packages/core/src/components/FolderList.d.ts +28 -0
  16. package/dist/packages/core/src/components/FolderList.js +23 -0
  17. package/dist/packages/core/src/components/KeepScreenAwake.d.ts +9 -0
  18. package/dist/packages/core/src/components/KeepScreenAwake.js +12 -0
  19. package/dist/packages/core/src/components/MarkIcon.css +12 -0
  20. package/dist/packages/core/src/components/MarkIcon.d.ts +20 -0
  21. package/dist/packages/core/src/components/MarkIcon.js +18 -0
  22. package/dist/packages/core/src/components/PagePopup.d.ts +52 -0
  23. package/dist/packages/core/src/components/PagePopup.js +77 -0
  24. package/dist/packages/core/src/components/Popup/Popup.css +14 -0
  25. package/dist/packages/core/src/components/Popup/Popup.d.ts +9 -0
  26. package/dist/packages/core/src/components/Popup/Popup.js +23 -4
  27. package/dist/packages/core/src/components/ScoreMarkCounts.css +9 -0
  28. package/dist/packages/core/src/components/ScoreMarkCounts.d.ts +19 -0
  29. package/dist/packages/core/src/components/ScoreMarkCounts.js +16 -0
  30. package/dist/packages/core/src/components/TextField.css +20 -0
  31. package/dist/packages/core/src/components/TextField.d.ts +17 -0
  32. package/dist/packages/core/src/components/TextField.js +19 -4
  33. package/dist/packages/core/src/components/Training/TrainingBlockGrid.js +25 -1
  34. package/dist/packages/core/src/components.d.ts +14 -0
  35. package/dist/packages/core/src/components.js +9 -0
  36. package/dist/packages/core/src/hooks/useBackClosable.d.ts +8 -0
  37. package/dist/packages/core/src/hooks/useBackClosable.js +97 -0
  38. package/dist/packages/core/src/hooks/useClosingDelay.d.ts +12 -0
  39. package/dist/packages/core/src/hooks/useClosingDelay.js +30 -0
  40. package/dist/packages/core/src/hooks/useOnline.d.ts +9 -0
  41. package/dist/packages/core/src/hooks/useOnline.js +23 -0
  42. package/dist/packages/core/src/hooks/useOutsideClose.d.ts +11 -0
  43. package/dist/packages/core/src/hooks/useOutsideClose.js +23 -0
  44. package/dist/packages/core/src/hooks/useSaveOnHide.d.ts +14 -0
  45. package/dist/packages/core/src/hooks/useSaveOnHide.js +32 -0
  46. package/dist/packages/core/src/hooks/useScreenWakeLock.d.ts +12 -0
  47. package/dist/packages/core/src/hooks/useScreenWakeLock.js +53 -0
  48. package/dist/packages/core/src/hooks.d.ts +6 -0
  49. package/dist/packages/core/src/hooks.js +7 -0
  50. package/dist/packages/core/src/i18n/locales/en.json +10 -3
  51. package/dist/packages/core/src/i18n/locales/ko.json +10 -3
  52. package/dist/packages/core/src/utils/jamoSpeech.d.ts +19 -0
  53. package/dist/packages/core/src/utils/jamoSpeech.js +53 -0
  54. package/dist/packages/core/src/utils/kstDateTime.d.ts +21 -0
  55. package/dist/packages/core/src/utils/kstDateTime.js +38 -0
  56. package/dist/packages/core/src/utils/lucideIconSet.js +2 -0
  57. package/dist/packages/core/src/utils/popupTiming.d.ts +7 -0
  58. package/dist/packages/core/src/utils/popupTiming.js +7 -0
  59. package/dist/packages/core/src/utils/wordTrainingGenerators.d.ts +1 -6
  60. package/dist/packages/core/src/utils/wordTrainingGenerators.js +3 -45
  61. package/dist/packages/core/src/utils.d.ts +2 -0
  62. package/dist/packages/core/src/utils.js +1 -0
  63. package/dist/packages/core/src/version.d.ts +1 -1
  64. package/dist/packages/core/src/version.js +1 -1
  65. package/dist/utils.cjs.js +171 -166
  66. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,44 @@ All notable changes to this project will be documented in this file.
7
7
  > 적은 글이라, 지금 이름으로 고쳐 놓으면 그 시절에 그 이름으로 받은 사람이
8
8
  > 제 이야기를 못 찾는다.
9
9
 
10
+ ## 0.444.0 — 폰 입력칸 · 뒤로로 창 닫기 · 비밀번호 보기 · 폴더 조각 둘(말귀 청 (438) ㉮ ㉯ ㉰ ㉱ ㉲ ㉳ⓑ ㉴ · (439))
11
+
12
+ 말귀가 2026-10-20 부터 모아 둔 것을 한 번에 받았다(사장님 지시 2026-11-14 *"코어에 요청할것 모두 진행해"*).
13
+
14
+ - ㉮ **폰 · 태블릿에서 `TextField` 입력 글자가 16px 밑으로 안 내려간다** — 1023px 아래 `max(16px, var(--text-body-2-size))`. iOS 가
15
+ 칸을 누를 때마다 확대하던 것. 작은 칸(`--s32` 14px)도 올라가고, 디스플레이형(22 · 28px)은 그대로. 토큰은 안 바꿨다(본문 글자는 그대로).
16
+ - ㉯ **폰 '뒤로' 가 열린 창을 닫는다** — `Popup` 은 기본으로(`backClosable={false}` 로 끈다), `PagePopup` 은 `onClose` 를 주면.
17
+ 창마다 역사 칸 하나, **맨 위 창 하나만** 닫힌다. `closeDisabled` · `beforeClose` 가 막으면 칸을 도로 쌓는다. 단추로 닫으면
18
+ 우리 칸이 맨 위일 때만 한 칸 되돌리고, 그 되돌림이 아래 창을 닫지 않는다. 훅은 **`useBackClosable(open, onBack)`**(hooks).
19
+ - ㉰ **`TextField.autoCapitalize` · `autoCorrect`** — 안 주면 `type` 이 email · tel · password · url 이거나 `autoComplete` 가
20
+ username · email · one-time-code 인 칸은 `none` · `off`.
21
+ - ㉱ **`TextField.revealable`** — `type="password"` 에 보기/숨기기 단추(이름 하나, `aria-pressed` 로 눌림). `rightIcon` 과 나란히 선다.
22
+ 보여도 평문은 HTML 속성에 안 박힌다. **`Popup` 닫기(✕)의 닿는 자리 44×44**(보이는 단추는 40 그대로).
23
+ - ㉲ **`DatePicker`** — 글자로 치기와 연 · 월 따로 고르기는 2026-10-20 에 이미 들어와 있었다. 남은 것: 여덟 자리를 다 쳤는데 없는 날이거나
24
+ `min`·`max` 밖이면 **칸에만 빨간 줄**(`date-picker--invalid` · `aria-invalid`), 값은 안 바뀐다. 색은 `TextField` 오류와 같은 토큰.
25
+ - ㉴ **`FolderList` · `FolderAddPopup`** — 말귀 앱에서 옮겼다. `FolderList` 는 **정렬을 안 한다**(세운 줄을 받는다), 클래스는
26
+ `folder-list`(앱의 `training-folder-list`). `FolderAddPopup` 은 상한을 `maxLength` 로, 글은 코어 사전 `folder.add.*` · `common.add`.
27
+ - ㉳ⓑ **`jamoToNamesForSpeech` 를 작은 파일로** — `@ihabdevteam/core/utils/jamoSpeech`. 예전 갈래(`utils`)로도 그대로 나간다.
28
+ - ㉳ⓐ(영어 사전 늦게 받기)는 **이 판에 안 넣었다** — 기본으로 바꾸면 모든 소비자에서 영어 사용자의 첫 화면이 잠깐 한국어로 서고,
29
+ 영어가 곧바로 있다고 보는 시험 24개가 깨진다. 따로 짠다.
30
+ - (439) **`TrainingBlockGrid` 가 묶인 뒤에도 다시 잰다** — 제 상자만 보던 것을 **첫 카드 · 위로 세 칸의 조상 · 창 크기**까지 본다.
31
+ 내용에 맞춰 줄어드는 부모 안에서 먼저 재 2열에 묶이던 것, 폰을 돌려도 1열에 머물던 것.
32
+ - 놀이터: `#folder-head` 에 `FolderList` · `FolderAddPopup`, `#text-field` 에 `revealable` · 아이디 칸, `#ref-helpers` 에 `useBackClosable`.
33
+
34
+ ## 0.443.0 — 말귀 앱에서 옮겨 온 조각(말귀 청 (437) ㉰ ㉱ ㉲ ㉳ⓑ ㉳ⓒ ㉴)
35
+
36
+ 앱 사정을 모르던 조각을 코어로 옮겼다(사장님 지시 2026-11-13). 앱은 사본을 지우고 들여오는 자리만 옮긴다.
37
+
38
+ - ㉰ **`PagePopup` · `usePagePopupClose`** — 훈련이 아닌 전체 화면 창의 껍데기(위 · 본문 · 아래). 닫기는 한 번만 · 사라진 뒤에 ·
39
+ **움직임 줄이기면 0** · **`onClose` 가 던져도 풀린다**(앱 사본엔 뒤의 둘이 없었다 — `TrainingPagePopup` 과 같은 고침).
40
+ - ㉱ **`MarkIcon` · `ScoreMarkCounts`** — 평가 표시(○ △ ✕)와 매긴 셈. **색은 단어표의 `MARK_VARIANT` 를 그대로 따른다**(앱 사본은 색을 다시 적었다).
41
+ - ㉲ **`useSaveOnHide` · `useScreenWakeLock` · `KeepScreenAwake` · `useOnline` · `useOutsideClose`** — 브라우저 생애 훅.
42
+ - ㉳ⓑ **`POPUP_CLOSE_MS` · `useClosingDelay`** — `Popup` 이 사라지는 시간(260)을 내주고, 그만큼(움직임 줄이기면 0) 기다렸다 치르는 훅. `Popup` 도 같은 수를 쓴다.
43
+ - ㉳ⓒ **`kstToIso` · `kstPartsAt` · `kstNowParts`** — 한국 벽시계 ↔ 순간(없는 날이면 null).
44
+ - ㉴ **`ErrorBoundary`** — 잡기 · `resetKeys` 로 풀기 · 낡은 묶음이면 `staleChunk` · `console.error(error, …)` 로 남기기. 넘어진 화면과 개발용 다시 그리기는 앱이 넘긴다.
45
+ - ㉳ⓓ(실행 창 칸 수)는 옮기지 않았다 — 코어 `TrainingBlockGrid` 가 이미 제 폭과 첫 카드를 재서 센다(`columnsFitting` · `balancedColumns`). 앱은 그것을 쓰면 된다.
46
+ - 놀이터 `#ref-helpers` 에 표와 시연.
47
+
10
48
  ## 0.442.0 — 값으로 묻는 닫기 막이 · "N개씩 보기" 목록(말귀 청 (437) ㉯ · ㉳ⓐ)
11
49
 
12
50
  - **`useValueDiscardGuard(value, onClose, labels?)`** — 창이 열린 때의 값과 지금 값을 JSON 꼴로 견줘, 달라졌으면 닫기 전에 묻는다.