@lightningjs/blits 1.19.1 → 1.20.0
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
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v1.20.0
|
|
4
|
+
|
|
5
|
+
_12 feb 2025_
|
|
6
|
+
|
|
7
|
+
- Improved attribute definitions used for autocompletion in VScode extension
|
|
8
|
+
- Fixed calculation of `align-items` in Layout component
|
|
9
|
+
- Fixed issue with sorting reactive arrays
|
|
10
|
+
- Upgraded to renderer v2.12.0
|
|
11
|
+
|
|
3
12
|
## v1.19.1
|
|
4
13
|
|
|
5
14
|
_3 feb 2025_
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightningjs/blits",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.0",
|
|
4
4
|
"description": "Blits: The Lightning 3 App Development Framework",
|
|
5
5
|
"bin": "bin/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@lightningjs/msdf-generator": "^1.1.1",
|
|
55
|
-
"@lightningjs/renderer": "^2.
|
|
55
|
+
"@lightningjs/renderer": "^2.12.0"
|
|
56
56
|
},
|
|
57
57
|
"repository": {
|
|
58
58
|
"type": "git",
|
|
@@ -113,7 +113,7 @@ const layoutFn = function (config) {
|
|
|
113
113
|
if (align !== 0) {
|
|
114
114
|
for (let i = 0; i < childrenLength; i++) {
|
|
115
115
|
const node = children[i]
|
|
116
|
-
node[oppositePosition] = otherDimension
|
|
116
|
+
node[oppositePosition] = otherDimension * align
|
|
117
117
|
node[oppositeMount] = align
|
|
118
118
|
}
|
|
119
119
|
}
|
|
@@ -113,6 +113,7 @@ const reactiveProxy = (original, _parent = null, _key, global) => {
|
|
|
113
113
|
} else if (
|
|
114
114
|
target[key] !== null &&
|
|
115
115
|
target[key] !== undefined &&
|
|
116
|
+
Array.isArray(target) === false &&
|
|
116
117
|
Object.getPrototypeOf(value) === Object.prototype
|
|
117
118
|
) {
|
|
118
119
|
value = Object.assign(receiver[key], value)
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"Element",
|
|
12
12
|
"Text",
|
|
13
13
|
"Layout",
|
|
14
|
-
"RouterView"
|
|
14
|
+
"RouterView",
|
|
15
|
+
"Component"
|
|
15
16
|
]
|
|
16
17
|
},
|
|
17
18
|
"y": {
|
|
@@ -26,7 +27,8 @@
|
|
|
26
27
|
"Element",
|
|
27
28
|
"Text",
|
|
28
29
|
"Layout",
|
|
29
|
-
"RouterView"
|
|
30
|
+
"RouterView",
|
|
31
|
+
"Component"
|
|
30
32
|
]
|
|
31
33
|
},
|
|
32
34
|
"z": {
|
|
@@ -69,7 +71,6 @@
|
|
|
69
71
|
"usedIn": [
|
|
70
72
|
"Element",
|
|
71
73
|
"Text",
|
|
72
|
-
"Layout",
|
|
73
74
|
"RouterView"
|
|
74
75
|
]
|
|
75
76
|
},
|
|
@@ -99,7 +100,6 @@
|
|
|
99
100
|
"usedIn": [
|
|
100
101
|
"Element",
|
|
101
102
|
"Text",
|
|
102
|
-
"Layout",
|
|
103
103
|
"RouterView"
|
|
104
104
|
]
|
|
105
105
|
},
|
|
@@ -114,7 +114,6 @@
|
|
|
114
114
|
"usedIn": [
|
|
115
115
|
"Element",
|
|
116
116
|
"Text",
|
|
117
|
-
"Layout",
|
|
118
117
|
"RouterView"
|
|
119
118
|
]
|
|
120
119
|
},
|
|
@@ -145,7 +144,8 @@
|
|
|
145
144
|
"Element",
|
|
146
145
|
"Text",
|
|
147
146
|
"Layout",
|
|
148
|
-
"RouterView"
|
|
147
|
+
"RouterView",
|
|
148
|
+
"Component"
|
|
149
149
|
]
|
|
150
150
|
},
|
|
151
151
|
"rotation": {
|
|
@@ -175,7 +175,8 @@
|
|
|
175
175
|
"Element",
|
|
176
176
|
"Text",
|
|
177
177
|
"Layout",
|
|
178
|
-
"RouterView"
|
|
178
|
+
"RouterView",
|
|
179
|
+
"Component"
|
|
179
180
|
]
|
|
180
181
|
},
|
|
181
182
|
"mount": {
|
|
@@ -245,7 +246,6 @@
|
|
|
245
246
|
"usedIn": [
|
|
246
247
|
"Element",
|
|
247
248
|
"Text",
|
|
248
|
-
"Layout",
|
|
249
249
|
"RouterView"
|
|
250
250
|
]
|
|
251
251
|
},
|
|
@@ -262,7 +262,8 @@
|
|
|
262
262
|
"reactive": true,
|
|
263
263
|
"description": "The overflow attribute allows the element to extend beyond the specified height and width. Possible values are true or false.",
|
|
264
264
|
"usedIn": [
|
|
265
|
-
"Text"
|
|
265
|
+
"Text",
|
|
266
|
+
"Element"
|
|
266
267
|
]
|
|
267
268
|
},
|
|
268
269
|
"content": {
|
|
@@ -330,7 +331,7 @@
|
|
|
330
331
|
"Text"
|
|
331
332
|
]
|
|
332
333
|
},
|
|
333
|
-
"
|
|
334
|
+
"maxwidth": {
|
|
334
335
|
"attrType": "regular",
|
|
335
336
|
"types": [
|
|
336
337
|
"number"
|
|
@@ -398,13 +399,9 @@
|
|
|
398
399
|
"textoverflow": {
|
|
399
400
|
"attrType": "regular",
|
|
400
401
|
"types": [
|
|
401
|
-
"
|
|
402
|
-
],
|
|
403
|
-
"values": [
|
|
404
|
-
"true",
|
|
405
|
-
"false"
|
|
402
|
+
"string"
|
|
406
403
|
],
|
|
407
|
-
"defaultValue":
|
|
404
|
+
"defaultValue": null,
|
|
408
405
|
"reactive": true,
|
|
409
406
|
"description": "The suffix to be added when text is cropped due to bounds limits. Defaults to ...",
|
|
410
407
|
"usedIn": [
|
|
@@ -436,10 +433,7 @@
|
|
|
436
433
|
"reactive": true,
|
|
437
434
|
"description": "Controls how much space will be added between each Element or Component.",
|
|
438
435
|
"usedIn": [
|
|
439
|
-
"
|
|
440
|
-
"Text",
|
|
441
|
-
"Layout",
|
|
442
|
-
"RouterView"
|
|
436
|
+
"Layout"
|
|
443
437
|
]
|
|
444
438
|
},
|
|
445
439
|
"is": {
|
|
@@ -498,7 +492,8 @@
|
|
|
498
492
|
"Element",
|
|
499
493
|
"Text",
|
|
500
494
|
"Layout",
|
|
501
|
-
"RouterView"
|
|
495
|
+
"RouterView",
|
|
496
|
+
"Component"
|
|
502
497
|
]
|
|
503
498
|
},
|
|
504
499
|
"align-items": {
|
|
@@ -515,11 +510,7 @@
|
|
|
515
510
|
"reactive": true,
|
|
516
511
|
"description": "Specifies how to align children on the opposite axis.",
|
|
517
512
|
"usedIn": [
|
|
518
|
-
"
|
|
519
|
-
"Element",
|
|
520
|
-
"Text",
|
|
521
|
-
"Layout",
|
|
522
|
-
"RouterView"
|
|
513
|
+
"Layout"
|
|
523
514
|
]
|
|
524
515
|
},
|
|
525
516
|
"padding": {
|
|
@@ -554,10 +545,7 @@
|
|
|
554
545
|
"reactive": true,
|
|
555
546
|
"description": "Adds spacing between the content and the edges of the Layout Component.",
|
|
556
547
|
"usedIn": [
|
|
557
|
-
"
|
|
558
|
-
"Text",
|
|
559
|
-
"Layout",
|
|
560
|
-
"RouterView"
|
|
548
|
+
"Layout"
|
|
561
549
|
]
|
|
562
550
|
},
|
|
563
551
|
"@loaded": {
|
|
@@ -585,5 +573,17 @@
|
|
|
585
573
|
"Element",
|
|
586
574
|
"Text"
|
|
587
575
|
]
|
|
576
|
+
},
|
|
577
|
+
"@updated": {
|
|
578
|
+
"attrType": "event",
|
|
579
|
+
"types": [
|
|
580
|
+
"string"
|
|
581
|
+
],
|
|
582
|
+
"defaultValue": null,
|
|
583
|
+
"reactive": false,
|
|
584
|
+
"description": " Fires when each update in Layout children. Must be a function reference.",
|
|
585
|
+
"usedIn": [
|
|
586
|
+
"Layout"
|
|
587
|
+
]
|
|
588
588
|
}
|
|
589
589
|
}
|