@quenty/basicpane 8.0.0-canary.331.7eefa75.0 → 8.0.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
@@ -3,7 +3,149 @@
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
- # [8.0.0-canary.331.7eefa75.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/basicpane@7.5.0...@quenty/basicpane@8.0.0-canary.331.7eefa75.0) (2023-02-27)
6
+ # [8.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/basicpane@7.21.0...@quenty/basicpane@8.0.0) (2023-10-11)
7
+
8
+ **Note:** Version bump only for package @quenty/basicpane
9
+
10
+
11
+
12
+
13
+
14
+ # [7.21.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/basicpane@7.20.0...@quenty/basicpane@7.21.0) (2023-09-21)
15
+
16
+ **Note:** Version bump only for package @quenty/basicpane
17
+
18
+
19
+
20
+
21
+
22
+ # [7.20.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/basicpane@7.19.0...@quenty/basicpane@7.20.0) (2023-09-04)
23
+
24
+ **Note:** Version bump only for package @quenty/basicpane
25
+
26
+
27
+
28
+
29
+
30
+ # [7.19.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/basicpane@7.18.0...@quenty/basicpane@7.19.0) (2023-08-23)
31
+
32
+ **Note:** Version bump only for package @quenty/basicpane
33
+
34
+
35
+
36
+
37
+
38
+ # [7.18.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/basicpane@7.17.0...@quenty/basicpane@7.18.0) (2023-07-28)
39
+
40
+ **Note:** Version bump only for package @quenty/basicpane
41
+
42
+
43
+
44
+
45
+
46
+ # [7.17.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/basicpane@7.16.0...@quenty/basicpane@7.17.0) (2023-07-25)
47
+
48
+
49
+ ### Features
50
+
51
+ * Add BasicPane:ObserveVisible() ([03b7db5](https://github.com/Quenty/NevermoreEngine/commit/03b7db53a0ae793f70a7cf6abe6d92fc5de8679e))
52
+
53
+
54
+
55
+
56
+
57
+ # [7.16.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/basicpane@7.15.0...@quenty/basicpane@7.16.0) (2023-07-15)
58
+
59
+ **Note:** Version bump only for package @quenty/basicpane
60
+
61
+
62
+
63
+
64
+
65
+ # [7.15.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/basicpane@7.14.0...@quenty/basicpane@7.15.0) (2023-06-17)
66
+
67
+ **Note:** Version bump only for package @quenty/basicpane
68
+
69
+
70
+
71
+
72
+
73
+ # [7.14.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/basicpane@7.13.0...@quenty/basicpane@7.14.0) (2023-05-26)
74
+
75
+ **Note:** Version bump only for package @quenty/basicpane
76
+
77
+
78
+
79
+
80
+
81
+ # [7.13.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/basicpane@7.12.0...@quenty/basicpane@7.13.0) (2023-05-08)
82
+
83
+ **Note:** Version bump only for package @quenty/basicpane
84
+
85
+
86
+
87
+
88
+
89
+ # [7.12.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/basicpane@7.11.1...@quenty/basicpane@7.12.0) (2023-04-10)
90
+
91
+ **Note:** Version bump only for package @quenty/basicpane
92
+
93
+
94
+
95
+
96
+
97
+ ## [7.11.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/basicpane@7.11.0...@quenty/basicpane@7.11.1) (2023-04-07)
98
+
99
+ **Note:** Version bump only for package @quenty/basicpane
100
+
101
+
102
+
103
+
104
+
105
+ # [7.11.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/basicpane@7.10.0...@quenty/basicpane@7.11.0) (2023-04-06)
106
+
107
+ **Note:** Version bump only for package @quenty/basicpane
108
+
109
+
110
+
111
+
112
+
113
+ # [7.10.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/basicpane@7.9.0...@quenty/basicpane@7.10.0) (2023-04-03)
114
+
115
+ **Note:** Version bump only for package @quenty/basicpane
116
+
117
+
118
+
119
+
120
+
121
+ # [7.9.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/basicpane@7.8.0...@quenty/basicpane@7.9.0) (2023-03-31)
122
+
123
+ **Note:** Version bump only for package @quenty/basicpane
124
+
125
+
126
+
127
+
128
+
129
+ # [7.8.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/basicpane@7.7.0...@quenty/basicpane@7.8.0) (2023-03-06)
130
+
131
+
132
+ ### Bug Fixes
133
+
134
+ * BasicPane is accessible in shared ([5dca10d](https://github.com/Quenty/NevermoreEngine/commit/5dca10d32a5f23f7caff6b07d1269b15c3cb6eaf))
135
+
136
+
137
+
138
+
139
+
140
+ # [7.7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/basicpane@7.6.0...@quenty/basicpane@7.7.0) (2023-03-05)
141
+
142
+ **Note:** Version bump only for package @quenty/basicpane
143
+
144
+
145
+
146
+
147
+
148
+ # [7.6.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/basicpane@7.5.0...@quenty/basicpane@7.6.0) (2023-02-27)
7
149
 
8
150
  **Note:** Version bump only for package @quenty/basicpane
9
151
 
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2014-2022 Quenty
3
+ Copyright (c) 2014-2023 James Onnen (Quenty)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/basicpane",
3
- "version": "8.0.0-canary.331.7eefa75.0",
3
+ "version": "8.0.0",
4
4
  "description": "Base UI object with visibility and a maid",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,14 +25,14 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/brio": "9.0.0-canary.331.7eefa75.0",
29
- "@quenty/loader": "6.1.0",
30
- "@quenty/maid": "2.4.0",
31
- "@quenty/rx": "8.0.0-canary.331.7eefa75.0",
32
- "@quenty/signal": "2.3.0"
28
+ "@quenty/brio": "^9.0.0",
29
+ "@quenty/loader": "^7.0.0",
30
+ "@quenty/maid": "^2.6.0",
31
+ "@quenty/rx": "^8.0.0",
32
+ "@quenty/signal": "^3.0.0"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "7eefa756f8bd892b1210349a8133d6d56992dffb"
37
+ "gitHead": "fdeae46099587019ec5fc15317dc673aed379400"
38
38
  }
@@ -23,6 +23,7 @@ local require = require(script.Parent.loader).load(script)
23
23
 
24
24
  local Signal = require("Signal")
25
25
  local Maid = require("Maid")
26
+ local Observable = require("Observable")
26
27
 
27
28
  local BasicPane = {}
28
29
  BasicPane.__index = BasicPane
@@ -40,6 +41,7 @@ function BasicPane.isBasicPane(value)
40
41
  and type(value.SetVisible) == "function"
41
42
  and type(value.IsVisible) == "function"
42
43
  and type(value.Show) == "function"
44
+ and type(value.ObserveVisible) == "function"
43
45
  and type(value.Hide) == "function"
44
46
  and type(value.Toggle) == "function"
45
47
  and type(value.Destroy) == "function"
@@ -107,6 +109,19 @@ function BasicPane:SetVisible(isVisible, doNotAnimate)
107
109
  end
108
110
  end
109
111
 
112
+ function BasicPane:ObserveVisible()
113
+ return Observable.new(function(sub)
114
+ local maid = Maid.new()
115
+
116
+ maid:GiveTask(self.VisibleChanged:Connect(function(isVisible, doNotAnimate)
117
+ sub:Fire(isVisible, doNotAnimate)
118
+ end))
119
+ sub:Fire(self:IsVisible())
120
+
121
+ return maid
122
+ end)
123
+ end
124
+
110
125
  --[=[
111
126
  Shows the pane
112
127
  @param doNotAnimate boolean? -- True if this visiblity should not animate
File without changes