monacopilot 0.8.18 → 0.8.19
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/index.d.mts +14 -9
- package/dist/index.d.ts +14 -9
- package/dist/index.js +7 -7
- package/dist/index.mjs +7 -7
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ type EditorBuiltInTheme = Theme;
|
|
|
7
7
|
|
|
8
8
|
type EndpointType = string;
|
|
9
9
|
type FilenameType = string;
|
|
10
|
-
type
|
|
10
|
+
type TechnologiesType = string[];
|
|
11
11
|
type CompletionSpeedType = 'little-faster' | 'normal';
|
|
12
12
|
type ExternalContextType = {
|
|
13
13
|
/**
|
|
@@ -25,7 +25,7 @@ type ExternalContextType = {
|
|
|
25
25
|
content: string;
|
|
26
26
|
}[];
|
|
27
27
|
/**
|
|
28
|
-
* Themes available for the
|
|
28
|
+
* Themes available for the Monacopilot
|
|
29
29
|
*/
|
|
30
30
|
type ThemeType = 'codesandbox-dark' | 'dracula-soft' | 'dracula' | 'github-dark-dimmed' | 'github-dark' | 'github-light' | 'monokai' | 'nord' | 'one-dark-pro-darker' | 'one-monokai';
|
|
31
31
|
interface EditorProps extends EditorProps$1 {
|
|
@@ -40,11 +40,16 @@ interface EditorProps extends EditorProps$1 {
|
|
|
40
40
|
*/
|
|
41
41
|
endpoint?: EndpointType;
|
|
42
42
|
/**
|
|
43
|
-
* The
|
|
44
|
-
* This can provide
|
|
45
|
-
* If you don't specify a
|
|
43
|
+
* The technologies (libraries, frameworks, etc.) you want to use for the completion.
|
|
44
|
+
* This can provide technology-specific completions.
|
|
45
|
+
* If you don't specify a technology, the completion will be specific to the language (provided as the `language` prop).
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ['react', 'nextjs', 'tailwindcss', 'tanstack/react-query']
|
|
49
|
+
* ['tensorflow', 'keras', 'numpy', 'pandas']
|
|
50
|
+
* etc.
|
|
46
51
|
*/
|
|
47
|
-
|
|
52
|
+
technologies?: TechnologiesType;
|
|
48
53
|
/**
|
|
49
54
|
* The theme you want to use for the editor.
|
|
50
55
|
*/
|
|
@@ -74,7 +79,7 @@ type CompletionMode = 'fill-in-the-middle' | 'completion';
|
|
|
74
79
|
interface CompletionMetadata {
|
|
75
80
|
language: string | undefined;
|
|
76
81
|
filename: FilenameType | undefined;
|
|
77
|
-
|
|
82
|
+
technologies: TechnologiesType | undefined;
|
|
78
83
|
externalContext: ExternalContextType | undefined;
|
|
79
84
|
codeAfterCursor: string;
|
|
80
85
|
codeBeforeCursor: string;
|
|
@@ -110,6 +115,6 @@ declare class Copilot {
|
|
|
110
115
|
}>;
|
|
111
116
|
}
|
|
112
117
|
|
|
113
|
-
declare const Editor: ({ filename, endpoint,
|
|
118
|
+
declare const Editor: ({ filename, endpoint, technologies, theme, completionSpeed, externalContext, ...props }: EditorProps) => React.JSX.Element;
|
|
114
119
|
|
|
115
|
-
export { Copilot, Editor, type EditorProps, type EndpointType, type
|
|
120
|
+
export { Copilot, Editor, type EditorProps, type EndpointType, type TechnologiesType, type ThemeType as Theme };
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ type EditorBuiltInTheme = Theme;
|
|
|
7
7
|
|
|
8
8
|
type EndpointType = string;
|
|
9
9
|
type FilenameType = string;
|
|
10
|
-
type
|
|
10
|
+
type TechnologiesType = string[];
|
|
11
11
|
type CompletionSpeedType = 'little-faster' | 'normal';
|
|
12
12
|
type ExternalContextType = {
|
|
13
13
|
/**
|
|
@@ -25,7 +25,7 @@ type ExternalContextType = {
|
|
|
25
25
|
content: string;
|
|
26
26
|
}[];
|
|
27
27
|
/**
|
|
28
|
-
* Themes available for the
|
|
28
|
+
* Themes available for the Monacopilot
|
|
29
29
|
*/
|
|
30
30
|
type ThemeType = 'codesandbox-dark' | 'dracula-soft' | 'dracula' | 'github-dark-dimmed' | 'github-dark' | 'github-light' | 'monokai' | 'nord' | 'one-dark-pro-darker' | 'one-monokai';
|
|
31
31
|
interface EditorProps extends EditorProps$1 {
|
|
@@ -40,11 +40,16 @@ interface EditorProps extends EditorProps$1 {
|
|
|
40
40
|
*/
|
|
41
41
|
endpoint?: EndpointType;
|
|
42
42
|
/**
|
|
43
|
-
* The
|
|
44
|
-
* This can provide
|
|
45
|
-
* If you don't specify a
|
|
43
|
+
* The technologies (libraries, frameworks, etc.) you want to use for the completion.
|
|
44
|
+
* This can provide technology-specific completions.
|
|
45
|
+
* If you don't specify a technology, the completion will be specific to the language (provided as the `language` prop).
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ['react', 'nextjs', 'tailwindcss', 'tanstack/react-query']
|
|
49
|
+
* ['tensorflow', 'keras', 'numpy', 'pandas']
|
|
50
|
+
* etc.
|
|
46
51
|
*/
|
|
47
|
-
|
|
52
|
+
technologies?: TechnologiesType;
|
|
48
53
|
/**
|
|
49
54
|
* The theme you want to use for the editor.
|
|
50
55
|
*/
|
|
@@ -74,7 +79,7 @@ type CompletionMode = 'fill-in-the-middle' | 'completion';
|
|
|
74
79
|
interface CompletionMetadata {
|
|
75
80
|
language: string | undefined;
|
|
76
81
|
filename: FilenameType | undefined;
|
|
77
|
-
|
|
82
|
+
technologies: TechnologiesType | undefined;
|
|
78
83
|
externalContext: ExternalContextType | undefined;
|
|
79
84
|
codeAfterCursor: string;
|
|
80
85
|
codeBeforeCursor: string;
|
|
@@ -110,6 +115,6 @@ declare class Copilot {
|
|
|
110
115
|
}>;
|
|
111
116
|
}
|
|
112
117
|
|
|
113
|
-
declare const Editor: ({ filename, endpoint,
|
|
118
|
+
declare const Editor: ({ filename, endpoint, technologies, theme, completionSpeed, externalContext, ...props }: EditorProps) => React.JSX.Element;
|
|
114
119
|
|
|
115
|
-
export { Copilot, Editor, type EditorProps, type EndpointType, type
|
|
120
|
+
export { Copilot, Editor, type EditorProps, type EndpointType, type TechnologiesType, type ThemeType as Theme };
|