@torpor/view 0.4.6 → 0.4.7

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/compile.cjs +8 -1
  3. package/dist/compile.cjs.map +1 -1
  4. package/dist/compile.js +8 -1
  5. package/dist/compile.js.map +1 -1
  6. package/dist/index.cjs +1 -1
  7. package/dist/index.cjs.map +1 -1
  8. package/dist/index.d.cts +1 -1
  9. package/dist/index.d.cts.map +1 -1
  10. package/dist/index.d.ts +1 -1
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +1 -1
  13. package/dist/index.js.map +1 -1
  14. package/package.json +1 -1
  15. package/src/compile/build/client/buildFragment.ts +9 -0
  16. package/src/render/addEvent.ts +4 -2
  17. package/test/await/components/output/Await-client.ts +1 -1
  18. package/test/await/components/temp/{Await-client-8ad3f252c4550020753eea3c04cde0da435c6aae.ts → Await-client-1587441666890e0beae15f28451bcd04b90cc597.ts} +1 -1
  19. package/test/bind/components/output/BindText-client.ts +1 -1
  20. package/test/bind/components/temp/{BindText-client-eebe53ed8c48b5bbd046621efa6d9b5d3d753f6f.ts → BindText-client-c56c86c514eed2bcbe3f9c1bf23507a98d7d14b1.ts} +1 -1
  21. package/test/class/components/output/Class-client.ts +1 -1
  22. package/test/class/components/temp/{Class-client-28a59ce1bd5ccd2c6cc48d803216a5346fcf2329.ts → Class-client-d0f120c1171030cbe2862a26bc11965cacdd2b18.ts} +1 -1
  23. package/test/events/components/output/Events-client.ts +2 -2
  24. package/test/events/components/temp/{Events-client-af611081aa6cb1567461367daf3068df86c6ff23.ts → Events-client-8708dd031fb42b980e47799e6f6c0de7a35ef7ae.ts} +2 -2
  25. package/test/for/components/output/ForContainingFunction-client.ts +1 -1
  26. package/test/for/components/temp/{ForContainingFunction-client-f29a23d27f5458760406127c58520d6abf924409.ts → ForContainingFunction-client-77ccaeea93b0a489c97113bd6bc522e62b7c914a.ts} +1 -1
  27. package/test/function/components/output/Function-client.ts +1 -1
  28. package/test/function/components/temp/{Function-client-8ae7f26bcaee6b57251659efc2abcdfd9c0d30e1.ts → Function-client-5173bdb6a5e2eb86060579eb23f70fec20e9b612.ts} +1 -1
  29. package/test/if/components/output/IfContainingFunction-client.ts +1 -1
  30. package/test/if/components/temp/{IfContainingFunction-client-1d8f1ce12f4098b425be18149d9c58ea9c4e8de6.ts → IfContainingFunction-client-56c90b091921645a91d5398739cec4e6d56aa0ed.ts} +1 -1
  31. package/test/party/components/output/Conditional-client.ts +1 -1
  32. package/test/party/components/output/Context-client.ts +1 -1
  33. package/test/party/components/output/EmitToParent-client.ts +2 -2
  34. package/test/party/components/output/EventClick-client.ts +1 -1
  35. package/test/party/components/output/InputSelect-client.ts +2 -2
  36. package/test/party/components/temp/{Conditional-client-ed1ba6a97d722503560ffbb3dece1d9af5fbadd2.ts → Conditional-client-96ff11fe28ab46048761ff885b8224635244cd38.ts} +1 -1
  37. package/test/party/components/temp/{Context-client-fd121c4a2766ee5b41caf79f485f5f11142e43e0.ts → Context-client-73383a2149cb9198a5dfebf1e891987d261f399f.ts} +1 -1
  38. package/test/party/components/temp/{EmitToParent-client-3666116e65f3e8d4dbb0782d93f631a855b094ec.ts → EmitToParent-client-1292c44777f86076cd7c4060deb2016b9fb7e4cd.ts} +2 -2
  39. package/test/party/components/temp/{EventClick-client-4344b8012e6f6310b25c6b43d9f5991dc93037e8.ts → EventClick-client-932a2a4a797aca3cb6b869daa0ba314b46505a73.ts} +1 -1
  40. package/test/party/components/temp/{InputSelect-client-6827b541b2a0569745e21823bc3420bdfff746b2.ts → InputSelect-client-fa6d6680ce239722a0c29b754a2adc26dd2b4ab0.ts} +2 -2
  41. package/test/props/components/output/Reactive-client.ts +1 -1
  42. package/test/props/components/temp/{Reactive-client-dc9aadcdcb4a950141942769806a1017c9076b20.ts → Reactive-client-8601769debe846fc809ca960f0ca4b71762912db.ts} +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @torpor/view
2
2
 
3
+ ## 0.4.7
4
+
5
+ ### Patch Changes
6
+
7
+ - 3cc2168: Fix: ignore null event attributes
8
+ - 13f2afb: Fix: more HTML variable types
9
+
3
10
  ## 0.4.6
4
11
 
5
12
  ### Patch Changes
package/dist/compile.cjs CHANGED
@@ -487,7 +487,14 @@ function declareComponentFragmentVars(fragment, node, path, status, b, parentNam
487
487
  function elementTypeName(node) {
488
488
  switch (node.tagName.toLowerCase()) {
489
489
  case "div":
490
- case "input": return `HTML${node.tagName.substring(0, 1).toUpperCase() + node.tagName.substring(1)}Element`;
490
+ case "span":
491
+ case "input":
492
+ case "select":
493
+ case "option":
494
+ case "button":
495
+ case "form": return `HTML${node.tagName.substring(0, 1).toUpperCase() + node.tagName.substring(1)}Element`;
496
+ case "a": return "HTMLAnchorElement";
497
+ case "img": return "HTMLImageElement";
491
498
  case "textarea": return "HTMLTextAreaElement";
492
499
  }
493
500
  return "HTMLElement";