@rbxts/app-forge 0.7.2-prototype.21 → 0.7.2-prototype.22

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.
@@ -51,7 +51,7 @@ local function App(props)
51
51
  local _object = {
52
52
  constructor = constructor,
53
53
  }
54
- local _left = "renderGroup"
54
+ local _left = "group"
55
55
  local _condition_1 = props.group
56
56
  if not (_condition_1 ~= "" and _condition_1) then
57
57
  _condition_1 = "None"
package/out/renders.luau CHANGED
@@ -35,7 +35,7 @@ do
35
35
  local _binding = props
36
36
  local forge = _binding.forge
37
37
  local renders = _binding.renders
38
- local selected = {}
38
+ local loaded = {}
39
39
  if not renders then
40
40
  return {}
41
41
  end
@@ -45,7 +45,7 @@ do
45
45
  local _callback = function(group)
46
46
  local entries = self:resolveGroupEntries(forge, group, renders.names, renders.name)
47
47
  for _, entry in entries do
48
- table.insert(selected, entry)
48
+ table.insert(loaded, entry)
49
49
  end
50
50
  end
51
51
  for _k, _v in _exp do
@@ -57,26 +57,65 @@ do
57
57
  if _value ~= "" and _value then
58
58
  local entries = self:resolveGroupEntries(forge, renders.group, renders.names, renders.name)
59
59
  for _, entry in entries do
60
- table.insert(selected, entry)
60
+ table.insert(loaded, entry)
61
61
  end
62
62
  end
63
- print(selected)
63
+ -- ▼ ReadonlyArray.forEach ▼
64
+ local _callback = function(entry)
65
+ local parentName = tostring(entry.constructor)
66
+ local parentGroup = entry.group
67
+ print(parentName, parentGroup)
68
+ -- ▼ ReadonlyMap.forEach ▼
69
+ local _callback_1 = function(groupEntries, childName)
70
+ -- ▼ ReadonlyMap.forEach ▼
71
+ local _callback_2 = function(childEntry, childGroup)
72
+ local _result = childEntry.rules
73
+ if _result ~= nil then
74
+ _result = _result.parent
75
+ end
76
+ local _condition = _result ~= parentName
77
+ if _condition then
78
+ local _result_1 = childEntry.rules
79
+ if _result_1 ~= nil then
80
+ _result_1 = _result_1.parentGroup
81
+ end
82
+ _condition = _result_1 ~= parentGroup
83
+ end
84
+ if _condition then
85
+ return nil
86
+ end
87
+ print(childName, childGroup, childEntry)
88
+ end
89
+ for _k, _v in groupEntries do
90
+ _callback_2(_v, _k, groupEntries)
91
+ end
92
+ -- ▲ ReadonlyMap.forEach ▲
93
+ end
94
+ for _k, _v in AppRegistry do
95
+ _callback_1(_v, _k, AppRegistry)
96
+ end
97
+ -- ▲ ReadonlyMap.forEach ▲
98
+ end
99
+ for _k, _v in loaded do
100
+ _callback(_v, _k - 1, loaded)
101
+ end
102
+ -- ▲ ReadonlyArray.forEach ▲
64
103
  local rendered = {}
65
104
  local _exp = self.Rendered
66
105
  -- ▼ ReadonlyMap.forEach ▼
67
- local _callback = function(entries)
106
+ local _callback_1 = function(entries)
68
107
  -- ▼ ReadonlyMap.forEach ▼
69
- local _callback_1 = function(entry)
108
+ local _callback_2 = function(entry)
70
109
  local _container = entry.container
71
110
  table.insert(rendered, _container)
72
111
  end
73
112
  for _k, _v in entries do
74
- _callback_1(_v, _k, entries)
113
+ _callback_2(_v, _k, entries)
75
114
  end
76
115
  -- ▲ ReadonlyMap.forEach ▲
77
116
  end
78
117
  for _k, _v in _exp do
79
- _callback(_v, _k, _exp)
118
+ _callback_1(_v, _k, _exp)
80
119
  end
81
120
  -- ▲ ReadonlyMap.forEach ▲
82
121
  return rendered
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/app-forge",
3
- "version": "0.7.2-prototype.21",
3
+ "version": "0.7.2-prototype.22",
4
4
  "description": "An App Manager for Vide",
5
5
  "main": "out/init.lua",
6
6
  "types": "out/index.d.ts",