@quenty/inputmode 13.23.4-canary.99eacfd.0 → 13.23.5-canary.e4c3d05.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 +9 -1
- package/package.json +7 -7
- package/src/Client/InputModeTypeSelector.lua +13 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,15 @@
|
|
|
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
|
-
## [13.23.
|
|
6
|
+
## [13.23.5-canary.e4c3d05.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/inputmode@13.23.4...@quenty/inputmode@13.23.5-canary.e4c3d05.0) (2025-12-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/inputmode
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [13.23.4](https://github.com/Quenty/NevermoreEngine/compare/@quenty/inputmode@13.23.3...@quenty/inputmode@13.23.4) (2025-12-28)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @quenty/inputmode
|
|
9
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/inputmode",
|
|
3
|
-
"version": "13.23.
|
|
3
|
+
"version": "13.23.5-canary.e4c3d05.0",
|
|
4
4
|
"description": "Trace input mode state and trigger changes correctly",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/brio": "14.20.
|
|
28
|
+
"@quenty/brio": "14.20.2-canary.e4c3d05.0",
|
|
29
29
|
"@quenty/ducktype": "5.9.0",
|
|
30
30
|
"@quenty/loader": "10.9.0",
|
|
31
31
|
"@quenty/maid": "3.5.0",
|
|
32
|
-
"@quenty/rx": "13.20.0",
|
|
33
|
-
"@quenty/servicebag": "11.13.
|
|
34
|
-
"@quenty/signal": "7.11.
|
|
32
|
+
"@quenty/rx": "13.20.1-canary.e4c3d05.0",
|
|
33
|
+
"@quenty/servicebag": "11.13.3-canary.e4c3d05.0",
|
|
34
|
+
"@quenty/signal": "7.11.2-canary.e4c3d05.0",
|
|
35
35
|
"@quenty/table": "3.8.0",
|
|
36
|
-
"@quenty/valueobject": "13.21.
|
|
36
|
+
"@quenty/valueobject": "13.21.4-canary.e4c3d05.0"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "e4c3d05a0aa9f45a37cbfa372c5e0d8a748c9323"
|
|
42
42
|
}
|
|
@@ -63,7 +63,7 @@ function InputModeTypeSelector.new(
|
|
|
63
63
|
-- keep this ordered so we are always stable in selection.
|
|
64
64
|
self._inputModeTypeList = {}
|
|
65
65
|
|
|
66
|
-
self._activeModeType = self._maid:Add(ValueObject.new())
|
|
66
|
+
self._activeModeType = self._maid:Add(ValueObject.new(nil))
|
|
67
67
|
|
|
68
68
|
--[=[
|
|
69
69
|
Event that fires whenever the active mode changes.
|
|
@@ -115,16 +115,18 @@ end
|
|
|
115
115
|
Returns the current active mode
|
|
116
116
|
@return InputModeType
|
|
117
117
|
]=]
|
|
118
|
-
function InputModeTypeSelector.GetActiveInputType(self: InputModeTypeSelector)
|
|
119
|
-
return rawget(self :: any, "_activeModeType").Value
|
|
118
|
+
function InputModeTypeSelector.GetActiveInputType(self: InputModeTypeSelector): InputModeType.InputModeType?
|
|
119
|
+
return (rawget(self :: any, "_activeModeType") :: ValueObject.ValueObject<InputModeType.InputModeType?>).Value
|
|
120
120
|
end
|
|
121
121
|
|
|
122
122
|
--[=[
|
|
123
123
|
Observes the current active mode
|
|
124
|
-
@return Observable<InputModeType
|
|
124
|
+
@return Observable<InputModeType?>
|
|
125
125
|
]=]
|
|
126
|
-
function InputModeTypeSelector.ObserveActiveInputType(
|
|
127
|
-
|
|
126
|
+
function InputModeTypeSelector.ObserveActiveInputType(
|
|
127
|
+
self: InputModeTypeSelector
|
|
128
|
+
): Observable.Observable<InputModeType.InputModeType?>
|
|
129
|
+
return (rawget(self :: any, "_activeModeType") :: ValueObject.ValueObject<InputModeType.InputModeType?>):Observe()
|
|
128
130
|
end
|
|
129
131
|
|
|
130
132
|
--[=[
|
|
@@ -136,7 +138,8 @@ end
|
|
|
136
138
|
function InputModeTypeSelector.IsActive(self: InputModeTypeSelector, inputModeType: InputModeType.InputModeType)
|
|
137
139
|
assert(InputModeType.isInputModeType(inputModeType), "Bad inputModeType")
|
|
138
140
|
|
|
139
|
-
return rawget(self :: any, "_activeModeType").Value
|
|
141
|
+
return (rawget(self :: any, "_activeModeType") :: ValueObject.ValueObject<InputModeType.InputModeType?>).Value
|
|
142
|
+
== inputModeType
|
|
140
143
|
end
|
|
141
144
|
|
|
142
145
|
--[=[
|
|
@@ -155,8 +158,8 @@ function InputModeTypeSelector.ObserveIsActive(
|
|
|
155
158
|
Rx.map(function(inputType: InputModeType.InputModeType)
|
|
156
159
|
return inputType == inputModeType
|
|
157
160
|
end) :: any,
|
|
158
|
-
Rx.distinct(),
|
|
159
|
-
})
|
|
161
|
+
Rx.distinct() :: any,
|
|
162
|
+
}) :: any
|
|
160
163
|
end
|
|
161
164
|
|
|
162
165
|
--[=[
|
|
@@ -166,7 +169,7 @@ end
|
|
|
166
169
|
]=]
|
|
167
170
|
function InputModeTypeSelector.__index(self: InputModeTypeSelector, index)
|
|
168
171
|
if index == "Value" then
|
|
169
|
-
return rawget(self :: any, "_activeModeType").Value
|
|
172
|
+
return (rawget(self :: any, "_activeModeType") :: ValueObject.ValueObject<InputModeType.InputModeType?>).Value
|
|
170
173
|
elseif InputModeTypeSelector[index] then
|
|
171
174
|
return InputModeTypeSelector[index]
|
|
172
175
|
else
|