@theia/plugin 1.25.0-next.6 → 1.25.0-next.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theia/plugin",
3
- "version": "1.25.0-next.6+a9c970d587e",
3
+ "version": "1.25.0-next.7+64d193dcddc",
4
4
  "description": "Theia - Plugin API",
5
5
  "types": "./src/theia.d.ts",
6
6
  "publishConfig": {
@@ -32,5 +32,5 @@
32
32
  "nyc": {
33
33
  "extends": "../../configs/nyc.json"
34
34
  },
35
- "gitHead": "a9c970d587ec8e1d7047d0e0fbc8a55c6c51de3c"
35
+ "gitHead": "64d193dcddc57dc40b32cc9976c5a4a68ab023ed"
36
36
  }
@@ -642,6 +642,11 @@ export module '@theia/plugin' {
642
642
  */
643
643
  contextValue?: string;
644
644
 
645
+ /**
646
+ * Accessibility information used when screen reader interacts with this timeline item.
647
+ */
648
+ accessibilityInformation?: AccessibilityInformation;
649
+
645
650
  /**
646
651
  * @param label A human-readable string describing the timeline item
647
652
  * @param timestamp A timestamp (in milliseconds since 1 January 1970 00:00:00) for when the timeline item occurred
package/src/theia.d.ts CHANGED
@@ -2404,6 +2404,24 @@ export module '@theia/plugin' {
2404
2404
  export function getCommands(filterInternal?: boolean): PromiseLike<string[]>;
2405
2405
  }
2406
2406
 
2407
+ /**
2408
+ * Accessibility information which controls screen reader behavior.
2409
+ */
2410
+ export interface AccessibilityInformation {
2411
+ /**
2412
+ * Label to be read out by a screen reader once the item has focus.
2413
+ */
2414
+ readonly label: string;
2415
+
2416
+ /**
2417
+ * Role of the widget which defines how a screen reader interacts with it.
2418
+ * The role should be set in special cases when for example a tree-like element behaves like a checkbox.
2419
+ * If role is not specified the editor will pick the appropriate role automatically.
2420
+ * More about aria roles can be found here https://w3c.github.io/aria/#widget_roles
2421
+ */
2422
+ readonly role?: string;
2423
+ }
2424
+
2407
2425
  /**
2408
2426
  * Represents an action that is shown with a message.
2409
2427
  */
@@ -2495,6 +2513,11 @@ export module '@theia/plugin' {
2495
2513
  */
2496
2514
  command: string | Command | undefined;
2497
2515
 
2516
+ /**
2517
+ * Accessibility information used when a screen reader interacts with this StatusBar item.
2518
+ */
2519
+ accessibilityInformation: AccessibilityInformation | undefined;
2520
+
2498
2521
  /**
2499
2522
  * Shows the entry in the status bar.
2500
2523
  */
@@ -5255,6 +5278,13 @@ export module '@theia/plugin' {
5255
5278
  */
5256
5279
  contextValue?: string;
5257
5280
 
5281
+ /**
5282
+ * Accessibility information used when screen reader interacts with this tree item.
5283
+ * Generally, a TreeItem has no need to set the `role` of the accessibilityInformation;
5284
+ * however, there are cases where a TreeItem is not displayed in a tree-like way where setting the `role` may make sense.
5285
+ */
5286
+ accessibilityInformation?: AccessibilityInformation;
5287
+
5258
5288
  /**
5259
5289
  * @param label A human-readable string describing this item
5260
5290
  * @param collapsibleState [TreeItemCollapsibleState](#TreeItemCollapsibleState) of the tree item. Default is [TreeItemCollapsibleState.None](#TreeItemCollapsibleState.None)