@rbxts/app-forge 0.7.2-prototype.31 → 0.7.2-prototype.33

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 +15 -14
  2. package/package.json +1 -1
package/out/renders.luau CHANGED
@@ -3,6 +3,7 @@ local TS = _G[script]
3
3
  -- Packages
4
4
  local _vide = TS.import(script, TS.getModule(script, "@rbxts", "vide").src)
5
5
  local Vide = _vide
6
+ local apply = _vide.apply
6
7
  local mount = _vide.mount
7
8
  -- Types
8
9
  -- Components
@@ -256,6 +257,9 @@ do
256
257
  _loaded[_name] = newMap
257
258
  end
258
259
  function Renders:initalize(props, target, root)
260
+ local _attributes = table.clone(props)
261
+ setmetatable(_attributes, nil)
262
+ local renders = Vide.jsx(self.Load, _attributes)
259
263
  if target then
260
264
  mount(function()
261
265
  if not self.__px then
@@ -274,19 +278,18 @@ do
274
278
  usePx(_result, _result_1, _result_2)
275
279
  self.__px = true
276
280
  end
277
- local _result
278
281
  if root then
279
- _result = root
280
- else
281
- local _attributes = table.clone(props)
282
- setmetatable(_attributes, nil)
283
- _result = (Vide.jsx("screengui", {
284
- Name = "App Tree",
285
- ZIndexBehavior = "Sibling",
286
- ResetOnSpawn = false,
287
- }, Vide.jsx(self.Load, _attributes)))
282
+ root.Name = "App Tree"
283
+ apply(root)({
284
+ [0] = renders,
285
+ })
286
+ return root
288
287
  end
289
- return _result
288
+ return Vide.jsx("screengui", {
289
+ Name = "App Tree",
290
+ ZIndexBehavior = "Sibling",
291
+ ResetOnSpawn = false,
292
+ }, renders)
290
293
  end, target)
291
294
  else
292
295
  if not self.__px then
@@ -305,9 +308,7 @@ do
305
308
  usePx(_result, _result_1, _result_2)
306
309
  self.__px = true
307
310
  end
308
- local _attributes = table.clone(props)
309
- setmetatable(_attributes, nil)
310
- return Vide.jsx(self.Load, _attributes)
311
+ return renders
311
312
  end
312
313
  end
313
314
  end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/app-forge",
3
- "version": "0.7.2-prototype.31",
3
+ "version": "0.7.2-prototype.33",
4
4
  "description": "An App Manager for Vide",
5
5
  "main": "out/init.lua",
6
6
  "types": "out/index.d.ts",