Skip to content

Commit 25f808b

Browse files
authored
Simplify folder hierarchy (#103)
1 parent 290dc98 commit 25f808b

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

CoreEditor/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { NativeModuleTokenizer } from './src/bridge/native/tokenizer';
2323
import * as core from './src/core';
2424
import * as styling from './src/styling/config';
2525
import * as themes from './src/styling/themes';
26-
import * as events from './src/dom/events';
26+
import * as events from './src/events';
2727

2828
// "{{EDITOR_CONFIG}}" will be replaced with a JSON literal in production
2929
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import isMetaKey from './isMetaKey';
2-
import { editingState } from '../../common/store';
2+
import { editingState } from '../common/store';
33

4-
import * as completion from '../../modules/completion';
5-
import * as grammarly from '../../modules/grammarly';
6-
import * as selection from '../../modules/selection';
7-
import * as tokenizer from '../../modules/tokenizer';
8-
import * as link from '../../styling/nodes/link';
4+
import * as completion from '../modules/completion';
5+
import * as grammarly from '../modules/grammarly';
6+
import * as selection from '../modules/selection';
7+
import * as tokenizer from '../modules/tokenizer';
8+
import * as link from '../styling/nodes/link';
99

1010
export function startObserving() {
1111
document.addEventListener('click', event => {

CoreEditor/src/styling/matchers/lexer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Decoration } from '@codemirror/view';
22
import { Range } from '@codemirror/state';
33
import { syntaxTree } from '@codemirror/language';
44
import { SyntaxNodeRef } from '@lezer/common';
5-
import { WidgetView } from '../../dom/views/types';
5+
import { WidgetView } from '../../views/types';
66

77
/**
88
* Create mark decorations.

CoreEditor/src/styling/nodes/code.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createMarkDeco, createWidgetDeco } from '../matchers/lexer';
22
import { createDecoPlugin } from '../helper';
3-
import { PreviewWidget } from '../../dom/views';
3+
import { PreviewWidget } from '../../views';
44
import { PreviewType, showPreview } from '../../modules/preview';
55

66
/**

CoreEditor/src/styling/nodes/table.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createMarkDeco, createWidgetDeco } from '../matchers/lexer';
22
import { createDecoPlugin } from '../helper';
3-
import { PreviewWidget } from '../../dom/views';
3+
import { PreviewWidget } from '../../views';
44
import { PreviewType, showPreview } from '../../modules/preview';
55

66
/**
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { WidgetView } from './types';
2-
import { PreviewType } from '../../modules/preview';
2+
import { PreviewType } from '../modules/preview';
33

44
/**
55
* Widget used to show a [preview] button after some contents, such as mermaid diagrams.

0 commit comments

Comments
 (0)