impact-ui 4.0.13 → 4.0.14-alpha.1
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/README.md +3 -1
- package/dist/_virtual/index13.js +2 -2
- package/dist/_virtual/index14.js +2 -2
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index2.js +2 -2
- package/dist/_virtual/index3.js +2 -2
- package/dist/components/AccordionModern/SortableAccordionComp.d.ts +2 -2
- package/dist/components/AccordionModern/SortableAccordionComp.d.ts.map +1 -1
- package/dist/components/AccordionModern/index.d.ts +1 -1
- package/dist/components/AccordionModern/index.d.ts.map +1 -1
- package/dist/components/AccordionModern/index.js +1 -1
- package/dist/components/Badge/filled/filledIconLabelBadges/index.d.ts +1 -1
- package/dist/components/Badge/filled/filledIconLabelBadges/index.d.ts.map +1 -1
- package/dist/components/Badge/filled/filledOnlyIconBadges/index.d.ts +1 -1
- package/dist/components/Badge/filled/filledOnlyIconBadges/index.d.ts.map +1 -1
- package/dist/components/Badge/filled/filledOnlyLabelBadges/index.d.ts +1 -1
- package/dist/components/Badge/filled/filledOnlyLabelBadges/index.d.ts.map +1 -1
- package/dist/components/Badge/filled/index.d.ts +1 -1
- package/dist/components/Badge/filled/index.d.ts.map +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Badge/stroke/index.d.ts +1 -1
- package/dist/components/Badge/stroke/index.d.ts.map +1 -1
- package/dist/components/Badge/stroke/strokeIconLabelBadges/index.d.ts +1 -1
- package/dist/components/Badge/stroke/strokeIconLabelBadges/index.d.ts.map +1 -1
- package/dist/components/Badge/stroke/strokeOnlyIconBadges/index.d.ts +1 -1
- package/dist/components/Badge/stroke/strokeOnlyIconBadges/index.d.ts.map +1 -1
- package/dist/components/Badge/stroke/strokeOnlyLabelBadges/index.d.ts +1 -1
- package/dist/components/Badge/stroke/strokeOnlyLabelBadges/index.d.ts.map +1 -1
- package/dist/components/Badge/subtle/index.d.ts +1 -1
- package/dist/components/Badge/subtle/index.d.ts.map +1 -1
- package/dist/components/Badge/subtle/subtleIOnlyIconBadges/index.d.ts +1 -1
- package/dist/components/Badge/subtle/subtleIOnlyIconBadges/index.d.ts.map +1 -1
- package/dist/components/Badge/subtle/subtleIconLabelBadges/index.d.ts +1 -1
- package/dist/components/Badge/subtle/subtleIconLabelBadges/index.d.ts.map +1 -1
- package/dist/components/Badge/subtle/subtleOnlyLabelBadges/index.d.ts +1 -1
- package/dist/components/Badge/subtle/subtleOnlyLabelBadges/index.d.ts.map +1 -1
- package/dist/components/BottomSheet/index.d.ts +1 -1
- package/dist/components/BottomSheet/index.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/HomeIcon.d.ts +1 -1
- package/dist/components/Breadcrumbs/HomeIcon.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/index.d.ts +1 -1
- package/dist/components/Breadcrumbs/index.d.ts.map +1 -1
- package/dist/components/ButtonGroup/index.d.ts +1 -1
- package/dist/components/ButtonGroup/index.d.ts.map +1 -1
- package/dist/components/Chart/ChartSkeleton.d.ts +1 -1
- package/dist/components/Chart/ChartSkeleton.d.ts.map +1 -1
- package/dist/components/Chart/index.d.ts +2 -1
- package/dist/components/Chart/index.d.ts.map +1 -1
- package/dist/components/Chart/index.js +1 -1
- package/dist/components/Chatbot/bookMarkPanel.d.ts +1 -1
- package/dist/components/Chatbot/bookMarkPanel.d.ts.map +1 -1
- package/dist/components/Chatbot/chatBotFooter.d.ts +1 -1
- package/dist/components/Chatbot/chatBotFooter.d.ts.map +1 -1
- package/dist/components/Chatbot/chatBotLandingScreen.d.ts +1 -1
- package/dist/components/Chatbot/chatBotLandingScreen.d.ts.map +1 -1
- package/dist/components/Chatbot/chatInput.d.ts +1 -1
- package/dist/components/Chatbot/chatInput.d.ts.map +1 -1
- package/dist/components/Chatbot/chatbotModuleMenu.d.ts +1 -1
- package/dist/components/Chatbot/chatbotModuleMenu.d.ts.map +1 -1
- package/dist/components/Chatbot/conversationScreen.d.ts +1 -1
- package/dist/components/Chatbot/conversationScreen.d.ts.map +1 -1
- package/dist/components/Chatbot/customScreen.d.ts +1 -1
- package/dist/components/Chatbot/customScreen.d.ts.map +1 -1
- package/dist/components/Chatbot/historyPanel.d.ts +1 -1
- package/dist/components/Chatbot/historyPanel.d.ts.map +1 -1
- package/dist/components/Chatbot/index.d.ts +1 -1
- package/dist/components/Chatbot/index.d.ts.map +1 -1
- package/dist/components/Chatbot/index.js +1 -1
- package/dist/components/Chatbot/newChatComponent.d.ts +1 -1
- package/dist/components/Chatbot/newChatComponent.d.ts.map +1 -1
- package/dist/components/Checkbox/WithDropDown.d.ts +1 -1
- package/dist/components/Checkbox/WithDropDown.d.ts.map +1 -1
- package/dist/components/Checkbox/WithoutFormLabel.d.ts +1 -1
- package/dist/components/Checkbox/WithoutFormLabel.d.ts.map +1 -1
- package/dist/components/Chips/index.js +1 -1
- package/dist/components/CommentsPanel/CommentsContext.d.ts +1 -1
- package/dist/components/CommentsPanel/CommentsContext.d.ts.map +1 -1
- package/dist/components/CommentsPanel/CommentsPanel.impl.d.ts +1 -1
- package/dist/components/CommentsPanel/CommentsPanel.impl.d.ts.map +1 -1
- package/dist/components/CreateItemFlow/CreateItemFlow.types.d.ts +10 -4
- package/dist/components/CreateItemFlow/CreateItemFlow.types.d.ts.map +1 -1
- package/dist/components/CreateItemFlow/index.d.ts +3 -15
- package/dist/components/CreateItemFlow/index.d.ts.map +1 -1
- package/dist/components/CreateItemFlow/index.js +123 -73
- package/dist/components/DatePicker/datePickerDropdown.d.ts +1 -1
- package/dist/components/DatePicker/datePickerDropdown.d.ts.map +1 -1
- package/dist/components/DatePicker/datePickerFooter.d.ts +1 -1
- package/dist/components/DatePicker/datePickerFooter.d.ts.map +1 -1
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/DatePicker/showMonthYearSelect.d.ts +1 -1
- package/dist/components/DatePicker/showMonthYearSelect.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerCustom.d.ts +1 -1
- package/dist/components/DateRangePicker/dateRangePickerCustom.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerDropdown.d.ts +3 -1
- package/dist/components/DateRangePicker/dateRangePickerDropdown.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerFooter.d.ts +1 -1
- package/dist/components/DateRangePicker/dateRangePickerFooter.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerInput.d.ts +1 -1
- package/dist/components/DateRangePicker/dateRangePickerInput.d.ts.map +1 -1
- package/dist/components/DateRangePicker/index.js +1 -1
- package/dist/components/DateRangePicker/showMonthYearSelect.d.ts +1 -1
- package/dist/components/DateRangePicker/showMonthYearSelect.d.ts.map +1 -1
- package/dist/components/DynamicLayout/index.d.ts +9 -11
- package/dist/components/DynamicLayout/index.d.ts.map +1 -1
- package/dist/components/DynamicLayout/index.js +37 -38
- package/dist/components/EmptyState/EmptyStateImage.d.ts +1 -1
- package/dist/components/EmptyState/EmptyStateImage.d.ts.map +1 -1
- package/dist/components/EmptyState/index.d.ts +1 -1
- package/dist/components/EmptyState/index.d.ts.map +1 -1
- package/dist/components/FileUpload/TemplatePreview.d.ts +1 -1
- package/dist/components/FileUpload/TemplatePreview.d.ts.map +1 -1
- package/dist/components/FileUpload/index.d.ts +1 -1
- package/dist/components/FileUpload/index.d.ts.map +1 -1
- package/dist/components/FileUpload/index.js +1 -1
- package/dist/components/FilterPanel/FilterPanelHeader.d.ts +1 -1
- package/dist/components/FilterPanel/FilterPanelHeader.d.ts.map +1 -1
- package/dist/components/FilterPanel/PanelFooter.d.ts +1 -1
- package/dist/components/FilterPanel/PanelFooter.d.ts.map +1 -1
- package/dist/components/FilterPanel/PanelSidebar.d.ts +1 -1
- package/dist/components/FilterPanel/PanelSidebar.d.ts.map +1 -1
- package/dist/components/FilterPanel/index.d.ts +1 -1
- package/dist/components/FilterPanel/index.d.ts.map +1 -1
- package/dist/components/FilterPanel/index.js +1 -1
- package/dist/components/FiltersStrip/AppliedFilters.d.ts +1 -1
- package/dist/components/FiltersStrip/AppliedFilters.d.ts.map +1 -1
- package/dist/components/FiltersStrip/FilterDropDown.d.ts +1 -1
- package/dist/components/FiltersStrip/FilterDropDown.d.ts.map +1 -1
- package/dist/components/FiltersStrip/FilterSlider.d.ts +1 -1
- package/dist/components/FiltersStrip/FilterSlider.d.ts.map +1 -1
- package/dist/components/FiltersStrip/FilterSliderPortal.d.ts +1 -1
- package/dist/components/FiltersStrip/FilterSliderPortal.d.ts.map +1 -1
- package/dist/components/FiltersStrip/index.d.ts +1 -1
- package/dist/components/FiltersStrip/index.d.ts.map +1 -1
- package/dist/components/Header/index.d.ts +1 -1
- package/dist/components/Header/index.d.ts.map +1 -1
- package/dist/components/HomePage/index.d.ts +1 -1
- package/dist/components/HomePage/index.d.ts.map +1 -1
- package/dist/components/HomePage/index.js +1 -1
- package/dist/components/Input/HelperText.d.ts +1 -1
- package/dist/components/Input/HelperText.d.ts.map +1 -1
- package/dist/components/Input/InputWithIcon.d.ts +1 -1
- package/dist/components/Input/InputWithIcon.d.ts.map +1 -1
- package/dist/components/Input/VanillaInput.d.ts +1 -1
- package/dist/components/Input/VanillaInput.d.ts.map +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/KeyboardShortCuts/Keycombo.d.ts +2 -2
- package/dist/components/KeyboardShortCuts/Keycombo.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.d.ts +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.js +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutModal.d.ts +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutModal.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutModal.js +1 -1
- package/dist/components/KeyboardShortCuts/StarOutlineIcon.d.ts +1 -1
- package/dist/components/KeyboardShortCuts/StarOutlineIcon.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/allSetBox.d.ts +1 -1
- package/dist/components/KeyboardShortCuts/allSetBox.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/allSetBox.js +1 -1
- package/dist/components/KeyboardShortCuts/index.d.ts +1 -1
- package/dist/components/KeyboardShortCuts/index.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/index.js +1 -1
- package/dist/components/KeyboardShortCuts/screen2.d.ts +1 -1
- package/dist/components/KeyboardShortCuts/screen2.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/screen3.d.ts +1 -1
- package/dist/components/KeyboardShortCuts/screen3.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/tutorial.d.ts +2 -1
- package/dist/components/KeyboardShortCuts/tutorial.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/tutorial.js +1 -1
- package/dist/components/Loader/index.d.ts +1 -1
- package/dist/components/Loader/index.d.ts.map +1 -1
- package/dist/components/Menu/MenuHeaderInfo.d.ts +2 -2
- package/dist/components/Menu/MenuHeaderInfo.d.ts.map +1 -1
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/MonthPicker/index.d.ts +1 -1
- package/dist/components/MonthPicker/index.d.ts.map +1 -1
- package/dist/components/MonthRangePicker/index.d.ts +1 -1
- package/dist/components/MonthRangePicker/index.d.ts.map +1 -1
- package/dist/components/MonthRangePicker/index.js +1 -1
- package/dist/components/NewCreateItemFlow/NewCreateItemFlow.types.d.ts +21 -0
- package/dist/components/NewCreateItemFlow/NewCreateItemFlow.types.d.ts.map +1 -0
- package/dist/components/NewCreateItemFlow/index.d.ts +5 -0
- package/dist/components/NewCreateItemFlow/index.d.ts.map +1 -0
- package/dist/components/NewCreateItemFlow/index.js +93 -0
- package/dist/components/NewDynamicLayout/NewDynamicLayout.types.d.ts +26 -0
- package/dist/components/NewDynamicLayout/NewDynamicLayout.types.d.ts.map +1 -0
- package/dist/components/NewDynamicLayout/index.d.ts +15 -0
- package/dist/components/NewDynamicLayout/index.d.ts.map +1 -0
- package/dist/components/NewDynamicLayout/index.js +45 -0
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationChipsList.d.ts +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationChipsList.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.d.ts +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.js +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.d.ts +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationPanelContent.d.ts +1 -1
- package/dist/components/Notification/NotificationBody/NotificationPanelContent.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationTaskList.d.ts +1 -1
- package/dist/components/Notification/NotificationBody/NotificationTaskList.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/index.d.ts +1 -1
- package/dist/components/Notification/NotificationBody/index.d.ts.map +1 -1
- package/dist/components/Notification/index.d.ts +1 -1
- package/dist/components/Notification/index.d.ts.map +1 -1
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/Panel/index.d.ts +1 -1
- package/dist/components/Panel/index.d.ts.map +1 -1
- package/dist/components/Popover/index.d.ts +1 -1
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/ProgressBar/index.d.ts +1 -1
- package/dist/components/ProgressBar/index.d.ts.map +1 -1
- package/dist/components/Prompt/index.d.ts +1 -1
- package/dist/components/Prompt/index.d.ts.map +1 -1
- package/dist/components/RadioButtonGroup/index.d.ts +1 -1
- package/dist/components/RadioButtonGroup/index.d.ts.map +1 -1
- package/dist/components/Select/customGroupHeading.d.ts +1 -1
- package/dist/components/Select/customGroupHeading.d.ts.map +1 -1
- package/dist/components/Select/dropdown.d.ts +1 -1
- package/dist/components/Select/dropdown.d.ts.map +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/Select/menuList.d.ts +2 -1
- package/dist/components/Select/menuList.d.ts.map +1 -1
- package/dist/components/Select/optionList.d.ts +2 -1
- package/dist/components/Select/optionList.d.ts.map +1 -1
- package/dist/components/Select/selected-option-tags.d.ts +1 -1
- package/dist/components/Select/selected-option-tags.d.ts.map +1 -1
- package/dist/components/Shortcuts/ShortcutHint.d.ts +1 -1
- package/dist/components/Shortcuts/ShortcutHint.d.ts.map +1 -1
- package/dist/components/Shortcuts/ShortcutScope.d.ts +1 -1
- package/dist/components/Shortcuts/ShortcutScope.d.ts.map +1 -1
- package/dist/components/Shortcuts/ShortcutsProvider.d.ts +1 -1
- package/dist/components/Shortcuts/ShortcutsProvider.d.ts.map +1 -1
- package/dist/components/Sidebar/ChildMenu.d.ts +1 -1
- package/dist/components/Sidebar/ChildMenu.d.ts.map +1 -1
- package/dist/components/Sidebar/ParentMenu.d.ts +1 -1
- package/dist/components/Sidebar/ParentMenu.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarActions.d.ts +1 -1
- package/dist/components/Sidebar/SidebarActions.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarMenus.d.ts +1 -1
- package/dist/components/Sidebar/SidebarMenus.d.ts.map +1 -1
- package/dist/components/Sidebar/index.d.ts +1 -1
- package/dist/components/Sidebar/index.d.ts.map +1 -1
- package/dist/components/Skeleton/index.d.ts +1 -1
- package/dist/components/Skeleton/index.d.ts.map +1 -1
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/Slider/index.d.ts.map +1 -1
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/Stepper/index.d.ts +1 -1
- package/dist/components/Stepper/index.d.ts.map +1 -1
- package/dist/components/Stepper/index.js +1 -1
- package/dist/components/Table/AdvanceSearchModalItem.d.ts +1 -1
- package/dist/components/Table/AdvanceSearchModalItem.d.ts.map +1 -1
- package/dist/components/Table/AdvanceSortModal.d.ts +1 -1
- package/dist/components/Table/AdvanceSortModal.d.ts.map +1 -1
- package/dist/components/Table/AgGridHeader.d.ts +3 -1
- package/dist/components/Table/AgGridHeader.d.ts.map +1 -1
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts +3 -1
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts.map +1 -1
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts +1 -1
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts.map +1 -1
- package/dist/components/Table/NoComments.d.ts +1 -1
- package/dist/components/Table/NoComments.d.ts.map +1 -1
- package/dist/components/Table/actionBar.d.ts +1 -1
- package/dist/components/Table/actionBar.d.ts.map +1 -1
- package/dist/components/Table/advanceSearchModal.d.ts +1 -1
- package/dist/components/Table/advanceSearchModal.d.ts.map +1 -1
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Table/tableHeader.d.ts +1 -1
- package/dist/components/Table/tableHeader.d.ts.map +1 -1
- package/dist/components/Table/tableIcons.d.ts +4 -2
- package/dist/components/Table/tableIcons.d.ts.map +1 -1
- package/dist/components/Table/tableMoreOptions.d.ts +1 -1
- package/dist/components/Table/tableMoreOptions.d.ts.map +1 -1
- package/dist/components/Table/tablePagination.d.ts +1 -1
- package/dist/components/Table/tablePagination.d.ts.map +1 -1
- package/dist/components/Table/tableSettings.d.ts +1 -1
- package/dist/components/Table/tableSettings.d.ts.map +1 -1
- package/dist/components/Table/withCommentIcon.d.ts +1 -1
- package/dist/components/Table/withCommentIcon.d.ts.map +1 -1
- package/dist/components/TableChat/EmptyContainer.d.ts +2 -1
- package/dist/components/TableChat/EmptyContainer.d.ts.map +1 -1
- package/dist/components/TableChat/TableChatSidePanel.d.ts +1 -1
- package/dist/components/TableChat/TableChatSidePanel.d.ts.map +1 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatFooterSkeleton.d.ts +2 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatFooterSkeleton.d.ts.map +1 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatHeaderSkeleton.d.ts +2 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatHeaderSkeleton.d.ts.map +1 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatMessageListSkeleton.d.ts +2 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatMessageListSkeleton.d.ts.map +1 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatSkeleton.d.ts +2 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatSkeleton.d.ts.map +1 -1
- package/dist/components/TableChat/components/SkeletonList.d.ts +1 -1
- package/dist/components/TableChat/components/SkeletonList.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChannelCheckbox/ChannelCheckbox.d.ts +3 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChannelCheckbox/ChannelCheckbox.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelList.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelList.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderButton/ChatHeaderButton.d.ts +2 -2
- package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderButton/ChatHeaderButton.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatIconButton/ChatIconButton.d.ts +3 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatIconButton/ChatIconButton.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.js +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/UnreadBadge/UnreadBadge.d.ts +3 -1
- package/dist/components/TableChat/components/TableChatLeftSection/UnreadBadge/UnreadBadge.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.d.ts +2 -2
- package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDeleteMessageType/ChatDeletedMessageType.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDeleteMessageType/ChatDeletedMessageType.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType/ChatEditedMessageType.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType/ChatEditedMessageType.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.d.ts +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessageActions/ChatMessageActions.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessageActions/ChatMessageActions.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessageAvatar/ChatMessageAvatar.d.ts +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessageAvatar/ChatMessageAvatar.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/EmojiPicker/EmojiPicker.d.ts +3 -1
- package/dist/components/TableChat/components/TableChatRightSection/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/FileUploader/FileUploader.d.ts +3 -1
- package/dist/components/TableChat/components/TableChatRightSection/FileUploader/FileUploader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ImageUploader/ImageUploader.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ImageUploader/ImageUploader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ReplyBadge/ReplyBadge.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ReplyBadge/ReplyBadge.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.d.ts +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.d.ts.map +1 -1
- package/dist/components/TableChat/components/TextEditor/Mention.js +1 -1
- package/dist/components/TableOld/AgGridHeader.d.ts +3 -1
- package/dist/components/TableOld/AgGridHeader.d.ts.map +1 -1
- package/dist/components/TableOld/actionBar.d.ts +1 -1
- package/dist/components/TableOld/actionBar.d.ts.map +1 -1
- package/dist/components/TableOld/index.js +1 -1
- package/dist/components/TableOld/tableHeader.d.ts +1 -1
- package/dist/components/TableOld/tableHeader.d.ts.map +1 -1
- package/dist/components/TableOld/tableIcons.d.ts +4 -2
- package/dist/components/TableOld/tableIcons.d.ts.map +1 -1
- package/dist/components/TableOld/tablePagination.d.ts +1 -1
- package/dist/components/TableOld/tablePagination.d.ts.map +1 -1
- package/dist/components/TableOld/tableSettings.d.ts +1 -1
- package/dist/components/TableOld/tableSettings.d.ts.map +1 -1
- package/dist/components/Tabs/TabPanel.d.ts +1 -1
- package/dist/components/Tabs/TabPanel.d.ts.map +1 -1
- package/dist/components/Tabs/index.d.ts +1 -1
- package/dist/components/Tabs/index.d.ts.map +1 -1
- package/dist/components/Tag/filled.d.ts +1 -1
- package/dist/components/Tag/filled.d.ts.map +1 -1
- package/dist/components/Tag/solid.d.ts +1 -1
- package/dist/components/Tag/solid.d.ts.map +1 -1
- package/dist/components/Tag/stroke.d.ts +1 -1
- package/dist/components/Tag/stroke.d.ts.map +1 -1
- package/dist/components/TagGroup/index.d.ts +1 -1
- package/dist/components/TagGroup/index.d.ts.map +1 -1
- package/dist/components/TextArea/index.d.ts +1 -1
- package/dist/components/TextArea/index.d.ts.map +1 -1
- package/dist/components/TextArea/index.js +1 -1
- package/dist/components/Toast/index.d.ts +1 -1
- package/dist/components/Toast/index.d.ts.map +1 -1
- package/dist/components/common/HelperText/index.d.ts +1 -1
- package/dist/components/common/HelperText/index.d.ts.map +1 -1
- package/dist/components/common/MentionEditor/index.js +1 -1
- package/dist/components/index.d.ts +5 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +4 -0
- package/dist/i18n/I18nContext.d.ts +1 -1
- package/dist/i18n/I18nContext.d.ts.map +1 -1
- package/dist/mcp-component-registry.json +88 -58
- package/dist/node_modules/@impactsmartsuite/impact-icons/dist/index.js +252 -158
- package/dist/node_modules/@mui/icons-material/utils/createSvgIcon.js +3 -3
- package/dist/node_modules/@mui/system/esm/createStyled.js +1 -1
- package/dist/node_modules/call-bind/index.js +3 -3
- package/dist/node_modules/es-abstract/2025/ToString.js +21 -0
- package/dist/node_modules/es-abstract-get/GetMethod.js +33 -0
- package/dist/node_modules/es-abstract-get/GetV.js +25 -0
- package/dist/node_modules/es-abstract-get/isPropertyKey.js +13 -0
- package/dist/node_modules/es-to-primitive/es2015.js +28 -28
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/lodash/lodash.js +14 -16
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/dist/node_modules/react-dates/lib/theme/DefaultTheme.js +4 -4
- package/dist/node_modules/react-dates/lib/utils/registerCSSInterfaceWithDefaultTheme.js +3 -3
- package/dist/node_modules/react-dates/lib/utils/registerInterfaceWithDefaultTheme.js +3 -3
- package/dist/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/dist/node_modules/react-is/cjs/react-is.production.js +1 -1
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-with-styles/lib/ThemedStyleSheet.js +6 -6
- package/dist/node_modules/react-with-styles-interface-css/dist/index.js +5 -5
- package/dist/node_modules/react-with-styles-interface-css/dist/utils/getClassName.js +3 -3
- package/dist/node_modules/react-with-styles-interface-css/dist/utils/separateStyles.js +4 -4
- package/dist/node_modules/string.prototype.trim/implementation.js +12 -4
- package/dist/stories/LocaleDictionaryCollapse.d.ts +1 -1
- package/dist/stories/LocaleDictionaryCollapse.d.ts.map +1 -1
- package/dist/stories/i18nDemo.d.ts +1 -1
- package/dist/stories/i18nDemo.d.ts.map +1 -1
- package/dist/utils/shortcuts/ShortcutManager.d.ts.map +1 -1
- package/dist/utils/shortcuts/ShortcutManager.js +5 -6
- package/dist/utils/shortcuts/format.d.ts +1 -1
- package/dist/utils/shortcuts/format.d.ts.map +1 -1
- package/dist/utils/shortcuts/format.js +19 -17
- package/dist/utils/shortcuts/index.d.ts +1 -1
- package/dist/utils/shortcuts/index.d.ts.map +1 -1
- package/dist/utils/shortcuts/match.d.ts +4 -1
- package/dist/utils/shortcuts/match.d.ts.map +1 -1
- package/dist/utils/shortcuts/match.js +16 -33
- package/dist/utils/shortcuts/parse.d.ts +5 -5
- package/dist/utils/shortcuts/parse.d.ts.map +1 -1
- package/dist/utils/shortcuts/parse.js +36 -50
- package/dist/utils/shortcuts/types.d.ts +16 -15
- package/dist/utils/shortcuts/types.d.ts.map +1 -1
- package/package.json +1 -1
- /package/dist/_virtual/{react-is.development2.js → react-is2.development.js} +0 -0
- /package/dist/_virtual/{react-is.production.min2.js → react-is2.production.min.js} +0 -0
- /package/dist/_virtual/{react-is.development3.js → react-is3.development.js} +0 -0
|
@@ -19,9 +19,7 @@ const _ShortcutManager = class _ShortcutManager {
|
|
|
19
19
|
const isInInput = INPUT_ELEMENTS.has(target.tagName) || target.isContentEditable;
|
|
20
20
|
const sorted = this.getSorted();
|
|
21
21
|
const active = sorted.filter((e) => this.isScopeActive(e.scope ?? "global"));
|
|
22
|
-
const sequenceEntries = active.filter(
|
|
23
|
-
(e) => e.parsed.type === "sequence" && (e.allowInInput === true || !isInInput)
|
|
24
|
-
).map((e) => ({ ...e, steps: e.parsed.steps }));
|
|
22
|
+
const sequenceEntries = active.filter((e) => e.parsed.isSequence && (e.allowInInput === true || !isInInput)).map((e) => ({ ...e, steps: e.parsed.combos }));
|
|
25
23
|
if (sequenceEntries.length > 0 || this._sequenceTracker.hasActiveSequences) {
|
|
26
24
|
const seqMatch = this._sequenceTracker.advance(event, sequenceEntries);
|
|
27
25
|
if (seqMatch) {
|
|
@@ -35,11 +33,12 @@ const _ShortcutManager = class _ShortcutManager {
|
|
|
35
33
|
}
|
|
36
34
|
}
|
|
37
35
|
const comboEntries = active.filter(
|
|
38
|
-
(e) => e.parsed.
|
|
36
|
+
(e) => !e.parsed.isSequence && (e.allowInInput === true || !isInInput)
|
|
39
37
|
);
|
|
40
38
|
for (const entry of comboEntries) {
|
|
41
|
-
|
|
42
|
-
if (
|
|
39
|
+
const combo = entry.parsed.combos[0];
|
|
40
|
+
if (!combo) continue;
|
|
41
|
+
if (matchShortcut(event, combo)) {
|
|
43
42
|
if (entry.preventDefault !== false) event.preventDefault();
|
|
44
43
|
this.debugLog(event, entry);
|
|
45
44
|
entry.handler(event);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
interface FormatOptions {
|
|
2
2
|
separator?: string;
|
|
3
3
|
}
|
|
4
|
-
/** Human-readable platform-aware label for UI badges. */
|
|
4
|
+
/** Human-readable platform-aware label for UI badges (JS-compatible output). */
|
|
5
5
|
export declare function formatShortcutDisplay(keys: string, options?: FormatOptions): string;
|
|
6
6
|
export {};
|
|
7
7
|
//# sourceMappingURL=format.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../src/utils/shortcuts/format.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../src/utils/shortcuts/format.ts"],"names":[],"mappings":"AAuCA,UAAU,aAAa;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAYD,gFAAgF;AAChF,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,aAAkB,GAAG,MAAM,CAMvF"}
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { parseShortcutString } from "./parse.js";
|
|
2
2
|
import { isMac } from "./platform.js";
|
|
3
|
+
const MAC_SYMBOLS = {
|
|
4
|
+
meta: "⌘",
|
|
5
|
+
ctrl: "⌃",
|
|
6
|
+
alt: "⌥",
|
|
7
|
+
shift: "⇧"
|
|
8
|
+
};
|
|
9
|
+
const WIN_SYMBOLS = {
|
|
10
|
+
meta: "Win",
|
|
11
|
+
ctrl: "Ctrl",
|
|
12
|
+
alt: "Alt",
|
|
13
|
+
shift: "Shift"
|
|
14
|
+
};
|
|
15
|
+
const MODIFIER_ORDER = ["ctrl", "alt", "shift", "meta"];
|
|
3
16
|
const SPECIAL_KEY_DISPLAY = {
|
|
4
17
|
arrowup: "↑",
|
|
5
18
|
arrowdown: "↓",
|
|
@@ -17,27 +30,16 @@ function formatKey(key) {
|
|
|
17
30
|
if (key.length === 1) return key.toUpperCase();
|
|
18
31
|
return key.charAt(0).toUpperCase() + key.slice(1);
|
|
19
32
|
}
|
|
20
|
-
function formatCombo(combo, separator) {
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
parts.push(isMac ? "⌘" : "Ctrl");
|
|
25
|
-
} else {
|
|
26
|
-
if (modifiers.ctrl) parts.push(isMac ? "⌃" : "Ctrl");
|
|
27
|
-
if (modifiers.meta) parts.push("⌘");
|
|
28
|
-
}
|
|
29
|
-
if (modifiers.alt) parts.push(isMac ? "⌥" : "Alt");
|
|
30
|
-
if (modifiers.shift) parts.push(isMac ? "⇧" : "Shift");
|
|
31
|
-
if (key) parts.push(formatKey(key));
|
|
32
|
-
return parts.join(separator);
|
|
33
|
+
function formatCombo(combo, symbols, separator) {
|
|
34
|
+
const modParts = MODIFIER_ORDER.filter((m) => combo.modifiers.has(m)).map((m) => symbols[m]);
|
|
35
|
+
const keyPart = formatKey(combo.key);
|
|
36
|
+
return [...modParts, keyPart].join(separator);
|
|
33
37
|
}
|
|
34
38
|
function formatShortcutDisplay(keys, options = {}) {
|
|
39
|
+
const symbols = isMac ? MAC_SYMBOLS : WIN_SYMBOLS;
|
|
35
40
|
const separator = options.separator ?? (isMac ? "" : "+");
|
|
36
41
|
const parsed = parseShortcutString(keys);
|
|
37
|
-
|
|
38
|
-
return parsed.steps.map((c) => formatCombo(c, separator)).join(" then ");
|
|
39
|
-
}
|
|
40
|
-
return formatCombo(parsed.combo, separator);
|
|
42
|
+
return parsed.combos.map((combo) => formatCombo(combo, symbols, separator)).join(" then ");
|
|
41
43
|
}
|
|
42
44
|
export {
|
|
43
45
|
formatShortcutDisplay
|
|
@@ -6,5 +6,5 @@ export { normalizeShortcutString, parseShortcutString } from './parse';
|
|
|
6
6
|
export { SequenceTracker } from './sequence';
|
|
7
7
|
export type { SequenceEntry } from './sequence';
|
|
8
8
|
export { ShortcutManager } from './ShortcutManager';
|
|
9
|
-
export type { ParsedShortcut, ShortcutBinding,
|
|
9
|
+
export type { Modifier, ParsedShortcut, ShortcutBinding, ShortcutCombo, ShortcutRegistration, ShortcutSummary, } from './types';
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/shortcuts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,cAAc,EACd,WAAW,EACX,aAAa,GACd,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EACV,cAAc,EACd,eAAe,EACf,aAAa,EACb,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/shortcuts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,cAAc,EACd,WAAW,EACX,aAAa,GACd,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EACV,QAAQ,EACR,cAAc,EACd,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,eAAe,GAChB,MAAM,SAAS,CAAC"}
|
|
@@ -4,6 +4,9 @@ import { ShortcutCombo } from './types';
|
|
|
4
4
|
export declare function normalizeKey(key: string): string;
|
|
5
5
|
/** Map `KeyboardEvent.code` to normalized key (fixes macOS Option+letter). */
|
|
6
6
|
export declare function normalizedPhysicalKey(code: string): string | null;
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Test whether a KeyboardEvent matches a ShortcutCombo exactly
|
|
9
|
+
* (same modifiers, no more / no fewer, and matching key).
|
|
10
|
+
*/
|
|
8
11
|
export declare function matchShortcut(event: KeyboardEvent, combo: ShortcutCombo): boolean;
|
|
9
12
|
//# sourceMappingURL=match.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"match.d.ts","sourceRoot":"","sources":["../../../src/utils/shortcuts/match.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"match.d.ts","sourceRoot":"","sources":["../../../src/utils/shortcuts/match.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAY,aAAa,EAAE,MAAM,SAAS,CAAC;AAEvD,+DAA+D;AAC/D,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAGhD;AAED,8EAA8E;AAC9E,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAsDjE;AAYD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,GAAG,OAAO,CAcjF"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { KEY_ALIASES } from "./constants.js";
|
|
2
|
-
import { isMac } from "./platform.js";
|
|
3
2
|
function normalizeKey(key) {
|
|
4
3
|
const lower = key.toLowerCase();
|
|
5
4
|
return KEY_ALIASES[lower] ?? lower;
|
|
@@ -54,40 +53,24 @@ function normalizedPhysicalKey(code) {
|
|
|
54
53
|
}
|
|
55
54
|
return null;
|
|
56
55
|
}
|
|
57
|
-
function
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
if (wantsMod) {
|
|
65
|
-
if (!modPressed) return false;
|
|
66
|
-
if (wantsAlt && !event.altKey) return false;
|
|
67
|
-
if (wantsShift && !event.shiftKey) return false;
|
|
68
|
-
if (!wantsAlt && event.altKey) return false;
|
|
69
|
-
if (!wantsShift && event.shiftKey) return false;
|
|
70
|
-
if (wantsCtrl && !event.ctrlKey) return false;
|
|
71
|
-
if (wantsMeta && !event.metaKey) return false;
|
|
72
|
-
return true;
|
|
73
|
-
}
|
|
74
|
-
if (wantsCtrl !== event.ctrlKey) return false;
|
|
75
|
-
if (wantsMeta !== event.metaKey) return false;
|
|
76
|
-
if (wantsAlt !== event.altKey) return false;
|
|
77
|
-
if (wantsShift !== event.shiftKey) return false;
|
|
78
|
-
return true;
|
|
79
|
-
}
|
|
80
|
-
function keyMatch(event, expectedKey) {
|
|
81
|
-
if (!expectedKey) return true;
|
|
82
|
-
const normalized = normalizeKey(event.key);
|
|
83
|
-
if (normalized === expectedKey) return true;
|
|
84
|
-
const physical = normalizedPhysicalKey(event.code);
|
|
85
|
-
if (physical !== null && physical === expectedKey) return true;
|
|
86
|
-
return false;
|
|
56
|
+
function getActiveModifiers(event) {
|
|
57
|
+
const mods = /* @__PURE__ */ new Set();
|
|
58
|
+
if (event.ctrlKey) mods.add("ctrl");
|
|
59
|
+
if (event.metaKey) mods.add("meta");
|
|
60
|
+
if (event.altKey) mods.add("alt");
|
|
61
|
+
if (event.shiftKey) mods.add("shift");
|
|
62
|
+
return mods;
|
|
87
63
|
}
|
|
88
64
|
function matchShortcut(event, combo) {
|
|
89
|
-
|
|
90
|
-
|
|
65
|
+
const pressed = getActiveModifiers(event);
|
|
66
|
+
if (pressed.size !== combo.modifiers.size) return false;
|
|
67
|
+
for (const mod of combo.modifiers) {
|
|
68
|
+
if (!pressed.has(mod)) return false;
|
|
69
|
+
}
|
|
70
|
+
const fromKey = normalizeKey(event.key);
|
|
71
|
+
if (fromKey === combo.key) return true;
|
|
72
|
+
const fromCode = normalizedPhysicalKey(event.code);
|
|
73
|
+
return fromCode !== null && fromCode === combo.key;
|
|
91
74
|
}
|
|
92
75
|
export {
|
|
93
76
|
matchShortcut,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ParsedShortcut } from './types';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Parse a shortcut string into
|
|
5
|
-
* `mod+k` →
|
|
4
|
+
* Parse a shortcut string into the JS-compatible `{ isSequence, combos }` shape.
|
|
5
|
+
* `mod+k` → single combo (mod resolved to ctrl/meta); `g i` → sequence.
|
|
6
6
|
*/
|
|
7
|
-
export declare function parseShortcutString(
|
|
7
|
+
export declare function parseShortcutString(shortcutStr: string): ParsedShortcut;
|
|
8
8
|
/**
|
|
9
9
|
* Normalize shortcut string for blacklist / dedup / comparison.
|
|
10
|
-
*
|
|
10
|
+
* Modifiers are sorted alphabetically; `mod` is already platform-resolved.
|
|
11
11
|
*/
|
|
12
|
-
export declare function normalizeShortcutString(
|
|
12
|
+
export declare function normalizeShortcutString(shortcutStr: string): string;
|
|
13
13
|
//# sourceMappingURL=parse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../src/utils/shortcuts/parse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../src/utils/shortcuts/parse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAY,cAAc,EAAiB,MAAM,SAAS,CAAC;AA8CvE;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc,CAYvE;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAQnE"}
|
|
@@ -1,62 +1,48 @@
|
|
|
1
1
|
import { KEY_ALIASES } from "./constants.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { isMac } from "./platform.js";
|
|
3
|
+
const MODIFIER_SET = /* @__PURE__ */ new Set(["ctrl", "meta", "alt", "shift", "mod"]);
|
|
4
|
+
function resolveModifier(mod) {
|
|
5
|
+
if (mod === "mod") return isMac ? "meta" : "ctrl";
|
|
6
|
+
return mod;
|
|
5
7
|
}
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
function canonicalModifierToken(token) {
|
|
9
|
+
if (token === "control") return "ctrl";
|
|
10
|
+
if (token === "cmd" || token === "command") return "meta";
|
|
11
|
+
if (token === "option") return "alt";
|
|
12
|
+
if (MODIFIER_SET.has(token)) return token;
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
function parseCombo(comboStr) {
|
|
16
|
+
const parts = comboStr.toLowerCase().split("+").map((p) => p.trim()).filter(Boolean);
|
|
17
|
+
const modifiers = /* @__PURE__ */ new Set();
|
|
15
18
|
let key = "";
|
|
16
|
-
for (const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
else
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
for (const part of parts) {
|
|
20
|
+
const modToken = canonicalModifierToken(part);
|
|
21
|
+
if (modToken !== null) {
|
|
22
|
+
modifiers.add(resolveModifier(modToken));
|
|
23
|
+
} else {
|
|
24
|
+
key = KEY_ALIASES[part] ?? part;
|
|
25
|
+
}
|
|
23
26
|
}
|
|
24
27
|
return { modifiers, key };
|
|
25
28
|
}
|
|
26
|
-
function parseShortcutString(
|
|
27
|
-
const trimmed =
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return {
|
|
31
|
-
type: "sequence",
|
|
32
|
-
steps: parts.map((p) => parseComboPart(p))
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
if (/\s+\S/.test(trimmed) && trimmed.includes("+")) {
|
|
36
|
-
const parts = trimmed.split(/\s+/).filter(Boolean);
|
|
37
|
-
return {
|
|
38
|
-
type: "sequence",
|
|
39
|
-
steps: parts.map((p) => parseComboPart(p))
|
|
40
|
-
};
|
|
29
|
+
function parseShortcutString(shortcutStr) {
|
|
30
|
+
const trimmed = shortcutStr.trim();
|
|
31
|
+
const parts = trimmed.split(/\s+/).filter(Boolean);
|
|
32
|
+
if (parts.length <= 1) {
|
|
33
|
+
return { isSequence: false, combos: [parseCombo(parts[0] ?? "")] };
|
|
41
34
|
}
|
|
42
|
-
return {
|
|
35
|
+
return {
|
|
36
|
+
isSequence: true,
|
|
37
|
+
combos: parts.map(parseCombo)
|
|
38
|
+
};
|
|
43
39
|
}
|
|
44
|
-
function normalizeShortcutString(
|
|
45
|
-
const parsed = parseShortcutString(
|
|
46
|
-
|
|
47
|
-
const mods = [];
|
|
48
|
-
if (combo.modifiers.mod) mods.push("mod");
|
|
49
|
-
if (combo.modifiers.ctrl) mods.push("ctrl");
|
|
50
|
-
if (combo.modifiers.meta) mods.push("meta");
|
|
51
|
-
if (combo.modifiers.alt) mods.push("alt");
|
|
52
|
-
if (combo.modifiers.shift) mods.push("shift");
|
|
53
|
-
mods.sort();
|
|
40
|
+
function normalizeShortcutString(shortcutStr) {
|
|
41
|
+
const parsed = parseShortcutString(shortcutStr);
|
|
42
|
+
return parsed.combos.map((combo) => {
|
|
43
|
+
const mods = [...combo.modifiers].sort();
|
|
54
44
|
return mods.length > 0 ? [...mods, combo.key].join("+") : combo.key;
|
|
55
|
-
}
|
|
56
|
-
if (parsed.type === "sequence") {
|
|
57
|
-
return parsed.steps.map(normCombo).join(" ");
|
|
58
|
-
}
|
|
59
|
-
return normCombo(parsed.combo);
|
|
45
|
+
}).join(" ");
|
|
60
46
|
}
|
|
61
47
|
export {
|
|
62
48
|
normalizeShortcutString,
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
+
/** Platform modifier after `mod` is resolved at parse time. */
|
|
2
|
+
export type Modifier = 'ctrl' | 'meta' | 'alt' | 'shift';
|
|
3
|
+
/**
|
|
4
|
+
* A single key combination (e.g. Mod+Shift+K).
|
|
5
|
+
* JS-compatible: `modifiers` is a Set (no unresolved `mod` token).
|
|
6
|
+
*/
|
|
1
7
|
export interface ShortcutCombo {
|
|
2
|
-
modifiers:
|
|
3
|
-
|
|
4
|
-
meta: boolean;
|
|
5
|
-
alt: boolean;
|
|
6
|
-
shift: boolean;
|
|
7
|
-
mod: boolean;
|
|
8
|
-
};
|
|
8
|
+
modifiers: Set<Modifier>;
|
|
9
|
+
/** Normalized lowercase key (e.g. 'k', 'enter', 'arrowup') */
|
|
9
10
|
key: string;
|
|
10
11
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Parsed shortcut — single combo or sequence of combos.
|
|
14
|
+
* JS-compatible shape used by consumers of the previous JS package.
|
|
15
|
+
*/
|
|
16
|
+
export interface ParsedShortcut {
|
|
17
|
+
isSequence: boolean;
|
|
18
|
+
/** Single-element for simple chords; multi for sequences like `g i` */
|
|
19
|
+
combos: ShortcutCombo[];
|
|
14
20
|
}
|
|
15
|
-
export interface ShortcutChord {
|
|
16
|
-
type: 'chord';
|
|
17
|
-
combo: ShortcutCombo;
|
|
18
|
-
}
|
|
19
|
-
export type ParsedShortcut = ShortcutSequence | ShortcutChord;
|
|
20
21
|
export interface ShortcutRegistration {
|
|
21
22
|
id: string;
|
|
22
23
|
keys: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utils/shortcuts/types.ts"],"names":[],"mappings":"AAAA,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utils/shortcuts/types.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,CAAC;AAEzD;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC;IACzB,8DAA8D;IAC9D,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,OAAO,CAAC;IACpB,uEAAuE;IACvE,MAAM,EAAE,aAAa,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IACxC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|