@vuu-ui/vuu-codemirror 0.13.2 → 0.13.4

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/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
- "version": "0.13.2",
2
+ "version": "0.13.4",
3
3
  "author": "heswell",
4
4
  "license": "Apache-2.0",
5
5
  "devDependencies": {
6
- "@vuu-ui/vuu-table-types": "0.13.2"
6
+ "@vuu-ui/vuu-table-types": "0.13.4"
7
7
  },
8
8
  "dependencies": {
9
9
  "@codemirror/autocomplete": "^6.4.2",
@@ -11,7 +11,7 @@
11
11
  "@codemirror/language": "^6.6.0",
12
12
  "@codemirror/state": "^6.2.0",
13
13
  "@codemirror/view": "^6.9.3",
14
- "@vuu-ui/vuu-utils": "0.13.2",
14
+ "@vuu-ui/vuu-utils": "0.13.4",
15
15
  "@lezer/common": "1.2.3",
16
16
  "@lezer/highlight": "^1.1.3"
17
17
  },
@@ -19,18 +19,15 @@
19
19
  "files": [
20
20
  "README.md",
21
21
  "esm",
22
- "cjs",
23
- "/types"
22
+ "cjs"
24
23
  ],
25
24
  "exports": {
26
25
  ".": {
27
26
  "require": "./cjs/index.js",
28
- "import": "./esm/index.js",
29
- "types": "./types/index.d.ts"
27
+ "import": "./esm/index.js"
30
28
  }
31
29
  },
32
30
  "main": "cjs/index.js",
33
31
  "module": "esm/index.js",
34
- "name": "@vuu-ui/vuu-codemirror",
35
- "types": "types/index.d.ts"
32
+ "name": "@vuu-ui/vuu-codemirror"
36
33
  }
@@ -1,2 +0,0 @@
1
- import { Extension } from "@codemirror/state";
2
- export declare const minimalSetup: Extension;
package/types/index.d.ts DELETED
@@ -1,21 +0,0 @@
1
- import { autocompletion, closeBrackets, Completion, CompletionContext, CompletionSource, startCompletion } from "@codemirror/autocomplete";
2
- import { defaultKeymap, history, historyKeymap } from "@codemirror/commands";
3
- import { defaultHighlightStyle, ensureSyntaxTree, HighlightStyle, LanguageSupport, LRLanguage, syntaxHighlighting, syntaxTree } from "@codemirror/language";
4
- import { AnnotationType, EditorState, Extension } from "@codemirror/state";
5
- import type { KeyBinding } from "@codemirror/view";
6
- import { drawSelection, EditorView, highlightSpecialChars, keymap } from "@codemirror/view";
7
- import type { SyntaxNode } from "@lezer/common";
8
- import { Tree } from "@lezer/common";
9
- import { styleTags, tags } from "@lezer/highlight";
10
- export * from "./codemirror-basic-setup";
11
- export * from "./parser-utils";
12
- export * from "./suggestion-utils";
13
- export { autocompletion, closeBrackets, startCompletion };
14
- export type { Completion, CompletionContext, CompletionSource };
15
- export { defaultKeymap, history, historyKeymap };
16
- export { defaultHighlightStyle, ensureSyntaxTree, HighlightStyle, LanguageSupport, LRLanguage, syntaxHighlighting, syntaxTree, };
17
- export { AnnotationType, EditorState };
18
- export type { Extension };
19
- export { drawSelection, EditorView, highlightSpecialChars, KeyBinding, keymap };
20
- export { styleTags, tags };
21
- export { SyntaxNode, Tree };
@@ -1,7 +0,0 @@
1
- import { EditorState } from "@codemirror/state";
2
- import type { SyntaxNode } from "@lezer/common";
3
- export declare const getValue: (node: SyntaxNode, state: EditorState) => string;
4
- export declare const getNodeByName: (node: SyntaxNode, state: EditorState, nodeName?: string) => string | undefined;
5
- export declare const getPreviousNode: (node: SyntaxNode) => SyntaxNode | null;
6
- export declare const getNamedParentNode: (node: SyntaxNode) => SyntaxNode | null;
7
- export declare const getPreviousNamedNode: (node: SyntaxNode) => SyntaxNode | null;
@@ -1,27 +0,0 @@
1
- import { Completion } from "@codemirror/autocomplete";
2
- import type { ColumnDescriptor } from "@vuu-ui/vuu-table-types";
3
- export interface VuuCompletion extends Completion {
4
- isIllustration?: boolean;
5
- }
6
- export type CompletionOptions = {
7
- moveCursorToEnd?: boolean;
8
- prefix?: string;
9
- quoted?: boolean;
10
- suffix?: string;
11
- isIllustration?: boolean;
12
- };
13
- export declare const toSuggestions: (values: string[], options?: CompletionOptions) => VuuCompletion[];
14
- export declare const asNameSuggestion: {
15
- label: string;
16
- apply: string;
17
- boost: number;
18
- };
19
- export declare const booleanJoinSuggestions: Completion[];
20
- export declare const equalityOperators: Completion[];
21
- export declare const stringOperators: Completion[];
22
- export declare const numericOperators: Completion[];
23
- export declare const getRelationalOperators: (column?: ColumnDescriptor) => Completion[];
24
- export declare const getNamePrompt: (entity?: string) => {
25
- label: string;
26
- boost: number;
27
- }[];