@quenty/blend 6.21.0 → 6.21.1

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
@@ -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
+ ## [6.21.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/blend@6.21.0...@quenty/blend@6.21.1) (2023-07-11)
7
+
8
+ **Note:** Version bump only for package @quenty/blend
9
+
10
+
11
+
12
+
13
+
6
14
  # [6.21.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/blend@6.20.0...@quenty/blend@6.21.0) (2023-07-10)
7
15
 
8
16
  **Note:** Version bump only for package @quenty/blend
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/blend",
3
- "version": "6.21.0",
3
+ "version": "6.21.1",
4
4
  "description": "Declarative UI system.",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -45,5 +45,5 @@
45
45
  "@quenty/contentproviderutils": "^6.13.0",
46
46
  "@quenty/playerthumbnailutils": "^6.6.0"
47
47
  },
48
- "gitHead": "6c9093879c4547ca55a7b42842e35ad277cc0f08"
48
+ "gitHead": "153300b140825d56a2144be7fe050a8e1b9050b7"
49
49
  }
@@ -32,19 +32,22 @@ local Blend = {}
32
32
  equivalent of a pipe-able Rx command.
33
33
 
34
34
  ```lua
35
- Blend.New "ScreenGui" {
35
+ local render = Blend.New "ScreenGui" {
36
36
  Parent = game.Players.LocalPlayer.PlayerGui;
37
- [Blend.Children] = {
38
- Blend.New "Frame" {
39
- Size = UDim2.new(1, 0, 1, 0);
40
- BackgroundTransparency = 0.5;
41
- };
37
+
38
+ Blend.New "Frame" {
39
+ Size = UDim2.new(1, 0, 1, 0);
40
+ BackgroundTransparency = 0.5;
42
41
  };
43
42
  };
44
43
 
44
+ maid:GiveTask(render:Subscribe(function(gui)
45
+ print(gui)
46
+ end))
47
+ ```
48
+
45
49
  @param className string
46
50
  @return (props: { [string]: any; }) -> Observable<Instance>
47
- ```
48
51
  ]=]
49
52
  function Blend.New(className)
50
53
  assert(type(className) == "string", "Bad className")
@@ -757,7 +760,7 @@ end
757
760
  :::
758
761
 
759
762
  ```lua
760
- Blend.New "ScreenGui" {
763
+ local render = Blend.New "ScreenGui" {
761
764
  Parent = game.Players.LocalPlayer.PlayerGui;
762
765
  [Blend.Children] = {
763
766
  Blend.Single(Blend.Computed(percentVisible, function()
@@ -771,6 +774,10 @@ end
771
774
  end)
772
775
  };
773
776
  };
777
+
778
+ maid:GiveTask(render:Subscribe(function(gui)
779
+ print(gui)
780
+ end))
774
781
  ```
775
782
 
776
783
  @function Single
@@ -1006,7 +1013,7 @@ end
1006
1013
  * If the key is [Blend.Children] then we invoke mountChildren on it.
1007
1014
 
1008
1015
  ```lua
1009
- Blend.mount(frame, {
1016
+ maid:GiveTask(Blend.mount(frame, {
1010
1017
  BackgroundTransparency = 1;
1011
1018
 
1012
1019
  -- All items named InventoryItem
@@ -1017,7 +1024,7 @@ end
1017
1024
  Scale = 0.5;
1018
1025
  };
1019
1026
  };
1020
- })
1027
+ }))
1021
1028
  ```
1022
1029
 
1023
1030
  @param instance Instance