@rbxts/app-forge 0.7.2-prototype.10 → 0.7.2-prototype.12
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/mount.d.ts +1 -1
- package/out/renders.luau +17 -12
- package/out/ruleEngine/check/exclusiveGroup.luau +1 -1
- package/package.json +1 -1
package/out/mount.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export default class AppForge extends Renders {
|
|
|
10
10
|
private innerMount?;
|
|
11
11
|
constructor();
|
|
12
12
|
private createSource;
|
|
13
|
-
getSource(name: AppNames, group?: AppGroups): Vide.Source<boolean
|
|
13
|
+
getSource(name: AppNames, group?: AppGroups): Vide.Source<boolean>;
|
|
14
14
|
bind(name: AppNames, group: AppGroups | undefined, value: Vide.Source<boolean>): void;
|
|
15
15
|
set(name: AppNames, group: AppGroups | undefined, value: boolean, rules?: boolean): void;
|
|
16
16
|
open(name: AppNames, group?: AppGroups, rules?: boolean): void;
|
package/out/renders.luau
CHANGED
|
@@ -31,8 +31,7 @@ do
|
|
|
31
31
|
super.constructor(self)
|
|
32
32
|
self.__px = false
|
|
33
33
|
end
|
|
34
|
-
function Renders:Render(
|
|
35
|
-
local props = _param.props
|
|
34
|
+
function Renders:Render(props)
|
|
36
35
|
print(props)
|
|
37
36
|
print(AppRegistry)
|
|
38
37
|
print(AppSources)
|
|
@@ -56,18 +55,24 @@ do
|
|
|
56
55
|
end
|
|
57
56
|
if target then
|
|
58
57
|
mount(function()
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
58
|
+
local _result
|
|
59
|
+
if root then
|
|
60
|
+
_result = root
|
|
61
|
+
else
|
|
62
|
+
local _attributes = table.clone(props)
|
|
63
|
+
setmetatable(_attributes, nil)
|
|
64
|
+
_result = (Vide.jsx("screengui", {
|
|
65
|
+
Name = "App Tree",
|
|
66
|
+
ZIndexBehavior = "Sibling",
|
|
67
|
+
ResetOnSpawn = false,
|
|
68
|
+
}, Vide.jsx(self.Render, _attributes)))
|
|
69
|
+
end
|
|
70
|
+
return _result
|
|
66
71
|
end)
|
|
67
72
|
else
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
73
|
+
local _attributes = table.clone(props)
|
|
74
|
+
setmetatable(_attributes, nil)
|
|
75
|
+
return Vide.jsx(self.Render, _attributes)
|
|
71
76
|
end
|
|
72
77
|
end
|
|
73
78
|
end
|
|
@@ -10,7 +10,7 @@ local function ExclusiveGroupRule(forge, name, group)
|
|
|
10
10
|
if not entry then
|
|
11
11
|
forge.logger:log("ERROR", `Failed to find app entry for "ExclusiveGroupRule" name {name} group {group} `)
|
|
12
12
|
end
|
|
13
|
-
local entryVisible = forge:getSource(name)()
|
|
13
|
+
local entryVisible = forge:getSource(name, group)()
|
|
14
14
|
if not entryVisible then
|
|
15
15
|
return nil
|
|
16
16
|
end
|