@lightdash/cli 1.249.0 → 1.251.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.
@@ -229,6 +229,28 @@ exactly ONE source row and ONE metric-slot field, and only when
229
229
  show each action on its own flag (a viewer may have one permission but not
230
230
  the other).
231
231
 
232
+ ### Interaction hygiene
233
+
234
+ One floating surface at a time, and no leftover emphasis — native Lightdash
235
+ charts show a menu OR a tooltip, never both, and clicking leaves no mark
236
+ highlighted:
237
+
238
+ - **Opening the action menu closes the tooltip.** Drive tooltip visibility
239
+ from your own state (recharts: gate `<Tooltip>` via controlled props or a
240
+ wrapper's visibility; echarts: `dispatchAction({ type: 'hideTip' })` on
241
+ click). While the menu is open the tooltip stays hidden, and it must not
242
+ reappear until the pointer moves again after the menu closes.
243
+ - **No persistent focus or active styling on a clicked mark.** Disable click
244
+ emphasis (recharts: no `activeShape` on click state; echarts: turn off
245
+ lingering `emphasis`/`select`) and blur any focused SVG node after opening
246
+ the menu. Only hover may emphasise, and only while hovering.
247
+ - **Subtle hover, no cursor band.** The library-default full-height band
248
+ behind the hovered mark (recharts `<Tooltip cursor>`) is not native
249
+ behaviour — use `cursor={false}` or a faint theme-token fill.
250
+ - **Tooltips are themed and deduplicated.** Background, text and border come
251
+ from the theme tokens (never library-default white), and each value appears
252
+ once: one line per series actually under the pointer.
253
+
232
254
  ## The declaration
233
255
 
234
256
  Alongside the component you emit one structured declaration — as **structured output, not a
@@ -364,4 +386,6 @@ Finally, if any mark maps to exactly one source row, the data-point action
364
386
  menu is wired: each interactive datum carries `sourceRow`, the underlying-data
365
387
  action is gated on `underlyingData.enabled`, and the drill action is gated on
366
388
  `drillDown.enabled`. Omitting the menu on a chart whose marks satisfy
367
- provenance is a defect, not a simplification.
389
+ provenance is a defect, not a simplification. Then click a mark mentally:
390
+ the tooltip closes, nothing stays highlighted, and only the menu remains —
391
+ one floating surface at a time.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/cli",
3
- "version": "1.249.0",
3
+ "version": "1.251.0",
4
4
  "description": "Lightdash CLI tool",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -45,8 +45,8 @@
45
45
  "unique-names-generator": "4.7.1",
46
46
  "uuid": "11.1.1",
47
47
  "yaml": "2.8.3",
48
- "@lightdash/warehouses": "1.249.0",
49
- "@lightdash/common": "1.249.0"
48
+ "@lightdash/common": "1.251.0",
49
+ "@lightdash/warehouses": "1.251.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/inquirer": "8.2.4",