@rbxts/app-forge 0.7.2-alpha.2 → 0.7.2-alpha.21
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/README.md +35 -192
- package/out/{vide/classes → classes}/renders.d.ts +5 -3
- package/out/{vide/classes → classes}/renders.luau +3 -1
- package/out/{vide/classes → classes}/rules/exclusiveGroup.d.ts +1 -1
- package/out/{vide/classes → classes}/rules/index.d.ts +1 -1
- package/out/{react → classes}/rules/parent.d.ts +1 -1
- package/out/{vide/classes → classes}/rules/parent.luau +1 -0
- package/out/{vide/context.d.ts → context.d.ts} +1 -1
- package/out/{vide/debug → debug}/debugger.luau +1 -1
- package/out/{vide/decorator.d.ts → decorator.d.ts} +1 -1
- package/out/{vide/decorator.luau → decorator.luau} +0 -6
- package/out/global.d.ts +1 -1
- package/out/{vide/hooks → hooks}/useAppContext.d.ts +1 -1
- package/out/{vide/hooks → hooks}/usePx.luau +0 -5
- package/out/index.d.ts +5 -11
- package/out/init.luau +6 -14
- package/out/{vide/index.d.ts → main.d.ts} +2 -2
- package/out/{vide/init.luau → main.luau} +35 -10
- package/out/{vide/types.d.ts → types.d.ts} +9 -9
- package/package.json +4 -10
- package/out/react/container.d.ts +0 -10
- package/out/react/container.luau +0 -60
- package/out/react/context.d.ts +0 -7
- package/out/react/context.luau +0 -12
- package/out/react/decorator.d.ts +0 -14
- package/out/react/decorator.luau +0 -51
- package/out/react/helpers.d.ts +0 -6
- package/out/react/helpers.luau +0 -74
- package/out/react/hooks/useAppContext.d.ts +0 -5
- package/out/react/hooks/useAppContext.luau +0 -16
- package/out/react/hooks/usePx.d.ts +0 -15
- package/out/react/hooks/usePx.luau +0 -117
- package/out/react/index.d.ts +0 -44
- package/out/react/init.luau +0 -123
- package/out/react/rules/index.d.ts +0 -6
- package/out/react/rules/init.luau +0 -27
- package/out/react/rules/parent.luau +0 -42
- package/out/react/types.d.ts +0 -44
- package/out/vide/classes/rules/parent.d.ts +0 -2
- /package/out/{vide/classes → classes}/rules/exclusiveGroup.luau +0 -0
- /package/out/{vide/classes → classes}/rules/init.luau +0 -0
- /package/out/{vide/context.luau → context.luau} +0 -0
- /package/out/{vide/debug → debug}/debugger.d.ts +0 -0
- /package/out/{vide/debug → debug}/index.d.ts +0 -0
- /package/out/{vide/debug → debug}/init.luau +0 -0
- /package/out/{vide/debug → debug}/logger.d.ts +0 -0
- /package/out/{vide/debug → debug}/logger.luau +0 -0
- /package/out/{vide/hooks → hooks}/useAppContext.luau +0 -0
- /package/out/{vide/hooks → hooks}/useEventListener.d.ts +0 -0
- /package/out/{vide/hooks → hooks}/useEventListener.luau +0 -0
- /package/out/{vide/hooks → hooks}/usePx.d.ts +0 -0
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
-- Compiled with roblox-ts v3.0.0
|
|
2
|
-
local TS = _G[script]
|
|
3
|
-
-- Types
|
|
4
|
-
-- Rules
|
|
5
|
-
local ParentRule = TS.import(script, script, "parent").default
|
|
6
|
-
local RulesManager
|
|
7
|
-
do
|
|
8
|
-
RulesManager = setmetatable({}, {
|
|
9
|
-
__tostring = function()
|
|
10
|
-
return "RulesManager"
|
|
11
|
-
end,
|
|
12
|
-
})
|
|
13
|
-
RulesManager.__index = RulesManager
|
|
14
|
-
function RulesManager.new(...)
|
|
15
|
-
local self = setmetatable({}, RulesManager)
|
|
16
|
-
return self:constructor(...) or self
|
|
17
|
-
end
|
|
18
|
-
function RulesManager:constructor(forge)
|
|
19
|
-
self.forge = forge
|
|
20
|
-
end
|
|
21
|
-
function RulesManager:applyRules(name)
|
|
22
|
-
ParentRule(name, self.forge)
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
return {
|
|
26
|
-
default = RulesManager,
|
|
27
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
-- Compiled with roblox-ts v3.0.0
|
|
2
|
-
local TS = _G[script]
|
|
3
|
-
-- Types
|
|
4
|
-
-- Components
|
|
5
|
-
local AppRegistry = TS.import(script, script.Parent.Parent, "decorator").AppRegistry
|
|
6
|
-
local function ParentRule(entry, forge)
|
|
7
|
-
local children = {}
|
|
8
|
-
-- ▼ ReadonlyMap.forEach ▼
|
|
9
|
-
local _callback = function(app, name)
|
|
10
|
-
local rules = app.rules
|
|
11
|
-
if not rules then
|
|
12
|
-
return nil
|
|
13
|
-
end
|
|
14
|
-
local _condition = rules.parent
|
|
15
|
-
if _condition ~= "" and _condition then
|
|
16
|
-
_condition = rules.parent == entry
|
|
17
|
-
end
|
|
18
|
-
if _condition ~= "" and _condition then
|
|
19
|
-
local _binds = forge.binds
|
|
20
|
-
local _entry = entry
|
|
21
|
-
if not _binds[_entry] then
|
|
22
|
-
local _name = name
|
|
23
|
-
table.insert(children, _name)
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
for _k, _v in AppRegistry do
|
|
28
|
-
_callback(_v, _k, AppRegistry)
|
|
29
|
-
end
|
|
30
|
-
-- ▲ ReadonlyMap.forEach ▲
|
|
31
|
-
-- ▼ ReadonlyArray.forEach ▼
|
|
32
|
-
local _callback_1 = function(name)
|
|
33
|
-
return forge:close(name)
|
|
34
|
-
end
|
|
35
|
-
for _k, _v in children do
|
|
36
|
-
_callback_1(_v, _k - 1, children)
|
|
37
|
-
end
|
|
38
|
-
-- ▲ ReadonlyArray.forEach ▲
|
|
39
|
-
end
|
|
40
|
-
return {
|
|
41
|
-
default = ParentRule,
|
|
42
|
-
}
|
package/out/react/types.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// Types
|
|
2
|
-
import type { Args } from "./decorator";
|
|
3
|
-
import type AppForge from ".";
|
|
4
|
-
|
|
5
|
-
declare namespace Types {
|
|
6
|
-
type AppRegistryProps = {
|
|
7
|
-
name: AppNames;
|
|
8
|
-
visible?: boolean;
|
|
9
|
-
rules?: Rules.All;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
type NameProps =
|
|
13
|
-
| { name?: AppNames; names?: undefined }
|
|
14
|
-
| { names?: AppNames[]; name?: undefined };
|
|
15
|
-
|
|
16
|
-
type MainProps = {
|
|
17
|
-
props: AppProps;
|
|
18
|
-
forge: AppForge;
|
|
19
|
-
target?: GuiObject | Camera;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
type ClassProps = AppProps & {
|
|
23
|
-
forge: AppForge;
|
|
24
|
-
px: ReturnType<typeof import("@rbxts/loners-pretty-react-hooks").usePx>;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
type AppRegistry = {
|
|
28
|
-
constructor: new (props: MainProps) => Args;
|
|
29
|
-
visible?: boolean;
|
|
30
|
-
rules?: Rules.All;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
namespace Rules {
|
|
34
|
-
type All = {
|
|
35
|
-
parent?: AppNames;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export type MainProps = Types.MainProps;
|
|
41
|
-
export type NameProps = Types.NameProps;
|
|
42
|
-
export type ClassProps = Types.ClassProps;
|
|
43
|
-
|
|
44
|
-
export default Types;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|