@rbxts/centurion-ui 1.0.0-dev-2d5383e → 1.0.0-dev-dd918ea
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/out/app/{centurion-app.lua → centurion-app.luau} +1 -1
- package/out/app/{init.lua → init.luau} +1 -1
- package/out/components/history/{history-line.lua → history-line.luau} +1 -1
- package/out/components/history/{history-list.lua → history-list.luau} +1 -1
- package/out/components/history/{init.lua → init.luau} +1 -1
- package/out/components/{init.lua → init.luau} +1 -1
- package/out/components/suggestions/{badge.lua → badge.luau} +1 -1
- package/out/components/suggestions/{init.lua → init.luau} +1 -1
- package/out/components/suggestions/{main-suggestion.lua → main-suggestion.luau} +1 -1
- package/out/components/suggestions/{suggestion-list.lua → suggestion-list.luau} +1 -1
- package/out/components/suggestions/{suggestions.lua → suggestions.luau} +1 -1
- package/out/components/suggestions/types.luau +2 -0
- package/out/components/suggestions/{util.lua → util.luau} +1 -1
- package/out/components/terminal/{command.lua → command.luau} +1 -1
- package/out/components/terminal/{init.lua → init.luau} +1 -1
- package/out/components/terminal/{suggestion.lua → suggestion.luau} +1 -1
- package/out/components/terminal/{terminal-text-field.lua → terminal-text-field.luau} +15 -9
- package/out/components/terminal/{terminal.lua → terminal.luau} +14 -2
- package/out/components/ui/{frame.lua → frame.luau} +1 -1
- package/out/components/ui/{group.lua → group.luau} +1 -1
- package/out/components/ui/{layer.lua → layer.luau} +1 -1
- package/out/components/ui/{outline.lua → outline.luau} +1 -1
- package/out/components/ui/{padding.lua → padding.luau} +1 -1
- package/out/components/ui/{scrolling-frame.lua → scrolling-frame.luau} +1 -1
- package/out/components/ui/{text-field.lua → text-field.luau} +1 -1
- package/out/components/ui/{text.lua → text.luau} +1 -1
- package/out/constants/{options.lua → options.luau} +1 -1
- package/out/constants/{text.lua → text.luau} +1 -1
- package/out/constants/{util.lua → util.luau} +1 -1
- package/out/hooks/{use-atom.lua → use-atom.luau} +1 -1
- package/out/hooks/{use-client.lua → use-client.luau} +1 -1
- package/out/hooks/{use-event.lua → use-event.luau} +1 -1
- package/out/hooks/{use-history.lua → use-history.luau} +1 -1
- package/out/hooks/{use-px.lua → use-px.luau} +1 -1
- package/out/hooks/{use-text-bounds.lua → use-text-bounds.luau} +1 -1
- package/out/{init.lua → init.luau} +1 -1
- package/out/{palette.lua → palette.luau} +1 -1
- package/out/{store.lua → store.luau} +1 -1
- package/out/types.luau +2 -0
- package/package.json +7 -8
- package/out/components/suggestions/types.lua +0 -2
- package/out/constants/springs.d.ts +0 -19
- package/out/constants/springs.lua +0 -20
- package/out/types.lua +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
-- Compiled with roblox-ts
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local UserInputService = TS.import(script, TS.getModule(script, "@rbxts", "services")).UserInputService
|
|
4
4
|
local _vide = TS.import(script, TS.getModule(script, "@rbxts", "vide").src)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
-- Compiled with roblox-ts
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local CenturionType = TS.import(script, TS.getModule(script, "@rbxts", "centurion").out).CenturionType
|
|
4
4
|
local _services = TS.import(script, TS.getModule(script, "@rbxts", "services"))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
-- Compiled with roblox-ts
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local Vide = TS.import(script, TS.getModule(script, "@rbxts", "vide").src)
|
|
4
4
|
local useAtom = TS.import(script, script.Parent.Parent.Parent, "hooks", "use-atom").useAtom
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
-- Compiled with roblox-ts
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local ArrayUtil = TS.import(script, TS.getModule(script, "@rbxts", "centurion").out.shared.util.data).ArrayUtil
|
|
4
4
|
local _vide = TS.import(script, TS.getModule(script, "@rbxts", "vide").src)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
-- Compiled with roblox-ts
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local TextService = TS.import(script, TS.getModule(script, "@rbxts", "services")).TextService
|
|
4
4
|
local _vide = TS.import(script, TS.getModule(script, "@rbxts", "vide").src)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
-- Compiled with roblox-ts
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local subscribe = TS.import(script, TS.getModule(script, "@rbxts", "charm").src).subscribe
|
|
4
4
|
local UserInputService = TS.import(script, TS.getModule(script, "@rbxts", "services")).UserInputService
|
|
@@ -172,10 +172,11 @@ local function TerminalTextField(_param)
|
|
|
172
172
|
return nil
|
|
173
173
|
end
|
|
174
174
|
local currentText = textBox.Text
|
|
175
|
+
local textParts = terminalTextParts()
|
|
176
|
+
local lastPart = textParts[#textParts]
|
|
175
177
|
local atNextPart = string.sub(currentText, -1) == " "
|
|
176
178
|
if commandPath == nil then
|
|
177
179
|
local suggestionTitle = suggestion.title
|
|
178
|
-
local textParts = terminalTextParts()
|
|
179
180
|
if #textParts == 0 then
|
|
180
181
|
return nil
|
|
181
182
|
end
|
|
@@ -188,9 +189,8 @@ local function TerminalTextField(_param)
|
|
|
188
189
|
newText ..= suggestionTitle
|
|
189
190
|
table.insert(pathParts, suggestionTitle)
|
|
190
191
|
elseif not (#textParts == 0) then
|
|
191
|
-
local lastPartSize = textParts[#textParts]
|
|
192
192
|
local _newText = newText
|
|
193
|
-
local _arg1 = #newText - #
|
|
193
|
+
local _arg1 = #newText - #lastPart
|
|
194
194
|
newText = string.sub(_newText, 0, _arg1) .. suggestionTitle
|
|
195
195
|
local _arg0 = #textParts - 1
|
|
196
196
|
table.remove(pathParts, _arg0 + 1)
|
|
@@ -255,17 +255,23 @@ local function TerminalTextField(_param)
|
|
|
255
255
|
end
|
|
256
256
|
local newText = currentText
|
|
257
257
|
local otherSuggestion = suggestion.others[1]
|
|
258
|
+
local trailingSpaces = (string.match(newText, "(%s+)$"))
|
|
258
259
|
local _newText = newText
|
|
259
260
|
local _exp = #newText
|
|
260
|
-
local
|
|
261
|
+
local _condition_2 = #lastPart
|
|
262
|
+
if _condition_2 == nil then
|
|
263
|
+
_condition_2 = 0
|
|
264
|
+
end
|
|
265
|
+
local _exp_1 = _exp - _condition_2
|
|
266
|
+
local _result = trailingSpaces
|
|
261
267
|
if _result ~= nil then
|
|
262
268
|
_result = #_result
|
|
263
269
|
end
|
|
264
|
-
local
|
|
265
|
-
if
|
|
266
|
-
|
|
270
|
+
local _condition_3 = _result
|
|
271
|
+
if _condition_3 == nil then
|
|
272
|
+
_condition_3 = 0
|
|
267
273
|
end
|
|
268
|
-
newText = string.sub(_newText, 0,
|
|
274
|
+
newText = string.sub(_newText, 0, _exp_1 - _condition_3)
|
|
269
275
|
newText ..= if #{ string.match(otherSuggestion, "%s") } == 0 then otherSuggestion else `"{otherSuggestion}"`
|
|
270
276
|
if argIndex < #commandArgs - 1 then
|
|
271
277
|
newText ..= " "
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
-- Compiled with roblox-ts
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local RegistryPath = TS.import(script, TS.getModule(script, "@rbxts", "centurion").out).RegistryPath
|
|
4
4
|
local ArrayUtil = TS.import(script, TS.getModule(script, "@rbxts", "centurion").out.shared.util.data).ArrayUtil
|
|
@@ -136,7 +136,19 @@ local function Terminal()
|
|
|
136
136
|
currentCommandPath(nil)
|
|
137
137
|
terminalTextValid(false)
|
|
138
138
|
end
|
|
139
|
-
local
|
|
139
|
+
local lastPart = parts[#parts]
|
|
140
|
+
local textPart = nil
|
|
141
|
+
if string.sub(lastPart, 0, 1) == '"' then
|
|
142
|
+
textPart = string.sub(lastPart, 2)
|
|
143
|
+
elseif not atNextPart then
|
|
144
|
+
textPart = lastPart
|
|
145
|
+
end
|
|
146
|
+
if textPart ~= nil then
|
|
147
|
+
local trailingSpaces = (string.match(text, "(%s+)$"))
|
|
148
|
+
if trailingSpaces ~= nil then
|
|
149
|
+
textPart ..= tostring(trailingSpaces)
|
|
150
|
+
end
|
|
151
|
+
end
|
|
140
152
|
local argIndex = if path ~= nil then #parts - path:size() - (if atNextPart then 0 else 1) else -1
|
|
141
153
|
terminalArgIndex(argIndex)
|
|
142
154
|
if command == nil or argIndex == -1 then
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
-- Compiled with roblox-ts
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local Vide = TS.import(script, TS.getModule(script, "@rbxts", "vide").src)
|
|
4
4
|
local IS_EDIT = TS.import(script, script.Parent.Parent.Parent, "constants", "util").IS_EDIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
-- Compiled with roblox-ts
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local GuiService = TS.import(script, TS.getModule(script, "@rbxts", "services")).GuiService
|
|
4
4
|
local DefaultPalette = TS.import(script, script.Parent.Parent, "palette").DefaultPalette
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
-- Compiled with roblox-ts
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local subscribe = TS.import(script, TS.getModule(script, "@rbxts", "charm").src).subscribe
|
|
4
4
|
local _vide = TS.import(script, TS.getModule(script, "@rbxts", "vide").src)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
-- Compiled with roblox-ts
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local TextService = TS.import(script, TS.getModule(script, "@rbxts", "services")).TextService
|
|
4
4
|
local _vide = TS.import(script, TS.getModule(script, "@rbxts", "vide").src)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
-- Compiled with roblox-ts
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local Workspace = TS.import(script, TS.getModule(script, "@rbxts", "services")).Workspace
|
|
4
4
|
local _vide = TS.import(script, TS.getModule(script, "@rbxts", "vide").src)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
-- Compiled with roblox-ts
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local TextService = TS.import(script, TS.getModule(script, "@rbxts", "services")).TextService
|
|
4
4
|
local _vide = TS.import(script, TS.getModule(script, "@rbxts", "vide").src)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
-- Compiled with roblox-ts
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local splitString = TS.import(script, TS.getModule(script, "@rbxts", "centurion").out.shared.util.string).splitString
|
|
4
4
|
local _charm = TS.import(script, TS.getModule(script, "@rbxts", "charm").src)
|
package/out/types.luau
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rbxts/centurion-ui",
|
|
3
3
|
"description": "Terminal UI for the Centurion command framework",
|
|
4
|
-
"version": "1.0.0-dev-
|
|
4
|
+
"version": "1.0.0-dev-dd918ea",
|
|
5
5
|
"author": "paradoxuum",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "out/init.lua",
|
|
@@ -32,19 +32,18 @@
|
|
|
32
32
|
"dev": "shx rm -rf out && rbxtsc -w"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@rbxts/centurion": "^1.0.0-dev-
|
|
36
|
-
"@rbxts/compiler-types": "
|
|
37
|
-
"@rbxts/types": "^1.0.
|
|
38
|
-
"roblox-ts": "
|
|
35
|
+
"@rbxts/centurion": "^1.0.0-dev-dd918ea",
|
|
36
|
+
"@rbxts/compiler-types": "3.0.0-types.0",
|
|
37
|
+
"@rbxts/types": "^1.0.799",
|
|
38
|
+
"roblox-ts": "3.0.0",
|
|
39
39
|
"shx": "^0.3.4",
|
|
40
40
|
"typescript": "~5.5.4"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@rbxts/charm": "^0.
|
|
44
|
-
"@rbxts/ripple": "^0.8.2",
|
|
43
|
+
"@rbxts/charm": "^0.6.0",
|
|
45
44
|
"@rbxts/services": "^1.5.4",
|
|
46
45
|
"@rbxts/set-timeout": "^1.1.2",
|
|
47
|
-
"@rbxts/vide": "^0.4.
|
|
46
|
+
"@rbxts/vide": "^0.4.4"
|
|
48
47
|
},
|
|
49
48
|
"peerDependencies": {
|
|
50
49
|
"@rbxts/centurion": "*"
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { SpringOptions } from "@rbxts/ripple";
|
|
2
|
-
export declare const springs: {
|
|
3
|
-
bubbly: {
|
|
4
|
-
tension: number;
|
|
5
|
-
friction: number;
|
|
6
|
-
};
|
|
7
|
-
responsive: {
|
|
8
|
-
tension: number;
|
|
9
|
-
};
|
|
10
|
-
gentle: {
|
|
11
|
-
tension: number;
|
|
12
|
-
friction: number;
|
|
13
|
-
};
|
|
14
|
-
default: SpringOptions;
|
|
15
|
-
wobbly: SpringOptions;
|
|
16
|
-
stiff: SpringOptions;
|
|
17
|
-
slow: SpringOptions;
|
|
18
|
-
molasses: SpringOptions;
|
|
19
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
-- Compiled with roblox-ts v2.3.0-dev-26ec859
|
|
2
|
-
local TS = _G[script]
|
|
3
|
-
local config = TS.import(script, TS.getModule(script, "@rbxts", "ripple").src).config
|
|
4
|
-
local _object = table.clone(config.spring)
|
|
5
|
-
setmetatable(_object, nil)
|
|
6
|
-
_object.bubbly = {
|
|
7
|
-
tension = 400,
|
|
8
|
-
friction = 14,
|
|
9
|
-
}
|
|
10
|
-
_object.responsive = {
|
|
11
|
-
tension = 400,
|
|
12
|
-
}
|
|
13
|
-
_object.gentle = {
|
|
14
|
-
tension = 250,
|
|
15
|
-
friction = 30,
|
|
16
|
-
}
|
|
17
|
-
local springs = _object
|
|
18
|
-
return {
|
|
19
|
-
springs = springs,
|
|
20
|
-
}
|
package/out/types.lua
DELETED