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 CHANGED
@@ -7,7 +7,7 @@ type EditorBuiltInTheme = Theme;
7
7
 
8
8
  type EndpointType = string;
9
9
  type FilenameType = string;
10
- type FrameworkType = 'react' | 'angular' | 'vue.js' | 'express' | 'django' | 'flask' | 'spring boot' | 'asp.net core' | 'ruby on rails' | 'laravel' | 'node.js' | 'react native' | 'flutter' | 'tensorflow' | 'pytorch' | 'keras' | 'scikit-learn' | 'fastapi' | 'graphql' | 'redux' | 'electron' | 'next.js' | 'nuxt.js' | 'gatsby' | 'shopify' | 'woocommerce' | 'pandas' | 'numpy' | 'three.js' | 'jest' | 'cypress' | 'selenium' | 'playwright' | 'puppeteer' | 'material-ui' | 'vuetify' | 'ant design';
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 Rich Monaco Editor.
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 framework you want to use for the completion.
44
- * This can provide framework-specific completions.
45
- * If you don't specify a framework, the completion will be specific to the language (provided as the `language` prop).
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
- framework?: FrameworkType;
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
- framework: FrameworkType | undefined;
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, framework, theme, completionSpeed, externalContext, ...props }: EditorProps) => React.JSX.Element;
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 FrameworkType, type ThemeType as Theme };
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 FrameworkType = 'react' | 'angular' | 'vue.js' | 'express' | 'django' | 'flask' | 'spring boot' | 'asp.net core' | 'ruby on rails' | 'laravel' | 'node.js' | 'react native' | 'flutter' | 'tensorflow' | 'pytorch' | 'keras' | 'scikit-learn' | 'fastapi' | 'graphql' | 'redux' | 'electron' | 'next.js' | 'nuxt.js' | 'gatsby' | 'shopify' | 'woocommerce' | 'pandas' | 'numpy' | 'three.js' | 'jest' | 'cypress' | 'selenium' | 'playwright' | 'puppeteer' | 'material-ui' | 'vuetify' | 'ant design';
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 Rich Monaco Editor.
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 framework you want to use for the completion.
44
- * This can provide framework-specific completions.
45
- * If you don't specify a framework, the completion will be specific to the language (provided as the `language` prop).
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
- framework?: FrameworkType;
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
- framework: FrameworkType | undefined;
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, framework, theme, completionSpeed, externalContext, ...props }: EditorProps) => React.JSX.Element;
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 FrameworkType, type ThemeType as Theme };
120
+ export { Copilot, Editor, type EditorProps, type EndpointType, type TechnologiesType, type ThemeType as Theme };