@yoopta/code 4.9.9 → 6.0.0-beta.1
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/dist/commands/{index.d.ts → code-commands.d.ts} +4 -3
- package/dist/commands/code-commands.d.ts.map +1 -0
- package/dist/commands/code-group-commands.d.ts +17 -0
- package/dist/commands/code-group-commands.d.ts.map +1 -0
- package/dist/components/highlighted-code-overlay.d.ts +13 -0
- package/dist/components/highlighted-code-overlay.d.ts.map +1 -0
- package/dist/index.d.ts +14 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/plugin/code-group-plugin.d.ts +5 -0
- package/dist/plugin/code-group-plugin.d.ts.map +1 -0
- package/dist/plugin/{index.d.ts → code-plugin.d.ts} +2 -2
- package/dist/plugin/code-plugin.d.ts.map +1 -0
- package/dist/types.d.ts +23 -5
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/element.d.ts +2 -1
- package/dist/utils/element.d.ts.map +1 -1
- package/dist/utils/prettier.d.ts +3 -0
- package/dist/utils/prettier.d.ts.map +1 -0
- package/dist/utils/shiki.d.ts +16 -0
- package/dist/utils/shiki.d.ts.map +1 -0
- package/package.json +14 -42
- package/dist/commands/index.d.ts.map +0 -1
- package/dist/plugin/index.d.ts.map +0 -1
- package/dist/ui/Code.d.ts +0 -4
- package/dist/ui/Code.d.ts.map +0 -1
- package/dist/ui/CodeBlockOptions.d.ts +0 -10
- package/dist/ui/CodeBlockOptions.d.ts.map +0 -1
- package/dist/ui/Select.d.ts +0 -29
- package/dist/ui/Select.d.ts.map +0 -1
- package/dist/utils/languages.d.ts +0 -90
- package/dist/utils/languages.d.ts.map +0 -1
- package/dist/utils/themes.d.ts +0 -15
- package/dist/utils/themes.d.ts.map +0 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { YooptaPlugin } from '@yoopta/editor';
|
|
2
|
+
import type { CodeGroupElementMap, CodeGroupPluginBlockOptions } from '../types';
|
|
3
|
+
declare const CodeGroup: YooptaPlugin<CodeGroupElementMap, CodeGroupPluginBlockOptions>;
|
|
4
|
+
export { CodeGroup };
|
|
5
|
+
//# sourceMappingURL=code-group-plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-group-plugin.d.ts","sourceRoot":"","sources":["../../src/plugin/code-group-plugin.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAc,MAAM,gBAAgB,CAAC;AAI1D,OAAO,KAAK,EAGV,mBAAmB,EACnB,2BAA2B,EAC5B,MAAM,UAAU,CAAC;AA4BlB,QAAA,MAAM,SAAS,gEAwIb,CAAC;AAEH,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { YooptaPlugin } from '@yoopta/editor';
|
|
2
|
-
import { CodeElementMap, CodePluginBlockOptions } from '../types';
|
|
2
|
+
import type { CodeElementMap, CodePluginBlockOptions } from '../types';
|
|
3
3
|
declare const Code: YooptaPlugin<CodeElementMap, CodePluginBlockOptions>;
|
|
4
4
|
export { Code };
|
|
5
|
-
//# sourceMappingURL=
|
|
5
|
+
//# sourceMappingURL=code-plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-plugin.d.ts","sourceRoot":"","sources":["../../src/plugin/code-plugin.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAI9C,OAAO,KAAK,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAUvE,QAAA,MAAM,IAAI,sDAqGR,CAAC;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,14 +1,32 @@
|
|
|
1
|
-
import { SlateElement } from '@yoopta/editor';
|
|
2
|
-
import {
|
|
3
|
-
import { THEMES_MAP } from './utils/themes';
|
|
1
|
+
import type { SlateElement } from '@yoopta/editor';
|
|
2
|
+
import type { BundledLanguage, BundledTheme } from 'shiki';
|
|
4
3
|
export type CodePluginElements = 'code';
|
|
5
4
|
export type CodeElementProps = {
|
|
6
|
-
language?:
|
|
7
|
-
theme?:
|
|
5
|
+
language?: BundledLanguage;
|
|
6
|
+
theme?: BundledTheme;
|
|
8
7
|
};
|
|
9
8
|
export type CodePluginBlockOptions = {};
|
|
10
9
|
export type CodeElement = SlateElement<'code', CodeElementProps>;
|
|
11
10
|
export type CodeElementMap = {
|
|
12
11
|
code: CodeElement;
|
|
13
12
|
};
|
|
13
|
+
export type CodeGroupContainerElementProps = {
|
|
14
|
+
activeTabId?: string | null;
|
|
15
|
+
theme?: BundledTheme;
|
|
16
|
+
};
|
|
17
|
+
export type CodeGroupContentElementProps = {
|
|
18
|
+
referenceId?: string | null;
|
|
19
|
+
language?: BundledLanguage;
|
|
20
|
+
};
|
|
21
|
+
export type CodeGroupPluginBlockOptions = {};
|
|
22
|
+
export type CodeGroupContainerElement = SlateElement<'code-group-container', CodeGroupContainerElementProps>;
|
|
23
|
+
export type CodeGroupListElement = SlateElement<'code-group-list'>;
|
|
24
|
+
export type CodeGroupItemHeadingElement = SlateElement<'code-group-item-heading'>;
|
|
25
|
+
export type CodeGroupContentElement = SlateElement<'code-group-content', CodeGroupContentElementProps>;
|
|
26
|
+
export type CodeGroupElementMap = {
|
|
27
|
+
'code-group-container': CodeGroupContainerElement;
|
|
28
|
+
'code-group-list': CodeGroupListElement;
|
|
29
|
+
'code-group-item-heading': CodeGroupItemHeadingElement;
|
|
30
|
+
'code-group-content': CodeGroupContentElement;
|
|
31
|
+
};
|
|
14
32
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":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,CAAC;IACxC,yBAAyB,EAAE,2BAA2B,CAAC;IACvD,oBAAoB,EAAE,uBAAuB,CAAC;CAC/C,CAAC"}
|
package/dist/utils/element.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { YooptaBlockData } from '@yoopta/editor';
|
|
1
|
+
import type { YooptaBlockData } from '@yoopta/editor';
|
|
2
2
|
export declare const getCodeElement: (block: YooptaBlockData) => import("slate").Descendant | import("@yoopta/editor").SlateElement<string, any>;
|
|
3
3
|
export declare const getCodeElementText: (block: YooptaBlockData) => string;
|
|
4
|
+
export declare const escapeHTML: (text: string) => string;
|
|
4
5
|
//# sourceMappingURL=element.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../src/utils/element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../src/utils/element.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAItD,eAAO,MAAM,cAAc,UAAW,eAAe,oFAAmB,CAAC;AAEzE,eAAO,MAAM,kBAAkB,UAAW,eAAe,WAUxD,CAAC;AAEF,eAAO,MAAM,UAAU,SAAU,MAAM,WAMZ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prettier.d.ts","sourceRoot":"","sources":["../../src/utils/prettier.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA+BtD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,OAAO,CAAC,GAAG,EAAE,CAAC,CA6B/D,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { BundledLanguage, BundledTheme, HighlighterGeneric } from 'shiki';
|
|
2
|
+
declare global {
|
|
3
|
+
interface Window {
|
|
4
|
+
yShiki: HighlighterGeneric<BundledLanguage, BundledTheme> | null;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
export declare const SHIKI_CODE_LANGUAGES: {
|
|
8
|
+
value: BundledLanguage;
|
|
9
|
+
label: string;
|
|
10
|
+
}[];
|
|
11
|
+
export declare const SHIKI_CODE_THEMES: {
|
|
12
|
+
value: BundledTheme;
|
|
13
|
+
label: string;
|
|
14
|
+
}[];
|
|
15
|
+
export declare function initHighlighter(): Promise<HighlighterGeneric<BundledLanguage, BundledTheme>>;
|
|
16
|
+
//# sourceMappingURL=shiki.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shiki.d.ts","sourceRoot":"","sources":["../../src/utils/shiki.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAG/E,OAAO,CAAC,MAAM,CAAC;IAEb,UAAU,MAAM;QACd,MAAM,EAAE,kBAAkB,CAAC,eAAe,EAAE,YAAY,CAAC,GAAG,IAAI,CAAC;KAClE;CACF;AAED,eAAO,MAAM,oBAAoB,EAAE;IAAE,KAAK,EAAE,eAAe,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EA4D3E,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE;IAAE,KAAK,EAAE,YAAY,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAyDrE,CAAC;AAGF,wBAAsB,eAAe,IAAI,OAAO,CAC9C,kBAAkB,CAAC,eAAe,EAAE,YAAY,CAAC,CAClD,CAkBA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoopta/code",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-beta.1",
|
|
4
4
|
"description": "Code plugin with syntax highlighting for Yoopta Editor",
|
|
5
5
|
"author": "Darginec05 <devopsbanda@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/Darginec05/Yoopta-Editor#readme",
|
|
@@ -14,12 +14,20 @@
|
|
|
14
14
|
"dist/"
|
|
15
15
|
],
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@yoopta/editor": ">=4.
|
|
18
|
-
"react": ">=
|
|
19
|
-
"react-dom": ">=
|
|
17
|
+
"@yoopta/editor": ">=4.9.9",
|
|
18
|
+
"react": ">=18.2.0",
|
|
19
|
+
"react-dom": ">=18.2.0"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"prettier": "^3.7.4",
|
|
23
|
+
"shiki": "^3.20.0"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"check-peer-dependencies": "^4.3.0"
|
|
20
27
|
},
|
|
21
28
|
"publishConfig": {
|
|
22
|
-
"registry": "https://registry.npmjs.org"
|
|
29
|
+
"registry": "https://registry.npmjs.org",
|
|
30
|
+
"access": "public"
|
|
23
31
|
},
|
|
24
32
|
"repository": {
|
|
25
33
|
"type": "git",
|
|
@@ -34,41 +42,5 @@
|
|
|
34
42
|
"bugs": {
|
|
35
43
|
"url": "https://github.com/Darginec05/Yoopta-Editor/issues"
|
|
36
44
|
},
|
|
37
|
-
"
|
|
38
|
-
"@codemirror/lang-angular": "^0.1.3",
|
|
39
|
-
"@codemirror/lang-cpp": "^6.0.2",
|
|
40
|
-
"@codemirror/lang-css": "^6.2.1",
|
|
41
|
-
"@codemirror/lang-html": "^6.4.8",
|
|
42
|
-
"@codemirror/lang-java": "^6.0.1",
|
|
43
|
-
"@codemirror/lang-javascript": "^6.2.2",
|
|
44
|
-
"@codemirror/lang-json": "^6.0.1",
|
|
45
|
-
"@codemirror/lang-markdown": "^6.2.4",
|
|
46
|
-
"@codemirror/lang-php": "^6.0.1",
|
|
47
|
-
"@codemirror/lang-python": "^6.1.4",
|
|
48
|
-
"@codemirror/lang-rust": "^6.0.1",
|
|
49
|
-
"@codemirror/lang-sql": "^6.6.1",
|
|
50
|
-
"@codemirror/lang-vue": "^0.1.3",
|
|
51
|
-
"@codemirror/lang-xml": "^6.1.0",
|
|
52
|
-
"@codemirror/lang-yaml": "^6.0.0",
|
|
53
|
-
"@codemirror/legacy-modes": "^6.4.1",
|
|
54
|
-
"@codemirror/theme-one-dark": "^6.1.2",
|
|
55
|
-
"@radix-ui/react-select": "^2.0.0",
|
|
56
|
-
"@uiw/codemirror-extensions-basic-setup": "^4.21.24",
|
|
57
|
-
"@uiw/codemirror-theme-basic": "^4.21.24",
|
|
58
|
-
"@uiw/codemirror-theme-copilot": "^4.21.24",
|
|
59
|
-
"@uiw/codemirror-theme-dracula": "^4.21.24",
|
|
60
|
-
"@uiw/codemirror-theme-github": "^4.21.24",
|
|
61
|
-
"@uiw/codemirror-theme-material": "^4.21.24",
|
|
62
|
-
"@uiw/codemirror-theme-monokai-dimmed": "^4.21.24",
|
|
63
|
-
"@uiw/codemirror-theme-okaidia": "^4.21.24",
|
|
64
|
-
"@uiw/codemirror-theme-sublime": "^4.21.24",
|
|
65
|
-
"@uiw/codemirror-theme-vscode": "^4.21.24",
|
|
66
|
-
"@uiw/react-codemirror": "^4.21.25",
|
|
67
|
-
"codemirror": "^6.0.1",
|
|
68
|
-
"copy-to-clipboard": "^3.3.3"
|
|
69
|
-
},
|
|
70
|
-
"devDependencies": {
|
|
71
|
-
"check-peer-dependencies": "^4.3.0"
|
|
72
|
-
},
|
|
73
|
-
"gitHead": "e8260945d74e2b26e8c66a3ddf4da8ceb45bc74d"
|
|
45
|
+
"gitHead": "ff6a5ae2937a56e0d1820df29fdfd6356171786c"
|
|
74
46
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,SAAS,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAChG,OA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,IAAI,EAAE,CAAC"}
|
package/dist/ui/Code.d.ts
DELETED
package/dist/ui/Code.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Code.d.ts","sourceRoot":"","sources":["../../src/ui/Code.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,6BAA6B,EAG9B,MAAM,gBAAgB,CAAC;AAmBxB,QAAA,MAAM,UAAU,gBAAiB,6BAA6B,4CA+D7D,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { YooEditor, YooptaBlockData } from '@yoopta/editor';
|
|
2
|
-
import { CodeElement } from '../types';
|
|
3
|
-
type Props = {
|
|
4
|
-
editor: YooEditor;
|
|
5
|
-
block: YooptaBlockData;
|
|
6
|
-
element: CodeElement;
|
|
7
|
-
};
|
|
8
|
-
export declare const CodeBlockOptions: ({ block, editor, element }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=CodeBlockOptions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodeBlockOptions.d.ts","sourceRoot":"","sources":["../../src/ui/CodeBlockOptions.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA8B,SAAS,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AASxF,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAOvC,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,SAAS,CAAC;IAClB,KAAK,EAAE,eAAe,CAAC;IACvB,OAAO,EAAE,WAAW,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,gBAAgB,+BAAgC,KAAK,4CAwEjE,CAAC"}
|
package/dist/ui/Select.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
3
|
-
declare const SelectRoot: typeof SelectPrimitive.Root;
|
|
4
|
-
declare const SelectValue: typeof SelectPrimitive.Value;
|
|
5
|
-
declare const SelectTrigger: ({ children, className }: {
|
|
6
|
-
children: any;
|
|
7
|
-
className: any;
|
|
8
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare const SelectContent: ({ children }: {
|
|
10
|
-
children: any;
|
|
11
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
declare const SelectItem: ({ value, children, onChange }: {
|
|
13
|
-
value: any;
|
|
14
|
-
children: any;
|
|
15
|
-
onChange: any;
|
|
16
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
type SelectProps = {
|
|
18
|
-
options: {
|
|
19
|
-
label: string;
|
|
20
|
-
value: string;
|
|
21
|
-
}[];
|
|
22
|
-
onChange: (value: string) => void;
|
|
23
|
-
value: string;
|
|
24
|
-
className?: string;
|
|
25
|
-
children?: React.ReactNode;
|
|
26
|
-
};
|
|
27
|
-
declare const Select: ({ options, onChange, value, children, className }: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
export { Select, SelectTrigger, SelectRoot, SelectValue, SelectContent, SelectItem };
|
|
29
|
-
//# sourceMappingURL=Select.d.ts.map
|
package/dist/ui/Select.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../src/ui/Select.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAK1D,QAAA,MAAM,UAAU,EAAE,OAAO,eAAe,CAAC,IAA2B,CAAC;AACrE,QAAA,MAAM,WAAW,EAAE,OAAO,eAAe,CAAC,KAA6B,CAAC;AAExE,QAAA,MAAM,aAAa;;;6CAWlB,CAAC;AAEF,QAAA,MAAM,aAAa;;6CAoBlB,CAAC;AAEF,QAAA,MAAM,UAAU;;;;6CAYf,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,QAAA,MAAM,MAAM,sDAAuD,WAAW,4CAkB7E,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { StreamLanguage } from '@codemirror/language';
|
|
2
|
-
declare const LANGUAGES_MAP: {
|
|
3
|
-
javascript: {
|
|
4
|
-
type: string;
|
|
5
|
-
name: string;
|
|
6
|
-
extension: import("@codemirror/language").LanguageSupport;
|
|
7
|
-
};
|
|
8
|
-
css: {
|
|
9
|
-
type: string;
|
|
10
|
-
name: string;
|
|
11
|
-
extension: import("@codemirror/language").LanguageSupport;
|
|
12
|
-
};
|
|
13
|
-
php: {
|
|
14
|
-
type: string;
|
|
15
|
-
name: string;
|
|
16
|
-
extension: import("@codemirror/language").LanguageSupport;
|
|
17
|
-
};
|
|
18
|
-
python: {
|
|
19
|
-
type: string;
|
|
20
|
-
name: string;
|
|
21
|
-
extension: import("@codemirror/language").LanguageSupport;
|
|
22
|
-
};
|
|
23
|
-
markdown: {
|
|
24
|
-
type: string;
|
|
25
|
-
name: string;
|
|
26
|
-
extension: import("@codemirror/language").LanguageSupport;
|
|
27
|
-
};
|
|
28
|
-
vue: {
|
|
29
|
-
type: string;
|
|
30
|
-
name: string;
|
|
31
|
-
extension: import("@codemirror/language").LanguageSupport;
|
|
32
|
-
};
|
|
33
|
-
json: {
|
|
34
|
-
type: string;
|
|
35
|
-
name: string;
|
|
36
|
-
extension: import("@codemirror/language").LanguageSupport;
|
|
37
|
-
};
|
|
38
|
-
sql: {
|
|
39
|
-
type: string;
|
|
40
|
-
name: string;
|
|
41
|
-
extension: import("@codemirror/language").LanguageSupport;
|
|
42
|
-
};
|
|
43
|
-
angular: {
|
|
44
|
-
type: string;
|
|
45
|
-
name: string;
|
|
46
|
-
extension: import("@codemirror/language").LanguageSupport;
|
|
47
|
-
};
|
|
48
|
-
rust: {
|
|
49
|
-
type: string;
|
|
50
|
-
name: string;
|
|
51
|
-
extension: import("@codemirror/language").LanguageSupport;
|
|
52
|
-
};
|
|
53
|
-
xml: {
|
|
54
|
-
type: string;
|
|
55
|
-
name: string;
|
|
56
|
-
extension: import("@codemirror/language").LanguageSupport;
|
|
57
|
-
};
|
|
58
|
-
yaml: {
|
|
59
|
-
type: string;
|
|
60
|
-
name: string;
|
|
61
|
-
extension: import("@codemirror/language").LanguageSupport;
|
|
62
|
-
};
|
|
63
|
-
java: {
|
|
64
|
-
type: string;
|
|
65
|
-
name: string;
|
|
66
|
-
extension: import("@codemirror/language").LanguageSupport;
|
|
67
|
-
};
|
|
68
|
-
html: {
|
|
69
|
-
type: string;
|
|
70
|
-
name: string;
|
|
71
|
-
extension: import("@codemirror/language").LanguageSupport;
|
|
72
|
-
};
|
|
73
|
-
cpp: {
|
|
74
|
-
type: string;
|
|
75
|
-
name: string;
|
|
76
|
-
extension: import("@codemirror/language").LanguageSupport;
|
|
77
|
-
};
|
|
78
|
-
bash: {
|
|
79
|
-
type: string;
|
|
80
|
-
name: string;
|
|
81
|
-
extension: StreamLanguage<unknown>;
|
|
82
|
-
};
|
|
83
|
-
shell: {
|
|
84
|
-
type: string;
|
|
85
|
-
name: string;
|
|
86
|
-
extension: StreamLanguage<unknown>;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
export { LANGUAGES_MAP };
|
|
90
|
-
//# sourceMappingURL=languages.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"languages.d.ts","sourceRoot":"","sources":["../../src/utils/languages.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGtD,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsFlB,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
package/dist/utils/themes.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare const THEMES_MAP: {
|
|
2
|
-
BasicLight: import("@codemirror/state").Extension;
|
|
3
|
-
BasicDark: import("@codemirror/state").Extension;
|
|
4
|
-
VSCode: import("@codemirror/state").Extension;
|
|
5
|
-
Sublime: import("@codemirror/state").Extension;
|
|
6
|
-
Okaidia: import("@codemirror/state").Extension;
|
|
7
|
-
Monokai: import("@codemirror/state").Extension;
|
|
8
|
-
MaterialDark: import("@codemirror/state").Extension;
|
|
9
|
-
MaterialLight: import("@codemirror/state").Extension;
|
|
10
|
-
GithubDark: import("@codemirror/state").Extension;
|
|
11
|
-
GithubLight: import("@codemirror/state").Extension;
|
|
12
|
-
Dracula: import("@codemirror/state").Extension;
|
|
13
|
-
Copilot: import("@codemirror/state").Extension;
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=themes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../src/utils/themes.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,UAAU;;;;;;;;;;;;;CAatB,CAAC"}
|