@sensiblestats/widget-react 0.39.1 → 0.40.0

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.
package/dist/index.js CHANGED
@@ -3064,7 +3064,7 @@ function MessageList({ controller, ui, slip, onDashboardTap, monitor }) {
3064
3064
  disabled: state.isStreaming,
3065
3065
  onAct: (a) => send(a.message, { actionId: a.actionId, actionRef: a.actionRef, displayText: a.label }),
3066
3066
  onTap: (tile, index) => {
3067
- send(tile.actionValue, { displayText: tile.title });
3067
+ send(tile.actionValue, tile.actionRef ? { actionRef: tile.actionRef, displayText: tile.title } : { displayText: tile.title });
3068
3068
  if (m.role === "assistant" && m.greetingDashboard) onDashboardTap?.(tile, index, m.greetingDashboard.layout);
3069
3069
  },
3070
3070
  ui,