@rbxts/centurion-ui 1.0.0-dev-41fb465 → 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.
Files changed (44) hide show
  1. package/out/app/{centurion-app.lua → centurion-app.luau} +1 -1
  2. package/out/app/{init.lua → init.luau} +1 -1
  3. package/out/components/history/{history-line.lua → history-line.luau} +1 -1
  4. package/out/components/history/{history-list.lua → history-list.luau} +1 -1
  5. package/out/components/history/{init.lua → init.luau} +1 -1
  6. package/out/components/{init.lua → init.luau} +1 -1
  7. package/out/components/suggestions/{badge.lua → badge.luau} +1 -1
  8. package/out/components/suggestions/{init.lua → init.luau} +1 -1
  9. package/out/components/suggestions/{main-suggestion.lua → main-suggestion.luau} +1 -1
  10. package/out/components/suggestions/{suggestion-list.lua → suggestion-list.luau} +1 -1
  11. package/out/components/suggestions/{suggestions.lua → suggestions.luau} +1 -1
  12. package/out/components/suggestions/types.luau +2 -0
  13. package/out/components/suggestions/{util.lua → util.luau} +1 -1
  14. package/out/components/terminal/{command.lua → command.luau} +1 -1
  15. package/out/components/terminal/{init.lua → init.luau} +1 -1
  16. package/out/components/terminal/{suggestion.lua → suggestion.luau} +1 -1
  17. package/out/components/terminal/{terminal-text-field.lua → terminal-text-field.luau} +15 -9
  18. package/out/components/terminal/{terminal.lua → terminal.luau} +14 -2
  19. package/out/components/ui/{frame.lua → frame.luau} +1 -1
  20. package/out/components/ui/{group.lua → group.luau} +1 -1
  21. package/out/components/ui/{layer.lua → layer.luau} +1 -1
  22. package/out/components/ui/{outline.lua → outline.luau} +1 -1
  23. package/out/components/ui/{padding.lua → padding.luau} +1 -1
  24. package/out/components/ui/{scrolling-frame.lua → scrolling-frame.luau} +1 -1
  25. package/out/components/ui/{text-field.lua → text-field.luau} +1 -1
  26. package/out/components/ui/{text.lua → text.luau} +1 -1
  27. package/out/constants/{options.lua → options.luau} +1 -1
  28. package/out/constants/{text.lua → text.luau} +1 -1
  29. package/out/constants/{util.lua → util.luau} +1 -1
  30. package/out/hooks/{use-atom.lua → use-atom.luau} +1 -1
  31. package/out/hooks/{use-client.lua → use-client.luau} +1 -1
  32. package/out/hooks/{use-event.lua → use-event.luau} +1 -1
  33. package/out/hooks/{use-history.lua → use-history.luau} +1 -1
  34. package/out/hooks/{use-px.lua → use-px.luau} +1 -1
  35. package/out/hooks/{use-text-bounds.lua → use-text-bounds.luau} +1 -1
  36. package/out/{init.lua → init.luau} +1 -1
  37. package/out/{palette.lua → palette.luau} +1 -1
  38. package/out/{store.lua → store.luau} +1 -1
  39. package/out/types.luau +2 -0
  40. package/package.json +4 -5
  41. package/out/components/suggestions/types.lua +0 -2
  42. package/out/constants/springs.d.ts +0 -19
  43. package/out/constants/springs.lua +0 -20
  44. package/out/types.lua +0 -2
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
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 v2.3.0-dev-26ec859
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 v2.3.0-dev-26ec859
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 Vide = _vide
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
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 Vide = _vide
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local exports = {}
4
4
  for _k, _v in TS.import(script, script, "history-list") or {} do
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local exports = {}
4
4
  for _k, _v in TS.import(script, script, "suggestions") or {} do
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
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 v2.3.0-dev-26ec859
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local exports = {}
4
4
  for _k, _v in TS.import(script, script, "suggestions") or {} do
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
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 Vide = _vide
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
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 v2.3.0-dev-26ec859
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)
@@ -0,0 +1,2 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ return nil
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local function highlightMatching(color, text, terminalText)
3
3
  if text == nil then
