kopular 1.4.0 → 1.4.2
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/GUIDE.md +2 -1
- package/package.json +2 -2
package/GUIDE.md
CHANGED
|
@@ -123,7 +123,8 @@ handlers don't count. State on *another* object does still need one:
|
|
|
123
123
|
**Template bindings**: `{{ expr }}` text, `[prop]="expr"` (real fields for
|
|
124
124
|
`id`/`className`/`value`/`disabled`/`checked`; anything else is a plain attribute),
|
|
125
125
|
`(click)`/`(input)`/`(blur)`/`(change)`/`(submit)` events (`(submit)` calls `preventDefault()`
|
|
126
|
-
for you, and Enter in a form's input fires it
|
|
126
|
+
for you, and Enter in a form's input fires it; validating in code? put `novalidate` on the
|
|
127
|
+
`<form>`, or the browser's own `type="email"`/`required` checks block the submit first), text mixed with elements
|
|
127
128
|
(`<label>Email <input></label>`), `*if="expr"`, `*for="Type v of expr"`
|
|
128
129
|
(element type required, no inference), `*mount="expr"` (embeds a live child component,
|
|
129
130
|
composes with `*for`).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kopular",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "Kopular: a small component framework for KopScript — components, reactive state, constructor-injected services, routing, real compiled templates, and HTTP, with no DI container",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@types/jsdom": "^30.0.0",
|
|
67
67
|
"@types/node": "^20.14.0",
|
|
68
68
|
"jsdom": "^25.0.1",
|
|
69
|
-
"kopscript": "^1.
|
|
69
|
+
"kopscript": "^1.4.0",
|
|
70
70
|
"typescript": "^5.5.0",
|
|
71
71
|
"vitest": "^4.1.11"
|
|
72
72
|
},
|