@nrbx/topbar-components 1.1.1 → 1.1.2

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.
@@ -34,7 +34,7 @@ local Notification = TS.import(script, script.Parent, "notification").Notificati
34
34
  * both states, or `{ deselected: T; selected: T }` to animate between them.
35
35
 
36
36
  ]]
37
- local ANIMATEABLE = { "backgroundColor", "backgroundTransparency", "imageColor", "imageTransparency" }
37
+ local ANIMATEABLE = { "backgroundTransparency", "imageTransparency" }
38
38
  --* Icon select/deselect state.
39
39
  --[[
40
40
  *
@@ -170,7 +170,7 @@ local function Icon(componentProps)
170
170
  params.Font = stateful(props.fontFace, currentState)
171
171
  params.Size = stateful(props.textSize, currentState)
172
172
  params.Width = sizing.textMeasurementWidth
173
- setTextBounds(TextService:GetTextBoundsAsync(params))
173
+ setTextBounds(TS.await(TextService:GetTextBoundsAsync(params)))
174
174
  previousQueryRef.current = currentQuery
175
175
  end), { currentText, props.fontFace, props.textSize, currentState })
176
176
  local imageSizeOff = stateful(props.imageSizeOffset, currentState)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrbx/topbar-components",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "main": "out/init.luau",
5
5
  "scripts": {
6
6
  "build": "rbxtsc",