@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.
- package/out/appRegistry.luau +1 -1
- package/out/renders.luau +47 -8
- package/package.json +1 -1
package/out/appRegistry.luau
CHANGED
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
|
|
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(
|
|
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(
|
|
60
|
+
table.insert(loaded, entry)
|
|
61
61
|
end
|
|
62
62
|
end
|
|
63
|
-
|
|
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
|
|
106
|
+
local _callback_1 = function(entries)
|
|
68
107
|
-- ▼ ReadonlyMap.forEach ▼
|
|
69
|
-
local
|
|
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
|
-
|
|
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
|
-
|
|
118
|
+
_callback_1(_v, _k, _exp)
|
|
80
119
|
end
|
|
81
120
|
-- ▲ ReadonlyMap.forEach ▲
|
|
82
121
|
return rendered
|