mirror of
https://ghproxy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-07-22 12:27:13 +08:00
* add: preview images for bulk-alt-text * add: bulk alt text banner * fix: padding * add: bulk alt text banner component * add: icons * add: support for aborting the fetch request * add: bulk alt text manager * update: husky * fix: optimized images * update: memoize images * fix: imports * add: focustrap * add: mixpanel events * update: add logic to save alt text when editing manually * fix: abort controller reference and cleanup * fix: improve key stability in image grid rendering * refactor: add PropTypes validation and memoization to ImageCard component * feat: add error handling for ImageCard component using ErrorBoundary * fix: auto selection logic for card with bulk generation * add: loading and generation states * refactor: restructure bulk alt text components and enhance progress handling and decentralized logic * refactor: extract logic from progress bar to hook * add: quota exceeded alert * add: promotional banner for generate button * update: Generate button for selection mode * fix: button alignment * update: hide banner for 2 or less images * fix: box shadow * add: mixpanel events * update: rename variable * add: bulk upgrade url * update: link handling for upgrade * fix: box shadow * add: border radius to dialog * update: improved accessibility notifications * fix: height and padding for banner * update: add more context to image card * add: ARIA labels * add: focus on card * add: decode URI component * fix: accessibility issues * add: encoding for file names * fix: styled components * update: made progress bar sticky * update: add logic to disable button on bulk generation * fix: style * fix: closing the dialog while generating * add: error handling * fix: mark prop as not required * Fix: Prevent MUI from adding aria-hidden to dialog parent elements [APP-2261] * add: error handling for quota api error * fix: prop requirement * add: close handler to dialog * fix: ui * fix: icons * fix: width of dialog * fix: width of bulk dialog --------- Co-authored-by: Kniazevych <pavlok@elementor.red>
83 lines
3.3 KiB
JavaScript
83 lines
3.3 KiB
JavaScript
export const mixpanelEvents = {
|
|
pageView: 'page_view',
|
|
helpButtonClicked: 'help_button_clicked',
|
|
toggleClicked: 'toggle_clicked',
|
|
positionButtonClicked: 'position_button_clicked',
|
|
saveButtonClicked: 'save_button_clicked',
|
|
colorChanged: 'color_changed',
|
|
iconTypeSelected: 'icon_type_selected',
|
|
sizeTypeClicked: 'size_type_clicked',
|
|
menuButtonClicked: 'menu_button_clicked',
|
|
handleUnitChanged: 'handle_unit_changed',
|
|
handleValueChanged: 'handle_value_changed',
|
|
handleDirectionChanged: 'handle_direction_changed',
|
|
connectSuccess: 'connect_success',
|
|
fieldContentUpdated: 'field_content_updated',
|
|
statementPageCreated: 'statement_page_created',
|
|
statementPageSelected: 'statement_page_selected',
|
|
statementFlowSelected: 'statement_flow_selected',
|
|
upgradeButtonClicked: 'upgrade_button_clicked',
|
|
popupButtonClicked: 'popup_button_clicked',
|
|
filterSelected: 'filter_selected',
|
|
upgradeTooltipTriggered: 'upgrade_tooltip_triggered',
|
|
radiusChanged: 'radius_changed',
|
|
addCustomIconClicked: 'add_custom_icon_clicked',
|
|
updateCustomIconClicked: 'update_custom_icon_clicked',
|
|
customIconAdded: 'custom_icon_added',
|
|
customIconUpdated: 'custom_icon_updated',
|
|
assistantMenuClicked: 'assistant_menu_clicked',
|
|
assistantMenuOptionSelected: 'assistant_menu_option_selected',
|
|
remediationRemoved: 'remediation_removed',
|
|
remediationDisabled: 'remediation_disabled',
|
|
remediationEnabled: 'remediation_enabled',
|
|
|
|
// Accessibility assistant
|
|
scanTriggered: 'scan_triggered',
|
|
categoryClicked: 'category_clicked',
|
|
issueSelected: 'issue_selected',
|
|
fixWithAiButtonClicked: 'fix_with_ai_button_clicked',
|
|
markAsDecorativeSelected: 'mark_as_decorative_selected',
|
|
resolveButtonClicked: 'resolve_button_clicked',
|
|
navigationChanged: 'navigation_changed',
|
|
aiSuggestionAccepted: 'ai_suggestion_accepted',
|
|
markAsResolveClicked: 'mark_as_resolve_clicked',
|
|
issueSkipped: 'issue_skipped',
|
|
upgradeSuggestionViewed: 'upgrade_suggestion_viewed',
|
|
applyFixButtonClicked: 'apply_fix_button_clicked',
|
|
copySnippetClicked: 'copy_snippet_clicked',
|
|
editSnippetClicked: 'edit_snippet_clicked',
|
|
contrastColorChanged: 'contrast_color_changed',
|
|
contrastResetClicked: 'contrast_reset_clicked',
|
|
backgroundAdaptorTriggered: 'background_adaptor_triggered',
|
|
backgroundAdaptorChanged: 'background_adaptor_changed',
|
|
tabSelected: 'tab_selected',
|
|
markAsGlobalToggled: 'mark_as_global_toggled',
|
|
applyGlobalFixConfirmationClicked: 'apply_global_fix_confirmation_clicked',
|
|
|
|
// Accessibility assistant dashboard
|
|
assistantDashboardHistoryLogsButtonClicked: 'history_logs_button_clicked',
|
|
assistantDashboardScanCtaClicked: 'scan_cta_clicked',
|
|
assistantDashboardSearchTriggered: 'search_triggered',
|
|
scanLogActionsButtonClicked: 'scan_log_actions_button_clicked',
|
|
|
|
// Onboarding modal
|
|
scanHomePageButtonClicked: 'scan_triggered',
|
|
introductionBannerShowed: 'banner_showed',
|
|
introductionBannerClosed: 'banner_dismissed',
|
|
|
|
review: {
|
|
promptShown: 'review_prompt_shown',
|
|
dismissClicked: 'review_dismiss_clicked',
|
|
starSelected: 'review_star_selected',
|
|
feedbackSubmitted: 'review_feedback_submitted',
|
|
publicRedirectClicked: 'review_public_redirect_clicked',
|
|
},
|
|
|
|
// Heading Structure
|
|
headingClicked: 'heading_clicked',
|
|
headingSelected: 'heading_selected',
|
|
|
|
// Bulk Alt Text
|
|
stopButtonClicked: 'stop_button_clicked',
|
|
bulkAltTextClicked: 'bulk_alt_text_clicked',
|
|
};
|