@atlaskit/editor-core 207.7.0 → 207.9.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 +55 -0
- package/dist/cjs/create-editor/ReactEditorView.js +11 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +4 -65
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +1 -4
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +15 -3
- package/dist/cjs/ui/EditorContentContainer/styles/blockMarksStyles.js +30 -0
- package/dist/cjs/ui/EditorContentContainer/styles/gridStyles.js +42 -0
- package/dist/cjs/ui/EditorContentContainer/styles/indentationStyles.js +45 -0
- package/dist/cjs/ui/EditorContentContainer/styles/paragraphStyles.js +54 -0
- package/dist/cjs/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +73 -0
- package/dist/cjs/ui/EditorContentContainer/styles/whitespaceStyles.js +14 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +11 -0
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +5 -66
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +1 -4
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +17 -7
- package/dist/es2019/ui/EditorContentContainer/styles/blockMarksStyles.js +23 -0
- package/dist/es2019/ui/EditorContentContainer/styles/gridStyles.js +35 -0
- package/dist/es2019/ui/EditorContentContainer/styles/indentationStyles.js +38 -0
- package/dist/es2019/ui/EditorContentContainer/styles/paragraphStyles.js +47 -0
- package/dist/es2019/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +73 -0
- package/dist/es2019/ui/EditorContentContainer/styles/whitespaceStyles.js +7 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +11 -0
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +5 -66
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +1 -4
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +16 -4
- package/dist/esm/ui/EditorContentContainer/styles/blockMarksStyles.js +23 -0
- package/dist/esm/ui/EditorContentContainer/styles/gridStyles.js +35 -0
- package/dist/esm/ui/EditorContentContainer/styles/indentationStyles.js +38 -0
- package/dist/esm/ui/EditorContentContainer/styles/paragraphStyles.js +47 -0
- package/dist/esm/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +65 -0
- package/dist/esm/ui/EditorContentContainer/styles/whitespaceStyles.js +7 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +0 -3
- package/dist/types/presets/universal.d.ts +0 -3
- package/dist/types/presets/useUniversalPreset.d.ts +0 -3
- package/dist/types/ui/EditorContentContainer/styles/blockMarksStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/gridStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/indentationStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/paragraphStyles.d.ts +3 -0
- package/dist/types/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.d.ts +7 -0
- package/dist/types/ui/EditorContentContainer/styles/whitespaceStyles.d.ts +1 -0
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +0 -3
- package/dist/types-ts4.5/presets/universal.d.ts +0 -3
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +0 -3
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/blockMarksStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/gridStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/indentationStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/paragraphStyles.d.ts +3 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.d.ts +7 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/whitespaceStyles.d.ts +1 -0
- package/package.json +14 -5
|
@@ -15,7 +15,7 @@ import { telepointerStyle, telepointerStyleWithInitialOnly } from '@atlaskit/edi
|
|
|
15
15
|
import { EmojiSharedCssClassName, defaultEmojiHeight } from '@atlaskit/editor-common/emoji';
|
|
16
16
|
import { MentionSharedCssClassName } from '@atlaskit/editor-common/mention';
|
|
17
17
|
import { gapCursorStyles } from '@atlaskit/editor-common/selection';
|
|
18
|
-
import { GRID_GUTTER,
|
|
18
|
+
import { GRID_GUTTER, dateSharedStyle, getSmartCardSharedStyles, listsSharedStyles, shadowSharedStyle, smartCardSharedStyles, smartCardStyles, textColorStyles, unsupportedStyles } from '@atlaskit/editor-common/styles';
|
|
19
19
|
import { blocktypeStyles } from '@atlaskit/editor-plugins/block-type/styles';
|
|
20
20
|
import { findReplaceStyles } from '@atlaskit/editor-plugins/find-replace/styles';
|
|
21
21
|
import { textHighlightStyle } from '@atlaskit/editor-plugins/paste-options-toolbar/styles';
|
|
@@ -36,15 +36,21 @@ import { taskDecisionStyles, vanillaTaskDecisionIconWithoutVisualRefresh as vani
|
|
|
36
36
|
import { aiPanelBaseStyles, aiPanelDarkStyles } from './styles/ai-panel';
|
|
37
37
|
import { annotationStyles } from './styles/annotationStyles';
|
|
38
38
|
import { backgroundColorStyles } from './styles/backgroundColorStyles';
|
|
39
|
+
import { blockMarksStyles } from './styles/blockMarksStyles';
|
|
39
40
|
import { codeBlockStyles, firstCodeBlockWithNoMargin, firstCodeBlockWithNoMarginOld } from './styles/codeBlockStyles';
|
|
40
41
|
import { codeMarkStyles } from './styles/codeMarkStyles';
|
|
41
42
|
import { embedCardStyles } from './styles/embedCardStyles';
|
|
42
43
|
import { firstBlockNodeStyles, firstBlockNodeStylesOld } from './styles/firstBlockNodeStyles';
|
|
44
|
+
import { gridStyles } from './styles/gridStyles';
|
|
45
|
+
import { indentationStyles } from './styles/indentationStyles';
|
|
43
46
|
import { layoutBaseStyles, layoutViewStyles } from './styles/layout';
|
|
44
47
|
import { linkStyles, linkStylesOld } from './styles/link';
|
|
45
48
|
import { mediaStyles } from './styles/mediaStyles';
|
|
49
|
+
import { paragraphStylesOld, paragraphStylesUGCModernized, paragraphStylesUGCRefreshed } from './styles/paragraphStyles';
|
|
46
50
|
import { resizerStyles, pragmaticResizerStyles } from './styles/resizerStyles';
|
|
47
51
|
import { ruleStyles } from './styles/rule';
|
|
52
|
+
import { tasksAndDecisionsStyles } from './styles/tasksAndDecisionsStyles';
|
|
53
|
+
import { whitespaceStyles } from './styles/whitespaceStyles';
|
|
48
54
|
var vanillaMentionsStyles = css({
|
|
49
55
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
50
56
|
'.editor-mention-primitive': {
|
|
@@ -134,13 +140,13 @@ var akEditorBreakpointForSmallDevice = "1266px";
|
|
|
134
140
|
|
|
135
141
|
// jest warning: JSDOM version (22) doesn't support the new @container CSS rule
|
|
136
142
|
var contentStyles = function contentStyles() {
|
|
137
|
-
return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n\t--ak-editor--default-gutter-padding: ", "px;\n\t/* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */\n\t--ak-editor--large-gutter-padding: ", "px;\n\t--ak-editor--default-layout-width: ", "px;\n\t--ak-editor--full-width-layout-width: ", "px;\n\t/* calculate editor line length, 100cqw is the editor container width */\n\t--ak-editor--line-length: min(\n\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\tvar(--ak-editor--default-layout-width)\n\t);\n\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t--ak-editor--breakout-full-page-guttering-padding: calc(\n\t\tvar(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)\n\t);\n\n\t.fabric-editor--full-width-mode {\n\t\t--ak-editor--line-length: min(\n\t\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\t\tvar(--ak-editor--full-width-layout-width)\n\t\t);\n\t}\n\n\t.ProseMirror {\n\t\t--ak-editor-max-container-width: calc(100cqw - var(--ak-editor--large-gutter-padding));\n\t}\n\n\t/* We can't allow nodes that are inside other nodes to bleed from the parent container */\n\t.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block] {\n\t\t--ak-editor-max-container-width: 100%;\n\t}\n\n\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t@container editor-area (width >= ", ") {\n\t\t.ProseMirror {\n\t\t\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t\t}\n\t}\n\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: var(--ak-editor-base-font-size);\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\
|
|
143
|
+
return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n\t--ak-editor--default-gutter-padding: ", "px;\n\t/* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */\n\t--ak-editor--large-gutter-padding: ", "px;\n\t--ak-editor--default-layout-width: ", "px;\n\t--ak-editor--full-width-layout-width: ", "px;\n\t/* calculate editor line length, 100cqw is the editor container width */\n\t--ak-editor--line-length: min(\n\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\tvar(--ak-editor--default-layout-width)\n\t);\n\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t--ak-editor--breakout-full-page-guttering-padding: calc(\n\t\tvar(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)\n\t);\n\n\t.fabric-editor--full-width-mode {\n\t\t--ak-editor--line-length: min(\n\t\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\t\tvar(--ak-editor--full-width-layout-width)\n\t\t);\n\t}\n\n\t.ProseMirror {\n\t\t--ak-editor-max-container-width: calc(100cqw - var(--ak-editor--large-gutter-padding));\n\t}\n\n\t/* We can't allow nodes that are inside other nodes to bleed from the parent container */\n\t.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block] {\n\t\t--ak-editor-max-container-width: 100%;\n\t}\n\n\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t@container editor-area (width >= ", ") {\n\t\t.ProseMirror {\n\t\t\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t\t}\n\t}\n\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: var(--ak-editor-base-font-size);\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\t}\n\n\t", "\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t/**\n\t * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24\n\t *\n\t * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection\n\t * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks\n\t * https://product-fabric.atlassian.net/browse/ED-26331\n\t */\n\t", "\n\n\t/* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */\n\t", "\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\tcaret-color: transparent;\n\t}\n\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\tdisplay: none;\n\t}\n\n\t", "\n\n\t", "\n\n\t", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n ", ";\n\n\t", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n // Switch between the two icons based on the visual refresh feature gate\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n .panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t// For FullPage only when inside a table\n\t// Related code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\t// In the \"editorContentAreaContainerStyle\" function\n\t.fabric-editor--full-width-mode {\n\t\t.pm-table-container {\n\t\t\t.code-block,\n\t\t\t.extension-container,\n\t\t\t.multiBodiedExtension--container {\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t.hyperlink-floating-toolbar {\n\t\tpadding: 0;\n\t}\n\n\t/* Legacy Link icon in the Atlaskit package\n\t is bigger than the others, new ADS icon does not have this issue\n */\n\t", "\n"])), akEditorGutterPadding, akEditorGutterPaddingDynamic(), akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, akEditorCalculatedWideLayoutWidth, whitespaceStyles, listsSharedStyles, indentationStyles, shadowSharedStyle, InlineNodeViewSharedStyles, fg('editor_request_to_edit_task') ? null : css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n\t\t\t\t\tpointer-events: none;\n\t\t\t\t\topacity: 0.7;\n\t\t\t\t}\n\t\t\t"]))), fg('platform_editor_hide_cursor_when_pm_hideselection') ? css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, editorExperiment('platform_editor_advanced_code_blocks', true) ? css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)", placeholderTextStyles, placeholderStyles, editorExperiment('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, codeBlockStyles, blocktypeStyles(), codeMarkStyles, textColorStyles, backgroundColorStyles, listsStyles, ruleStyles, mediaStyles, fg('confluence_team_presence_scroll_to_pointer') ? telepointerStyle : telepointerStyleWithInitialOnly, gapCursorStyles, panelStyles(), mentionsStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
138
144
|
exposure: false
|
|
139
145
|
}) && vanillaMentionsStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
140
146
|
exposure: false
|
|
141
147
|
}) && vanillaSelectionStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
142
148
|
exposure: false
|
|
143
|
-
}) ? emojiStyles : reactEmojiStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles,
|
|
149
|
+
}) ? emojiStyles : reactEmojiStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, blockMarksStyles, dateSharedStyle, extensionStyles, expandStyles(), findReplaceStyles, textHighlightStyle, taskDecisionStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
144
150
|
exposure: false
|
|
145
151
|
}) && vanillaTaskItemStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
146
152
|
exposure: false
|
|
@@ -218,7 +224,13 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
218
224
|
ref: ref,
|
|
219
225
|
css: [contentStyles(),
|
|
220
226
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
221
|
-
layoutBaseStyles(),
|
|
227
|
+
layoutBaseStyles(), fg('platform_editor_typography_ugc') ? fg('platform-dst-jira-web-fonts') || fg('confluence_typography_refreshed') || fg('atlas_editor_typography_refreshed') ?
|
|
228
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
229
|
+
paragraphStylesUGCRefreshed :
|
|
230
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
231
|
+
paragraphStylesUGCModernized :
|
|
232
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
233
|
+
paragraphStylesOld,
|
|
222
234
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
223
235
|
fg('platform_editor_hyperlink_underline') ? linkStyles : linkStylesOld, editorExperiment('platform_editor_breakout_resizing', true) &&
|
|
224
236
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { css } from '@emotion/react'; // eslint-disable-line @atlaskit/ui-styling-standard/use-compiled
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
4
|
+
export var blockMarksStyles = css({
|
|
5
|
+
// We need to remove margin-top from first item
|
|
6
|
+
// inside doc, tableCell, tableHeader, blockquote, etc.
|
|
7
|
+
//
|
|
8
|
+
// - For nested block marks apart from those with indentation mark.
|
|
9
|
+
// - Do not remove the margin top for nodes inside indentation marks.
|
|
10
|
+
// - Do not remove the margin top for nodes inside alignment marks.
|
|
11
|
+
//- If first element inside a block node has alignment mark, then remove the margin-top.
|
|
12
|
+
//- If first document element has indentation mark remove margin-top.
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
14
|
+
'*:not(.fabric-editor-block-mark) >, *:not(.fabric-editor-block-mark) > div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment), .fabric-editor-alignment:first-of-type:first-child, .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child': {
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
16
|
+
'p, h1, h2, h3, h4, h5, h6, .heading-wrapper': {
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
18
|
+
'&:first-child:not(style), style:first-child + *': {
|
|
19
|
+
marginTop: 0
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { css } from '@emotion/react'; // eslint-disable-line @atlaskit/ui-styling-standard/use-compiled
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
|
+
export var gridStyles = css({
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
6
|
+
'.gridParent': {
|
|
7
|
+
width: "calc(100% + 24px)",
|
|
8
|
+
marginLeft: "var(--ds-space-negative-150, -12px)",
|
|
9
|
+
marginRight: "var(--ds-space-negative-150, -12px)",
|
|
10
|
+
transform: 'scale(1)',
|
|
11
|
+
zIndex: 2
|
|
12
|
+
},
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
14
|
+
'.gridContainer': {
|
|
15
|
+
position: 'fixed',
|
|
16
|
+
height: '100vh',
|
|
17
|
+
width: '100%',
|
|
18
|
+
pointerEvents: 'none'
|
|
19
|
+
},
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
21
|
+
'.gridLine': {
|
|
22
|
+
borderLeft: "1px solid ".concat("var(--ds-border, #091E4224)"),
|
|
23
|
+
display: 'inline-block',
|
|
24
|
+
boxSizing: 'border-box',
|
|
25
|
+
height: '100%',
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
27
|
+
marginLeft: '-1px',
|
|
28
|
+
transition: 'border-color 0.15s linear',
|
|
29
|
+
zIndex: 0
|
|
30
|
+
},
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
32
|
+
'.highlight': {
|
|
33
|
+
borderLeft: "1px solid ".concat("var(--ds-border-focused, #388BFF)")
|
|
34
|
+
}
|
|
35
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { css } from '@emotion/react'; // eslint-disable-line @atlaskit/ui-styling-standard/use-compiled
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
|
+
export var indentationStyles = css({
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
6
|
+
'.fabric-editor-indentation-mark': {
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
8
|
+
"&[data-level='1']": {
|
|
9
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
10
|
+
marginLeft: 30
|
|
11
|
+
},
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
13
|
+
"&[data-level='2']": {
|
|
14
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
15
|
+
marginLeft: 60
|
|
16
|
+
},
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
18
|
+
"&[data-level='3']": {
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
20
|
+
marginLeft: 90
|
|
21
|
+
},
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
23
|
+
"&[data-level='4']": {
|
|
24
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
25
|
+
marginLeft: 120
|
|
26
|
+
},
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
28
|
+
"&[data-level='5']": {
|
|
29
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
30
|
+
marginLeft: 150
|
|
31
|
+
},
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
33
|
+
"&[data-level='6']": {
|
|
34
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
35
|
+
marginLeft: 180
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
});
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { css } from '@emotion/react'; // eslint-disable-line @atlaskit/ui-styling-standard/use-compiled
|
|
2
|
+
|
|
3
|
+
var blockNodesVerticalMargin = '0.75rem';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
6
|
+
export var paragraphStylesUGCRefreshed = css({
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
8
|
+
'.ProseMirror p': {
|
|
9
|
+
// The `editor.font.body` token is used for the UGC typography theme.
|
|
10
|
+
// We don't use `editorUGCToken('editor.font.body')` here because we want to build this styles statically.
|
|
11
|
+
// See platform/packages/editor/editor-common/src/ugc-tokens/get-editor-ugc-token.tsx
|
|
12
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
13
|
+
font: 'normal 400 1em/1.714 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
14
|
+
marginTop: blockNodesVerticalMargin,
|
|
15
|
+
marginBottom: 0
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
20
|
+
export var paragraphStylesUGCModernized = css({
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
22
|
+
'.ProseMirror p': {
|
|
23
|
+
// The `editor.font.body` token is used for the UGC typography theme.
|
|
24
|
+
// We don't use `editorUGCToken('editor.font.body')` here because we want to build this styles statically.
|
|
25
|
+
// See platform/packages/editor/editor-common/src/ugc-tokens/get-editor-ugc-token.tsx
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
27
|
+
font: 'normal 400 1em/1.714 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
28
|
+
marginTop: blockNodesVerticalMargin,
|
|
29
|
+
marginBottom: 0
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
34
|
+
export var paragraphStylesOld = css({
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
36
|
+
'.ProseMirror p': {
|
|
37
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
38
|
+
fontSize: '1em',
|
|
39
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
40
|
+
lineHeight: 1.714,
|
|
41
|
+
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
42
|
+
marginTop: blockNodesVerticalMargin,
|
|
43
|
+
marginBottom: 0,
|
|
44
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
45
|
+
letterSpacing: '-0.005em'
|
|
46
|
+
}
|
|
47
|
+
});
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
import { css } from '@emotion/react'; // eslint-disable-line @atlaskit/ui-styling-standard/use-compiled
|
|
3
|
+
|
|
4
|
+
var akEditorLineHeight = 1.714;
|
|
5
|
+
export var TaskDecisionSharedCssClassName = {
|
|
6
|
+
DECISION_CONTAINER: 'decisionItemView-content-wrap',
|
|
7
|
+
TASK_CONTAINER: 'taskItemView-content-wrap',
|
|
8
|
+
TASK_ITEM: 'task-item',
|
|
9
|
+
TASK_CHECKBOX_CONTAINER: 'task-item-checkbox-wrap'
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
13
|
+
export var tasksAndDecisionsStyles = css({
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
15
|
+
'.ProseMirror': _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".taskItemView-content-wrap, .".concat(TaskDecisionSharedCssClassName.DECISION_CONTAINER), {
|
|
16
|
+
position: 'relative',
|
|
17
|
+
minWidth: 48
|
|
18
|
+
}), ".".concat(TaskDecisionSharedCssClassName.DECISION_CONTAINER), {
|
|
19
|
+
marginTop: 0
|
|
20
|
+
}), ".".concat(TaskDecisionSharedCssClassName.TASK_CONTAINER), {
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
22
|
+
"span[contenteditable='false']": {
|
|
23
|
+
height: "".concat(akEditorLineHeight, "em")
|
|
24
|
+
}
|
|
25
|
+
}), ".".concat(TaskDecisionSharedCssClassName.TASK_ITEM), {
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
27
|
+
lineHeight: akEditorLineHeight
|
|
28
|
+
}),
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
30
|
+
'div[data-task-local-id]': {
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
32
|
+
"span[contenteditable='false']": {
|
|
33
|
+
height: "".concat(akEditorLineHeight, "em")
|
|
34
|
+
},
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
36
|
+
"span[contenteditable='false'] + div": {
|
|
37
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
38
|
+
lineHeight: "".concat(akEditorLineHeight, "em")
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
42
|
+
'div[data-task-list-local-id]': {
|
|
43
|
+
margin: "var(--ds-space-150, 12px)".concat(" 0 0 0"),
|
|
44
|
+
// If task item is not first in the list then set margin top to 4px.
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
46
|
+
'div + div': {
|
|
47
|
+
marginTop: "var(--ds-space-050, 4px)"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
// If task list is not first in the document then set margin top to 4px.
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
52
|
+
'div[data-task-list-local-id] div[data-task-list-local-id]': {
|
|
53
|
+
marginTop: "var(--ds-space-050, 4px)",
|
|
54
|
+
marginLeft: "var(--ds-space-300, 24px)"
|
|
55
|
+
},
|
|
56
|
+
// When action list is inside panel
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
58
|
+
'.ak-editor-panel__content': {
|
|
59
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
60
|
+
'> div[data-task-list-local-id]:first-child': {
|
|
61
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
62
|
+
margin: '0 !important'
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { css } from '@emotion/react'; // eslint-disable-line @atlaskit/ui-styling-standard/use-compiled
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
4
|
+
export var whitespaceStyles = css({
|
|
5
|
+
wordWrap: 'break-word',
|
|
6
|
+
whiteSpace: 'pre-wrap'
|
|
7
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "207.
|
|
2
|
+
export var version = "207.9.0";
|
|
@@ -677,7 +677,6 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
677
677
|
pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined;
|
|
678
678
|
commands: {
|
|
679
679
|
updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
680
|
-
updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
681
680
|
};
|
|
682
681
|
}, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
683
682
|
sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
@@ -759,7 +758,6 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
759
758
|
pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined;
|
|
760
759
|
commands: {
|
|
761
760
|
updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
762
|
-
updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
763
761
|
};
|
|
764
762
|
}, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
765
763
|
sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
@@ -843,7 +841,6 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
843
841
|
pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined;
|
|
844
842
|
commands: {
|
|
845
843
|
updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
846
|
-
updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
847
844
|
};
|
|
848
845
|
}, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
849
846
|
sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
@@ -729,7 +729,6 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
729
729
|
pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined;
|
|
730
730
|
commands: {
|
|
731
731
|
updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
732
|
-
updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
733
732
|
};
|
|
734
733
|
}, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
735
734
|
sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
@@ -811,7 +810,6 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
811
810
|
pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined;
|
|
812
811
|
commands: {
|
|
813
812
|
updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
814
|
-
updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
815
813
|
};
|
|
816
814
|
}, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
817
815
|
sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
@@ -895,7 +893,6 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
895
893
|
pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined;
|
|
896
894
|
commands: {
|
|
897
895
|
updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
898
|
-
updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
899
896
|
};
|
|
900
897
|
}, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
901
898
|
sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
@@ -677,7 +677,6 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
677
677
|
pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined;
|
|
678
678
|
commands: {
|
|
679
679
|
updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
680
|
-
updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
681
680
|
};
|
|
682
681
|
}, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
683
682
|
sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
@@ -759,7 +758,6 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
759
758
|
pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined;
|
|
760
759
|
commands: {
|
|
761
760
|
updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
762
|
-
updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
763
761
|
};
|
|
764
762
|
}, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
765
763
|
sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
@@ -843,7 +841,6 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
843
841
|
pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined;
|
|
844
842
|
commands: {
|
|
845
843
|
updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
846
|
-
updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
847
844
|
};
|
|
848
845
|
}, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
849
846
|
sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const blockMarksStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const gridStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const indentationStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const whitespaceStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -888,7 +888,6 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
888
888
|
pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined;
|
|
889
889
|
commands: {
|
|
890
890
|
updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
891
|
-
updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
892
891
|
};
|
|
893
892
|
}, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined>>,
|
|
894
893
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
@@ -981,7 +980,6 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
981
980
|
pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined;
|
|
982
981
|
commands: {
|
|
983
982
|
updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
984
|
-
updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
985
983
|
};
|
|
986
984
|
}, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined>>,
|
|
987
985
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
@@ -1080,7 +1078,6 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
1080
1078
|
pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined;
|
|
1081
1079
|
commands: {
|
|
1082
1080
|
updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1083
|
-
updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1084
1081
|
};
|
|
1085
1082
|
}, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined>>,
|
|
1086
1083
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
@@ -940,7 +940,6 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
940
940
|
pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined;
|
|
941
941
|
commands: {
|
|
942
942
|
updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
943
|
-
updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
944
943
|
};
|
|
945
944
|
}, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined>>,
|
|
946
945
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
@@ -1033,7 +1032,6 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1033
1032
|
pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined;
|
|
1034
1033
|
commands: {
|
|
1035
1034
|
updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1036
|
-
updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1037
1035
|
};
|
|
1038
1036
|
}, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined>>,
|
|
1039
1037
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
@@ -1132,7 +1130,6 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1132
1130
|
pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined;
|
|
1133
1131
|
commands: {
|
|
1134
1132
|
updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1135
|
-
updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1136
1133
|
};
|
|
1137
1134
|
}, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined>>,
|
|
1138
1135
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
@@ -888,7 +888,6 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
888
888
|
pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined;
|
|
889
889
|
commands: {
|
|
890
890
|
updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
891
|
-
updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
892
891
|
};
|
|
893
892
|
}, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined>>,
|
|
894
893
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
@@ -981,7 +980,6 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
981
980
|
pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined;
|
|
982
981
|
commands: {
|
|
983
982
|
updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
984
|
-
updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
985
983
|
};
|
|
986
984
|
}, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined>>,
|
|
987
985
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
@@ -1080,7 +1078,6 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1080
1078
|
pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined;
|
|
1081
1079
|
commands: {
|
|
1082
1080
|
updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1083
|
-
updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1084
1081
|
};
|
|
1085
1082
|
}, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginOptions | undefined>>,
|
|
1086
1083
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const blockMarksStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const gridStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const indentationStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const whitespaceStyles: import("@emotion/react").SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "207.
|
|
3
|
+
"version": "207.9.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -46,15 +46,15 @@
|
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
47
|
"@atlaskit/button": "^23.2.0",
|
|
48
48
|
"@atlaskit/css": "^0.10.0",
|
|
49
|
-
"@atlaskit/editor-common": "^105.
|
|
49
|
+
"@atlaskit/editor-common": "^105.10.0",
|
|
50
50
|
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
51
51
|
"@atlaskit/editor-performance-metrics": "^2.1.0",
|
|
52
52
|
"@atlaskit/editor-plugin-quick-insert": "^2.5.0",
|
|
53
|
-
"@atlaskit/editor-plugins": "^
|
|
53
|
+
"@atlaskit/editor-plugins": "^9.0.0",
|
|
54
54
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
55
55
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
56
56
|
"@atlaskit/emoji": "^69.2.0",
|
|
57
|
-
"@atlaskit/icon": "^26.
|
|
57
|
+
"@atlaskit/icon": "^26.3.0",
|
|
58
58
|
"@atlaskit/link": "^3.2.0",
|
|
59
59
|
"@atlaskit/media-card": "^79.3.0",
|
|
60
60
|
"@atlaskit/mention": "^24.2.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
63
63
|
"@atlaskit/react-ufo": "^3.13.0",
|
|
64
64
|
"@atlaskit/task-decision": "^19.2.0",
|
|
65
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
65
|
+
"@atlaskit/tmp-editor-statsig": "^5.0.0",
|
|
66
66
|
"@atlaskit/tokens": "^4.9.0",
|
|
67
67
|
"@atlaskit/tooltip": "^20.0.0",
|
|
68
68
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -664,6 +664,15 @@
|
|
|
664
664
|
},
|
|
665
665
|
"dst-a11y__replace-anchor-with-link__editor": {
|
|
666
666
|
"type": "boolean"
|
|
667
|
+
},
|
|
668
|
+
"platform-dst-jira-web-fonts": {
|
|
669
|
+
"type": "boolean"
|
|
670
|
+
},
|
|
671
|
+
"confluence_typography_refreshed": {
|
|
672
|
+
"type": "boolean"
|
|
673
|
+
},
|
|
674
|
+
"atlas_editor_typography_refreshed": {
|
|
675
|
+
"type": "boolean"
|
|
667
676
|
}
|
|
668
677
|
},
|
|
669
678
|
"stricter": {
|