@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.
- package/dist/controller.js +1 -0
- package/dist/smart-keys.js +1 -0
- package/dist/types.d.ts +1 -0
- package/package.json +2 -2
- package/src/controller.ts +1 -0
- package/src/smart-keys.ts +1 -0
- package/src/types.ts +2 -0
package/dist/controller.js
CHANGED
|
@@ -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),
|
package/dist/smart-keys.js
CHANGED
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adecore/editor",
|
|
3
|
-
"version": "0.44.
|
|
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.
|
|
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
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
|
}
|