@adecore/editor 0.44.0 → 0.44.2

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.
@@ -336,6 +336,7 @@ export class InputController {
336
336
  indentGuides: settings.guides,
337
337
  smartSemicolon: keys.smartSemicolon,
338
338
  smartArrow: keys.smartArrow,
339
+ templateLiterals: keys.templateLiterals,
339
340
  language: settings.language ?? 'plaintext',
340
341
  camelCase: keys.camelHumps,
341
342
  visualLine: (offset) => this.view.rowOf(offset),
@@ -7,6 +7,7 @@ export const DEFAULT_SMART_KEYS = {
7
7
  indentOnPaste: true,
8
8
  smartSemicolon: true,
9
9
  smartArrow: true,
10
+ templateLiterals: true,
10
11
  camelHumps: false
11
12
  };
12
13
  /* The keys with what a host left out filled in from the defaults. */
package/dist/types.d.ts CHANGED
@@ -66,6 +66,7 @@ export interface EditorSmartKeys {
66
66
  readonly indentOnPaste: boolean;
67
67
  readonly smartSemicolon: boolean;
68
68
  readonly smartArrow: boolean;
69
+ readonly templateLiterals: boolean;
69
70
  readonly camelHumps: boolean;
70
71
  }
71
72
  export interface EditorFoldSymbol {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adecore/editor",
3
- "version": "0.44.0",
3
+ "version": "0.44.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -54,7 +54,7 @@
54
54
  "test": "bun test --conditions=source"
55
55
  },
56
56
  "dependencies": {
57
- "@adecore/editor-core": "0.44.0",
57
+ "@adecore/editor-core": "0.44.2",
58
58
  "linkedom": "^0.18.14",
59
59
  "shiki": "^4.5.0"
60
60
  },
package/src/controller.ts CHANGED
@@ -425,6 +425,7 @@ export class InputController {
425
425
  indentGuides: settings.guides,
426
426
  smartSemicolon: keys.smartSemicolon,
427
427
  smartArrow: keys.smartArrow,
428
+ templateLiterals: keys.templateLiterals,
428
429
  language: settings.language ?? 'plaintext',
429
430
  camelCase: keys.camelHumps,
430
431
  visualLine: (offset) => this.view.rowOf(offset),
package/src/smart-keys.ts CHANGED
@@ -9,6 +9,7 @@ export const DEFAULT_SMART_KEYS: EditorSmartKeys = {
9
9
  indentOnPaste: true,
10
10
  smartSemicolon: true,
11
11
  smartArrow: true,
12
+ templateLiterals: true,
12
13
  camelHumps: false
13
14
  };
14
15
 
package/src/types.ts CHANGED
@@ -150,6 +150,8 @@ export interface EditorSmartKeys {
150
150
  readonly smartSemicolon: boolean;
151
151
  /* In PHP a `-` typed after a variable, a member or a `)` or `]` becomes `->`. */
152
152
  readonly smartArrow: boolean;
153
+ /* In JavaScript and TypeScript a `${` typed in a quoted string makes it a template literal. */
154
+ readonly templateLiterals: boolean;
153
155
  /* Moving by word also stops inside `camelCase` and `snake_case` words. Off. */
154
156
  readonly camelHumps: boolean;
155
157
  }