@kaizen/components 1.73.5 → 1.73.7
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/dist/cjs/Avatar/Avatar.cjs +9 -9
- package/dist/cjs/AvatarGroup/AvatarGroup.cjs +4 -4
- package/dist/cjs/Badge/Badge.cjs +3 -3
- package/dist/cjs/Brand/Brand.cjs +1 -1
- package/dist/cjs/Button/GenericButton/GenericButton.cjs +10 -10
- package/dist/cjs/Calendar/CalendarPopover/CalendarPopover.cjs +1 -1
- package/dist/cjs/Calendar/CalendarRange/CalendarRange.cjs +5 -5
- package/dist/cjs/Calendar/CalendarSingle/CalendarSingle.cjs +3 -3
- package/dist/cjs/Calendar/LegacyCalendarRange/LegacyCalendarRange.cjs +2 -2
- package/dist/cjs/Calendar/utils/calculateDisabledDays.cjs +1 -1
- package/dist/cjs/Calendar/utils/isSelectingDayInCalendar.cjs +1 -1
- package/dist/cjs/Calendar/utils/setFocusInCalendar.cjs +1 -1
- package/dist/cjs/Card/Card.cjs +3 -3
- package/dist/cjs/Checkbox/Checkbox/Checkbox.cjs +3 -3
- package/dist/cjs/Checkbox/CheckboxField/CheckboxField.cjs +4 -4
- package/dist/cjs/Checkbox/CheckboxGroup/CheckboxGroup.cjs +3 -3
- package/dist/cjs/ClearButton/ClearButton.cjs +1 -1
- package/dist/cjs/Collapsible/Collapsible/Collapsible.cjs +4 -4
- package/dist/cjs/Collapsible/Collapsible/Collapsible.module.scss.cjs +1 -2
- package/dist/cjs/Collapsible/CollapsibleGroup/CollapsibleGroup.cjs +3 -3
- package/dist/cjs/DateInput/DateInput/DateInput.cjs +1 -1
- package/dist/cjs/DateInput/DateInputDescription/DateInputDescription.module.scss.cjs +1 -3
- package/dist/cjs/DateInput/DateInputDescription/utils/formatDescriptionInputFormat.cjs +1 -1
- package/dist/cjs/DateInput/DateInputWithIconButton/DateInputWithIconButton.cjs +2 -2
- package/dist/cjs/DatePicker/DatePicker.cjs +11 -11
- package/dist/cjs/DatePicker/subcomponents/DateInputField/DateInputField.cjs +3 -3
- package/dist/cjs/DateRangePicker/DateRangePicker.cjs +5 -5
- package/dist/cjs/DateRangePicker/utils/formatDateRangeValue.cjs +2 -2
- package/dist/cjs/Divider/Divider.cjs +1 -1
- package/dist/cjs/EmptyState/EmptyState.cjs +4 -4
- package/dist/cjs/ErrorPage/ErrorPage.cjs +4 -4
- package/dist/cjs/FieldGroup/FieldGroup.cjs +1 -1
- package/dist/cjs/FieldMessage/FieldMessage.cjs +3 -3
- package/dist/cjs/Filter/Filter/Filter.cjs +4 -4
- package/dist/cjs/Filter/Filter/subcomponents/FilterPopover/FilterPopover.cjs +2 -2
- package/dist/cjs/Filter/FilterBar/context/reducer/filterBarStateReducer.cjs +1 -1
- package/dist/cjs/Filter/FilterBar/context/reducer/setupFilterBarState.cjs +1 -1
- package/dist/cjs/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.cjs +1 -1
- package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.cjs +2 -2
- package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarDatePicker/FilterBarDatePicker.cjs +2 -2
- package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarDateRangePicker/FilterBarDateRangePicker.cjs +2 -2
- package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.cjs +3 -3
- package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.cjs +3 -3
- package/dist/cjs/Filter/FilterButton/FilterButton/FilterButton.cjs +2 -2
- package/dist/cjs/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.cjs +3 -3
- package/dist/cjs/Filter/FilterDatePicker/FilterDatePicker.cjs +1 -1
- package/dist/cjs/Filter/FilterDatePicker/hooks/useDateInputHandlers.cjs +6 -6
- package/dist/cjs/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.cjs +5 -5
- package/dist/cjs/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.cjs +4 -4
- package/dist/cjs/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/filterDatePickerFieldReducer.cjs +1 -1
- package/dist/cjs/Filter/FilterDateRangePicker/FilterDateRangePicker.cjs +1 -1
- package/dist/cjs/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.cjs +7 -7
- package/dist/cjs/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.cjs +18 -18
- package/dist/cjs/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/filterDateRangePickerFieldReducer.cjs +2 -2
- package/dist/cjs/Filter/FilterDateRangePicker/utils/isCompleteDateRange.cjs +1 -1
- package/dist/cjs/Filter/FilterMultiSelect/FilterMultiSelect.cjs +2 -2
- package/dist/cjs/Filter/FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.cjs +1 -1
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuLoadingSkeleton/MenuLoadingSkeleton.cjs +1 -1
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.cjs +3 -3
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.module.scss.cjs +0 -1
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/SearchInput/SearchInput.cjs +2 -2
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/Trigger/FilterTriggerButton/FilterTriggerButton.cjs +1 -1
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/Trigger/RemovableFilterTrigger/RemovableFilterTrigger.cjs +1 -1
- package/dist/cjs/Filter/FilterMultiSelect/utils/getSelectedOptionLabels.cjs +1 -1
- package/dist/cjs/Filter/FilterMultiSelect/utils/getTruncatedLabel.cjs +1 -1
- package/dist/cjs/Filter/FilterSelect/FilterSelect.cjs +1 -1
- package/dist/cjs/GuidanceBlock/GuidanceBlock.cjs +13 -13
- package/dist/cjs/Heading/Heading.cjs +2 -2
- package/dist/cjs/Icon/subcomponents/SVG/SVG.cjs +2 -2
- package/dist/cjs/Illustration/Scene/BrandMomentCaptureIntro/BrandMomentCaptureIntro.cjs +1 -1
- package/dist/cjs/Illustration/Scene/Scene.cjs +8 -8
- package/dist/cjs/Illustration/subcomponents/Base/Base.cjs +1 -1
- package/dist/cjs/Illustration/subcomponents/VideoPlayer/VideoPlayer.cjs +3 -3
- package/dist/cjs/Input/Input/Input.cjs +3 -3
- package/dist/cjs/Input/InputRange/InputRange.cjs +6 -6
- package/dist/cjs/Input/InputSearch/InputSearch.cjs +5 -5
- package/dist/cjs/KaizenProvider/KaizenProvider.cjs +1 -1
- package/dist/cjs/Label/Label.cjs +5 -5
- package/dist/cjs/LikertScaleLegacy/LikertScaleLegacy.cjs +9 -9
- package/dist/cjs/LikertScaleLegacy/utils/determineSelectionFromKeyPress.cjs +2 -2
- package/dist/cjs/Link/Link.cjs +5 -5
- package/dist/cjs/LinkButton/LinkButton.cjs +6 -6
- package/dist/cjs/Loading/LoadingGraphic/LoadingGraphic.module.scss.cjs +0 -1
- package/dist/cjs/Loading/LoadingInput/LoadingInput.cjs +1 -1
- package/dist/cjs/Loading/LoadingInput/LoadingInput.module.scss.cjs +0 -1
- package/dist/cjs/Loading/LoadingParagraph/LoadingParagraph.module.scss.cjs +0 -1
- package/dist/cjs/Loading/LoadingSpinner/LoadingSpinner.cjs +2 -2
- package/dist/cjs/Menu/Menu.cjs +3 -3
- package/dist/cjs/Menu/subcomponents/MenuDropdown/MenuDropdown.cjs +5 -5
- package/dist/cjs/Menu/subcomponents/MenuList/MenuList.cjs +1 -1
- package/dist/cjs/Menu/subcomponents/StatelessMenu/StatelessMenu.cjs +3 -3
- package/dist/cjs/Modal/ConfirmationModal/ConfirmationModal.cjs +5 -5
- package/dist/cjs/Modal/ContextModal/ContextModal.cjs +4 -4
- package/dist/cjs/Modal/GenericModal/GenericModal.cjs +8 -8
- package/dist/cjs/Modal/GenericModal/GenericModal.module.scss.cjs +1 -7
- package/dist/cjs/Modal/GenericModal/subcomponents/ModalAccessibleLabel/ModalAccessibleLabel.cjs +1 -1
- package/dist/cjs/Modal/GenericModal/subcomponents/ModalBody/ModalBody.cjs +1 -1
- package/dist/cjs/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.cjs +1 -1
- package/dist/cjs/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.module.scss.cjs +1 -8
- package/dist/cjs/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.module.scss.cjs +1 -4
- package/dist/cjs/Modal/InputEditModal/InputEditModal.cjs +3 -3
- package/dist/cjs/Modal/InputEditModal/InputEditModal.module.scss.cjs +0 -15
- package/dist/cjs/MultiSelect/MultiSelect.cjs +3 -3
- package/dist/cjs/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.cjs +1 -1
- package/dist/cjs/MultiSelect/subcomponents/Popover/Popover.cjs +1 -1
- package/dist/cjs/Notification/GlobalNotification/GlobalNotification.cjs +1 -1
- package/dist/cjs/Notification/InlineNotification/InlineNotification.cjs +2 -2
- package/dist/cjs/Notification/ToastNotification/ToastNotification/ToastNotification.cjs +2 -2
- package/dist/cjs/Notification/subcomponents/GenericNotification/GenericNotification.cjs +2 -2
- package/dist/cjs/Notification/subcomponents/NotificationHeading/NotificationHeading.cjs +3 -3
- package/dist/cjs/Pagination/Pagination.cjs +1 -1
- package/dist/cjs/Pagination/Pagination.module.scss.cjs +1 -3
- package/dist/cjs/Pagination/subcomponents/DirectionalLink/DirectionalLink.cjs +2 -2
- package/dist/cjs/Pagination/subcomponents/PaginationLink/PaginationLink.cjs +2 -2
- package/dist/cjs/Popover/Popover.cjs +6 -6
- package/dist/cjs/ProgressBar/ProgressBar.cjs +1 -1
- package/dist/cjs/ProgressBar/subcomponents/Label/Label.cjs +1 -1
- package/dist/cjs/Radio/Radio/Radio.cjs +2 -2
- package/dist/cjs/Radio/RadioField/RadioField.cjs +4 -4
- package/dist/cjs/Radio/RadioGroup/RadioGroup.cjs +3 -3
- package/dist/cjs/RichTextEditor/EditableRichTextContent/EditableRichTextContent.cjs +1 -1
- package/dist/cjs/RichTextEditor/RichTextContent/RichTextContent.cjs +1 -1
- package/dist/cjs/RichTextEditor/RichTextEditor/RichTextEditor.cjs +6 -6
- package/dist/cjs/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.cjs +3 -3
- package/dist/cjs/RichTextEditor/RichTextEditor/utils/controlmap.cjs +12 -12
- package/dist/cjs/RichTextEditor/RichTextEditor/utils/keymap.cjs +1 -1
- package/dist/cjs/RichTextEditor/utils/commands/getMarkRange.cjs +2 -2
- package/dist/cjs/RichTextEditor/utils/commands/listIsActive.cjs +1 -1
- package/dist/cjs/RichTextEditor/utils/commands/markIsActive.cjs +1 -1
- package/dist/cjs/RichTextEditor/utils/commands/removeMark.cjs +3 -2
- package/dist/cjs/RichTextEditor/utils/commands/updateMark.cjs +1 -1
- package/dist/cjs/RichTextEditor/utils/core/createRichTextEditor.cjs +4 -4
- package/dist/cjs/RichTextEditor/utils/core/state.cjs +1 -1
- package/dist/cjs/RichTextEditor/utils/plugins/LinkManager/LinkManager.cjs +5 -5
- package/dist/cjs/RichTextEditor/utils/plugins/LinkManager/components/LinkEditor/LinkEditor.cjs +10 -10
- package/dist/cjs/RichTextEditor/utils/plugins/LinkManager/components/LinkModal/LinkModal.cjs +5 -5
- package/dist/cjs/SearchField/SearchField.cjs +3 -3
- package/dist/cjs/Select/Select.cjs +6 -6
- package/dist/cjs/Skirt/Skirt.cjs +2 -2
- package/dist/cjs/Slider/Slider.cjs +3 -3
- package/dist/cjs/SplitButton/subcomponents/DropdownButton/DropdownButton.cjs +1 -1
- package/dist/cjs/Table/Table.cjs +7 -7
- package/dist/cjs/Tabs/subcomponents/Tab.cjs +2 -2
- package/dist/cjs/Tabs/subcomponents/TabList.cjs +1 -1
- package/dist/cjs/Tag/Tag.cjs +4 -4
- package/dist/cjs/Tag/subcomponents/LiveIcon/LiveIcon.module.css.cjs +1 -3
- package/dist/cjs/Text/Text.cjs +2 -2
- package/dist/cjs/TextArea/TextArea.cjs +7 -7
- package/dist/cjs/TextAreaField/TextAreaField.cjs +5 -5
- package/dist/cjs/TextField/TextField.cjs +3 -3
- package/dist/cjs/TextField/TextField.module.scss.cjs +0 -1
- package/dist/cjs/Tile/TileGrid/TileGrid.cjs +1 -1
- package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.cjs +4 -4
- package/dist/cjs/TimeField/TimeField.cjs +2 -2
- package/dist/cjs/TitleBlockZen/TitleBlockZen.cjs +13 -13
- package/dist/cjs/TitleBlockZen/subcomponents/MainActions.cjs +6 -6
- package/dist/cjs/TitleBlockZen/subcomponents/MobileActions.cjs +6 -6
- package/dist/cjs/TitleBlockZen/subcomponents/MobileActions.module.scss.cjs +0 -1
- package/dist/cjs/TitleBlockZen/subcomponents/NavigationTabs.module.scss.cjs +0 -1
- package/dist/cjs/TitleBlockZen/subcomponents/SecondaryActions.cjs +1 -1
- package/dist/cjs/TitleBlockZen/subcomponents/Toolbar.cjs +1 -1
- package/dist/cjs/TitleBlockZen/utils.cjs +1 -1
- package/dist/cjs/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.cjs +2 -2
- package/dist/cjs/Tooltip/Tooltip.cjs +5 -5
- package/dist/cjs/Tooltip/subcomponents/AppearanceAnim.cjs +1 -1
- package/dist/cjs/Tooltip/utils/isSemanticElement.cjs +1 -1
- package/dist/cjs/Well/Well.cjs +3 -3
- package/dist/cjs/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.cjs +1 -1
- package/dist/cjs/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs +1 -1
- package/dist/cjs/Workflow/subcomponents/Header/components/Actions/Actions.cjs +1 -1
- package/dist/cjs/Workflow/subcomponents/Header/components/Branding/Branding.cjs +1 -1
- package/dist/cjs/__next__/Button/Button.cjs +6 -6
- package/dist/cjs/__next__/Button/subcomponents/ButtonContent/ButtonContent.cjs +2 -2
- package/dist/cjs/__next__/Button/subcomponents/PendingContent/PendingContent.cjs +2 -2
- package/dist/cjs/__next__/Menu/MenuItem.cjs +1 -1
- package/dist/cjs/__next__/Select/Select.cjs +5 -5
- package/dist/cjs/__next__/Select/subcomponents/ListBox/ListBox.cjs +1 -1
- package/dist/cjs/__next__/Select/subcomponents/Option/Option.cjs +1 -1
- package/dist/cjs/__next__/Select/subcomponents/SelectToggle/SelectToggle.cjs +2 -2
- package/dist/cjs/__next__/Select/subcomponents/SelectToggle/SelectToggle.module.scss.cjs +0 -1
- package/dist/cjs/__next__/Tabs/subcomponents/TabList/TabList.cjs +5 -5
- package/dist/cjs/__next__/Tag/Tag/Tag.cjs +1 -1
- package/dist/cjs/__next__/Tooltip/Tooltip.cjs +1 -1
- package/dist/cjs/__next__/Tooltip/Tooltip.module.scss.cjs +1 -2
- package/dist/cjs/utils/ReversedColors/ReversedColors.cjs +1 -1
- package/dist/cjs/utils/isRTL/isRTL.cjs +1 -1
- package/dist/cjs/utils/mergeClassNames.cjs +2 -2
- package/dist/cjs/utils/useMediaQueries.cjs +1 -1
- package/dist/cjs/utils/useResizeObserver.cjs +1 -1
- package/dist/esm/Avatar/Avatar.mjs +9 -9
- package/dist/esm/AvatarGroup/AvatarGroup.mjs +4 -4
- package/dist/esm/Badge/Badge.mjs +4 -4
- package/dist/esm/Brand/Brand.mjs +1 -1
- package/dist/esm/Button/GenericButton/GenericButton.mjs +10 -10
- package/dist/esm/Calendar/CalendarPopover/CalendarPopover.mjs +2 -2
- package/dist/esm/Calendar/CalendarRange/CalendarRange.mjs +5 -5
- package/dist/esm/Calendar/CalendarSingle/CalendarSingle.mjs +3 -3
- package/dist/esm/Calendar/LegacyCalendarRange/LegacyCalendarRange.mjs +2 -2
- package/dist/esm/Calendar/utils/calculateDisabledDays.mjs +1 -1
- package/dist/esm/Calendar/utils/isSelectingDayInCalendar.mjs +1 -1
- package/dist/esm/Calendar/utils/setFocusInCalendar.mjs +1 -1
- package/dist/esm/Card/Card.mjs +3 -3
- package/dist/esm/Checkbox/Checkbox/Checkbox.mjs +3 -3
- package/dist/esm/Checkbox/CheckboxField/CheckboxField.mjs +4 -4
- package/dist/esm/Checkbox/CheckboxGroup/CheckboxGroup.mjs +3 -3
- package/dist/esm/ClearButton/ClearButton.mjs +1 -1
- package/dist/esm/Collapsible/Collapsible/Collapsible.mjs +4 -4
- package/dist/esm/Collapsible/Collapsible/Collapsible.module.scss.mjs +1 -2
- package/dist/esm/Collapsible/CollapsibleGroup/CollapsibleGroup.mjs +3 -3
- package/dist/esm/DateInput/DateInput/DateInput.mjs +1 -1
- package/dist/esm/DateInput/DateInputDescription/DateInputDescription.module.scss.mjs +1 -3
- package/dist/esm/DateInput/DateInputDescription/utils/formatDescriptionInputFormat.mjs +1 -1
- package/dist/esm/DateInput/DateInputWithIconButton/DateInputWithIconButton.mjs +2 -2
- package/dist/esm/DatePicker/DatePicker.mjs +11 -11
- package/dist/esm/DatePicker/subcomponents/DateInputField/DateInputField.mjs +3 -3
- package/dist/esm/DateRangePicker/DateRangePicker.mjs +5 -5
- package/dist/esm/DateRangePicker/utils/formatDateRangeValue.mjs +2 -2
- package/dist/esm/Divider/Divider.mjs +1 -1
- package/dist/esm/EmptyState/EmptyState.mjs +5 -5
- package/dist/esm/ErrorPage/ErrorPage.mjs +4 -4
- package/dist/esm/FieldGroup/FieldGroup.mjs +1 -1
- package/dist/esm/FieldMessage/FieldMessage.mjs +3 -3
- package/dist/esm/Filter/Filter/Filter.mjs +4 -4
- package/dist/esm/Filter/Filter/subcomponents/FilterPopover/FilterPopover.mjs +2 -2
- package/dist/esm/Filter/FilterBar/context/reducer/filterBarStateReducer.mjs +1 -1
- package/dist/esm/Filter/FilterBar/context/reducer/setupFilterBarState.mjs +1 -1
- package/dist/esm/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.mjs +1 -1
- package/dist/esm/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.mjs +2 -2
- package/dist/esm/Filter/FilterBar/subcomponents/FilterBarDatePicker/FilterBarDatePicker.mjs +2 -2
- package/dist/esm/Filter/FilterBar/subcomponents/FilterBarDateRangePicker/FilterBarDateRangePicker.mjs +2 -2
- package/dist/esm/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.mjs +3 -3
- package/dist/esm/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.mjs +3 -3
- package/dist/esm/Filter/FilterButton/FilterButton/FilterButton.mjs +2 -2
- package/dist/esm/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.mjs +3 -3
- package/dist/esm/Filter/FilterDatePicker/FilterDatePicker.mjs +1 -1
- package/dist/esm/Filter/FilterDatePicker/hooks/useDateInputHandlers.mjs +6 -6
- package/dist/esm/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.mjs +5 -5
- package/dist/esm/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.mjs +4 -4
- package/dist/esm/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/filterDatePickerFieldReducer.mjs +1 -1
- package/dist/esm/Filter/FilterDateRangePicker/FilterDateRangePicker.mjs +1 -1
- package/dist/esm/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.mjs +7 -7
- package/dist/esm/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.mjs +18 -18
- package/dist/esm/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/filterDateRangePickerFieldReducer.mjs +2 -2
- package/dist/esm/Filter/FilterDateRangePicker/utils/isCompleteDateRange.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/FilterMultiSelect.mjs +2 -2
- package/dist/esm/Filter/FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuLoadingSkeleton/MenuLoadingSkeleton.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.mjs +3 -3
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.module.scss.mjs +0 -1
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/SearchInput/SearchInput.mjs +2 -2
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/Trigger/FilterTriggerButton/FilterTriggerButton.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/Trigger/RemovableFilterTrigger/RemovableFilterTrigger.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/utils/getSelectedOptionLabels.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/utils/getTruncatedLabel.mjs +1 -1
- package/dist/esm/Filter/FilterSelect/FilterSelect.mjs +1 -1
- package/dist/esm/GuidanceBlock/GuidanceBlock.mjs +13 -13
- package/dist/esm/Heading/Heading.mjs +2 -2
- package/dist/esm/Icon/subcomponents/SVG/SVG.mjs +2 -2
- package/dist/esm/Illustration/Scene/BrandMomentCaptureIntro/BrandMomentCaptureIntro.mjs +1 -1
- package/dist/esm/Illustration/Scene/Scene.mjs +8 -8
- package/dist/esm/Illustration/subcomponents/Base/Base.mjs +1 -1
- package/dist/esm/Illustration/subcomponents/VideoPlayer/VideoPlayer.mjs +3 -3
- package/dist/esm/Input/Input/Input.mjs +3 -3
- package/dist/esm/Input/InputRange/InputRange.mjs +6 -6
- package/dist/esm/Input/InputSearch/InputSearch.mjs +5 -5
- package/dist/esm/KaizenProvider/KaizenProvider.mjs +1 -1
- package/dist/esm/Label/Label.mjs +5 -5
- package/dist/esm/LikertScaleLegacy/LikertScaleLegacy.mjs +9 -9
- package/dist/esm/LikertScaleLegacy/utils/determineSelectionFromKeyPress.mjs +2 -2
- package/dist/esm/Link/Link.mjs +5 -5
- package/dist/esm/LinkButton/LinkButton.mjs +6 -6
- package/dist/esm/Loading/LoadingGraphic/LoadingGraphic.module.scss.mjs +0 -1
- package/dist/esm/Loading/LoadingInput/LoadingInput.mjs +1 -1
- package/dist/esm/Loading/LoadingInput/LoadingInput.module.scss.mjs +0 -1
- package/dist/esm/Loading/LoadingParagraph/LoadingParagraph.module.scss.mjs +0 -1
- package/dist/esm/Loading/LoadingSpinner/LoadingSpinner.mjs +2 -2
- package/dist/esm/Menu/Menu.mjs +3 -3
- package/dist/esm/Menu/subcomponents/MenuDropdown/MenuDropdown.mjs +5 -5
- package/dist/esm/Menu/subcomponents/MenuList/MenuList.mjs +1 -1
- package/dist/esm/Menu/subcomponents/StatelessMenu/StatelessMenu.mjs +3 -3
- package/dist/esm/Modal/ConfirmationModal/ConfirmationModal.mjs +5 -5
- package/dist/esm/Modal/ContextModal/ContextModal.mjs +4 -4
- package/dist/esm/Modal/GenericModal/GenericModal.mjs +8 -8
- package/dist/esm/Modal/GenericModal/GenericModal.module.scss.mjs +1 -7
- package/dist/esm/Modal/GenericModal/subcomponents/ModalAccessibleLabel/ModalAccessibleLabel.mjs +1 -1
- package/dist/esm/Modal/GenericModal/subcomponents/ModalBody/ModalBody.mjs +1 -1
- package/dist/esm/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.mjs +1 -1
- package/dist/esm/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.module.scss.mjs +1 -8
- package/dist/esm/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.module.scss.mjs +1 -4
- package/dist/esm/Modal/InputEditModal/InputEditModal.mjs +3 -3
- package/dist/esm/Modal/InputEditModal/InputEditModal.module.scss.mjs +0 -15
- package/dist/esm/MultiSelect/MultiSelect.mjs +3 -3
- package/dist/esm/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.mjs +1 -1
- package/dist/esm/MultiSelect/subcomponents/Popover/Popover.mjs +2 -2
- package/dist/esm/Notification/GlobalNotification/GlobalNotification.mjs +1 -1
- package/dist/esm/Notification/InlineNotification/InlineNotification.mjs +2 -2
- package/dist/esm/Notification/ToastNotification/ToastNotification/ToastNotification.mjs +2 -2
- package/dist/esm/Notification/ToastNotification/context/ToastNotificationContext.mjs +1 -1
- package/dist/esm/Notification/subcomponents/GenericNotification/GenericNotification.mjs +2 -2
- package/dist/esm/Notification/subcomponents/NotificationHeading/NotificationHeading.mjs +3 -3
- package/dist/esm/Pagination/Pagination.mjs +1 -1
- package/dist/esm/Pagination/Pagination.module.scss.mjs +1 -3
- package/dist/esm/Pagination/subcomponents/DirectionalLink/DirectionalLink.mjs +2 -2
- package/dist/esm/Pagination/subcomponents/PaginationLink/PaginationLink.mjs +2 -2
- package/dist/esm/Popover/Popover.mjs +6 -6
- package/dist/esm/ProgressBar/ProgressBar.mjs +1 -1
- package/dist/esm/ProgressBar/subcomponents/Label/Label.mjs +1 -1
- package/dist/esm/Radio/Radio/Radio.mjs +2 -2
- package/dist/esm/Radio/RadioField/RadioField.mjs +4 -4
- package/dist/esm/Radio/RadioGroup/RadioGroup.mjs +3 -3
- package/dist/esm/RichTextEditor/EditableRichTextContent/EditableRichTextContent.mjs +1 -1
- package/dist/esm/RichTextEditor/RichTextContent/RichTextContent.mjs +1 -1
- package/dist/esm/RichTextEditor/RichTextEditor/RichTextEditor.mjs +6 -6
- package/dist/esm/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.mjs +3 -3
- package/dist/esm/RichTextEditor/RichTextEditor/utils/controlmap.mjs +12 -12
- package/dist/esm/RichTextEditor/RichTextEditor/utils/keymap.mjs +1 -1
- package/dist/esm/RichTextEditor/utils/commands/getMarkRange.mjs +2 -2
- package/dist/esm/RichTextEditor/utils/commands/listIsActive.mjs +1 -1
- package/dist/esm/RichTextEditor/utils/commands/markIsActive.mjs +1 -1
- package/dist/esm/RichTextEditor/utils/commands/removeMark.mjs +3 -2
- package/dist/esm/RichTextEditor/utils/commands/updateMark.mjs +1 -1
- package/dist/esm/RichTextEditor/utils/core/createRichTextEditor.mjs +4 -4
- package/dist/esm/RichTextEditor/utils/core/state.mjs +1 -1
- package/dist/esm/RichTextEditor/utils/plugins/LinkManager/LinkManager.mjs +5 -5
- package/dist/esm/RichTextEditor/utils/plugins/LinkManager/components/LinkEditor/LinkEditor.mjs +10 -10
- package/dist/esm/RichTextEditor/utils/plugins/LinkManager/components/LinkModal/LinkModal.mjs +5 -5
- package/dist/esm/RichTextEditor/utils/schema/nodes.mjs +1 -1
- package/dist/esm/SearchField/SearchField.mjs +3 -3
- package/dist/esm/Select/Select.mjs +6 -6
- package/dist/esm/Skirt/Skirt.mjs +2 -2
- package/dist/esm/Slider/Slider.mjs +3 -3
- package/dist/esm/SplitButton/subcomponents/DropdownButton/DropdownButton.mjs +1 -1
- package/dist/esm/Table/Table.mjs +7 -7
- package/dist/esm/Tabs/subcomponents/Tab.mjs +2 -2
- package/dist/esm/Tabs/subcomponents/TabList.mjs +1 -1
- package/dist/esm/Tag/Tag.mjs +4 -4
- package/dist/esm/Tag/subcomponents/LiveIcon/LiveIcon.module.css.mjs +1 -3
- package/dist/esm/Text/Text.mjs +2 -2
- package/dist/esm/TextArea/TextArea.mjs +7 -7
- package/dist/esm/TextAreaField/TextAreaField.mjs +5 -5
- package/dist/esm/TextField/TextField.mjs +3 -3
- package/dist/esm/TextField/TextField.module.scss.mjs +0 -1
- package/dist/esm/Tile/TileGrid/TileGrid.mjs +1 -1
- package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.mjs +4 -4
- package/dist/esm/TimeField/TimeField.mjs +2 -2
- package/dist/esm/TitleBlockZen/TitleBlockZen.mjs +13 -13
- package/dist/esm/TitleBlockZen/subcomponents/MainActions.mjs +6 -6
- package/dist/esm/TitleBlockZen/subcomponents/MobileActions.mjs +6 -6
- package/dist/esm/TitleBlockZen/subcomponents/MobileActions.module.scss.mjs +0 -1
- package/dist/esm/TitleBlockZen/subcomponents/NavigationTabs.module.scss.mjs +0 -1
- package/dist/esm/TitleBlockZen/subcomponents/SecondaryActions.mjs +1 -1
- package/dist/esm/TitleBlockZen/subcomponents/Toolbar.mjs +1 -1
- package/dist/esm/TitleBlockZen/utils.mjs +1 -1
- package/dist/esm/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.mjs +2 -2
- package/dist/esm/Tooltip/Tooltip.mjs +5 -5
- package/dist/esm/Tooltip/subcomponents/AppearanceAnim.mjs +1 -1
- package/dist/esm/Tooltip/utils/isSemanticElement.mjs +1 -1
- package/dist/esm/Well/Well.mjs +3 -3
- package/dist/esm/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.mjs +1 -1
- package/dist/esm/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs +1 -1
- package/dist/esm/Workflow/subcomponents/Header/components/Actions/Actions.mjs +1 -1
- package/dist/esm/Workflow/subcomponents/Header/components/Branding/Branding.mjs +1 -1
- package/dist/esm/__next__/Button/Button.mjs +6 -6
- package/dist/esm/__next__/Button/subcomponents/ButtonContent/ButtonContent.mjs +2 -2
- package/dist/esm/__next__/Button/subcomponents/PendingContent/PendingContent.mjs +2 -2
- package/dist/esm/__next__/Menu/MenuItem.mjs +1 -1
- package/dist/esm/__next__/Select/Select.mjs +5 -5
- package/dist/esm/__next__/Select/subcomponents/ListBox/ListBox.mjs +1 -1
- package/dist/esm/__next__/Select/subcomponents/Option/Option.mjs +1 -1
- package/dist/esm/__next__/Select/subcomponents/SelectToggle/SelectToggle.mjs +2 -2
- package/dist/esm/__next__/Select/subcomponents/SelectToggle/SelectToggle.module.scss.mjs +0 -1
- package/dist/esm/__next__/Tabs/subcomponents/TabList/TabList.mjs +5 -5
- package/dist/esm/__next__/Tag/Tag/Tag.mjs +1 -1
- package/dist/esm/__next__/Tooltip/Tooltip.mjs +1 -1
- package/dist/esm/__next__/Tooltip/Tooltip.module.scss.mjs +1 -2
- package/dist/esm/utils/ReversedColors/ReversedColors.mjs +1 -1
- package/dist/esm/utils/isRTL/isRTL.mjs +1 -1
- package/dist/esm/utils/mergeClassNames.mjs +2 -2
- package/dist/esm/utils/useMediaQueries.mjs +1 -1
- package/dist/esm/utils/useResizeObserver.mjs +1 -1
- package/package.json +9 -9
- package/src/Input/InputRange/InputRange.tsx +1 -1
- package/src/Notification/subcomponents/GenericNotification/_mixins.scss +2 -2
- package/src/RichTextEditor/utils/commands/removeMark.ts +1 -1
- package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkEditor/LinkEditor.tsx +1 -1
- package/src/__next__/Tabs/subcomponents/TabList/TabList.tsx +1 -1
|
@@ -22,7 +22,7 @@ const MultiSelect = /*#__PURE__*/function () {
|
|
|
22
22
|
validationMessage = _a.validationMessage,
|
|
23
23
|
restProps = __rest(_a, ["id", "label", "items", "selectedValues", "description", "onSelectedValuesChange", "isOpen", "onOpenChange", "classNameOverride", "validationMessage"]);
|
|
24
24
|
var fallbackId = useId();
|
|
25
|
-
var id = propsId !== null && propsId !==
|
|
25
|
+
var id = propsId !== null && propsId !== void 0 ? propsId : fallbackId;
|
|
26
26
|
var descriptionId = "".concat(id, "-description");
|
|
27
27
|
var validationId = "".concat(id, "-validation-message");
|
|
28
28
|
var toggleButtonRef = useRef(null);
|
|
@@ -75,7 +75,7 @@ const MultiSelect = /*#__PURE__*/function () {
|
|
|
75
75
|
selectedOptions: Array.from(selectedValues).map(function (value) {
|
|
76
76
|
return itemsMap[value];
|
|
77
77
|
}),
|
|
78
|
-
status: validationMessage === null || validationMessage ===
|
|
78
|
+
status: validationMessage === null || validationMessage === void 0 ? void 0 : validationMessage.status,
|
|
79
79
|
onRemoveOption: handleOnRemoveOption,
|
|
80
80
|
onRemoveAllOptions: handleRemoveAllOptions
|
|
81
81
|
})), validationMessage && /*#__PURE__*/React.createElement(FieldMessage, __assign({
|
|
@@ -97,7 +97,7 @@ const MultiSelect = /*#__PURE__*/function () {
|
|
|
97
97
|
noIsolation: true,
|
|
98
98
|
onActivation: function () {
|
|
99
99
|
var _a, _b;
|
|
100
|
-
return (_b = (_a = refs.floating) === null || _a ===
|
|
100
|
+
return (_b = (_a = refs.floating) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.focus();
|
|
101
101
|
}
|
|
102
102
|
},
|
|
103
103
|
classNameOverride: styles.popover
|
|
@@ -12,7 +12,7 @@ const MultiSelectToggle = /*#__PURE__*/function () {
|
|
|
12
12
|
ariaDescribedBy = _a["aria-describedby"],
|
|
13
13
|
ariaControls = _a["aria-controls"],
|
|
14
14
|
_b = _a.isOpen,
|
|
15
|
-
isOpen = _b ===
|
|
15
|
+
isOpen = _b === void 0 ? false : _b,
|
|
16
16
|
classNameOverride = _a.classNameOverride,
|
|
17
17
|
selectedOptions = _a.selectedOptions,
|
|
18
18
|
onRemoveOption = _a.onRemoveOption,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { createPortal } from 'react-dom';
|
|
4
|
-
import { useFloating, offset, flip, size
|
|
4
|
+
import { useFloating, autoUpdate, offset, flip, size } from '@floating-ui/react-dom';
|
|
5
5
|
import classnames from 'classnames';
|
|
6
6
|
import { FocusOn } from 'react-focus-on';
|
|
7
7
|
import styles from './Popover.module.scss.mjs';
|
|
@@ -41,7 +41,7 @@ const Popover = /*#__PURE__*/function () {
|
|
|
41
41
|
ref: refs.setFloating,
|
|
42
42
|
style: floatingStyles,
|
|
43
43
|
className: classnames(styles.popover, classNameOverride)
|
|
44
|
-
}, restProps), children)), portalContainer !== null && portalContainer !==
|
|
44
|
+
}, restProps), children)), portalContainer !== null && portalContainer !== void 0 ? portalContainer : document.body);
|
|
45
45
|
};
|
|
46
46
|
Popover.displayName = 'Popover';
|
|
47
47
|
return Popover;
|
|
@@ -9,7 +9,7 @@ import { GenericNotification } from '../subcomponents/GenericNotification/Generi
|
|
|
9
9
|
const GlobalNotification = /*#__PURE__*/function () {
|
|
10
10
|
const GlobalNotification = function (_a) {
|
|
11
11
|
var _b = _a.persistent,
|
|
12
|
-
persistent = _b ===
|
|
12
|
+
persistent = _b === void 0 ? false : _b,
|
|
13
13
|
props = __rest(_a, ["persistent"]);
|
|
14
14
|
return /*#__PURE__*/React.createElement(GenericNotification, __assign({
|
|
15
15
|
persistent: persistent,
|
|
@@ -12,9 +12,9 @@ const InlineNotification = /*#__PURE__*/function () {
|
|
|
12
12
|
const InlineNotification = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
13
13
|
var isSubtle = _a.isSubtle,
|
|
14
14
|
_b = _a.hideCloseIcon,
|
|
15
|
-
hideCloseIcon = _b ===
|
|
15
|
+
hideCloseIcon = _b === void 0 ? false : _b,
|
|
16
16
|
_c = _a.persistent,
|
|
17
|
-
persistent = _c ===
|
|
17
|
+
persistent = _c === void 0 ? false : _c,
|
|
18
18
|
classNameOverride = _a.classNameOverride,
|
|
19
19
|
otherProps = __rest(_a, ["isSubtle", "hideCloseIcon", "persistent", "classNameOverride"]);
|
|
20
20
|
return /*#__PURE__*/React.createElement(GenericNotification, __assign({
|
|
@@ -4,13 +4,13 @@ import { useToastNotificationContext } from '../context/ToastNotificationContext
|
|
|
4
4
|
var ToastNotification = function (_a) {
|
|
5
5
|
var propsId = _a.id,
|
|
6
6
|
_b = _a.hideCloseIcon,
|
|
7
|
-
hideCloseIcon = _b ===
|
|
7
|
+
hideCloseIcon = _b === void 0 ? false : _b,
|
|
8
8
|
title = _a.title,
|
|
9
9
|
onHide = _a.onHide,
|
|
10
10
|
children = _a.children,
|
|
11
11
|
restProps = __rest(_a, ["id", "hideCloseIcon", "title", "onHide", "children"]);
|
|
12
12
|
var fallbackId = useId();
|
|
13
|
-
var id = propsId !== null && propsId !==
|
|
13
|
+
var id = propsId !== null && propsId !== void 0 ? propsId : fallbackId;
|
|
14
14
|
var addToastNotification = useToastNotificationContext().addToastNotification;
|
|
15
15
|
var persistent = hideCloseIcon;
|
|
16
16
|
useEffect(function () {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __assign, __spreadArray } from 'tslib';
|
|
2
|
-
import React, {
|
|
2
|
+
import React, { useState, useContext } from 'react';
|
|
3
3
|
import { v4 } from 'uuid';
|
|
4
4
|
var ToastNotificationContext = /*#__PURE__*/React.createContext(null);
|
|
5
5
|
var useToastNotificationContext = function () {
|
|
@@ -14,7 +14,7 @@ const GenericNotification = /*#__PURE__*/function () {
|
|
|
14
14
|
children = _a.children,
|
|
15
15
|
title = _a.title,
|
|
16
16
|
_b = _a.persistent,
|
|
17
|
-
persistent = _b ===
|
|
17
|
+
persistent = _b === void 0 ? false : _b,
|
|
18
18
|
onHide = _a.onHide,
|
|
19
19
|
noBottomMargin = _a.noBottomMargin,
|
|
20
20
|
forceMultiline = _a.forceMultiline,
|
|
@@ -46,7 +46,7 @@ const GenericNotification = /*#__PURE__*/function () {
|
|
|
46
46
|
// Be careful: this assumes the final CSS property to be animated is "margin-top".
|
|
47
47
|
if (isHidden && e.propertyName === 'margin-top') {
|
|
48
48
|
setIsRemoved(true);
|
|
49
|
-
onHide === null || onHide ===
|
|
49
|
+
onHide === null || onHide === void 0 ? void 0 : onHide();
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
if (isRemoved) {
|
|
@@ -8,9 +8,9 @@ const NotificationHeading = /*#__PURE__*/function () {
|
|
|
8
8
|
headingProps = _a.headingProps;
|
|
9
9
|
if (headingProps) {
|
|
10
10
|
return /*#__PURE__*/React.createElement(Heading, {
|
|
11
|
-
variant: (_b = headingProps.variant) !== null && _b !==
|
|
12
|
-
tag: (_c = headingProps.tag) !== null && _c !==
|
|
13
|
-
color: (_d = headingProps.color) !== null && _d !==
|
|
11
|
+
variant: (_b = headingProps.variant) !== null && _b !== void 0 ? _b : 'heading-6',
|
|
12
|
+
tag: (_c = headingProps.tag) !== null && _c !== void 0 ? _c : 'div',
|
|
13
|
+
color: (_d = headingProps.color) !== null && _d !== void 0 ? _d : 'dark',
|
|
14
14
|
classNameOverride: styles.notificationTitle
|
|
15
15
|
}, headingProps.children);
|
|
16
16
|
}
|
|
@@ -15,7 +15,7 @@ import styles from './Pagination.module.scss.mjs';
|
|
|
15
15
|
*/
|
|
16
16
|
var Pagination = function (_a) {
|
|
17
17
|
var _b = _a.currentPage,
|
|
18
|
-
currentPage = _b ===
|
|
18
|
+
currentPage = _b === void 0 ? 1 : _b,
|
|
19
19
|
pageCount = _a.pageCount,
|
|
20
20
|
ariaLabelNextPage = _a.ariaLabelNextPage,
|
|
21
21
|
ariaLabelPreviousPage = _a.ariaLabelPreviousPage,
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
var styles = {
|
|
2
2
|
"container": "Pagination-module_container__JHnDH",
|
|
3
|
-
"pagesIndicatorWrapper": "Pagination-module_pagesIndicatorWrapper__taluU"
|
|
4
|
-
"arrowIconWrapper": "Pagination-module_arrowIconWrapper__RMTET",
|
|
5
|
-
"pageIndicatorFocusRing": "Pagination-module_pageIndicatorFocusRing__57ku4"
|
|
3
|
+
"pagesIndicatorWrapper": "Pagination-module_pagesIndicatorWrapper__taluU"
|
|
6
4
|
};
|
|
7
5
|
export { styles as default };
|
|
@@ -15,9 +15,9 @@ var iconNameMap = {
|
|
|
15
15
|
const DirectionalLink = /*#__PURE__*/function () {
|
|
16
16
|
const DirectionalLink = function (_a) {
|
|
17
17
|
var _b = _a.reversed,
|
|
18
|
-
reversed = _b ===
|
|
18
|
+
reversed = _b === void 0 ? false : _b,
|
|
19
19
|
_c = _a.disabled,
|
|
20
|
-
disabled = _c ===
|
|
20
|
+
disabled = _c === void 0 ? false : _c,
|
|
21
21
|
otherProps = __rest(_a, ["reversed", "disabled"]);
|
|
22
22
|
return /*#__PURE__*/React.createElement(GenericButton, __assign({
|
|
23
23
|
reversed: reversed,
|
|
@@ -10,9 +10,9 @@ const PaginationLink = /*#__PURE__*/function () {
|
|
|
10
10
|
const PaginationLink = function (_a) {
|
|
11
11
|
var pageNumber = _a.pageNumber,
|
|
12
12
|
_b = _a.reversed,
|
|
13
|
-
reversed = _b ===
|
|
13
|
+
reversed = _b === void 0 ? false : _b,
|
|
14
14
|
_c = _a.isActive,
|
|
15
|
-
isActive = _c ===
|
|
15
|
+
isActive = _c === void 0 ? false : _c,
|
|
16
16
|
restProps = __rest(_a, ["pageNumber", "reversed", "isActive"]);
|
|
17
17
|
return /*#__PURE__*/React.createElement(GenericButton, __assign({}, restProps, {
|
|
18
18
|
paginationLink: true,
|
|
@@ -19,17 +19,17 @@ const Popover = /*#__PURE__*/function () {
|
|
|
19
19
|
const Popover = function (_a) {
|
|
20
20
|
var children = _a.children,
|
|
21
21
|
_b = _a.variant,
|
|
22
|
-
variant = _b ===
|
|
22
|
+
variant = _b === void 0 ? 'default' : _b,
|
|
23
23
|
_c = _a.placement,
|
|
24
|
-
placement = _c ===
|
|
24
|
+
placement = _c === void 0 ? 'top' : _c,
|
|
25
25
|
_d = _a.size,
|
|
26
|
-
size = _d ===
|
|
26
|
+
size = _d === void 0 ? 'small' : _d,
|
|
27
27
|
heading = _a.heading,
|
|
28
28
|
_e = _a.dismissible,
|
|
29
|
-
dismissible = _e ===
|
|
29
|
+
dismissible = _e === void 0 ? false : _e,
|
|
30
30
|
onClose = _a.onClose,
|
|
31
31
|
_f = _a.singleLine,
|
|
32
|
-
singleLine = _f ===
|
|
32
|
+
singleLine = _f === void 0 ? false : _f,
|
|
33
33
|
customIcon = _a.customIcon,
|
|
34
34
|
referenceElement = _a.referenceElement,
|
|
35
35
|
classNameOverride = _a.classNameOverride,
|
|
@@ -87,7 +87,7 @@ const Popover = /*#__PURE__*/function () {
|
|
|
87
87
|
className: styles.header
|
|
88
88
|
}, variant !== 'default' && (/*#__PURE__*/React.createElement("span", {
|
|
89
89
|
className: classnames(styles.icon, mapVariantToIconClass(variant))
|
|
90
|
-
}, customIcon !== null && customIcon !==
|
|
90
|
+
}, customIcon !== null && customIcon !== void 0 ? customIcon : mapVariantToIcon(variant))), /*#__PURE__*/React.createElement(Heading, {
|
|
91
91
|
variant: "heading-6",
|
|
92
92
|
classNameOverride: styles.singleLine
|
|
93
93
|
}, heading), dismissible && (/*#__PURE__*/React.createElement("button", {
|
|
@@ -21,7 +21,7 @@ const ProgressBar = /*#__PURE__*/function () {
|
|
|
21
21
|
label = _a.label,
|
|
22
22
|
classNameOverride = _a.classNameOverride,
|
|
23
23
|
_b = _a.isReversed,
|
|
24
|
-
isReversed = _b ===
|
|
24
|
+
isReversed = _b === void 0 ? false : _b,
|
|
25
25
|
restProps = __rest(_a, ["value", "max", "isAnimating", "mood", "color", "subtext", "label", "classNameOverride", "isReversed"]);
|
|
26
26
|
var percentage = calculatePercentage({
|
|
27
27
|
value: value,
|
|
@@ -5,7 +5,7 @@ const Label = /*#__PURE__*/function () {
|
|
|
5
5
|
const Label = function (_a) {
|
|
6
6
|
var content = _a.content,
|
|
7
7
|
_b = _a.isReversed,
|
|
8
|
-
isReversed = _b ===
|
|
8
|
+
isReversed = _b === void 0 ? false : _b;
|
|
9
9
|
return /*#__PURE__*/React.createElement("div", {
|
|
10
10
|
className: styles.label
|
|
11
11
|
}, /*#__PURE__*/React.createElement(Heading, {
|
|
@@ -15,9 +15,9 @@ const Radio = /*#__PURE__*/function () {
|
|
|
15
15
|
var name = _a.name,
|
|
16
16
|
value = _a.value,
|
|
17
17
|
_b = _a.selectedStatus,
|
|
18
|
-
selectedStatus = _b ===
|
|
18
|
+
selectedStatus = _b === void 0 ? false : _b,
|
|
19
19
|
_c = _a.reversed,
|
|
20
|
-
reversed = _c ===
|
|
20
|
+
reversed = _c === void 0 ? false : _c,
|
|
21
21
|
onChange = _a.onChange,
|
|
22
22
|
classNameOverride = _a.classNameOverride,
|
|
23
23
|
restProps = __rest(_a, ["name", "value", "selectedStatus", "reversed", "onChange", "classNameOverride"]);
|
|
@@ -14,16 +14,16 @@ const RadioField = /*#__PURE__*/function () {
|
|
|
14
14
|
var propsId = _a["id"],
|
|
15
15
|
labelText = _a.labelText,
|
|
16
16
|
_b = _a.selectedStatus,
|
|
17
|
-
selectedStatus = _b ===
|
|
17
|
+
selectedStatus = _b === void 0 ? false : _b,
|
|
18
18
|
_c = _a.disabled,
|
|
19
|
-
disabled = _c ===
|
|
19
|
+
disabled = _c === void 0 ? false : _c,
|
|
20
20
|
_d = _a.reversed,
|
|
21
|
-
reversed = _d ===
|
|
21
|
+
reversed = _d === void 0 ? false : _d,
|
|
22
22
|
classNameOverride = _a.classNameOverride,
|
|
23
23
|
dataTestId = _a["data-testid"],
|
|
24
24
|
restProps = __rest(_a, ['id', "labelText", "selectedStatus", "disabled", "reversed", "classNameOverride", 'data-testid']);
|
|
25
25
|
var fallbackId = useId();
|
|
26
|
-
var id = propsId !== null && propsId !==
|
|
26
|
+
var id = propsId !== null && propsId !== void 0 ? propsId : fallbackId;
|
|
27
27
|
// @todo: Move restProps to the wrapping div?
|
|
28
28
|
return /*#__PURE__*/React.createElement("div", {
|
|
29
29
|
"data-testid": dataTestId,
|
|
@@ -9,14 +9,14 @@ const RadioGroup = /*#__PURE__*/function () {
|
|
|
9
9
|
propsLabelId = _a["labelId"],
|
|
10
10
|
labelText = _a.labelText,
|
|
11
11
|
_b = _a.noBottomMargin,
|
|
12
|
-
noBottomMargin = _b ===
|
|
12
|
+
noBottomMargin = _b === void 0 ? false : _b,
|
|
13
13
|
_c = _a.reversed,
|
|
14
|
-
reversed = _c ===
|
|
14
|
+
reversed = _c === void 0 ? false : _c,
|
|
15
15
|
classNameOverride = _a.classNameOverride,
|
|
16
16
|
dataTestId = _a["data-testid"],
|
|
17
17
|
restProps = __rest(_a, ["children", 'labelId', "labelText", "noBottomMargin", "reversed", "classNameOverride", 'data-testid']);
|
|
18
18
|
var fallbackId = useId();
|
|
19
|
-
var labelId = propsLabelId !== null && propsLabelId !==
|
|
19
|
+
var labelId = propsLabelId !== null && propsLabelId !== void 0 ? propsLabelId : fallbackId;
|
|
20
20
|
return /*#__PURE__*/React.createElement("div", __assign({
|
|
21
21
|
"data-testid": dataTestId,
|
|
22
22
|
className: classnames(styles.radioGroupContainer, classNameOverride, noBottomMargin && styles.noBottomMargin, reversed && styles.reversed),
|
|
@@ -18,7 +18,7 @@ const EditableRichTextContent = /*#__PURE__*/function () {
|
|
|
18
18
|
classNameOverride = _a.classNameOverride,
|
|
19
19
|
labelText = _a.labelText,
|
|
20
20
|
_b = _a.isLabelHidden,
|
|
21
|
-
isLabelHidden = _b ===
|
|
21
|
+
isLabelHidden = _b === void 0 ? false : _b,
|
|
22
22
|
contentProps = _a.contentProps,
|
|
23
23
|
restProps = __rest(_a, ["onClick", "content", "classNameOverride", "labelText", "isLabelHidden", "contentProps"]);
|
|
24
24
|
return /*#__PURE__*/React.createElement(React.Fragment, null, !isLabelHidden && /*#__PURE__*/React.createElement(Label, {
|
|
@@ -23,7 +23,7 @@ const RichTextContent = /*#__PURE__*/function () {
|
|
|
23
23
|
var _a;
|
|
24
24
|
// prosemirror only allows us to set this to false (which has caused a strange bug in the platform)
|
|
25
25
|
// so we have to hack a bit to remove the attribute completely
|
|
26
|
-
(_a = document.getElementById(editorId)) === null || _a ===
|
|
26
|
+
(_a = document.getElementById(editorId)) === null || _a === void 0 ? void 0 : _a.removeAttribute('contenteditable');
|
|
27
27
|
// @todo: Fix if possible - avoiding breaking in eslint upgrade
|
|
28
28
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
29
29
|
}, []);
|
|
@@ -45,18 +45,18 @@ const RichTextEditor = /*#__PURE__*/function () {
|
|
|
45
45
|
classNameOverride = _a.classNameOverride,
|
|
46
46
|
controls = _a.controls,
|
|
47
47
|
_b = _a.rows,
|
|
48
|
-
rows = _b ===
|
|
48
|
+
rows = _b === void 0 ? 3 : _b,
|
|
49
49
|
dataError = _a.dataError,
|
|
50
50
|
onDataError = _a.onDataError,
|
|
51
51
|
validationMessage = _a.validationMessage,
|
|
52
52
|
description = _a.description,
|
|
53
53
|
_c = _a.status,
|
|
54
|
-
status = _c ===
|
|
54
|
+
status = _c === void 0 ? 'default' : _c,
|
|
55
55
|
restProps = __rest(_a, ["id", "onChange", "defaultValue", "labelText", 'aria-labelledby', 'aria-describedby', "classNameOverride", "controls", "rows", "dataError", "onDataError", "validationMessage", "description", "status"]);
|
|
56
56
|
var generatedId = useId();
|
|
57
57
|
var schema = useState(createSchemaFromControls(controls))[0];
|
|
58
|
-
var editorId = id !== null && id !==
|
|
59
|
-
var labelId = labelledBy !== null && labelledBy !==
|
|
58
|
+
var editorId = id !== null && id !== void 0 ? id : generatedId;
|
|
59
|
+
var labelId = labelledBy !== null && labelledBy !== void 0 ? labelledBy : "".concat(editorId, "-rte-label");
|
|
60
60
|
var validationMessageAria = validationMessage ? "".concat(editorId, "-rte-validation-message") : '';
|
|
61
61
|
var descriptionAria = description ? "".concat(editorId, "-rte-description") : '';
|
|
62
62
|
var ariaDescribedBy = classnames(validationMessageAria, descriptionAria, describedBy);
|
|
@@ -85,7 +85,7 @@ const RichTextEditor = /*#__PURE__*/function () {
|
|
|
85
85
|
}
|
|
86
86
|
}();
|
|
87
87
|
if (useRichTextEditorResult instanceof Error) {
|
|
88
|
-
onDataError === null || onDataError ===
|
|
88
|
+
onDataError === null || onDataError === void 0 ? void 0 : onDataError();
|
|
89
89
|
return /*#__PURE__*/React.createElement(InlineNotification, {
|
|
90
90
|
headingProps: {
|
|
91
91
|
children: 'Error',
|
|
@@ -93,7 +93,7 @@ const RichTextEditor = /*#__PURE__*/function () {
|
|
|
93
93
|
},
|
|
94
94
|
type: "negative",
|
|
95
95
|
persistent: true
|
|
96
|
-
}, dataError !== null && dataError !==
|
|
96
|
+
}, dataError !== null && dataError !== void 0 ? dataError : 'Something went wrong');
|
|
97
97
|
}
|
|
98
98
|
var editorRef = useRichTextEditorResult[0],
|
|
99
99
|
editorState = useRichTextEditorResult[1],
|
package/dist/esm/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.mjs
CHANGED
|
@@ -8,11 +8,11 @@ const ToggleIconButton = /*#__PURE__*/function () {
|
|
|
8
8
|
var label = props.label,
|
|
9
9
|
icon = props.icon,
|
|
10
10
|
_a = props.isActive,
|
|
11
|
-
isActive = _a ===
|
|
11
|
+
isActive = _a === void 0 ? false : _a,
|
|
12
12
|
_b = props.mood,
|
|
13
|
-
mood = _b ===
|
|
13
|
+
mood = _b === void 0 ? 'default' : _b,
|
|
14
14
|
_c = props.disabled,
|
|
15
|
-
disabled = _c ===
|
|
15
|
+
disabled = _c === void 0 ? false : _c,
|
|
16
16
|
classNameOverride = props.classNameOverride,
|
|
17
17
|
onClick = props.onClick,
|
|
18
18
|
nativeButtonProps = __rest(props, ["label", "icon", "isActive", "mood", "disabled", "classNameOverride", "onClick"]);
|
|
@@ -22,14 +22,14 @@ var chainTransactions = function () {
|
|
|
22
22
|
var _a;
|
|
23
23
|
var updateStateAndDispatch = function (tr) {
|
|
24
24
|
state = state.apply(tr);
|
|
25
|
-
dispatch === null || dispatch ===
|
|
25
|
+
dispatch === null || dispatch === void 0 ? void 0 : dispatch(tr);
|
|
26
26
|
};
|
|
27
27
|
var lastCommand = commands.pop();
|
|
28
28
|
for (var _i = 0, commands_1 = commands; _i < commands_1.length; _i++) {
|
|
29
29
|
var command = commands_1[_i];
|
|
30
30
|
command(state, updateStateAndDispatch);
|
|
31
31
|
}
|
|
32
|
-
return (_a = lastCommand === null || lastCommand ===
|
|
32
|
+
return (_a = lastCommand === null || lastCommand === void 0 ? void 0 : lastCommand(state, dispatch)) !== null && _a !== void 0 ? _a : false;
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
/** Dispatches a transaction to create initial p tag required for pm commands */
|
|
@@ -68,7 +68,7 @@ var createLiftListCommand = function () {
|
|
|
68
68
|
var _a;
|
|
69
69
|
var $from = state.selection.$from;
|
|
70
70
|
// calculate the parent node from the current tag selected
|
|
71
|
-
var listItemNode = (_a = $from.node($from.depth - 1)) === null || _a ===
|
|
71
|
+
var listItemNode = (_a = $from.node($from.depth - 1)) === null || _a === void 0 ? void 0 : _a.type;
|
|
72
72
|
return ProseMirrorSchemaList.liftListItem(listItemNode)(state, dispatch);
|
|
73
73
|
};
|
|
74
74
|
};
|
|
@@ -77,7 +77,7 @@ var createIndentListCommand = function () {
|
|
|
77
77
|
return function (state, dispatch) {
|
|
78
78
|
var _a;
|
|
79
79
|
var $from = state.selection.$from;
|
|
80
|
-
var listItemNode = (_a = $from.node($from.depth - 1)) === null || _a ===
|
|
80
|
+
var listItemNode = (_a = $from.node($from.depth - 1)) === null || _a === void 0 ? void 0 : _a.type;
|
|
81
81
|
return ProseMirrorSchemaList.sinkListItem(listItemNode)(state, dispatch);
|
|
82
82
|
};
|
|
83
83
|
};
|
|
@@ -85,8 +85,8 @@ var createIndentListCommand = function () {
|
|
|
85
85
|
var liftListIsDisabled = function (state) {
|
|
86
86
|
var _a;
|
|
87
87
|
var $from = state.selection.$from;
|
|
88
|
-
var listItemNode = (_a = $from.node($from.depth - 1)) === null || _a ===
|
|
89
|
-
var isValidListItem = (listItemNode === null || listItemNode ===
|
|
88
|
+
var listItemNode = (_a = $from.node($from.depth - 1)) === null || _a === void 0 ? void 0 : _a.type;
|
|
89
|
+
var isValidListItem = (listItemNode === null || listItemNode === void 0 ? void 0 : listItemNode.name) === 'listItem' || false;
|
|
90
90
|
return !isValidListItem;
|
|
91
91
|
};
|
|
92
92
|
/** handler indent list disabled state */
|
|
@@ -95,8 +95,8 @@ var indentListIsDisabled = function (state) {
|
|
|
95
95
|
var _b = state.selection,
|
|
96
96
|
$from = _b.$from,
|
|
97
97
|
$to = _b.$to;
|
|
98
|
-
var listItemNode = (_a = $from.node($from.depth - 1)) === null || _a ===
|
|
99
|
-
var isValidListItem = (listItemNode === null || listItemNode ===
|
|
98
|
+
var listItemNode = (_a = $from.node($from.depth - 1)) === null || _a === void 0 ? void 0 : _a.type;
|
|
99
|
+
var isValidListItem = (listItemNode === null || listItemNode === void 0 ? void 0 : listItemNode.name) === 'listItem' || false;
|
|
100
100
|
if (!isValidListItem) {
|
|
101
101
|
return true;
|
|
102
102
|
}
|
|
@@ -110,8 +110,8 @@ var createControlGroupIndex = function (controls) {
|
|
|
110
110
|
return controls.reduce(function (groups, currentControl) {
|
|
111
111
|
var _a;
|
|
112
112
|
var _b;
|
|
113
|
-
if (!(currentControl === null || currentControl ===
|
|
114
|
-
return __assign(__assign({}, groups), (_a = {}, _a[currentControl.name] = (_b = currentControl.group) !== null && _b !==
|
|
113
|
+
if (!(currentControl === null || currentControl === void 0 ? void 0 : currentControl.name)) return groups;
|
|
114
|
+
return __assign(__assign({}, groups), (_a = {}, _a[currentControl.name] = (_b = currentControl.group) !== null && _b !== void 0 ? _b : 'ungrouped', _a));
|
|
115
115
|
}, {});
|
|
116
116
|
};
|
|
117
117
|
/** Creates an initial object used to map button configuration into its respective groups */
|
|
@@ -130,7 +130,7 @@ var createInitialControls = function (controlGroupIndex) {
|
|
|
130
130
|
var getGroupIndex = function (controlGroupIndex, controlType) {
|
|
131
131
|
var _a;
|
|
132
132
|
if (controlType) {
|
|
133
|
-
return (_a = controlGroupIndex[controlType]) !== null && _a !==
|
|
133
|
+
return (_a = controlGroupIndex[controlType]) !== null && _a !== void 0 ? _a : 'ungrouped';
|
|
134
134
|
}
|
|
135
135
|
return 'ungrouped';
|
|
136
136
|
};
|
|
@@ -215,7 +215,7 @@ var buildControlMap = function (schema, editorState, controls) {
|
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
if (schema.nodes.orderedList || schema.nodes.bulletList) {
|
|
218
|
-
var groupIndex = (_b = (_a = controlGroupIndex.orderedList) !== null && _a !==
|
|
218
|
+
var groupIndex = (_b = (_a = controlGroupIndex.orderedList) !== null && _a !== void 0 ? _a : controlGroupIndex.bulletList) !== null && _b !== void 0 ? _b : 'ungrouped';
|
|
219
219
|
toolbarControls[groupIndex].push({
|
|
220
220
|
action: createLiftListCommand(),
|
|
221
221
|
disabled: liftListIsDisabled(editorState),
|
|
@@ -52,7 +52,7 @@ var buildKeymap = function (schema) {
|
|
|
52
52
|
if (schema.nodes.hardBreak) {
|
|
53
53
|
var br_1 = schema.nodes.hardBreak;
|
|
54
54
|
var cmd = chainCommands(exitCode, function (state, dispatch) {
|
|
55
|
-
dispatch === null || dispatch ===
|
|
55
|
+
dispatch === null || dispatch === void 0 ? void 0 : dispatch(state.tr.replaceSelectionWith(br_1.create()).scrollIntoView());
|
|
56
56
|
return true;
|
|
57
57
|
});
|
|
58
58
|
keys['Mod-Enter'] = cmd;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
// At the time of writing the implication of this is on links: they cannot span across multiple nodes.
|
|
3
3
|
// There's no impact on the other marks like bold, italics and underline.
|
|
4
4
|
var getMarkRange = function ($pos, type) {
|
|
5
|
-
if ($pos ===
|
|
5
|
+
if ($pos === void 0) {
|
|
6
6
|
$pos = null;
|
|
7
7
|
}
|
|
8
|
-
if (type ===
|
|
8
|
+
if (type === void 0) {
|
|
9
9
|
type = null;
|
|
10
10
|
}
|
|
11
11
|
if (!$pos || !type) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { findParentNodeOfTypeClosestToPos } from 'prosemirror-utils';
|
|
2
2
|
var listIsActive = function (state, type, listNodes) {
|
|
3
3
|
var listNode = findParentNodeOfTypeClosestToPos(state.selection.$from, listNodes);
|
|
4
|
-
return (listNode === null || listNode ===
|
|
4
|
+
return (listNode === null || listNode === void 0 ? void 0 : listNode.node.type) === type;
|
|
5
5
|
};
|
|
6
6
|
export { listIsActive };
|
|
@@ -6,7 +6,7 @@ var markIsActive = function (state, type) {
|
|
|
6
6
|
to = _b.to,
|
|
7
7
|
empty = _b.empty;
|
|
8
8
|
if (empty) {
|
|
9
|
-
return !!type.isInSet((_a = state.storedMarks) !== null && _a !==
|
|
9
|
+
return !!type.isInSet((_a = state.storedMarks) !== null && _a !== void 0 ? _a : $from.marks());
|
|
10
10
|
}
|
|
11
11
|
return !!state.doc.rangeHasMark(from, to, type);
|
|
12
12
|
};
|
|
@@ -2,12 +2,13 @@ import { getMarkRange } from './getMarkRange.mjs';
|
|
|
2
2
|
|
|
3
3
|
/** Remove part or all of the Mark from the current selection */
|
|
4
4
|
var removeMark = function (type, options) {
|
|
5
|
-
if (options ===
|
|
5
|
+
if (options === void 0) {
|
|
6
6
|
options = {
|
|
7
7
|
toExtent: false
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
10
|
return function (state, dispatch) {
|
|
11
|
+
var _a;
|
|
11
12
|
var tr = state.tr,
|
|
12
13
|
selection = state.selection,
|
|
13
14
|
doc = state.doc;
|
|
@@ -19,7 +20,7 @@ var removeMark = function (type, options) {
|
|
|
19
20
|
dispatch(tr.removeStoredMark(type));
|
|
20
21
|
} else {
|
|
21
22
|
if (options.range || options.toExtent) {
|
|
22
|
-
var range = options.range
|
|
23
|
+
var range = (_a = options.range) !== null && _a !== void 0 ? _a : getMarkRange($from, type);
|
|
23
24
|
if (range) {
|
|
24
25
|
from = range.from;
|
|
25
26
|
to = range.to;
|
|
@@ -2,7 +2,7 @@ import { getMarkRange } from './getMarkRange.mjs';
|
|
|
2
2
|
|
|
3
3
|
/** Update Mark attributes, create nested Marks or split Marks of the same type */
|
|
4
4
|
var updateMark = function (type, attrs, options) {
|
|
5
|
-
if (options ===
|
|
5
|
+
if (options === void 0) {
|
|
6
6
|
options = {
|
|
7
7
|
toExtent: false
|
|
8
8
|
};
|
|
@@ -9,21 +9,21 @@ var createRichTextEditor = function (_a) {
|
|
|
9
9
|
var initialEditorState = _a.initialEditorState,
|
|
10
10
|
node = _a.node,
|
|
11
11
|
_b = _a.onChange,
|
|
12
|
-
onChange = _b ===
|
|
12
|
+
onChange = _b === void 0 ? function () {
|
|
13
13
|
return undefined;
|
|
14
14
|
} : _b,
|
|
15
15
|
attributes = _a.attributes,
|
|
16
16
|
_c = _a.isEditable,
|
|
17
|
-
isEditable = _c ===
|
|
17
|
+
isEditable = _c === void 0 ? function () {
|
|
18
18
|
return true;
|
|
19
19
|
} : _c;
|
|
20
20
|
var editorView = null;
|
|
21
21
|
// Handle transactions eminating from the EditorView instance
|
|
22
22
|
var dispatch = function (tx) {
|
|
23
|
-
var newEditorState = editorView === null || editorView ===
|
|
23
|
+
var newEditorState = editorView === null || editorView === void 0 ? void 0 : editorView.state.apply(tx);
|
|
24
24
|
if (newEditorState) {
|
|
25
25
|
onChange(newEditorState);
|
|
26
|
-
editorView === null || editorView ===
|
|
26
|
+
editorView === null || editorView === void 0 ? void 0 : editorView.updateState(newEditorState);
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
// Allow the dispatcher to handle either a Command or a Transaction so we can
|
|
@@ -48,7 +48,7 @@ var LinkManager = /** @class */function () {
|
|
|
48
48
|
};
|
|
49
49
|
LinkManager.prototype.destroy = function () {
|
|
50
50
|
var _a;
|
|
51
|
-
(_a = this.tooltipTarget) === null || _a ===
|
|
51
|
+
(_a = this.tooltipTarget) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
52
52
|
window.removeEventListener('resize', this.onResize);
|
|
53
53
|
};
|
|
54
54
|
LinkManager.prototype.createElement = function (view) {
|
|
@@ -58,12 +58,12 @@ var LinkManager = /** @class */function () {
|
|
|
58
58
|
};
|
|
59
59
|
LinkManager.prototype.updateElement = function (view) {
|
|
60
60
|
var _a;
|
|
61
|
-
(_a = this.tooltipTarget) === null || _a ===
|
|
61
|
+
(_a = this.tooltipTarget) === null || _a === void 0 ? void 0 : _a.update(this.getEditorProps(view));
|
|
62
62
|
};
|
|
63
63
|
LinkManager.prototype.destroyElement = function (view) {
|
|
64
64
|
var _a;
|
|
65
65
|
view.dispatch(this.validateLinks);
|
|
66
|
-
(_a = this.tooltipTarget) === null || _a ===
|
|
66
|
+
(_a = this.tooltipTarget) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
67
67
|
this.tooltipTarget = null;
|
|
68
68
|
};
|
|
69
69
|
LinkManager.prototype.getEditorProps = function (view) {
|
|
@@ -121,9 +121,9 @@ var defaultLinkAttributeValidator = function (attrs) {
|
|
|
121
121
|
var createLinkManager = function (_a) {
|
|
122
122
|
var markType = _a.markType,
|
|
123
123
|
_b = _a.editorComponent,
|
|
124
|
-
editorComponent = _b ===
|
|
124
|
+
editorComponent = _b === void 0 ? LinkEditor : _b,
|
|
125
125
|
_c = _a.linkAttributeValidator,
|
|
126
|
-
linkAttributeValidator = _c ===
|
|
126
|
+
linkAttributeValidator = _c === void 0 ? defaultLinkAttributeValidator : _c;
|
|
127
127
|
return new Plugin({
|
|
128
128
|
view: function (editorView) {
|
|
129
129
|
return new LinkManager(editorView, markType, editorComponent, linkAttributeValidator);
|