qword 1.1.4 → 1.1.6

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/ChangeLog CHANGED
@@ -1,3 +1,13 @@
1
+ 2026.09.05, v1.1.6
2
+
3
+ fix:
4
+ - aa17e3f qword: client: create: indent
5
+
6
+ 2026.09.05, v1.1.5
7
+
8
+ fix:
9
+ - 08c2671 indent revert
10
+
1
11
  2026.09.05, v1.1.4
2
12
 
3
13
  fix:
package/client/create.js CHANGED
@@ -10,6 +10,7 @@ import {
10
10
  foldGutter,
11
11
  codeFolding,
12
12
  syntaxHighlighting,
13
+ indentOnInput,
13
14
  indentUnit,
14
15
  } from '@codemirror/language';
15
16
  import {highlightStyle} from './highlight.js';
@@ -54,6 +55,7 @@ export function createEditor(element, options = {}) {
54
55
  keymapCompartment.of(keymapExtension(keyMap)),
55
56
  langCompartment.of(languageExtension(mode)),
56
57
  syntaxHighlighting(highlightStyle),
58
+ indentOnInput(),
57
59
  indentUnit.of(' '),
58
60
  ...lineNumbers
59
61
  ? [
package/client/options.js CHANGED
@@ -1,8 +1,7 @@
1
1
  import {keymap} from '@codemirror/view';
2
- import {javascriptLanguage} from '@codemirror/lang-javascript';
3
- import {jsonLanguage} from '@codemirror/lang-json';
4
- import {htmlLanguage} from '@codemirror/lang-html';
5
- import {indentOnInput} from '@codemirror/language';
2
+ import {javascript} from '@codemirror/lang-javascript';
3
+ import {json} from '@codemirror/lang-json';
4
+ import {html} from '@codemirror/lang-html';
6
5
  import {vim} from '@replit/codemirror-vim';
7
6
  import {nord} from '@uiw/codemirror-theme-nord';
8
7
  import {
@@ -34,13 +33,13 @@ export function languageExtension(mode) {
34
33
  const name = typeof mode === 'object' ? mode?.name : mode;
35
34
 
36
35
  if (name === 'javascript' || name === 'js')
37
- return [javascriptLanguage, indentOnInput()];
36
+ return javascript();
38
37
 
39
38
  if (name === 'json')
40
- return [jsonLanguage, indentOnInput()];
39
+ return json();
41
40
 
42
41
  if (name === 'html')
43
- return [htmlLanguage, indentOnInput()];
42
+ return html();
44
43
 
45
44
  return [];
46
45
  }