@atlaskit/editor-common 82.3.0 → 82.5.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 +26 -0
- package/dist/cjs/analytics/types/element-events.js +5 -0
- package/dist/cjs/analytics/types/enums.js +8 -0
- package/dist/cjs/collab/index.js +1 -1
- package/dist/cjs/element-browser/ViewMore.js +1 -0
- package/dist/cjs/element-browser/components/CategoryList.js +2 -0
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +19 -1
- package/dist/cjs/element-browser/components/ElementSearch.js +56 -42
- package/dist/cjs/element-browser/components/StatelessElementBrowser.js +18 -0
- package/dist/cjs/extensibility/Extension/Extension/index.js +6 -2
- package/dist/cjs/extensibility/Extension/Extension/styles.js +20 -0
- package/dist/cjs/extensibility/Extension/InlineExtension/index.js +3 -1
- package/dist/cjs/extensibility/Extension/InlineExtension/styles.js +8 -0
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +9 -1
- package/dist/cjs/extensibility/Extension/Lozenge/LozengeComponent.js +20 -15
- package/dist/cjs/extensibility/Extension/Lozenge/index.js +1 -0
- package/dist/cjs/extensibility/Extension/styles.js +13 -0
- package/dist/cjs/extensibility/ExtensionNodeWrapper.js +2 -0
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +20 -4
- package/dist/cjs/extensibility/MultiBodiedExtension/styles.js +12 -0
- package/dist/cjs/extensions/module-helpers.js +4 -0
- package/dist/cjs/keymaps/index.js +2 -1
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -0
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +2 -0
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +9 -0
- package/dist/cjs/link/LinkSearch/ToolbarComponents.js +7 -0
- package/dist/cjs/media-inline/inline-image-wrapper.js +9 -1
- package/dist/cjs/media-inline/styles.js +12 -1
- package/dist/cjs/media-inline/views/frame.js +7 -4
- package/dist/cjs/media-inline/views/icon-wrapper.js +1 -0
- package/dist/cjs/media-inline/views/wrapper.js +1 -0
- package/dist/cjs/media-single/CommentBadge.js +5 -1
- package/dist/cjs/messages/help-dialog.js +5 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/rank.js +1 -1
- package/dist/cjs/selection/gap-cursor/styles.js +1 -1
- package/dist/cjs/styles/shared/annotation.js +6 -0
- package/dist/cjs/styles/shared/background-color.js +4 -0
- package/dist/cjs/styles/shared/block-marks.js +1 -0
- package/dist/cjs/styles/shared/blockquote.js +8 -1
- package/dist/cjs/styles/shared/code-block.js +2 -0
- package/dist/cjs/styles/shared/code-mark.js +1 -0
- package/dist/cjs/styles/shared/column-layout.js +6 -1
- package/dist/cjs/styles/shared/date.js +2 -0
- package/dist/cjs/styles/shared/embedCard.js +8 -0
- package/dist/cjs/styles/shared/expand.js +1 -0
- package/dist/cjs/styles/shared/grid.js +7 -0
- package/dist/cjs/styles/shared/headings.js +6 -0
- package/dist/cjs/styles/shared/indentation.js +8 -0
- package/dist/cjs/styles/shared/link.js +4 -1
- package/dist/cjs/styles/shared/lists.js +1 -1
- package/dist/cjs/styles/shared/media-single.js +8 -1
- package/dist/cjs/styles/shared/paragraph.js +4 -1
- package/dist/cjs/styles/shared/plugins.js +8 -0
- package/dist/cjs/styles/shared/resizer.js +1 -1
- package/dist/cjs/styles/shared/rule.js +2 -1
- package/dist/cjs/styles/shared/shadow.js +4 -1
- package/dist/cjs/styles/shared/smartCard.js +1 -1
- package/dist/cjs/styles/shared/tableCell.js +1 -0
- package/dist/cjs/styles/shared/task-decision.js +2 -0
- package/dist/cjs/styles/shared/text-color.js +3 -0
- package/dist/cjs/styles/shared/unsupported-content.js +1 -1
- package/dist/cjs/styles/shared/whitespace.js +3 -1
- package/dist/cjs/table/SortingIcon.js +2 -2
- package/dist/cjs/ui/DropList/index.js +5 -1
- package/dist/cjs/ui/Expand/index.js +13 -0
- package/dist/cjs/ui/FloatingToolbar/Button.js +2 -0
- package/dist/cjs/ui/MediaSingle/index.js +3 -1
- package/dist/cjs/ui/MediaSingle/link.js +1 -0
- package/dist/cjs/ui/MediaSingle/styled.js +6 -3
- package/dist/cjs/ui/Messages/index.js +12 -7
- package/dist/cjs/ui/MultiBodiedExtension/index.js +24 -0
- package/dist/cjs/ui/PanelTextInput/index.js +1 -0
- package/dist/cjs/ui/PanelTextInput/styles.js +6 -0
- package/dist/cjs/ui/Popup/index.js +1 -0
- package/dist/cjs/ui/UnsupportedBlock/index.js +2 -0
- package/dist/cjs/ui/UnsupportedInline/index.js +2 -0
- package/dist/cjs/ui/clear-next-sibling-margin-top.js +6 -2
- package/dist/cjs/ui-color/ColorPalette/Color/index.js +10 -3
- package/dist/cjs/ui-color/ColorPalette/Color/styles.js +3 -0
- package/dist/cjs/ui-color/ColorPalette/Palettes/paletteMessages.js +1 -1
- package/dist/cjs/ui-color/ColorPalette/index.js +1 -0
- package/dist/cjs/ui-color/ColorPalette/styles.js +1 -0
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +7 -0
- package/dist/cjs/ui-menu/DropdownMenu/index.js +1 -0
- package/dist/es2019/analytics/types/element-events.js +1 -0
- package/dist/es2019/analytics/types/enums.js +8 -0
- package/dist/es2019/collab/index.js +1 -1
- package/dist/es2019/element-browser/ViewMore.js +1 -0
- package/dist/es2019/element-browser/components/CategoryList.js +3 -0
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +19 -1
- package/dist/es2019/element-browser/components/ElementSearch.js +56 -42
- package/dist/es2019/element-browser/components/StatelessElementBrowser.js +18 -0
- package/dist/es2019/extensibility/Extension/Extension/index.js +6 -2
- package/dist/es2019/extensibility/Extension/Extension/styles.js +20 -0
- package/dist/es2019/extensibility/Extension/InlineExtension/index.js +3 -1
- package/dist/es2019/extensibility/Extension/InlineExtension/styles.js +9 -0
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +9 -1
- package/dist/es2019/extensibility/Extension/Lozenge/LozengeComponent.js +19 -14
- package/dist/es2019/extensibility/Extension/Lozenge/index.js +1 -0
- package/dist/es2019/extensibility/Extension/styles.js +14 -0
- package/dist/es2019/extensibility/ExtensionNodeWrapper.js +2 -0
- package/dist/es2019/extensibility/MultiBodiedExtension/index.js +21 -5
- package/dist/es2019/extensibility/MultiBodiedExtension/styles.js +12 -0
- package/dist/es2019/extensions/module-helpers.js +4 -0
- package/dist/es2019/keymaps/index.js +1 -0
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -0
- package/dist/es2019/link/LinkSearch/LinkSearchList.js +2 -0
- package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +9 -0
- package/dist/es2019/link/LinkSearch/ToolbarComponents.js +8 -0
- package/dist/es2019/media-inline/inline-image-wrapper.js +9 -1
- package/dist/es2019/media-inline/styles.js +12 -1
- package/dist/es2019/media-inline/views/frame.js +3 -1
- package/dist/es2019/media-inline/views/icon-wrapper.js +1 -0
- package/dist/es2019/media-inline/views/wrapper.js +1 -0
- package/dist/es2019/media-single/CommentBadge.js +5 -1
- package/dist/es2019/messages/help-dialog.js +5 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/rank.js +1 -1
- package/dist/es2019/selection/gap-cursor/styles.js +1 -1
- package/dist/es2019/styles/shared/annotation.js +6 -0
- package/dist/es2019/styles/shared/background-color.js +5 -0
- package/dist/es2019/styles/shared/block-marks.js +2 -0
- package/dist/es2019/styles/shared/blockquote.js +8 -1
- package/dist/es2019/styles/shared/code-block.js +2 -0
- package/dist/es2019/styles/shared/code-mark.js +2 -0
- package/dist/es2019/styles/shared/column-layout.js +6 -0
- package/dist/es2019/styles/shared/date.js +3 -0
- package/dist/es2019/styles/shared/embedCard.js +8 -0
- package/dist/es2019/styles/shared/expand.js +1 -0
- package/dist/es2019/styles/shared/grid.js +7 -0
- package/dist/es2019/styles/shared/headings.js +12 -0
- package/dist/es2019/styles/shared/indentation.js +9 -0
- package/dist/es2019/styles/shared/link.js +3 -0
- package/dist/es2019/styles/shared/lists.js +1 -1
- package/dist/es2019/styles/shared/media-single.js +15 -0
- package/dist/es2019/styles/shared/panel.js +1 -0
- package/dist/es2019/styles/shared/paragraph.js +4 -1
- package/dist/es2019/styles/shared/plugins.js +8 -0
- package/dist/es2019/styles/shared/resizer.js +1 -1
- package/dist/es2019/styles/shared/rule.js +2 -1
- package/dist/es2019/styles/shared/shadow.js +9 -0
- package/dist/es2019/styles/shared/smartCard.js +1 -1
- package/dist/es2019/styles/shared/tableCell.js +1 -0
- package/dist/es2019/styles/shared/task-decision.js +2 -0
- package/dist/es2019/styles/shared/text-color.js +4 -0
- package/dist/es2019/styles/shared/unsupported-content.js +1 -1
- package/dist/es2019/styles/shared/whitespace.js +2 -0
- package/dist/es2019/table/SortingIcon.js +2 -2
- package/dist/es2019/ui/DropList/index.js +5 -1
- package/dist/es2019/ui/Expand/index.js +13 -0
- package/dist/es2019/ui/FloatingToolbar/Button.js +2 -0
- package/dist/es2019/ui/MediaSingle/index.js +3 -1
- package/dist/es2019/ui/MediaSingle/link.js +2 -0
- package/dist/es2019/ui/MediaSingle/styled.js +3 -1
- package/dist/es2019/ui/Messages/index.js +5 -1
- package/dist/es2019/ui/MultiBodiedExtension/index.js +24 -0
- package/dist/es2019/ui/PanelTextInput/index.js +1 -0
- package/dist/es2019/ui/PanelTextInput/styles.js +6 -0
- package/dist/es2019/ui/Popup/index.js +1 -0
- package/dist/es2019/ui/UnsupportedBlock/index.js +2 -0
- package/dist/es2019/ui/UnsupportedInline/index.js +2 -0
- package/dist/es2019/ui/clear-next-sibling-margin-top.js +7 -2
- package/dist/es2019/ui-color/ColorPalette/Color/index.js +10 -3
- package/dist/es2019/ui-color/ColorPalette/Color/styles.js +3 -0
- package/dist/es2019/ui-color/ColorPalette/Palettes/paletteMessages.js +1 -1
- package/dist/es2019/ui-color/ColorPalette/index.js +1 -0
- package/dist/es2019/ui-color/ColorPalette/styles.js +1 -0
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +7 -0
- package/dist/es2019/ui-menu/DropdownMenu/index.js +1 -0
- package/dist/esm/analytics/types/element-events.js +1 -0
- package/dist/esm/analytics/types/enums.js +8 -0
- package/dist/esm/collab/index.js +1 -1
- package/dist/esm/element-browser/ViewMore.js +1 -0
- package/dist/esm/element-browser/components/CategoryList.js +2 -0
- package/dist/esm/element-browser/components/ElementList/ElementList.js +19 -1
- package/dist/esm/element-browser/components/ElementSearch.js +56 -42
- package/dist/esm/element-browser/components/StatelessElementBrowser.js +18 -0
- package/dist/esm/extensibility/Extension/Extension/index.js +6 -2
- package/dist/esm/extensibility/Extension/Extension/styles.js +20 -0
- package/dist/esm/extensibility/Extension/InlineExtension/index.js +3 -1
- package/dist/esm/extensibility/Extension/InlineExtension/styles.js +9 -0
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +9 -1
- package/dist/esm/extensibility/Extension/Lozenge/LozengeComponent.js +20 -15
- package/dist/esm/extensibility/Extension/Lozenge/index.js +1 -0
- package/dist/esm/extensibility/Extension/styles.js +14 -0
- package/dist/esm/extensibility/ExtensionNodeWrapper.js +2 -0
- package/dist/esm/extensibility/MultiBodiedExtension/index.js +20 -4
- package/dist/esm/extensibility/MultiBodiedExtension/styles.js +12 -0
- package/dist/esm/extensions/module-helpers.js +4 -0
- package/dist/esm/keymaps/index.js +1 -0
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -0
- package/dist/esm/link/LinkSearch/LinkSearchList.js +2 -0
- package/dist/esm/link/LinkSearch/LinkSearchListItem.js +9 -0
- package/dist/esm/link/LinkSearch/ToolbarComponents.js +8 -0
- package/dist/esm/media-inline/inline-image-wrapper.js +9 -1
- package/dist/esm/media-inline/styles.js +12 -1
- package/dist/esm/media-inline/views/frame.js +7 -4
- package/dist/esm/media-inline/views/icon-wrapper.js +1 -0
- package/dist/esm/media-inline/views/wrapper.js +1 -0
- package/dist/esm/media-single/CommentBadge.js +5 -1
- package/dist/esm/messages/help-dialog.js +5 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/rank.js +1 -1
- package/dist/esm/selection/gap-cursor/styles.js +1 -1
- package/dist/esm/styles/shared/annotation.js +6 -0
- package/dist/esm/styles/shared/background-color.js +5 -0
- package/dist/esm/styles/shared/block-marks.js +2 -0
- package/dist/esm/styles/shared/blockquote.js +8 -1
- package/dist/esm/styles/shared/code-block.js +2 -0
- package/dist/esm/styles/shared/code-mark.js +1 -0
- package/dist/esm/styles/shared/column-layout.js +5 -0
- package/dist/esm/styles/shared/date.js +2 -0
- package/dist/esm/styles/shared/embedCard.js +8 -0
- package/dist/esm/styles/shared/expand.js +1 -0
- package/dist/esm/styles/shared/grid.js +7 -0
- package/dist/esm/styles/shared/headings.js +6 -0
- package/dist/esm/styles/shared/indentation.js +9 -0
- package/dist/esm/styles/shared/link.js +3 -0
- package/dist/esm/styles/shared/lists.js +1 -1
- package/dist/esm/styles/shared/media-single.js +7 -0
- package/dist/esm/styles/shared/paragraph.js +4 -1
- package/dist/esm/styles/shared/plugins.js +8 -0
- package/dist/esm/styles/shared/resizer.js +1 -1
- package/dist/esm/styles/shared/rule.js +2 -1
- package/dist/esm/styles/shared/shadow.js +3 -0
- package/dist/esm/styles/shared/smartCard.js +1 -1
- package/dist/esm/styles/shared/tableCell.js +1 -0
- package/dist/esm/styles/shared/task-decision.js +2 -0
- package/dist/esm/styles/shared/text-color.js +4 -0
- package/dist/esm/styles/shared/unsupported-content.js +1 -1
- package/dist/esm/styles/shared/whitespace.js +2 -0
- package/dist/esm/table/SortingIcon.js +2 -2
- package/dist/esm/ui/DropList/index.js +5 -1
- package/dist/esm/ui/Expand/index.js +13 -0
- package/dist/esm/ui/FloatingToolbar/Button.js +2 -0
- package/dist/esm/ui/MediaSingle/index.js +3 -1
- package/dist/esm/ui/MediaSingle/link.js +2 -0
- package/dist/esm/ui/MediaSingle/styled.js +6 -3
- package/dist/esm/ui/Messages/index.js +12 -7
- package/dist/esm/ui/MultiBodiedExtension/index.js +24 -0
- package/dist/esm/ui/PanelTextInput/index.js +1 -0
- package/dist/esm/ui/PanelTextInput/styles.js +6 -0
- package/dist/esm/ui/Popup/index.js +1 -0
- package/dist/esm/ui/UnsupportedBlock/index.js +2 -0
- package/dist/esm/ui/UnsupportedInline/index.js +2 -0
- package/dist/esm/ui/clear-next-sibling-margin-top.js +6 -2
- package/dist/esm/ui-color/ColorPalette/Color/index.js +10 -3
- package/dist/esm/ui-color/ColorPalette/Color/styles.js +3 -0
- package/dist/esm/ui-color/ColorPalette/Palettes/paletteMessages.js +1 -1
- package/dist/esm/ui-color/ColorPalette/index.js +1 -0
- package/dist/esm/ui-color/ColorPalette/styles.js +1 -0
- package/dist/esm/ui-menu/ColorPickerButton/index.js +7 -0
- package/dist/esm/ui-menu/DropdownMenu/index.js +1 -0
- package/dist/types/analytics/types/element-events.d.ts +10 -0
- package/dist/types/analytics/types/enums.d.ts +9 -1
- package/dist/types/analytics/types/events.d.ts +2 -1
- package/dist/types/analytics/types/highlight-events.d.ts +4 -2
- package/dist/types/analytics/types/index.d.ts +1 -0
- package/dist/types/extensions/types/extension-manifest-toolbar-item.d.ts +17 -2
- package/dist/types/keymaps/index.d.ts +1 -0
- package/dist/types/messages/help-dialog.d.ts +5 -0
- package/dist/types/ui/FloatingToolbar/Button.d.ts +2 -1
- package/dist/types/ui-color/ColorPalette/Color/index.d.ts +2 -8
- package/dist/types-ts4.5/analytics/types/element-events.d.ts +10 -0
- package/dist/types-ts4.5/analytics/types/enums.d.ts +9 -1
- package/dist/types-ts4.5/analytics/types/events.d.ts +2 -1
- package/dist/types-ts4.5/analytics/types/highlight-events.d.ts +4 -2
- package/dist/types-ts4.5/analytics/types/index.d.ts +1 -0
- package/dist/types-ts4.5/extensions/types/extension-manifest-toolbar-item.d.ts +17 -2
- package/dist/types-ts4.5/keymaps/index.d.ts +1 -0
- package/dist/types-ts4.5/messages/help-dialog.d.ts +5 -0
- package/dist/types-ts4.5/ui/FloatingToolbar/Button.d.ts +2 -1
- package/dist/types-ts4.5/ui-color/ColorPalette/Color/index.d.ts +2 -8
- package/package.json +1 -1
|
@@ -123,7 +123,7 @@ export default defineMessages({
|
|
|
123
123
|
// Colors only used in highlight palette
|
|
124
124
|
'no-color': {
|
|
125
125
|
id: 'fabric.theme.no-color',
|
|
126
|
-
defaultMessage: '
|
|
126
|
+
defaultMessage: 'No highlight',
|
|
127
127
|
description: 'Tooltip for the no color option in the highlight color palette in the main editor toolbar'
|
|
128
128
|
},
|
|
129
129
|
lime: {
|
|
@@ -54,6 +54,7 @@ var ColorPalette = function ColorPalette(props) {
|
|
|
54
54
|
}, [palette, cols]);
|
|
55
55
|
return jsx(React.Fragment, null, colorsPerRow.map(function (row) {
|
|
56
56
|
return jsx("div", {
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
57
58
|
css: colorPaletteWrapper
|
|
58
59
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
59
60
|
,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
2
3
|
export var colorPaletteWrapper = css({
|
|
3
4
|
padding: "0 ".concat("var(--ds-space-100, 8px)"),
|
|
4
5
|
/* Firefox bug fix: https://product-fabric.atlassian.net/browse/ED-1789 */
|
|
@@ -25,6 +25,7 @@ var colorPickerExpandContainer = css({
|
|
|
25
25
|
// Control the size of color picker buttons and preview
|
|
26
26
|
// TODO: https://product-fabric.atlassian.net/browse/DSP-4134
|
|
27
27
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
28
29
|
var colorPickerWrapper = function colorPickerWrapper() {
|
|
29
30
|
return css({
|
|
30
31
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
@@ -168,17 +169,23 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
168
169
|
return css({
|
|
169
170
|
padding: "var(--ds-space-075, 6px)".concat(" 10px"),
|
|
170
171
|
backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
|
|
172
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
171
173
|
height: "".concat(!!((_props$size = props.size) !== null && _props$size !== void 0 && _props$size.height) ? 'inherit' : ''),
|
|
174
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
172
175
|
'&:before': {
|
|
173
176
|
display: 'flex',
|
|
174
177
|
justifyContent: 'center',
|
|
175
178
|
alignItems: 'center',
|
|
176
179
|
alignSelf: 'center',
|
|
177
180
|
content: "''",
|
|
181
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
178
182
|
border: "1px solid ".concat(DEFAULT_BORDER_COLOR),
|
|
179
183
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
184
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
180
185
|
backgroundColor: currentColor || 'transparent',
|
|
186
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
181
187
|
width: ((_props$size2 = props.size) === null || _props$size2 === void 0 ? void 0 : _props$size2.width) || '14px',
|
|
188
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
182
189
|
height: ((_props$size3 = props.size) === null || _props$size3 === void 0 ? void 0 : _props$size3.height) || '14px',
|
|
183
190
|
padding: 0,
|
|
184
191
|
margin: "0px ".concat("var(--ds-space-025, 2px)")
|
|
@@ -34,6 +34,7 @@ import { ArrowKeyNavigationProvider } from '../ArrowKeyNavigationProvider';
|
|
|
34
34
|
import { ArrowKeyNavigationType } from '../ArrowKeyNavigationProvider/types';
|
|
35
35
|
var wrapper = css({
|
|
36
36
|
/* tooltip in ToolbarButton is display:block */
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
37
38
|
'& > div > div': {
|
|
38
39
|
display: 'flex'
|
|
39
40
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
|
|
2
|
+
import type { UIAEP } from './utils';
|
|
3
|
+
type ElementAttributes = {
|
|
4
|
+
nodeDepth: number;
|
|
5
|
+
nodeType: string;
|
|
6
|
+
};
|
|
7
|
+
type ElementDragAEP = UIAEP<ACTION.DRAGGED, ACTION_SUBJECT.ELEMENT, ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE, ElementAttributes, null>;
|
|
8
|
+
type DragCancelledAEP = UIAEP<ACTION.CANCELLED, ACTION_SUBJECT.DRAG, ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE, ElementAttributes, null>;
|
|
9
|
+
export type ElementEventPayload = ElementDragAEP | DragCancelledAEP;
|
|
10
|
+
export {};
|
|
@@ -8,6 +8,7 @@ export declare enum ACTION {
|
|
|
8
8
|
ACTIVATED = "activated",
|
|
9
9
|
ADDED = "added",
|
|
10
10
|
BROWSER_FREEZE = "browserFreeze",
|
|
11
|
+
CANCELLED = "cancelled",
|
|
11
12
|
CAUGHT_DOM_ERROR = "caughtDomError",
|
|
12
13
|
CHANGED_BACKGROUND_COLOR = "changedBackgroundColor",
|
|
13
14
|
CHANGED_ICON = "changedIcon",
|
|
@@ -36,6 +37,7 @@ export declare enum ACTION {
|
|
|
36
37
|
DISMISSED = "dismissed",
|
|
37
38
|
DISPATCHED_INVALID_TRANSACTION = "dispatchedInvalidTransaction",
|
|
38
39
|
DISPATCHED_VALID_TRANSACTION = "dispatchedValidTransaction",
|
|
40
|
+
DRAGGED = "dragged",
|
|
39
41
|
EDITED = "edited",
|
|
40
42
|
EDITOR_CRASHED = "unhandledErrorCaught",
|
|
41
43
|
EDITOR_CRASHED_ADDITIONAL_INFORMATION = "unhandledErrorCaughtAdditionalInfov2",
|
|
@@ -154,6 +156,7 @@ export declare enum INPUT_METHOD {
|
|
|
154
156
|
CONFIG_PANEL = "configPanel",
|
|
155
157
|
CONTEXT_MENU = "contextMenu",
|
|
156
158
|
DRAG_AND_DROP = "dragAndDrop",
|
|
159
|
+
DRAG = "drag",
|
|
157
160
|
EXTERNAL = "external",
|
|
158
161
|
EXTENSION_API = "extensionApi",
|
|
159
162
|
FLOATING_TB = "floatingToolbar",
|
|
@@ -228,7 +231,10 @@ export declare enum ACTION_SUBJECT {
|
|
|
228
231
|
TOOLTIP = "tooltip",
|
|
229
232
|
LOOM = "loom",
|
|
230
233
|
MULTI_BODIED_EXTENSION = "multiBodiedExtension",
|
|
231
|
-
BODIED_EXTENSION = "bodiedExtension"
|
|
234
|
+
BODIED_EXTENSION = "bodiedExtension",
|
|
235
|
+
DROP_TARGET = "dropTarget",
|
|
236
|
+
DRAG = "drag",
|
|
237
|
+
ELEMENT = "element"
|
|
232
238
|
}
|
|
233
239
|
export declare enum ACTION_SUBJECT_ID {
|
|
234
240
|
ACTION = "action",
|
|
@@ -257,6 +263,8 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
257
263
|
DECISION = "decision",
|
|
258
264
|
DIVIDER = "divider",
|
|
259
265
|
EDIT_LINK = "editLink",
|
|
266
|
+
ELEMENT_DRAG_HANDLE = "elementDragHandle",
|
|
267
|
+
ELEMENT_DROP_TARGET = "elementDropTarget",
|
|
260
268
|
EMBEDS = "embeds",
|
|
261
269
|
EMOJI = "emoji",
|
|
262
270
|
EXPAND = "expand",
|
|
@@ -8,6 +8,7 @@ import type { ConfigPanelEventPayload } from './config-panel-events';
|
|
|
8
8
|
import type { CutCopyEventPayload } from './cut-copy-events';
|
|
9
9
|
import type { DateEventPayload } from './date-events';
|
|
10
10
|
import type { ElementBrowserEventPayload } from './element-browser-events';
|
|
11
|
+
import type { ElementEventPayload } from './element-events';
|
|
11
12
|
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, CONTENT_COMPONENT, FLOATING_CONTROLS_TITLE } from './enums';
|
|
12
13
|
import type { ExperimentalEventPayload } from './experimental-events';
|
|
13
14
|
import type { ExtensionEventPayload } from './extension-events';
|
|
@@ -37,7 +38,7 @@ export type SimplifiedNode = {
|
|
|
37
38
|
marks?: string[];
|
|
38
39
|
content?: SimplifiedNode[];
|
|
39
40
|
};
|
|
40
|
-
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload;
|
|
41
|
+
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | ElementEventPayload;
|
|
41
42
|
type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
|
|
42
43
|
previousColor: string;
|
|
43
44
|
newColor: string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
|
|
1
|
+
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, INPUT_METHOD } from './enums';
|
|
2
2
|
import type { TrackAEP } from './utils';
|
|
3
|
-
export type HighlightToolbarToggleAEP = TrackAEP<ACTION.OPENED | ACTION.CLOSED, ACTION_SUBJECT.TOOLBAR, ACTION_SUBJECT_ID.FORMAT_BACKGROUND_COLOR,
|
|
3
|
+
export type HighlightToolbarToggleAEP = TrackAEP<ACTION.OPENED | ACTION.CLOSED, ACTION_SUBJECT.TOOLBAR, ACTION_SUBJECT_ID.FORMAT_BACKGROUND_COLOR, {
|
|
4
|
+
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT;
|
|
5
|
+
}, undefined>;
|
|
4
6
|
export type HighlightTextAEP = TrackAEP<ACTION.FORMATTED, ACTION_SUBJECT.TEXT, ACTION_SUBJECT_ID.FORMAT_BACKGROUND_COLOR, {
|
|
5
7
|
newColor: string;
|
|
6
8
|
previousColor: string;
|
|
@@ -34,3 +34,4 @@ export { SELECTION_POSITION, SELECTION_TYPE } from './utils';
|
|
|
34
34
|
export type { OperationalAEP } from './utils';
|
|
35
35
|
export type { PluginMethodReport, PluginsReport, NodeCount, PluginPerformanceReportData, } from './performance-report';
|
|
36
36
|
export type { InitialiseFragmentMarksAEP, ConnectedNodesAEP, DisconnectedSourceAEP, DisconnectedTargetAEP, GotConnectionsAEP, UpdatedFragmentMarkNameAEP, UpdatedSourceAEP, UpdatedTargetAEP, } from './referentiality-events';
|
|
37
|
+
export type { ElementEventPayload } from './element-events';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { ADFEntity } from '@atlaskit/adf-utils/types';
|
|
2
3
|
import type { ExtensionAPI } from './extension-handler';
|
|
3
4
|
import type { ExtensionIconModule } from './extension-manifest-common';
|
|
@@ -6,7 +7,14 @@ export type ToolbarButton = ExtensionModuleToolbarButtonLabelOrIcon & {
|
|
|
6
7
|
key: string;
|
|
7
8
|
action: ToolbarButtonAction;
|
|
8
9
|
label: string;
|
|
9
|
-
|
|
10
|
+
ariaLabel?: string;
|
|
11
|
+
tooltip?: React.ReactNode | string;
|
|
12
|
+
/**
|
|
13
|
+
* Tooltip Style
|
|
14
|
+
* This uses the Custom component feature of the Tooltip component.
|
|
15
|
+
* How to use: https://atlassian.design/components/tooltip/examples#custom-component
|
|
16
|
+
*/
|
|
17
|
+
tooltipStyle?: React.ForwardRefExoticComponent<any> | React.ComponentType<any>;
|
|
10
18
|
icon?: () => ExtensionIconModule;
|
|
11
19
|
display?: 'icon' | 'label' | 'icon-and-label';
|
|
12
20
|
disabled?: boolean;
|
|
@@ -38,7 +46,14 @@ export type StandardNodeContext = {
|
|
|
38
46
|
export type ExtensionToolbarButton = {
|
|
39
47
|
key: string;
|
|
40
48
|
label?: string;
|
|
41
|
-
|
|
49
|
+
ariaLabel?: string;
|
|
50
|
+
tooltip?: React.ReactNode | string;
|
|
51
|
+
/**
|
|
52
|
+
* Tooltip Style
|
|
53
|
+
* This uses the Custom component feature of the Tooltip component.
|
|
54
|
+
* How to use: https://atlassian.design/components/tooltip/examples#custom-component
|
|
55
|
+
*/
|
|
56
|
+
tooltipStyle?: React.ForwardRefExoticComponent<any> | React.ComponentType<any>;
|
|
42
57
|
icon?: () => ExtensionIconModule;
|
|
43
58
|
action: ToolbarButtonAction;
|
|
44
59
|
disabled?: boolean;
|
|
@@ -89,6 +89,7 @@ export declare const selectTable: Keymap;
|
|
|
89
89
|
export declare const increaseMediaSize: Keymap;
|
|
90
90
|
export declare const decreaseMediaSize: Keymap;
|
|
91
91
|
export declare const activateVideoControls: Keymap;
|
|
92
|
+
export declare const toggleHighlightPalette: Keymap;
|
|
92
93
|
export declare function tooltip(keymap?: Keymap, description?: string): string | undefined;
|
|
93
94
|
export declare const ToolTipContent: React.MemoExoticComponent<({ description, shortcutOverride, keymap, }: {
|
|
94
95
|
description?: string | React.ReactNode;
|
|
@@ -21,11 +21,12 @@ export interface Props {
|
|
|
21
21
|
children?: React.ReactNode;
|
|
22
22
|
className?: string;
|
|
23
23
|
tooltipContent?: React.ReactNode;
|
|
24
|
+
tooltipStyle?: React.ForwardRefExoticComponent<any> | React.ComponentType<any>;
|
|
24
25
|
testId?: string;
|
|
25
26
|
hideTooltipOnClick?: boolean;
|
|
26
27
|
tabIndex?: number | null | undefined;
|
|
27
28
|
areaControls?: string;
|
|
28
29
|
isRadioButton?: boolean;
|
|
29
30
|
}
|
|
30
|
-
declare const _default: ({ title, icon, iconAfter, onClick, onKeyDown, onMouseEnter, onMouseLeave, onFocus, onBlur, selected, disabled, href, target, appearance, children, className, tooltipContent, testId, hideTooltipOnClick, ariaHasPopup, tabIndex, areaControls, ariaLabel, isRadioButton, }: Props) => JSX.Element;
|
|
31
|
+
declare const _default: ({ title, icon, iconAfter, onClick, onKeyDown, onMouseEnter, onMouseLeave, onFocus, onBlur, selected, disabled, href, target, appearance, children, className, tooltipContent, tooltipStyle, testId, hideTooltipOnClick, ariaHasPopup, tabIndex, areaControls, ariaLabel, isRadioButton, }: Props) => JSX.Element;
|
|
31
32
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import
|
|
2
|
+
import { type ReactElement } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
4
|
export interface Props {
|
|
5
5
|
value: string;
|
|
@@ -13,11 +13,5 @@ export interface Props {
|
|
|
13
13
|
hexToPaletteColor?: (hexColor: string) => string | undefined;
|
|
14
14
|
decorator?: ReactElement;
|
|
15
15
|
}
|
|
16
|
-
declare
|
|
17
|
-
declare class ClassComponentColor extends PureComponent<Props> {
|
|
18
|
-
render(): jsx.JSX.Element;
|
|
19
|
-
onMouseDown: (e: React.MouseEvent<{}>) => void;
|
|
20
|
-
onClick: (e: React.MouseEvent<{}>) => void;
|
|
21
|
-
}
|
|
22
|
-
declare const Color: typeof ClassComponentColor | typeof FunctionalComponentColor;
|
|
16
|
+
declare const Color: (props: Props) => jsx.JSX.Element;
|
|
23
17
|
export default Color;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
|
|
2
|
+
import type { UIAEP } from './utils';
|
|
3
|
+
type ElementAttributes = {
|
|
4
|
+
nodeDepth: number;
|
|
5
|
+
nodeType: string;
|
|
6
|
+
};
|
|
7
|
+
type ElementDragAEP = UIAEP<ACTION.DRAGGED, ACTION_SUBJECT.ELEMENT, ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE, ElementAttributes, null>;
|
|
8
|
+
type DragCancelledAEP = UIAEP<ACTION.CANCELLED, ACTION_SUBJECT.DRAG, ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE, ElementAttributes, null>;
|
|
9
|
+
export type ElementEventPayload = ElementDragAEP | DragCancelledAEP;
|
|
10
|
+
export {};
|
|
@@ -8,6 +8,7 @@ export declare enum ACTION {
|
|
|
8
8
|
ACTIVATED = "activated",
|
|
9
9
|
ADDED = "added",
|
|
10
10
|
BROWSER_FREEZE = "browserFreeze",
|
|
11
|
+
CANCELLED = "cancelled",
|
|
11
12
|
CAUGHT_DOM_ERROR = "caughtDomError",
|
|
12
13
|
CHANGED_BACKGROUND_COLOR = "changedBackgroundColor",
|
|
13
14
|
CHANGED_ICON = "changedIcon",
|
|
@@ -36,6 +37,7 @@ export declare enum ACTION {
|
|
|
36
37
|
DISMISSED = "dismissed",
|
|
37
38
|
DISPATCHED_INVALID_TRANSACTION = "dispatchedInvalidTransaction",
|
|
38
39
|
DISPATCHED_VALID_TRANSACTION = "dispatchedValidTransaction",
|
|
40
|
+
DRAGGED = "dragged",
|
|
39
41
|
EDITED = "edited",
|
|
40
42
|
EDITOR_CRASHED = "unhandledErrorCaught",
|
|
41
43
|
EDITOR_CRASHED_ADDITIONAL_INFORMATION = "unhandledErrorCaughtAdditionalInfov2",
|
|
@@ -154,6 +156,7 @@ export declare enum INPUT_METHOD {
|
|
|
154
156
|
CONFIG_PANEL = "configPanel",
|
|
155
157
|
CONTEXT_MENU = "contextMenu",
|
|
156
158
|
DRAG_AND_DROP = "dragAndDrop",
|
|
159
|
+
DRAG = "drag",
|
|
157
160
|
EXTERNAL = "external",
|
|
158
161
|
EXTENSION_API = "extensionApi",
|
|
159
162
|
FLOATING_TB = "floatingToolbar",
|
|
@@ -228,7 +231,10 @@ export declare enum ACTION_SUBJECT {
|
|
|
228
231
|
TOOLTIP = "tooltip",
|
|
229
232
|
LOOM = "loom",
|
|
230
233
|
MULTI_BODIED_EXTENSION = "multiBodiedExtension",
|
|
231
|
-
BODIED_EXTENSION = "bodiedExtension"
|
|
234
|
+
BODIED_EXTENSION = "bodiedExtension",
|
|
235
|
+
DROP_TARGET = "dropTarget",
|
|
236
|
+
DRAG = "drag",
|
|
237
|
+
ELEMENT = "element"
|
|
232
238
|
}
|
|
233
239
|
export declare enum ACTION_SUBJECT_ID {
|
|
234
240
|
ACTION = "action",
|
|
@@ -257,6 +263,8 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
257
263
|
DECISION = "decision",
|
|
258
264
|
DIVIDER = "divider",
|
|
259
265
|
EDIT_LINK = "editLink",
|
|
266
|
+
ELEMENT_DRAG_HANDLE = "elementDragHandle",
|
|
267
|
+
ELEMENT_DROP_TARGET = "elementDropTarget",
|
|
260
268
|
EMBEDS = "embeds",
|
|
261
269
|
EMOJI = "emoji",
|
|
262
270
|
EXPAND = "expand",
|
|
@@ -8,6 +8,7 @@ import type { ConfigPanelEventPayload } from './config-panel-events';
|
|
|
8
8
|
import type { CutCopyEventPayload } from './cut-copy-events';
|
|
9
9
|
import type { DateEventPayload } from './date-events';
|
|
10
10
|
import type { ElementBrowserEventPayload } from './element-browser-events';
|
|
11
|
+
import type { ElementEventPayload } from './element-events';
|
|
11
12
|
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, CONTENT_COMPONENT, FLOATING_CONTROLS_TITLE } from './enums';
|
|
12
13
|
import type { ExperimentalEventPayload } from './experimental-events';
|
|
13
14
|
import type { ExtensionEventPayload } from './extension-events';
|
|
@@ -37,7 +38,7 @@ export type SimplifiedNode = {
|
|
|
37
38
|
marks?: string[];
|
|
38
39
|
content?: SimplifiedNode[];
|
|
39
40
|
};
|
|
40
|
-
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload;
|
|
41
|
+
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | ElementEventPayload;
|
|
41
42
|
type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
|
|
42
43
|
previousColor: string;
|
|
43
44
|
newColor: string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
|
|
1
|
+
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, INPUT_METHOD } from './enums';
|
|
2
2
|
import type { TrackAEP } from './utils';
|
|
3
|
-
export type HighlightToolbarToggleAEP = TrackAEP<ACTION.OPENED | ACTION.CLOSED, ACTION_SUBJECT.TOOLBAR, ACTION_SUBJECT_ID.FORMAT_BACKGROUND_COLOR,
|
|
3
|
+
export type HighlightToolbarToggleAEP = TrackAEP<ACTION.OPENED | ACTION.CLOSED, ACTION_SUBJECT.TOOLBAR, ACTION_SUBJECT_ID.FORMAT_BACKGROUND_COLOR, {
|
|
4
|
+
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT;
|
|
5
|
+
}, undefined>;
|
|
4
6
|
export type HighlightTextAEP = TrackAEP<ACTION.FORMATTED, ACTION_SUBJECT.TEXT, ACTION_SUBJECT_ID.FORMAT_BACKGROUND_COLOR, {
|
|
5
7
|
newColor: string;
|
|
6
8
|
previousColor: string;
|
|
@@ -34,3 +34,4 @@ export { SELECTION_POSITION, SELECTION_TYPE } from './utils';
|
|
|
34
34
|
export type { OperationalAEP } from './utils';
|
|
35
35
|
export type { PluginMethodReport, PluginsReport, NodeCount, PluginPerformanceReportData, } from './performance-report';
|
|
36
36
|
export type { InitialiseFragmentMarksAEP, ConnectedNodesAEP, DisconnectedSourceAEP, DisconnectedTargetAEP, GotConnectionsAEP, UpdatedFragmentMarkNameAEP, UpdatedSourceAEP, UpdatedTargetAEP, } from './referentiality-events';
|
|
37
|
+
export type { ElementEventPayload } from './element-events';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { ADFEntity } from '@atlaskit/adf-utils/types';
|
|
2
3
|
import type { ExtensionAPI } from './extension-handler';
|
|
3
4
|
import type { ExtensionIconModule } from './extension-manifest-common';
|
|
@@ -6,7 +7,14 @@ export type ToolbarButton = ExtensionModuleToolbarButtonLabelOrIcon & {
|
|
|
6
7
|
key: string;
|
|
7
8
|
action: ToolbarButtonAction;
|
|
8
9
|
label: string;
|
|
9
|
-
|
|
10
|
+
ariaLabel?: string;
|
|
11
|
+
tooltip?: React.ReactNode | string;
|
|
12
|
+
/**
|
|
13
|
+
* Tooltip Style
|
|
14
|
+
* This uses the Custom component feature of the Tooltip component.
|
|
15
|
+
* How to use: https://atlassian.design/components/tooltip/examples#custom-component
|
|
16
|
+
*/
|
|
17
|
+
tooltipStyle?: React.ForwardRefExoticComponent<any> | React.ComponentType<any>;
|
|
10
18
|
icon?: () => ExtensionIconModule;
|
|
11
19
|
display?: 'icon' | 'label' | 'icon-and-label';
|
|
12
20
|
disabled?: boolean;
|
|
@@ -38,7 +46,14 @@ export type StandardNodeContext = {
|
|
|
38
46
|
export type ExtensionToolbarButton = {
|
|
39
47
|
key: string;
|
|
40
48
|
label?: string;
|
|
41
|
-
|
|
49
|
+
ariaLabel?: string;
|
|
50
|
+
tooltip?: React.ReactNode | string;
|
|
51
|
+
/**
|
|
52
|
+
* Tooltip Style
|
|
53
|
+
* This uses the Custom component feature of the Tooltip component.
|
|
54
|
+
* How to use: https://atlassian.design/components/tooltip/examples#custom-component
|
|
55
|
+
*/
|
|
56
|
+
tooltipStyle?: React.ForwardRefExoticComponent<any> | React.ComponentType<any>;
|
|
42
57
|
icon?: () => ExtensionIconModule;
|
|
43
58
|
action: ToolbarButtonAction;
|
|
44
59
|
disabled?: boolean;
|
|
@@ -89,6 +89,7 @@ export declare const selectTable: Keymap;
|
|
|
89
89
|
export declare const increaseMediaSize: Keymap;
|
|
90
90
|
export declare const decreaseMediaSize: Keymap;
|
|
91
91
|
export declare const activateVideoControls: Keymap;
|
|
92
|
+
export declare const toggleHighlightPalette: Keymap;
|
|
92
93
|
export declare function tooltip(keymap?: Keymap, description?: string): string | undefined;
|
|
93
94
|
export declare const ToolTipContent: React.MemoExoticComponent<({ description, shortcutOverride, keymap, }: {
|
|
94
95
|
description?: string | React.ReactNode;
|
|
@@ -21,11 +21,12 @@ export interface Props {
|
|
|
21
21
|
children?: React.ReactNode;
|
|
22
22
|
className?: string;
|
|
23
23
|
tooltipContent?: React.ReactNode;
|
|
24
|
+
tooltipStyle?: React.ForwardRefExoticComponent<any> | React.ComponentType<any>;
|
|
24
25
|
testId?: string;
|
|
25
26
|
hideTooltipOnClick?: boolean;
|
|
26
27
|
tabIndex?: number | null | undefined;
|
|
27
28
|
areaControls?: string;
|
|
28
29
|
isRadioButton?: boolean;
|
|
29
30
|
}
|
|
30
|
-
declare const _default: ({ title, icon, iconAfter, onClick, onKeyDown, onMouseEnter, onMouseLeave, onFocus, onBlur, selected, disabled, href, target, appearance, children, className, tooltipContent, testId, hideTooltipOnClick, ariaHasPopup, tabIndex, areaControls, ariaLabel, isRadioButton, }: Props) => JSX.Element;
|
|
31
|
+
declare const _default: ({ title, icon, iconAfter, onClick, onKeyDown, onMouseEnter, onMouseLeave, onFocus, onBlur, selected, disabled, href, target, appearance, children, className, tooltipContent, tooltipStyle, testId, hideTooltipOnClick, ariaHasPopup, tabIndex, areaControls, ariaLabel, isRadioButton, }: Props) => JSX.Element;
|
|
31
32
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import
|
|
2
|
+
import { type ReactElement } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
4
|
export interface Props {
|
|
5
5
|
value: string;
|
|
@@ -13,11 +13,5 @@ export interface Props {
|
|
|
13
13
|
hexToPaletteColor?: (hexColor: string) => string | undefined;
|
|
14
14
|
decorator?: ReactElement;
|
|
15
15
|
}
|
|
16
|
-
declare
|
|
17
|
-
declare class ClassComponentColor extends PureComponent<Props> {
|
|
18
|
-
render(): jsx.JSX.Element;
|
|
19
|
-
onMouseDown: (e: React.MouseEvent<{}>) => void;
|
|
20
|
-
onClick: (e: React.MouseEvent<{}>) => void;
|
|
21
|
-
}
|
|
22
|
-
declare const Color: typeof ClassComponentColor | typeof FunctionalComponentColor;
|
|
16
|
+
declare const Color: (props: Props) => jsx.JSX.Element;
|
|
23
17
|
export default Color;
|
package/package.json
CHANGED