@nrbx/topbar-components 1.0.3 → 1.0.4

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.
@@ -20,16 +20,18 @@ local function sortByDock(children)
20
20
  if child == nil then
21
21
  return nil
22
22
  end
23
- local props = child.props
24
- local _dock = props
25
- if _dock ~= nil then
26
- _dock = _dock.dock
23
+ local childObj = child
24
+ local props = childObj.props
25
+ local _dockValue = props
26
+ if _dockValue ~= nil then
27
+ _dockValue = _dockValue.dock
27
28
  end
28
- local dock = _dock
29
- if dock == "Center" then
29
+ local dockValue = _dockValue
30
+ debugLog(`sortByDock child: hasProps={props ~= nil}`, `dock="{dockValue}"`, `→ {if dockValue == "Center" then "Center" elseif dockValue == "Right" then "Right" else "Left"}`)
31
+ if dockValue == "Center" then
30
32
  center[ci + 1] = child
31
33
  ci += 1
32
- elseif dock == "Right" then
34
+ elseif dockValue == "Right" then
33
35
  right[ri + 1] = child
34
36
  ri += 1
35
37
  else
@@ -37,6 +39,7 @@ local function sortByDock(children)
37
39
  li += 1
38
40
  end
39
41
  end)
42
+ debugLog(`sortByDock totals: left={#left} center={#center} right={#right}`)
40
43
  return { left, center, right }
41
44
  end
42
45
  local function TopbarProvider(_param)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrbx/topbar-components",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "main": "out/init.lua",
5
5
  "scripts": {
6
6
  "build": "rbxtsc",