@adecore/editor-react 0.54.1 → 0.54.3

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.
@@ -1,5 +1,5 @@
1
1
  import { formatNumber } from '@adecore/ui/format';
2
- /* More declarations than this in one file and the rows are left out, which is the file that is too big for them to be quiet. */
2
+ /* Past this many declarations in one file the rows are left out, since that many rows would be noise. */
3
3
  export const MAX_DECLARATIONS = 3000;
4
4
  /* LSP's SymbolKind: the kinds a row is drawn for and the ones whose children can be declarations too. */
5
5
  const CLASS = 5;
@@ -258,7 +258,7 @@ export class ProjectLanguage {
258
258
  this.pendingCaret = place;
259
259
  this.host.openPlace?.(place);
260
260
  }
261
- /* Where an editor's caret stands now, so a jump from a surface without an editor, such as the Problems panel, still knows what it left. */
261
+ /* Where an editor's caret stands now, so a jump from a view without an editor, such as the Problems panel, still knows what it left. */
262
262
  noteCaret(place) {
263
263
  this.lastPlace = place;
264
264
  }
@@ -1,5 +1,5 @@
1
1
  import { uniqueBy } from './unique.js';
2
- /* The classes a name in a signature has: a pointer and an underline on hover, and the accent only then, so the signature stays calm. */
2
+ /* The classes a name in a signature has: a pointer, an underline and the accent, all only on hover, so the signature keeps its colors at rest. */
3
3
  export const SYMBOL_LINK_CLASS = 'cursor-pointer hover:text-accent hover:underline';
4
4
  const TYPE_NAME = /^[A-Z][A-Za-z0-9_]*$/;
5
5
  /* A name that starts with a capital and has a lowercase letter, which leaves `DEFAULT_WEIGHTS` and `T` alone. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adecore/editor-react",
3
- "version": "0.54.1",
3
+ "version": "0.54.3",
4
4
  "type": "module",
5
5
  "description": "Language-enabled editors, feature coordination and React popups over injected language services.",
6
6
  "license": "FSL-1.1-MIT",
@@ -62,9 +62,9 @@
62
62
  "test": "bun test --conditions=source"
63
63
  },
64
64
  "dependencies": {
65
- "@adecore/editor": "0.54.1",
66
- "@adecore/lsp": "0.54.1",
67
- "@adecore/merge": "0.54.1",
65
+ "@adecore/editor": "0.54.3",
66
+ "@adecore/lsp": "0.54.3",
67
+ "@adecore/merge": "0.54.3",
68
68
  "emmet": "^2.4.11",
69
69
  "lucide-react": "^1.65.0",
70
70
  "react-markdown": "^10.1.0",
@@ -73,14 +73,14 @@
73
73
  "zustand": "^5.0.16"
74
74
  },
75
75
  "peerDependencies": {
76
- "@adecore/ui": "^0.54.1",
76
+ "@adecore/ui": "^0.54.3",
77
77
  "i18next": "^26.5.12",
78
78
  "react": "^19.3.1",
79
79
  "react-dom": "^19.3.1",
80
80
  "react-i18next": "^17.1.9"
81
81
  },
82
82
  "devDependencies": {
83
- "@adecore/ui": "0.54.1",
83
+ "@adecore/ui": "0.54.3",
84
84
  "@types/bun": "^1.4.4",
85
85
  "@types/react": "^19.3.0",
86
86
  "@types/react-dom": "^19.3.0",
@@ -2,7 +2,7 @@ import type { DocumentSymbol, DocumentSymbolResult, Position, SymbolInformation
2
2
  import { formatNumber } from '@adecore/ui/format';
3
3
  import type { i18n } from 'i18next';
4
4
 
5
- /* More declarations than this in one file and the rows are left out, which is the file that is too big for them to be quiet. */
5
+ /* Past this many declarations in one file the rows are left out, since that many rows would be noise. */
6
6
  export const MAX_DECLARATIONS = 3000;
7
7
 
8
8
  /* LSP's SymbolKind: the kinds a row is drawn for and the ones whose children can be declarations too. */
package/src/find-query.ts CHANGED
@@ -6,7 +6,7 @@ export interface FindOptions {
6
6
 
7
7
  export interface FindQuery extends FindOptions {
8
8
  text: string;
9
- /* A surface that can search a selection only: just the text selected when this turned on. */
9
+ /* Searches only the text that was selected when this turned on. */
10
10
  inSelection?: boolean;
11
11
  }
12
12
 
package/src/pick.ts CHANGED
@@ -13,7 +13,7 @@ export interface PickSpec {
13
13
  /* The row the list opens on; the first one without it. */
14
14
  readonly active?: string;
15
15
  accept(id: string): void;
16
- /* A list can hand Tab back to its surrounding workflow after it closes. */
16
+ /* Tab and Shift+Tab close the list and go to what opened it, such as a snippet that steps to its next field. */
17
17
  onTab?(backwards: boolean): void;
18
18
  /*
19
19
  * Asked before the list closes on a row. A reason it cannot be taken keeps the list open with the reason
@@ -296,7 +296,7 @@ export class ProjectLanguage {
296
296
  this.host.openPlace?.(place);
297
297
  }
298
298
 
299
- /* Where an editor's caret stands now, so a jump from a surface without an editor, such as the Problems panel, still knows what it left. */
299
+ /* Where an editor's caret stands now, so a jump from a view without an editor, such as the Problems panel, still knows what it left. */
300
300
  noteCaret(place: Place): void {
301
301
  this.lastPlace = place;
302
302
  }
@@ -1,7 +1,7 @@
1
1
  import type { Location, SymbolInformation, WorkspaceSymbol, WorkspaceSymbolResult } from '@adecore/lsp';
2
2
  import { uniqueBy } from './unique.ts';
3
3
 
4
- /* The classes a name in a signature has: a pointer and an underline on hover, and the accent only then, so the signature stays calm. */
4
+ /* The classes a name in a signature has: a pointer, an underline and the accent, all only on hover, so the signature keeps its colors at rest. */
5
5
  export const SYMBOL_LINK_CLASS = 'cursor-pointer hover:text-accent hover:underline';
6
6
 
7
7
  const TYPE_NAME = /^[A-Z][A-Za-z0-9_]*$/;
@@ -39,7 +39,7 @@ export interface ProjectFiles {
39
39
  readonly supportsOverwrite?: boolean;
40
40
  /* Whether a draft or an open editor at the path, or under it for a folder, holds text that is not saved. A delete that would lose it is refused. */
41
41
  isUnsaved?(path: string): boolean;
42
- /* Whether anything is at the path: a file of any kind or a folder. Without it, what is no text file is of unknown existence: an edit may move or delete it and the machine decides, and `ignoreIfNotExists` cannot be honored. */
42
+ /* Whether anything is at the path, a file of any kind or a folder. Without it, an edit cannot tell whether something that is no text file exists. It may move or delete it and leave the outcome to the machine, and `ignoreIfNotExists` cannot be honored. */
43
43
  exists?(path: string): Promise<boolean>;
44
44
  /* Whether the path is a folder. Without it, deleting anything that is no text file needs `recursive`. */
45
45
  isFolder?(path: string): Promise<boolean>;