@vmscloud/moz-ui-components-core 0.1.64 → 0.1.65

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.
@@ -98,6 +98,11 @@ export interface CoreInstance<P, API> {
98
98
  setLocale(messages: MozLocaleMessages): void;
99
99
  /** 명령형 API (open/close/focus/setLoading 등) */
100
100
  api: API;
101
+ /**
102
+ * 호스트가 문서에 붙었음을 알린다 → 코어 setup 의 `onMounted` 를 1회 실행한다.
103
+ * `CoreFactoryOpts.deferMounted` 로 만든 인스턴스에서만 의미가 있다(그 외에는 생성 때 이미 실행돼 no-op).
104
+ */
105
+ notifyMounted(): void;
101
106
  }
102
107
  export interface CoreFactoryOpts {
103
108
  slots?: Record<string, SlotRenderer>;
@@ -117,6 +122,13 @@ export interface CoreFactoryOpts {
117
122
  * (Vue: vnode.props 키 / React: props 키). 없으면 ctx.controlled 는 initialProps 키로 폴백.
118
123
  */
119
124
  providedKeys?: string[];
125
+ /**
126
+ * 첫 렌더는 지금 하되 setup 의 `onMounted` 는 `instance.notifyMounted()` 때까지 미룬다.
127
+ * 호스트가 아직 문서에 붙기 전에 코어를 만들어야 하는 래퍼용이다 — Vue 브릿지는 slot 콘텐츠를
128
+ * 소비자와 같은 렌더 패스에서 그리려고 host 가 붙기 전에 코어를 만든다. 크기를 재는 onMounted
129
+ * (SplitPane 등)는 붙은 뒤에 실행돼야 하므로 래퍼가 붙은 시점에 알린다.
130
+ */
131
+ deferMounted?: boolean;
120
132
  }
121
133
  /** 모든 컴포넌트가 만족하는 단일 코어 계약 — mount-함수 팩토리 */
122
134
  export type CoreFactory<P, E, API> = (container: HTMLElement, props: P, emit: CoreEmit<E>, opts?: CoreFactoryOpts) => CoreInstance<P, API>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vmscloud/moz-ui-components-core",
3
- "version": "0.1.64",
3
+ "version": "0.1.65",
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",