Skip to content

Commit

Permalink
package 27.06.24
Browse files Browse the repository at this point in the history
  • Loading branch information
akoreman committed Jun 27, 2024
1 parent d34e384 commit 3643275
Show file tree
Hide file tree
Showing 202 changed files with 623 additions and 822 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

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.35.1](https://github.com/ajaxorg/ace/compare/v1.35.0...v1.35.1) (2024-06-27)


### Bug Fixes

* explicitly construct Number from window zoom attribute ([#5600](https://github.com/ajaxorg/ace/issues/5600)) ([2591c36](https://github.com/ajaxorg/ace/commit/2591c36b9e768305a9f837bf74c828c2d8d76e05))
* use dom builder for gutter tooltip and inline widget ([#5601](https://github.com/ajaxorg/ace/issues/5601)) ([e81a299](https://github.com/ajaxorg/ace/commit/e81a299a8be39a7245a334ebc844eaeac6864bb3))
* workaround for safari rendering bug ([#5573](https://github.com/ajaxorg/ace/issues/5573)) ([f9a152f](https://github.com/ajaxorg/ace/commit/f9a152fd925a8a16b10c65c909201100486c71e8))
* wrong doc comment * insert behaviour ([#5571](https://github.com/ajaxorg/ace/issues/5571)) ([16c95b3](https://github.com/ajaxorg/ace/commit/16c95b32197c0ec952e52be85d21269005875940))

## [1.35.0](https://github.com/ajaxorg/ace/compare/v1.34.2...v1.35.0) (2024-06-11)


Expand Down
1 change: 1 addition & 0 deletions ace-modules.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ declare module 'ace-builds/src-noconflict/theme-dreamweaver';
declare module 'ace-builds/src-noconflict/theme-eclipse';
declare module 'ace-builds/src-noconflict/theme-github';
declare module 'ace-builds/src-noconflict/theme-github_dark';
declare module 'ace-builds/src-noconflict/theme-github_light_default';
declare module 'ace-builds/src-noconflict/theme-gob';
declare module 'ace-builds/src-noconflict/theme-gruvbox';
declare module 'ace-builds/src-noconflict/theme-gruvbox_dark_hard';
Expand Down
4 changes: 3 additions & 1 deletion ace.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ export namespace Ace {
enableMultiselect: boolean;
enableKeyboardAccessibility: boolean;
textInputAriaLabel: string;
enableMobileMenu: boolean;
}

export interface SearchOptions {
Expand Down Expand Up @@ -664,7 +665,8 @@ export namespace Ace {
removeListener(name: string, callback: Function): void;
removeEventListener(name: string, callback: Function): void;

exec(command: string, editor: Editor, args: any): boolean;
exec(command: string | string[] | Command, editor: Editor, args: any): boolean;
canExecute(command: string | Command, editor: Editor): boolean;
toggleRecording(editor: Editor): void;
replay(editor: Editor): void;
addCommand(command: Command): void;
Expand Down
Binary file added css/github_light_default-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added css/github_light_default-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
164 changes: 164 additions & 0 deletions css/theme/github_light_default.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
.ace-github-light-default .ace_gutter {
background: #ffffff;
color: rgba(27, 31, 35, 0.3);
}

.ace-github-light-default .ace_print-margin {
width: 1px;
background: #e8e8e8;
}

.ace-github-light-default {
background-color: #FFFFFF;
color: #24292E;
}

.ace-github-light-default .ace_cursor {
color: #044289;
background: none;
}

.ace-github-light-default .ace_marker-layer .ace_selection {
background: rgba(3, 102, 214, 0.14);
}

.ace-github-light-default.ace_multiselect .ace_selection.ace_start {
box-shadow: 0 0 3px 0px #FFFFFF;
border-radius: 2px;
}

.ace-github-light-default .ace_marker-layer .ace_step {
background: rgb(198, 219, 174);
}

.ace-github-light-default .ace_marker-layer .ace_bracket {
margin: -1px 0 0 -1px;
border: 1px solid rgba(52, 208, 88, 0);
background: rgba(52, 208, 88, 0.25);
}

.ace-github-light-default .ace_marker-layer .ace_active-line {
background: #f6f8fa;
border: 2px solid #eeeeee;
}

.ace-github-light-default .ace_gutter-active-line {
background-color: #f6f8fa;
color: #24292e
}

.ace-github-light-default .ace_marker-layer .ace_selected-word {
border: 1px solid rgba(3, 102, 214, 0.14);
}

.ace-github-light-default .ace_fold {
background-color: #D73A49;
border-color: #24292E;
}

.ace_tooltip.ace-github-light-default {
background-color: #f6f8fa !important;
color: #444d56 !important;
border: 1px solid #444d56
}

.ace-github-light-default .language_highlight_error {
border-bottom: dotted 1px #cb2431;
background: none;
}

.ace-github-light-default .language_highlight_warning {
border-bottom: solid 1px #f9c513;
background: none;
}

.ace-github-light-default .language_highlight_info {
border-bottom: dotted 1px #1a85ff;
background: none;
}

.ace-github-light-default .ace_keyword {
color: #D73A49;
}

.ace-github-light-default .ace_constant {
color: #005CC5;
}

.ace-github-light-default .ace_support {
color: #005CC5;
}

.ace-github-light-default .ace_support.ace_constant {
color: #005CC5;
}

.ace-github-light-default .ace_support.ace_type {
color: #D73A49;
}

.ace-github-light-default .ace_storage {
color: #D73A49;
}

.ace-github-light-default .ace_storage.ace_type {
color: #D73A49;
}

.ace-github-light-default .ace_invalid.ace_illegal {
font-style: italic;
color: #B31D28;
}

.ace-github-light-default .ace_invalid.ace_deprecated {
font-style: italic;
color: #B31D28;
}

.ace-github-light-default .ace_string {
color: #032F62;
}

.ace-github-light-default .ace_string.ace_regexp {
color: #032F62;
}

.ace-github-light-default .ace_comment {
color: #6A737D;
}

.ace-github-light-default .ace_variable {
color: #E36209;
}

.ace-github-light-default .ace_variable.ace_language {
color: #005CC5;
}

.ace-github-light-default .ace_entity.ace_name {
color: #6F42C1;
}

.ace-github-light-default .ace_entity {
color: #6F42C1;
}

.ace-github-light-default .ace_entity.ace_name.ace_tag {
color: #22863A;
}

.ace-github-light-default .ace_meta.ace_tag {
color: #22863A;
}

.ace-github-light-default .ace_markup.ace_heading {
color: #005CC5;
}

.ace-github-light-default .ace_indent-guide {
background: url("../github_light_default-1.png") right repeat-y;
}

.ace-github-light-default .ace_indent-guide-active {
background: url("../github_light_default-2.png") right repeat-y;
}
86 changes: 2 additions & 84 deletions demo/kitchen-sink/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -3793,7 +3793,8 @@ var themeData = [
["Dawn"],
["Dreamweaver"],
["Eclipse"],
["GitHub"],
["GitHub Light Default"],
["GitHub (Legacy)", "github", "light"],
["IPlastic"],
["Solarized Light"],
["TextMate"],
Expand Down Expand Up @@ -8373,89 +8374,6 @@ function loadLanguageProvider(editor) {
});
window.languageProvider = languageProvider;
languageProvider.registerEditor(editor);
if (languageProvider.$hoverTooltip)
editor.off("mousemove", languageProvider.$hoverTooltip.onMouseMove);
languageProvider.$messageController.$worker.addEventListener("message", function(e) {
var id = e.data.sessionId.split(".")[0];
var session = languageProvider.$getSessionLanguageProvider({id: id})?.session;
if (e.data.type == 6) {
e.stopPropagation();
if (session) {
showAnnotations(session, e.data.value);
}
} else if (e.data.type == 14) {
if (session) showOccurrenceMarkers(session, e.data.value);
}
}, true);
function showOccurrenceMarkers(session, positions) {
if (!session.state.occurrenceMarkers) {
session.state.occurrenceMarkers = new MarkerGroup(session);
}
session.state.occurrenceMarkers.setMarkers(positions.map(function(el) {
var r = el.range;
return {
range: new Range(r.start.line, r.start.character, r.end.line, r.end.character),
className: el.kind == 2
? "language_highlight_read"
: el.kind == 3
? "language_highlight_write"
: "language_highlight_text"
};
}));
}
function showAnnotations(session, diagnostics) {
session.clearAnnotations();
let annotations = diagnostics.map((el) => {
return {
row: el.range.start.line,
column: el.range.start.character,
text: el.message,
type: el.severity === 1 ? "error" : el.severity === 2 ? "warning" : "info"
};
});
if (annotations && annotations.length > 0) {
session.setAnnotations(annotations);
}

if (!session.state) session.state = {}
if (!session.state.diagnosticMarkers) {
session.state.diagnosticMarkers = new MarkerGroup(session);
}
session.state.diagnosticMarkers.setMarkers(diagnostics.map(function(el) {
var r = el.range;
return {
range: new Range(r.start.line, r.start.character, r.end.line, r.end.character),
tooltipText: el.message,
className: "language_highlight_error"
};
}));
};

docTooltip.setDataProvider(function(e, editor) {
let session = editor.session;
let docPos = e.getDocumentPosition();

languageProvider.doHover(session, docPos, function(hover) {
var errorMarker = session.state?.diagnosticMarkers.getMarkerAtPosition(docPos);

if (!errorMarker && !hover?.content) return;

var range = hover?.range || errorMarker?.range;
range = range ? Range.fromPoints(range.start, range.end) : session.getWordRange(docPos.row, docPos.column);
var hoverNode = hover && dom.buildDom(["div", {}]);
if (hoverNode) {
hoverNode.innerHTML = languageProvider.getTooltipText(hover);
};

var domNode = dom.buildDom(["div", {},
errorMarker && ["div", {}, errorMarker.tooltipText.trim()],
hoverNode
]);
docTooltip.showForRange(editor, range, domNode, e);
});
});

docTooltip.addToEditor(editor)
});
}

Expand Down
1 change: 1 addition & 0 deletions esm-resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ ace.config.setModuleLoader('ace/theme/dreamweaver', () => import('./src-noconfli
ace.config.setModuleLoader('ace/theme/eclipse', () => import('./src-noconflict/theme-eclipse.js'));
ace.config.setModuleLoader('ace/theme/github', () => import('./src-noconflict/theme-github.js'));
ace.config.setModuleLoader('ace/theme/github_dark', () => import('./src-noconflict/theme-github_dark.js'));
ace.config.setModuleLoader('ace/theme/github_light_default', () => import('./src-noconflict/theme-github_light_default.js'));
ace.config.setModuleLoader('ace/theme/gob', () => import('./src-noconflict/theme-gob.js'));
ace.config.setModuleLoader('ace/theme/gruvbox', () => import('./src-noconflict/theme-gruvbox.js'));
ace.config.setModuleLoader('ace/theme/gruvbox_dark_hard', () => import('./src-noconflict/theme-gruvbox_dark_hard.js'));
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.35.0",
"version": "1.35.1",
"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-noconflict/ext-options.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/ext-settings_menu.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/ext-themelist.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-astro.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-coldfusion.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-csound_document.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-curly.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-django.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-ejs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-ftl.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-gobstones.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-groovy.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-haml.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-handlebars.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-html.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-html_elixir.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-html_ruby.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-jade.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-java.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-javascript.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-jsp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-jsx.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-latte.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-liquid.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-luapage.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-markdown.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-mask.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-nunjucks.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-pgsql.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-php.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-php_laravel_blade.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-razor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-rhtml.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-scala.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-sjs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-slim.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-smarty.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-soy_template.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-svg.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-tsx.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-twig.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-typescript.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-velocity.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-visualforce.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-vue.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-wollok.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions src-min-noconflict/theme-github_light_default.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

Loading

0 comments on commit 3643275

Please sign in to comment.