@actis/codemirror 26.9.0
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/LICENSE +674 -0
- package/README.md +23 -0
- package/dist/index.cjs +731 -0
- package/dist/index.d.cts +54 -0
- package/dist/index.d.mts +54 -0
- package/dist/index.mjs +715 -0
- package/package.json +68 -0
- package/styles.css +79 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { CompletionSource } from "@codemirror/autocomplete";
|
|
2
|
+
import { Extension } from "@codemirror/state";
|
|
3
|
+
import { ViewUpdate } from "@codemirror/view";
|
|
4
|
+
import { HighlightStyle } from "@codemirror/language";
|
|
5
|
+
|
|
6
|
+
//#region src/plugin/completions.d.ts
|
|
7
|
+
type GlslCompletionOptions = {
|
|
8
|
+
webgl2?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare function glslCompletions(options?: GlslCompletionOptions): CompletionSource;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/glsl.d.ts
|
|
13
|
+
declare const actisCodeMirrorClassName = "cm-actis-editor";
|
|
14
|
+
type GlslEditorExtensionOptions = GlslCompletionOptions & {
|
|
15
|
+
basicSetup?: Extension | false;
|
|
16
|
+
completionSource?: CompletionSource | false;
|
|
17
|
+
folding?: boolean;
|
|
18
|
+
language?: Extension | false;
|
|
19
|
+
nonMatchingBrackets?: boolean;
|
|
20
|
+
onChange?: (value: string, update: ViewUpdate) => void;
|
|
21
|
+
scrollbar?: boolean;
|
|
22
|
+
scrollPastEnd?: boolean;
|
|
23
|
+
selectionLineHighlight?: boolean;
|
|
24
|
+
theme?: Extension | false;
|
|
25
|
+
wordHighlight?: boolean;
|
|
26
|
+
};
|
|
27
|
+
declare function glslLanguage(): Extension;
|
|
28
|
+
declare function glslEditorExtensions(options?: GlslEditorExtensionOptions): Extension[];
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/plugin/bracket-match.d.ts
|
|
31
|
+
declare const nonMatchingBracketPlugin: Extension;
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/plugin/folding.d.ts
|
|
34
|
+
declare function codeFoldingExtension(): Extension;
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/plugin/scrollbar.d.ts
|
|
37
|
+
declare const scrollbarRuler: Extension;
|
|
38
|
+
declare const scrollbarRulerTheme: Extension;
|
|
39
|
+
declare function scrollbarRulerExtension(): Extension;
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/plugin/selection.d.ts
|
|
42
|
+
declare const selectionLineHighlightPlugin: Extension;
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/plugin/theme.d.ts
|
|
45
|
+
declare const vitesseTheme: Extension;
|
|
46
|
+
declare const vitesseHighlightStyle: HighlightStyle;
|
|
47
|
+
declare const vitesse: Extension;
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/plugin/word-highlight.d.ts
|
|
50
|
+
declare const wordHighlightPlugin: Extension;
|
|
51
|
+
declare const wordHighlightTheme: Extension;
|
|
52
|
+
declare function wordHighlightExtension(): Extension;
|
|
53
|
+
//#endregion
|
|
54
|
+
export { type GlslCompletionOptions, type GlslEditorExtensionOptions, actisCodeMirrorClassName, codeFoldingExtension, glslCompletions, glslEditorExtensions, glslLanguage, nonMatchingBracketPlugin, scrollbarRuler, scrollbarRulerExtension, scrollbarRulerTheme, selectionLineHighlightPlugin, vitesse, vitesseHighlightStyle, vitesseTheme, wordHighlightExtension, wordHighlightPlugin, wordHighlightTheme };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { CompletionSource } from "@codemirror/autocomplete";
|
|
2
|
+
import { ViewUpdate } from "@codemirror/view";
|
|
3
|
+
import { Extension } from "@codemirror/state";
|
|
4
|
+
import { HighlightStyle } from "@codemirror/language";
|
|
5
|
+
|
|
6
|
+
//#region src/plugin/completions.d.ts
|
|
7
|
+
type GlslCompletionOptions = {
|
|
8
|
+
webgl2?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare function glslCompletions(options?: GlslCompletionOptions): CompletionSource;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/glsl.d.ts
|
|
13
|
+
declare const actisCodeMirrorClassName = "cm-actis-editor";
|
|
14
|
+
type GlslEditorExtensionOptions = GlslCompletionOptions & {
|
|
15
|
+
basicSetup?: Extension | false;
|
|
16
|
+
completionSource?: CompletionSource | false;
|
|
17
|
+
folding?: boolean;
|
|
18
|
+
language?: Extension | false;
|
|
19
|
+
nonMatchingBrackets?: boolean;
|
|
20
|
+
onChange?: (value: string, update: ViewUpdate) => void;
|
|
21
|
+
scrollbar?: boolean;
|
|
22
|
+
scrollPastEnd?: boolean;
|
|
23
|
+
selectionLineHighlight?: boolean;
|
|
24
|
+
theme?: Extension | false;
|
|
25
|
+
wordHighlight?: boolean;
|
|
26
|
+
};
|
|
27
|
+
declare function glslLanguage(): Extension;
|
|
28
|
+
declare function glslEditorExtensions(options?: GlslEditorExtensionOptions): Extension[];
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/plugin/bracket-match.d.ts
|
|
31
|
+
declare const nonMatchingBracketPlugin: Extension;
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/plugin/folding.d.ts
|
|
34
|
+
declare function codeFoldingExtension(): Extension;
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/plugin/scrollbar.d.ts
|
|
37
|
+
declare const scrollbarRuler: Extension;
|
|
38
|
+
declare const scrollbarRulerTheme: Extension;
|
|
39
|
+
declare function scrollbarRulerExtension(): Extension;
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/plugin/selection.d.ts
|
|
42
|
+
declare const selectionLineHighlightPlugin: Extension;
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/plugin/theme.d.ts
|
|
45
|
+
declare const vitesseTheme: Extension;
|
|
46
|
+
declare const vitesseHighlightStyle: HighlightStyle;
|
|
47
|
+
declare const vitesse: Extension;
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/plugin/word-highlight.d.ts
|
|
50
|
+
declare const wordHighlightPlugin: Extension;
|
|
51
|
+
declare const wordHighlightTheme: Extension;
|
|
52
|
+
declare function wordHighlightExtension(): Extension;
|
|
53
|
+
//#endregion
|
|
54
|
+
export { type GlslCompletionOptions, type GlslEditorExtensionOptions, actisCodeMirrorClassName, codeFoldingExtension, glslCompletions, glslEditorExtensions, glslLanguage, nonMatchingBracketPlugin, scrollbarRuler, scrollbarRulerExtension, scrollbarRulerTheme, selectionLineHighlightPlugin, vitesse, vitesseHighlightStyle, vitesseTheme, wordHighlightExtension, wordHighlightPlugin, wordHighlightTheme };
|