@panyam/tsappkit 0.7.7 → 0.7.8
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/README.md +5 -3
- package/dist/index.d.mts +39 -89
- package/dist/index.d.ts +39 -89
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/LCMComponent.ts +24 -77
- package/src/LifecycleController.ts +16 -13
package/dist/index.mjs
CHANGED
|
@@ -325,8 +325,7 @@ var LifecycleController = class {
|
|
|
325
325
|
* Initialize component tree starting from root component
|
|
326
326
|
*
|
|
327
327
|
* @param rootComponent The root component to start initialization from
|
|
328
|
-
* @
|
|
329
|
-
* @returns Promise that resolves when all components are fully initialized
|
|
328
|
+
* @returns Promise that resolves when every component has activated
|
|
330
329
|
*/
|
|
331
330
|
async initializeFromRoot(rootComponent) {
|
|
332
331
|
await this.performLocalInit(rootComponent);
|
|
@@ -354,6 +353,7 @@ var LifecycleController = class {
|
|
|
354
353
|
`Component hierarchy integrity violation: Component '${component.constructor.name}' discovered as child of multiple parents at level ${level}. Component hierarchies must form a tree structure where each component has exactly one parent.`
|
|
355
354
|
);
|
|
356
355
|
}
|
|
356
|
+
visited.add(component);
|
|
357
357
|
this.emitEvent(LifecycleEventTypes.LOCAL_INIT_STARTED, component, level);
|
|
358
358
|
const result = component.performLocalInit();
|
|
359
359
|
promises.push(Promise.resolve(result).then((children) => {
|