@wipco/sdui 0.50.0 → 0.50.1
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.
- package/dist/index.d.ts +20 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1625,6 +1625,26 @@ declare const defaultRegistry: {
|
|
|
1625
1625
|
*
|
|
1626
1626
|
* `@wipco/sdui/rich`의 무거운 위젯도 이 함수로 얹는다 —
|
|
1627
1627
|
* `createRegistry(richComponents)`가 곧 Chart/MapPreview를 켜는 스위치다.
|
|
1628
|
+
*
|
|
1629
|
+
* ## 여기 넣어야 하는 것 — 프로젝트 고유 어휘
|
|
1630
|
+
*
|
|
1631
|
+
* **브랜드가 대표적인 예다.** 로고는 프로젝트마다 다르고, 다른 것이 정상이다.
|
|
1632
|
+
* 라이브러리에 `Logo` 를 두면 남의 회사 클래스 이름·상호·아트워크 경로를 **기본값으로
|
|
1633
|
+
* 싣게 되는데, 그것은 라이브러리가 보증할 수 없는 값이다.** 그래서 어휘에 넣지 않았다 —
|
|
1634
|
+
* 빠뜨린 것이 아니라 이 통로가 그 자리다.
|
|
1635
|
+
*
|
|
1636
|
+
* ```tsx
|
|
1637
|
+
* const registry = createRegistry({ Logo: MyBrandLogo });
|
|
1638
|
+
* ```
|
|
1639
|
+
*
|
|
1640
|
+
* 시각 빌더까지 쓰려면 메타데이터도 같이 얹는다 — `catalog` 프롭에
|
|
1641
|
+
* `{ ...allComponentMeta, ...myComponentMeta }` 를 넘기면 팔레트·속성 패널·드롭 판정이
|
|
1642
|
+
* 그 이름을 알게 된다(`@wipco/sdui/meta`).
|
|
1643
|
+
*
|
|
1644
|
+
* 반대로, **업무 로직이 든 위젯을 여기 얹기 전에 한 번 더 생각할 것.** 소비 프로젝트에서
|
|
1645
|
+
* 위젯 25종을 이 통로로 얹었다가 그중 24종이 "어휘가 부족해서 만든 우회"였음이 드러나
|
|
1646
|
+
* 전부 사라졌다. 막힌 자리가 값 계산(`$calc`)이나 상태 쓰기(액션)라면 그것은 어휘의
|
|
1647
|
+
* 빈칸이지 컴포넌트가 필요하다는 뜻이 아니다.
|
|
1628
1648
|
*/
|
|
1629
1649
|
declare function createRegistry(extensions: SduiRegistry): SduiRegistry;
|
|
1630
1650
|
|