@ihabdevteam/core 0.438.0 → 0.441.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 (54) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/README.md +3 -3
  3. package/dist/components.cjs.js +190 -180
  4. package/dist/components.esm.css +1 -1
  5. package/dist/hooks.cjs.js +5 -5
  6. package/dist/i18n.cjs.js +3 -3
  7. package/dist/ihabdevteam-core.cjs.js +196 -186
  8. package/dist/ihabdevteam-core.d.ts +435 -5
  9. package/dist/packages/core/src/components/Breadcrumb.css +52 -0
  10. package/dist/packages/core/src/components/Breadcrumb.d.ts +19 -1
  11. package/dist/packages/core/src/components/Breadcrumb.js +12 -4
  12. package/dist/packages/core/src/components/Button.css +9 -2
  13. package/dist/packages/core/src/components/CardSection.css +26 -0
  14. package/dist/packages/core/src/components/CardSection.d.ts +32 -0
  15. package/dist/packages/core/src/components/CardSection.js +23 -0
  16. package/dist/packages/core/src/components/FolderGrid.css +28 -0
  17. package/dist/packages/core/src/components/FolderGrid.d.ts +47 -0
  18. package/dist/packages/core/src/components/FolderGrid.js +68 -0
  19. package/dist/packages/core/src/components/FolderHead.css +8 -0
  20. package/dist/packages/core/src/components/FolderHead.d.ts +42 -0
  21. package/dist/packages/core/src/components/FolderHead.js +62 -0
  22. package/dist/packages/core/src/components/FolderSearchSections.d.ts +25 -0
  23. package/dist/packages/core/src/components/FolderSearchSections.js +18 -0
  24. package/dist/packages/core/src/components/FolderTreeButton.css +2 -0
  25. package/dist/packages/core/src/components/FolderTreeButton.d.ts +34 -0
  26. package/dist/packages/core/src/components/FolderTreeButton.js +44 -0
  27. package/dist/packages/core/src/components/Popup/ConfirmPopup.d.ts +8 -2
  28. package/dist/packages/core/src/components/Popup/ConfirmPopup.js +3 -3
  29. package/dist/packages/core/src/components/Tooltip/FolderTreeTooltip.css +99 -0
  30. package/dist/packages/core/src/components/Tooltip/FolderTreeTooltip.d.ts +60 -0
  31. package/dist/packages/core/src/components/Tooltip/FolderTreeTooltip.js +81 -0
  32. package/dist/packages/core/src/components/Tooltip/Tooltip.d.ts +6 -0
  33. package/dist/packages/core/src/components/Tooltip/Tooltip.js +10 -4
  34. package/dist/packages/core/src/components.d.ts +12 -0
  35. package/dist/packages/core/src/components.js +8 -0
  36. package/dist/packages/core/src/hooks/useCardDragToGroup.d.ts +33 -0
  37. package/dist/packages/core/src/hooks/useCardDragToGroup.js +52 -0
  38. package/dist/packages/core/src/hooks/useFolderBrowse.d.ts +30 -0
  39. package/dist/packages/core/src/hooks/useFolderBrowse.js +38 -0
  40. package/dist/packages/core/src/hooks.d.ts +2 -0
  41. package/dist/packages/core/src/hooks.js +3 -0
  42. package/dist/packages/core/src/i18n/locales/en.json +10 -0
  43. package/dist/packages/core/src/i18n/locales/ko.json +9 -0
  44. package/dist/packages/core/src/utils/folderMenu.d.ts +27 -0
  45. package/dist/packages/core/src/utils/folderMenu.js +19 -0
  46. package/dist/packages/core/src/utils/folderPath.d.ts +50 -0
  47. package/dist/packages/core/src/utils/folderPath.js +98 -0
  48. package/dist/packages/core/src/utils/lucideIconSet.js +4 -0
  49. package/dist/packages/core/src/utils.d.ts +3 -0
  50. package/dist/packages/core/src/utils.js +3 -0
  51. package/dist/packages/core/src/version.d.ts +1 -1
  52. package/dist/packages/core/src/version.js +1 -1
  53. package/dist/utils.cjs.js +175 -165
  54. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -7,6 +7,52 @@ All notable changes to this project will be documented in this file.
7
7
  > 적은 글이라, 지금 이름으로 고쳐 놓으면 그 시절에 그 이름으로 받은 사람이
8
8
  > 제 이야기를 못 찾는다.
9
9
 
