|
| 1 | +/*! |
| 2 | + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 3 | + * SPDX-License-Identifier: Apache-2.0 |
| 4 | + */ |
| 5 | + |
| 6 | +export default { |
| 7 | + selector: 'data-testid', |
| 8 | + prompt: { |
| 9 | + wrapper: 'prompt-input-wrapper', |
| 10 | + attachmentWrapper: 'prompt-input-attachment-wrapper', |
| 11 | + attachment: 'prompt-input-attachment', |
| 12 | + options: 'prompt-input-options', |
| 13 | + attachmentRemove: 'prompt-input-attachment-remove-button', |
| 14 | + send: 'prompt-input-send-button', |
| 15 | + input: 'prompt-input-textarea', |
| 16 | + inputWrapper: 'prompt-input-input-wrapper', |
| 17 | + remainingCharsIndicator: 'prompt-input-remaining-chars-indicator', |
| 18 | + contextTooltip: 'prompt-input-context-tooltip', |
| 19 | + selectedCommand: 'prompt-input-selected-command', |
| 20 | + quickPicksWrapper: 'prompt-input-quick-picks-wrapper', |
| 21 | + quickPicksGroup: 'prompt-input-quick-picks-group', |
| 22 | + quickPicksGroupTitle: 'prompt-input-quick-picks-group-title', |
| 23 | + quickPickItem: 'prompt-input-quick-pick-item', |
| 24 | + footerInfo: 'prompt-input-footer-info', |
| 25 | + footerInfoBody: 'prompt-input-footer-info-body', |
| 26 | + stickyCard: 'prompt-input-sticky-card', |
| 27 | + progress: 'prompt-input-progress-wrapper', |
| 28 | + label: 'prompt-input-label', |
| 29 | + topBar: 'prompt-input-top-bar', |
| 30 | + topBarButton: 'prompt-input-top-bar-button', |
| 31 | + topBarContextPill: 'prompt-input-top-bar-context-pill', |
| 32 | + topBarContextTooltip: 'prompt-input-top-bar-context-tooltip', |
| 33 | + tobBarOverflowPill: 'prompt-input-top-bar-overflow-pill', |
| 34 | + tobBarOverflowOverlay: 'prompt-input-top-bar-overflow-overlay', |
| 35 | + tobBarActionOverlay: 'prompt-input-top-bar-action-overlay', |
| 36 | + }, |
| 37 | + chat: { |
| 38 | + wrapper: 'chat-wrapper', |
| 39 | + chatItemsContainer: 'chat-chat-items-container', |
| 40 | + conversationContainer: 'chat-chat-items-conversation-container', |
| 41 | + middleBlockWrapper: 'chat-middle-block-wrapper', |
| 42 | + stopButton: 'chat-middle-block-stop-button', |
| 43 | + header: 'chat-wrapper-header-details', |
| 44 | + moreContentIndicator: 'chat-wrapper-more-content-available-indicator', |
| 45 | + moreContentIndicatorButton: 'chat-wrapper-more-content-available-indicator-button', |
| 46 | + }, |
| 47 | + chatItem: { |
| 48 | + type: { |
| 49 | + any: 'chat-item', |
| 50 | + answer: 'chat-item-answer', |
| 51 | + answerStream: 'chat-item-answer-stream', |
| 52 | + prompt: 'chat-item-prompt', |
| 53 | + aiPrompt: 'chat-item-ai-prompt', |
| 54 | + systemPrompt: 'chat-item-system-prompt', |
| 55 | + }, |
| 56 | + moreContentIndicator: 'chat-item-card-more-content-indicator', |
| 57 | + card: 'chat-item-card', |
| 58 | + cardBody: 'chat-item-card-body', |
| 59 | + buttons: { |
| 60 | + wrapper: 'chat-item-buttons-wrapper', |
| 61 | + button: 'chat-item-action-button', |
| 62 | + }, |
| 63 | + dismissButton: 'chat-item-dismiss-button', |
| 64 | + chatItemFollowup: { |
| 65 | + optionsWrapper: 'chat-item-followup-options-wrapper', |
| 66 | + optionButton: 'chat-item-followup-option', |
| 67 | + title: 'chat-item-followup-title', |
| 68 | + wrapper: 'chat-item-followup-wrapper', |
| 69 | + }, |
| 70 | + syntaxHighlighter: { |
| 71 | + wrapper: 'chat-item-syntax-highlighter-wrapper', |
| 72 | + codeBlock: 'chat-item-syntax-highlighter-code-block', |
| 73 | + lineNumbers: 'chat-item-syntax-highlighter-line-numbers', |
| 74 | + language: 'chat-item-syntax-highlighter-language', |
| 75 | + buttonsWrapper: 'chat-item-syntax-highlighter-buttons-wrapper', |
| 76 | + button: 'chat-item-syntax-highlighter-button', |
| 77 | + }, |
| 78 | + chatItemForm: { |
| 79 | + wrapper: 'chat-item-form-wrapper', |
| 80 | + title: 'chat-item-form-title', |
| 81 | + description: 'chat-item-form-description', |
| 82 | + itemSelectWrapper: 'chat-item-form-item-select-wrapper', |
| 83 | + itemSelect: 'chat-item-form-item-select', |
| 84 | + itemRadioWrapper: 'chat-item-form-item-radio-wrapper', |
| 85 | + itemRadio: 'chat-item-form-item-radio', |
| 86 | + itemInput: 'chat-item-form-item-text-input', |
| 87 | + itemList: 'chat-item-form-item-list', |
| 88 | + itemStarsWrapper: 'chat-item-form-item-stars-wrapper', |
| 89 | + itemStars: 'chat-item-form-item-stars', |
| 90 | + itemTextArea: 'chat-item-form-item-textarea', |
| 91 | + itemToggleWrapper: 'chat-item-form-item-toggle-wrapper', |
| 92 | + itemToggleOption: 'chat-item-form-item-toggle-option', |
| 93 | + itemSwitch: 'chat-item-form-item-switch', |
| 94 | + }, |
| 95 | + vote: { |
| 96 | + wrapper: 'chat-item-vote-wrapper', |
| 97 | + upvote: 'chat-item-upvote', |
| 98 | + upvoteLabel: 'chat-item-upvote-label', |
| 99 | + downvote: 'chat-item-downvote', |
| 100 | + downvoteLabel: 'chat-item-downvote-label', |
| 101 | + reportButton: 'chat-item-vote-report', |
| 102 | + thanks: 'chat-item-vote-thanks', |
| 103 | + }, |
| 104 | + relatedLinks: { |
| 105 | + showMore: 'chat-item-related-links-show-more', |
| 106 | + wrapper: 'chat-item-related-links-wrapper', |
| 107 | + title: 'chat-item-related-links-title', |
| 108 | + linkWrapper: 'chat-item-related-link-wrapper', |
| 109 | + link: 'chat-item-related-link', |
| 110 | + linkPreviewOverlay: 'chat-item-related-link-preview-overlay', |
| 111 | + linkPreviewOverlayCard: 'chat-item-related-link-preview-overlay-card', |
| 112 | + }, |
| 113 | + fileTree: { |
| 114 | + wrapper: 'chat-item-file-tree-wrapper', |
| 115 | + title: 'chat-item-file-tree-title', |
| 116 | + license: 'chat-item-file-tree-license', |
| 117 | + folder: 'chat-item-file-tree-folder', |
| 118 | + file: 'chat-item-file-tree-file', |
| 119 | + fileAction: 'chat-item-file-tree-file-action', |
| 120 | + fileTooltipWrapper: 'chat-item-file-tree-file-tooltip-wrapper', |
| 121 | + }, |
| 122 | + tabbedCard: { |
| 123 | + tabs: 'chat-item-tabbed-card-tabs', |
| 124 | + }, |
| 125 | + }, |
| 126 | + feedbackForm: { |
| 127 | + optionsSelectWrapper: 'feedback-form-options-select-wrapper', |
| 128 | + optionsSelect: 'feedback-form-options-select', |
| 129 | + comment: 'feedback-form-comment-text-area', |
| 130 | + cancelButton: 'feedback-form-cancel-button', |
| 131 | + submitButton: 'feedback-form-submit-button', |
| 132 | + }, |
| 133 | + sheet: { |
| 134 | + wrapper: 'sheet-wrapper', |
| 135 | + header: 'sheet-header', |
| 136 | + title: 'sheet-title', |
| 137 | + description: 'sheet-description', |
| 138 | + closeButton: 'sheet-close-button', |
| 139 | + }, |
| 140 | + detailedList: { |
| 141 | + action: 'detailed-list-action', |
| 142 | + actionMenu: 'detailed-list-action-menu', |
| 143 | + status: 'detailed-list-status', |
| 144 | + }, |
| 145 | + tabBar: { |
| 146 | + wrapper: 'tab-bar-wrapper', |
| 147 | + buttonsWrapper: 'tab-bar-buttons-wrapper', |
| 148 | + button: 'tab-bar-button', |
| 149 | + menuButton: 'tab-bar-menu-button', |
| 150 | + menuOption: 'tab-bar-menu-option', |
| 151 | + tabsWrapper: 'tab-bar-tabs', |
| 152 | + tabOptionWrapper: 'tab-bar-tabs-option-wrapper', |
| 153 | + tabOption: 'tab-bar-tabs-option', |
| 154 | + tabOptionLabel: 'tab-bar-tabs-option-label', |
| 155 | + tabOptionCloseButton: 'tab-bar-tabs-option-close-button', |
| 156 | + tabAddButton: 'tab-bar-tab-add-button', |
| 157 | + maxTabsReachedOverlay: 'tab-bar-max-tabs-reached-overlay', |
| 158 | + tabCloseConfirmationOverlay: 'tab-bar-tab-close-confirmation-overlay', |
| 159 | + tabCloseConfirmationBody: 'tab-bar-tab-close-confirmation-body', |
| 160 | + tabCloseConfirmationCancelButton: 'tab-bar-tab-close-confirmation-cancel-button', |
| 161 | + tabCloseConfirmationAcceptButton: 'tab-bar-tab-close-confirmation-accept-button', |
| 162 | + }, |
| 163 | + noTabs: { |
| 164 | + wrapper: 'no-tabs-wrapper', |
| 165 | + newTabButton: 'no-tabs-new-tab-button', |
| 166 | + }, |
| 167 | + notification: { |
| 168 | + wrapper: 'notification-wrapper', |
| 169 | + title: 'notification-title', |
| 170 | + content: 'notification-content', |
| 171 | + }, |
| 172 | +} |
0 commit comments