@rbxts/app-forge 0.7.2-prototype.3 → 0.7.2-prototype.31
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/appRegistry.d.ts +7 -6
- package/out/appRegistry.luau +49 -36
- package/out/helpers/bindAppSource.d.ts +2 -0
- package/out/helpers/bindAppSource.luau +22 -0
- package/out/helpers/getAppEntry.d.ts +1 -0
- package/out/helpers/getAppEntry.luau +21 -0
- package/out/helpers/getAppSource.d.ts +1 -0
- package/out/helpers/getAppSource.luau +21 -0
- package/out/helpers/hasAppSource.d.ts +1 -0
- package/out/helpers/hasAppSource.luau +24 -0
- package/out/helpers/setAppSource.d.ts +1 -0
- package/out/helpers/setAppSource.luau +34 -0
- package/out/hooks/useAppContext.luau +0 -4
- package/out/hooks/useEventListener.luau +1 -5
- package/out/hooks/usePx.luau +2 -7
- package/out/mount.d.ts +8 -13
- package/out/mount.luau +73 -107
- package/out/renders.d.ts +13 -2
- package/out/renders.luau +276 -26
- package/out/ruleEngine/check/exclusiveGroup.d.ts +1 -1
- package/out/ruleEngine/check/exclusiveGroup.luau +28 -33
- package/out/ruleEngine/check/parent.d.ts +1 -1
- package/out/ruleEngine/check/parent.luau +15 -15
- package/out/ruleEngine/index.d.ts +2 -2
- package/out/ruleEngine/init.luau +15 -18
- package/out/ruleEngine/render/anchor.d.ts +1 -1
- package/out/ruleEngine/render/anchor.luau +4 -31
- package/out/types.d.ts +15 -11
- package/package.json +8 -1
- package/out/debugger.d.ts +0 -18
- package/out/debugger.luau +0 -89
- package/out/logger.d.ts +0 -5
- package/out/logger.luau +0 -37
package/package.json
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rbxts/app-forge",
|
|
3
|
-
"version": "0.7.2-prototype.
|
|
3
|
+
"version": "0.7.2-prototype.31",
|
|
4
4
|
"description": "An App Manager for Vide",
|
|
5
5
|
"main": "out/init.lua",
|
|
6
6
|
"types": "out/index.d.ts",
|
|
7
7
|
"packageManager": "bun@1.3.1",
|
|
8
|
+
|
|
8
9
|
"scripts": {
|
|
9
10
|
"build": "rbxtsc",
|
|
10
11
|
"dev": "rbxtsc -w --type game --rojo test.project.json",
|
|
11
12
|
"login": "bunx npm login --auth-type=legacy"
|
|
12
13
|
},
|
|
14
|
+
|
|
13
15
|
"keywords": [
|
|
14
16
|
"roblox-ts",
|
|
15
17
|
"react",
|
|
@@ -17,6 +19,7 @@
|
|
|
17
19
|
],
|
|
18
20
|
"author": "loner1536",
|
|
19
21
|
"license": "MIT",
|
|
22
|
+
|
|
20
23
|
"repository": {
|
|
21
24
|
"type": "git",
|
|
22
25
|
"url": "https://github.com/Loner1536/AppForge"
|
|
@@ -24,15 +27,18 @@
|
|
|
24
27
|
"bugs": {
|
|
25
28
|
"url": "https://github.com/Loner1536/AppForge/issues"
|
|
26
29
|
},
|
|
30
|
+
|
|
27
31
|
"files": [
|
|
28
32
|
"out",
|
|
29
33
|
"!**/*.tsbuildinfo",
|
|
30
34
|
"!**/*.spec.lua",
|
|
31
35
|
"!**/*.spec.d.ts"
|
|
32
36
|
],
|
|
37
|
+
|
|
33
38
|
"publishConfig": {
|
|
34
39
|
"access": "public"
|
|
35
40
|
},
|
|
41
|
+
|
|
36
42
|
"dependencies": {
|
|
37
43
|
"@rbxts/set-timeout": "^1.1.2",
|
|
38
44
|
"@rbxts/services": "^1.6.0",
|
|
@@ -43,6 +49,7 @@
|
|
|
43
49
|
"optional": true
|
|
44
50
|
}
|
|
45
51
|
},
|
|
52
|
+
|
|
46
53
|
"devDependencies": {
|
|
47
54
|
"@rbxts/compiler-types": "3.0.0-types.0",
|
|
48
55
|
"@biomejs/biome": "^2.3.7",
|
package/out/debugger.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export type DebugTag = "render" | "rules" | "state" | "px" | "lifecycle";
|
|
2
|
-
type LogFn = (level: "DEBUG" | "PERF", message: string, data?: unknown, traceback?: string) => void;
|
|
3
|
-
export default class Debugger {
|
|
4
|
-
private readonly log;
|
|
5
|
-
private timers;
|
|
6
|
-
private enabled;
|
|
7
|
-
private allEnabled;
|
|
8
|
-
constructor(log: LogFn);
|
|
9
|
-
enable(tag: DebugTag): void;
|
|
10
|
-
disable(tag: DebugTag): void;
|
|
11
|
-
enableAll(): void;
|
|
12
|
-
disableAll(): void;
|
|
13
|
-
isEnabled(tag: DebugTag): boolean;
|
|
14
|
-
logTag(tag: DebugTag, app: AppNames, message: string, data?: unknown): void;
|
|
15
|
-
time(tag: DebugTag, app: AppNames): void;
|
|
16
|
-
timeEnd(tag: DebugTag, app: AppNames): void;
|
|
17
|
-
}
|
|
18
|
-
export {};
|
package/out/debugger.luau
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
-- Compiled with roblox-ts v3.0.0
|
|
2
|
-
local TS = _G[script]
|
|
3
|
-
-- Services
|
|
4
|
-
local RunService = TS.import(script, TS.getModule(script, "@rbxts", "services")).RunService
|
|
5
|
-
local Debugger
|
|
6
|
-
do
|
|
7
|
-
Debugger = setmetatable({}, {
|
|
8
|
-
__tostring = function()
|
|
9
|
-
return "Debugger"
|
|
10
|
-
end,
|
|
11
|
-
})
|
|
12
|
-
Debugger.__index = Debugger
|
|
13
|
-
function Debugger.new(...)
|
|
14
|
-
local self = setmetatable({}, Debugger)
|
|
15
|
-
return self:constructor(...) or self
|
|
16
|
-
end
|
|
17
|
-
function Debugger:constructor(log)
|
|
18
|
-
self.log = log
|
|
19
|
-
self.timers = {}
|
|
20
|
-
self.enabled = {}
|
|
21
|
-
self.allEnabled = false
|
|
22
|
-
end
|
|
23
|
-
function Debugger:enable(tag)
|
|
24
|
-
local _enabled = self.enabled
|
|
25
|
-
local _tag = tag
|
|
26
|
-
_enabled[_tag] = true
|
|
27
|
-
end
|
|
28
|
-
function Debugger:disable(tag)
|
|
29
|
-
local _enabled = self.enabled
|
|
30
|
-
local _tag = tag
|
|
31
|
-
_enabled[_tag] = nil
|
|
32
|
-
end
|
|
33
|
-
function Debugger:enableAll()
|
|
34
|
-
self.allEnabled = true
|
|
35
|
-
end
|
|
36
|
-
function Debugger:disableAll()
|
|
37
|
-
self.allEnabled = false
|
|
38
|
-
table.clear(self.enabled)
|
|
39
|
-
end
|
|
40
|
-
function Debugger:isEnabled(tag)
|
|
41
|
-
local _condition = self.allEnabled
|
|
42
|
-
if not _condition then
|
|
43
|
-
local _enabled = self.enabled
|
|
44
|
-
local _tag = tag
|
|
45
|
-
_condition = _enabled[_tag] ~= nil
|
|
46
|
-
end
|
|
47
|
-
return _condition
|
|
48
|
-
end
|
|
49
|
-
function Debugger:logTag(tag, app, message, data)
|
|
50
|
-
if not RunService:IsStudio() then
|
|
51
|
-
return nil
|
|
52
|
-
end
|
|
53
|
-
if not self:isEnabled(tag) then
|
|
54
|
-
return nil
|
|
55
|
-
end
|
|
56
|
-
self.log("DEBUG", `[{tag}][{app}] {message}`, data)
|
|
57
|
-
end
|
|
58
|
-
function Debugger:time(tag, app)
|
|
59
|
-
if not RunService:IsStudio() then
|
|
60
|
-
return nil
|
|
61
|
-
end
|
|
62
|
-
if not self:isEnabled(tag) then
|
|
63
|
-
return nil
|
|
64
|
-
end
|
|
65
|
-
local _timers = self.timers
|
|
66
|
-
local _arg0 = `{tag}:{app}`
|
|
67
|
-
local _arg1 = os.clock()
|
|
68
|
-
_timers[_arg0] = _arg1
|
|
69
|
-
end
|
|
70
|
-
function Debugger:timeEnd(tag, app)
|
|
71
|
-
if not RunService:IsStudio() then
|
|
72
|
-
return nil
|
|
73
|
-
end
|
|
74
|
-
if not self:isEnabled(tag) then
|
|
75
|
-
return nil
|
|
76
|
-
end
|
|
77
|
-
local key = `{tag}:{app}`
|
|
78
|
-
local start = self.timers[key]
|
|
79
|
-
if start == nil then
|
|
80
|
-
return nil
|
|
81
|
-
end
|
|
82
|
-
self.timers[key] = nil
|
|
83
|
-
local elapsed = os.clock() - start
|
|
84
|
-
self.log("PERF", `[{tag}][{app}] {string.format("%.3fms", elapsed * 1000)}`)
|
|
85
|
-
end
|
|
86
|
-
end
|
|
87
|
-
return {
|
|
88
|
-
default = Debugger,
|
|
89
|
-
}
|
package/out/logger.d.ts
DELETED
package/out/logger.luau
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
-- Compiled with roblox-ts v3.0.0
|
|
2
|
-
local TS = _G[script]
|
|
3
|
-
-- debug/logger.ts
|
|
4
|
-
local RunService = TS.import(script, TS.getModule(script, "@rbxts", "services")).RunService
|
|
5
|
-
local Logger
|
|
6
|
-
do
|
|
7
|
-
Logger = setmetatable({}, {
|
|
8
|
-
__tostring = function()
|
|
9
|
-
return "Logger"
|
|
10
|
-
end,
|
|
11
|
-
})
|
|
12
|
-
Logger.__index = Logger
|
|
13
|
-
function Logger.new(...)
|
|
14
|
-
local self = setmetatable({}, Logger)
|
|
15
|
-
return self:constructor(...) or self
|
|
16
|
-
end
|
|
17
|
-
function Logger:constructor(scope)
|
|
18
|
-
self.scope = scope
|
|
19
|
-
end
|
|
20
|
-
function Logger:log(level, message, data, traceback)
|
|
21
|
-
if not RunService:IsStudio() then
|
|
22
|
-
return nil
|
|
23
|
-
end
|
|
24
|
-
local prefix = `[{self.scope}][{level}]`
|
|
25
|
-
if data ~= nil then
|
|
26
|
-
print(prefix, message, data)
|
|
27
|
-
else
|
|
28
|
-
print(prefix, message)
|
|
29
|
-
end
|
|
30
|
-
if traceback ~= "" and traceback then
|
|
31
|
-
print(traceback)
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
return {
|
|
36
|
-
default = Logger,
|
|
37
|
-
}
|