@mintjamsinc/ichigojs 0.1.11 → 0.1.12

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.
@@ -7285,8 +7285,18 @@
7285
7285
  * @inheritdoc
7286
7286
  */
7287
7287
  get domUpdater() {
7288
- // Component rendering is handled through onMounted lifecycle hook
7289
- return undefined;
7288
+ // Create and return the DOM updater
7289
+ const updater = {
7290
+ get dependentIdentifiers() {
7291
+ return [];
7292
+ },
7293
+ applyToDOM: () => {
7294
+ if (!this.#isActivated) {
7295
+ this.renderComponent();
7296
+ }
7297
+ }
7298
+ };
7299
+ return updater;
7290
7300
  }
7291
7301
  /**
7292
7302
  * @inheritdoc
@@ -7304,9 +7314,7 @@
7304
7314
  * @inheritdoc
7305
7315
  */
7306
7316
  get onMount() {
7307
- return () => {
7308
- this.renderComponent();
7309
- };
7317
+ return undefined;
7310
7318
  }
7311
7319
  /**
7312
7320
  * @inheritdoc
@@ -7410,10 +7418,12 @@
7410
7418
  }
7411
7419
  // Replace element with component element
7412
7420
  const parent = element.parentNode;
7413
- if (parent) {
7414
- parent.insertBefore(componentElement, element);
7415
- parent.removeChild(element);
7421
+ if (!parent) {
7422
+ console.error(`Element has no parent node. Component '${componentId}' cannot be mounted.`);
7423
+ return;
7416
7424
  }
7425
+ parent.insertBefore(componentElement, element);
7426
+ parent.removeChild(element);
7417
7427
  // Create component instance
7418
7428
  const instance = component.createInstance(properties);
7419
7429
  // Create and mount child application using the parent application's registries