@rbxts/app-forge 0.7.2-prototype.36 → 0.7.2-prototype.37

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 +44 -19
  2. package/package.json +1 -1
package/out/renders.luau CHANGED
@@ -203,32 +203,57 @@ do
203
203
  if not entry then
204
204
  return nil
205
205
  end
206
+ -- App Entry Instance/Render
207
+ local entryInstance = entry.constructor.new(props, name, group):render()
208
+ entryInstance.Name = "Render"
209
+ -- Parent Container
206
210
  local parentContainer
207
211
  local _result = entry.rules
208
212
  if _result ~= nil then
209
213
  _result = _result.parent
210
214
  end
211
215
  if _result ~= "" and _result then
212
- local _value = entry.rules.parent
213
- if _value ~= "" and _value then
214
- local _condition = entry.rules.parentGroup
215
- if not (_condition ~= "" and _condition) then
216
- _condition = "None"
217
- end
218
- local group = _condition
219
- local _loaded = self.Loaded
220
- local _parent = entry.rules.parent
221
- local parentMap = _loaded[_parent]
222
- if parentMap then
223
- local parentEntry = parentMap[group]
224
- if parentEntry then
225
- parentContainer = parentEntry.container
226
- end
216
+ local _condition = entry.rules.parentGroup
217
+ if not (_condition ~= "" and _condition) then
218
+ _condition = "None"
219
+ end
220
+ local group = _condition
221
+ local _loaded = self.Loaded
222
+ local _parent = entry.rules.parent
223
+ local parentMap = _loaded[_parent]
224
+ if parentMap then
225
+ local parentEntry = parentMap[group]
226
+ if parentEntry then
227
+ parentContainer = parentEntry.container
227
228
  end
228
229
  end
229
230
  end
230
- local instance = entry.constructor.new(props, name, group):render()
231
- instance.Name = "Render"
231
+ -- Anchor
232
+ local anchor
233
+ local _result_1 = entry.rules
234
+ if _result_1 ~= nil then
235
+ _result_1 = _result_1.anchor
236
+ end
237
+ if _result_1 then
238
+ local parentName = entry.rules.parent
239
+ local _condition = entry.rules.parentGroup
240
+ if not (_condition ~= "" and _condition) then
241
+ _condition = "None"
242
+ end
243
+ local parentGroup = _condition
244
+ if not (parentName ~= "" and parentName) then
245
+ return nil
246
+ end
247
+ local parentEntry = getAppEntry(entry.rules.parent, parentGroup)
248
+ if not parentEntry then
249
+ return nil
250
+ end
251
+ local parentInstance = parentEntry.constructor.new(props, parentName, parentGroup):render()
252
+ parentInstance.Name = "Anchor"
253
+ apply(parentInstance)({
254
+ [0] = entryInstance,
255
+ })
256
+ end
232
257
  local container = (Vide.jsx("frame", {
233
258
  Name = name,
234
259
  BackgroundTransparency = 1,
@@ -236,11 +261,11 @@ do
236
261
  Position = UDim2.fromScale(0.5, 0.5),
237
262
  Size = UDim2.fromScale(1, 1),
238
263
  Parent = parentContainer,
239
- }, instance))
264
+ }, if anchor then anchor else entryInstance))
240
265
  local newMap = {}
241
266
  local render = {
242
267
  container = container,
243
- instance = instance,
268
+ instance = entryInstance,
244
269
  entry = entry,
245
270
  }
246
271
  local _group = group
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/app-forge",
3
- "version": "0.7.2-prototype.36",
3
+ "version": "0.7.2-prototype.37",
4
4
  "description": "An App Manager for Vide",
5
5
  "main": "out/init.lua",
6
6
  "types": "out/index.d.ts",