Skip to content

Commit

Permalink
package 21.02.25
Browse files Browse the repository at this point in the history
  • Loading branch information
Alice Koreman committed Feb 21, 2025
1 parent e6e7e81 commit 3346dd1
Show file tree
Hide file tree
Showing 59 changed files with 1,336 additions and 177 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

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.39.0](https://github.com/ajaxorg/ace/compare/v1.38.0...v1.39.0) (2025-02-21)


### Features

* Multiline Search Support: line breaks `\n` ([#5675](https://github.com/ajaxorg/ace/issues/5675)) ([06d51b9](https://github.com/ajaxorg/ace/commit/06d51b9164dc9dc39fbd6df26b7132f4b9580a4c))


### Bug Fixes

* check if row is present when setting aria label of popup elements ([#5750](https://github.com/ajaxorg/ace/issues/5750)) ([ff16482](https://github.com/ajaxorg/ace/commit/ff16482101965fc4fce488a61a3cd0f9454d8e87))
* gutter hover tooltip a11y improvements ([#5747](https://github.com/ajaxorg/ace/issues/5747)) ([fbe3ddc](https://github.com/ajaxorg/ace/commit/fbe3ddccb1248c9f8f4a6524d2ded7235d225b41))
* narrowing platform to be either win or mac ([#5707](https://github.com/ajaxorg/ace/issues/5707)) ([18cc336](https://github.com/ajaxorg/ace/commit/18cc336187519107f47bb15e989008f48f0b1563))
* set score completion item when skipfilter true ([#5749](https://github.com/ajaxorg/ace/issues/5749)) ([a27e1e8](https://github.com/ajaxorg/ace/commit/a27e1e8a5d3d912b3b554cd2b5916b58750e8e71))

## [1.38.0](https://github.com/ajaxorg/ace/compare/v1.37.5...v1.38.0) (2025-02-12)


Expand Down
16 changes: 16 additions & 0 deletions ace-modes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,14 @@ declare module "ace-builds/src-noconflict/mode-css" {
export const Mode: new () => import("ace-builds").Ace.SyntaxMode;
}

declare module "ace-builds/src-noconflict/mode-csv_highlight_rules" {
export const CsvHighlightRules: new () => import("ace-builds").Ace.HighlightRules;
}

declare module "ace-builds/src-noconflict/mode-csv" {
export const Mode: new () => import("ace-builds").Ace.SyntaxMode;
}

declare module "ace-builds/src-noconflict/mode-curly_highlight_rules" {
export const CurlyHighlightRules: new () => import("ace-builds").Ace.HighlightRules;
}
Expand Down Expand Up @@ -1579,6 +1587,14 @@ declare module "ace-builds/src-noconflict/mode-toml" {
export const Mode: new () => import("ace-builds").Ace.SyntaxMode;
}

declare module "ace-builds/src-noconflict/mode-tsv_highlight_rules" {
export const TsvHighlightRules: new () => import("ace-builds").Ace.HighlightRules;
}

declare module "ace-builds/src-noconflict/mode-tsv" {
export const Mode: new () => import("ace-builds").Ace.SyntaxMode;
}

declare module "ace-builds/src-noconflict/mode-tsx_highlight_rules" {
export const TsxHighlightRules: new () => import("ace-builds").Ace.HighlightRules;
}
Expand Down
31 changes: 28 additions & 3 deletions ace.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
/// <reference path="./types/ace-snippets.d.ts" />
/// <reference path="./ace-modes.d.ts" />
declare module "ace-builds" {
export function require(name: string): any;
export namespace Ace {
type Anchor = import("ace-builds-internal/anchor").Anchor;
type Editor = import("ace-builds-internal/editor").Editor;
Expand Down Expand Up @@ -759,8 +760,8 @@ declare module "ace-builds" {
args: any[];
}) => void;
interface CommandManagerEvents {
on(name: "exec", callback: execEventHandler): Function;
on(name: "afterExec", callback: execEventHandler): Function;
"exec": execEventHandler;
"afterExec": execEventHandler;
}
type CommandManager = import("ace-builds-internal/commands/command_manager").CommandManager;
interface SavedSelection {
Expand Down Expand Up @@ -970,6 +971,30 @@ declare module "ace-builds" {
docChanged?: boolean;
selectionChanged?: boolean;
}
export interface CommandBarEvents {
"hide": () => void;
"show": () => void;
"alwaysShow": (e: boolean) => void;
}
export interface FontMetricsEvents {
"changeCharacterSize": (e: {
data: {
height: number;
width: number;
};
}) => void;
}
export interface OptionPanelEvents {
"setOption": (e: {
name: string;
value: any;
}) => void;
}
export interface ScrollbarEvents {
"scroll": (e: {
data: number;
}) => void;
}
}
export const config: typeof import("ace-builds-internal/config");
export function edit(el?: string | (HTMLElement & {
Expand All @@ -982,7 +1007,7 @@ declare module "ace-builds" {
import { Range } from "ace-builds-internal/range";
import { UndoManager } from "ace-builds-internal/undomanager";
import { VirtualRenderer as Renderer } from "ace-builds-internal/virtual_renderer";
export var version: "1.38.0";
export var version: "1.39.0";
export { Range, Editor, EditSession, UndoManager, Renderer as VirtualRenderer };
}

Expand Down
11 changes: 8 additions & 3 deletions demo/kitchen-sink/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -1608,6 +1608,7 @@ var supportedModes = {
Csound_Orchestra: ["orc"],
Csound_Score: ["sco"],
CSS: ["css"],
CSV: ["csv"],
Curly: ["curly"],
Cuttlefish: ["conf"],
D: ["d|di"],
Expand Down Expand Up @@ -1750,6 +1751,7 @@ var supportedModes = {
Text: ["txt"],
Textile: ["textile"],
Toml: ["toml"],
TSV: ["tsv"],
TSX: ["tsx"],
Turtle: ["ttl"],
Twig: ["twig|swig"],
Expand Down Expand Up @@ -4333,14 +4335,16 @@ var AcePopup = /** @class */ (function () {
var t = popup.renderer.$textLayer;
for (var row = t.config.firstRow, l = t.config.lastRow; row <= l; row++) {
var popupRowElement = /** @type {HTMLElement|null} */ (t.element.childNodes[row - t.config.firstRow]);
var rowData = popup.getData(row);
var ariaLabel = "".concat(rowData.caption || rowData.value).concat(rowData.meta ? ", ".concat(rowData.meta) : '');
popupRowElement.setAttribute("role", optionAriaRole);
popupRowElement.setAttribute("aria-roledescription", nls("autocomplete.popup.item.aria-roledescription", "item"));
popupRowElement.setAttribute("aria-label", ariaLabel);
popupRowElement.setAttribute("aria-setsize", popup.data.length);
popupRowElement.setAttribute("aria-describedby", "doc-tooltip");
popupRowElement.setAttribute("aria-posinset", row + 1);
var rowData = popup.getData(row);
if (rowData) {
var ariaLabel = "".concat(rowData.caption || rowData.value).concat(rowData.meta ? ", ".concat(rowData.meta) : '');
popupRowElement.setAttribute("aria-label", ariaLabel);
}
var highlightedSpans = popupRowElement.querySelectorAll(".ace_completion-highlight");
highlightedSpans.forEach(function (span) {
span.setAttribute("role", "mark");
Expand Down Expand Up @@ -6517,6 +6521,7 @@ var FilteredList = /** @class */ (function () {
var lower = needle.toLowerCase();
loop: for (var i = 0, item; item = items[i]; i++) {
if (item.skipFilter) {
item.$score = item.score;
results.push(item);
continue;
}
Expand Down
15 changes: 15 additions & 0 deletions demo/kitchen-sink/docs/csv.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
col1,col2 long,col3,col4,
"col1,with quotes",col2,col3,col4,
col1,col2,col"""3,co""l4,
col1,col2,col3"broken",col4,
col1",-"col2,col3,col4,col5
col1,"col2
multiline","col3
multiline""string
3","col4
multiline string

4"
col1,col2,"c,o,l""3",col4,col5,col6,col7,col8,col9,col10,col11,col12,col13
col1,col2,col3,col4,col5,col6,col7,col8,col9,col10,col11,col12,col13
col1,col2,col3,col4,col5,col6,co"l7,col8,col9,col10,11,col12,col13
15 changes: 15 additions & 0 deletions demo/kitchen-sink/docs/tsv.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
col1 col2 long col3 col4
"col1 with quotes" col2 col3 col4
col1 col2 col"""3 co""l4
col1 col2 col3"broken" col4
col1" -"col2 col3 col4 col5
col1 "col2
multiline" "col3
multiline""string
3" "col4
multiline string

4"
col1 col2 "c o l""3" col4 col5 col6 col7 col8 col9 col10 col11 col12 col13
col1 col2 col3 col4 col5 col6 col7 col8 col9 col10 col11 col12 col13
col1 col2 col3 col4 col5 col6 co"l7 col8 col9 col10 11 col12 col13
4 changes: 4 additions & 0 deletions esm-resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ ace.config.setModuleLoader('ace/mode/csound_orchestra', () => import('./src-noco
ace.config.setModuleLoader('ace/mode/csound_score', () => import('./src-noconflict/mode-csound_score.js'));
ace.config.setModuleLoader('ace/mode/csp', () => import('./src-noconflict/mode-csp.js'));
ace.config.setModuleLoader('ace/mode/css', () => import('./src-noconflict/mode-css.js'));
ace.config.setModuleLoader('ace/mode/csv', () => import('./src-noconflict/mode-csv.js'));
ace.config.setModuleLoader('ace/mode/curly', () => import('./src-noconflict/mode-curly.js'));
ace.config.setModuleLoader('ace/mode/cuttlefish', () => import('./src-noconflict/mode-cuttlefish.js'));
ace.config.setModuleLoader('ace/mode/d', () => import('./src-noconflict/mode-d.js'));
Expand Down Expand Up @@ -202,6 +203,7 @@ ace.config.setModuleLoader('ace/mode/tex', () => import('./src-noconflict/mode-t
ace.config.setModuleLoader('ace/mode/text', () => import('./src-noconflict/mode-text.js'));
ace.config.setModuleLoader('ace/mode/textile', () => import('./src-noconflict/mode-textile.js'));
ace.config.setModuleLoader('ace/mode/toml', () => import('./src-noconflict/mode-toml.js'));
ace.config.setModuleLoader('ace/mode/tsv', () => import('./src-noconflict/mode-tsv.js'));
ace.config.setModuleLoader('ace/mode/tsx', () => import('./src-noconflict/mode-tsx.js'));
ace.config.setModuleLoader('ace/mode/turtle', () => import('./src-noconflict/mode-turtle.js'));
ace.config.setModuleLoader('ace/mode/twig', () => import('./src-noconflict/mode-twig.js'));
Expand Down Expand Up @@ -310,6 +312,7 @@ ace.config.setModuleLoader('ace/snippets/csound_orchestra', () => import('./src-
ace.config.setModuleLoader('ace/snippets/csound_score', () => import('./src-noconflict/snippets/csound_score.js'));
ace.config.setModuleLoader('ace/snippets/csp', () => import('./src-noconflict/snippets/csp.js'));
ace.config.setModuleLoader('ace/snippets/css', () => import('./src-noconflict/snippets/css.js'));
ace.config.setModuleLoader('ace/snippets/csv', () => import('./src-noconflict/snippets/csv.js'));
ace.config.setModuleLoader('ace/snippets/curly', () => import('./src-noconflict/snippets/curly.js'));
ace.config.setModuleLoader('ace/snippets/cuttlefish', () => import('./src-noconflict/snippets/cuttlefish.js'));
ace.config.setModuleLoader('ace/snippets/d', () => import('./src-noconflict/snippets/d.js'));
Expand Down Expand Up @@ -453,6 +456,7 @@ ace.config.setModuleLoader('ace/snippets/tex', () => import('./src-noconflict/sn
ace.config.setModuleLoader('ace/snippets/text', () => import('./src-noconflict/snippets/text.js'));
ace.config.setModuleLoader('ace/snippets/textile', () => import('./src-noconflict/snippets/textile.js'));
ace.config.setModuleLoader('ace/snippets/toml', () => import('./src-noconflict/snippets/toml.js'));
ace.config.setModuleLoader('ace/snippets/tsv', () => import('./src-noconflict/snippets/tsv.js'));
ace.config.setModuleLoader('ace/snippets/tsx', () => import('./src-noconflict/snippets/tsx.js'));
ace.config.setModuleLoader('ace/snippets/turtle', () => import('./src-noconflict/snippets/turtle.js'));
ace.config.setModuleLoader('ace/snippets/twig', () => import('./src-noconflict/snippets/twig.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.38.0",
"version": "1.39.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-noconflict/ext-inline_autocomplete.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

Loading

0 comments on commit 3346dd1

Please sign in to comment.