@vokril/ui-solid 0.32.0 → 0.33.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.
Files changed (57) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +65 -0
  3. package/dist/{StatusBarNotificationBell-CgsYrrpj.js → StatusBarNotificationBell-DKDoWK71.js} +1557 -1545
  4. package/dist/StatusBarNotificationBell-wO16mjon.cjs +50 -0
  5. package/dist/_internal/contract/browser/workspace.d.cts +15 -0
  6. package/dist/_internal/contract/browser/workspace.d.ts +15 -0
  7. package/dist/_internal/contract/menuDensity.d.cts +8 -0
  8. package/dist/_internal/contract/menuDensity.d.ts +8 -0
  9. package/dist/_internal/platform/settings/settingsTypes.d.cts +2 -2
  10. package/dist/_internal/platform/settings/settingsTypes.d.ts +2 -2
  11. package/dist/index.cjs +1 -1
  12. package/dist/index.js +3 -3
  13. package/dist/{server/useSettingsSubscription-DLEk4k4j.js → menuDensity-6x_EqCGb.js} +7 -5
  14. package/dist/{server/useSettingsSubscription-DKjCwmRd.cjs → menuDensity-Cf74__OQ.cjs} +1 -1
  15. package/dist/notifications/index.cjs +1 -1
  16. package/dist/notifications/index.js +2 -2
  17. package/dist/notifications/notificationOverlaySnapshot.d.cts +35 -6
  18. package/dist/notifications/notificationOverlaySnapshot.d.ts +35 -6
  19. package/dist/overlay/Modal.d.cts +7 -6
  20. package/dist/overlay/Modal.d.ts +7 -6
  21. package/dist/overlay/modalViewport.d.cts +2 -1
  22. package/dist/overlay/modalViewport.d.ts +2 -1
  23. package/dist/rowSource-D8gyHbEE.cjs +1 -0
  24. package/dist/{rowSource-BRGZHclZ.js → rowSource-_4IuosKj.js} +5 -0
  25. package/dist/server/{StatusBarNotificationBell-Cxs_bVKX.cjs → StatusBarNotificationBell-DEp4eEUv.cjs} +19 -19
  26. package/dist/server/{StatusBarNotificationBell-CJJFE4rf.js → StatusBarNotificationBell-kOm2ZNkl.js} +1519 -1507
  27. package/dist/server/index.cjs +1 -1
  28. package/dist/server/index.js +3 -3
  29. package/dist/{useSettingsSubscription-DLEk4k4j.js → server/menuDensity-6x_EqCGb.js} +7 -5
  30. package/dist/{useSettingsSubscription-DKjCwmRd.cjs → server/menuDensity-Cf74__OQ.cjs} +1 -1
  31. package/dist/server/notifications/index.cjs +1 -1
  32. package/dist/server/notifications/index.js +2 -2
  33. package/dist/server/{rowSource-CoeHYNsV.js → rowSource-BSa7rgYJ.js} +188 -183
  34. package/dist/server/rowSource-Yw-xtlih.cjs +1 -0
  35. package/dist/server/settings/index.cjs +1 -1
  36. package/dist/server/settings/index.js +26 -25
  37. package/dist/server/tree/index.cjs +1 -1
  38. package/dist/server/tree/index.js +1 -1
  39. package/dist/settings/index.cjs +1 -1
  40. package/dist/settings/index.js +26 -25
  41. package/dist/solid/_internal/contract/menuDensity.js +1 -0
  42. package/dist/solid/_internal/platform/settings/settingsTypes.js +1 -0
  43. package/dist/solid/notifications/NotificationHost.jsx +3 -16
  44. package/dist/solid/notifications/notificationOverlaySnapshot.js +26 -0
  45. package/dist/solid/tree/TreeRow.jsx +3 -1
  46. package/dist/style.css +1 -1
  47. package/dist/tree/TreeRow.d.cts +5 -4
  48. package/dist/tree/TreeRow.d.ts +5 -4
  49. package/dist/tree/descriptor.d.cts +13 -3
  50. package/dist/tree/descriptor.d.ts +13 -3
  51. package/dist/tree/index.cjs +1 -1
  52. package/dist/tree/index.js +1 -1
  53. package/dist/ui.css +1 -1
  54. package/package.json +1 -1
  55. package/dist/StatusBarNotificationBell-CNs_obmZ.cjs +0 -50
  56. package/dist/rowSource-C3zlzAtR.cjs +0 -1
  57. package/dist/server/rowSource-C1F4l0xZ.cjs +0 -1
