@rbxts/app-forge 0.7.2-prototype.32 → 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 -19
  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,10 +257,10 @@ 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
- local Root = function()
261
- return root
262
- end
263
264
  mount(function()
264
265
  if not self.__px then
265
266
  local _result = props.config
@@ -277,21 +278,18 @@ do
277
278
  usePx(_result, _result_1, _result_2)
278
279
  self.__px = true
279
280
  end
280
- local _result
281
281
  if root then
282
- local _attributes = table.clone(props)
283
- setmetatable(_attributes, nil)
284
- _result = (Vide.jsx(Root, nil, Vide.jsx(self.Load, _attributes)))
285
- else
286
- local _attributes = table.clone(props)
287
- setmetatable(_attributes, nil)
288
- _result = (Vide.jsx("screengui", {
289
- Name = "App Tree",
290
- ZIndexBehavior = "Sibling",
291
- ResetOnSpawn = false,
292
- }, Vide.jsx(self.Load, _attributes)))
282
+ root.Name = "App Tree"
283
+ apply(root)({
284
+ [0] = renders,
285
+ })
286
+ return root
293
287
  end
294
- return _result
288
+ return Vide.jsx("screengui", {
289
+ Name = "App Tree",
290
+ ZIndexBehavior = "Sibling",
291
+ ResetOnSpawn = false,
292
+ }, renders)
295
293
  end, target)
296
294
  else
297
295
  if not self.__px then
@@ -310,9 +308,7 @@ do
310
308
  usePx(_result, _result_1, _result_2)
311
309
  self.__px = true
312
310
  end
313
- local _attributes = table.clone(props)
314
- setmetatable(_attributes, nil)
315
- return Vide.jsx(self.Load, _attributes)
311
+ return renders
316
312
  end
317
313
  end
318
314
  end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/app-forge",
3
- "version": "0.7.2-prototype.32",
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",