@targoninc/jess-components 0.0.5 → 0.0.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.
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -154,7 +154,7 @@ class DomNode {
|
|
|
154
154
|
return this._node;
|
|
155
155
|
}
|
|
156
156
|
wrapProperty(property, value) {
|
|
157
|
-
if (value && value
|
|
157
|
+
if (value && isSignal(value)) {
|
|
158
158
|
const sig = value;
|
|
159
159
|
this._node[property] = sig.value;
|
|
160
160
|
sig.subscribe((newValue) => {
|
|
@@ -171,7 +171,7 @@ class DomNode {
|
|
|
171
171
|
}
|
|
172
172
|
classes(...classes) {
|
|
173
173
|
for (let cls of classes) {
|
|
174
|
-
if (cls && isSignal(cls
|
|
174
|
+
if (cls && isSignal(cls)) {
|
|
175
175
|
const sig = cls;
|
|
176
176
|
let previousValue = sig.value;
|
|
177
177
|
this._node.classList.add(previousValue);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@targoninc/jess-components",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.7",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"prepublishOnly": "bun run build"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@targoninc/jess": "^0.0.
|
|
20
|
+
"@targoninc/jess": "^0.0.11"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/bun": "latest",
|