@rbxts/app-forge 0.7.2-prototype.35 → 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.
- package/out/appRegistry.d.ts +1 -3
- package/out/appRegistry.luau +0 -1
- package/out/renders.luau +44 -19
- package/package.json +1 -1
package/out/appRegistry.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import Vide from "@rbxts/vide";
|
|
2
2
|
import type Types from "./types";
|
|
3
|
-
import type AppForge from "./forge";
|
|
4
3
|
export declare const AppRegistry: Map<string, Map<string, Types.AppRegistry.Static>>;
|
|
5
4
|
export declare const AppSources: Map<string, Map<string, Vide.Source<boolean>>>;
|
|
6
5
|
/**
|
|
@@ -13,9 +12,8 @@ export declare function App<N extends AppNames>(props: Types.AppRegistry.Props<N
|
|
|
13
12
|
* Base class for all AppForge Apps.
|
|
14
13
|
*/
|
|
15
14
|
export declare abstract class Args {
|
|
16
|
-
readonly source: Vide.Source<boolean>;
|
|
17
15
|
readonly props: Types.Props.Class;
|
|
18
|
-
readonly
|
|
16
|
+
readonly source: Vide.Source<boolean>;
|
|
19
17
|
readonly group: AppGroups;
|
|
20
18
|
readonly name: AppNames;
|
|
21
19
|
constructor(props: Types.Props.Main, name: AppNames, group?: AppGroups);
|
package/out/appRegistry.luau
CHANGED
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
|
|
213
|
-
if
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
local
|
|
222
|
-
if
|
|
223
|
-
|
|
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
|
-
|
|
231
|
-
|
|
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
|
-
},
|
|
264
|
+
}, if anchor then anchor else entryInstance))
|
|
240
265
|
local newMap = {}
|
|
241
266
|
local render = {
|
|
242
267
|
container = container,
|
|
243
|
-
instance =
|
|
268
|
+
instance = entryInstance,
|
|
244
269
|
entry = entry,
|
|
245
270
|
}
|
|
246
271
|
local _group = group
|