@eccenca/gui-elements 25.0.0 → 25.1.0-changeupgradedtoreact18cmem6639.0
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/CHANGELOG.md +124 -0
- package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js +30 -26
- package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
- package/dist/cjs/cmem/ActivityControl/ActivityExecutionErrorReportModal.js +11 -5
- package/dist/cjs/cmem/ActivityControl/ActivityExecutionErrorReportModal.js.map +1 -1
- package/dist/cjs/cmem/ActivityControl/SilkActivityControl.js +1 -3
- package/dist/cjs/cmem/ActivityControl/SilkActivityControl.js.map +1 -1
- package/dist/cjs/cmem/ContentBlobToggler/ContentBlobToggler.js +13 -6
- package/dist/cjs/cmem/ContentBlobToggler/ContentBlobToggler.js.map +1 -1
- package/dist/cjs/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js +49 -11
- package/dist/cjs/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js.map +1 -1
- package/dist/cjs/cmem/markdown/Markdown.js +2 -2
- package/dist/cjs/cmem/markdown/Markdown.js.map +1 -1
- package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlowV12.js.map +1 -1
- package/dist/cjs/cmem/react-flow/StickyNoteModal/StickyNoteModal.js +1 -1
- package/dist/cjs/cmem/react-flow/StickyNoteModal/StickyNoteModal.js.map +1 -1
- package/dist/cjs/cmem/react-flow/configuration/graph.js +0 -2
- package/dist/cjs/cmem/react-flow/configuration/graph.js.map +1 -1
- package/dist/cjs/cmem/react-flow/configuration/linking.js +0 -2
- package/dist/cjs/cmem/react-flow/configuration/linking.js.map +1 -1
- package/dist/cjs/cmem/react-flow/configuration/workflow.js +0 -2
- package/dist/cjs/cmem/react-flow/configuration/workflow.js.map +1 -1
- package/dist/cjs/common/Intent/index.js +1 -1
- package/dist/cjs/common/Intent/index.js.map +1 -1
- package/dist/cjs/common/index.js +1 -0
- package/dist/cjs/common/index.js.map +1 -1
- package/dist/cjs/common/utils/CssCustomProperties.js.map +1 -1
- package/dist/cjs/common/utils/colorHash.js +26 -12
- package/dist/cjs/common/utils/colorHash.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationSidebarNavigation.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationTitle.js +5 -1
- package/dist/cjs/components/Application/ApplicationTitle.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationViewability.js +33 -0
- package/dist/cjs/components/Application/ApplicationViewability.js.map +1 -0
- package/dist/cjs/components/Application/index.js +1 -0
- package/dist/cjs/components/Application/index.js.map +1 -1
- package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js +1 -1
- package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js.map +1 -1
- package/dist/cjs/components/AutoSuggestion/AutoSuggestionList.js.map +1 -1
- package/dist/cjs/components/AutocompleteField/AutoCompleteField.js +2 -9
- package/dist/cjs/components/AutocompleteField/AutoCompleteField.js.map +1 -1
- package/dist/cjs/components/AutocompleteField/autoCompleteFieldUtils.js.map +1 -1
- package/dist/cjs/components/Button/Button.js +6 -2
- package/dist/cjs/components/Button/Button.js.map +1 -1
- package/dist/cjs/components/ColorField/ColorField.js +114 -0
- package/dist/cjs/components/ColorField/ColorField.js.map +1 -0
- package/dist/cjs/components/ContentGroup/ContentGroup.js +19 -19
- package/dist/cjs/components/ContentGroup/ContentGroup.js.map +1 -1
- package/dist/cjs/components/ContextOverlay/ContextMenu.js +4 -4
- package/dist/cjs/components/ContextOverlay/ContextMenu.js.map +1 -1
- package/dist/cjs/components/ContextOverlay/ContextOverlay.js +3 -2
- package/dist/cjs/components/ContextOverlay/ContextOverlay.js.map +1 -1
- package/dist/cjs/components/DecoupledOverlay/DecoupledOverlay.js +48 -0
- package/dist/cjs/components/DecoupledOverlay/DecoupledOverlay.js.map +1 -0
- package/dist/cjs/components/Icon/IconButton.js +2 -2
- package/dist/cjs/components/Icon/IconButton.js.map +1 -1
- package/dist/cjs/components/Icon/canonicalIconNames.js +10 -1
- package/dist/cjs/components/Icon/canonicalIconNames.js.map +1 -1
- package/dist/cjs/components/Icon/transformIcon.js +14 -0
- package/dist/cjs/components/Icon/transformIcon.js.map +1 -0
- package/dist/cjs/components/MultiSelect/MultiSelect.js +63 -24
- package/dist/cjs/components/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/cjs/components/NotAvailable/NotAvailable.js +42 -0
- package/dist/cjs/components/NotAvailable/NotAvailable.js.map +1 -0
- package/dist/cjs/components/Notification/Notification.js.map +1 -1
- package/dist/cjs/components/OverviewItem/OverviewItemDepiction.js.map +1 -1
- package/dist/cjs/components/RadioButton/RadioButton.js +5 -2
- package/dist/cjs/components/RadioButton/RadioButton.js.map +1 -1
- package/dist/cjs/components/Select/Select.js +6 -4
- package/dist/cjs/components/Select/Select.js.map +1 -1
- package/dist/cjs/components/Skeleton/Skeleton.js.map +1 -1
- package/dist/cjs/components/Table/Table.js.map +1 -1
- package/dist/cjs/components/Table/TableContainer.js +1 -1
- package/dist/cjs/components/Table/TableContainer.js.map +1 -1
- package/dist/cjs/components/Table/TableExpandRow.js +2 -2
- package/dist/cjs/components/Table/TableExpandRow.js.map +1 -1
- package/dist/cjs/components/TextField/useTextValidation.js +17 -8
- package/dist/cjs/components/TextField/useTextValidation.js.map +1 -1
- package/dist/cjs/components/Tooltip/Tooltip.js +11 -7
- package/dist/cjs/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/cjs/components/Typography/InlineText.js +29 -0
- package/dist/cjs/components/Typography/InlineText.js.map +1 -0
- package/dist/cjs/components/Typography/index.js +1 -0
- package/dist/cjs/components/Typography/index.js.map +1 -1
- package/dist/cjs/components/VisualTour/VisualTour.js +30 -36
- package/dist/cjs/components/VisualTour/VisualTour.js.map +1 -1
- package/dist/cjs/components/index.js +3 -0
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/extensions/codemirror/CodeMirror.js +59 -21
- package/dist/cjs/extensions/codemirror/CodeMirror.js.map +1 -1
- package/dist/cjs/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js +1 -1
- package/dist/cjs/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js.map +1 -1
- package/dist/cjs/extensions/codemirror/tests/codemirrorTestHelper.js +2 -2
- package/dist/cjs/extensions/codemirror/tests/codemirrorTestHelper.js.map +1 -1
- package/dist/cjs/extensions/codemirror/toolbars/EditorAppearanceConfigMenu.js +23 -0
- package/dist/cjs/extensions/codemirror/toolbars/EditorAppearanceConfigMenu.js.map +1 -0
- package/dist/cjs/extensions/codemirror/toolbars/markdown.toolbar.js +5 -2
- package/dist/cjs/extensions/codemirror/toolbars/markdown.toolbar.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeLabel.js +8 -3
- package/dist/cjs/extensions/react-flow/edges/EdgeLabel.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeNew.js +6 -4
- package/dist/cjs/extensions/react-flow/edges/EdgeNew.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeTools.js +2 -2
- package/dist/cjs/extensions/react-flow/edges/EdgeTools.js.map +1 -1
- package/dist/cjs/extensions/react-flow/handles/HandleContent.js +5 -2
- package/dist/cjs/extensions/react-flow/handles/HandleContent.js.map +1 -1
- package/dist/cjs/extensions/react-flow/handles/HandleDefault.js +1 -1
- package/dist/cjs/extensions/react-flow/handles/HandleDefault.js.map +1 -1
- package/dist/cjs/extensions/react-flow/handles/HandleTools.js +2 -2
- package/dist/cjs/extensions/react-flow/handles/HandleTools.js.map +1 -1
- package/dist/cjs/extensions/react-flow/markers/ReactFlowMarkers.js.map +1 -1
- package/dist/cjs/extensions/react-flow/minimap/MiniMap.js +1 -1
- package/dist/cjs/extensions/react-flow/minimap/MiniMap.js.map +1 -1
- package/dist/cjs/extensions/react-flow/minimap/MiniMapV12.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/NodeContent.js +7 -5
- package/dist/cjs/extensions/react-flow/nodes/NodeContent.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/NodeDefault.js +5 -2
- package/dist/cjs/extensions/react-flow/nodes/NodeDefault.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/NodeTools.js +6 -2
- package/dist/cjs/extensions/react-flow/nodes/NodeTools.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/nodeUtils.js.map +1 -1
- package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js +19 -14
- package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
- package/dist/esm/cmem/ActivityControl/ActivityExecutionErrorReportModal.js +4 -1
- package/dist/esm/cmem/ActivityControl/ActivityExecutionErrorReportModal.js.map +1 -1
- package/dist/esm/cmem/ActivityControl/SilkActivityControl.js +1 -3
- package/dist/esm/cmem/ActivityControl/SilkActivityControl.js.map +1 -1
- package/dist/esm/cmem/ContentBlobToggler/ContentBlobToggler.js +9 -5
- package/dist/esm/cmem/ContentBlobToggler/ContentBlobToggler.js.map +1 -1
- package/dist/esm/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js +57 -9
- package/dist/esm/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js.map +1 -1
- package/dist/esm/cmem/markdown/Markdown.js +1 -1
- package/dist/esm/cmem/markdown/Markdown.js.map +1 -1
- package/dist/esm/cmem/react-flow/ReactFlow/ReactFlowV12.js.map +1 -1
- package/dist/esm/cmem/react-flow/StickyNoteModal/StickyNoteModal.js +1 -1
- package/dist/esm/cmem/react-flow/StickyNoteModal/StickyNoteModal.js.map +1 -1
- package/dist/esm/cmem/react-flow/configuration/graph.js +0 -2
- package/dist/esm/cmem/react-flow/configuration/graph.js.map +1 -1
- package/dist/esm/cmem/react-flow/configuration/linking.js +0 -2
- package/dist/esm/cmem/react-flow/configuration/linking.js.map +1 -1
- package/dist/esm/cmem/react-flow/configuration/workflow.js +0 -2
- package/dist/esm/cmem/react-flow/configuration/workflow.js.map +1 -1
- package/dist/esm/common/Intent/index.js +1 -1
- package/dist/esm/common/Intent/index.js.map +1 -1
- package/dist/esm/common/index.js +2 -1
- package/dist/esm/common/index.js.map +1 -1
- package/dist/esm/common/utils/CssCustomProperties.js.map +1 -1
- package/dist/esm/common/utils/colorHash.js +26 -13
- package/dist/esm/common/utils/colorHash.js.map +1 -1
- package/dist/esm/common/utils/reduceToText.js +1 -1
- package/dist/esm/components/Application/ApplicationSidebarNavigation.js.map +1 -1
- package/dist/esm/components/Application/ApplicationTitle.js +5 -1
- package/dist/esm/components/Application/ApplicationTitle.js.map +1 -1
- package/dist/esm/components/Application/ApplicationViewability.js +28 -0
- package/dist/esm/components/Application/ApplicationViewability.js.map +1 -0
- package/dist/esm/components/Application/index.js +1 -0
- package/dist/esm/components/Application/index.js.map +1 -1
- package/dist/esm/components/AutoSuggestion/AutoSuggestion.js +1 -1
- package/dist/esm/components/AutoSuggestion/AutoSuggestion.js.map +1 -1
- package/dist/esm/components/AutoSuggestion/AutoSuggestionList.js.map +1 -1
- package/dist/esm/components/AutocompleteField/AutoCompleteField.js +9 -16
- package/dist/esm/components/AutocompleteField/AutoCompleteField.js.map +1 -1
- package/dist/esm/components/AutocompleteField/autoCompleteFieldUtils.js.map +1 -1
- package/dist/esm/components/Button/Button.js +6 -2
- package/dist/esm/components/Button/Button.js.map +1 -1
- package/dist/esm/components/ColorField/ColorField.js +140 -0
- package/dist/esm/components/ColorField/ColorField.js.map +1 -0
- package/dist/esm/components/ContentGroup/ContentGroup.js +1 -1
- package/dist/esm/components/ContentGroup/ContentGroup.js.map +1 -1
- package/dist/esm/components/ContextOverlay/ContextMenu.js +4 -4
- package/dist/esm/components/ContextOverlay/ContextMenu.js.map +1 -1
- package/dist/esm/components/ContextOverlay/ContextOverlay.js +3 -2
- package/dist/esm/components/ContextOverlay/ContextOverlay.js.map +1 -1
- package/dist/esm/components/DecoupledOverlay/DecoupledOverlay.js +42 -0
- package/dist/esm/components/DecoupledOverlay/DecoupledOverlay.js.map +1 -0
- package/dist/esm/components/Icon/IconButton.js +2 -2
- package/dist/esm/components/Icon/IconButton.js.map +1 -1
- package/dist/esm/components/Icon/canonicalIconNames.js +10 -1
- package/dist/esm/components/Icon/canonicalIconNames.js.map +1 -1
- package/dist/esm/components/Icon/transformIcon.js +21 -0
- package/dist/esm/components/Icon/transformIcon.js.map +1 -0
- package/dist/esm/components/MultiSelect/MultiSelect.js +66 -27
- package/dist/esm/components/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/esm/components/NotAvailable/NotAvailable.js +46 -0
- package/dist/esm/components/NotAvailable/NotAvailable.js.map +1 -0
- package/dist/esm/components/Notification/Notification.js.map +1 -1
- package/dist/esm/components/OverviewItem/OverviewItemDepiction.js.map +1 -1
- package/dist/esm/components/RadioButton/RadioButton.js +6 -2
- package/dist/esm/components/RadioButton/RadioButton.js.map +1 -1
- package/dist/esm/components/Select/Select.js +3 -1
- package/dist/esm/components/Select/Select.js.map +1 -1
- package/dist/esm/components/Skeleton/Skeleton.js.map +1 -1
- package/dist/esm/components/Table/Table.js.map +1 -1
- package/dist/esm/components/Table/TableContainer.js +1 -1
- package/dist/esm/components/Table/TableContainer.js.map +1 -1
- package/dist/esm/components/Table/TableExpandRow.js +1 -1
- package/dist/esm/components/Table/TableExpandRow.js.map +1 -1
- package/dist/esm/components/TextField/useTextValidation.js +39 -8
- package/dist/esm/components/TextField/useTextValidation.js.map +1 -1
- package/dist/esm/components/Tooltip/Tooltip.js +11 -7
- package/dist/esm/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/esm/components/Typography/InlineText.js +33 -0
- package/dist/esm/components/Typography/InlineText.js.map +1 -0
- package/dist/esm/components/Typography/index.js +1 -0
- package/dist/esm/components/Typography/index.js.map +1 -1
- package/dist/esm/components/VisualTour/VisualTour.js +31 -37
- package/dist/esm/components/VisualTour/VisualTour.js.map +1 -1
- package/dist/esm/components/index.js +3 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/extensions/codemirror/CodeMirror.js +62 -24
- package/dist/esm/extensions/codemirror/CodeMirror.js.map +1 -1
- package/dist/esm/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js +1 -1
- package/dist/esm/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js.map +1 -1
- package/dist/esm/extensions/codemirror/tests/codemirrorTestHelper.js +3 -3
- package/dist/esm/extensions/codemirror/tests/codemirrorTestHelper.js.map +1 -1
- package/dist/esm/extensions/codemirror/toolbars/EditorAppearanceConfigMenu.js +47 -0
- package/dist/esm/extensions/codemirror/toolbars/EditorAppearanceConfigMenu.js.map +1 -0
- package/dist/esm/extensions/codemirror/toolbars/markdown.toolbar.js +16 -2
- package/dist/esm/extensions/codemirror/toolbars/markdown.toolbar.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeLabel.js +4 -2
- package/dist/esm/extensions/react-flow/edges/EdgeLabel.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeNew.js +3 -1
- package/dist/esm/extensions/react-flow/edges/EdgeNew.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeTools.js +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeTools.js.map +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleContent.js +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleContent.js.map +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleDefault.js +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleDefault.js.map +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleTools.js +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleTools.js.map +1 -1
- package/dist/esm/extensions/react-flow/markers/ReactFlowMarkers.js.map +1 -1
- package/dist/esm/extensions/react-flow/minimap/MiniMap.js +1 -1
- package/dist/esm/extensions/react-flow/minimap/MiniMap.js.map +1 -1
- package/dist/esm/extensions/react-flow/minimap/MiniMapV12.js.map +1 -1
- package/dist/esm/extensions/react-flow/nodes/NodeContent.js +4 -2
- package/dist/esm/extensions/react-flow/nodes/NodeContent.js.map +1 -1
- package/dist/esm/extensions/react-flow/nodes/NodeDefault.js +1 -1
- package/dist/esm/extensions/react-flow/nodes/NodeDefault.js.map +1 -1
- package/dist/esm/extensions/react-flow/nodes/NodeTools.js +2 -1
- package/dist/esm/extensions/react-flow/nodes/NodeTools.js.map +1 -1
- package/dist/esm/extensions/react-flow/nodes/nodeUtils.js.map +1 -1
- package/dist/types/cmem/ActivityControl/ActivityControlWidget.d.ts +13 -4
- package/dist/types/cmem/ActivityControl/ActivityExecutionErrorReportModal.d.ts +1 -1
- package/dist/types/cmem/ActivityControl/SilkActivityControl.d.ts +4 -4
- package/dist/types/cmem/ContentBlobToggler/ContentBlobToggler.d.ts +5 -1
- package/dist/types/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.d.ts +27 -11
- package/dist/types/cmem/markdown/Markdown.d.ts +2 -1
- package/dist/types/cmem/react-flow/configuration/graph.d.ts +2 -1
- package/dist/types/cmem/react-flow/configuration/linking.d.ts +2 -1
- package/dist/types/cmem/react-flow/configuration/workflow.d.ts +2 -1
- package/dist/types/common/index.d.ts +2 -1
- package/dist/types/common/utils/CssCustomProperties.d.ts +2 -2
- package/dist/types/common/utils/colorHash.d.ts +5 -4
- package/dist/types/components/Accordion/AccordionItem.d.ts +1 -1
- package/dist/types/components/Application/ApplicationSidebarNavigation.d.ts +2 -0
- package/dist/types/components/Application/ApplicationViewability.d.ts +36 -0
- package/dist/types/components/Application/index.d.ts +1 -0
- package/dist/types/components/AutoSuggestion/AutoSuggestion.d.ts +2 -2
- package/dist/types/components/AutocompleteField/AutoCompleteField.d.ts +2 -12
- package/dist/types/components/AutocompleteField/autoCompleteFieldUtils.d.ts +1 -1
- package/dist/types/components/Button/Button.d.ts +3 -3
- package/dist/types/components/Card/CardHeader.d.ts +1 -1
- package/dist/types/components/ColorField/ColorField.d.ts +30 -0
- package/dist/types/components/ContentGroup/ContentGroup.d.ts +1 -1
- package/dist/types/components/ContextOverlay/ContextMenu.d.ts +9 -3
- package/dist/types/components/ContextOverlay/ContextOverlay.d.ts +8 -2
- package/dist/types/components/DecoupledOverlay/DecoupledOverlay.d.ts +22 -0
- package/dist/types/components/Depiction/Depiction.d.ts +1 -1
- package/dist/types/components/Dialog/SimpleDialog.d.ts +1 -1
- package/dist/types/components/Form/FieldItem.d.ts +1 -1
- package/dist/types/components/Form/FieldSet.d.ts +3 -3
- package/dist/types/components/HoverToggler/HoverToggler.d.ts +2 -2
- package/dist/types/components/Icon/IconButton.d.ts +1 -1
- package/dist/types/components/Icon/canonicalIconNames.d.ts +9 -1
- package/dist/types/components/Icon/transformIcon.d.ts +2 -0
- package/dist/types/components/Label/Label.d.ts +3 -3
- package/dist/types/components/Menu/MenuItem.d.ts +1 -1
- package/dist/types/components/MultiSelect/MultiSelect.d.ts +17 -5
- package/dist/types/components/NotAvailable/NotAvailable.d.ts +32 -0
- package/dist/types/components/Notification/Notification.d.ts +2 -2
- package/dist/types/components/OverviewItem/OverviewItemActions.d.ts +1 -1
- package/dist/types/components/PropertyValuePair/PropertyValueList.d.ts +1 -1
- package/dist/types/components/RadioButton/RadioButton.d.ts +8 -2
- package/dist/types/components/Select/Select.d.ts +2 -1
- package/dist/types/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/types/components/Structure/TitleSubsection.d.ts +3 -6
- package/dist/types/components/SuggestField/index.d.ts +2 -2
- package/dist/types/components/Table/TableContainer.d.ts +3 -3
- package/dist/types/components/Tabs/Tab.d.ts +4 -10
- package/dist/types/components/Tabs/TabTitle.d.ts +1 -1
- package/dist/types/components/TextField/TextArea.d.ts +1 -1
- package/dist/types/components/Typography/InlineText.d.ts +13 -0
- package/dist/types/components/Typography/index.d.ts +1 -0
- package/dist/types/components/index.d.ts +3 -0
- package/dist/types/extensions/codemirror/CodeMirror.d.ts +12 -9
- package/dist/types/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.d.ts +1 -1
- package/dist/types/extensions/codemirror/tests/codemirrorTestHelper.d.ts +1 -1
- package/dist/types/extensions/codemirror/toolbars/EditorAppearanceConfigMenu.d.ts +24 -0
- package/dist/types/extensions/codemirror/toolbars/markdown.toolbar.d.ts +2 -0
- package/dist/types/extensions/react-flow/edges/EdgeLabel.d.ts +3 -3
- package/dist/types/extensions/react-flow/edges/EdgeTools.d.ts +1 -1
- package/dist/types/extensions/react-flow/handles/HandleContent.d.ts +2 -2
- package/dist/types/extensions/react-flow/handles/HandleTools.d.ts +2 -2
- package/dist/types/extensions/react-flow/nodes/NodeContent.d.ts +3 -3
- package/dist/types/extensions/react-flow/nodes/NodeTools.d.ts +2 -2
- package/package.json +65 -61
- package/src/_shame.scss +1 -35
- package/src/cmem/ActivityControl/ActivityControlWidget.stories.tsx +3 -8
- package/src/cmem/ActivityControl/ActivityControlWidget.tsx +74 -41
- package/src/cmem/ActivityControl/ActivityExecutionErrorReportModal.tsx +6 -4
- package/src/cmem/ActivityControl/SilkActivityControl.tsx +5 -5
- package/src/cmem/ContentBlobToggler/ContentBlobToggler.tsx +16 -6
- package/src/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.tsx +72 -19
- package/src/cmem/ContentBlobToggler/stories/StringPreviewContentBlobToggler.stories.tsx +27 -0
- package/src/cmem/ContentBlobToggler/tests/StringPreviewContentBlobToggler.test.tsx +98 -0
- package/src/cmem/markdown/Markdown.stories.tsx +2 -2
- package/src/cmem/markdown/Markdown.tsx +2 -1
- package/src/cmem/markdown/markdown.scss +1 -1
- package/src/cmem/react-flow/ReactFlow/ReactFlowV12.tsx +1 -0
- package/src/cmem/react-flow/StickyNoteModal/StickyNoteModal.tsx +1 -1
- package/src/cmem/react-flow/configuration/graph.ts +2 -3
- package/src/cmem/react-flow/configuration/linking.ts +2 -3
- package/src/cmem/react-flow/configuration/workflow.ts +2 -3
- package/src/common/Intent/index.ts +2 -1
- package/src/common/index.ts +2 -1
- package/src/common/scss/_accessibility-defaults.scss +101 -0
- package/src/common/utils/CssCustomProperties.ts +5 -3
- package/src/common/utils/colorHash.ts +38 -20
- package/src/components/Accordion/AccordionItem.tsx +1 -1
- package/src/components/Accordion/Stories/AccordionItem.stories.tsx +1 -1
- package/src/components/Application/ApplicationSidebarNavigation.tsx +5 -2
- package/src/components/Application/ApplicationTitle.tsx +7 -1
- package/src/components/Application/ApplicationViewability.tsx +61 -0
- package/src/components/Application/_colors.scss +15 -0
- package/src/components/Application/_content.scss +7 -0
- package/src/components/Application/_header.scss +45 -21
- package/src/components/Application/_sidebar.scss +6 -0
- package/src/components/Application/_toolbar.scss +3 -3
- package/src/components/Application/_viewability.scss +13 -0
- package/src/components/Application/application.scss +1 -0
- package/src/components/Application/index.ts +1 -0
- package/src/components/Application/stories/ApplicationViewability.stories.tsx +37 -0
- package/src/components/Application/stories/ColorPalettes.stories.tsx +4 -3
- package/src/components/Application/tests/ApplicationViewability.test.tsx +43 -0
- package/src/components/AutoSuggestion/AutoSuggestion.scss +3 -1
- package/src/components/AutoSuggestion/AutoSuggestion.tsx +4 -4
- package/src/components/AutoSuggestion/AutoSuggestionList.tsx +1 -1
- package/src/components/AutoSuggestion/tests/ExtendedCodeEditor.test.tsx +1 -1
- package/src/components/AutocompleteField/AutoCompleteField.tsx +9 -18
- package/src/components/AutocompleteField/autoCompleteFieldUtils.tsx +1 -1
- package/src/components/Badge/Badge.stories.tsx +1 -1
- package/src/components/Badge/Badge.test.tsx +22 -0
- package/src/components/Breadcrumb/breadcrumb.scss +2 -2
- package/src/components/Button/Button.test.tsx +16 -2
- package/src/components/Button/Button.tsx +11 -6
- package/src/components/Button/button.scss +2 -0
- package/src/components/Card/CardHeader.tsx +1 -1
- package/src/components/Card/card.scss +6 -0
- package/src/components/Card/stories/Card.stories.tsx +1 -1
- package/src/components/Checkbox/Stories/Checkbox.stories.tsx +1 -1
- package/src/components/Checkbox/checkbox.scss +23 -3
- package/src/components/ColorField/ColorField.stories.tsx +72 -0
- package/src/components/ColorField/ColorField.test.tsx +101 -0
- package/src/components/ColorField/ColorField.tsx +200 -0
- package/src/components/ColorField/_colorfield.scss +67 -0
- package/src/components/ContentGroup/ContentGroup.stories.tsx +1 -1
- package/src/components/ContentGroup/ContentGroup.tsx +3 -3
- package/src/components/ContentGroup/_contentgroup.scss +9 -0
- package/src/components/ContextOverlay/ContextMenu.tsx +10 -4
- package/src/components/ContextOverlay/ContextOverlay.tsx +23 -4
- package/src/components/DecoupledOverlay/DecoupledOverlay.stories.tsx +30 -0
- package/src/components/DecoupledOverlay/DecoupledOverlay.tsx +100 -0
- package/src/components/DecoupledOverlay/_decoupledoverlay.scss +46 -0
- package/src/components/Depiction/Depiction.tsx +1 -1
- package/src/components/Depiction/depiction.scss +6 -0
- package/src/components/Dialog/SimpleDialog.tsx +1 -1
- package/src/components/Dialog/dialog.scss +10 -2
- package/src/components/Dialog/stories/Modal.stories.tsx +1 -1
- package/src/components/FlexibleLayout/flexiblelayout.scss +16 -0
- package/src/components/Form/FieldItem.tsx +1 -1
- package/src/components/Form/FieldSet.tsx +3 -3
- package/src/components/Form/Stories/FieldItem.stories.tsx +1 -1
- package/src/components/Form/Stories/FieldSet.stories.tsx +1 -1
- package/src/components/Form/form.scss +2 -2
- package/src/components/Grid/grid.scss +17 -0
- package/src/components/Grid/stories/Grid.stories.tsx +10 -7
- package/src/components/Grid/stories/GridColumn.stories.tsx +1 -1
- package/src/components/Grid/stories/GridRow.stories.tsx +14 -8
- package/src/components/HoverToggler/HoverToggler.tsx +2 -2
- package/src/components/Icon/IconButton.tsx +3 -3
- package/src/components/Icon/canonicalIconNames.tsx +11 -1
- package/src/components/Icon/stories/IconButton.stories.tsx +1 -1
- package/src/components/Icon/stories/TestIcon.stories.tsx +1 -1
- package/src/components/Icon/transformIcon.tsx +17 -0
- package/src/components/Label/Label.tsx +3 -3
- package/src/components/Link/Link.stories.tsx +30 -0
- package/src/components/Link/link.scss +33 -8
- package/src/components/Menu/MenuItem.tsx +1 -1
- package/src/components/Menu/Stories/MenuItem.stories.tsx +1 -1
- package/src/components/MultiSelect/MultiSelect.tsx +104 -32
- package/src/components/MultiSuggestField/MultiSuggestField.stories.tsx +40 -1
- package/src/components/MultiSuggestField/_multisuggestfield.scss +18 -0
- package/src/components/MultiSuggestField/tests/MultiSuggestField.test.tsx +89 -37
- package/src/components/NotAvailable/NotAvailable.stories.tsx +15 -0
- package/src/components/NotAvailable/NotAvailable.tsx +71 -0
- package/src/components/Notification/Notification.stories.tsx +2 -1
- package/src/components/Notification/Notification.tsx +3 -3
- package/src/components/Notification/notification.scss +6 -0
- package/src/components/OverviewItem/OverviewItemActions.tsx +1 -1
- package/src/components/OverviewItem/OverviewItemDepiction.tsx +1 -1
- package/src/components/OverviewItem/overviewitem.scss +9 -0
- package/src/components/OverviewItem/stories/OverviewItem.stories.tsx +29 -1
- package/src/components/OverviewItem/stories/OverviewItemActions.stories.tsx +3 -3
- package/src/components/OverviewItem/stories/OverviewItemDepiction.stories.tsx +1 -1
- package/src/components/OverviewItem/stories/OverviewItemDescription.stories.tsx +2 -2
- package/src/components/OverviewItem/stories/OverviewItemLine.stories.tsx +1 -1
- package/src/components/Pagination/Stories/Pagination.stories.tsx +32 -0
- package/src/components/Pagination/pagination.scss +55 -5
- package/src/components/PropertyValuePair/PropertyValueList.tsx +1 -1
- package/src/components/PropertyValuePair/propertyvalue.scss +23 -1
- package/src/components/RadioButton/RadioButton.tsx +15 -3
- package/src/components/RadioButton/Stories/RadioButton.stories.tsx +1 -1
- package/src/components/RadioButton/radiobutton.scss +18 -1
- package/src/components/Select/Select.tsx +8 -6
- package/src/components/Separation/separation.scss +6 -0
- package/src/components/Skeleton/Skeleton.tsx +2 -2
- package/src/components/Structure/TitleSubsection.tsx +1 -1
- package/src/components/Table/Table.tsx +1 -1
- package/src/components/Table/TableContainer.tsx +4 -4
- package/src/components/Table/TableExpandRow.tsx +1 -1
- package/src/components/Table/table.scss +22 -0
- package/src/components/Tabs/TabTitle.tsx +1 -1
- package/src/components/Tabs/stories/TabTitle.stories.tsx +7 -2
- package/src/components/Tabs/tabs.scss +2 -2
- package/src/components/Tag/stories/Tag.stories.tsx +1 -1
- package/src/components/Tag/stories/TagList.stories.tsx +3 -3
- package/src/components/Tag/tag.scss +19 -9
- package/src/components/TextField/TextArea.tsx +1 -1
- package/src/components/TextField/stories/TextArea.stories.tsx +1 -1
- package/src/components/TextField/stories/TextField.stories.tsx +24 -3
- package/src/components/TextField/tests/useTextValidation.test.tsx +83 -0
- package/src/components/TextField/textfield.scss +20 -0
- package/src/components/TextField/useTextValidation.ts +17 -8
- package/src/components/TextReducer/TextReducer.stories.tsx +4 -1
- package/src/components/TextReducer/TextReducer.test.tsx +3 -3
- package/src/components/Toolbar/toolbar.scss +1 -2
- package/src/components/Tooltip/Tooltip.test.tsx +40 -5
- package/src/components/Tooltip/Tooltip.tsx +15 -11
- package/src/components/Typography/InlineText.tsx +24 -0
- package/src/components/Typography/_reset.scss +2 -0
- package/src/components/Typography/index.ts +1 -0
- package/src/components/Typography/stories/InlineText.stories.tsx +27 -0
- package/src/components/Typography/typography.scss +37 -3
- package/src/components/VisualTour/VisualTour.tsx +35 -55
- package/src/components/VisualTour/visualTour.scss +0 -34
- package/src/components/index.scss +2 -0
- package/src/components/index.ts +3 -0
- package/src/configuration/_customproperties.scss +32 -0
- package/src/configuration/stories/customproperties.stories.tsx +122 -0
- package/src/extensions/codemirror/CodeMirror.stories.tsx +9 -4
- package/src/extensions/codemirror/CodeMirror.tsx +93 -37
- package/src/extensions/codemirror/_codemirror.scss +18 -28
- package/src/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.ts +1 -2
- package/src/extensions/codemirror/tests/CodeEditor.test.tsx +138 -0
- package/src/extensions/codemirror/tests/EditorAppearanceConfigMenu.test.tsx +131 -0
- package/src/extensions/codemirror/tests/codemirrorTestHelper.ts +3 -3
- package/src/extensions/codemirror/toolbars/EditorAppearanceConfigMenu.tsx +59 -0
- package/src/extensions/codemirror/toolbars/markdown.toolbar.tsx +17 -3
- package/src/extensions/react-flow/_config.scss +3 -3
- package/src/extensions/react-flow/_react-flow_v12.scss +1 -1
- package/src/extensions/react-flow/edges/EdgeLabel.tsx +15 -11
- package/src/extensions/react-flow/edges/EdgeNew.tsx +6 -6
- package/src/extensions/react-flow/edges/EdgeTools.tsx +5 -6
- package/src/extensions/react-flow/edges/_edges.scss +3 -2
- package/src/extensions/react-flow/edges/stories/EdgeLabel.stories.tsx +2 -1
- package/src/extensions/react-flow/handles/HandleContent.tsx +4 -4
- package/src/extensions/react-flow/handles/HandleDefault.tsx +3 -3
- package/src/extensions/react-flow/handles/HandleTools.tsx +3 -3
- package/src/extensions/react-flow/handles/_handles.scss +3 -3
- package/src/extensions/react-flow/markers/ReactFlowMarkers.tsx +1 -1
- package/src/extensions/react-flow/minimap/MiniMap.tsx +2 -1
- package/src/extensions/react-flow/minimap/MiniMapV12.tsx +1 -1
- package/src/extensions/react-flow/nodes/NodeContent.tsx +20 -19
- package/src/extensions/react-flow/nodes/NodeDefault.tsx +1 -1
- package/src/extensions/react-flow/nodes/NodeDefaultV12.tsx +1 -2
- package/src/extensions/react-flow/nodes/NodeTools.tsx +8 -8
- package/src/extensions/react-flow/nodes/_nodes.scss +4 -3
- package/src/extensions/react-flow/nodes/nodeUtils.tsx +1 -0
- package/src/extensions/react-flow/nodes/stories/NodeContent.stories.tsx +3 -1
- package/src/includes/carbon-components/_requisits.scss +3 -1
- package/src/index.scss +2 -0
- package/src/test/setupTests.js +1 -1
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import { ValidIconName } from "../../components/Icon/canonicalIconNames";
|
|
4
|
-
import { IconProps } from "../../components/Icon/Icon";
|
|
5
|
-
import { TestIconProps } from "../../components/Icon/TestIcon";
|
|
6
|
-
import { TestableComponent } from "../../components/interfaces";
|
|
7
|
-
import { ProgressBarProps } from "../../components/ProgressBar/ProgressBar";
|
|
8
|
-
import { SpinnerProps } from "../../components/Spinner/Spinner";
|
|
9
|
-
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
10
3
|
import {
|
|
11
4
|
Card,
|
|
12
5
|
ContextMenu,
|
|
6
|
+
DecoupledOverlay,
|
|
13
7
|
IconButton,
|
|
14
8
|
MenuItem,
|
|
9
|
+
Notification,
|
|
10
|
+
NotificationProps,
|
|
15
11
|
OverflowText,
|
|
16
12
|
OverviewItem,
|
|
17
13
|
OverviewItemActions,
|
|
@@ -21,22 +17,29 @@ import {
|
|
|
21
17
|
ProgressBar,
|
|
22
18
|
Spinner,
|
|
23
19
|
Tooltip,
|
|
24
|
-
} from "../../
|
|
20
|
+
} from "../../components";
|
|
21
|
+
import { ValidIconName } from "../../components/Icon/canonicalIconNames";
|
|
22
|
+
import { IconProps } from "../../components/Icon/Icon";
|
|
23
|
+
import { TestIconProps } from "../../components/Icon/TestIcon";
|
|
24
|
+
import { TestableComponent } from "../../components/interfaces";
|
|
25
|
+
import { ProgressBarProps } from "../../components/ProgressBar/ProgressBar";
|
|
26
|
+
import { SpinnerProps } from "../../components/Spinner/Spinner";
|
|
27
|
+
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
25
28
|
|
|
26
29
|
export interface ActivityControlWidgetProps extends TestableComponent {
|
|
27
30
|
/**
|
|
28
31
|
* The label to be shown
|
|
29
32
|
*/
|
|
30
|
-
label?: string | JSX.Element;
|
|
33
|
+
label?: string | React.JSX.Element;
|
|
31
34
|
/**
|
|
32
35
|
* Element that wraps around the label.
|
|
33
36
|
* Default: `<OverflowText inline={true} />`
|
|
34
37
|
*/
|
|
35
|
-
labelWrapper?: JSX.Element;
|
|
38
|
+
labelWrapper?: React.JSX.Element;
|
|
36
39
|
/**
|
|
37
40
|
* To add tags in addition to the widget status description
|
|
38
41
|
*/
|
|
39
|
-
tags?: JSX.Element;
|
|
42
|
+
tags?: React.JSX.Element;
|
|
40
43
|
/**
|
|
41
44
|
* The progress bar parameters if it should be show by a progres bar
|
|
42
45
|
*/
|
|
@@ -80,7 +83,7 @@ export interface ActivityControlWidgetProps extends TestableComponent {
|
|
|
80
83
|
/**
|
|
81
84
|
* execution timer messages for waiting and running times.
|
|
82
85
|
*/
|
|
83
|
-
timerExecutionMsg?: JSX.Element | null;
|
|
86
|
+
timerExecutionMsg?: React.JSX.Element | null;
|
|
84
87
|
/**
|
|
85
88
|
* additional actions that can serve as a complex component, positioned between the default actions and the context menu
|
|
86
89
|
*/
|
|
@@ -97,7 +100,7 @@ interface IActivityContextMenu extends TestableComponent {
|
|
|
97
100
|
export interface ActivityControlWidgetAction extends TestableComponent {
|
|
98
101
|
// The action that should be triggered
|
|
99
102
|
action: () => void;
|
|
100
|
-
// The tooltip that should be shown over the action icon
|
|
103
|
+
// The tooltip that should be shown over the action icon on hover
|
|
101
104
|
tooltip?: string;
|
|
102
105
|
// The icon of the action button
|
|
103
106
|
icon: ValidIconName | React.ReactElement<TestIconProps>;
|
|
@@ -105,6 +108,16 @@ export interface ActivityControlWidgetAction extends TestableComponent {
|
|
|
105
108
|
disabled?: boolean;
|
|
106
109
|
// Warning state
|
|
107
110
|
hasStateWarning?: boolean;
|
|
111
|
+
// Active state
|
|
112
|
+
active?: boolean
|
|
113
|
+
/** A notification that is shown in an overlay pointing at the activity action button. */
|
|
114
|
+
notification?: {
|
|
115
|
+
message: string
|
|
116
|
+
onClose: () => void
|
|
117
|
+
intent?: NotificationProps["intent"]
|
|
118
|
+
// Timeout in ms before notification is closed. Default: none
|
|
119
|
+
timeout?: number
|
|
120
|
+
}
|
|
108
121
|
}
|
|
109
122
|
|
|
110
123
|
interface IActivityMenuAction extends ActivityControlWidgetAction {
|
|
@@ -146,7 +159,7 @@ export function ActivityControlWidget(props: ActivityControlWidgetProps) {
|
|
|
146
159
|
keepColors
|
|
147
160
|
>
|
|
148
161
|
{progressSpinnerFinishedIcon ? (
|
|
149
|
-
React.cloneElement(progressSpinnerFinishedIcon as JSX.Element, { small, large: !small })
|
|
162
|
+
React.cloneElement(progressSpinnerFinishedIcon as React.JSX.Element, { small, large: !small })
|
|
150
163
|
) : (
|
|
151
164
|
<Spinner
|
|
152
165
|
position="inline"
|
|
@@ -209,28 +222,11 @@ export function ActivityControlWidget(props: ActivityControlWidgetProps) {
|
|
|
209
222
|
data-test-id={dataTestIdLegacy ? `${dataTestIdLegacy}-actions` : undefined}
|
|
210
223
|
>
|
|
211
224
|
{activityActions &&
|
|
212
|
-
activityActions.map((action, idx) =>
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
? action.icon
|
|
218
|
-
: action["data-test-id"] ?? action["data-testid"] ?? idx
|
|
219
|
-
}
|
|
220
|
-
data-test-id={action["data-test-id"]}
|
|
221
|
-
data-testid={action["data-testid"]}
|
|
222
|
-
name={action.icon}
|
|
223
|
-
text={action.tooltip}
|
|
224
|
-
onClick={action.action}
|
|
225
|
-
disabled={action.disabled}
|
|
226
|
-
intent={action.hasStateWarning ? "warning" : undefined}
|
|
227
|
-
tooltipProps={{
|
|
228
|
-
hoverOpenDelay: 200,
|
|
229
|
-
placement: "bottom",
|
|
230
|
-
}}
|
|
231
|
-
/>
|
|
232
|
-
);
|
|
233
|
-
})}
|
|
225
|
+
activityActions.map((action, idx) => <ActivityActionButton
|
|
226
|
+
key={idx}
|
|
227
|
+
action={action}
|
|
228
|
+
/>
|
|
229
|
+
)}
|
|
234
230
|
{additionalActions}
|
|
235
231
|
{activityContextMenu && activityContextMenu.menuItems.length > 0 && (
|
|
236
232
|
<ContextMenu
|
|
@@ -241,11 +237,7 @@ export function ActivityControlWidget(props: ActivityControlWidgetProps) {
|
|
|
241
237
|
return (
|
|
242
238
|
<MenuItem
|
|
243
239
|
icon={menuAction.icon}
|
|
244
|
-
key={
|
|
245
|
-
typeof menuAction.icon === "string"
|
|
246
|
-
? menuAction.icon
|
|
247
|
-
: menuAction["data-test-id"] ?? idx
|
|
248
|
-
}
|
|
240
|
+
key={idx}
|
|
249
241
|
onClick={menuAction.action}
|
|
250
242
|
text={menuAction.tooltip}
|
|
251
243
|
/>
|
|
@@ -267,3 +259,44 @@ export function ActivityControlWidget(props: ActivityControlWidgetProps) {
|
|
|
267
259
|
<div className={classname}>{widget}</div>
|
|
268
260
|
);
|
|
269
261
|
}
|
|
262
|
+
|
|
263
|
+
interface ActivityActionButtonProps {
|
|
264
|
+
action: ActivityControlWidgetAction
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
const ActivityActionButton = ({action}: ActivityActionButtonProps) => {
|
|
268
|
+
const actionButtonRef = React.useRef(null);
|
|
269
|
+
const ActionButton = () => (
|
|
270
|
+
<IconButton
|
|
271
|
+
data-test-id={action["data-test-id"]}
|
|
272
|
+
data-testid={action["data-testid"]}
|
|
273
|
+
name={action.icon}
|
|
274
|
+
text={action.tooltip}
|
|
275
|
+
onClick={action.action}
|
|
276
|
+
disabled={action.disabled}
|
|
277
|
+
intent={action.hasStateWarning ? "warning" : undefined}
|
|
278
|
+
tooltipProps={{
|
|
279
|
+
hoverOpenDelay: 200,
|
|
280
|
+
placement: "bottom"
|
|
281
|
+
}}
|
|
282
|
+
active={action.active}
|
|
283
|
+
/>
|
|
284
|
+
)
|
|
285
|
+
return action.notification ?
|
|
286
|
+
<>
|
|
287
|
+
<span ref={actionButtonRef}>
|
|
288
|
+
<ActionButton/>
|
|
289
|
+
</span>
|
|
290
|
+
{actionButtonRef.current && (
|
|
291
|
+
<DecoupledOverlay targetSelectorOrElement={actionButtonRef.current} paddingSize={"small"}>
|
|
292
|
+
<Notification
|
|
293
|
+
message={action.notification.message}
|
|
294
|
+
intent={action.notification.intent ?? "neutral"}
|
|
295
|
+
onDismiss={action.notification.onClose}
|
|
296
|
+
timeout={action.notification.timeout}
|
|
297
|
+
/>
|
|
298
|
+
</DecoupledOverlay>
|
|
299
|
+
)}
|
|
300
|
+
</> :
|
|
301
|
+
<ActionButton/>
|
|
302
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
|
|
3
|
-
import
|
|
1
|
+
import React, {useState} from "react";
|
|
2
|
+
import SimpleDialog from "../../components/Dialog/SimpleDialog";
|
|
3
|
+
import IconButton from "../../components/Icon/IconButton";
|
|
4
|
+
import Button from "../../components/Button/Button";
|
|
5
|
+
import HtmlContentBlock from "../../components/Typography/HtmlContentBlock";
|
|
4
6
|
|
|
5
7
|
interface ActivityExecutionErrorReportModalProps {
|
|
6
8
|
// Title of the modal
|
|
@@ -8,7 +10,7 @@ interface ActivityExecutionErrorReportModalProps {
|
|
|
8
10
|
// Called when the close button is clicked
|
|
9
11
|
onDiscard: () => any;
|
|
10
12
|
// The error report
|
|
11
|
-
report: JSX.Element;
|
|
13
|
+
report: React.JSX.Element;
|
|
12
14
|
// Value of the download button
|
|
13
15
|
downloadButtonValue: string;
|
|
14
16
|
// Value of the close button
|
|
@@ -15,11 +15,11 @@ const progressBreakpointAnimation = 99;
|
|
|
15
15
|
|
|
16
16
|
export interface SilkActivityControlProps extends TestableComponent {
|
|
17
17
|
// The label of this activity
|
|
18
|
-
label: string | JSX.Element;
|
|
18
|
+
label: string | React.JSX.Element;
|
|
19
19
|
/**
|
|
20
20
|
* To add tags in addition to the widget status description
|
|
21
21
|
*/
|
|
22
|
-
tags?: JSX.Element;
|
|
22
|
+
tags?: React.JSX.Element;
|
|
23
23
|
// Initial state
|
|
24
24
|
initialStatus?: SilkActivityStatusProps;
|
|
25
25
|
// Register a function in order to receive callbacks
|
|
@@ -80,7 +80,7 @@ export interface SilkActivityControlLayoutProps {
|
|
|
80
80
|
// what type of progrss display should be uses, horizontal progress bar, circular spinner, or none of that
|
|
81
81
|
visualization?: "none" | "progressbar" | "spinner";
|
|
82
82
|
// wrapper around label
|
|
83
|
-
labelWrapper?: JSX.Element;
|
|
83
|
+
labelWrapper?: React.JSX.Element;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
const defaultLayout: SilkActivityControlLayoutProps = {
|
|
@@ -94,7 +94,7 @@ interface IErrorReportAction {
|
|
|
94
94
|
// The title of the error report modal
|
|
95
95
|
title?: string;
|
|
96
96
|
// The element that will be rendered in the modal, either as Markdown or object
|
|
97
|
-
renderReport: (report: string | SilkActivityExecutionReportProps) => JSX.Element;
|
|
97
|
+
renderReport: (report: string | SilkActivityExecutionReportProps) => React.JSX.Element;
|
|
98
98
|
// What version of the report should be handed to the renderReport function, if false SilkActivityExecutionReportProps, if true the Markdown string
|
|
99
99
|
renderMarkdown: boolean;
|
|
100
100
|
// The function to fetch the error report. It returns undefined if something went wrong.
|
|
@@ -196,7 +196,7 @@ export function useSilkActivityControl({
|
|
|
196
196
|
registerForUpdates(updateActivityStatus);
|
|
197
197
|
return unregisterFromUpdates;
|
|
198
198
|
},
|
|
199
|
-
|
|
199
|
+
|
|
200
200
|
[]
|
|
201
201
|
);
|
|
202
202
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import Link from "../../components/Link/Link";
|
|
4
|
+
import Spacing from "../../components/Separation/Spacing";
|
|
5
|
+
import InlineText from "../../components/Typography/InlineText";
|
|
4
6
|
|
|
5
7
|
export interface ContentBlobTogglerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
8
|
/**
|
|
@@ -31,6 +33,10 @@ export interface ContentBlobTogglerProps extends React.HTMLAttributes<HTMLDivEle
|
|
|
31
33
|
Callback if toggler is necessary. Default: true
|
|
32
34
|
*/
|
|
33
35
|
enableToggler?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Force always inline rendering.
|
|
38
|
+
*/
|
|
39
|
+
forceInline?: boolean;
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
/** Shows a preview with the option to expand to a full view (and back). */
|
|
@@ -42,27 +48,29 @@ export function ContentBlobToggler({
|
|
|
42
48
|
fullviewContent,
|
|
43
49
|
startExtended = false,
|
|
44
50
|
enableToggler = true,
|
|
51
|
+
forceInline = false,
|
|
45
52
|
...otherProps
|
|
46
53
|
}: ContentBlobTogglerProps) {
|
|
47
54
|
const [isExtended, setViewState] = useState(startExtended);
|
|
48
|
-
const handlerToggleView = (event:
|
|
55
|
+
const handlerToggleView = (event: React.MouseEvent<HTMLAnchorElement>) => {
|
|
49
56
|
event.preventDefault();
|
|
50
57
|
event.stopPropagation();
|
|
51
58
|
setViewState(!isExtended);
|
|
52
59
|
};
|
|
53
60
|
|
|
54
|
-
|
|
61
|
+
const tooglerDisplay = (
|
|
55
62
|
<div className={className} {...otherProps}>
|
|
56
63
|
{!isExtended ? (
|
|
57
64
|
<>
|
|
58
65
|
{previewContent}
|
|
59
66
|
{enableToggler && (
|
|
60
67
|
<>
|
|
68
|
+
{" "}
|
|
61
69
|
…{" "}
|
|
62
70
|
<Link
|
|
63
71
|
href="#more"
|
|
64
72
|
data-test-id={"content-blob-toggler-more-link"}
|
|
65
|
-
onClick={(e:
|
|
73
|
+
onClick={(e: React.MouseEvent<HTMLAnchorElement>) => {
|
|
66
74
|
handlerToggleView(e);
|
|
67
75
|
}}
|
|
68
76
|
>
|
|
@@ -76,11 +84,11 @@ export function ContentBlobToggler({
|
|
|
76
84
|
{fullviewContent}
|
|
77
85
|
{enableToggler && (
|
|
78
86
|
<div>
|
|
79
|
-
<Spacing size="small" />
|
|
87
|
+
{forceInline ? <> </> : <Spacing size="small" />}
|
|
80
88
|
<Link
|
|
81
89
|
data-test-id={"content-blob-toggler-less-link"}
|
|
82
90
|
href="#less"
|
|
83
|
-
onClick={(e:
|
|
91
|
+
onClick={(e: React.MouseEvent<HTMLAnchorElement>) => {
|
|
84
92
|
handlerToggleView(e);
|
|
85
93
|
}}
|
|
86
94
|
>
|
|
@@ -92,4 +100,6 @@ export function ContentBlobToggler({
|
|
|
92
100
|
)}
|
|
93
101
|
</div>
|
|
94
102
|
);
|
|
103
|
+
|
|
104
|
+
return forceInline ? <InlineText>{tooglerDisplay}</InlineText> : tooglerDisplay;
|
|
95
105
|
}
|
|
@@ -1,30 +1,49 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import {ContentBlobToggler, ContentBlobTogglerProps} from "./ContentBlobToggler";
|
|
3
|
+
import {Markdown} from "../markdown/Markdown";
|
|
4
|
+
import {utils} from "../../common";
|
|
5
|
+
import InlineText from "../../components/Typography/InlineText";
|
|
2
6
|
|
|
3
|
-
import { ContentBlobToggler, ContentBlobTogglerProps, Markdown } from "./..";
|
|
4
7
|
|
|
5
8
|
export interface StringPreviewContentBlobTogglerProps
|
|
6
9
|
extends Omit<ContentBlobTogglerProps, "previewContent" | "enableToggler"> {
|
|
7
10
|
/**
|
|
8
|
-
The preview content will be cut to this length if it is too long.
|
|
11
|
+
* The preview content will be cut to this length if it is too long.
|
|
9
12
|
*/
|
|
10
13
|
previewMaxLength?: number;
|
|
11
14
|
/**
|
|
12
|
-
The content string.
|
|
15
|
+
* The content string.
|
|
16
|
+
* If it is smaller than `previewMaxLength` this will be displayed in full, else `fullviewContent` will be displayed.
|
|
13
17
|
*/
|
|
14
18
|
content: string;
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Use only parts of `content` in the preview.
|
|
21
|
+
* `firstMarkdownSection` uses the content until the first double line return.
|
|
22
|
+
* Currently overwritten by `firstNonEmptyLineOnly`.
|
|
23
|
+
*/
|
|
24
|
+
useOnly?: "firstNonEmptyLine" | "firstMarkdownSection";
|
|
25
|
+
/**
|
|
26
|
+
* If enabled the preview is rendered as Markdown.
|
|
27
|
+
*/
|
|
18
28
|
renderPreviewAsMarkdown?: boolean;
|
|
19
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* White-listing of HTML elements that will be rendered when renderPreviewAsMarkdown is enabled.
|
|
31
|
+
*/
|
|
20
32
|
allowedHtmlElementsInPreview?: string[];
|
|
21
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Allows to add non-string elements at the end of the content if the full description is shown, i.e. no toggler is necessary.
|
|
22
35
|
* This allows to add non-string elements to both the full-view content and the pure string content.
|
|
23
36
|
*/
|
|
24
|
-
noTogglerContentSuffix?: JSX.Element;
|
|
37
|
+
noTogglerContentSuffix?: React.JSX.Element;
|
|
38
|
+
/**
|
|
39
|
+
* If only the first non-empty line should be shown in the preview.
|
|
40
|
+
* This will in addition also be shortened according to `previewMaxLength`.
|
|
41
|
+
* @deprecated (v26) use `useOnly="firstNonEmptyLine"` instead
|
|
42
|
+
*/
|
|
43
|
+
firstNonEmptyLineOnly?: boolean;
|
|
25
44
|
}
|
|
26
45
|
|
|
27
|
-
/** Version of the content toggler for text
|
|
46
|
+
/** Version of the content toggler for text centric content. */
|
|
28
47
|
export function StringPreviewContentBlobToggler({
|
|
29
48
|
className = "",
|
|
30
49
|
previewMaxLength,
|
|
@@ -33,14 +52,29 @@ export function StringPreviewContentBlobToggler({
|
|
|
33
52
|
content,
|
|
34
53
|
fullviewContent,
|
|
35
54
|
startExtended,
|
|
36
|
-
|
|
55
|
+
useOnly,
|
|
37
56
|
renderPreviewAsMarkdown = false,
|
|
38
57
|
allowedHtmlElementsInPreview,
|
|
39
58
|
noTogglerContentSuffix,
|
|
59
|
+
firstNonEmptyLineOnly,
|
|
60
|
+
...otherContentBlobTogglerProps
|
|
40
61
|
}: StringPreviewContentBlobTogglerProps) {
|
|
41
|
-
|
|
42
|
-
const
|
|
43
|
-
|
|
62
|
+
// need to test `firstNonEmptyLineOnly` until property is removed
|
|
63
|
+
const useOnlyTest: StringPreviewContentBlobTogglerProps["useOnly"] = firstNonEmptyLineOnly
|
|
64
|
+
? "firstNonEmptyLine"
|
|
65
|
+
: useOnly;
|
|
66
|
+
|
|
67
|
+
let previewString = content;
|
|
68
|
+
switch (useOnlyTest) {
|
|
69
|
+
case "firstNonEmptyLine":
|
|
70
|
+
previewString = useOnlyPart(content, regexFirstNonEmptyLine);
|
|
71
|
+
break;
|
|
72
|
+
case "firstMarkdownSection":
|
|
73
|
+
previewString = useOnlyPart(content, regexFirstMarkdownSection);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
let enableToggler = previewString !== content;
|
|
77
|
+
|
|
44
78
|
let previewContent = renderPreviewAsMarkdown ? (
|
|
45
79
|
<Markdown key="markdown-content" allowedElements={allowedHtmlElementsInPreview}>
|
|
46
80
|
{previewString}
|
|
@@ -48,6 +82,15 @@ export function StringPreviewContentBlobToggler({
|
|
|
48
82
|
) : (
|
|
49
83
|
previewString
|
|
50
84
|
);
|
|
85
|
+
|
|
86
|
+
if (
|
|
87
|
+
previewMaxLength &&
|
|
88
|
+
utils.reduceToText(previewContent, { decodeHtmlEntities: true }).length > previewMaxLength
|
|
89
|
+
) {
|
|
90
|
+
previewContent = utils.reduceToText(previewContent, { decodeHtmlEntities: true }).slice(0, previewMaxLength);
|
|
91
|
+
enableToggler = true;
|
|
92
|
+
}
|
|
93
|
+
|
|
51
94
|
if (!enableToggler && noTogglerContentSuffix) {
|
|
52
95
|
previewContent = (
|
|
53
96
|
<>
|
|
@@ -60,27 +103,37 @@ export function StringPreviewContentBlobToggler({
|
|
|
60
103
|
return (
|
|
61
104
|
<ContentBlobToggler
|
|
62
105
|
className={className}
|
|
63
|
-
previewContent={previewContent}
|
|
106
|
+
previewContent={<InlineText>{previewContent}</InlineText>}
|
|
64
107
|
toggleExtendText={toggleExtendText}
|
|
65
108
|
toggleReduceText={toggleReduceText}
|
|
66
109
|
fullviewContent={fullviewContent}
|
|
67
110
|
startExtended={startExtended}
|
|
68
111
|
enableToggler={enableToggler}
|
|
112
|
+
{...otherContentBlobTogglerProps}
|
|
69
113
|
/>
|
|
70
114
|
);
|
|
71
115
|
}
|
|
72
116
|
|
|
73
|
-
const
|
|
117
|
+
const regexFirstNonEmptyLine = new RegExp("\r|\n"); // eslint-disable-line
|
|
118
|
+
const regexFirstMarkdownSection = new RegExp("\r\n\r\n|\n\n"); // eslint-disable-line
|
|
74
119
|
|
|
75
120
|
/**
|
|
76
121
|
* Takes the first non-empty line from a preview string.
|
|
77
122
|
*/
|
|
78
123
|
function firstNonEmptyLine(preview: string) {
|
|
124
|
+
return useOnlyPart(preview, regexFirstNonEmptyLine);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Returns only the first part from a preview string.
|
|
129
|
+
* Or the full string as fallback.
|
|
130
|
+
*/
|
|
131
|
+
function useOnlyPart(preview: string, regexTest: RegExp): string {
|
|
79
132
|
const previewString = preview.trim();
|
|
80
|
-
const result =
|
|
81
|
-
return result !== null ?
|
|
133
|
+
const result = regexTest.exec(previewString);
|
|
134
|
+
return result !== null ? result.input.slice(0, result.index) : previewString;
|
|
82
135
|
}
|
|
83
136
|
|
|
84
137
|
export const stringPreviewContentBlobTogglerUtils = {
|
|
85
138
|
firstNonEmptyLine,
|
|
86
|
-
};
|
|
139
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Meta, StoryFn } from "@storybook/react";
|
|
3
|
+
|
|
4
|
+
import { Markdown, StringPreviewContentBlobToggler } from "../../../index";
|
|
5
|
+
|
|
6
|
+
const config = {
|
|
7
|
+
title: "CMEM/ContentBlobToggler/StringPreview",
|
|
8
|
+
component: StringPreviewContentBlobToggler,
|
|
9
|
+
} as Meta<typeof StringPreviewContentBlobToggler>;
|
|
10
|
+
export default config;
|
|
11
|
+
|
|
12
|
+
const Template: StoryFn<typeof StringPreviewContentBlobToggler> = (args) => (
|
|
13
|
+
<StringPreviewContentBlobToggler {...args} />
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
const initialTeststring =
|
|
17
|
+
"A library for GUI elements.\nIn order to create graphical user interfaces, please have look at the documentation at [Github](https://github.com/eccenca/gui-elements).";
|
|
18
|
+
|
|
19
|
+
export const Default = Template.bind({});
|
|
20
|
+
Default.args = {
|
|
21
|
+
content: initialTeststring,
|
|
22
|
+
fullviewContent: <Markdown htmlContentBlockProps={{ large: true }}>{initialTeststring}</Markdown>,
|
|
23
|
+
previewMaxLength: 64,
|
|
24
|
+
renderPreviewAsMarkdown: true,
|
|
25
|
+
toggleExtendText: "show more",
|
|
26
|
+
toggleReduceText: "show less",
|
|
27
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { render, RenderResult } from "@testing-library/react";
|
|
3
|
+
|
|
4
|
+
import "@testing-library/jest-dom";
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
StringPreviewContentBlobToggler,
|
|
8
|
+
StringPreviewContentBlobTogglerProps,
|
|
9
|
+
} from "../StringPreviewContentBlobToggler";
|
|
10
|
+
|
|
11
|
+
import { Default as StringPreviewContentBlobTogglerStory } from "./../stories/StringPreviewContentBlobToggler.stories";
|
|
12
|
+
|
|
13
|
+
describe("StringPreviewContentBlobToggler", () => {
|
|
14
|
+
const textMustExist = (queryByText: RenderResult["queryByText"], text: string) => {
|
|
15
|
+
expect(queryByText(text, { exact: false })).not.toBeNull();
|
|
16
|
+
};
|
|
17
|
+
const textMustNotExist = (queryByText: RenderResult["queryByText"], text: string) => {
|
|
18
|
+
expect(queryByText(text, { exact: false })).toBeNull();
|
|
19
|
+
};
|
|
20
|
+
it("should cut preview and show toggler to extend", () => {
|
|
21
|
+
const { queryByText } = render(
|
|
22
|
+
<StringPreviewContentBlobToggler
|
|
23
|
+
{...(StringPreviewContentBlobTogglerStory.args as StringPreviewContentBlobTogglerProps)}
|
|
24
|
+
/>
|
|
25
|
+
);
|
|
26
|
+
textMustExist(queryByText, "A library for GUI elements.");
|
|
27
|
+
textMustNotExist(
|
|
28
|
+
queryByText,
|
|
29
|
+
"In order to create graphical user interfaces, please have look at the documentation at"
|
|
30
|
+
);
|
|
31
|
+
textMustExist(queryByText, "show more");
|
|
32
|
+
});
|
|
33
|
+
it("should display full view if `startExtended` is enabled, and show toggler to reduce", () => {
|
|
34
|
+
const { queryByText } = render(
|
|
35
|
+
<StringPreviewContentBlobToggler
|
|
36
|
+
{...(StringPreviewContentBlobTogglerStory.args as StringPreviewContentBlobTogglerProps)}
|
|
37
|
+
startExtended
|
|
38
|
+
/>
|
|
39
|
+
);
|
|
40
|
+
textMustExist(
|
|
41
|
+
queryByText,
|
|
42
|
+
"In order to create graphical user interfaces, please have look at the documentation at"
|
|
43
|
+
);
|
|
44
|
+
textMustExist(queryByText, "show less");
|
|
45
|
+
});
|
|
46
|
+
it('should display only first content line on `useOnly={"firstNonEmptyLine"}`', () => {
|
|
47
|
+
const { queryByText } = render(
|
|
48
|
+
<StringPreviewContentBlobToggler
|
|
49
|
+
{...(StringPreviewContentBlobTogglerStory.args as StringPreviewContentBlobTogglerProps)}
|
|
50
|
+
useOnly={"firstNonEmptyLine"}
|
|
51
|
+
/>
|
|
52
|
+
);
|
|
53
|
+
textMustExist(queryByText, "A library for GUI elements.");
|
|
54
|
+
textMustNotExist(queryByText, "In order to create");
|
|
55
|
+
});
|
|
56
|
+
it('should use first Markdown paragraph as preview content on `useOnly={"firstMarkdownSection"}` but shorten it', () => {
|
|
57
|
+
const { queryByText } = render(
|
|
58
|
+
<StringPreviewContentBlobToggler
|
|
59
|
+
{...(StringPreviewContentBlobTogglerStory.args as StringPreviewContentBlobTogglerProps)}
|
|
60
|
+
useOnly={"firstMarkdownSection"}
|
|
61
|
+
/>
|
|
62
|
+
);
|
|
63
|
+
textMustExist(queryByText, "A library for GUI elements.");
|
|
64
|
+
textMustExist(queryByText, "In order to create");
|
|
65
|
+
textMustNotExist(queryByText, "please have look at the documentation at");
|
|
66
|
+
});
|
|
67
|
+
it("should display full preview and no toggler if content is short enough", () => {
|
|
68
|
+
const { queryByText } = render(
|
|
69
|
+
<StringPreviewContentBlobToggler
|
|
70
|
+
{...(StringPreviewContentBlobTogglerStory.args as StringPreviewContentBlobTogglerProps)}
|
|
71
|
+
previewMaxLength={144}
|
|
72
|
+
/>
|
|
73
|
+
);
|
|
74
|
+
textMustExist(queryByText, "A library for GUI elements.");
|
|
75
|
+
textMustExist(
|
|
76
|
+
queryByText,
|
|
77
|
+
"In order to create graphical user interfaces, please have look at the documentation at"
|
|
78
|
+
);
|
|
79
|
+
textMustNotExist(queryByText, "https://github.com/"); // test if Markdown was rendered
|
|
80
|
+
textMustNotExist(queryByText, "show more");
|
|
81
|
+
});
|
|
82
|
+
it("should not use Markdown rendering on `renderPreviewAsMarkdown={false}`", () => {
|
|
83
|
+
const { queryByText } = render(
|
|
84
|
+
<StringPreviewContentBlobToggler
|
|
85
|
+
{...(StringPreviewContentBlobTogglerStory.args as StringPreviewContentBlobTogglerProps)}
|
|
86
|
+
previewMaxLength={144}
|
|
87
|
+
renderPreviewAsMarkdown={false}
|
|
88
|
+
/>
|
|
89
|
+
);
|
|
90
|
+
textMustExist(queryByText, "A library for GUI elements.");
|
|
91
|
+
textMustExist(
|
|
92
|
+
queryByText,
|
|
93
|
+
"In order to create graphical user interfaces, please have look at the documentation at"
|
|
94
|
+
);
|
|
95
|
+
textMustExist(queryByText, "https://github.com/"); // test if Markdown was rendered
|
|
96
|
+
textMustExist(queryByText, "show more");
|
|
97
|
+
});
|
|
98
|
+
});
|
|
@@ -36,7 +36,7 @@ This is a paragraph.
|
|
|
36
36
|
* another line
|
|
37
37
|
3. third item
|
|
38
38
|
|
|
39
|
-
This is a paragraph with a [text link](http://example.com/) and a footnote reference [^1].
|
|
39
|
+
This is a paragraph with a [text link](http://example.com/), some \`inline code\`, and a footnote reference [^1].
|
|
40
40
|
|
|
41
41
|
## Headline level 2
|
|
42
42
|
### Headline level 3
|
|
@@ -44,7 +44,7 @@ This is a paragraph with a [text link](http://example.com/) and a footnote refer
|
|
|
44
44
|
##### Headline level 5
|
|
45
45
|
###### Headline level 6
|
|
46
46
|
|
|
47
|
-
This is a code block.
|
|
47
|
+
This is a code block.
|
|
48
48
|
|
|
49
49
|
\`\`\`
|
|
50
50
|
another code block
|
|
@@ -8,8 +8,9 @@ import { remarkDefinitionList } from "remark-definition-list";
|
|
|
8
8
|
import remarkGfm from "remark-gfm";
|
|
9
9
|
import { PluggableList } from "unified";
|
|
10
10
|
|
|
11
|
+
import { TestableComponent } from "../../components";
|
|
12
|
+
import { HtmlContentBlock, HtmlContentBlockProps } from "../../components/Typography";
|
|
11
13
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
12
|
-
import { HtmlContentBlock, HtmlContentBlockProps, TestableComponent } from "../../index";
|
|
13
14
|
|
|
14
15
|
export interface MarkdownProps extends TestableComponent {
|
|
15
16
|
children: string;
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
a[href=""]:not(#{$eccgui-selector-text-spot-highlight}) {
|
|
56
56
|
font-size: $eccgui-size-typo-caption;
|
|
57
57
|
line-height: $eccgui-size-typo-caption-lineheight;
|
|
58
|
-
text-decoration: none;
|
|
59
58
|
vertical-align: super;
|
|
59
|
+
text-decoration: none;
|
|
60
60
|
|
|
61
61
|
&::before {
|
|
62
62
|
content: "[";
|
|
@@ -130,7 +130,7 @@ export const StickyNoteModal: React.FC<StickyNoteModalProps> = React.memo(
|
|
|
130
130
|
name={translate("noteLabel")}
|
|
131
131
|
id={"sticky-note-input"}
|
|
132
132
|
mode="markdown"
|
|
133
|
-
|
|
133
|
+
useToolbar
|
|
134
134
|
onChange={(value) => {
|
|
135
135
|
refNote.current = value;
|
|
136
136
|
}}
|