Skip to content

Commit

Permalink
package 22.05.24
Browse files Browse the repository at this point in the history
  • Loading branch information
akoreman committed May 22, 2024
1 parent d97de5f commit 6eacdd5
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [1.34.0](https://github.com/ajaxorg/ace/compare/v1.33.3...v1.34.0) (2024-05-22)


### Features

* allow users to add arialabel to text input ([#5560](https://github.com/ajaxorg/ace/issues/5560)) ([8d7dfb6](https://github.com/ajaxorg/ace/commit/8d7dfb69392960aba61def982f4bea8f3a5caa70))

### [1.33.3](https://github.com/ajaxorg/ace/compare/v1.33.2...v1.33.3) (2024-05-21)


Expand Down
1 change: 1 addition & 0 deletions ace.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ export namespace Ace {
relativeLineNumbers: boolean;
enableMultiselect: boolean;
enableKeyboardAccessibility: boolean;
textInputAriaLabel: string;
}

export interface SearchOptions {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ace-builds",
"main": "./src-noconflict/ace.js",
"typings": "ace.d.ts",
"version": "1.33.3",
"version": "1.34.0",
"description": "Ace (Ajax.org Cloud9 Editor)",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
2 changes: 1 addition & 1 deletion src-min-noconflict/ace.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/ace.js

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions src-noconflict/ace.js
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,7 @@ var reportErrorIfPathIsNotConfigured = function () {
reportErrorIfPathIsNotConfigured = function () { };
}
};
exports.version = "1.33.3";
exports.version = "1.34.0";

});

Expand Down Expand Up @@ -2115,7 +2115,12 @@ TextInput = function (parentNode, host) {
text.setAttribute("aria-roledescription", nls("text-input.aria-roledescription", "editor"));
if (host.session) {
var row = host.session.selection.cursor.row;
text.setAttribute("aria-label", nls("text-input.aria-label", "Cursor at row $0", [row + 1]));
var arialLabel = "";
if (host.$textInputAriaLabel) {
arialLabel += "".concat(host.$textInputAriaLabel, ", ");
}
arialLabel += nls("text-input.aria-label", "Cursor at row $0", [row + 1]);
text.setAttribute("aria-label", arialLabel);
}
}
};
Expand Down Expand Up @@ -15681,6 +15686,10 @@ config.defineOptions(Editor.prototype, "editor", {
},
initialValue: false
},
textInputAriaLabel: {
set: function (val) { this.$textInputAriaLabel = val; },
initialValue: ""
},
customScrollbar: "renderer",
hScrollBarAlwaysVisible: "renderer",
vScrollBarAlwaysVisible: "renderer",
Expand Down
13 changes: 11 additions & 2 deletions src/ace.js
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,7 @@ var reportErrorIfPathIsNotConfigured = function () {
reportErrorIfPathIsNotConfigured = function () { };
}
};
exports.version = "1.33.3";
exports.version = "1.34.0";

});

Expand Down Expand Up @@ -2115,7 +2115,12 @@ TextInput = function (parentNode, host) {
text.setAttribute("aria-roledescription", nls("text-input.aria-roledescription", "editor"));
if (host.session) {
var row = host.session.selection.cursor.row;
text.setAttribute("aria-label", nls("text-input.aria-label", "Cursor at row $0", [row + 1]));
var arialLabel = "";
if (host.$textInputAriaLabel) {
arialLabel += "".concat(host.$textInputAriaLabel, ", ");
}
arialLabel += nls("text-input.aria-label", "Cursor at row $0", [row + 1]);
text.setAttribute("aria-label", arialLabel);
}
}
};
Expand Down Expand Up @@ -15681,6 +15686,10 @@ config.defineOptions(Editor.prototype, "editor", {
},
initialValue: false
},
textInputAriaLabel: {
set: function (val) { this.$textInputAriaLabel = val; },
initialValue: ""
},
customScrollbar: "renderer",
hScrollBarAlwaysVisible: "renderer",
vScrollBarAlwaysVisible: "renderer",
Expand Down

0 comments on commit 6eacdd5

Please sign in to comment.