@rbxts/app-forge 0.7.2-prototype.11 → 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.
Files changed (2) hide show
  1. package/out/renders.luau +17 -12
  2. package/package.json +1 -1
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(_param)
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
- 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.12",
4
4
  "description": "An App Manager for Vide",
5
5
  "main": "out/init.lua",
6
6
  "types": "out/index.d.ts",