@rbxts/app-forge 0.6.0-alpha.62 → 0.6.0-alpha.63

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.
@@ -65,8 +65,11 @@ local function Render(props)
65
65
  return forge:renderApp(props)
66
66
  elseif render.names then
67
67
  return forge:renderApps(props)
68
- elseif render.group then
69
- return forge:renderGroup(props)
68
+ else
69
+ local _value_1 = render.group
70
+ if _value_1 ~= "" and _value_1 then
71
+ return forge:renderGroup(props)
72
+ end
70
73
  end
71
74
  end
72
75
  return forge:renderAll(props)
@@ -131,7 +131,7 @@ do
131
131
  _selectedGroup = _selectedGroup.group
132
132
  end
133
133
  local selectedGroup = _selectedGroup
134
- if selectedGroup then
134
+ if selectedGroup ~= "" and selectedGroup then
135
135
  local names = {}
136
136
  -- ▼ ReadonlyMap.forEach ▼
137
137
  local _callback = function(app, name)
@@ -143,7 +143,17 @@ do
143
143
  if not (foundGroup ~= "" and foundGroup) then
144
144
  return nil
145
145
  end
146
- if tostring(selectedGroup) == tostring(foundGroup) then
146
+ local _result
147
+ if type(selectedGroup) == "table" then
148
+ local _array = {}
149
+ local _length = #_array
150
+ table.move(selectedGroup, 1, #selectedGroup, _length + 1, _array)
151
+ _result = _array
152
+ else
153
+ _result = { selectedGroup }
154
+ end
155
+ local allGroups = _result
156
+ if table.find(allGroups, foundGroup) ~= nil then
147
157
  local _name = name
148
158
  table.insert(names, _name)
149
159
  return #names
@@ -7,7 +7,7 @@ declare namespace Types {
7
7
  type Render =
8
8
  | { name?: AppNames; names?: never; group?: never }
9
9
  | { names?: AppNames[]; name?: never; group?: never }
10
- | { names?: never; name?: never; group?: GroupNames[] };
10
+ | { names?: never; name?: never; group?: GroupNames[] | GroupNames };
11
11
 
12
12
  type Main = {
13
13
  props: AppProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/app-forge",
3
- "version": "0.6.0-alpha.62",
3
+ "version": "0.6.0-alpha.63",
4
4
  "description": "An App Manager for Vide",
5
5
  "main": "out/init.lua",
6
6
  "types": "out/index.d.ts",