@aws/mynah-ui 2.0.0-beta.1 → 2.0.0-beta.10.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.
Files changed (55) hide show
  1. package/DEVELOPMENT.md +24 -0
  2. package/README.md +1 -1
  3. package/dist/components/chat-item/chat-item-card.d.ts +3 -3
  4. package/dist/components/chat-item/chat-item-followup.d.ts +2 -1
  5. package/dist/components/chat-item/chat-item-relevance-vote.d.ts +17 -0
  6. package/dist/components/{suggestion-card/suggestion-card-context-wrapper.d.ts → chat-item/chat-item-tree-view-wrapper.d.ts} +6 -4
  7. package/dist/components/chat-item/chat-item-tree-view.d.ts +22 -0
  8. package/dist/components/chat-item/chat-prompt-input.d.ts +12 -10
  9. package/dist/components/chat-item/chat-wrapper.d.ts +10 -9
  10. package/dist/components/feedback-form/feedback-form-comment.d.ts +2 -2
  11. package/dist/components/feedback-form/feedback-form.d.ts +5 -2
  12. package/dist/components/icon/icon-importer.d.ts +9 -0
  13. package/dist/components/icon.d.ts +6 -3
  14. package/dist/components/navigation-tabs.d.ts +7 -6
  15. package/dist/components/notification/notification.d.ts +0 -4
  16. package/dist/components/overlay/overlay.d.ts +4 -37
  17. package/dist/components/suggestion-card/suggestion-card-body.d.ts +2 -1
  18. package/dist/components/suggestion-card/suggestion-card-header.d.ts +2 -2
  19. package/dist/components/suggestion-card/suggestion-card.d.ts +1 -1
  20. package/dist/components/syntax-highlighter.d.ts +21 -3
  21. package/dist/components/toggle.d.ts +7 -5
  22. package/dist/helper/config.d.ts +6 -5
  23. package/dist/helper/date-time.d.ts +2 -2
  24. package/dist/helper/dom.d.ts +2 -0
  25. package/dist/helper/events.d.ts +0 -15
  26. package/dist/helper/file-tree.d.ts +16 -0
  27. package/dist/helper/store.d.ts +2 -38
  28. package/dist/helper/tabs-store.d.ts +40 -0
  29. package/dist/main.d.ts +30 -70
  30. package/dist/main.js +1 -1
  31. package/dist/main.js.LICENSE.txt +5 -0
  32. package/dist/main.js.map +1 -1
  33. package/dist/static.d.ts +78 -233
  34. package/package.json +12 -8
  35. package/dist/components/context-item.d.ts +0 -16
  36. package/dist/components/feedback-form/feedback-form-stars.d.ts +0 -15
  37. package/dist/components/main-container.d.ts +0 -20
  38. package/dist/components/navigation-tabs-vertical.d.ts +0 -13
  39. package/dist/components/prioritization-menu.d.ts +0 -18
  40. package/dist/components/query-text-short-view.d.ts +0 -10
  41. package/dist/components/search-block/autocomplete-card.d.ts +0 -20
  42. package/dist/components/search-block/autocomplete-content.d.ts +0 -32
  43. package/dist/components/search-block/search-api-help.d.ts +0 -14
  44. package/dist/components/search-block/search-card-header.d.ts +0 -11
  45. package/dist/components/search-block/search-card.d.ts +0 -19
  46. package/dist/components/search-block/search-context.d.ts +0 -30
  47. package/dist/components/search-block/search-history-card.d.ts +0 -16
  48. package/dist/components/search-block/search-history-content.d.ts +0 -19
  49. package/dist/components/search-block/search-input.d.ts +0 -22
  50. package/dist/components/search-block/search-live-toggle.d.ts +0 -15
  51. package/dist/components/suggestion-card/suggestion-card-relevance-vote.d.ts +0 -14
  52. package/dist/helper/find-language.d.ts +0 -17
  53. package/dist/helper/payload-transformer.d.ts +0 -13
  54. package/dist/translations/en.d.ts +0 -13
  55. package/dist/translations/i18n.d.ts +0 -17