@@ -51,10 +51,11 @@ interface TreeRowProps<TNode> {
51
51
  *
52
52
  * 1. pull DOM focus — the real row does that, and two rows racing for it
53
53
  * make `document.activeElement` jump;
54
- * 2. restate `id` or set-position — the real row already says "3 of 15", and
55
- * a copy claiming "2 of 2" is simply a lie to a screen reader. The widget
56
- * announces its own identity instead (a list of parents), which is what
57
- * `role="list"`/`"listitem"` on the wrapper is for;
54
+ * 2. restate `id`, set-position or the row's name (`dom.ariaLabel`) — the
55
+ * real row already says "3 of 15", and a copy claiming "2 of 2" is simply
56
+ * a lie to a screen reader. The widget announces its own identity instead
57
+ * (a list of parents), which is what `role="list"`/`"listitem"` on the
58
+ * wrapper is for;
58
59
  * 3. answer `[data-tree-row-key]` — every existing query for a row would
59
60
  * otherwise match twice, and the clone would sometimes win.
60
61
  */
@@ -51,10 +51,11 @@ interface TreeRowProps<TNode> {
51
51
  *
52
52
  * 1. pull DOM focus — the real row does that, and two rows racing for it
53
53
  * make `document.activeElement` jump;
54
- * 2. restate `id` or set-position — the real row already says "3 of 15", and
55
- * a copy claiming "2 of 2" is simply a lie to a screen reader. The widget
56
- * announces its own identity instead (a list of parents), which is what
57
- * `role="list"`/`"listitem"` on the wrapper is for;
54
+ * 2. restate `id`, set-position or the row's name (`dom.ariaLabel`) — the
55
+ * real row already says "3 of 15", and a copy claiming "2 of 2" is simply
56
+ * a lie to a screen reader. The widget announces its own identity instead
57
+ * (a list of parents), which is what `role="list"`/`"listitem"` on the
58
+ * wrapper is for;
58
59
  * 3. answer `[data-tree-row-key]` — every existing query for a row would
59
60
  * otherwise match twice, and the clone would sometimes win.
60
61
  */
@@ -39,13 +39,23 @@ export type TreeActivateIntent = 'single-click' | 'double-click' | 'keyboard';
39
39
  export type TreeIndentGuide = 'none' | 'lines' | 'active';
40
40
  /**
41
41
  * The DOM hooks a row may need from its surface: drag-and-drop, a native
42
- * tooltip, an extra class. Narrow on purpose — a descriptor cannot reach in and
43
- * override the engine's own click / keyboard / menu wiring, because that is
44
- * exactly how four surfaces drifted apart in the first place.
42
+ * tooltip, an accessible name, an extra class. Narrow on purpose — a descriptor
43
+ * cannot reach in and override the engine's own click / keyboard / menu wiring,
44
+ * because that is exactly how four surfaces drifted apart in the first place.
45
45
  */
46
46
  export interface TreeRowDomProps {
47
47
  class?: string;
48
48
  title?: string;
49
+ /**
50
+ * The row's accessible name, written as its `aria-label`. A row is named by
51
+ * its content; one that shows no text — a placeholder that loads the next
52
+ * page as it scrolls into view — is named here. Must be `t()`-d. Left out or
53
+ * empty, the row has none, as the reference's list writes the label its
54
+ * accessibility provider gives a row only when there is one
55
+ * (`base/browser/ui/list/listWidget.ts:890`, `:1313-1335`). A sticky clone
56
+ * of the row does not restate it.
57
+ */
58
+ ariaLabel?: string;
49
59
  draggable?: boolean;
50
60
  onDragStart?: (event: DragEvent) => void;
51
61
  onDragOver?: (event: DragEvent) => void;
@@ -39,13 +39,23 @@ export type TreeActivateIntent = 'single-click' | 'double-click' | 'keyboard';
39
39
  export type TreeIndentGuide = 'none' | 'lines' | 'active';
40
40
  /**
41
41
  * The DOM hooks a row may need from its surface: drag-and-drop, a native
42
- * tooltip, an extra class. Narrow on purpose — a descriptor cannot reach in and
43
- * override the engine's own click / keyboard / menu wiring, because that is
44
- * exactly how four surfaces drifted apart in the first place.
42
+ * tooltip, an accessible name, an extra class. Narrow on purpose — a descriptor
43
+ * cannot reach in and override the engine's own click / keyboard / menu wiring,
44
+ * because that is exactly how four surfaces drifted apart in the first place.
45
45
  */
46
46
  export interface TreeRowDomProps {
47
47
  class?: string;
48
48
  title?: string;
49
+ /**
50
+ * The row's accessible name, written as its `aria-label`. A row is named by
51
+ * its content; one that shows no text — a placeholder that loads the next
52
+ * page as it scrolls into view — is named here. Must be `t()`-d. Left out or
53
+ * empty, the row has none, as the reference's list writes the label its
54
+ * accessibility provider gives a row only when there is one
55
+ * (`base/browser/ui/list/listWidget.ts:890`, `:1313-1335`). A sticky clone
56
+ * of the row does not restate it.
57
+ */
58
+ ariaLabel?: string;
49
59
  draggable?: boolean;
50
60
  onDragStart?: (event: DragEvent) => void;
51
61
  onDragOver?: (event: DragEvent) => void;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../rowSource-C3zlzAtR.cjs");exports.DEFAULT_TREE_CAPABILITIES=e.DEFAULT_TREE_CAPABILITIES;exports.TREE_INDENT_STEP_REM=e.TREE_INDENT_STEP_REM;exports.TreeHighlight=e.TreeHighlight;exports.TreeRow=e.TreeRow;exports.TreeSurface=e.TreeSurface;exports.assertRowIndex=e.assertRowIndex;exports.buildTreeContainerAria=e.buildTreeContainerAria;exports.buildTreeRowAria=e.buildTreeRowAria;exports.buildTreeRowStructureAria=e.buildTreeRowStructureAria;exports.createTreeController=e.createTreeController;exports.createTreeSurface=e.createTreeSurface;exports.selectAllInScope=e.selectAllInScope;exports.treeRowDomId=e.treeRowDomId;exports.treeRowsFrom=e.treeRowsFrom;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../rowSource-D8gyHbEE.cjs");exports.DEFAULT_TREE_CAPABILITIES=e.DEFAULT_TREE_CAPABILITIES;exports.TREE_INDENT_STEP_REM=e.TREE_INDENT_STEP_REM;exports.TreeHighlight=e.TreeHighlight;exports.TreeRow=e.TreeRow;exports.TreeSurface=e.TreeSurface;exports.assertRowIndex=e.assertRowIndex;exports.buildTreeContainerAria=e.buildTreeContainerAria;exports.buildTreeRowAria=e.buildTreeRowAria;exports.buildTreeRowStructureAria=e.buildTreeRowStructureAria;exports.createTreeController=e.createTreeController;exports.createTreeSurface=e.createTreeSurface;exports.selectAllInScope=e.selectAllInScope;exports.treeRowDomId=e.treeRowDomId;exports.treeRowsFrom=e.treeRowsFrom;
@@ -1,4 +1,4 @@
1
- import { D as a, T as s, a as T, b as o, c as t, d as i, e as l, f as E, g as R, h as c, i as u, s as A, t as I, j as d } from "../rowSource-BRGZHclZ.js";
1
+ import { D as a, T as s, a as T, b as o, c as t, d as i, e as l, f as E, g as R, h as c, i as u, s as A, t as I, j as d } from "../rowSource-_4IuosKj.js";
2
2
  export {
3
3
  a as DEFAULT_TREE_CAPABILITIES,
4
4
  s as TREE_INDENT_STEP_REM,