@atlaskit/editor-common 84.1.0 → 84.3.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 +32 -0
- package/afm-cc/tsconfig.json +3 -0
- package/afm-jira/tsconfig.json +3 -0
- package/dist/cjs/extensibility/ExtensionNodeWrapper.js +2 -2
- package/dist/cjs/link/ConfigureLinkOverlay/Dropdown.js +56 -0
- package/dist/cjs/link/ConfigureLinkOverlay/StyledButton.js +38 -0
- package/dist/cjs/link/ConfigureLinkOverlay/{OverlayButton.js → index.js} +29 -22
- package/dist/cjs/link/index.js +2 -2
- package/dist/cjs/mark/commands.js +2 -7
- package/dist/cjs/messages/annotation.js +1 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +3 -2
- package/dist/cjs/resizer/Resizer.js +23 -45
- package/dist/cjs/styles/shared/annotation.js +2 -34
- package/dist/cjs/styles/shared/smartCard.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui-color/ColorPalette/Color/index.js +1 -2
- package/dist/cjs/ui-color/ColorPalette/Palettes/highlightColorPalette.js +6 -11
- package/dist/cjs/ui-color/ColorPalette/Palettes/textColorPalette.js +2 -11
- package/dist/cjs/ui-color/index.js +0 -12
- package/dist/cjs/utils/annotation/index.js +10 -18
- package/dist/cjs/utils/index.js +5 -1
- package/dist/cjs/utils/scroll-gutter.js +3 -0
- package/dist/cjs/utils/validator.js +5 -5
- package/dist/cjs/whitespace/index.js +18 -0
- package/dist/es2019/extensibility/ExtensionNodeWrapper.js +1 -1
- package/dist/es2019/link/ConfigureLinkOverlay/Dropdown.js +45 -0
- package/dist/es2019/link/ConfigureLinkOverlay/StyledButton.js +30 -0
- package/dist/es2019/link/ConfigureLinkOverlay/{OverlayButton.js → index.js} +28 -24
- package/dist/es2019/link/index.js +1 -1
- package/dist/es2019/mark/commands.js +3 -10
- package/dist/es2019/messages/annotation.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +2 -1
- package/dist/es2019/resizer/Resizer.js +26 -54
- package/dist/es2019/styles/shared/annotation.js +3 -35
- package/dist/es2019/styles/shared/smartCard.js +2 -2
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui-color/ColorPalette/Color/index.js +1 -2
- package/dist/es2019/ui-color/ColorPalette/Palettes/highlightColorPalette.js +2 -7
- package/dist/es2019/ui-color/ColorPalette/Palettes/textColorPalette.js +2 -7
- package/dist/es2019/ui-color/index.js +2 -2
- package/dist/es2019/utils/annotation/index.js +11 -21
- package/dist/es2019/utils/index.js +4 -1
- package/dist/es2019/utils/scroll-gutter.js +3 -0
- package/dist/es2019/utils/validator.js +6 -6
- package/dist/es2019/whitespace/index.js +1 -0
- package/dist/esm/extensibility/ExtensionNodeWrapper.js +1 -1
- package/dist/esm/link/ConfigureLinkOverlay/Dropdown.js +46 -0
- package/dist/esm/link/ConfigureLinkOverlay/StyledButton.js +31 -0
- package/dist/esm/link/ConfigureLinkOverlay/{OverlayButton.js → index.js} +31 -24
- package/dist/esm/link/index.js +1 -1
- package/dist/esm/mark/commands.js +3 -8
- package/dist/esm/messages/annotation.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/react-node-view/getInlineNodeViewProducer.js +2 -1
- package/dist/esm/resizer/Resizer.js +23 -45
- package/dist/esm/styles/shared/annotation.js +3 -35
- package/dist/esm/styles/shared/smartCard.js +2 -2
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui-color/ColorPalette/Color/index.js +1 -2
- package/dist/esm/ui-color/ColorPalette/Palettes/highlightColorPalette.js +1 -10
- package/dist/esm/ui-color/ColorPalette/Palettes/textColorPalette.js +1 -10
- package/dist/esm/ui-color/index.js +2 -2
- package/dist/esm/utils/annotation/index.js +11 -19
- package/dist/esm/utils/index.js +4 -1
- package/dist/esm/utils/scroll-gutter.js +3 -0
- package/dist/esm/utils/validator.js +6 -6
- package/dist/esm/whitespace/index.js +1 -0
- package/dist/types/link/ConfigureLinkOverlay/Dropdown.d.ts +7 -0
- package/dist/types/link/ConfigureLinkOverlay/StyledButton.d.ts +7 -0
- package/dist/types/link/index.d.ts +2 -2
- package/dist/types/types/annotation/index.d.ts +2 -2
- package/dist/types/ui-color/ColorPalette/Palettes/highlightColorPalette.d.ts +0 -1
- package/dist/types/ui-color/ColorPalette/Palettes/textColorPalette.d.ts +1 -2
- package/dist/types/ui-color/index.d.ts +2 -2
- package/dist/types/utils/annotation/index.d.ts +2 -2
- package/dist/types/utils/index.d.ts +4 -1
- package/dist/types/utils/scroll-gutter.d.ts +3 -0
- package/dist/types/whitespace/index.d.ts +1 -0
- package/dist/types-ts4.5/link/ConfigureLinkOverlay/Dropdown.d.ts +7 -0
- package/dist/types-ts4.5/link/ConfigureLinkOverlay/StyledButton.d.ts +7 -0
- package/dist/types-ts4.5/link/index.d.ts +2 -2
- package/dist/types-ts4.5/types/annotation/index.d.ts +2 -2
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/highlightColorPalette.d.ts +0 -1
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/textColorPalette.d.ts +1 -2
- package/dist/types-ts4.5/ui-color/index.d.ts +2 -2
- package/dist/types-ts4.5/utils/annotation/index.d.ts +2 -2
- package/dist/types-ts4.5/utils/index.d.ts +4 -1
- package/dist/types-ts4.5/utils/scroll-gutter.d.ts +3 -0
- package/dist/types-ts4.5/whitespace/index.d.ts +1 -0
- package/package.json +6 -13
- package/whitespace/package.json +15 -0
- /package/dist/cjs/{utils → whitespace}/whitespace.js +0 -0
- /package/dist/es2019/{utils → whitespace}/whitespace.js +0 -0
- /package/dist/esm/{utils → whitespace}/whitespace.js +0 -0
- /package/dist/types/link/ConfigureLinkOverlay/{OverlayButton.d.ts → index.d.ts} +0 -0
- /package/dist/types/{utils → whitespace}/whitespace.d.ts +0 -0
- /package/dist/types-ts4.5/link/ConfigureLinkOverlay/{OverlayButton.d.ts → index.d.ts} +0 -0
- /package/dist/types-ts4.5/{utils → whitespace}/whitespace.d.ts +0 -0
|
@@ -2,7 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
var _templateObject, _templateObject2;
|
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
import { css } from '@emotion/react';
|
|
5
|
-
import {
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
6
|
import { N60A, Y300, Y75 } from '@atlaskit/theme/colors';
|
|
7
7
|
export var annotationPrefix = 'ak-editor-annotation';
|
|
8
8
|
export var AnnotationSharedClassNames = {
|
|
@@ -19,7 +19,7 @@ export var BlockAnnotationSharedClassNames = {
|
|
|
19
19
|
var Yellow100 = 'rgb(255, 247, 214)';
|
|
20
20
|
var Y200a = 'rgba(255, 196, 0, 0.82)';
|
|
21
21
|
export var AnnotationSharedCSSByState = function AnnotationSharedCSSByState() {
|
|
22
|
-
if (
|
|
22
|
+
if (fg('editor_inline_comments_on_inline_nodes')) {
|
|
23
23
|
// NOTE: These styles are shared between renderer and editor. Sometimes they
|
|
24
24
|
// need different selectors and other times they apply the same attributes
|
|
25
25
|
// in a different way. For example in renderer the focus styles are an
|
|
@@ -49,38 +49,6 @@ export var AnnotationSharedCSSByState = function AnnotationSharedCSSByState() {
|
|
|
49
49
|
borderBottomColor: "var(--ds-border-accent-yellow, ".concat(Y200a, ")")
|
|
50
50
|
})
|
|
51
51
|
};
|
|
52
|
-
} else if (getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes')) {
|
|
53
|
-
return {
|
|
54
|
-
focus: css({
|
|
55
|
-
background: "var(--ds-background-accent-yellow-subtler, ".concat(Y75, ")"),
|
|
56
|
-
borderBottom: "2px solid ".concat("var(--ds-border-accent-yellow, ".concat(Y300, ")")),
|
|
57
|
-
boxShadow: "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(N60A, ", -1px 2px 3px ").concat(N60A), ")"),
|
|
58
|
-
cursor: 'pointer',
|
|
59
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
60
|
-
'&:has(.card)': {
|
|
61
|
-
fontSize: '1.5rem',
|
|
62
|
-
lineHeight: '1.2rem',
|
|
63
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
64
|
-
'& > *': {
|
|
65
|
-
fontSize: '16px'
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}),
|
|
69
|
-
blur: css({
|
|
70
|
-
background: "var(--ds-background-accent-yellow-subtlest, ".concat(Yellow100, ")"),
|
|
71
|
-
borderBottom: "2px solid ".concat("var(--ds-border-accent-yellow, ".concat(Y200a, ")")),
|
|
72
|
-
cursor: 'pointer',
|
|
73
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
74
|
-
'&:has(.card)': {
|
|
75
|
-
fontSize: '1.5rem',
|
|
76
|
-
lineHeight: '1.2rem',
|
|
77
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
78
|
-
'& > *': {
|
|
79
|
-
fontSize: '16px'
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
})
|
|
83
|
-
};
|
|
84
52
|
} else {
|
|
85
53
|
return {
|
|
86
54
|
focus: css({
|
|
@@ -101,7 +69,7 @@ export var AnnotationSharedCSSByState = function AnnotationSharedCSSByState() {
|
|
|
101
69
|
}
|
|
102
70
|
};
|
|
103
71
|
export var annotationSharedStyles = function annotationSharedStyles() {
|
|
104
|
-
return
|
|
72
|
+
return fg('editor_inline_comments_on_inline_nodes') ? // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState()` is not safe in object syntax
|
|
105
73
|
css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror {\n\t\t\t\t\t.", ",\n\t\t\t\t\t\t.", ",\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t\tcursor: initial;\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"])), AnnotationSharedClassNames.blur, AnnotationSharedClassNames.focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().common, AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur) : // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState()` is not safe in object syntax
|
|
106
74
|
css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror {\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t\tcursor: initial;\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"])), AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur);
|
|
107
75
|
};
|
|
@@ -3,7 +3,7 @@ var _templateObject;
|
|
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
import { css } from '@emotion/react';
|
|
5
5
|
import { akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedNodeClassName, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
|
|
6
|
-
import {
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
import { N0, N40 } from '@atlaskit/theme/colors';
|
|
8
8
|
import { N60A, Y300, Y75 } from '@atlaskit/theme/colors';
|
|
9
9
|
import { SmartCardSharedCssClassName } from './smart-card';
|
|
@@ -11,4 +11,4 @@ export var DATASOURCE_INNER_CONTAINER_CLASSNAME = 'datasourceView-content-inner-
|
|
|
11
11
|
export var FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = 'card-floating-toolbar--link-picker';
|
|
12
12
|
|
|
13
13
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
14
|
-
export var smartCardStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\tmax-width: calc(100% - 20px);\n\t\tvertical-align: top;\n\t\tword-break: break-all;\n\t\t", "\n\t\t.card {\n\t\t\tpadding-left: ", ";\n\t\t\tpadding-right: ", ";\n\t\t\tpadding-top: 0.5em;\n\t\t\tpadding-bottom: 0.5em;\n\t\t\tmargin-bottom: -0.5em;\n\n\t\t\t.", " > a:focus {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > a {\n\t\t\t", "\n\t\t}\n\t\t.", " > a {\n\t\t\t/* EDM-1717: box-shadow Safari fix start */\n\t\t\tz-index: 1;\n\t\t\tposition: relative;\n\t\t\t/* EDM-1717: box-shadow Safari fix end */\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " > a {\n\t\t\t\tbox-shadow: 0 0 0 1px ", ";\n\t\t\t\t/* EDM-1717: box-shadow Safari fix start */\n\t\t\t\tz-index: 2;\n\t\t\t\t/* EDM-1717: box-shadow Safari fix end */\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\t.", " > div {\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t&.", " .", " > div {\n\t\t\t", "\n\t\t\tborder-radius: ", ";\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " > div {\n\t\t\t\tbox-shadow: 0 0 0 1px ", " !important;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", ".", " {\n\t\tmax-width: 100%;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\n\t\t.", " {\n\t\t\tcursor: pointer;\n\t\t\tbackground-color: ", ";\n\t\t\tborder-radius: ", ";\n\t\t\tborder: 1px solid ", ";\n\t\t}\n\n\t\t&.", " {\n\t\t\t.", " {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " {\n\t\t\t\tbox-shadow: 0 0 0 1px ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\t.", " > div {\n\t\t\tcursor: pointer;\n\t\t\t&::after {\n\t\t\t\ttransition: box-shadow 0s;\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > div::after {\n\t\t\t", "\n\t\t}\n\n\t\t&.danger {\n\t\t\t.media-card-frame::after {\n\t\t\t\tbox-shadow: 0 0 0 1px ", " !important;\n\t\t\t\tbackground: ", " !important;\n\t\t\t}\n\t\t\t.richMedia-resize-handle-right::after,\n\t\t\t.richMedia-resize-handle-left::after {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tpadding: 0;\n\t}\n"])), SmartCardSharedCssClassName.INLINE_CARD_CONTAINER,
|
|
14
|
+
export var smartCardStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\tmax-width: calc(100% - 20px);\n\t\tvertical-align: top;\n\t\tword-break: break-all;\n\t\t", "\n\t\t.card {\n\t\t\tpadding-left: ", ";\n\t\t\tpadding-right: ", ";\n\t\t\tpadding-top: 0.5em;\n\t\t\tpadding-bottom: 0.5em;\n\t\t\tmargin-bottom: -0.5em;\n\n\t\t\t.", " > a:focus {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > a {\n\t\t\t", "\n\t\t}\n\t\t.", " > a {\n\t\t\t/* EDM-1717: box-shadow Safari fix start */\n\t\t\tz-index: 1;\n\t\t\tposition: relative;\n\t\t\t/* EDM-1717: box-shadow Safari fix end */\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " > a {\n\t\t\t\tbox-shadow: 0 0 0 1px ", ";\n\t\t\t\t/* EDM-1717: box-shadow Safari fix start */\n\t\t\t\tz-index: 2;\n\t\t\t\t/* EDM-1717: box-shadow Safari fix end */\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\t.", " > div {\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t&.", " .", " > div {\n\t\t\t", "\n\t\t\tborder-radius: ", ";\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " > div {\n\t\t\t\tbox-shadow: 0 0 0 1px ", " !important;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", ".", " {\n\t\tmax-width: 100%;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\n\t\t.", " {\n\t\t\tcursor: pointer;\n\t\t\tbackground-color: ", ";\n\t\t\tborder-radius: ", ";\n\t\t\tborder: 1px solid ", ";\n\t\t}\n\n\t\t&.", " {\n\t\t\t.", " {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " {\n\t\t\t\tbox-shadow: 0 0 0 1px ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\t.", " > div {\n\t\t\tcursor: pointer;\n\t\t\t&::after {\n\t\t\t\ttransition: box-shadow 0s;\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > div::after {\n\t\t\t", "\n\t\t}\n\n\t\t&.danger {\n\t\t\t.media-card-frame::after {\n\t\t\t\tbox-shadow: 0 0 0 1px ", " !important;\n\t\t\t\tbackground: ", " !important;\n\t\t\t}\n\t\t\t.richMedia-resize-handle-right::after,\n\t\t\t.richMedia-resize-handle-left::after {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tpadding: 0;\n\t}\n"])), SmartCardSharedCssClassName.INLINE_CARD_CONTAINER, fg('editor_inline_comments_on_inline_nodes') ? ".card-with-comment {\n background: ".concat("var(--ds-background-accent-yellow-subtler, ".concat(Y75, ")"), ";\n border-bottom: 2px solid ", "var(--ds-border-accent-yellow, ".concat(Y300, ")"), ";\n box-shadow: ", "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(N60A, ", -1px 2px 3px ").concat(N60A), ")"), ";\n }") : '', "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), SmartCardSharedCssClassName.LOADER_WRAPPER, SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), "var(--ds-border-radius-200, 8px)", SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.DATASOURCE_CONTAINER, SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-background-neutral-subtle, ".concat(N0, ")"), "var(--ds-border-radius-200, 8px)", "var(--ds-border, ".concat(N40, ")"), akEditorSelectedNodeClassName, DATASOURCE_INNER_CONTAINER_CLASSNAME, getSelectionStyles([SelectionStyle.BoxShadow]), DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), FLOATING_TOOLBAR_LINKPICKER_CLASSNAME);
|
|
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
17
17
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
18
18
|
import Layer from '../Layer';
|
|
19
19
|
var packageName = "@atlaskit/editor-common";
|
|
20
|
-
var packageVersion = "84.
|
|
20
|
+
var packageVersion = "84.3.0";
|
|
21
21
|
var halfFocusRing = 1;
|
|
22
22
|
var dropOffset = '0, 8';
|
|
23
23
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -4,7 +4,6 @@ import React from 'react';
|
|
|
4
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
5
|
import { jsx } from '@emotion/react';
|
|
6
6
|
import EditorDoneIcon from '@atlaskit/icon/glyph/editor/done';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { N0 } from '@atlaskit/theme/colors';
|
|
9
8
|
import Tooltip from '@atlaskit/tooltip';
|
|
10
9
|
import { buttonStyle, buttonWrapperStyle } from './styles';
|
|
@@ -49,7 +48,7 @@ var Color = function Color(props) {
|
|
|
49
48
|
,
|
|
50
49
|
className: "".concat(isSelected ? 'selected' : ''),
|
|
51
50
|
style: {
|
|
52
|
-
backgroundColor: colorStyle ||
|
|
51
|
+
backgroundColor: colorStyle || "var(--ds-background-input, #FFFFFF)",
|
|
53
52
|
border: "1px solid ".concat(borderColor)
|
|
54
53
|
},
|
|
55
54
|
autoFocus: autoFocus
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
1
|
/** @jsx jsx */
|
|
5
2
|
|
|
6
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -8,7 +5,6 @@ import { jsx } from '@emotion/react';
|
|
|
8
5
|
import { backgroundColorPalette } from '@atlaskit/adf-schema';
|
|
9
6
|
import Icon from '@atlaskit/icon';
|
|
10
7
|
import { useThemeObserver } from '@atlaskit/tokens';
|
|
11
|
-
import { DEFAULT_BORDER_COLOR } from './common';
|
|
12
8
|
import getColorMessage from './getColorMessage';
|
|
13
9
|
import paletteMessages from './paletteMessages';
|
|
14
10
|
import { mapPaletteColor } from './textColorPalette';
|
|
@@ -47,15 +43,10 @@ export var highlightColorPalette = [{
|
|
|
47
43
|
value: REMOVE_HIGHLIGHT_COLOR,
|
|
48
44
|
label: 'No color',
|
|
49
45
|
// Mostly informative, only used for analytics
|
|
50
|
-
border:
|
|
46
|
+
border: "var(--ds-border, #091E4224)",
|
|
51
47
|
message: getColorMessage(paletteMessages, 'no-color'),
|
|
52
48
|
decorator: jsx(EditorDiagonalLineIcon, null)
|
|
53
49
|
}];
|
|
54
50
|
backgroundColorPalette.forEach(function (label, color) {
|
|
55
51
|
highlightColorPalette.push(mapPaletteColor(label, color));
|
|
56
|
-
});
|
|
57
|
-
export var highlightColorPaletteWithTokenBorders = highlightColorPalette.map(function (paletteColor) {
|
|
58
|
-
return _objectSpread(_objectSpread({}, paletteColor), {}, {
|
|
59
|
-
border: "var(--ds-border, #091E4224)"
|
|
60
|
-
});
|
|
61
52
|
});
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
1
|
import { colorPalette } from '@atlaskit/adf-schema';
|
|
5
|
-
import { DEFAULT_BORDER_COLOR } from './common';
|
|
6
2
|
import getColorMessage from './getColorMessage';
|
|
7
3
|
import paletteMessages from './paletteMessages';
|
|
8
4
|
export var mapPaletteColor = function mapPaletteColor(label, color) {
|
|
@@ -11,7 +7,7 @@ export var mapPaletteColor = function mapPaletteColor(label, color) {
|
|
|
11
7
|
return {
|
|
12
8
|
value: color,
|
|
13
9
|
label: label,
|
|
14
|
-
border:
|
|
10
|
+
border: "var(--ds-border, #091E4224)",
|
|
15
11
|
message: message
|
|
16
12
|
};
|
|
17
13
|
};
|
|
@@ -21,9 +17,4 @@ export var textColorPalette = [];
|
|
|
21
17
|
export var textColorPaletteTokenBorders = [];
|
|
22
18
|
colorPalette.forEach(function (label, color) {
|
|
23
19
|
textColorPalette.push(mapPaletteColor(label, color));
|
|
24
|
-
});
|
|
25
|
-
export var textColorPaletteWithTokenBorders = textColorPalette.map(function (paletteColor) {
|
|
26
|
-
return _objectSpread(_objectSpread({}, paletteColor), {}, {
|
|
27
|
-
border: "var(--ds-border, #091E4224)"
|
|
28
|
-
});
|
|
29
20
|
});
|
|
@@ -5,8 +5,8 @@ export { default as cellBackgroundColorPalette } from './ColorPalette/Palettes/c
|
|
|
5
5
|
export { default as colorPaletteMessages } from './ColorPalette/Palettes/paletteMessages';
|
|
6
6
|
export { panelBackgroundPalette, panelDarkModeBackgroundPalette } from './ColorPalette/Palettes/panelBackgroundPalette';
|
|
7
7
|
export { lightModeStatusColorPalette, darkModeStatusColorPalette } from './ColorPalette/Palettes/statusColorPalette';
|
|
8
|
-
export { textColorPalette
|
|
9
|
-
export { highlightColorPalette,
|
|
8
|
+
export { textColorPalette } from './ColorPalette/Palettes/textColorPalette';
|
|
9
|
+
export { highlightColorPalette, REMOVE_HIGHLIGHT_COLOR } from './ColorPalette/Palettes/highlightColorPalette';
|
|
10
10
|
export { backgroundPaletteTooltipMessages, borderPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages } from './ColorPalette/Palettes';
|
|
11
11
|
export { DEFAULT_BORDER_COLOR } from './ColorPalette/Palettes/common';
|
|
12
12
|
export { default as borderColorPalette } from './ColorPalette/Palettes/borderColorPalette';
|
|
@@ -1,35 +1,27 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
3
|
-
import {
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
4
|
export var canApplyAnnotationOnRange = function canApplyAnnotationOnRange(rangeSelection, doc, schema) {
|
|
5
5
|
var from = rangeSelection.from,
|
|
6
6
|
to = rangeSelection.to;
|
|
7
7
|
if (isNaN(from + to) || to - from <= 0 || to < 0 || from < 0) {
|
|
8
8
|
return false;
|
|
9
9
|
}
|
|
10
|
-
var inlineCard = schema.nodes.inlineCard;
|
|
11
10
|
var foundInvalid = false;
|
|
12
11
|
doc.nodesBetween(rangeSelection.from, rangeSelection.to, function (node, _pos, parent) {
|
|
13
12
|
// Special exception for hardBreak nodes
|
|
14
13
|
if (schema.nodes.hardBreak === node.type) {
|
|
15
14
|
return false;
|
|
16
15
|
}
|
|
16
|
+
|
|
17
17
|
// For block elements or text nodes, we want to check
|
|
18
18
|
// if annotations are allowed inside this tree
|
|
19
19
|
// or if we're leaf and not text
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
if (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
foundInvalid = true;
|
|
26
|
-
return false;
|
|
27
|
-
}
|
|
28
|
-
} else {
|
|
29
|
-
if (node.isInline && !node.isText && node.type !== inlineCard || node.isLeaf && !node.isText && node.type !== inlineCard || node.isText && !(parent !== null && parent !== void 0 && parent.type.allowsMarkType(schema.marks.annotation))) {
|
|
30
|
-
foundInvalid = true;
|
|
31
|
-
return false;
|
|
32
|
-
}
|
|
20
|
+
if (fg('editor_inline_comments_on_inline_nodes')) {
|
|
21
|
+
var isAllowedInlineNode = ['emoji', 'status', 'date', 'mention', 'inlineCard'].includes(node.type.name);
|
|
22
|
+
if (node.isInline && !node.isText && !isAllowedInlineNode || node.isLeaf && !node.isText && !isAllowedInlineNode || node.isText && !(parent !== null && parent !== void 0 && parent.type.allowsMarkType(schema.marks.annotation))) {
|
|
23
|
+
foundInvalid = true;
|
|
24
|
+
return false;
|
|
33
25
|
}
|
|
34
26
|
} else {
|
|
35
27
|
if (node.isInline && !node.isText || node.isLeaf && !node.isText || node.isText && !(parent !== null && parent !== void 0 && parent.type.allowsMarkType(schema.marks.annotation))) {
|
|
@@ -99,7 +91,7 @@ export function containsAnyAnnotations(slice, state) {
|
|
|
99
91
|
export function getRangeInlineNodeNames(_ref) {
|
|
100
92
|
var doc = _ref.doc,
|
|
101
93
|
pos = _ref.pos;
|
|
102
|
-
if (!
|
|
94
|
+
if (!fg('editor_inline_comments_on_inline_nodes')) {
|
|
103
95
|
return undefined;
|
|
104
96
|
}
|
|
105
97
|
var nodeNames = new Set();
|
|
@@ -117,13 +109,13 @@ export function getRangeInlineNodeNames(_ref) {
|
|
|
117
109
|
/**
|
|
118
110
|
* This function returns a list of node types that are wrapped by an annotation mark.
|
|
119
111
|
*
|
|
120
|
-
* The `undefined` will be returned if `
|
|
112
|
+
* The `undefined` will be returned if `editor_inline_comments_on_inline_nodes` is off.
|
|
121
113
|
*
|
|
122
114
|
* @todo: Do not forget to remove `undefined` when the
|
|
123
|
-
* `
|
|
115
|
+
* `editor_inline_comments_on_inline_nodes` is removed.
|
|
124
116
|
*/
|
|
125
117
|
export function getAnnotationInlineNodeTypes(state, annotationId) {
|
|
126
|
-
if (!
|
|
118
|
+
if (!fg('editor_inline_comments_on_inline_nodes')) {
|
|
127
119
|
return undefined;
|
|
128
120
|
}
|
|
129
121
|
var mark = state.schema.marks.annotation.create({
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -27,7 +27,10 @@ export { hasMergedCell, calcTableColumnWidths, convertProsemirrorTableNodeToArra
|
|
|
27
27
|
export { createCompareNodes } from './compareNodes';
|
|
28
28
|
export { compose } from './compose';
|
|
29
29
|
export { isTextInput } from './is-text-input';
|
|
30
|
-
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated - [ED-23844] moving to own entry point @atlaskit/editor-common/whitespace
|
|
32
|
+
*/
|
|
33
|
+
export { ZERO_WIDTH_SPACE, ZERO_WIDTH_JOINER } from '../whitespace';
|
|
31
34
|
export { shouldForceTracking } from './should-force-tracking';
|
|
32
35
|
export { getModeFromTheme } from './getModeFromTheme';
|
|
33
36
|
export { getPerformanceOptions, startMeasureReactNodeViewRendered, stopMeasureReactNodeViewRendered } from './get-performance-options';
|
|
@@ -4,7 +4,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
import { inlineNodes, isSafeUrl, PanelType, generateUuid as uuid } from '@atlaskit/adf-schema';
|
|
6
6
|
import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
|
|
7
|
-
import {
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
8
|
export var ADFStages = {
|
|
9
9
|
FINAL: 'final',
|
|
10
10
|
STAGE_0: 'stage0'
|
|
@@ -248,7 +248,7 @@ export var getValidNode = function getValidNode(originalNode) {
|
|
|
248
248
|
return _objectSpread({
|
|
249
249
|
type: type,
|
|
250
250
|
attrs: attrs
|
|
251
|
-
},
|
|
251
|
+
}, fg('editor_inline_comments_on_inline_nodes') ? {
|
|
252
252
|
marks: marks
|
|
253
253
|
} : {});
|
|
254
254
|
}
|
|
@@ -260,7 +260,7 @@ export var getValidNode = function getValidNode(originalNode) {
|
|
|
260
260
|
return _objectSpread({
|
|
261
261
|
type: type,
|
|
262
262
|
attrs: attrs
|
|
263
|
-
},
|
|
263
|
+
}, fg('editor_inline_comments_on_inline_nodes') ? {
|
|
264
264
|
marks: marks
|
|
265
265
|
} : {});
|
|
266
266
|
}
|
|
@@ -272,7 +272,7 @@ export var getValidNode = function getValidNode(originalNode) {
|
|
|
272
272
|
return _objectSpread({
|
|
273
273
|
type: type,
|
|
274
274
|
attrs: attrs
|
|
275
|
-
},
|
|
275
|
+
}, fg('editor_inline_comments_on_inline_nodes') ? {
|
|
276
276
|
marks: marks
|
|
277
277
|
} : {});
|
|
278
278
|
}
|
|
@@ -295,7 +295,7 @@ export var getValidNode = function getValidNode(originalNode) {
|
|
|
295
295
|
return _objectSpread({
|
|
296
296
|
type: type,
|
|
297
297
|
attrs: attrs
|
|
298
|
-
},
|
|
298
|
+
}, fg('editor_inline_comments_on_inline_nodes') ? {
|
|
299
299
|
marks: marks
|
|
300
300
|
} : {});
|
|
301
301
|
}
|
|
@@ -502,7 +502,7 @@ export var getValidNode = function getValidNode(originalNode) {
|
|
|
502
502
|
text: mentionText,
|
|
503
503
|
accessLevel: ''
|
|
504
504
|
}
|
|
505
|
-
},
|
|
505
|
+
}, fg('editor_inline_comments_on_inline_nodes') ? {
|
|
506
506
|
marks: marks
|
|
507
507
|
} : {});
|
|
508
508
|
if (mentionAccess) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ZERO_WIDTH_SPACE, ZERO_WIDTH_JOINER } from './whitespace';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
import { type ButtonProps } from '@atlaskit/button';
|
|
5
|
+
export declare const StyledButton: ({ innerRef, ...props }: ButtonProps & {
|
|
6
|
+
innerRef?: import("react").Ref<HTMLElement> | undefined;
|
|
7
|
+
}) => jsx.JSX.Element;
|
|
@@ -15,5 +15,5 @@ export type { HyperlinkAddToolbarProps } from './LinkPicker/HyperlinkAddToolbar'
|
|
|
15
15
|
export { sha1 } from './LinkPicker/HyperlinkAddToolbar/utils';
|
|
16
16
|
export { isLinkAtPos, isTextAtPos, getLinkPreferencesURLFromENV } from './utils';
|
|
17
17
|
export { stagingLinkPreferencesUrl, productionLinkPreferencesUrl } from './constants';
|
|
18
|
-
export { OverlayButton } from './ConfigureLinkOverlay
|
|
19
|
-
export type { OverlayButtonProps } from './ConfigureLinkOverlay
|
|
18
|
+
export { OverlayButton } from './ConfigureLinkOverlay';
|
|
19
|
+
export type { OverlayButtonProps } from './ConfigureLinkOverlay';
|
|
@@ -85,10 +85,10 @@ export type InlineCommentViewComponentProps = {
|
|
|
85
85
|
* Return a list of inline node types, which are wrapped by the annotation,
|
|
86
86
|
* for annotation with given ID.
|
|
87
87
|
*
|
|
88
|
-
* The `undefined` will be returned if `
|
|
88
|
+
* The `undefined` will be returned if `editor_inline_comments_on_inline_nodes` is off.
|
|
89
89
|
*
|
|
90
90
|
* @todo: Do not forget to remove `undefined` when the
|
|
91
|
-
* `
|
|
91
|
+
* `editor_inline_comments_on_inline_nodes` is removed.
|
|
92
92
|
*/
|
|
93
93
|
getInlineNodeTypes: (annotationId: string) => string[] | undefined;
|
|
94
94
|
};
|
|
@@ -4,4 +4,3 @@ import type { PaletteColor } from './type';
|
|
|
4
4
|
export declare const REMOVE_HIGHLIGHT_COLOR = "#00000000";
|
|
5
5
|
export declare const EditorDiagonalLineIcon: () => jsx.JSX.Element;
|
|
6
6
|
export declare const highlightColorPalette: Array<PaletteColor>;
|
|
7
|
-
export declare const highlightColorPaletteWithTokenBorders: Array<PaletteColor>;
|
|
@@ -2,9 +2,8 @@ import type { PaletteColor } from './type';
|
|
|
2
2
|
export declare const mapPaletteColor: (label: string, color: string) => {
|
|
3
3
|
value: string;
|
|
4
4
|
label: string;
|
|
5
|
-
border:
|
|
5
|
+
border: "var(--ds-border)";
|
|
6
6
|
message: import("react-intl-next").MessageDescriptor | undefined;
|
|
7
7
|
};
|
|
8
8
|
export declare const textColorPalette: Array<PaletteColor>;
|
|
9
9
|
export declare const textColorPaletteTokenBorders: Array<PaletteColor>;
|
|
10
|
-
export declare const textColorPaletteWithTokenBorders: Array<PaletteColor>;
|
|
@@ -5,8 +5,8 @@ export { default as cellBackgroundColorPalette } from './ColorPalette/Palettes/c
|
|
|
5
5
|
export { default as colorPaletteMessages } from './ColorPalette/Palettes/paletteMessages';
|
|
6
6
|
export { panelBackgroundPalette, panelDarkModeBackgroundPalette, } from './ColorPalette/Palettes/panelBackgroundPalette';
|
|
7
7
|
export { lightModeStatusColorPalette, darkModeStatusColorPalette, } from './ColorPalette/Palettes/statusColorPalette';
|
|
8
|
-
export { textColorPalette
|
|
9
|
-
export { highlightColorPalette,
|
|
8
|
+
export { textColorPalette } from './ColorPalette/Palettes/textColorPalette';
|
|
9
|
+
export { highlightColorPalette, REMOVE_HIGHLIGHT_COLOR, } from './ColorPalette/Palettes/highlightColorPalette';
|
|
10
10
|
export { backgroundPaletteTooltipMessages, borderPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages, } from './ColorPalette/Palettes';
|
|
11
11
|
export { DEFAULT_BORDER_COLOR } from './ColorPalette/Palettes/common';
|
|
12
12
|
export type { PaletteColor, PaletteTooltipMessages } from './ColorPalette/Palettes/type';
|
|
@@ -21,10 +21,10 @@ export declare function getRangeInlineNodeNames({ doc, pos, }: {
|
|
|
21
21
|
/**
|
|
22
22
|
* This function returns a list of node types that are wrapped by an annotation mark.
|
|
23
23
|
*
|
|
24
|
-
* The `undefined` will be returned if `
|
|
24
|
+
* The `undefined` will be returned if `editor_inline_comments_on_inline_nodes` is off.
|
|
25
25
|
*
|
|
26
26
|
* @todo: Do not forget to remove `undefined` when the
|
|
27
|
-
* `
|
|
27
|
+
* `editor_inline_comments_on_inline_nodes` is removed.
|
|
28
28
|
*/
|
|
29
29
|
export declare function getAnnotationInlineNodeTypes(state: {
|
|
30
30
|
doc: PMNode;
|
|
@@ -35,7 +35,10 @@ export { hasMergedCell, calcTableColumnWidths, convertProsemirrorTableNodeToArra
|
|
|
35
35
|
export { createCompareNodes } from './compareNodes';
|
|
36
36
|
export { compose } from './compose';
|
|
37
37
|
export { isTextInput } from './is-text-input';
|
|
38
|
-
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated - [ED-23844] moving to own entry point @atlaskit/editor-common/whitespace
|
|
40
|
+
*/
|
|
41
|
+
export { ZERO_WIDTH_SPACE, ZERO_WIDTH_JOINER } from '../whitespace';
|
|
39
42
|
export type { Diff } from './types';
|
|
40
43
|
export { shouldForceTracking } from './should-force-tracking';
|
|
41
44
|
export { getModeFromTheme } from './getModeFromTheme';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ZERO_WIDTH_SPACE, ZERO_WIDTH_JOINER } from './whitespace';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
import { type ButtonProps } from '@atlaskit/button';
|
|
5
|
+
export declare const StyledButton: ({ innerRef, ...props }: ButtonProps & {
|
|
6
|
+
innerRef?: import("react").Ref<HTMLElement> | undefined;
|
|
7
|
+
}) => jsx.JSX.Element;
|
|
@@ -15,5 +15,5 @@ export type { HyperlinkAddToolbarProps } from './LinkPicker/HyperlinkAddToolbar'
|
|
|
15
15
|
export { sha1 } from './LinkPicker/HyperlinkAddToolbar/utils';
|
|
16
16
|
export { isLinkAtPos, isTextAtPos, getLinkPreferencesURLFromENV } from './utils';
|
|
17
17
|
export { stagingLinkPreferencesUrl, productionLinkPreferencesUrl } from './constants';
|
|
18
|
-
export { OverlayButton } from './ConfigureLinkOverlay
|
|
19
|
-
export type { OverlayButtonProps } from './ConfigureLinkOverlay
|
|
18
|
+
export { OverlayButton } from './ConfigureLinkOverlay';
|
|
19
|
+
export type { OverlayButtonProps } from './ConfigureLinkOverlay';
|
|
@@ -85,10 +85,10 @@ export type InlineCommentViewComponentProps = {
|
|
|
85
85
|
* Return a list of inline node types, which are wrapped by the annotation,
|
|
86
86
|
* for annotation with given ID.
|
|
87
87
|
*
|
|
88
|
-
* The `undefined` will be returned if `
|
|
88
|
+
* The `undefined` will be returned if `editor_inline_comments_on_inline_nodes` is off.
|
|
89
89
|
*
|
|
90
90
|
* @todo: Do not forget to remove `undefined` when the
|
|
91
|
-
* `
|
|
91
|
+
* `editor_inline_comments_on_inline_nodes` is removed.
|
|
92
92
|
*/
|
|
93
93
|
getInlineNodeTypes: (annotationId: string) => string[] | undefined;
|
|
94
94
|
};
|
|
@@ -4,4 +4,3 @@ import type { PaletteColor } from './type';
|
|
|
4
4
|
export declare const REMOVE_HIGHLIGHT_COLOR = "#00000000";
|
|
5
5
|
export declare const EditorDiagonalLineIcon: () => jsx.JSX.Element;
|
|
6
6
|
export declare const highlightColorPalette: Array<PaletteColor>;
|
|
7
|
-
export declare const highlightColorPaletteWithTokenBorders: Array<PaletteColor>;
|
|
@@ -2,9 +2,8 @@ import type { PaletteColor } from './type';
|
|
|
2
2
|
export declare const mapPaletteColor: (label: string, color: string) => {
|
|
3
3
|
value: string;
|
|
4
4
|
label: string;
|
|
5
|
-
border:
|
|
5
|
+
border: "var(--ds-border)";
|
|
6
6
|
message: import("react-intl-next").MessageDescriptor | undefined;
|
|
7
7
|
};
|
|
8
8
|
export declare const textColorPalette: Array<PaletteColor>;
|
|
9
9
|
export declare const textColorPaletteTokenBorders: Array<PaletteColor>;
|
|
10
|
-
export declare const textColorPaletteWithTokenBorders: Array<PaletteColor>;
|
|
@@ -5,8 +5,8 @@ export { default as cellBackgroundColorPalette } from './ColorPalette/Palettes/c
|
|
|
5
5
|
export { default as colorPaletteMessages } from './ColorPalette/Palettes/paletteMessages';
|
|
6
6
|
export { panelBackgroundPalette, panelDarkModeBackgroundPalette, } from './ColorPalette/Palettes/panelBackgroundPalette';
|
|
7
7
|
export { lightModeStatusColorPalette, darkModeStatusColorPalette, } from './ColorPalette/Palettes/statusColorPalette';
|
|
8
|
-
export { textColorPalette
|
|
9
|
-
export { highlightColorPalette,
|
|
8
|
+
export { textColorPalette } from './ColorPalette/Palettes/textColorPalette';
|
|
9
|
+
export { highlightColorPalette, REMOVE_HIGHLIGHT_COLOR, } from './ColorPalette/Palettes/highlightColorPalette';
|
|
10
10
|
export { backgroundPaletteTooltipMessages, borderPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages, } from './ColorPalette/Palettes';
|
|
11
11
|
export { DEFAULT_BORDER_COLOR } from './ColorPalette/Palettes/common';
|
|
12
12
|
export type { PaletteColor, PaletteTooltipMessages } from './ColorPalette/Palettes/type';
|
|
@@ -21,10 +21,10 @@ export declare function getRangeInlineNodeNames({ doc, pos, }: {
|
|
|
21
21
|
/**
|
|
22
22
|
* This function returns a list of node types that are wrapped by an annotation mark.
|
|
23
23
|
*
|
|
24
|
-
* The `undefined` will be returned if `
|
|
24
|
+
* The `undefined` will be returned if `editor_inline_comments_on_inline_nodes` is off.
|
|
25
25
|
*
|
|
26
26
|
* @todo: Do not forget to remove `undefined` when the
|
|
27
|
-
* `
|
|
27
|
+
* `editor_inline_comments_on_inline_nodes` is removed.
|
|
28
28
|
*/
|
|
29
29
|
export declare function getAnnotationInlineNodeTypes(state: {
|
|
30
30
|
doc: PMNode;
|
|
@@ -35,7 +35,10 @@ export { hasMergedCell, calcTableColumnWidths, convertProsemirrorTableNodeToArra
|
|
|
35
35
|
export { createCompareNodes } from './compareNodes';
|
|
36
36
|
export { compose } from './compose';
|
|
37
37
|
export { isTextInput } from './is-text-input';
|
|
38
|
-
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated - [ED-23844] moving to own entry point @atlaskit/editor-common/whitespace
|
|
40
|
+
*/
|
|
41
|
+
export { ZERO_WIDTH_SPACE, ZERO_WIDTH_JOINER } from '../whitespace';
|
|
39
42
|
export type { Diff } from './types';
|
|
40
43
|
export { shouldForceTracking } from './should-force-tracking';
|
|
41
44
|
export { getModeFromTheme } from './getModeFromTheme';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ZERO_WIDTH_SPACE, ZERO_WIDTH_JOINER } from './whitespace';
|