10
+ ## 0.441.0 — 폴더 화면의 남은 조각을 코어로(말귀 청 (437) ㉮)
11
+
12
+ 말귀 앱에 남아 폴더 화면이 두 저장소에 걸쳐 있던 다섯 조각을 옮겼다(사장님 지시 2026-11-13 *"중복, 컴포넌트 화 해야할것들,
13
+ core로 옮겨야 할 것을 모두 찾아서 진행"*). 모두 앱 사정(Supabase · 자료 타입 · 앱 사전)을 모르는 조각이다.
14
+
15
+ - **`CardSection`**(컴포넌트) — 회색 그룹 칸 없이 카드가 서는 자리. 묶음이 여럿일 때만 가벼운 제목(이름 + 수), 비면 목록 자리에 빈 말.
16
+ - **`FolderSearchSections`**(컴포넌트) — 찾는 중의 목록을 폴더마다 나눠 세운다. 빈 폴더는 안 세우고, 길은 `앙 › 하위`.
17
+ - **`useFolderBrowse`**(훅) — 지금 연 폴더 · 찾는 중인가 · 새 폴더의 자리 · 옮김/이름 바꿈을 따라가기. 목록에 없는 폴더는 안 연 것.
18
+ - **`useCardDragToGroup`**(훅) — 카드를 끌어 폴더(묶음)에 놓기. **`FolderGrid` 의 폴더 칸 끌기도 이 훅 한 벌로**(전엔 같은 상태를 제 안에서 다시 지었다).
19
+ - **`folderMenuItems`**(유틸) — 폴더 메뉴의 줄을 정해진 차례 · 아이콘으로(더하기 → 폴더 추가 → 이름 바꾸기 → 삭제).
20
+ - 놀이터 `#folder-head` 의 기본 예시를 이 조각들로 짰다(찾기 · 카드 끌어 넣기 · 메뉴 줄). 실측: 카드를 폴더 칸에 놓으면 그 폴더로 들어가고, 찾으면 폴더마다 나뉜다.
21
+
22
+ ## 0.440.0 — 폴더로 보는 화면 한 벌 · 길(Breadcrumb)의 크기와 메뉴 · 떠 있는 것의 방향
23
+
24
+ 말귀가 나의 단어표 · 나의 단어훈련 · 나의 문장훈련을 구글 드라이브 식(길 · 폴더 ·
25
+ 목록)으로 바꾸며 코어 세션 없이 작업본에 직접 넣었다(사장님 지시 2026-11-13, 말귀 청 (430)~(435)). 전부 **더하기**다 — 안 주면 전과 같다.
26
+
27
+ - **새 컴포넌트 `FolderHead` · `FolderGrid` · `FolderTreeButton` · `FolderTreeTooltip`** — 말귀 청 (435), 사장님: *"core에 포함 시켜야
28
+ 할게 있다면 포함시키고"*. 폴더로 보는 화면의 머리다: 구조 단추(누르면 폴더 나무가 툴팁으로 뜬다) · 길(마지막 칸이 메뉴 단추) ·
29
+ 지금 자리의 폴더 칸들(칸마다 ⋯ 메뉴). 폴더 칸과 나무의 줄은 든 것(카드)이 놓일 자리이고, 폴더는 다른 폴더로 끌어 넣거나 뺄 수 있다.
30
+ 타입 `FolderHeadProps` · `FolderGridProps` · `FolderEntry` · `FolderTreeButtonProps` · `FolderTreeTooltipProps` · `FolderTreeNode`.
31
+ 사전 열쇠 `folder.list` · `folder.open` · `folder.menu` · `folder.placeMenu` · `folder.tree` · `folder.fold` · `folder.unfold`.
32
+ - **새 유틸 — 폴더 안의 폴더를 이름의 길로 셈한다**(`@ihabdevteam/core/utils`): `withAncestors` · `folderChildren` · `folderLeaf` ·
33
+ `folderParent` · `folderJoin` · `folderTrail` · `folderTree` · `isInFolder` · `isFolderNameOk` · `canMoveFolder` · `folderMoveVerdict` ·
34
+ `folderMoved`. 「앙」 안의 「하위」 를 `앙/하위` 로 적는다 — 자료 꼴을 안 바꾸고 층이 생긴다.
35
+ - **아이콘 `folder` · `folder-tree`** — 아이콘 묶음에 없어 소비자가 lucide 를 직접 들여오고 있었다.
36
+ - **`Breadcrumb size`** — 말귀 청 (430), 사장님: *"브래드 크럼에 size prop 넣고 지금건 small. 미디움으로 만들어서 표현해줘"*. 기본 `small` 은
37
+ 전과 같다. `medium` 은 글자 18(`body-1`) · 갈림표 18 · **높이 40 고정** · 마지막 칸만 굵게 · 앞 칸은 얹어도 파랗게 안 바뀌고 옅은 바탕만.
38
+ - **`BreadcrumbItem.menu`** — 마지막 항목에 주면 이름과 ▾ 가 한 단추가 되고, 누르면 그 단추를 넘겨 부른다(메뉴는 부르는 쪽이 띄운다).
39
+ - **`Tooltip prefer`** — 말귀 청 (432), 사장님: *"tooltip 아래로 나오도록."* `bottom` 이면 아래에 자리가 있을 때 아래로 뜬다. 기본 `top` 은 전과 같다.
40
+ - **`ConfirmPopup subtitle`** — 말귀 청 (431). 안내 글을 본문이 아니라 창 머리(부제)에 둔다. `message` 는 안 줘도 된다.
41
+ - **`Button` — `default` 꼴의 `is-hover`** — 말귀 청 (434). 끌어다 놓는 자리가 된 단추가 기본 호버 꼴로 말한다(끄는 동안에는 `:hover` 가 안 걸린다).
42
+ - **`Button` — `transparent-gray` 가 펼쳐 둔 동안(`aria-expanded='true'`)에도 얹은 꼴** — 말귀 청 (433). ⋯ 로 메뉴를 열고 손이 메뉴로
43
+ 내려가도 어느 단추의 메뉴인지 남는다.
44
+
45
+ ## 0.439.0 — 발행 길만 바뀐 판 (코드 변경 없음) · **레지스트리에 없다**
46
+
47
+ > **나가지 않았다.** 2026-11-12 관문은 다 지났는데 npm 의 브라우저 2FA 를 기다리다 시간이 지나
48
+ > `E404 … /-/v1/done` 으로 끝났다. 번호는 비우고 다음 판(0.440.0)이 이 내용까지 싣는다.
49
+
50
+ 0.438.0 과 `src/` 가 같다 — 소비자는 올려도 달라지는 것이 없다. 이 판은 **새 발행 길을 처음 타 보는 판**이다.
51
+
52
+ - 발행은 이제 이 컴퓨터에서 `npm publish --access public`(사장님 지시 2026-11-12, GitHub Actions 안 씀).
53
+ `prepublishOnly` 가 관문 전체(`scripts/publish-check.sh`)를 먼저 돌고, 빨가면 안 나간다.
54
+ - `.github/workflows/publish.yml` 삭제. 묶음 안 `package.json` 의 `scripts.prepublishOnly`·`scripts.release` 가 바뀌었다.
55
+
10
56
  ## 0.438.0 — 곁줄 알림 배지 오른쪽 위 · 훈련 카드 테두리 · 같은 크기 · 떠 있는 판 외곽선
11
57
 
12
58
  - **`TrainingCard` 제목 위 갈래 표시 `category` · `categoryVariant`** — 사장님 지시: *"title 상단에 문장훈련, 단어훈련 표시하도록 하자"* ·
package/README.md CHANGED
@@ -462,12 +462,12 @@ export default function App(){
462
462
 
463
463
  - `scripts/smoke-test.js` — tarball 생성 후 타입체크·SSR 확인을 수행하는 Node 스크립트
464
464
  - `scripts/smoke-test.sh` — 빌드·pack·tarball 설치·CSS 스코프 검증을 수행하는 셸 스크립트
465
- - `scripts/publish-check.sh` — 발행 관문. 판 번호·밀린 것·타입·시험(KST·UTC)·빌드·검수·pack·tarball 소비 흉내를 한 번에 돈다. `npm run release` 가 이것을 지나야 발행을 건다
465
+ - `scripts/publish-check.sh` — 발행 관문. 판 번호·밀린 것·타입·시험(KST·UTC)·빌드·검수·pack·tarball 소비 흉내를 한 번에 돈다. `npm publish --access public` 의 `prepublishOnly` 가 이것을 먼저 돈다
466
466
 
467
467
  CI 워크플로:
468
468
 
469
- - `.github/workflows/core-ci.yml` — PR/푸시 시 빌드·테스트·smoke-test를 실행합니다.
470
- - `.github/workflows/core-publish.yml` — 릴리스 또는 태그 푸시 시 `NPM_TOKEN`을 사용해 퍼블리시합니다. 퍼블리시용 비밀 키는 `NPM_TOKEN`으로 저장하세요.
469
+ - `.github/workflows/publish.yml` — **`main` 에 밀면 자동 발행.** 판 번호가 npm 에 없으면 빌드·검수·smoke test 뒤 신뢰 발행으로 낸다(RELEASE.md).
470
+ - `.github/workflows/ci.yml` — `workflow_dispatch` 전용(저절로 돌지 않는다).
471
471
 
472
472
  퍼블리시 전 로컬 점검 예시:
473
473