@nrbx/topbar-components 1.0.3 → 1.0.5

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,28 @@ 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
+ local _exp = `sortByDock child: hasProps={props ~= nil}`
31
+ local _result = props
32
+ if _result ~= nil then
33
+ _result = _result.text
34
+ end
35
+ local _exp_1 = `text={_result}`
36
+ local _result_1 = props
37
+ if _result_1 ~= nil then
38
+ _result_1 = _result_1.static
39
+ end
40
+ debugLog(_exp, _exp_1, `static={_result_1}`, `dock="{dockValue}"`, `→ {if dockValue == "Center" then "Center" elseif dockValue == "Right" then "Right" else "Left"}`)
41
+ if dockValue == "Center" then
30
42
  center[ci + 1] = child
31
43
  ci += 1
32
- elseif dock == "Right" then
44
+ elseif dockValue == "Right" then
33
45
  right[ri + 1] = child
34
46
  ri += 1
35
47
  else
@@ -37,6 +49,7 @@ local function sortByDock(children)
37
49
  li += 1
38
50
  end
39
51
  end)
52
+ debugLog(`sortByDock totals: left={#left} center={#center} right={#right}`)
40
53
  return { left, center, right }
41
54
  end
42
55
  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.5",
4
4
  "main": "out/init.lua",
5
5
  "scripts": {
6
6
  "build": "rbxtsc",