@rbxts/app-forge 0.7.2-prototype.3 → 0.7.2-prototype.5
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/mount.luau +6 -14
- package/out/renders.d.ts +3 -2
- package/out/renders.luau +21 -16
- package/package.json +1 -1
package/out/mount.d.ts
CHANGED
|
@@ -21,6 +21,6 @@ export default class AppForge extends Renders {
|
|
|
21
21
|
render?: Types.Props.Render;
|
|
22
22
|
minScale?: number;
|
|
23
23
|
}): Frame;
|
|
24
|
-
mount(
|
|
24
|
+
mount(props: Exclude<Types.Props.Main, "forge">, target: Instance, root?: () => GuiObject | Instance): Destructor | undefined;
|
|
25
25
|
}
|
|
26
26
|
export {};
|
package/out/mount.luau
CHANGED
|
@@ -8,7 +8,6 @@ local Vide = _vide
|
|
|
8
8
|
local apply = _vide.apply
|
|
9
9
|
local create = _vide.create
|
|
10
10
|
local effect = _vide.effect
|
|
11
|
-
local mount = _vide.mount
|
|
12
11
|
local source = _vide.source
|
|
13
12
|
local untrack = _vide.untrack
|
|
14
13
|
-- Classes
|
|
@@ -220,20 +219,13 @@ do
|
|
|
220
219
|
_fn(_object)
|
|
221
220
|
return Container
|
|
222
221
|
end
|
|
223
|
-
function AppForge:mount(
|
|
222
|
+
function AppForge:mount(props, target, root)
|
|
224
223
|
self.debug:logTag("lifecycle", "mount", "Mounting AppForge")
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
local _object_1 = table.clone(props)
|
|
231
|
-
setmetatable(_object_1, nil)
|
|
232
|
-
_object_1.forge = self
|
|
233
|
-
_object[_left] = _self:initalize(_object_1)
|
|
234
|
-
_fn(_object)
|
|
235
|
-
return node
|
|
236
|
-
end, target)
|
|
224
|
+
local _self = self
|
|
225
|
+
local _object = table.clone(props)
|
|
226
|
+
setmetatable(_object, nil)
|
|
227
|
+
_object.forge = self
|
|
228
|
+
_self:initalize(_object, target, root)
|
|
237
229
|
return self.innerMount
|
|
238
230
|
end
|
|
239
231
|
end
|
package/out/renders.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import Vide from "@rbxts/vide";
|
|
1
2
|
import type Types from "./types";
|
|
2
3
|
import Rules from "./ruleEngine";
|
|
3
4
|
export default class Renders extends Rules {
|
|
4
5
|
private __px;
|
|
5
6
|
constructor();
|
|
6
|
-
private
|
|
7
|
-
protected initalize(props: Types.Props.Main):
|
|
7
|
+
private Render;
|
|
8
|
+
protected initalize(props: Types.Props.Main, target?: GuiObject | Instance, root?: () => GuiObject | Instance): Vide.Node;
|
|
8
9
|
}
|
package/out/renders.luau
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
-- Packages
|
|
4
|
+
local _vide = TS.import(script, TS.getModule(script, "@rbxts", "vide").src)
|
|
5
|
+
local Vide = _vide
|
|
6
|
+
local mount = _vide.mount
|
|
4
7
|
-- Types
|
|
5
8
|
-- Components
|
|
6
9
|
-- Hooks
|
|
@@ -25,10 +28,11 @@ do
|
|
|
25
28
|
super.constructor(self)
|
|
26
29
|
self.__px = false
|
|
27
30
|
end
|
|
28
|
-
function Renders:
|
|
29
|
-
|
|
31
|
+
function Renders:Render(_param)
|
|
32
|
+
local props = _param.props
|
|
33
|
+
print(props)
|
|
30
34
|
end
|
|
31
|
-
function Renders:initalize(props)
|
|
35
|
+
function Renders:initalize(props, target, root)
|
|
32
36
|
if not self.__px then
|
|
33
37
|
local _result = props.config
|
|
34
38
|
if _result ~= nil then
|
|
@@ -45,20 +49,21 @@ do
|
|
|
45
49
|
usePx(_result, _result_1, _result_2)
|
|
46
50
|
self.__px = true
|
|
47
51
|
end
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
+
if target then
|
|
53
|
+
mount(if root then root else function()
|
|
54
|
+
return Vide.jsx("screengui", {
|
|
55
|
+
Name = "App Tree",
|
|
56
|
+
ZIndexBehavior = "Sibling",
|
|
57
|
+
ResetOnSpawn = false,
|
|
58
|
+
}, Vide.jsx(self.Render, {
|
|
59
|
+
props = props,
|
|
60
|
+
}))
|
|
61
|
+
end, target)
|
|
62
|
+
else
|
|
63
|
+
return Vide.jsx(self.Render, {
|
|
64
|
+
props = props,
|
|
65
|
+
})
|
|
52
66
|
end
|
|
53
|
-
local _result_1 = props.renders
|
|
54
|
-
if _result_1 ~= nil then
|
|
55
|
-
_result_1 = _result_1.names
|
|
56
|
-
end
|
|
57
|
-
local _result_2 = props.renders
|
|
58
|
-
if _result_2 ~= nil then
|
|
59
|
-
_result_2 = _result_2.group
|
|
60
|
-
end
|
|
61
|
-
_self:render(_result, _result_1, _result_2)
|
|
62
67
|
end
|
|
63
68
|
end
|
|
64
69
|
return {
|