slicejs-web-framework 3.3.5 → 3.3.6

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.
@@ -716,6 +716,11 @@ export default class Controller {
716
716
  // Registrar en activeComponents
717
717
  this.activeComponents.set(component.sliceId, component);
718
718
 
719
+ // Exponer sliceId como atributo HTML para búsqueda por DOM (destroyByContainer, etc.)
720
+ if (typeof component.setAttribute === 'function') {
721
+ component.setAttribute('slice-id', component.sliceId);
722
+ }
723
+
719
724
  // 🚀 OPTIMIZACIÓN: Actualizar índice inverso de hijos
720
725
  if (parent) {
721
726
  if (!this.childrenIndex.has(parent.sliceId)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slicejs-web-framework",
3
- "version": "3.3.5",
3
+ "version": "3.3.6",
4
4
  "description": "",
5
5
  "engines": {
6
6
  "node": ">=20"