@aws/mynah-ui 2.0.0-beta.7 → 2.0.0-beta.8.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/dist/static.d.ts CHANGED
@@ -43,12 +43,12 @@ export declare enum MynahEventNames {
43
43
  SHOW_FEEDBACK_FORM = "showFeedbackForm",
44
44
  OPEN_DIFF = "openDiff"
45
45
  }
46
- export declare const MynahPortalNames: {
47
- WRAPPER: string;
48
- SIDE_NAV: string;
49
- OVERLAY: string;
50
- FEEDBACK_FORM: string;
51
- };
46
+ export declare enum MynahPortalNames {
47
+ WRAPPER = "wrapper",
48
+ SIDE_NAV = "sideNav",
49
+ OVERLAY = "overlay",
50
+ FEEDBACK_FORM = "feedbackForm"
51
+ }
52
52
  export interface SuggestionMetaData {
53
53
  stars?: number;
54
54
  forks?: number;
@@ -124,18 +124,15 @@ export declare enum KeyMap {
124
124
  ALT = "Alt",
125
125
  SLASH = "/"
126
126
  }
127
- export declare const SupportedCodingLanguages: string[];
128
- declare type ElementType<T extends readonly unknown[]> = T extends ReadonlyArray<infer ElementType> ? ElementType : never;
129
- export declare type SupportedCodingLanguagesType = ElementType<typeof SupportedCodingLanguages>;
130
- export declare const SupportedCodingLanguagesExtensionToTypeMap: {
131
- ts: string;
132
- js: string;
133
- py: string;
134
- java: string;
135
- json: string;
136
- };
137
- export declare type OnCopiedToClipboardFunction = (type?: 'selection' | 'block', text?: string) => void;
138
- export declare type OnInsertToCursorPositionFunction = (type?: 'selection' | 'block', text?: string) => void;
127
+ export interface ReferenceTrackerInformation {
128
+ range: {
129
+ start: number;
130
+ end: number;
131
+ };
132
+ tooltipMarkdown: string;
133
+ }
134
+ export declare type OnCopiedToClipboardFunction = (type?: 'selection' | 'block', text?: string, referenceTrackerInformation?: ReferenceTrackerInformation[]) => void;
135
+ export declare type OnInsertToCursorPositionFunction = (type?: 'selection' | 'block', text?: string, referenceTrackerInformation?: ReferenceTrackerInformation[]) => void;
139
136
  export declare enum SuggestionEventName {
140
137
  OPEN = "openSuggestion",
141
138
  COPY = "copy"
@@ -195,4 +192,3 @@ export interface ConfigModel {
195
192
  value: string;
196
193
  }>;
197
194
  }
198
- export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws/mynah-ui",
3
3
  "displayName": "AWS Mynah UI",
4
- "version": "2.0.0-beta.7",
4
+ "version": "2.0.0-beta.8.0",
5
5
  "description": "AWS Tookit VSCode and Intellij IDE Extension Mynah UI",
6
6
  "publisher": "Amazon Web Services",
7
7
  "license": "Apache License 2.0",
@@ -1,7 +0,0 @@
1
- /*!
2
- * Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import { Suggestion } from '../static';
6
- export declare const findLanguageFromSuggestion: (suggestion: Partial<Suggestion>) => string | undefined;
7
- export declare const getLanguageFromFileName: (fileName: string) => string | undefined;