@quenty/blend 12.18.2 → 12.18.3
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 +8 -0
- package/package.json +16 -16
- package/src/Shared/Blend/Blend.lua +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [12.18.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/blend@12.18.2...@quenty/blend@12.18.3) (2025-04-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/blend
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [12.18.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/blend@12.18.0...@quenty/blend@12.18.2) (2025-04-07)
|
|
7
15
|
|
|
8
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/blend",
|
|
3
|
-
"version": "12.18.
|
|
3
|
+
"version": "12.18.3",
|
|
4
4
|
"description": "Declarative UI system.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -27,24 +27,24 @@
|
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@quenty/acceltween": "^2.5.
|
|
31
|
-
"@quenty/brio": "^14.17.
|
|
32
|
-
"@quenty/ducktype": "^5.8.
|
|
33
|
-
"@quenty/instanceutils": "^13.17.
|
|
34
|
-
"@quenty/loader": "^10.8.
|
|
35
|
-
"@quenty/maid": "^3.4.
|
|
36
|
-
"@quenty/promise": "^10.10.
|
|
37
|
-
"@quenty/rx": "^13.17.
|
|
38
|
-
"@quenty/signal": "^7.10.
|
|
39
|
-
"@quenty/spring": "^10.8.
|
|
30
|
+
"@quenty/acceltween": "^2.5.3",
|
|
31
|
+
"@quenty/brio": "^14.17.3",
|
|
32
|
+
"@quenty/ducktype": "^5.8.4",
|
|
33
|
+
"@quenty/instanceutils": "^13.17.3",
|
|
34
|
+
"@quenty/loader": "^10.8.3",
|
|
35
|
+
"@quenty/maid": "^3.4.3",
|
|
36
|
+
"@quenty/promise": "^10.10.4",
|
|
37
|
+
"@quenty/rx": "^13.17.3",
|
|
38
|
+
"@quenty/signal": "^7.10.3",
|
|
39
|
+
"@quenty/spring": "^10.8.4",
|
|
40
40
|
"@quenty/steputils": "^3.5.5",
|
|
41
41
|
"@quenty/string": "^3.3.3",
|
|
42
|
-
"@quenty/valuebaseutils": "^13.17.
|
|
43
|
-
"@quenty/valueobject": "^13.17.
|
|
42
|
+
"@quenty/valuebaseutils": "^13.17.3",
|
|
43
|
+
"@quenty/valueobject": "^13.17.3"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@quenty/contentproviderutils": "^12.17.
|
|
47
|
-
"@quenty/playerthumbnailutils": "^10.10.
|
|
46
|
+
"@quenty/contentproviderutils": "^12.17.3",
|
|
47
|
+
"@quenty/playerthumbnailutils": "^10.10.4"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "b06c070ae91d5dab7bd8de6e290ad2caabb15d8f"
|
|
50
50
|
}
|
|
@@ -25,6 +25,8 @@ local SpringObject
|
|
|
25
25
|
|
|
26
26
|
local Blend = {}
|
|
27
27
|
|
|
28
|
+
export type BlendProps = { [any]: any }
|
|
29
|
+
|
|
28
30
|
--[=[
|
|
29
31
|
Creates a new function which will return an observable that, given the props
|
|
30
32
|
in question, will construct a new instance and assign all props. This is the
|
|
@@ -48,10 +50,10 @@ local Blend = {}
|
|
|
48
50
|
@param className string
|
|
49
51
|
@return (props: { [string]: any; }) -> Observable<Instance>
|
|
50
52
|
]=]
|
|
51
|
-
function Blend.New(className: string)
|
|
53
|
+
function Blend.New(className: string): (props: BlendProps) -> Observable.Observable<Instance>
|
|
52
54
|
assert(type(className) == "string", "Bad className")
|
|
53
55
|
|
|
54
|
-
return function(props)
|
|
56
|
+
return function(props: BlendProps)
|
|
55
57
|
return Observable.new(function(sub)
|
|
56
58
|
local instance = Instance.new(className)
|
|
57
59
|
|
|
@@ -267,7 +269,7 @@ end
|
|
|
267
269
|
@return (parent: Instance) -> Observable<T>
|
|
268
270
|
]=]
|
|
269
271
|
function Blend.Attached(constructor)
|
|
270
|
-
return function(parent)
|
|
272
|
+
return function(parent: Instance)
|
|
271
273
|
return Observable.new(function(sub)
|
|
272
274
|
local resource = constructor(parent)
|
|
273
275
|
|
|
@@ -817,7 +819,7 @@ end
|
|
|
817
819
|
In general, cosntructing new instances like this is a bad idea, so it's recommended against it.
|
|
818
820
|
:::
|
|
819
821
|
|
|
820
|
-
```
|
|
822
|
+
```
|
|
821
823
|
local render = Blend.New "ScreenGui" {
|
|
822
824
|
Parent = game.Players.LocalPlayer.PlayerGui;
|
|
823
825
|
[Blend.Children] = {
|
|
@@ -1102,7 +1104,7 @@ end
|
|
|
1102
1104
|
@param props table
|
|
1103
1105
|
@return Maid
|
|
1104
1106
|
]=]
|
|
1105
|
-
function Blend.mount(instance: Instance, props)
|
|
1107
|
+
function Blend.mount(instance: Instance, props: BlendProps): Maid.Maid
|
|
1106
1108
|
assert(typeof(instance) == "Instance", "Bad instance")
|
|
1107
1109
|
|
|
1108
1110
|
local maid = Maid.new()
|
|
@@ -1135,7 +1137,7 @@ function Blend.mount(instance: Instance, props)
|
|
|
1135
1137
|
local observable = Blend.toEventObservable(key(instance, value))
|
|
1136
1138
|
|
|
1137
1139
|
if Observable.isObservable(observable) then
|
|
1138
|
-
table.insert(dependentObservables, {observable, value})
|
|
1140
|
+
table.insert(dependentObservables, { observable, value })
|
|
1139
1141
|
else
|
|
1140
1142
|
warn(string.format("Unable to apply event listener %q", tostring(key)))
|
|
1141
1143
|
end
|
|
@@ -1148,7 +1150,6 @@ function Blend.mount(instance: Instance, props)
|
|
|
1148
1150
|
end
|
|
1149
1151
|
end
|
|
1150
1152
|
|
|
1151
|
-
|
|
1152
1153
|
if #children > 0 then
|
|
1153
1154
|
maid:GiveTask(Blend.Children(instance, children):Subscribe())
|
|
1154
1155
|
end
|
|
@@ -1172,5 +1173,4 @@ function Blend.mount(instance: Instance, props)
|
|
|
1172
1173
|
return maid
|
|
1173
1174
|
end
|
|
1174
1175
|
|
|
1175
|
-
|
|
1176
1176
|
return Blend
|