@rbxts/app-forge 0.6.0-alpha.79 → 0.6.0-alpha.80

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.
@@ -7,6 +7,7 @@ export default class Renders extends Rules {
7
7
  private renderNames;
8
8
  private collectByGroup;
9
9
  private normalizeGroups;
10
+ protected afterRender(this: AppForge, props: Types.Props.Main): void;
10
11
  protected renderApp(this: AppForge, props: Types.Props.Main): ScreenGui | Frame;
11
12
  protected renderApps(this: AppForge, props: Types.Props.Main): (ScreenGui | Frame)[];
12
13
  protected renderGroup(this: AppForge, props: Types.Props.Main): (ScreenGui | Frame)[];
@@ -138,6 +138,30 @@ do
138
138
  end
139
139
  return _result
140
140
  end
141
+ function Renders:afterRender(props)
142
+ local _binding = props
143
+ local forge = _binding.forge
144
+ -- ▼ ReadonlyMap.forEach ▼
145
+ local _callback = function(app, name)
146
+ local rules = app.rules
147
+ local _condition = not rules
148
+ if not _condition then
149
+ local _value = rules.parent
150
+ _condition = not (_value ~= "" and _value)
151
+ if not _condition then
152
+ _condition = not rules.detach
153
+ end
154
+ end
155
+ if _condition then
156
+ return nil
157
+ end
158
+ forge:attach(name, rules.parent)
159
+ end
160
+ for _k, _v in AppRegistry do
161
+ _callback(_v, _k, AppRegistry)
162
+ end
163
+ -- ▲ ReadonlyMap.forEach ▲
164
+ end
141
165
  function Renders:renderApp(props)
142
166
  local _binding = props
143
167
  local forge = _binding.forge
@@ -172,6 +172,7 @@ do
172
172
  apply(Container)({
173
173
  [0] = self:renderMount(props),
174
174
  })
175
+ self:afterRender(props)
175
176
  return Container
176
177
  end
177
178
  function AppForge:mount(callback, props, target)
@@ -180,26 +181,7 @@ do
180
181
  apply(Container)({
181
182
  [0] = self:renderMount(props),
182
183
  })
183
- -- ▼ ReadonlyMap.forEach ▼
184
- local _callback = function(app, name)
185
- local rules = app.rules
186
- local _condition = not rules
187
- if not _condition then
188
- local _value = rules.parent
189
- _condition = not (_value ~= "" and _value)
190
- if not _condition then
191
- _condition = not rules.detach
192
- end
193
- end
194
- if _condition then
195
- return nil
196
- end
197
- self:attach(name, rules.parent)
198
- end
199
- for _k, _v in AppRegistry do
200
- _callback(_v, _k, AppRegistry)
201
- end
202
- -- ▲ ReadonlyMap.forEach ▲
184
+ self:afterRender(props)
203
185
  return Container
204
186
  end, target)
205
187
  return self.innerMount
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/app-forge",
3
- "version": "0.6.0-alpha.79",
3
+ "version": "0.6.0-alpha.80",
4
4
  "description": "An App Manager for Vide",
5
5
  "main": "out/init.lua",
6
6
  "types": "out/index.d.ts",