Skip to content

Commit 56a4677

Browse files
package 17.10.25
1 parent 933d576 commit 56a4677

45 files changed

Lines changed: 1125 additions & 981 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
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.
44

5+
### [1.43.4](https://github.com/ajaxorg/ace/compare/v1.43.3...v1.43.4) (2025-10-17)
6+
7+
8+
### Bug Fixes
9+
10+
* Update for compliance with typescript 5.9.2 ([#5855](https://github.com/ajaxorg/ace/issues/5855)) ([6e110b0](https://github.com/ajaxorg/ace/commit/6e110b0061b56b72db7478762036a1ba39251102))
11+
512
### [1.43.3](https://github.com/ajaxorg/ace/compare/v1.43.2...v1.43.3) (2025-09-02)
613

714

ace.d.ts

Lines changed: 92 additions & 89 deletions
Large diffs are not rendered by default.

css/ace.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ border-radius: 1px;
432432
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
433433
color: black;
434434
padding: 3px 4px;
435-
position: absolute;
435+
position: fixed;
436436
z-index: 999999;
437437
box-sizing: border-box;
438438
cursor: default;
@@ -1077,7 +1077,7 @@ color: #93ca12;
10771077
width: 300px;
10781078
z-index: 200000;
10791079
border: 1px lightgray solid;
1080-
position: absolute;
1080+
position: fixed;
10811081
box-shadow: 2px 3px 5px rgba(0,0,0,.2);
10821082
line-height: 1.4;
10831083
background: #fefefe;

css/theme/cloud_editor.css

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,16 @@
4646
border: 1px solid #697077;
4747
}
4848

49-
.ace-cloud_editor .ace_gutter-active-line::before,
49+
.ace-cloud_editor .ace_gutter-cursor,
5050
.ace-cloud_editor .ace_marker-layer .ace_active-line {
5151
box-sizing: border-box;
5252
border-top: 1px solid #9191ac;
5353
border-bottom: 1px solid #9191ac;
5454
}
5555

56-
.ace-cloud_editor .ace_gutter-active-line::before {
57-
content: "";
56+
.ace-cloud_editor .ace_gutter-cursor {
5857
position: absolute;
59-
height: 100%;
6058
width: 100%;
61-
left: 0;
62-
z-index: 1;
63-
pointer-events: none;
6459
}
6560

6661
.ace-cloud_editor .ace_marker-layer .ace_selected-word {

css/theme/cloud_editor_dark.css

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,16 @@
4646
border: 1px solid #e8e8e8;
4747
}
4848

49-
.ace-cloud_editor_dark .ace_gutter-active-line::before,
49+
.ace-cloud_editor_dark .ace_gutter-cursor,
5050
.ace-cloud_editor_dark .ace_marker-layer .ace_active-line {
5151
box-sizing: border-box;
5252
border-top: 1px solid #75777a;
5353
border-bottom: 1px solid #75777a;
5454
}
5555

56-
.ace-cloud_editor_dark .ace_gutter-active-line::before {
57-
content: "";
56+
.ace-cloud_editor_dark .ace_gutter-cursor {
5857
position: absolute;
59-
height: 100%;
6058
width: 100%;
61-
left: 0;
62-
z-index: 1;
63-
pointer-events: none;
6459
}
6560

6661
.ace-cloud_editor_dark .ace_marker-layer .ace_selected-word {

demo/kitchen-sink/demo.js

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2389,6 +2389,9 @@ var BaseDiffView = /** @class */ (function () {
23892389
sessionB: diffModel.sessionB || (diffModel.editorB ? diffModel.editorB.session : new EditSession(diffModel.valueB || "")),
23902390
chunks: []
23912391
});
2392+
if (this.otherEditor && this.activeEditor) {
2393+
this.otherSession.setOption("wrap", this.activeEditor.getOption("wrap"));
2394+
}
23922395
this.setupScrollbars();
23932396
};
23942397
BaseDiffView.prototype.addGutterDecorators = function () {
@@ -3366,15 +3369,18 @@ var InlineDiffView = /** @class */ (function (_super) {
33663369
diffView.sessionA["_emit"]("changeFold", { data: { start: { row: 0 } } });
33673370
diffView.sessionB["_emit"]("changeFold", { data: { start: { row: 0 } } });
33683371
};
3369-
InlineDiffView.prototype.onChangeWrapLimit = function () {
3370-
this.sessionB.adjustWrapLimit(this.sessionA.$wrapLimit);
3372+
InlineDiffView.prototype.onChangeWrapLimit = function (e, session) {
3373+
this.otherSession.setOption("wrap", session.getOption("wrap"));
3374+
this.otherSession.adjustWrapLimit(session.$wrapLimit);
33713375
this.scheduleRealign();
3376+
this.activeEditor.renderer.updateFull();
33723377
};
33733378
InlineDiffView.prototype.$attachSessionsEventHandlers = function () {
33743379
this.$attachSessionEventHandlers(this.editorA, this.markerA);
33753380
this.$attachSessionEventHandlers(this.editorB, this.markerB);
3376-
this.sessionA.on("changeWrapLimit", this.onChangeWrapLimit);
3377-
this.sessionA.on("changeWrapMode", this.onChangeWrapLimit);
3381+
var session = this.activeEditor.session;
3382+
session.on("changeWrapLimit", this.onChangeWrapLimit);
3383+
session.on("changeWrapMode", this.onChangeWrapLimit);
33783384
};
33793385
InlineDiffView.prototype.$attachSessionEventHandlers = function (editor, marker) {
33803386
editor.session.on("changeFold", this.onChangeFold);
@@ -3386,8 +3392,9 @@ var InlineDiffView = /** @class */ (function (_super) {
33863392
this.$detachSessionHandlers(this.editorA, this.markerA);
33873393
this.$detachSessionHandlers(this.editorB, this.markerB);
33883394
this.otherSession.bgTokenizer.lines.fill(undefined);
3389-
this.sessionA.off("changeWrapLimit", this.onChangeWrapLimit);
3390-
this.sessionA.off("changeWrapMode", this.onChangeWrapLimit);
3395+
var session = this.activeEditor.session;
3396+
session.off("changeWrapLimit", this.onChangeWrapLimit);
3397+
session.off("changeWrapMode", this.onChangeWrapLimit);
33913398
};
33923399
InlineDiffView.prototype.$detachSessionHandlers = function (editor, marker) {
33933400
editor.session.removeMarker(marker.id);
@@ -8447,10 +8454,6 @@ var optionGroups = {
84478454
},
84488455
"Keyboard Accessibility Mode": {
84498456
path: "enableKeyboardAccessibility"
8450-
},
8451-
"Gutter tooltip follows mouse": {
8452-
path: "tooltipFollowsMouse",
8453-
defaultValue: true
84548457
}
84558458
}
84568459
};
@@ -8925,23 +8928,21 @@ var AcePopup = /** @class */ (function () {
89258928
else {
89268929
renderer.$maxPixelHeight = null;
89278930
}
8928-
el.style.display = "";
8929-
var rootRect = el.offsetParent && el.offsetParent.getBoundingClientRect();
89308931
if (anchor === "top") {
89318932
el.style.top = "";
8932-
el.style.bottom = (screenHeight + scrollBarSize - dims.bottom)
8933-
- (rootRect ? screenHeight + scrollBarSize - rootRect.bottom : 0) + "px";
8933+
el.style.bottom = (screenHeight + scrollBarSize - dims.bottom) + "px";
89348934
popup.isTopdown = false;
89358935
}
89368936
else {
8937-
el.style.top = (dims.top - (rootRect ? rootRect.top : 0)) + "px";
8937+
el.style.top = dims.top + "px";
89388938
el.style.bottom = "";
89398939
popup.isTopdown = true;
89408940
}
8941+
el.style.display = "";
89418942
var left = pos.left;
89428943
if (left + el.offsetWidth > screenWidth)
89438944
left = screenWidth - el.offsetWidth;
8944-
el.style.left = (left - (rootRect ? rootRect.left : 0)) + "px";
8945+
el.style.left = left + "px";
89458946
el.style.right = "";
89468947
if (!popup.isOpen) {
89478948
popup.isOpen = true;
@@ -8950,6 +8951,7 @@ var AcePopup = /** @class */ (function () {
89508951
}
89518952
popup.anchorPos = pos;
89528953
popup.anchor = anchor;
8954+
dom.$fixPositionBug(el);
89538955
return true;
89548956
};
89558957
popup.show = function (pos, lineHeight, topdownOnly) {
@@ -8983,7 +8985,7 @@ var AcePopup = /** @class */ (function () {
89838985
}
89848986
return AcePopup;
89858987
}());
8986-
dom.importCssString("\n.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\n background-color: #CAD6FA;\n z-index: 1;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\n background-color: #3a674e;\n}\n.ace_editor.ace_autocomplete .ace_line-hover {\n border: 1px solid #abbffe;\n margin-top: -1px;\n background: rgba(233,233,253,0.4);\n position: absolute;\n z-index: 2;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {\n border: 1px solid rgba(109, 150, 13, 0.8);\n background: rgba(58, 103, 78, 0.62);\n}\n.ace_completion-meta {\n opacity: 0.5;\n margin-left: 0.9em;\n}\n.ace_completion-message {\n margin-left: 0.9em;\n color: blue;\n}\n.ace_editor.ace_autocomplete .ace_completion-highlight{\n color: #2d69c7;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{\n color: #93ca12;\n}\n.ace_editor.ace_autocomplete {\n width: 300px;\n z-index: 200000;\n border: 1px lightgray solid;\n position: absolute;\n box-shadow: 2px 3px 5px rgba(0,0,0,.2);\n line-height: 1.4;\n background: #fefefe;\n color: #111;\n}\n.ace_dark.ace_editor.ace_autocomplete {\n border: 1px #484747 solid;\n box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);\n line-height: 1.4;\n background: #25282c;\n color: #c1c1c1;\n}\n.ace_autocomplete .ace_text-layer {\n width: calc(100% - 8px);\n}\n.ace_autocomplete .ace_line {\n display: flex;\n align-items: center;\n}\n.ace_autocomplete .ace_line > * {\n min-width: 0;\n flex: 0 0 auto;\n}\n.ace_autocomplete .ace_line .ace_ {\n flex: 0 1 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.ace_autocomplete .ace_completion-spacer {\n flex: 1;\n}\n.ace_autocomplete.ace_loading:after {\n content: \"\";\n position: absolute;\n top: 0px;\n height: 2px;\n width: 8%;\n background: blue;\n z-index: 100;\n animation: ace_progress 3s infinite linear;\n animation-delay: 300ms;\n transform: translateX(-100%) scaleX(1);\n}\n@keyframes ace_progress {\n 0% { transform: translateX(-100%) scaleX(1) }\n 50% { transform: translateX(625%) scaleX(2) } \n 100% { transform: translateX(1500%) scaleX(3) } \n}\n@media (prefers-reduced-motion) {\n .ace_autocomplete.ace_loading:after {\n transform: translateX(625%) scaleX(2);\n animation: none;\n }\n}\n", "autocompletion.css", false);
8988+
dom.importCssString("\n.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\n background-color: #CAD6FA;\n z-index: 1;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\n background-color: #3a674e;\n}\n.ace_editor.ace_autocomplete .ace_line-hover {\n border: 1px solid #abbffe;\n margin-top: -1px;\n background: rgba(233,233,253,0.4);\n position: absolute;\n z-index: 2;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {\n border: 1px solid rgba(109, 150, 13, 0.8);\n background: rgba(58, 103, 78, 0.62);\n}\n.ace_completion-meta {\n opacity: 0.5;\n margin-left: 0.9em;\n}\n.ace_completion-message {\n margin-left: 0.9em;\n color: blue;\n}\n.ace_editor.ace_autocomplete .ace_completion-highlight{\n color: #2d69c7;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{\n color: #93ca12;\n}\n.ace_editor.ace_autocomplete {\n width: 300px;\n z-index: 200000;\n border: 1px lightgray solid;\n position: fixed;\n box-shadow: 2px 3px 5px rgba(0,0,0,.2);\n line-height: 1.4;\n background: #fefefe;\n color: #111;\n}\n.ace_dark.ace_editor.ace_autocomplete {\n border: 1px #484747 solid;\n box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);\n line-height: 1.4;\n background: #25282c;\n color: #c1c1c1;\n}\n.ace_autocomplete .ace_text-layer {\n width: calc(100% - 8px);\n}\n.ace_autocomplete .ace_line {\n display: flex;\n align-items: center;\n}\n.ace_autocomplete .ace_line > * {\n min-width: 0;\n flex: 0 0 auto;\n}\n.ace_autocomplete .ace_line .ace_ {\n flex: 0 1 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.ace_autocomplete .ace_completion-spacer {\n flex: 1;\n}\n.ace_autocomplete.ace_loading:after {\n content: \"\";\n position: absolute;\n top: 0px;\n height: 2px;\n width: 8%;\n background: blue;\n z-index: 100;\n animation: ace_progress 3s infinite linear;\n animation-delay: 300ms;\n transform: translateX(-100%) scaleX(1);\n}\n@keyframes ace_progress {\n 0% { transform: translateX(-100%) scaleX(1) }\n 50% { transform: translateX(625%) scaleX(2) } \n 100% { transform: translateX(1500%) scaleX(3) } \n}\n@media (prefers-reduced-motion) {\n .ace_autocomplete.ace_loading:after {\n transform: translateX(625%) scaleX(2);\n animation: none;\n }\n}\n", "autocompletion.css", false);
89878989
exports.AcePopup = AcePopup;
89888990
exports.$singleLineEditor = $singleLineEditor;
89898991
exports.getAriaId = getAriaId;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "ace-builds",
33
"main": "./src-noconflict/ace.js",
44
"typings": "ace.d.ts",
5-
"version": "1.43.3",
5+
"version": "1.43.4",
66
"description": "Ace (Ajax.org Cloud9 Editor)",
77
"scripts": {
88
"test": "echo \"Error: no test specified\" && exit 1"

src-min-noconflict/ace.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-min-noconflict/ext-diff.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-min-noconflict/ext-inline_autocomplete.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)