@rbxts/centurion-ui 1.0.6 → 1.0.8

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/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 paradox
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -38,6 +38,7 @@ local function TerminalTextField(_param)
38
38
  local commandHistoryIndex = source(nil)
39
39
  local suggestionText = source("")
40
40
  local currentTextValue = ""
41
+ local onScreenKeyboard = false
41
42
  -- Focus text field when terminal becomes visible
42
43
  effect(function()
43
44
  if visible() then
@@ -213,7 +214,10 @@ local function TerminalTextField(_param)
213
214
  _result(currentText)
214
215
  end
215
216
  textBox.Text = ""
216
- textBox:CaptureFocus()
217
+ if not onScreenKeyboard then
218
+ textBox:CaptureFocus()
219
+ end
220
+ onScreenKeyboard = false
217
221
  end,
218
222
  TextChanged = function(currentText)
219
223
  local textBox = ref()
@@ -249,6 +253,7 @@ local function TerminalTextField(_param)
249
253
  return nil
250
254
  end
251
255
  task.wait()
256
+ onScreenKeyboard = true
252
257
  textBox:ReleaseFocus(true)
253
258
  end,
254
259
  },
package/package.json CHANGED
@@ -1,50 +1,49 @@
1
1
  {
2
- "name": "@rbxts/centurion-ui",
3
- "description": "Terminal UI for the Centurion command framework",
4
- "version": "1.0.6",
5
- "author": "paradoxuum",
6
- "license": "MIT",
7
- "main": "out/init.lua",
8
- "types": "out/index.d.ts",
9
- "files": [
10
- "out",
11
- "!**/*.tsbuildinfo",
12
- "!**/__tests__"
13
- ],
14
- "keywords": [
15
- "roblox",
16
- "roblox-ts",
17
- "command"
18
- ],
19
- "repository": {
20
- "type": "git",
21
- "url": "git+https://github.com/paradoxuum/centurion.git"
22
- },
23
- "bugs": {
24
- "url": "https://github.com/paradoxuum/centurion/issues"
25
- },
26
- "publishConfig": {
27
- "access": "public"
28
- },
29
- "scripts": {
30
- "prepack": "pnpm build",
31
- "build": "shx rm -rf out && rbxtsc --verbose",
32
- "dev": "shx rm -rf out && rbxtsc -w"
33
- },
34
- "devDependencies": {
35
- "@rbxts/centurion": "workspace:^",
36
- "@rbxts/compiler-types": "3.0.0-types.0",
37
- "@rbxts/types": "^1.0.813",
38
- "roblox-ts": "3.0.0",
39
- "shx": "^0.3.4",
40
- "typescript": "5.5.3"
41
- },
42
- "dependencies": {
43
- "@rbxts/services": "^1.5.5",
44
- "@rbxts/set-timeout": "^1.1.2",
45
- "@rbxts/vide": "^0.5.3"
46
- },
47
- "peerDependencies": {
48
- "@rbxts/centurion": "workspace:^"
49
- }
50
- }
2
+ "name": "@rbxts/centurion-ui",
3
+ "description": "Terminal UI for the Centurion command framework",
4
+ "version": "1.0.8",
5
+ "author": "paradoxuum",
6
+ "license": "MIT",
7
+ "main": "out/init.lua",
8
+ "types": "out/index.d.ts",
9
+ "files": [
10
+ "out",
11
+ "!**/*.tsbuildinfo",
12
+ "!**/__tests__"
13
+ ],
14
+ "keywords": [
15
+ "roblox",
16
+ "roblox-ts",
17
+ "command"
18
+ ],
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/paradoxuum/centurion.git"
22
+ },
23
+ "bugs": {
24
+ "url": "https://github.com/paradoxuum/centurion/issues"
25
+ },
26
+ "publishConfig": {
27
+ "access": "public"
28
+ },
29
+ "devDependencies": {
30
+ "@rbxts/compiler-types": "3.0.0-types.0",
31
+ "@rbxts/types": "^1.0.813",
32
+ "roblox-ts": "3.0.0",
33
+ "shx": "^0.3.4",
34
+ "typescript": "5.5.3",
35
+ "@rbxts/centurion": "^1.0.1"
36
+ },
37
+ "dependencies": {
38
+ "@rbxts/services": "^1.5.5",
39
+ "@rbxts/set-timeout": "^1.1.2",
40
+ "@rbxts/vide": "^0.5.3"
41
+ },
42
+ "peerDependencies": {
43
+ "@rbxts/centurion": "^1.0.1"
44
+ },
45
+ "scripts": {
46
+ "build": "shx rm -rf out && rbxtsc --verbose",
47
+ "dev": "shx rm -rf out && rbxtsc -w"
48
+ }
49
+ }