monacopilot 0.8.20 → 0.8.22

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
@@ -1,5 +1,5 @@
1
- import { Theme as Theme$1, EditorProps as EditorProps$1 } from '@monaco-editor/react';
2
- export * from '@monaco-editor/react';
1
+ import { Theme as Theme$1, EditorProps } from '@monaco-editor/react';
2
+ export { BeforeMount, DiffBeforeMount, DiffEditor, DiffEditorProps, DiffOnMount, Monaco, MonacoDiffEditor, OnChange, OnMount, OnValidate, loader, useMonaco } from '@monaco-editor/react';
3
3
  import React from 'react';
4
4
 
5
5
  type EditorBuiltInTheme = Theme$1;
@@ -28,7 +28,7 @@ type ExternalContext = {
28
28
  */
29
29
  content: string;
30
30
  }[];
31
- interface EditorProps extends EditorProps$1 {
31
+ interface CopilotEditorProps extends EditorProps {
32
32
  /**
33
33
  * The name of the file you are editing. This is used to provide more relevant completions based on the file's purpose.
34
34
  * For example, if you are editing a file named `utils.js`, the completions will be more relevant to utility functions.
@@ -119,6 +119,6 @@ declare class Copilot {
119
119
  complete({ completionMetadata, }: CompletionRequest): Promise<CompletionResponse>;
120
120
  }
121
121
 
122
- declare const Editor: ({ filename, endpoint, technologies, theme, completionSpeed, externalContext, ...props }: EditorProps) => React.JSX.Element;
122
+ declare const CopilotEditor: ({ filename, endpoint, technologies, theme, completionSpeed, externalContext, ...props }: CopilotEditorProps) => React.JSX.Element;
123
123
 
124
- export { type CompletionRequest, type CompletionResponse, Copilot, Editor, type EditorProps, type Endpoint, type Technologies, type Theme };
124
+ export { type CompletionRequest, type CompletionResponse, Copilot, type CopilotEditorProps, type Endpoint, type Technologies, type Theme, CopilotEditor as default };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { Theme as Theme$1, EditorProps as EditorProps$1 } from '@monaco-editor/react';
2
- export * from '@monaco-editor/react';
1
+ import { Theme as Theme$1, EditorProps } from '@monaco-editor/react';
2
+ export { BeforeMount, DiffBeforeMount, DiffEditor, DiffEditorProps, DiffOnMount, Monaco, MonacoDiffEditor, OnChange, OnMount, OnValidate, loader, useMonaco } from '@monaco-editor/react';
3
3
  import React from 'react';
4
4
 
5
5
  type EditorBuiltInTheme = Theme$1;
@@ -28,7 +28,7 @@ type ExternalContext = {
28
28
  */
29
29
  content: string;
30
30
  }[];
31
- interface EditorProps extends EditorProps$1 {
31
+ interface CopilotEditorProps extends EditorProps {
32
32
  /**
33
33
  * The name of the file you are editing. This is used to provide more relevant completions based on the file's purpose.
34
34
  * For example, if you are editing a file named `utils.js`, the completions will be more relevant to utility functions.
@@ -119,6 +119,6 @@ declare class Copilot {
119
119
  complete({ completionMetadata, }: CompletionRequest): Promise<CompletionResponse>;
120
120
  }
121
121
 
122
- declare const Editor: ({ filename, endpoint, technologies, theme, completionSpeed, externalContext, ...props }: EditorProps) => React.JSX.Element;
122
+ declare const CopilotEditor: ({ filename, endpoint, technologies, theme, completionSpeed, externalContext, ...props }: CopilotEditorProps) => React.JSX.Element;
123
123
 
124
- export { type CompletionRequest, type CompletionResponse, Copilot, Editor, type EditorProps, type Endpoint, type Technologies, type Theme };
124
+ export { type CompletionRequest, type CompletionResponse, Copilot, type CopilotEditorProps, type Endpoint, type Technologies, type Theme, CopilotEditor as default };