@rbxts/app-forge 0.7.2-prototype.11 → 0.7.2-prototype.13

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/renders.d.ts CHANGED
@@ -4,6 +4,6 @@ import Rules from "./ruleEngine";
4
4
  export default class Renders extends Rules {
5
5
  private __px;
6
6
  constructor();
7
- private Render;
7
+ Render: (props: Types.Props.Main) => void;
8
8
  protected initalize(props: Types.Props.Main, target?: GuiObject | Instance, root?: GuiObject | Instance): Vide.Node;
9
9
  }
package/out/renders.luau CHANGED
@@ -30,12 +30,11 @@ do
30
30
  function Renders:constructor()
31
31
  super.constructor(self)
32
32
  self.__px = false
33
- end
34
- function Renders:Render(_param)
35
- local props = _param.props
36
- print(props)
37
- print(AppRegistry)
38
- print(AppSources)
33
+ self.Render = function(props)
34
+ print(props)
35
+ print(AppRegistry)
36
+ print(AppSources)
37
+ end
39
38
  end
40
39
  function Renders:initalize(props, target, root)
41
40
  if not self.__px then
@@ -56,18 +55,24 @@ do
56
55
  end
57
56
  if target then
58
57
  mount(function()
59
- return if root then root else (Vide.jsx("screengui", {
60
- Name = "App Tree",
61
- ZIndexBehavior = "Sibling",
62
- ResetOnSpawn = false,
63
- }, Vide.jsx(self.Render, {
64
- props = props,
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
- return Vide.jsx(self.Render, {
69
- props = props,
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/app-forge",
3
- "version": "0.7.2-prototype.11",
3
+ "version": "0.7.2-prototype.13",
4
4
  "description": "An App Manager for Vide",
5
5
  "main": "out/init.lua",
6
6
  "types": "out/index.d.ts",