4
4
  return ""
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local _centurion = TS.import(script, TS.getModule(script, "@rbxts", "centurion").out)
4
4
  local ImmutableRegistryPath = _centurion.ImmutableRegistryPath
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local exports = {}
4
4
  for _k, _v in TS.import(script, script, "terminal") or {} do
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local Players = TS.import(script, TS.getModule(script, "@rbxts", "services")).Players
4
4
  local MAX_OTHER_SUGGESTIONS = 3
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
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 - #lastPartSize
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 _result = currentTextPart()
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 _condition_2 = _result
265
- if _condition_2 == nil then
266
- _condition_2 = 0
270
+ local _condition_3 = _result
271
+ if _condition_3 == nil then
272
+ _condition_3 = 0
267
273
  end
268
- newText = string.sub(_newText, 0, _exp - _condition_2)
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 v2.3.0-dev-26ec859
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 textPart = if not atNextPart then parts[#parts] else nil
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 v2.3.0-dev-26ec859
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 function Frame(props)
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
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 function Group(props)
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
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 v2.3.0-dev-26ec859
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 Vide = _vide
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
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 function Padding(_param)
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
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 function ScrollingFrame(props)
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
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 Vide = _vide
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
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 Vide = _vide
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
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 v2.3.0-dev-26ec859
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local HISTORY_TEXT_SIZE = 18
3
3
  local SUGGESTION_TITLE_TEXT_SIZE = 26
4
4
  local SUGGESTION_TEXT_SIZE = 20
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local RunService = TS.import(script, TS.getModule(script, "@rbxts", "services")).RunService
4
4
  local IS_EDIT = RunService:IsStudio() and not RunService:IsRunning()
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
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 v2.3.0-dev-26ec859
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local source = TS.import(script, TS.getModule(script, "@rbxts", "vide").src).source
4
4
  local clientState = source()
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local cleanup = TS.import(script, TS.getModule(script, "@rbxts", "vide").src).cleanup
4
4
  local connect = function(event, callback)
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
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 v2.3.0-dev-26ec859
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 v2.3.0-dev-26ec859
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 v2.3.0-dev-26ec859
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local exports = {}
4
4
  for _k, _v in TS.import(script, script, "app") or {} do
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local DefaultPalette = {
3
3
  mocha = {
4
4
  background = Color3.fromRGB(24, 24, 37),
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
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
@@ -0,0 +1,2 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ return nil
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-41fb465",
4
+ "version": "1.0.0-dev-dd918ea",
5
5
  "author": "paradoxuum",
6
6
  "license": "MIT",
7
7
  "main": "out/init.lua",
@@ -32,16 +32,15 @@
32
32
  "dev": "shx rm -rf out && rbxtsc -w"
33
33
  },
34
34
  "devDependencies": {
35
- "@rbxts/centurion": "^1.0.0-dev-41fb465",
36
- "@rbxts/compiler-types": "2.3.0-types.2",
35
+ "@rbxts/centurion": "^1.0.0-dev-dd918ea",
36
+ "@rbxts/compiler-types": "3.0.0-types.0",
37
37
  "@rbxts/types": "^1.0.799",
38
- "roblox-ts": "2.3.0-dev-26ec859",
38
+ "roblox-ts": "3.0.0",
39
39
  "shx": "^0.3.4",
40
40
  "typescript": "~5.5.4"
41
41
  },
42
42
  "dependencies": {
43
43
  "@rbxts/charm": "^0.6.0",
44
- "@rbxts/ripple": "^0.8.2",
45
44
  "@rbxts/services": "^1.5.4",
46
45
  "@rbxts/set-timeout": "^1.1.2",
47
46
  "@rbxts/vide": "^0.4.4"
@@ -1,2 +0,0 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
2
- return nil
@@ -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
@@ -1,2 +0,0 @@
1
- -- Compiled with roblox-ts v2.3.0-dev-26ec859
2
- return nil