impact-ui 4.0.0-alpha.2 → 4.0.0-alpha.21
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/MIGRATION_GUIDE.md +37 -7
- package/README.md +6 -6
- package/bin/migrate.js +5 -5
- package/codemods/transform.js +17 -23
- package/dist/_virtual/BookmarkBorderOutlined.js +4 -0
- package/dist/_virtual/ChevronLeftOutlined.js +4 -0
- package/dist/_virtual/CloseRounded.js +4 -0
- package/dist/_virtual/FilterAltOutlined.js +4 -0
- package/dist/_virtual/FilterListOutlined.js +4 -0
- package/dist/_virtual/KeyboardRounded.js +4 -0
- package/dist/_virtual/index.js +4 -2
- package/dist/_virtual/index10.js +3 -3
- package/dist/_virtual/index11.js +3 -3
- package/dist/_virtual/index12.js +3 -3
- package/dist/_virtual/index13.js +2 -4
- package/dist/_virtual/index14.js +2 -2
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index16.js +2 -2
- package/dist/_virtual/index2.js +2 -4
- package/dist/_virtual/index3.js +2 -2
- package/dist/_virtual/index4.js +4 -2
- package/dist/_virtual/index5.js +3 -3
- package/dist/_virtual/index6.js +2 -4
- package/dist/_virtual/index7.js +4 -2
- package/dist/_virtual/index8.js +3 -3
- package/dist/_virtual/index9.js +3 -3
- package/dist/components/Accordion/index.d.ts.map +1 -1
- package/dist/components/Accordion/index.js +45 -31
- package/dist/components/AccordionModern/SortableAccordionComp.js +3 -3
- package/dist/components/AccordionModern/index.js +2 -1
- package/dist/components/Alert/index.js +3 -2
- package/dist/components/Avatar/index.js +2 -1
- package/dist/components/Badge/filled/filledIconLabelBadges/index.js +2 -1
- package/dist/components/Badge/filled/filledOnlyIconBadges/index.js +2 -1
- package/dist/components/Badge/filled/filledOnlyLabelBadges/index.js +2 -1
- package/dist/components/Badge/index.js +3 -2
- package/dist/components/Badge/stroke/strokeIconLabelBadges/index.js +2 -1
- package/dist/components/Badge/stroke/strokeOnlyIconBadges/index.js +2 -1
- package/dist/components/Badge/stroke/strokeOnlyLabelBadges/index.js +2 -1
- package/dist/components/Badge/subtle/subtleIOnlyIconBadges/index.js +2 -1
- package/dist/components/Badge/subtle/subtleIconLabelBadges/index.js +2 -1
- package/dist/components/Badge/subtle/subtleOnlyLabelBadges/index.js +2 -1
- package/dist/components/BottomSheet/index.js +2 -1
- package/dist/components/Breadcrumbs/index.d.ts +1 -1
- package/dist/components/Breadcrumbs/index.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/index.js +10 -2
- package/dist/components/Button/Button.types.d.ts +4 -0
- package/dist/components/Button/Button.types.d.ts.map +1 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +4 -1
- package/dist/components/ButtonGroup/ButtonGroup.types.d.ts +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.types.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/ButtonGroup/index.js +7 -2
- package/dist/components/Card/index.js +2 -1
- package/dist/components/Chart/Chart.types.d.ts +2 -2
- package/dist/components/Chart/index.d.ts +1 -1
- package/dist/components/Chart/index.d.ts.map +1 -1
- package/dist/components/Chart/index.js +22 -14
- package/dist/components/Chatbot/Chatbot.types.d.ts +16 -1
- package/dist/components/Chatbot/Chatbot.types.d.ts.map +1 -1
- package/dist/components/Chatbot/bookMarkPanel.d.ts.map +1 -1
- package/dist/components/Chatbot/bookMarkPanel.js +4 -3
- package/dist/components/Chatbot/chatInput.d.ts.map +1 -1
- package/dist/components/Chatbot/chatInput.js +8 -7
- package/dist/components/Chatbot/chatbotModuleMenu.d.ts.map +1 -1
- package/dist/components/Chatbot/chatbotModuleMenu.js +6 -5
- package/dist/components/Chatbot/constant.d.ts.map +1 -1
- package/dist/components/Chatbot/constant.js +6 -5
- package/dist/components/Chatbot/historyPanel.d.ts.map +1 -1
- package/dist/components/Chatbot/historyPanel.js +2 -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 +66 -9
- package/dist/components/Chatbot/newChatComponent.d.ts.map +1 -1
- package/dist/components/Chatbot/newChatComponent.js +3 -2
- package/dist/components/Checkbox/Checkbox.types.d.ts +2 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts.map +1 -1
- package/dist/components/Checkbox/Default.d.ts +1 -1
- package/dist/components/Checkbox/Default.d.ts.map +1 -1
- package/dist/components/Checkbox/Default.js +4 -0
- package/dist/components/Checkbox/index.js +2 -1
- package/dist/components/Chips/index.js +2 -1
- package/dist/components/CreateItemFlow/index.d.ts.map +1 -1
- package/dist/components/CreateItemFlow/index.js +4 -2
- package/dist/components/DatePicker/datePickerDropdown.js +2 -1
- package/dist/components/DatePicker/datePickerInput.d.ts +2 -0
- package/dist/components/DatePicker/datePickerInput.d.ts.map +1 -1
- package/dist/components/DatePicker/datePickerInput.js +4 -0
- package/dist/components/DatePicker/index.d.ts.map +1 -1
- package/dist/components/DatePicker/index.js +7 -2
- package/dist/components/DatePicker/showMonthYearSelect.d.ts.map +1 -1
- package/dist/components/DatePicker/showMonthYearSelect.js +31 -0
- package/dist/components/DateRangePicker/dateRangePickerDropdown.d.ts +4 -1
- package/dist/components/DateRangePicker/dateRangePickerDropdown.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerDropdown.js +20 -5
- package/dist/components/DateRangePicker/dateRangePickerInput.d.ts +4 -1
- package/dist/components/DateRangePicker/dateRangePickerInput.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerInput.js +18 -4
- package/dist/components/DateRangePicker/index.d.ts.map +1 -1
- package/dist/components/DateRangePicker/index.js +31 -5
- package/dist/components/DynamicLayout/index.js +2 -1
- package/dist/components/EmptyState/EmptyState.types.d.ts +2 -2
- package/dist/components/EmptyState/EmptyStateImage.d.ts +0 -1
- package/dist/components/EmptyState/EmptyStateImage.d.ts.map +1 -1
- package/dist/components/EmptyState/EmptyStateImage.js +19 -37
- package/dist/components/EmptyState/index.d.ts +1 -2
- package/dist/components/EmptyState/index.d.ts.map +1 -1
- package/dist/components/EmptyState/index.js +35 -21
- package/dist/components/FileUpload/FileUpload.types.d.ts +10 -2
- package/dist/components/FileUpload/FileUpload.types.d.ts.map +1 -1
- package/dist/components/FileUpload/TemplatePreview.d.ts +9 -0
- package/dist/components/FileUpload/TemplatePreview.d.ts.map +1 -0
- package/dist/components/FileUpload/TemplatePreview.js +31 -0
- package/dist/components/FileUpload/fileUploadAssets.loader.d.ts +1 -3
- package/dist/components/FileUpload/fileUploadAssets.loader.d.ts.map +1 -1
- package/dist/components/FileUpload/fileUploadAssets.loader.js +17 -48
- package/dist/components/FileUpload/fileUploadUtils.d.ts +4 -0
- package/dist/components/FileUpload/fileUploadUtils.d.ts.map +1 -0
- package/dist/components/FileUpload/fileUploadUtils.js +14 -0
- 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 +115 -10
- package/dist/components/FileUpload/useFileUploadTemplateState.d.ts +14 -0
- package/dist/components/FileUpload/useFileUploadTemplateState.d.ts.map +1 -0
- package/dist/components/FileUpload/useFileUploadTemplateState.js +46 -0
- package/dist/components/FilterPanel/index.d.ts.map +1 -1
- package/dist/components/FilterPanel/index.js +34 -1
- package/dist/components/FiltersStrip/FiltersStrip.types.d.ts +2 -2
- package/dist/components/FiltersStrip/index.d.ts +1 -1
- package/dist/components/FiltersStrip/index.d.ts.map +1 -1
- package/dist/components/FiltersStrip/index.js +10 -3
- package/dist/components/Header/Header.types.d.ts +2 -2
- package/dist/components/Header/index.d.ts +1 -1
- package/dist/components/Header/index.d.ts.map +1 -1
- package/dist/components/Header/index.js +148 -135
- package/dist/components/HomePage/constants.d.ts.map +1 -1
- package/dist/components/HomePage/constants.js +67 -66
- package/dist/components/HomePage/index.d.ts.map +1 -1
- package/dist/components/HomePage/index.js +66 -10
- package/dist/components/Input/InputWithIcon.d.ts +1 -1
- package/dist/components/Input/InputWithIcon.d.ts.map +1 -1
- package/dist/components/Input/InputWithIcon.js +20 -2
- package/dist/components/Input/VanillaInput.d.ts +1 -1
- package/dist/components/Input/VanillaInput.d.ts.map +1 -1
- package/dist/components/Input/VanillaInput.js +20 -2
- package/dist/components/Input/index.js +2 -1
- package/dist/components/KeyboardShortCuts/Keycombo.d.ts +12 -0
- package/dist/components/KeyboardShortCuts/Keycombo.d.ts.map +1 -0
- package/dist/components/KeyboardShortCuts/Keycombo.js +20 -0
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.d.ts +7 -0
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.d.ts.map +1 -0
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.js +69 -0
- package/dist/components/KeyboardShortCuts/ShortcutModal.d.ts +7 -0
- package/dist/components/KeyboardShortCuts/ShortcutModal.d.ts.map +1 -0
- package/dist/components/KeyboardShortCuts/ShortcutModal.js +167 -0
- package/dist/components/KeyboardShortCuts/StarOutlineIcon.d.ts +3 -0
- package/dist/components/KeyboardShortCuts/StarOutlineIcon.d.ts.map +1 -0
- package/dist/components/KeyboardShortCuts/allSetBox.d.ts +6 -0
- package/dist/components/KeyboardShortCuts/allSetBox.d.ts.map +1 -0
- package/dist/components/KeyboardShortCuts/allSetBox.js +32 -0
- package/dist/components/KeyboardShortCuts/index.d.ts +14 -0
- package/dist/components/KeyboardShortCuts/index.d.ts.map +1 -0
- package/dist/components/KeyboardShortCuts/index.js +187 -0
- package/dist/components/KeyboardShortCuts/screen2.d.ts +4 -0
- package/dist/components/KeyboardShortCuts/screen2.d.ts.map +1 -0
- package/dist/components/KeyboardShortCuts/screen2.js +19 -0
- package/dist/components/KeyboardShortCuts/screen3.d.ts +4 -0
- package/dist/components/KeyboardShortCuts/screen3.d.ts.map +1 -0
- package/dist/components/KeyboardShortCuts/screen3.js +19 -0
- package/dist/components/KeyboardShortCuts/tutorial.d.ts +7 -0
- package/dist/components/KeyboardShortCuts/tutorial.d.ts.map +1 -0
- package/dist/components/KeyboardShortCuts/tutorial.js +161 -0
- package/dist/components/Loader/Loader.types.d.ts +2 -2
- package/dist/components/Loader/index.d.ts +1 -1
- package/dist/components/Loader/index.d.ts.map +1 -1
- package/dist/components/Loader/index.js +57 -37
- package/dist/components/Menu/IconMenuItem.js +2 -1
- package/dist/components/Menu/Menu.types.d.ts +3 -1
- package/dist/components/Menu/Menu.types.d.ts.map +1 -1
- package/dist/components/Menu/MenuHeaderInfo.d.ts.map +1 -1
- package/dist/components/Menu/MenuHeaderInfo.js +4 -2
- package/dist/components/Menu/NestedMenuItem.js +2 -1
- package/dist/components/Menu/index.d.ts.map +1 -1
- package/dist/components/Menu/index.js +8 -4
- package/dist/components/Menu/nestedMenuItemsFromObject.js +2 -1
- package/dist/components/Modal/index.js +2 -1
- package/dist/components/MonthPicker/DefaultYearSelect.js +10 -0
- package/dist/components/MonthPicker/constants.js +4 -0
- package/dist/components/MonthPicker/index.js +324 -0
- package/dist/components/MonthRangePicker/MonthRangePicker.types.d.ts +30 -0
- package/dist/components/MonthRangePicker/MonthRangePicker.types.d.ts.map +1 -0
- package/dist/components/MonthRangePicker/constants.d.ts +2 -0
- package/dist/components/MonthRangePicker/constants.d.ts.map +1 -0
- package/dist/components/MonthRangePicker/constants.js +4 -0
- package/dist/components/MonthRangePicker/index.d.ts +22 -0
- package/dist/components/MonthRangePicker/index.d.ts.map +1 -0
- package/dist/components/MonthRangePicker/index.js +613 -0
- package/dist/components/Notification/Notification.types.d.ts +35 -5
- package/dist/components/Notification/Notification.types.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationChipsList.d.ts +21 -0
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationChipsList.d.ts.map +1 -0
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationChipsList.js +49 -0
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.d.ts +30 -0
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.d.ts.map +1 -0
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.js +212 -0
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.d.ts +14 -0
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.d.ts.map +1 -0
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.js +299 -0
- package/dist/components/Notification/NotificationBody/NotificationPanelContent.d.ts +9 -0
- package/dist/components/Notification/NotificationBody/NotificationPanelContent.d.ts.map +1 -0
- package/dist/components/Notification/NotificationBody/NotificationPanelContent.js +71 -0
- package/dist/components/Notification/NotificationBody/NotificationTaskList.d.ts +43 -0
- package/dist/components/Notification/NotificationBody/NotificationTaskList.d.ts.map +1 -0
- package/dist/components/Notification/NotificationBody/NotificationTaskList.js +245 -0
- package/dist/components/Notification/NotificationBody/index.d.ts +2 -3
- package/dist/components/Notification/NotificationBody/index.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/index.js +21 -11
- package/dist/components/Notification/index.js +2 -1
- package/dist/components/Notification/mockData.d.ts +14 -0
- package/dist/components/Notification/mockData.d.ts.map +1 -0
- package/dist/components/Panel/index.js +2 -1
- package/dist/components/Popover/index.js +2 -1
- package/dist/components/Portal/index.d.ts +1 -1
- package/dist/components/Portal/index.d.ts.map +1 -1
- package/dist/components/Portal/index.js +2 -1
- package/dist/components/ProgressBar/ProgressBar.types.d.ts +2 -2
- package/dist/components/ProgressBar/index.d.ts +1 -1
- package/dist/components/ProgressBar/index.d.ts.map +1 -1
- package/dist/components/ProgressBar/index.js +31 -14
- package/dist/components/Prompt/index.js +2 -1
- package/dist/components/RadioButtonGroup/index.d.ts +1 -1
- package/dist/components/RadioButtonGroup/index.d.ts.map +1 -1
- package/dist/components/RadioButtonGroup/index.js +11 -2
- package/dist/components/Select/SearchFilter.d.ts.map +1 -1
- package/dist/components/Select/SearchFilter.js +140 -28
- package/dist/components/Select/Select.types.d.ts +46 -1
- package/dist/components/Select/Select.types.d.ts.map +1 -1
- package/dist/components/Select/customGroupHeading.js +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/dropdown.js +3 -2
- package/dist/components/Select/hooks/index.d.ts +3 -0
- package/dist/components/Select/hooks/index.d.ts.map +1 -1
- package/dist/components/Select/hooks/useKeyboardNavigation.d.ts +22 -0
- package/dist/components/Select/hooks/useKeyboardNavigation.d.ts.map +1 -0
- package/dist/components/Select/hooks/useKeyboardNavigation.js +160 -0
- package/dist/components/Select/hooks/useScrollIntoView.d.ts +11 -0
- package/dist/components/Select/hooks/useScrollIntoView.d.ts.map +1 -0
- package/dist/components/Select/hooks/useScrollIntoView.js +28 -0
- package/dist/components/Select/hooks/useTypeahead.d.ts +11 -0
- package/dist/components/Select/hooks/useTypeahead.d.ts.map +1 -0
- package/dist/components/Select/hooks/useTypeahead.js +41 -0
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +529 -151
- package/dist/components/Select/menuList.d.ts +2 -7
- package/dist/components/Select/menuList.d.ts.map +1 -1
- package/dist/components/Select/menuList.js +70 -18
- package/dist/components/Select/optionList.js +1 -1
- package/dist/components/Select/utils.d.ts +2 -2
- package/dist/components/Select/utils.d.ts.map +1 -1
- package/dist/components/Select/utils.js +3 -32
- package/dist/components/Shortcuts/ShortcutContext.d.ts +3 -0
- package/dist/components/Shortcuts/ShortcutContext.d.ts.map +1 -0
- package/dist/components/Shortcuts/ShortcutContext.js +5 -0
- package/dist/components/Shortcuts/ShortcutHint.d.ts +9 -0
- package/dist/components/Shortcuts/ShortcutHint.d.ts.map +1 -0
- package/dist/components/Shortcuts/ShortcutHint.js +33 -0
- package/dist/components/Shortcuts/ShortcutScope.d.ts +9 -0
- package/dist/components/Shortcuts/ShortcutScope.d.ts.map +1 -0
- package/dist/components/Shortcuts/ShortcutScope.js +10 -0
- package/dist/components/Shortcuts/ShortcutsConfigContext.d.ts +7 -0
- package/dist/components/Shortcuts/ShortcutsConfigContext.d.ts.map +1 -0
- package/dist/components/Shortcuts/ShortcutsConfigContext.js +8 -0
- package/dist/components/Shortcuts/ShortcutsProvider.d.ts +9 -0
- package/dist/components/Shortcuts/ShortcutsProvider.d.ts.map +1 -0
- package/dist/components/Shortcuts/ShortcutsProvider.js +18 -0
- package/dist/components/Shortcuts/index.d.ts +13 -0
- package/dist/components/Shortcuts/index.d.ts.map +1 -0
- package/dist/components/Shortcuts/useShortcut.d.ts +6 -0
- package/dist/components/Shortcuts/useShortcut.d.ts.map +1 -0
- package/dist/components/Shortcuts/useShortcut.js +92 -0
- package/dist/components/Shortcuts/useShortcutScope.d.ts +5 -0
- package/dist/components/Shortcuts/useShortcutScope.d.ts.map +1 -0
- package/dist/components/Shortcuts/useShortcutScope.js +25 -0
- package/dist/components/Sidebar/ChildMenu.js +1 -1
- package/dist/components/Sidebar/ParentMenu.js +1 -1
- package/dist/components/Sidebar/SidebarActions.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarActions.js +2 -1
- package/dist/components/Sidebar/index.d.ts +1 -1
- package/dist/components/Sidebar/index.d.ts.map +1 -1
- package/dist/components/Sidebar/index.js +64 -5
- 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 +4 -2
- package/dist/components/Stepper/index.js +2 -1
- package/dist/components/Switch/index.d.ts.map +1 -1
- package/dist/components/Switch/index.js +8 -3
- package/dist/components/Table/AdvanceSortModal.d.ts +8 -0
- package/dist/components/Table/AdvanceSortModal.d.ts.map +1 -0
- package/dist/components/Table/AdvanceSortModal.js +285 -0
- package/dist/components/Table/AgGridHeader.d.ts.map +1 -1
- package/dist/components/Table/AgGridHeader.js +98 -65
- package/dist/components/Table/CommentsPortal.d.ts +1 -3
- package/dist/components/Table/CommentsPortal.d.ts.map +1 -1
- package/dist/components/Table/CommentsPortal.js +7 -7
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts +14 -11
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts.map +1 -1
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.js +2 -7
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts +11 -10
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts.map +1 -1
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.js +4 -3
- package/dist/components/Table/NoComments.d.ts.map +1 -1
- package/dist/components/Table/NoComments.js +3 -1
- package/dist/components/Table/Table.types.d.ts +13 -0
- package/dist/components/Table/Table.types.d.ts.map +1 -1
- package/dist/components/Table/TableImpl.d.ts +1 -2
- package/dist/components/Table/TableImpl.d.ts.map +1 -1
- package/dist/components/Table/TableImpl.js +334 -141
- package/dist/components/Table/actionBar.d.ts +12 -0
- package/dist/components/Table/actionBar.d.ts.map +1 -0
- package/dist/components/Table/actionBar.js +44 -0
- package/dist/components/Table/advanceSearchModal.d.ts.map +1 -1
- package/dist/components/Table/commentPanel.d.ts +2 -1
- package/dist/components/Table/commentPanel.d.ts.map +1 -1
- package/dist/components/Table/commentPanel.js +13 -8
- package/dist/components/Table/filterUtils.d.ts +2 -0
- package/dist/components/Table/filterUtils.d.ts.map +1 -1
- package/dist/components/Table/filterUtils.js +23 -1
- package/dist/components/Table/tableFunctions.d.ts +1 -3
- package/dist/components/Table/tableFunctions.d.ts.map +1 -1
- package/dist/components/Table/tableFunctions.js +13 -12
- package/dist/components/Table/tableHeader.d.ts +6 -1
- package/dist/components/Table/tableHeader.d.ts.map +1 -1
- package/dist/components/Table/tableHeader.js +13 -3
- package/dist/components/Table/tableMoreOptions.d.ts +3 -1
- package/dist/components/Table/tableMoreOptions.d.ts.map +1 -1
- package/dist/components/Table/tableMoreOptions.js +29 -2
- package/dist/components/Table/tableSettings.d.ts.map +1 -1
- package/dist/components/Table/tableSettings.js +1 -1
- package/dist/components/Table/withCommentIcon.d.ts.map +1 -1
- package/dist/components/Table/withCommentIcon.js +2 -1
- package/dist/components/TableChat/EmptyContainer.js +2 -1
- package/dist/components/TableChat/TableChatSidePanel.d.ts.map +1 -1
- package/dist/components/TableChat/TableChatSidePanel.js +6 -3
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatFooterSkeleton.js +2 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatHeaderSkeleton.js +2 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatMessageListSkeleton.js +2 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatSkeleton.js +2 -1
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.js +15 -16
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.js +3 -2
- package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderNavigation.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderNavigation.js +4 -1
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.js +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.js +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.js +14 -12
- package/dist/components/TableChat/components/TableChatRightSection/ChatDeleteMessageType/ChatDeletedMessageType.js +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType /ChatEditedMessageType.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType /ChatEditedMessageType.js +5 -4
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.js +4 -2
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.js +7 -6
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.js +2 -0
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.js +18 -14
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessageAvatar/ChatMessageAvatar.js +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.js +7 -3
- package/dist/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.js +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.js +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/EmojiPicker/EmojiPicker.js +2 -2
- package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.js +10 -21
- package/dist/components/TableChat/components/TableChatRightSection/ReplyBadge/ReplyBadge.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.js +4 -6
- package/dist/components/TableChat/components/TextEditor/EditorToolbar.js +2 -1
- package/dist/components/TableChat/components/TextEditor/Mention.d.ts.map +1 -1
- package/dist/components/TableChat/components/TextEditor/Mention.js +12 -10
- package/dist/components/TableChat/components/TextEditor/MentionList.js +2 -1
- package/dist/components/TableChat/components/TextEditor/suggestion.js +2 -2
- package/dist/components/TableOld/AgGridHeader.d.ts +12 -0
- package/dist/components/TableOld/AgGridHeader.d.ts.map +1 -0
- package/dist/components/TableOld/actionBar.d.ts +7 -0
- package/dist/components/TableOld/actionBar.d.ts.map +1 -0
- package/dist/components/TableOld/index.d.ts +3 -0
- package/dist/components/TableOld/index.d.ts.map +1 -0
- package/dist/components/TableOld/mockData.d.ts +39 -0
- package/dist/components/TableOld/mockData.d.ts.map +1 -0
- package/dist/components/TableOld/tableFunctions.d.ts +56 -0
- package/dist/components/TableOld/tableFunctions.d.ts.map +1 -0
- package/dist/components/TableOld/tableHeader.d.ts +48 -0
- package/dist/components/TableOld/tableHeader.d.ts.map +1 -0
- package/dist/components/TableOld/tableIcons.d.ts +3 -0
- package/dist/components/TableOld/tableIcons.d.ts.map +1 -0
- package/dist/components/TableOld/tablePagination.d.ts +8 -0
- package/dist/components/TableOld/tablePagination.d.ts.map +1 -0
- package/dist/components/TableOld/tableSettings.d.ts +11 -0
- package/dist/components/TableOld/tableSettings.d.ts.map +1 -0
- package/dist/components/Tabs/index.js +2 -1
- package/dist/components/Tag/Tag.types.d.ts +4 -0
- package/dist/components/Tag/Tag.types.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/filled.js +18 -2
- package/dist/components/Tag/index.d.ts.map +1 -1
- package/dist/components/Tag/index.js +30 -28
- package/dist/components/Tag/solid.d.ts +1 -1
- package/dist/components/Tag/solid.d.ts.map +1 -1
- package/dist/components/Tag/solid.js +9 -1
- package/dist/components/Tag/stroke.d.ts +1 -1
- package/dist/components/Tag/stroke.d.ts.map +1 -1
- package/dist/components/Tag/stroke.js +9 -1
- package/dist/components/TagGroup/TagGroup.types.d.ts +2 -2
- package/dist/components/TagGroup/index.d.ts +1 -1
- package/dist/components/TagGroup/index.d.ts.map +1 -1
- package/dist/components/TagGroup/index.js +12 -2
- 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 +28 -39
- package/dist/components/Toast/index.js +2 -1
- package/dist/components/Tooltip/index.d.ts.map +1 -1
- package/dist/components/Tooltip/index.js +5 -4
- package/dist/components/YearSelect/index.js +83 -0
- package/dist/components/common/HelperText/HelperText.types.d.ts +2 -2
- 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/HelperText/index.js +12 -2
- package/dist/components/index.d.ts +11 -3
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +37 -4
- package/dist/mcp-component-registry.json +3870 -0
- package/dist/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +1 -0
- package/dist/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +2 -1
- package/dist/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js +1 -1
- package/dist/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js +1 -0
- package/dist/node_modules/@mui/icons-material/Add.js +2 -2
- package/dist/node_modules/@mui/icons-material/AttachFile.js +2 -2
- package/dist/node_modules/@mui/icons-material/AutoFixHigh.js +2 -2
- package/dist/node_modules/@mui/icons-material/Block.js +2 -2
- package/dist/node_modules/@mui/icons-material/BookmarkBorderOutlined.js +17 -0
- package/dist/node_modules/@mui/icons-material/Brush.js +2 -2
- package/dist/node_modules/@mui/icons-material/Cancel.js +2 -2
- package/dist/node_modules/@mui/icons-material/CheckCircle.js +2 -2
- package/dist/node_modules/@mui/icons-material/ChevronLeft.js +2 -2
- package/dist/node_modules/@mui/icons-material/ChevronLeftOutlined.js +17 -0
- package/dist/node_modules/@mui/icons-material/ChevronRight.js +2 -2
- package/dist/node_modules/@mui/icons-material/ChevronRightOutlined.js +2 -2
- package/dist/node_modules/@mui/icons-material/Clear.js +2 -2
- package/dist/node_modules/@mui/icons-material/Close.js +2 -2
- package/dist/node_modules/@mui/icons-material/CloseOutlined.js +2 -2
- package/dist/node_modules/@mui/icons-material/CloseRounded.js +17 -0
- package/dist/node_modules/@mui/icons-material/DeleteOutlineOutlined.js +2 -2
- package/dist/node_modules/@mui/icons-material/DeleteOutlined.js +2 -2
- package/dist/node_modules/@mui/icons-material/DragIndicator.js +2 -2
- package/dist/node_modules/@mui/icons-material/ErrorOutline.js +2 -2
- package/dist/node_modules/@mui/icons-material/ExpandLess.js +2 -2
- package/dist/node_modules/@mui/icons-material/ExpandMore.js +2 -2
- package/dist/node_modules/@mui/icons-material/FileDownloadOutlined.js +2 -2
- package/dist/node_modules/@mui/icons-material/FilterAltOutlined.js +17 -0
- package/dist/node_modules/@mui/icons-material/FilterList.js +2 -2
- package/dist/node_modules/@mui/icons-material/FilterListOutlined.js +17 -0
- package/dist/node_modules/@mui/icons-material/FormatBold.js +2 -2
- package/dist/node_modules/@mui/icons-material/FormatColorTextOutlined.js +2 -2
- package/dist/node_modules/@mui/icons-material/FormatItalic.js +2 -2
- package/dist/node_modules/@mui/icons-material/FormatListBulleted.js +2 -2
- package/dist/node_modules/@mui/icons-material/FormatListNumbered.js +2 -2
- package/dist/node_modules/@mui/icons-material/Image.js +2 -2
- package/dist/node_modules/@mui/icons-material/Info.js +2 -2
- package/dist/node_modules/@mui/icons-material/InsertEmoticon.js +2 -2
- package/dist/node_modules/@mui/icons-material/KeyboardArrowDown.js +2 -2
- package/dist/node_modules/@mui/icons-material/KeyboardArrowDownOutlined.js +2 -2
- package/dist/node_modules/@mui/icons-material/KeyboardArrowLeft.js +2 -2
- package/dist/node_modules/@mui/icons-material/KeyboardArrowRight.js +2 -2
- package/dist/node_modules/@mui/icons-material/KeyboardArrowRightOutlined.js +2 -2
- package/dist/node_modules/@mui/icons-material/KeyboardArrowUp.js +2 -2
- package/dist/node_modules/@mui/icons-material/KeyboardRounded.js +17 -0
- package/dist/node_modules/@mui/icons-material/Link.js +2 -2
- package/dist/node_modules/@mui/icons-material/Looks3.js +2 -2
- package/dist/node_modules/@mui/icons-material/Looks4.js +2 -2
- package/dist/node_modules/@mui/icons-material/Looks5.js +2 -2
- package/dist/node_modules/@mui/icons-material/Looks6.js +2 -2
- package/dist/node_modules/@mui/icons-material/LooksOne.js +2 -2
- package/dist/node_modules/@mui/icons-material/LooksTwo.js +2 -2
- package/dist/node_modules/@mui/icons-material/MoreHoriz.js +2 -2
- package/dist/node_modules/@mui/icons-material/MoreVert.js +2 -2
- package/dist/node_modules/@mui/icons-material/North.js +2 -2
- package/dist/node_modules/@mui/icons-material/NotificationsOff.js +2 -2
- package/dist/node_modules/@mui/icons-material/SaveOutlined.js +2 -2
- package/dist/node_modules/@mui/icons-material/Search.js +2 -2
- package/dist/node_modules/@mui/icons-material/SearchOutlined.js +2 -2
- package/dist/node_modules/@mui/icons-material/SettingsOutlined.js +2 -2
- package/dist/node_modules/@mui/icons-material/StrikethroughS.js +2 -2
- package/dist/node_modules/@mui/icons-material/TableChartOutlined.js +2 -2
- package/dist/node_modules/@mui/icons-material/Tune.js +2 -2
- package/dist/node_modules/@mui/icons-material/ViewColumnOutlined.js +2 -2
- package/dist/node_modules/@mui/icons-material/Warning.js +2 -2
- package/dist/node_modules/@mui/icons-material/utils/createSvgIcon.js +1 -1
- package/dist/node_modules/@mui/material/Accordion/Accordion.js +2 -2
- package/dist/node_modules/@mui/material/AccordionDetails/AccordionDetails.js +2 -2
- package/dist/node_modules/@mui/material/AccordionSummary/AccordionSummary.js +2 -2
- package/dist/node_modules/@mui/material/Alert/Alert.js +2 -2
- package/dist/node_modules/@mui/material/AlertTitle/AlertTitle.js +2 -2
- package/dist/node_modules/@mui/material/Avatar/Avatar.js +2 -2
- package/dist/node_modules/@mui/material/Backdrop/Backdrop.js +2 -2
- package/dist/node_modules/@mui/material/Badge/Badge.js +2 -2
- package/dist/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed.js +2 -2
- package/dist/node_modules/@mui/material/Breadcrumbs/Breadcrumbs.js +2 -2
- package/dist/node_modules/@mui/material/Button/Button.js +2 -2
- package/dist/node_modules/@mui/material/ButtonBase/ButtonBase.js +2 -2
- package/dist/node_modules/@mui/material/ButtonBase/TouchRipple.js +2 -2
- package/dist/node_modules/@mui/material/Card/Card.js +2 -2
- package/dist/node_modules/@mui/material/Checkbox/Checkbox.js +2 -2
- package/dist/node_modules/@mui/material/Chip/Chip.js +2 -2
- package/dist/node_modules/@mui/material/CircularProgress/CircularProgress.js +2 -2
- package/dist/node_modules/@mui/material/Collapse/Collapse.js +2 -2
- package/dist/node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.js +1 -0
- package/dist/node_modules/@mui/material/Dialog/Dialog.js +2 -2
- package/dist/node_modules/@mui/material/DialogActions/DialogActions.js +2 -2
- package/dist/node_modules/@mui/material/DialogContent/DialogContent.js +2 -2
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText.js +2 -2
- package/dist/node_modules/@mui/material/DialogTitle/DialogTitle.js +2 -2
- package/dist/node_modules/@mui/material/Drawer/Drawer.js +2 -2
- package/dist/node_modules/@mui/material/Fade/Fade.js +2 -2
- package/dist/node_modules/@mui/material/FilledInput/FilledInput.js +2 -2
- package/dist/node_modules/@mui/material/FilledInput/filledInputClasses.js +1 -1
- package/dist/node_modules/@mui/material/FormControl/FormControl.js +2 -2
- package/dist/node_modules/@mui/material/FormControlLabel/FormControlLabel.js +2 -2
- package/dist/node_modules/@mui/material/FormGroup/FormGroup.js +2 -2
- package/dist/node_modules/@mui/material/FormHelperText/FormHelperText.js +2 -2
- package/dist/node_modules/@mui/material/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/node_modules/@mui/material/Grow/Grow.js +2 -2
- package/dist/node_modules/@mui/material/IconButton/IconButton.js +2 -2
- package/dist/node_modules/@mui/material/Input/Input.js +2 -2
- package/dist/node_modules/@mui/material/Input/inputClasses.js +1 -1
- package/dist/node_modules/@mui/material/InputBase/InputBase.js +2 -2
- package/dist/node_modules/@mui/material/LinearProgress/LinearProgress.js +2 -2
- package/dist/node_modules/@mui/material/Link/Link.js +2 -2
- package/dist/node_modules/@mui/material/List/List.js +2 -2
- package/dist/node_modules/@mui/material/ListItemIcon/ListItemIcon.js +2 -2
- package/dist/node_modules/@mui/material/Menu/Menu.js +2 -2
- package/dist/node_modules/@mui/material/MenuItem/MenuItem.js +2 -2
- package/dist/node_modules/@mui/material/MenuList/MenuList.js +2 -2
- package/dist/node_modules/@mui/material/Modal/Modal.js +2 -2
- package/dist/node_modules/@mui/material/Modal/useModal.js +1 -1
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelectInput.js +2 -2
- package/dist/node_modules/@mui/material/OutlinedInput/NotchedOutline.js +2 -2
- package/dist/node_modules/@mui/material/OutlinedInput/OutlinedInput.js +2 -2
- package/dist/node_modules/@mui/material/OutlinedInput/outlinedInputClasses.js +1 -1
- package/dist/node_modules/@mui/material/Paper/Paper.js +2 -2
- package/dist/node_modules/@mui/material/Popover/Popover.js +2 -2
- package/dist/node_modules/@mui/material/Popper/BasePopper.js +3 -3
- package/dist/node_modules/@mui/material/Popper/Popper.js +2 -2
- package/dist/node_modules/@mui/material/Radio/Radio.js +2 -2
- package/dist/node_modules/@mui/material/Radio/RadioButtonIcon.js +1 -1
- package/dist/node_modules/@mui/material/RadioGroup/RadioGroup.js +2 -2
- package/dist/node_modules/@mui/material/Select/Select.js +2 -2
- package/dist/node_modules/@mui/material/Select/SelectInput.js +2 -2
- package/dist/node_modules/@mui/material/Skeleton/Skeleton.js +2 -2
- package/dist/node_modules/@mui/material/Slide/Slide.js +2 -2
- package/dist/node_modules/@mui/material/Slider/Slider.js +2 -2
- package/dist/node_modules/@mui/material/Slider/useSlider.js +1 -1
- package/dist/node_modules/@mui/material/Snackbar/Snackbar.js +2 -2
- package/dist/node_modules/@mui/material/Snackbar/useSnackbar.js +1 -1
- package/dist/node_modules/@mui/material/SnackbarContent/SnackbarContent.js +2 -2
- package/dist/node_modules/@mui/material/Step/Step.js +2 -2
- package/dist/node_modules/@mui/material/StepConnector/StepConnector.js +2 -2
- package/dist/node_modules/@mui/material/StepIcon/StepIcon.js +2 -2
- package/dist/node_modules/@mui/material/StepLabel/StepLabel.js +2 -2
- package/dist/node_modules/@mui/material/Stepper/Stepper.js +2 -2
- package/dist/node_modules/@mui/material/SvgIcon/SvgIcon.js +2 -2
- package/dist/node_modules/@mui/material/Switch/Switch.js +2 -2
- package/dist/node_modules/@mui/material/Tab/Tab.js +2 -2
- package/dist/node_modules/@mui/material/TabScrollButton/TabScrollButton.js +2 -2
- package/dist/node_modules/@mui/material/Tabs/ScrollbarSize.js +2 -2
- package/dist/node_modules/@mui/material/Tabs/Tabs.js +2 -2
- package/dist/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.js +2 -2
- package/dist/node_modules/@mui/material/ToggleButton/ToggleButton.js +2 -2
- package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup.js +2 -2
- package/dist/node_modules/@mui/material/Tooltip/Tooltip.js +2 -2
- package/dist/node_modules/@mui/material/Typography/Typography.js +2 -2
- package/dist/node_modules/@mui/material/internal/SwitchBase.js +2 -2
- package/dist/node_modules/@mui/material/node_modules/@mui/utils/esm/appendOwnerState/appendOwnerState.js +1 -1
- package/dist/node_modules/@mui/material/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +1 -1
- package/dist/node_modules/@mui/material/node_modules/@mui/utils/esm/exactProp/exactProp.js +1 -1
- package/dist/node_modules/@mui/material/node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js +1 -1
- package/dist/node_modules/@mui/material/node_modules/@mui/utils/esm/requirePropFactory/requirePropFactory.js +1 -1
- package/dist/node_modules/@mui/material/node_modules/@mui/utils/esm/resolveProps/resolveProps.js +1 -1
- package/dist/node_modules/@mui/material/node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js +2 -2
- package/dist/node_modules/@mui/material/styles/createMixins.js +1 -1
- package/dist/node_modules/@mui/material/styles/createPalette.js +2 -2
- package/dist/node_modules/@mui/material/styles/createTheme.js +2 -2
- package/dist/node_modules/@mui/material/styles/createTransitions.js +2 -2
- package/dist/node_modules/@mui/material/styles/createTypography.js +2 -2
- package/dist/node_modules/@mui/material/utils/createSvgIcon.js +1 -1
- package/dist/node_modules/@mui/material/utils/useSlot.js +2 -2
- package/dist/node_modules/@mui/system/colorManipulator.js +4 -4
- package/dist/node_modules/@mui/system/createStyled.js +11 -11
- package/dist/node_modules/@mui/system/esm/RtlProvider/index.js +2 -0
- package/dist/node_modules/@mui/system/esm/Stack/createStack.js +2 -2
- package/dist/node_modules/@mui/system/esm/breakpoints.js +1 -0
- package/dist/node_modules/@mui/system/esm/createBox.js +2 -2
- package/dist/node_modules/@mui/system/esm/createStyled.js +2 -2
- package/dist/node_modules/@mui/system/esm/createTheme/createBreakpoints.js +2 -2
- package/dist/node_modules/@mui/system/esm/createTheme/createTheme.js +2 -2
- package/dist/node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js +2 -2
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +1 -1
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/resolveProps/resolveProps.js +1 -1
- package/dist/node_modules/@mui/system/useThemeWithoutDefault.js +1 -1
- package/dist/node_modules/call-bind/index.js +1 -1
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/is-symbol/index.js +1 -1
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-dates/lib/initialize.js +2 -2
- package/dist/node_modules/react-dates/lib/utils/registerCSSInterfaceWithDefaultTheme.js +2 -2
- package/dist/node_modules/react-dates/lib/utils/registerInterfaceWithDefaultTheme.js +2 -2
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-transition-group/esm/Transition.js +2 -2
- package/dist/node_modules/react-transition-group/esm/TransitionGroup.js +4 -4
- package/dist/node_modules/react-with-styles-interface-css/dist/index.js +3 -3
- package/dist/storybook-utils/rootAttributes.d.ts +33 -0
- package/dist/storybook-utils/rootAttributes.d.ts.map +1 -0
- package/dist/storybook-utils.d.ts +2 -1
- package/dist/storybook-utils.d.ts.map +1 -1
- package/dist/styles/entry.d.ts +2 -0
- package/dist/styles/entry.d.ts.map +1 -0
- package/dist/styles/entry.js +1 -0
- package/dist/styles/style.css +1 -1
- package/dist/test-utils/itForwardsRootId.d.ts +15 -0
- package/dist/test-utils/itForwardsRootId.d.ts.map +1 -0
- package/dist/test-utils/rootAttributes.d.ts +22 -0
- package/dist/test-utils/rootAttributes.d.ts.map +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/assetBase.d.ts +7 -0
- package/dist/utils/assetBase.d.ts.map +1 -0
- package/dist/utils/assetBase.js +14 -0
- package/dist/utils/debounce.d.ts +7 -2
- package/dist/utils/debounce.d.ts.map +1 -1
- package/dist/utils/debounce.js +8 -1
- package/dist/utils/pickRootDomAttributes.d.ts +18 -0
- package/dist/utils/pickRootDomAttributes.d.ts.map +1 -0
- package/dist/utils/shortcuts/ShortcutManager.d.ts +34 -0
- package/dist/utils/shortcuts/ShortcutManager.d.ts.map +1 -0
- package/dist/utils/shortcuts/ShortcutManager.js +159 -0
- package/dist/utils/shortcuts/constants.d.ts +10 -0
- package/dist/utils/shortcuts/constants.d.ts.map +1 -0
- package/dist/utils/shortcuts/constants.js +46 -0
- package/dist/utils/shortcuts/format.d.ts +3 -0
- package/dist/utils/shortcuts/format.d.ts.map +1 -0
- package/dist/utils/shortcuts/format.js +27 -0
- package/dist/utils/shortcuts/index.d.ts +8 -0
- package/dist/utils/shortcuts/index.d.ts.map +1 -0
- package/dist/utils/shortcuts/match.d.ts +9 -0
- package/dist/utils/shortcuts/match.d.ts.map +1 -0
- package/dist/utils/shortcuts/match.js +52 -0
- package/dist/utils/shortcuts/parse.d.ts +10 -0
- package/dist/utils/shortcuts/parse.d.ts.map +1 -0
- package/dist/utils/shortcuts/parse.js +50 -0
- package/dist/utils/shortcuts/platform.d.ts +2 -0
- package/dist/utils/shortcuts/platform.d.ts.map +1 -0
- package/dist/utils/shortcuts/platform.js +5 -0
- package/dist/utils/shortcuts/shortcuts.test.d.ts +2 -0
- package/dist/utils/shortcuts/shortcuts.test.d.ts.map +1 -0
- package/dist/utils/shortcuts/types.d.ts +50 -0
- package/dist/utils/shortcuts/types.d.ts.map +1 -0
- package/eslint-plugin/rules/no-barrel-import.js +21 -9
- package/package.json +21 -8
- package/dist/_virtual/extends.js +0 -6
- package/dist/_virtual/heatmap.js +0 -4
- package/dist/_virtual/highcharts-3d.js +0 -4
- package/dist/_virtual/highcharts-more.js +0 -4
- package/dist/_virtual/highcharts-react.min.js +0 -4
- package/dist/_virtual/highcharts.js +0 -4
- package/dist/_virtual/index17.js +0 -4
- package/dist/_virtual/interopRequireDefault.js +0 -4
- package/dist/_virtual/objectWithoutPropertiesLoose.js +0 -4
- package/dist/_virtual/stock.js +0 -4
- package/dist/_virtual/treemap.js +0 -4
- package/dist/_virtual/venn.js +0 -4
- package/dist/assets/Chart-dropdown.svg.js +0 -4
- package/dist/assets/CheckTickAll.svg.js +0 -4
- package/dist/assets/Collapse.svg.js +0 -4
- package/dist/assets/Comment.svg.js +0 -4
- package/dist/assets/Down.svg.js +0 -4
- package/dist/assets/IA_Logo.svg.js +0 -4
- package/dist/assets/MoreHorizontal.svg.js +0 -4
- package/dist/assets/Up.svg.js +0 -4
- package/dist/assets/active-notificationIcon.svg.js +0 -4
- package/dist/assets/activeModuleIcon.svg.js +0 -4
- package/dist/assets/bell.svg.js +0 -4
- package/dist/assets/bookmarkIcon.svg.js +0 -4
- package/dist/assets/calendar.svg.js +0 -4
- package/dist/assets/chat-home-icon.svg.js +0 -4
- package/dist/assets/chatBotMicIcon.svg.js +0 -4
- package/dist/assets/chatBotRefreshIcon.svg.js +0 -4
- package/dist/assets/chatBotSendIcon.svg.js +0 -4
- package/dist/assets/chatIcon.svg.js +0 -4
- package/dist/assets/chatbotBannerIcon.svg.js +0 -4
- package/dist/assets/chatbotStopIcon.svg.js +0 -4
- package/dist/assets/checkBlueIcon.svg.js +0 -4
- package/dist/assets/checkGreeIcon.svg.js +0 -4
- package/dist/assets/checkIcon.svg.js +0 -4
- package/dist/assets/clientLogos/Balsam.svg.js +0 -4
- package/dist/assets/clientLogos/Starboard.svg.js +0 -4
- package/dist/assets/clientLogos/figs.svg.js +0 -4
- package/dist/assets/close.svg.js +0 -4
- package/dist/assets/collapse-icon.svg.js +0 -4
- package/dist/assets/comment-indicator.svg.js +0 -4
- package/dist/assets/commentEmptyStateIcon.svg.js +0 -4
- package/dist/assets/createFlowImage.svg.js +0 -4
- package/dist/assets/csv-icon.svg.js +0 -4
- package/dist/assets/defaultViewIcon.svg.js +0 -4
- package/dist/assets/defaultViewIconActive.svg.js +0 -4
- package/dist/assets/delete-black.svg.js +0 -4
- package/dist/assets/deleteIcon.svg.js +0 -4
- package/dist/assets/deleteRedIcon.svg.js +0 -4
- package/dist/assets/downArrow.svg.js +0 -4
- package/dist/assets/edit-black.svg.js +0 -4
- package/dist/assets/editYellowIcon.svg.js +0 -4
- package/dist/assets/excel-icon.svg.js +0 -4
- package/dist/assets/expand-icon.svg.js +0 -4
- package/dist/assets/failed-csv-icon.svg.js +0 -4
- package/dist/assets/failed-excel-icon.svg.js +0 -4
- package/dist/assets/file-upload-error.svg.js +0 -4
- package/dist/assets/file-upload.svg.js +0 -4
- package/dist/assets/fileUploadDownloadIcon.svg.js +0 -4
- package/dist/assets/fileUploadRetryIcon.svg.js +0 -4
- package/dist/assets/hamburger-close.svg.js +0 -4
- package/dist/assets/help-icon.svg.js +0 -4
- package/dist/assets/historyIcon.svg.js +0 -4
- package/dist/assets/landingPageAssets/agenticIcons/starIcon1.svg.js +0 -4
- package/dist/assets/landingPageAssets/agenticIcons/starIcon2.svg.js +0 -4
- package/dist/assets/landingPageAssets/agenticIcons/starIcon3.svg.js +0 -4
- package/dist/assets/landingPageAssets/agenticIcons/starIcon4.svg.js +0 -4
- package/dist/assets/landingPageAssets/agenticIcons/starIcon5.svg.js +0 -4
- package/dist/assets/landingPageAssets/book-demo.svg.js +0 -4
- package/dist/assets/landingPageAssets/configuration_icon.svg.js +0 -4
- package/dist/assets/landingPageAssets/launch.svg.js +0 -4
- package/dist/assets/listIcon.svg.js +0 -4
- package/dist/assets/logout-icon.svg.js +0 -4
- package/dist/assets/material-symbols_sort.svg.js +0 -4
- package/dist/assets/message-icon-disabled.svg.js +0 -4
- package/dist/assets/message-icon.svg.js +0 -4
- package/dist/assets/newChatIcon.svg.js +0 -4
- package/dist/assets/no-filter-results.svg.js +0 -4
- package/dist/assets/notAllowedGreenIcon.svg.js +0 -4
- package/dist/assets/notification-dnd.svg.js +0 -4
- package/dist/assets/pageIcon.svg.js +0 -4
- package/dist/assets/pencilIcon.svg.js +0 -4
- package/dist/assets/pinedIcon.svg.js +0 -4
- package/dist/assets/pinnedIcon.svg.js +0 -4
- package/dist/assets/saveViewDeleteIcon.svg.js +0 -4
- package/dist/assets/saveViewEditIcon.svg.js +0 -4
- package/dist/assets/saveViewIcon.svg.js +0 -4
- package/dist/assets/search.svg.js +0 -4
- package/dist/assets/searchIcon.svg.js +0 -4
- package/dist/assets/searchIconTable.svg.js +0 -4
- package/dist/assets/sendIcon.svg.js +0 -4
- package/dist/assets/smartBotAlan.svg.js +0 -4
- package/dist/assets/success-fill.svg.js +0 -4
- package/dist/assets/success-gray.svg.js +0 -4
- package/dist/assets/sun.png.js +0 -4
- package/dist/assets/tableSettingIcon.svg.js +0 -4
- package/dist/assets/tableSortIcon.svg.js +0 -4
- package/dist/assets/text-icon.svg.js +0 -4
- package/dist/assets/thumbsUpYellowIcon.svg.js +0 -4
- package/dist/assets/thumbsupBlueIcon.svg.js +0 -4
- package/dist/assets/treadChatIcon.svg.js +0 -4
- package/dist/assets/treedotIcon.svg.js +0 -4
- package/dist/assets/unpinedIcon.svg.js +0 -4
- package/dist/assets/upload-close-icon.svg.js +0 -4
- package/dist/assets/upload-pause-icon.svg.js +0 -4
- package/dist/assets/uploadDownloadIcon.svg.js +0 -4
- package/dist/assets/userPlusIcon1.svg.js +0 -4
- package/dist/assets/warningRedIcon.svg.js +0 -4
- package/dist/assets/webp/clientLogos/PACSUN.webp.js +0 -4
- package/dist/assets/webp/clientLogos/aaa.webp.js +0 -4
- package/dist/assets/webp/clientLogos/al-futtaim.webp.js +0 -4
- package/dist/assets/webp/clientLogos/arhaus.webp.js +0 -4
- package/dist/assets/webp/clientLogos/asley-stewart.webp.js +0 -4
- package/dist/assets/webp/clientLogos/briscoe.webp.js +0 -4
- package/dist/assets/webp/clientLogos/carters.webp.js +0 -4
- package/dist/assets/webp/clientLogos/cb.webp.js +0 -4
- package/dist/assets/webp/clientLogos/coach.webp.js +0 -4
- package/dist/assets/webp/clientLogos/dollargeneral.webp.js +0 -4
- package/dist/assets/webp/clientLogos/fossil.webp.js +0 -4
- package/dist/assets/webp/clientLogos/jared.webp.js +0 -4
- package/dist/assets/webp/clientLogos/katespade.webp.js +0 -4
- package/dist/assets/webp/clientLogos/kay.webp.js +0 -4
- package/dist/assets/webp/clientLogos/kik.webp.js +0 -4
- package/dist/assets/webp/clientLogos/leslies.webp.js +0 -4
- package/dist/assets/webp/clientLogos/lovisa_1.webp.js +0 -4
- package/dist/assets/webp/clientLogos/lsco_logo_red.webp.js +0 -4
- package/dist/assets/webp/clientLogos/m-s.webp.js +0 -4
- package/dist/assets/webp/clientLogos/oshkosh.webp.js +0 -4
- package/dist/assets/webp/clientLogos/pantagonia.webp.js +0 -4
- package/dist/assets/webp/clientLogos/pink.webp.js +0 -4
- package/dist/assets/webp/clientLogos/pitta-roso.webp.js +0 -4
- package/dist/assets/webp/clientLogos/psp.webp.js +0 -4
- package/dist/assets/webp/clientLogos/ralphlauren.webp.js +0 -4
- package/dist/assets/webp/clientLogos/rebel.webp.js +0 -4
- package/dist/assets/webp/clientLogos/scarpe.webp.js +0 -4
- package/dist/assets/webp/clientLogos/signet.webp.js +0 -4
- package/dist/assets/webp/clientLogos/so5.webp.js +0 -4
- package/dist/assets/webp/clientLogos/spanx.webp.js +0 -4
- package/dist/assets/webp/clientLogos/stevemadden.webp.js +0 -4
- package/dist/assets/webp/clientLogos/stuart.webp.js +0 -4
- package/dist/assets/webp/clientLogos/tillys.webp.js +0 -4
- package/dist/assets/webp/clientLogos/tommy-bahama.webp.js +0 -4
- package/dist/assets/webp/clientLogos/vs.webp.js +0 -4
- package/dist/assets/webp/clientLogos/zales.webp.js +0 -4
- package/dist/assets/webp/emptyState1.webp.js +0 -4
- package/dist/assets/webp/emptyState2.webp.js +0 -4
- package/dist/assets/webp/emptyState3.webp.js +0 -4
- package/dist/assets/webp/emptyState4.webp.js +0 -4
- package/dist/assets/webp/emptyState5.webp.js +0 -4
- package/dist/assets/webp/emptyState6.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/1.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/10.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/11.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/12.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/13.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/14.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/15.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/17.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/19.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/2.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/20.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/21.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/22.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/23.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/24.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/3.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/4.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/5.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/6.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/7.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/8.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/carouselImages/image-2.webp.js +0 -4
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -8
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -7
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -7
- package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -15
- package/dist/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -17
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -12
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +0 -12
- package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -8
- package/dist/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -16
- package/dist/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -7
- package/dist/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -13
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -24
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -25
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -13
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -12
- package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -10
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -8
- package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -10
- package/dist/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -10
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -10
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -14
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -9
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -11
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -11
- package/dist/node_modules/@babel/runtime/helpers/interopRequireDefault.js +0 -13
- package/dist/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +0 -22
- package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js +0 -59
- package/dist/node_modules/@dnd-kit/core/dist/core.esm.js +0 -3405
- package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.js +0 -418
- package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.js +0 -301
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -257
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -122
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -34
- package/dist/node_modules/@popperjs/core/lib/createPopper.js +0 -149
- package/dist/node_modules/@popperjs/core/lib/dom-utils/contains.js +0 -19
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js +0 -38
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js +0 -61
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js +0 -53
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js +0 -7
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js +0 -10
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js +0 -27
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js +0 -9
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js +0 -21
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js +0 -14
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js +0 -51
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js +0 -21
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js +0 -16
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js +0 -31
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindow.js +0 -13
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js +0 -13
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js +0 -9
- package/dist/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js +0 -21
- package/dist/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js +0 -7
- package/dist/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js +0 -8
- package/dist/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js +0 -7
- package/dist/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js +0 -22
- package/dist/node_modules/@popperjs/core/lib/enums.js +0 -54
- package/dist/node_modules/@popperjs/core/lib/modifiers/applyStyles.js +0 -71
- package/dist/node_modules/@popperjs/core/lib/modifiers/arrow.js +0 -72
- package/dist/node_modules/@popperjs/core/lib/modifiers/computeStyles.js +0 -131
- package/dist/node_modules/@popperjs/core/lib/modifiers/eventListeners.js +0 -40
- package/dist/node_modules/@popperjs/core/lib/modifiers/flip.js +0 -113
- package/dist/node_modules/@popperjs/core/lib/modifiers/hide.js +0 -57
- package/dist/node_modules/@popperjs/core/lib/modifiers/offset.js +0 -43
- package/dist/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js +0 -19
- package/dist/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js +0 -105
- package/dist/node_modules/@popperjs/core/lib/popper.js +0 -28
- package/dist/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js +0 -35
- package/dist/node_modules/@popperjs/core/lib/utils/computeOffsets.js +0 -59
- package/dist/node_modules/@popperjs/core/lib/utils/debounce.js +0 -17
- package/dist/node_modules/@popperjs/core/lib/utils/detectOverflow.js +0 -47
- package/dist/node_modules/@popperjs/core/lib/utils/expandToHashMap.js +0 -9
- package/dist/node_modules/@popperjs/core/lib/utils/getAltAxis.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/utils/getBasePlacement.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js +0 -11
- package/dist/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js +0 -14
- package/dist/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js +0 -12
- package/dist/node_modules/@popperjs/core/lib/utils/getVariation.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/utils/math.js +0 -8
- package/dist/node_modules/@popperjs/core/lib/utils/mergeByName.js +0 -16
- package/dist/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js +0 -7
- package/dist/node_modules/@popperjs/core/lib/utils/orderModifiers.js +0 -39
- package/dist/node_modules/@popperjs/core/lib/utils/rectToClientRect.js +0 -11
- package/dist/node_modules/@popperjs/core/lib/utils/userAgent.js +0 -12
- package/dist/node_modules/@popperjs/core/lib/utils/within.js +0 -12
- package/dist/node_modules/@remix-run/router/dist/router.js +0 -400
- package/dist/node_modules/@tiptap/core/dist/index.js +0 -4252
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +0 -52
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js +0 -86
- package/dist/node_modules/@tiptap/extension-bullet-list/dist/index.js +0 -68
- package/dist/node_modules/@tiptap/extension-code/dist/index.js +0 -62
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +0 -196
- package/dist/node_modules/@tiptap/extension-document/dist/index.js +0 -10
- package/dist/node_modules/@tiptap/extension-dropcursor/dist/index.js +0 -21
- package/dist/node_modules/@tiptap/extension-gapcursor/dist/index.js +0 -25
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +0 -60
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js +0 -71
- package/dist/node_modules/@tiptap/extension-highlight/dist/index.js +0 -82
- package/dist/node_modules/@tiptap/extension-history/dist/index.js +0 -40
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +0 -79
- package/dist/node_modules/@tiptap/extension-image/dist/index.js +0 -69
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js +0 -85
- package/dist/node_modules/@tiptap/extension-link/dist/index.js +0 -360
- package/dist/node_modules/@tiptap/extension-list-item/dist/index.js +0 -34
- package/dist/node_modules/@tiptap/extension-mention/dist/index.js +0 -213
- package/dist/node_modules/@tiptap/extension-ordered-list/dist/index.js +0 -86
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +0 -36
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +0 -60
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js +0 -72
- package/dist/node_modules/@tiptap/extension-text/dist/index.js +0 -9
- package/dist/node_modules/@tiptap/react/dist/index.js +0 -1077
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js +0 -84
- package/dist/node_modules/@tiptap/suggestion/dist/index.js +0 -224
- package/dist/node_modules/dompurify/dist/purify.es.js +0 -1012
- package/dist/node_modules/emoji-picker-react/dist/emoji-picker-react.esm.js +0 -25708
- package/dist/node_modules/flairup/dist/esm/index.js +0 -334
- package/dist/node_modules/highcharts/highcharts-3d.js +0 -768
- package/dist/node_modules/highcharts/highcharts-more.js +0 -1814
- package/dist/node_modules/highcharts/highcharts.js +0 -5153
- package/dist/node_modules/highcharts/modules/heatmap.js +0 -416
- package/dist/node_modules/highcharts/modules/stock.js +0 -2095
- package/dist/node_modules/highcharts/modules/treemap.js +0 -558
- package/dist/node_modules/highcharts/modules/venn.js +0 -434
- package/dist/node_modules/highcharts-border-radius/index.js +0 -92
- package/dist/node_modules/highcharts-react-official/dist/highcharts-react.min.js +0 -106
- package/dist/node_modules/linkifyjs/dist/linkify.js +0 -1158
- package/dist/node_modules/memoize-one/dist/memoize-one.esm.js +0 -52
- package/dist/node_modules/orderedmap/dist/index.js +0 -119
- package/dist/node_modules/prosemirror-commands/dist/index.js +0 -526
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js +0 -136
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js +0 -220
- package/dist/node_modules/prosemirror-history/dist/index.js +0 -356
- package/dist/node_modules/prosemirror-keymap/dist/index.js +0 -83
- package/dist/node_modules/prosemirror-model/dist/index.js +0 -3208
- package/dist/node_modules/prosemirror-schema-list/dist/index.js +0 -130
- package/dist/node_modules/prosemirror-state/dist/index.js +0 -935
- package/dist/node_modules/prosemirror-transform/dist/index.js +0 -1861
- package/dist/node_modules/prosemirror-view/dist/index.js +0 -5223
- package/dist/node_modules/react-hook-form/dist/index.esm.js +0 -2089
- package/dist/node_modules/react-router/dist/index.js +0 -375
- package/dist/node_modules/react-router-dom/dist/index.js +0 -521
- package/dist/node_modules/react-select/dist/Select-ef7c0426.esm.js +0 -2317
- package/dist/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -1071
- package/dist/node_modules/react-select/dist/react-select.esm.js +0 -20
- package/dist/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -51
- package/dist/node_modules/react-textarea-autosize/dist/react-textarea-autosize.browser.esm.js +0 -213
- package/dist/node_modules/react-window/dist/index.esm.js +0 -505
- package/dist/node_modules/react-window/node_modules/memoize-one/dist/memoize-one.esm.js +0 -50
- package/dist/node_modules/rope-sequence/dist/index.js +0 -183
- package/dist/node_modules/tippy.js/dist/tippy.esm.js +0 -1283
- package/dist/node_modules/use-composed-ref/dist/use-composed-ref.esm.js +0 -25
- package/dist/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +0 -5
- package/dist/node_modules/use-latest/dist/use-latest.esm.js +0 -12
- package/dist/node_modules/w3c-keyname/index.js +0 -105
- package/dist/stats.html +0 -4950
|
@@ -1,935 +0,0 @@
|
|
|
1
|
-
import { Slice, Fragment, Node, Mark } from "../../prosemirror-model/dist/index.js";
|
|
2
|
-
import { ReplaceStep, ReplaceAroundStep, Transform } from "../../prosemirror-transform/dist/index.js";
|
|
3
|
-
const classesById = /* @__PURE__ */ Object.create(null);
|
|
4
|
-
class Selection {
|
|
5
|
-
/**
|
|
6
|
-
Initialize a selection with the head and anchor and ranges. If no
|
|
7
|
-
ranges are given, constructs a single range across `$anchor` and
|
|
8
|
-
`$head`.
|
|
9
|
-
*/
|
|
10
|
-
constructor($anchor, $head, ranges) {
|
|
11
|
-
this.$anchor = $anchor;
|
|
12
|
-
this.$head = $head;
|
|
13
|
-
this.ranges = ranges || [new SelectionRange($anchor.min($head), $anchor.max($head))];
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
The selection's anchor, as an unresolved position.
|
|
17
|
-
*/
|
|
18
|
-
get anchor() {
|
|
19
|
-
return this.$anchor.pos;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
The selection's head.
|
|
23
|
-
*/
|
|
24
|
-
get head() {
|
|
25
|
-
return this.$head.pos;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
The lower bound of the selection's main range.
|
|
29
|
-
*/
|
|
30
|
-
get from() {
|
|
31
|
-
return this.$from.pos;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
The upper bound of the selection's main range.
|
|
35
|
-
*/
|
|
36
|
-
get to() {
|
|
37
|
-
return this.$to.pos;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
The resolved lower bound of the selection's main range.
|
|
41
|
-
*/
|
|
42
|
-
get $from() {
|
|
43
|
-
return this.ranges[0].$from;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
The resolved upper bound of the selection's main range.
|
|
47
|
-
*/
|
|
48
|
-
get $to() {
|
|
49
|
-
return this.ranges[0].$to;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
Indicates whether the selection contains any content.
|
|
53
|
-
*/
|
|
54
|
-
get empty() {
|
|
55
|
-
let ranges = this.ranges;
|
|
56
|
-
for (let i = 0; i < ranges.length; i++)
|
|
57
|
-
if (ranges[i].$from.pos != ranges[i].$to.pos)
|
|
58
|
-
return false;
|
|
59
|
-
return true;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
Get the content of this selection as a slice.
|
|
63
|
-
*/
|
|
64
|
-
content() {
|
|
65
|
-
return this.$from.doc.slice(this.from, this.to, true);
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
Replace the selection with a slice or, if no slice is given,
|
|
69
|
-
delete the selection. Will append to the given transaction.
|
|
70
|
-
*/
|
|
71
|
-
replace(tr, content = Slice.empty) {
|
|
72
|
-
let lastNode = content.content.lastChild, lastParent = null;
|
|
73
|
-
for (let i = 0; i < content.openEnd; i++) {
|
|
74
|
-
lastParent = lastNode;
|
|
75
|
-
lastNode = lastNode.lastChild;
|
|
76
|
-
}
|
|
77
|
-
let mapFrom = tr.steps.length, ranges = this.ranges;
|
|
78
|
-
for (let i = 0; i < ranges.length; i++) {
|
|
79
|
-
let { $from, $to } = ranges[i], mapping = tr.mapping.slice(mapFrom);
|
|
80
|
-
tr.replaceRange(mapping.map($from.pos), mapping.map($to.pos), i ? Slice.empty : content);
|
|
81
|
-
if (i == 0)
|
|
82
|
-
selectionToInsertionEnd(tr, mapFrom, (lastNode ? lastNode.isInline : lastParent && lastParent.isTextblock) ? -1 : 1);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
Replace the selection with the given node, appending the changes
|
|
87
|
-
to the given transaction.
|
|
88
|
-
*/
|
|
89
|
-
replaceWith(tr, node) {
|
|
90
|
-
let mapFrom = tr.steps.length, ranges = this.ranges;
|
|
91
|
-
for (let i = 0; i < ranges.length; i++) {
|
|
92
|
-
let { $from, $to } = ranges[i], mapping = tr.mapping.slice(mapFrom);
|
|
93
|
-
let from = mapping.map($from.pos), to = mapping.map($to.pos);
|
|
94
|
-
if (i) {
|
|
95
|
-
tr.deleteRange(from, to);
|
|
96
|
-
} else {
|
|
97
|
-
tr.replaceRangeWith(from, to, node);
|
|
98
|
-
selectionToInsertionEnd(tr, mapFrom, node.isInline ? -1 : 1);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
Find a valid cursor or leaf node selection starting at the given
|
|
104
|
-
position and searching back if `dir` is negative, and forward if
|
|
105
|
-
positive. When `textOnly` is true, only consider cursor
|
|
106
|
-
selections. Will return null when no valid selection position is
|
|
107
|
-
found.
|
|
108
|
-
*/
|
|
109
|
-
static findFrom($pos, dir, textOnly = false) {
|
|
110
|
-
let inner = $pos.parent.inlineContent ? new TextSelection($pos) : findSelectionIn($pos.node(0), $pos.parent, $pos.pos, $pos.index(), dir, textOnly);
|
|
111
|
-
if (inner)
|
|
112
|
-
return inner;
|
|
113
|
-
for (let depth = $pos.depth - 1; depth >= 0; depth--) {
|
|
114
|
-
let found = dir < 0 ? findSelectionIn($pos.node(0), $pos.node(depth), $pos.before(depth + 1), $pos.index(depth), dir, textOnly) : findSelectionIn($pos.node(0), $pos.node(depth), $pos.after(depth + 1), $pos.index(depth) + 1, dir, textOnly);
|
|
115
|
-
if (found)
|
|
116
|
-
return found;
|
|
117
|
-
}
|
|
118
|
-
return null;
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
Find a valid cursor or leaf node selection near the given
|
|
122
|
-
position. Searches forward first by default, but if `bias` is
|
|
123
|
-
negative, it will search backwards first.
|
|
124
|
-
*/
|
|
125
|
-
static near($pos, bias = 1) {
|
|
126
|
-
return this.findFrom($pos, bias) || this.findFrom($pos, -bias) || new AllSelection($pos.node(0));
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
Find the cursor or leaf node selection closest to the start of
|
|
130
|
-
the given document. Will return an
|
|
131
|
-
[`AllSelection`](https://prosemirror.net/docs/ref/#state.AllSelection) if no valid position
|
|
132
|
-
exists.
|
|
133
|
-
*/
|
|
134
|
-
static atStart(doc) {
|
|
135
|
-
return findSelectionIn(doc, doc, 0, 0, 1) || new AllSelection(doc);
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
Find the cursor or leaf node selection closest to the end of the
|
|
139
|
-
given document.
|
|
140
|
-
*/
|
|
141
|
-
static atEnd(doc) {
|
|
142
|
-
return findSelectionIn(doc, doc, doc.content.size, doc.childCount, -1) || new AllSelection(doc);
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
Deserialize the JSON representation of a selection. Must be
|
|
146
|
-
implemented for custom classes (as a static class method).
|
|
147
|
-
*/
|
|
148
|
-
static fromJSON(doc, json) {
|
|
149
|
-
if (!json || !json.type)
|
|
150
|
-
throw new RangeError("Invalid input for Selection.fromJSON");
|
|
151
|
-
let cls = classesById[json.type];
|
|
152
|
-
if (!cls)
|
|
153
|
-
throw new RangeError(`No selection type ${json.type} defined`);
|
|
154
|
-
return cls.fromJSON(doc, json);
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
To be able to deserialize selections from JSON, custom selection
|
|
158
|
-
classes must register themselves with an ID string, so that they
|
|
159
|
-
can be disambiguated. Try to pick something that's unlikely to
|
|
160
|
-
clash with classes from other modules.
|
|
161
|
-
*/
|
|
162
|
-
static jsonID(id, selectionClass) {
|
|
163
|
-
if (id in classesById)
|
|
164
|
-
throw new RangeError("Duplicate use of selection JSON ID " + id);
|
|
165
|
-
classesById[id] = selectionClass;
|
|
166
|
-
selectionClass.prototype.jsonID = id;
|
|
167
|
-
return selectionClass;
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
Get a [bookmark](https://prosemirror.net/docs/ref/#state.SelectionBookmark) for this selection,
|
|
171
|
-
which is a value that can be mapped without having access to a
|
|
172
|
-
current document, and later resolved to a real selection for a
|
|
173
|
-
given document again. (This is used mostly by the history to
|
|
174
|
-
track and restore old selections.) The default implementation of
|
|
175
|
-
this method just converts the selection to a text selection and
|
|
176
|
-
returns the bookmark for that.
|
|
177
|
-
*/
|
|
178
|
-
getBookmark() {
|
|
179
|
-
return TextSelection.between(this.$anchor, this.$head).getBookmark();
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
Selection.prototype.visible = true;
|
|
183
|
-
class SelectionRange {
|
|
184
|
-
/**
|
|
185
|
-
Create a range.
|
|
186
|
-
*/
|
|
187
|
-
constructor($from, $to) {
|
|
188
|
-
this.$from = $from;
|
|
189
|
-
this.$to = $to;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
let warnedAboutTextSelection = false;
|
|
193
|
-
function checkTextSelection($pos) {
|
|
194
|
-
if (!warnedAboutTextSelection && !$pos.parent.inlineContent) {
|
|
195
|
-
warnedAboutTextSelection = true;
|
|
196
|
-
console["warn"]("TextSelection endpoint not pointing into a node with inline content (" + $pos.parent.type.name + ")");
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
class TextSelection extends Selection {
|
|
200
|
-
/**
|
|
201
|
-
Construct a text selection between the given points.
|
|
202
|
-
*/
|
|
203
|
-
constructor($anchor, $head = $anchor) {
|
|
204
|
-
checkTextSelection($anchor);
|
|
205
|
-
checkTextSelection($head);
|
|
206
|
-
super($anchor, $head);
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
Returns a resolved position if this is a cursor selection (an
|
|
210
|
-
empty text selection), and null otherwise.
|
|
211
|
-
*/
|
|
212
|
-
get $cursor() {
|
|
213
|
-
return this.$anchor.pos == this.$head.pos ? this.$head : null;
|
|
214
|
-
}
|
|
215
|
-
map(doc, mapping) {
|
|
216
|
-
let $head = doc.resolve(mapping.map(this.head));
|
|
217
|
-
if (!$head.parent.inlineContent)
|
|
218
|
-
return Selection.near($head);
|
|
219
|
-
let $anchor = doc.resolve(mapping.map(this.anchor));
|
|
220
|
-
return new TextSelection($anchor.parent.inlineContent ? $anchor : $head, $head);
|
|
221
|
-
}
|
|
222
|
-
replace(tr, content = Slice.empty) {
|
|
223
|
-
super.replace(tr, content);
|
|
224
|
-
if (content == Slice.empty) {
|
|
225
|
-
let marks = this.$from.marksAcross(this.$to);
|
|
226
|
-
if (marks)
|
|
227
|
-
tr.ensureMarks(marks);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
eq(other) {
|
|
231
|
-
return other instanceof TextSelection && other.anchor == this.anchor && other.head == this.head;
|
|
232
|
-
}
|
|
233
|
-
getBookmark() {
|
|
234
|
-
return new TextBookmark(this.anchor, this.head);
|
|
235
|
-
}
|
|
236
|
-
toJSON() {
|
|
237
|
-
return { type: "text", anchor: this.anchor, head: this.head };
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
@internal
|
|
241
|
-
*/
|
|
242
|
-
static fromJSON(doc, json) {
|
|
243
|
-
if (typeof json.anchor != "number" || typeof json.head != "number")
|
|
244
|
-
throw new RangeError("Invalid input for TextSelection.fromJSON");
|
|
245
|
-
return new TextSelection(doc.resolve(json.anchor), doc.resolve(json.head));
|
|
246
|
-
}
|
|
247
|
-
/**
|
|
248
|
-
Create a text selection from non-resolved positions.
|
|
249
|
-
*/
|
|
250
|
-
static create(doc, anchor, head = anchor) {
|
|
251
|
-
let $anchor = doc.resolve(anchor);
|
|
252
|
-
return new this($anchor, head == anchor ? $anchor : doc.resolve(head));
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
Return a text selection that spans the given positions or, if
|
|
256
|
-
they aren't text positions, find a text selection near them.
|
|
257
|
-
`bias` determines whether the method searches forward (default)
|
|
258
|
-
or backwards (negative number) first. Will fall back to calling
|
|
259
|
-
[`Selection.near`](https://prosemirror.net/docs/ref/#state.Selection^near) when the document
|
|
260
|
-
doesn't contain a valid text position.
|
|
261
|
-
*/
|
|
262
|
-
static between($anchor, $head, bias) {
|
|
263
|
-
let dPos = $anchor.pos - $head.pos;
|
|
264
|
-
if (!bias || dPos)
|
|
265
|
-
bias = dPos >= 0 ? 1 : -1;
|
|
266
|
-
if (!$head.parent.inlineContent) {
|
|
267
|
-
let found = Selection.findFrom($head, bias, true) || Selection.findFrom($head, -bias, true);
|
|
268
|
-
if (found)
|
|
269
|
-
$head = found.$head;
|
|
270
|
-
else
|
|
271
|
-
return Selection.near($head, bias);
|
|
272
|
-
}
|
|
273
|
-
if (!$anchor.parent.inlineContent) {
|
|
274
|
-
if (dPos == 0) {
|
|
275
|
-
$anchor = $head;
|
|
276
|
-
} else {
|
|
277
|
-
$anchor = (Selection.findFrom($anchor, -bias, true) || Selection.findFrom($anchor, bias, true)).$anchor;
|
|
278
|
-
if ($anchor.pos < $head.pos != dPos < 0)
|
|
279
|
-
$anchor = $head;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
return new TextSelection($anchor, $head);
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
Selection.jsonID("text", TextSelection);
|
|
286
|
-
class TextBookmark {
|
|
287
|
-
constructor(anchor, head) {
|
|
288
|
-
this.anchor = anchor;
|
|
289
|
-
this.head = head;
|
|
290
|
-
}
|
|
291
|
-
map(mapping) {
|
|
292
|
-
return new TextBookmark(mapping.map(this.anchor), mapping.map(this.head));
|
|
293
|
-
}
|
|
294
|
-
resolve(doc) {
|
|
295
|
-
return TextSelection.between(doc.resolve(this.anchor), doc.resolve(this.head));
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
class NodeSelection extends Selection {
|
|
299
|
-
/**
|
|
300
|
-
Create a node selection. Does not verify the validity of its
|
|
301
|
-
argument.
|
|
302
|
-
*/
|
|
303
|
-
constructor($pos) {
|
|
304
|
-
let node = $pos.nodeAfter;
|
|
305
|
-
let $end = $pos.node(0).resolve($pos.pos + node.nodeSize);
|
|
306
|
-
super($pos, $end);
|
|
307
|
-
this.node = node;
|
|
308
|
-
}
|
|
309
|
-
map(doc, mapping) {
|
|
310
|
-
let { deleted, pos } = mapping.mapResult(this.anchor);
|
|
311
|
-
let $pos = doc.resolve(pos);
|
|
312
|
-
if (deleted)
|
|
313
|
-
return Selection.near($pos);
|
|
314
|
-
return new NodeSelection($pos);
|
|
315
|
-
}
|
|
316
|
-
content() {
|
|
317
|
-
return new Slice(Fragment.from(this.node), 0, 0);
|
|
318
|
-
}
|
|
319
|
-
eq(other) {
|
|
320
|
-
return other instanceof NodeSelection && other.anchor == this.anchor;
|
|
321
|
-
}
|
|
322
|
-
toJSON() {
|
|
323
|
-
return { type: "node", anchor: this.anchor };
|
|
324
|
-
}
|
|
325
|
-
getBookmark() {
|
|
326
|
-
return new NodeBookmark(this.anchor);
|
|
327
|
-
}
|
|
328
|
-
/**
|
|
329
|
-
@internal
|
|
330
|
-
*/
|
|
331
|
-
static fromJSON(doc, json) {
|
|
332
|
-
if (typeof json.anchor != "number")
|
|
333
|
-
throw new RangeError("Invalid input for NodeSelection.fromJSON");
|
|
334
|
-
return new NodeSelection(doc.resolve(json.anchor));
|
|
335
|
-
}
|
|
336
|
-
/**
|
|
337
|
-
Create a node selection from non-resolved positions.
|
|
338
|
-
*/
|
|
339
|
-
static create(doc, from) {
|
|
340
|
-
return new NodeSelection(doc.resolve(from));
|
|
341
|
-
}
|
|
342
|
-
/**
|
|
343
|
-
Determines whether the given node may be selected as a node
|
|
344
|
-
selection.
|
|
345
|
-
*/
|
|
346
|
-
static isSelectable(node) {
|
|
347
|
-
return !node.isText && node.type.spec.selectable !== false;
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
NodeSelection.prototype.visible = false;
|
|
351
|
-
Selection.jsonID("node", NodeSelection);
|
|
352
|
-
class NodeBookmark {
|
|
353
|
-
constructor(anchor) {
|
|
354
|
-
this.anchor = anchor;
|
|
355
|
-
}
|
|
356
|
-
map(mapping) {
|
|
357
|
-
let { deleted, pos } = mapping.mapResult(this.anchor);
|
|
358
|
-
return deleted ? new TextBookmark(pos, pos) : new NodeBookmark(pos);
|
|
359
|
-
}
|
|
360
|
-
resolve(doc) {
|
|
361
|
-
let $pos = doc.resolve(this.anchor), node = $pos.nodeAfter;
|
|
362
|
-
if (node && NodeSelection.isSelectable(node))
|
|
363
|
-
return new NodeSelection($pos);
|
|
364
|
-
return Selection.near($pos);
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
class AllSelection extends Selection {
|
|
368
|
-
/**
|
|
369
|
-
Create an all-selection over the given document.
|
|
370
|
-
*/
|
|
371
|
-
constructor(doc) {
|
|
372
|
-
super(doc.resolve(0), doc.resolve(doc.content.size));
|
|
373
|
-
}
|
|
374
|
-
replace(tr, content = Slice.empty) {
|
|
375
|
-
if (content == Slice.empty) {
|
|
376
|
-
tr.delete(0, tr.doc.content.size);
|
|
377
|
-
let sel = Selection.atStart(tr.doc);
|
|
378
|
-
if (!sel.eq(tr.selection))
|
|
379
|
-
tr.setSelection(sel);
|
|
380
|
-
} else {
|
|
381
|
-
super.replace(tr, content);
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
toJSON() {
|
|
385
|
-
return { type: "all" };
|
|
386
|
-
}
|
|
387
|
-
/**
|
|
388
|
-
@internal
|
|
389
|
-
*/
|
|
390
|
-
static fromJSON(doc) {
|
|
391
|
-
return new AllSelection(doc);
|
|
392
|
-
}
|
|
393
|
-
map(doc) {
|
|
394
|
-
return new AllSelection(doc);
|
|
395
|
-
}
|
|
396
|
-
eq(other) {
|
|
397
|
-
return other instanceof AllSelection;
|
|
398
|
-
}
|
|
399
|
-
getBookmark() {
|
|
400
|
-
return AllBookmark;
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
Selection.jsonID("all", AllSelection);
|
|
404
|
-
const AllBookmark = {
|
|
405
|
-
map() {
|
|
406
|
-
return this;
|
|
407
|
-
},
|
|
408
|
-
resolve(doc) {
|
|
409
|
-
return new AllSelection(doc);
|
|
410
|
-
}
|
|
411
|
-
};
|
|
412
|
-
function findSelectionIn(doc, node, pos, index, dir, text = false) {
|
|
413
|
-
if (node.inlineContent)
|
|
414
|
-
return TextSelection.create(doc, pos);
|
|
415
|
-
for (let i = index - (dir > 0 ? 0 : 1); dir > 0 ? i < node.childCount : i >= 0; i += dir) {
|
|
416
|
-
let child = node.child(i);
|
|
417
|
-
if (!child.isAtom) {
|
|
418
|
-
let inner = findSelectionIn(doc, child, pos + dir, dir < 0 ? child.childCount : 0, dir, text);
|
|
419
|
-
if (inner)
|
|
420
|
-
return inner;
|
|
421
|
-
} else if (!text && NodeSelection.isSelectable(child)) {
|
|
422
|
-
return NodeSelection.create(doc, pos - (dir < 0 ? child.nodeSize : 0));
|
|
423
|
-
}
|
|
424
|
-
pos += child.nodeSize * dir;
|
|
425
|
-
}
|
|
426
|
-
return null;
|
|
427
|
-
}
|
|
428
|
-
function selectionToInsertionEnd(tr, startLen, bias) {
|
|
429
|
-
let last = tr.steps.length - 1;
|
|
430
|
-
if (last < startLen)
|
|
431
|
-
return;
|
|
432
|
-
let step = tr.steps[last];
|
|
433
|
-
if (!(step instanceof ReplaceStep || step instanceof ReplaceAroundStep))
|
|
434
|
-
return;
|
|
435
|
-
let map = tr.mapping.maps[last], end;
|
|
436
|
-
map.forEach((_from, _to, _newFrom, newTo) => {
|
|
437
|
-
if (end == null)
|
|
438
|
-
end = newTo;
|
|
439
|
-
});
|
|
440
|
-
tr.setSelection(Selection.near(tr.doc.resolve(end), bias));
|
|
441
|
-
}
|
|
442
|
-
const UPDATED_SEL = 1, UPDATED_MARKS = 2, UPDATED_SCROLL = 4;
|
|
443
|
-
class Transaction extends Transform {
|
|
444
|
-
/**
|
|
445
|
-
@internal
|
|
446
|
-
*/
|
|
447
|
-
constructor(state) {
|
|
448
|
-
super(state.doc);
|
|
449
|
-
this.curSelectionFor = 0;
|
|
450
|
-
this.updated = 0;
|
|
451
|
-
this.meta = /* @__PURE__ */ Object.create(null);
|
|
452
|
-
this.time = Date.now();
|
|
453
|
-
this.curSelection = state.selection;
|
|
454
|
-
this.storedMarks = state.storedMarks;
|
|
455
|
-
}
|
|
456
|
-
/**
|
|
457
|
-
The transaction's current selection. This defaults to the editor
|
|
458
|
-
selection [mapped](https://prosemirror.net/docs/ref/#state.Selection.map) through the steps in the
|
|
459
|
-
transaction, but can be overwritten with
|
|
460
|
-
[`setSelection`](https://prosemirror.net/docs/ref/#state.Transaction.setSelection).
|
|
461
|
-
*/
|
|
462
|
-
get selection() {
|
|
463
|
-
if (this.curSelectionFor < this.steps.length) {
|
|
464
|
-
this.curSelection = this.curSelection.map(this.doc, this.mapping.slice(this.curSelectionFor));
|
|
465
|
-
this.curSelectionFor = this.steps.length;
|
|
466
|
-
}
|
|
467
|
-
return this.curSelection;
|
|
468
|
-
}
|
|
469
|
-
/**
|
|
470
|
-
Update the transaction's current selection. Will determine the
|
|
471
|
-
selection that the editor gets when the transaction is applied.
|
|
472
|
-
*/
|
|
473
|
-
setSelection(selection) {
|
|
474
|
-
if (selection.$from.doc != this.doc)
|
|
475
|
-
throw new RangeError("Selection passed to setSelection must point at the current document");
|
|
476
|
-
this.curSelection = selection;
|
|
477
|
-
this.curSelectionFor = this.steps.length;
|
|
478
|
-
this.updated = (this.updated | UPDATED_SEL) & ~UPDATED_MARKS;
|
|
479
|
-
this.storedMarks = null;
|
|
480
|
-
return this;
|
|
481
|
-
}
|
|
482
|
-
/**
|
|
483
|
-
Whether the selection was explicitly updated by this transaction.
|
|
484
|
-
*/
|
|
485
|
-
get selectionSet() {
|
|
486
|
-
return (this.updated & UPDATED_SEL) > 0;
|
|
487
|
-
}
|
|
488
|
-
/**
|
|
489
|
-
Set the current stored marks.
|
|
490
|
-
*/
|
|
491
|
-
setStoredMarks(marks) {
|
|
492
|
-
this.storedMarks = marks;
|
|
493
|
-
this.updated |= UPDATED_MARKS;
|
|
494
|
-
return this;
|
|
495
|
-
}
|
|
496
|
-
/**
|
|
497
|
-
Make sure the current stored marks or, if that is null, the marks
|
|
498
|
-
at the selection, match the given set of marks. Does nothing if
|
|
499
|
-
this is already the case.
|
|
500
|
-
*/
|
|
501
|
-
ensureMarks(marks) {
|
|
502
|
-
if (!Mark.sameSet(this.storedMarks || this.selection.$from.marks(), marks))
|
|
503
|
-
this.setStoredMarks(marks);
|
|
504
|
-
return this;
|
|
505
|
-
}
|
|
506
|
-
/**
|
|
507
|
-
Add a mark to the set of stored marks.
|
|
508
|
-
*/
|
|
509
|
-
addStoredMark(mark) {
|
|
510
|
-
return this.ensureMarks(mark.addToSet(this.storedMarks || this.selection.$head.marks()));
|
|
511
|
-
}
|
|
512
|
-
/**
|
|
513
|
-
Remove a mark or mark type from the set of stored marks.
|
|
514
|
-
*/
|
|
515
|
-
removeStoredMark(mark) {
|
|
516
|
-
return this.ensureMarks(mark.removeFromSet(this.storedMarks || this.selection.$head.marks()));
|
|
517
|
-
}
|
|
518
|
-
/**
|
|
519
|
-
Whether the stored marks were explicitly set for this transaction.
|
|
520
|
-
*/
|
|
521
|
-
get storedMarksSet() {
|
|
522
|
-
return (this.updated & UPDATED_MARKS) > 0;
|
|
523
|
-
}
|
|
524
|
-
/**
|
|
525
|
-
@internal
|
|
526
|
-
*/
|
|
527
|
-
addStep(step, doc) {
|
|
528
|
-
super.addStep(step, doc);
|
|
529
|
-
this.updated = this.updated & ~UPDATED_MARKS;
|
|
530
|
-
this.storedMarks = null;
|
|
531
|
-
}
|
|
532
|
-
/**
|
|
533
|
-
Update the timestamp for the transaction.
|
|
534
|
-
*/
|
|
535
|
-
setTime(time) {
|
|
536
|
-
this.time = time;
|
|
537
|
-
return this;
|
|
538
|
-
}
|
|
539
|
-
/**
|
|
540
|
-
Replace the current selection with the given slice.
|
|
541
|
-
*/
|
|
542
|
-
replaceSelection(slice) {
|
|
543
|
-
this.selection.replace(this, slice);
|
|
544
|
-
return this;
|
|
545
|
-
}
|
|
546
|
-
/**
|
|
547
|
-
Replace the selection with the given node. When `inheritMarks` is
|
|
548
|
-
true and the content is inline, it inherits the marks from the
|
|
549
|
-
place where it is inserted.
|
|
550
|
-
*/
|
|
551
|
-
replaceSelectionWith(node, inheritMarks = true) {
|
|
552
|
-
let selection = this.selection;
|
|
553
|
-
if (inheritMarks)
|
|
554
|
-
node = node.mark(this.storedMarks || (selection.empty ? selection.$from.marks() : selection.$from.marksAcross(selection.$to) || Mark.none));
|
|
555
|
-
selection.replaceWith(this, node);
|
|
556
|
-
return this;
|
|
557
|
-
}
|
|
558
|
-
/**
|
|
559
|
-
Delete the selection.
|
|
560
|
-
*/
|
|
561
|
-
deleteSelection() {
|
|
562
|
-
this.selection.replace(this);
|
|
563
|
-
return this;
|
|
564
|
-
}
|
|
565
|
-
/**
|
|
566
|
-
Replace the given range, or the selection if no range is given,
|
|
567
|
-
with a text node containing the given string.
|
|
568
|
-
*/
|
|
569
|
-
insertText(text, from, to) {
|
|
570
|
-
let schema = this.doc.type.schema;
|
|
571
|
-
if (from == null) {
|
|
572
|
-
if (!text)
|
|
573
|
-
return this.deleteSelection();
|
|
574
|
-
return this.replaceSelectionWith(schema.text(text), true);
|
|
575
|
-
} else {
|
|
576
|
-
if (to == null)
|
|
577
|
-
to = from;
|
|
578
|
-
if (!text)
|
|
579
|
-
return this.deleteRange(from, to);
|
|
580
|
-
let marks = this.storedMarks;
|
|
581
|
-
if (!marks) {
|
|
582
|
-
let $from = this.doc.resolve(from);
|
|
583
|
-
marks = to == from ? $from.marks() : $from.marksAcross(this.doc.resolve(to));
|
|
584
|
-
}
|
|
585
|
-
this.replaceRangeWith(from, to, schema.text(text, marks));
|
|
586
|
-
if (!this.selection.empty && this.selection.to == from + text.length)
|
|
587
|
-
this.setSelection(Selection.near(this.selection.$to));
|
|
588
|
-
return this;
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
/**
|
|
592
|
-
Store a metadata property in this transaction, keyed either by
|
|
593
|
-
name or by plugin.
|
|
594
|
-
*/
|
|
595
|
-
setMeta(key, value) {
|
|
596
|
-
this.meta[typeof key == "string" ? key : key.key] = value;
|
|
597
|
-
return this;
|
|
598
|
-
}
|
|
599
|
-
/**
|
|
600
|
-
Retrieve a metadata property for a given name or plugin.
|
|
601
|
-
*/
|
|
602
|
-
getMeta(key) {
|
|
603
|
-
return this.meta[typeof key == "string" ? key : key.key];
|
|
604
|
-
}
|
|
605
|
-
/**
|
|
606
|
-
Returns true if this transaction doesn't contain any metadata,
|
|
607
|
-
and can thus safely be extended.
|
|
608
|
-
*/
|
|
609
|
-
get isGeneric() {
|
|
610
|
-
for (let _ in this.meta)
|
|
611
|
-
return false;
|
|
612
|
-
return true;
|
|
613
|
-
}
|
|
614
|
-
/**
|
|
615
|
-
Indicate that the editor should scroll the selection into view
|
|
616
|
-
when updated to the state produced by this transaction.
|
|
617
|
-
*/
|
|
618
|
-
scrollIntoView() {
|
|
619
|
-
this.updated |= UPDATED_SCROLL;
|
|
620
|
-
return this;
|
|
621
|
-
}
|
|
622
|
-
/**
|
|
623
|
-
True when this transaction has had `scrollIntoView` called on it.
|
|
624
|
-
*/
|
|
625
|
-
get scrolledIntoView() {
|
|
626
|
-
return (this.updated & UPDATED_SCROLL) > 0;
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
function bind(f, self) {
|
|
630
|
-
return !self || !f ? f : f.bind(self);
|
|
631
|
-
}
|
|
632
|
-
class FieldDesc {
|
|
633
|
-
constructor(name, desc, self) {
|
|
634
|
-
this.name = name;
|
|
635
|
-
this.init = bind(desc.init, self);
|
|
636
|
-
this.apply = bind(desc.apply, self);
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
const baseFields = [
|
|
640
|
-
new FieldDesc("doc", {
|
|
641
|
-
init(config) {
|
|
642
|
-
return config.doc || config.schema.topNodeType.createAndFill();
|
|
643
|
-
},
|
|
644
|
-
apply(tr) {
|
|
645
|
-
return tr.doc;
|
|
646
|
-
}
|
|
647
|
-
}),
|
|
648
|
-
new FieldDesc("selection", {
|
|
649
|
-
init(config, instance) {
|
|
650
|
-
return config.selection || Selection.atStart(instance.doc);
|
|
651
|
-
},
|
|
652
|
-
apply(tr) {
|
|
653
|
-
return tr.selection;
|
|
654
|
-
}
|
|
655
|
-
}),
|
|
656
|
-
new FieldDesc("storedMarks", {
|
|
657
|
-
init(config) {
|
|
658
|
-
return config.storedMarks || null;
|
|
659
|
-
},
|
|
660
|
-
apply(tr, _marks, _old, state) {
|
|
661
|
-
return state.selection.$cursor ? tr.storedMarks : null;
|
|
662
|
-
}
|
|
663
|
-
}),
|
|
664
|
-
new FieldDesc("scrollToSelection", {
|
|
665
|
-
init() {
|
|
666
|
-
return 0;
|
|
667
|
-
},
|
|
668
|
-
apply(tr, prev) {
|
|
669
|
-
return tr.scrolledIntoView ? prev + 1 : prev;
|
|
670
|
-
}
|
|
671
|
-
})
|
|
672
|
-
];
|
|
673
|
-
class Configuration {
|
|
674
|
-
constructor(schema, plugins) {
|
|
675
|
-
this.schema = schema;
|
|
676
|
-
this.plugins = [];
|
|
677
|
-
this.pluginsByKey = /* @__PURE__ */ Object.create(null);
|
|
678
|
-
this.fields = baseFields.slice();
|
|
679
|
-
if (plugins)
|
|
680
|
-
plugins.forEach((plugin) => {
|
|
681
|
-
if (this.pluginsByKey[plugin.key])
|
|
682
|
-
throw new RangeError("Adding different instances of a keyed plugin (" + plugin.key + ")");
|
|
683
|
-
this.plugins.push(plugin);
|
|
684
|
-
this.pluginsByKey[plugin.key] = plugin;
|
|
685
|
-
if (plugin.spec.state)
|
|
686
|
-
this.fields.push(new FieldDesc(plugin.key, plugin.spec.state, plugin));
|
|
687
|
-
});
|
|
688
|
-
}
|
|
689
|
-
}
|
|
690
|
-
class EditorState {
|
|
691
|
-
/**
|
|
692
|
-
@internal
|
|
693
|
-
*/
|
|
694
|
-
constructor(config) {
|
|
695
|
-
this.config = config;
|
|
696
|
-
}
|
|
697
|
-
/**
|
|
698
|
-
The schema of the state's document.
|
|
699
|
-
*/
|
|
700
|
-
get schema() {
|
|
701
|
-
return this.config.schema;
|
|
702
|
-
}
|
|
703
|
-
/**
|
|
704
|
-
The plugins that are active in this state.
|
|
705
|
-
*/
|
|
706
|
-
get plugins() {
|
|
707
|
-
return this.config.plugins;
|
|
708
|
-
}
|
|
709
|
-
/**
|
|
710
|
-
Apply the given transaction to produce a new state.
|
|
711
|
-
*/
|
|
712
|
-
apply(tr) {
|
|
713
|
-
return this.applyTransaction(tr).state;
|
|
714
|
-
}
|
|
715
|
-
/**
|
|
716
|
-
@internal
|
|
717
|
-
*/
|
|
718
|
-
filterTransaction(tr, ignore = -1) {
|
|
719
|
-
for (let i = 0; i < this.config.plugins.length; i++)
|
|
720
|
-
if (i != ignore) {
|
|
721
|
-
let plugin = this.config.plugins[i];
|
|
722
|
-
if (plugin.spec.filterTransaction && !plugin.spec.filterTransaction.call(plugin, tr, this))
|
|
723
|
-
return false;
|
|
724
|
-
}
|
|
725
|
-
return true;
|
|
726
|
-
}
|
|
727
|
-
/**
|
|
728
|
-
Verbose variant of [`apply`](https://prosemirror.net/docs/ref/#state.EditorState.apply) that
|
|
729
|
-
returns the precise transactions that were applied (which might
|
|
730
|
-
be influenced by the [transaction
|
|
731
|
-
hooks](https://prosemirror.net/docs/ref/#state.PluginSpec.filterTransaction) of
|
|
732
|
-
plugins) along with the new state.
|
|
733
|
-
*/
|
|
734
|
-
applyTransaction(rootTr) {
|
|
735
|
-
if (!this.filterTransaction(rootTr))
|
|
736
|
-
return { state: this, transactions: [] };
|
|
737
|
-
let trs = [rootTr], newState = this.applyInner(rootTr), seen = null;
|
|
738
|
-
for (; ; ) {
|
|
739
|
-
let haveNew = false;
|
|
740
|
-
for (let i = 0; i < this.config.plugins.length; i++) {
|
|
741
|
-
let plugin = this.config.plugins[i];
|
|
742
|
-
if (plugin.spec.appendTransaction) {
|
|
743
|
-
let n = seen ? seen[i].n : 0, oldState = seen ? seen[i].state : this;
|
|
744
|
-
let tr = n < trs.length && plugin.spec.appendTransaction.call(plugin, n ? trs.slice(n) : trs, oldState, newState);
|
|
745
|
-
if (tr && newState.filterTransaction(tr, i)) {
|
|
746
|
-
tr.setMeta("appendedTransaction", rootTr);
|
|
747
|
-
if (!seen) {
|
|
748
|
-
seen = [];
|
|
749
|
-
for (let j = 0; j < this.config.plugins.length; j++)
|
|
750
|
-
seen.push(j < i ? { state: newState, n: trs.length } : { state: this, n: 0 });
|
|
751
|
-
}
|
|
752
|
-
trs.push(tr);
|
|
753
|
-
newState = newState.applyInner(tr);
|
|
754
|
-
haveNew = true;
|
|
755
|
-
}
|
|
756
|
-
if (seen)
|
|
757
|
-
seen[i] = { state: newState, n: trs.length };
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
if (!haveNew)
|
|
761
|
-
return { state: newState, transactions: trs };
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
/**
|
|
765
|
-
@internal
|
|
766
|
-
*/
|
|
767
|
-
applyInner(tr) {
|
|
768
|
-
if (!tr.before.eq(this.doc))
|
|
769
|
-
throw new RangeError("Applying a mismatched transaction");
|
|
770
|
-
let newInstance = new EditorState(this.config), fields = this.config.fields;
|
|
771
|
-
for (let i = 0; i < fields.length; i++) {
|
|
772
|
-
let field = fields[i];
|
|
773
|
-
newInstance[field.name] = field.apply(tr, this[field.name], this, newInstance);
|
|
774
|
-
}
|
|
775
|
-
return newInstance;
|
|
776
|
-
}
|
|
777
|
-
/**
|
|
778
|
-
Accessor that constructs and returns a new [transaction](https://prosemirror.net/docs/ref/#state.Transaction) from this state.
|
|
779
|
-
*/
|
|
780
|
-
get tr() {
|
|
781
|
-
return new Transaction(this);
|
|
782
|
-
}
|
|
783
|
-
/**
|
|
784
|
-
Create a new state.
|
|
785
|
-
*/
|
|
786
|
-
static create(config) {
|
|
787
|
-
let $config = new Configuration(config.doc ? config.doc.type.schema : config.schema, config.plugins);
|
|
788
|
-
let instance = new EditorState($config);
|
|
789
|
-
for (let i = 0; i < $config.fields.length; i++)
|
|
790
|
-
instance[$config.fields[i].name] = $config.fields[i].init(config, instance);
|
|
791
|
-
return instance;
|
|
792
|
-
}
|
|
793
|
-
/**
|
|
794
|
-
Create a new state based on this one, but with an adjusted set
|
|
795
|
-
of active plugins. State fields that exist in both sets of
|
|
796
|
-
plugins are kept unchanged. Those that no longer exist are
|
|
797
|
-
dropped, and those that are new are initialized using their
|
|
798
|
-
[`init`](https://prosemirror.net/docs/ref/#state.StateField.init) method, passing in the new
|
|
799
|
-
configuration object..
|
|
800
|
-
*/
|
|
801
|
-
reconfigure(config) {
|
|
802
|
-
let $config = new Configuration(this.schema, config.plugins);
|
|
803
|
-
let fields = $config.fields, instance = new EditorState($config);
|
|
804
|
-
for (let i = 0; i < fields.length; i++) {
|
|
805
|
-
let name = fields[i].name;
|
|
806
|
-
instance[name] = this.hasOwnProperty(name) ? this[name] : fields[i].init(config, instance);
|
|
807
|
-
}
|
|
808
|
-
return instance;
|
|
809
|
-
}
|
|
810
|
-
/**
|
|
811
|
-
Serialize this state to JSON. If you want to serialize the state
|
|
812
|
-
of plugins, pass an object mapping property names to use in the
|
|
813
|
-
resulting JSON object to plugin objects. The argument may also be
|
|
814
|
-
a string or number, in which case it is ignored, to support the
|
|
815
|
-
way `JSON.stringify` calls `toString` methods.
|
|
816
|
-
*/
|
|
817
|
-
toJSON(pluginFields) {
|
|
818
|
-
let result = { doc: this.doc.toJSON(), selection: this.selection.toJSON() };
|
|
819
|
-
if (this.storedMarks)
|
|
820
|
-
result.storedMarks = this.storedMarks.map((m) => m.toJSON());
|
|
821
|
-
if (pluginFields && typeof pluginFields == "object")
|
|
822
|
-
for (let prop in pluginFields) {
|
|
823
|
-
if (prop == "doc" || prop == "selection")
|
|
824
|
-
throw new RangeError("The JSON fields `doc` and `selection` are reserved");
|
|
825
|
-
let plugin = pluginFields[prop], state = plugin.spec.state;
|
|
826
|
-
if (state && state.toJSON)
|
|
827
|
-
result[prop] = state.toJSON.call(plugin, this[plugin.key]);
|
|
828
|
-
}
|
|
829
|
-
return result;
|
|
830
|
-
}
|
|
831
|
-
/**
|
|
832
|
-
Deserialize a JSON representation of a state. `config` should
|
|
833
|
-
have at least a `schema` field, and should contain array of
|
|
834
|
-
plugins to initialize the state with. `pluginFields` can be used
|
|
835
|
-
to deserialize the state of plugins, by associating plugin
|
|
836
|
-
instances with the property names they use in the JSON object.
|
|
837
|
-
*/
|
|
838
|
-
static fromJSON(config, json, pluginFields) {
|
|
839
|
-
if (!json)
|
|
840
|
-
throw new RangeError("Invalid input for EditorState.fromJSON");
|
|
841
|
-
if (!config.schema)
|
|
842
|
-
throw new RangeError("Required config field 'schema' missing");
|
|
843
|
-
let $config = new Configuration(config.schema, config.plugins);
|
|
844
|
-
let instance = new EditorState($config);
|
|
845
|
-
$config.fields.forEach((field) => {
|
|
846
|
-
if (field.name == "doc") {
|
|
847
|
-
instance.doc = Node.fromJSON(config.schema, json.doc);
|
|
848
|
-
} else if (field.name == "selection") {
|
|
849
|
-
instance.selection = Selection.fromJSON(instance.doc, json.selection);
|
|
850
|
-
} else if (field.name == "storedMarks") {
|
|
851
|
-
if (json.storedMarks)
|
|
852
|
-
instance.storedMarks = json.storedMarks.map(config.schema.markFromJSON);
|
|
853
|
-
} else {
|
|
854
|
-
if (pluginFields)
|
|
855
|
-
for (let prop in pluginFields) {
|
|
856
|
-
let plugin = pluginFields[prop], state = plugin.spec.state;
|
|
857
|
-
if (plugin.key == field.name && state && state.fromJSON && Object.prototype.hasOwnProperty.call(json, prop)) {
|
|
858
|
-
instance[field.name] = state.fromJSON.call(plugin, config, json[prop], instance);
|
|
859
|
-
return;
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
instance[field.name] = field.init(config, instance);
|
|
863
|
-
}
|
|
864
|
-
});
|
|
865
|
-
return instance;
|
|
866
|
-
}
|
|
867
|
-
}
|
|
868
|
-
function bindProps(obj, self, target) {
|
|
869
|
-
for (let prop in obj) {
|
|
870
|
-
let val = obj[prop];
|
|
871
|
-
if (val instanceof Function)
|
|
872
|
-
val = val.bind(self);
|
|
873
|
-
else if (prop == "handleDOMEvents")
|
|
874
|
-
val = bindProps(val, self, {});
|
|
875
|
-
target[prop] = val;
|
|
876
|
-
}
|
|
877
|
-
return target;
|
|
878
|
-
}
|
|
879
|
-
class Plugin {
|
|
880
|
-
/**
|
|
881
|
-
Create a plugin.
|
|
882
|
-
*/
|
|
883
|
-
constructor(spec) {
|
|
884
|
-
this.spec = spec;
|
|
885
|
-
this.props = {};
|
|
886
|
-
if (spec.props)
|
|
887
|
-
bindProps(spec.props, this, this.props);
|
|
888
|
-
this.key = spec.key ? spec.key.key : createKey("plugin");
|
|
889
|
-
}
|
|
890
|
-
/**
|
|
891
|
-
Extract the plugin's state field from an editor state.
|
|
892
|
-
*/
|
|
893
|
-
getState(state) {
|
|
894
|
-
return state[this.key];
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
const keys = /* @__PURE__ */ Object.create(null);
|
|
898
|
-
function createKey(name) {
|
|
899
|
-
if (name in keys)
|
|
900
|
-
return name + "$" + ++keys[name];
|
|
901
|
-
keys[name] = 0;
|
|
902
|
-
return name + "$";
|
|
903
|
-
}
|
|
904
|
-
class PluginKey {
|
|
905
|
-
/**
|
|
906
|
-
Create a plugin key.
|
|
907
|
-
*/
|
|
908
|
-
constructor(name = "key") {
|
|
909
|
-
this.key = createKey(name);
|
|
910
|
-
}
|
|
911
|
-
/**
|
|
912
|
-
Get the active plugin with this key, if any, from an editor
|
|
913
|
-
state.
|
|
914
|
-
*/
|
|
915
|
-
get(state) {
|
|
916
|
-
return state.config.pluginsByKey[this.key];
|
|
917
|
-
}
|
|
918
|
-
/**
|
|
919
|
-
Get the plugin's state from an editor state.
|
|
920
|
-
*/
|
|
921
|
-
getState(state) {
|
|
922
|
-
return state[this.key];
|
|
923
|
-
}
|
|
924
|
-
}
|
|
925
|
-
export {
|
|
926
|
-
AllSelection,
|
|
927
|
-
EditorState,
|
|
928
|
-
NodeSelection,
|
|
929
|
-
Plugin,
|
|
930
|
-
PluginKey,
|
|
931
|
-
Selection,
|
|
932
|
-
SelectionRange,
|
|
933
|
-
TextSelection,
|
|
934
|
-
Transaction
|
|
935
|
-
};
|