@@ -1,30 +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 { ExtendedHTMLElement } from '../../helper/dom';
6
- import { SearchPayloadMatchPolicy } from '../../static';
7
- export interface SearchContextProps {
8
- initContextList?: SearchPayloadMatchPolicy;
9
- onContextInsertionEnabled?: () => void;
10
- onContextInsertionDisabled?: () => void;
11
- }
12
- export declare class SearchContext {
13
- private readonly allowedCharCount;
14
- private readonly contextCheckExpression;
15
- private readonly isAcceptedKeyPress;
16
- private readonly acceptedNagivationKeys;
17
- private renderedContextMap;
18
- private readonly onContextInsertionEnabled;
19
- private readonly onContextInsertionDisabled;
20
- constructor(props?: SearchContextProps);
21
- private readonly enableContextInsertion;
22
- private readonly disableContextInsertion;
23
- private readonly createContextItemElements;
24
- private readonly contextInsertionKeydownHandler;
25
- private readonly inputAutoWidth;
26
- private contextInsertionInput;
27
- private readonly contextInsertionButton;
28
- private readonly contextWrapper;
29
- render: ExtendedHTMLElement;
30
- }
@@ -1,16 +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 { ExtendedHTMLElement } from '../../helper/dom';
6
- import { SearchHistoryItem } from '../../static';
7
- export interface HistoryCardContentProps {
8
- content: SearchHistoryItem;
9
- onHistoryItemClick: (historyItem: SearchHistoryItem) => void;
10
- }
11
- export declare class HistoryCardContent {
12
- render: ExtendedHTMLElement;
13
- openSearch: any;
14
- private getSearchHitoryRecordTitle;
15
- constructor(props: HistoryCardContentProps);
16
- }
@@ -1,19 +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 { ExtendedHTMLElement } from '../../helper/dom';
6
- import { SearchHistoryItem } from '../../static';
7
- export interface HistoryContentProps {
8
- referenceElement: Element | ExtendedHTMLElement;
9
- searchHistory: SearchHistoryItem[];
10
- }
11
- export declare class HistoryContent {
12
- private historyItemsOverlay;
13
- private readonly props;
14
- render: ExtendedHTMLElement;
15
- constructor(props: HistoryContentProps);
16
- createOverlay(): void;
17
- searchHistoryCards: (historyItems: SearchHistoryItem[]) => ExtendedHTMLElement[];
18
- private readonly handleHistoryChange;
19
- }
@@ -1,22 +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 { ExtendedHTMLElement } from '../../helper/dom';
6
- export declare class SearchInput {
7
- render: ExtendedHTMLElement;
8
- private searchTextInput;
9
- private readonly searchButton;
10
- private readonly searchHistoryButton;
11
- private readonly remainingIndicator;
12
- private autocompleteContent;
13
- private readonly allowedCharCount;
14
- private codeSelectionAvailable;
15
- constructor();
16
- addFocusOnInput: () => void;
17
- private readonly handleInputKeydown;
18
- private readonly triggerSearch;
19
- private readonly triggerSearchHistory;
20
- private readonly handleAutocompleteSuggestions;
21
- private readonly setWaitState;
22
- }
@@ -1,15 +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 { ExtendedHTMLElement } from '../../helper/dom';
6
- export interface SearchLiveToggleProps {
7
- label: string;
8
- }
9
- export declare class SearchLiveToggle {
10
- render: ExtendedHTMLElement;
11
- private readonly toggle;
12
- private queryChangeSubscriptionId;
13
- constructor(props: SearchLiveToggleProps);
14
- flashToggle: () => void;
15
- }
@@ -1,14 +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
- import { ExtendedHTMLElement } from '../../helper/dom';
7
- export interface SuggestionCardRelevanceVoteProps {
8
- suggestion: Suggestion;
9
- }
10
- export declare class SuggestionCardRelevanceVote {
11
- render: ExtendedHTMLElement;
12
- constructor(props: SuggestionCardRelevanceVoteProps);
13
- private readonly handleVoteChange;
14
- }
@@ -1,17 +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
- /**
7
- * Finds the coding language if there is a match witnin the supported languages from context or body or from the title
8
- * @param suggestion SuggestionType
9
- * @returns string | undefined
10
- */
11
- export declare const findLanguageFromSuggestion: (suggestion: Partial<Suggestion>) => string | undefined;
12
- /**
13
- * Finds the coding language if there is a match within the supported languages from the given file name
14
- * @param fileName string
15
- * @returns string | undefined
16
- */
17
- export declare const getLanguageFromFileName: (fileName: string) => string | undefined;
@@ -1,13 +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 { SearchPayload } from '../static';
6
- export interface PayloadTransformRule {
7
- targetRoute: string[];
8
- method: 'add' | 'remove' | 'set';
9
- value?: any;
10
- values?: any[];
11
- }
12
- export declare const transformPayloadData: (rules: PayloadTransformRule[], payloadData: SearchPayload) => SearchPayload;
13
- export declare const validateRulesOnPayloadData: (rules: PayloadTransformRule[], payloadData: SearchPayload) => boolean;
@@ -1,13 +0,0 @@
1
- /*!
2
- * Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- declare const en: {
6
- limitByUrl: string;
7
- relatedContent: string;
8
- chatPromptInputPlaceholder: string;
9
- chatPromptInputFollowUpPlaceholder: string;
10
- searchInputAPIHelpPlaceholder: string;
11
- searchInputMynahPlaceholder: string;
12
- };
13
- export default en;
@@ -1,17 +0,0 @@
1
- /*!
2
- * Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- export declare class I18N {
6
- private static instance;
7
- texts: {
8
- limitByUrl: string;
9
- relatedContent: string;
10
- chatPromptInputPlaceholder: string;
11
- chatPromptInputFollowUpPlaceholder: string;
12
- searchInputAPIHelpPlaceholder: string;
13
- searchInputMynahPlaceholder: string;
14
- };
15
- private constructor();
16
- static getInstance(localLanguage?: string): I18N;
17
- }