@vmscloud/moz-ui-components-core 0.1.66 → 0.1.67
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.cjs +88 -88
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +231 -226
- package/dist/index.js.map +1 -1
- package/dist/runtime/ChromeComponent.d.ts +5 -0
- package/package.json +1 -1
|
@@ -11,12 +11,15 @@ import { nothing, TemplateResult } from 'lit-html';
|
|
|
11
11
|
* - `template()` 서브클래스가 현재 상태 → 템플릿 반환
|
|
12
12
|
* - `requestUpdate()` microtask 에 1회로 배치 렌더 (고빈도 갱신 합치기)
|
|
13
13
|
* - `addCleanup()` 구독/리스너 등록 → destroy 시 일괄 해제
|
|
14
|
+
* - 루트 렌더는 자기 끝 마커 앞까지만 관리한다. `renderBefore` 없이 그리면 lit 의 루트 파트가
|
|
15
|
+
* 컨테이너 끝까지를 차지해, 템플릿이 바뀔 때 뒤에 붙은 프레임워크 노드(Vue slot Fragment 앵커 등)까지 지운다.
|
|
14
16
|
*/
|
|
15
17
|
export declare abstract class ChromeComponent {
|
|
16
18
|
protected readonly container: HTMLElement;
|
|
17
19
|
private updateScheduled;
|
|
18
20
|
private mounted;
|
|
19
21
|
private cleanups;
|
|
22
|
+
private endMarker;
|
|
20
23
|
constructor(container: HTMLElement);
|
|
21
24
|
/** 서브클래스 구현: 현재 상태로부터 lit-html 템플릿을 반환 */
|
|
22
25
|
protected abstract template(): TemplateResult | typeof nothing;
|
|
@@ -26,6 +29,8 @@ export declare abstract class ChromeComponent {
|
|
|
26
29
|
requestUpdate(): void;
|
|
27
30
|
/** 즉시 동기 렌더 (테스트/긴급 갱신용) */
|
|
28
31
|
protected renderNow(): void;
|
|
32
|
+
/** 첫 렌더 때 컨테이너 끝에 둔 마커 — 이후 프레임워크가 뒤에 붙이는 노드는 루트 파트 밖에 있다. */
|
|
33
|
+
private rootOptions;
|
|
29
34
|
/** 구독/리스너 등 정리 대상 등록 */
|
|
30
35
|
protected addCleanup(fn: () => void): void;
|
|
31
36
|
/** 서브클래스 라이프사이클 훅 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vmscloud/moz-ui-components-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.67",
|
|
4
4
|
"description": "Framework-agnostic headless UI primitives (lit-html) for @vmscloud/moz-ui-components — mount-function factory core. References the moz-ui-grid runtime pattern but has ZERO dependency on any grid package.",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"type": "module",
|