@dxos/react-ui-editor 0.6.11 → 0.6.12-main.5a87ad5

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.
@@ -5,8 +5,7 @@
5
5
  // @ts-ignore
6
6
  import { testTree } from '@lezer/generator/test';
7
7
  import { parser } from '@lezer/markdown';
8
-
9
- import { describe, test } from '@dxos/test';
8
+ import { describe, test } from 'vitest';
10
9
 
11
10
  describe('parser', () => {
12
11
  // test.only('list-mark', () => {
@@ -25,9 +25,9 @@ export type TableOptions = {};
25
25
  * https://github.github.com/gfm/#tables-extension
26
26
  */
27
27
  export const table = (options: TableOptions = {}): Extension => {
28
- return StateField.define<RangeSet<any>>({
28
+ return StateField.define<RangeSet<Decoration>>({
29
29
  create: (state) => update(state, options),
30
- update: (_: RangeSet<any>, tr: Transaction) => update(tr.state, options),
30
+ update: (_: RangeSet<Decoration>, tr: Transaction) => update(tr.state, options),
31
31
  provide: (field) => EditorView.decorations.from(field),
32
32
  });
33
33
  };
@@ -40,7 +40,7 @@ type Table = {
40
40
  };
41
41
 
42
42
  const update = (state: EditorState, _options: TableOptions) => {
43
- const builder = new RangeSetBuilder();
43
+ const builder = new RangeSetBuilder<Decoration>();
44
44
  const cursor = state.selection.main.head;
45
45
 
46
46
  const tables: Table[] = [];
@@ -74,6 +74,7 @@ export const defaultTheme: ThemeStyles = {
74
74
  */
75
75
  '.cm-gutters': {
76
76
  background: 'var(--surface-bg)',
77
+ borderRight: 'none',
77
78
  },
78
79
  '.cm-gutter': {},
79
80
  '.cm-gutter.cm-lineNumbers .cm-gutterElement': {
@@ -95,7 +96,7 @@ export const defaultTheme: ThemeStyles = {
95
96
  paddingInline: 0,
96
97
  },
97
98
  '.cm-activeLine': {
98
- background: 'var(--dx-hoverSurface)',
99
+ background: 'var(--dx-cmActiveLine)',
99
100
  },
100
101
 
101
102
  /**
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=automerge.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"automerge.spec.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/automerge/automerge.spec.tsx"],"names":[],"mappings":""}
@@ -1,13 +0,0 @@
1
- //
2
- // Copyright 2024 DXOS.org
3
- //
4
-
5
- import { expect } from 'chai';
6
-
7
- import { describe, test } from '@dxos/test';
8
-
9
- describe('Test', () => {
10
- test('checks sanity', async () => {
11
- expect(true).to.be.true;
12
- });
13
- });