arckode-ui 0.2.3 → 0.2.4

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/CHANGELOG.md CHANGED
@@ -4,6 +4,20 @@ Cambios entre versiones publicadas. Sigue [keepachangelog](https://keepachangelo
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.2.4] — 2026-05-23
8
+
9
+ ### Fixed
10
+ - **🔴 BUG**: `<form @submit>` dentro de un componente con prop `onSubmit` crasheaba.
11
+ El evento `submit` nativo burbujeaba hasta el wrapper del componente, donde el renderer
12
+ lo interceptaba y llamaba el handler con `e.detail` = undefined. Fix documentado en
13
+ skills: todo `<form @submit>` DEBE incluir `e.stopPropagation()`.
14
+ - `skills/components/SKILL.md` — patrón de form actualizado con `e.stopPropagation()` obligatorio.
15
+ - `examples/tasks/TaskForm.ark` — aplicado el fix.
16
+
17
+ ### Added
18
+ - `skills/SKILL.md §14` — trap documentado: cuándo un prop `onX` puede colisionar con
19
+ un evento DOM nativo y cómo evitarlo (stopPropagation o renombrar el prop).
20
+
7
21
  ## [0.2.3] — 2026-05-23
8
22
 
9
23
  ### Fixed
@@ -107,7 +121,8 @@ Cambios entre versiones publicadas. Sigue [keepachangelog](https://keepachangelo
107
121
  - TypeScript declarations no se generaban (`vite-plugin-dts` faltaba) —
108
122
  arreglado en `0.2.2`.
109
123
 
110
- [Unreleased]: https://gitlab.com/underworf/arckode-ui/-/compare/v0.2.3...HEAD
124
+ [Unreleased]: https://gitlab.com/underworf/arckode-ui/-/compare/v0.2.4...HEAD
125
+ [0.2.4]: https://gitlab.com/underworf/arckode-ui/-/compare/v0.2.3...v0.2.4
111
126
  [0.2.3]: https://gitlab.com/underworf/arckode-ui/-/compare/v0.2.2...v0.2.3
112
127
  [0.2.2]: https://gitlab.com/underworf/arckode-ui/-/compare/v0.2.1...v0.2.2
113
128
  [0.2.1]: https://gitlab.com/underworf/arckode-ui/-/compare/v0.2.0...v0.2.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arckode-ui",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "type": "module",
5
5
  "description": "Frontend framework con .ark SFCs, signals, file-system router y analyzer estático con sugerencias concretas de fix. Diseñado para máxima predictibilidad de output de IA.",
6
6
  "keywords": [
@@ -186,6 +186,7 @@ const formInvalid = computed(() => text.value.trim().length < 2)
186
186
 
187
187
  function submit(e: Event) {
188
188
  e.preventDefault()
189
+ e.stopPropagation() // OBLIGATORIO: evita que el submit nativo burbujee al wrapper
189
190
  if (formInvalid.value) return
190
191
  // ... emit o callback
191
192
  }