@atlaskit/editor-core 215.6.3 → 215.8.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-products/tsconfig.json +115 -0
- package/dist/cjs/create-editor/ReactEditorView.js +1 -1
- package/dist/cjs/presets/universal.js +2 -2
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +5 -1
- package/dist/cjs/ui/EditorContentContainer/styles/findReplaceStyles.js +24 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +1 -1
- package/dist/es2019/presets/universal.js +2 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +6 -2
- package/dist/es2019/ui/EditorContentContainer/styles/findReplaceStyles.js +27 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +1 -1
- package/dist/esm/presets/universal.js +2 -2
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +6 -2
- package/dist/esm/ui/EditorContentContainer/styles/findReplaceStyles.js +22 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +2 -0
- package/dist/types/presets/universal.d.ts +12 -0
- package/dist/types/presets/useUniversalPreset.d.ts +2 -0
- package/dist/types/ui/EditorContentContainer/styles/findReplaceStyles.d.ts +2 -0
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +2 -0
- package/dist/types-ts4.5/presets/universal.d.ts +12 -0
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +2 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/findReplaceStyles.d.ts +2 -0
- package/package.json +10 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 215.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`301c7dd0ccdd2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/301c7dd0ccdd2) -
|
|
8
|
+
Adds new `contextualFormattingEnabled` plugin option to editor-plugin-toolbar. This has 3 options
|
|
9
|
+
(always-inline, always-pinned and controlled) to allow direct control over toolbar placement in
|
|
10
|
+
the editor.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`b2520b000ee03`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b2520b000ee03) -
|
|
15
|
+
ED-29593 cleanup platform_editor_ttvc_nodes_in_viewport
|
|
16
|
+
- [`c28cd65d12c24`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c28cd65d12c24) -
|
|
17
|
+
EDITOR-2447 Bump adf-schema to 51.3.1
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
20
|
+
## 215.7.0
|
|
21
|
+
|
|
22
|
+
### Minor Changes
|
|
23
|
+
|
|
24
|
+
- [`a28ac1e7cb62d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a28ac1e7cb62d) -
|
|
25
|
+
EDITOR-2498 Add emoji disableAutoformatProp to universalPreset so jira can disable autoformatting
|
|
26
|
+
when required
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- [`b24541c8bc571`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b24541c8bc571) -
|
|
31
|
+
[ux] Fixes an A11Y issue. When there are selected Find and Replace matches inside of a codeblock,
|
|
32
|
+
color contrast is insufficient.
|
|
33
|
+
- Updated dependencies
|
|
34
|
+
|
|
3
35
|
## 215.6.3
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.products.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../tsDist/@atlaskit__editor-core/app",
|
|
7
|
+
"rootDir": "../",
|
|
8
|
+
"composite": true
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../src/**/*.test.*",
|
|
17
|
+
"../src/**/test.*",
|
|
18
|
+
"../src/stories/*",
|
|
19
|
+
"../src/**/examples.*",
|
|
20
|
+
"../src/**/examples/*",
|
|
21
|
+
"../src/**/examples/**/*",
|
|
22
|
+
"../src/**/*.stories.*",
|
|
23
|
+
"../src/**/stories/*",
|
|
24
|
+
"../src/**/stories/**/*"
|
|
25
|
+
],
|
|
26
|
+
"references": [
|
|
27
|
+
{
|
|
28
|
+
"path": "../../activity-provider/afm-products/tsconfig.json"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"path": "../../../analytics/analytics-namespaced-context/afm-products/tsconfig.json"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"path": "../../../analytics/analytics-next/afm-products/tsconfig.json"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"path": "../../../design-system/button/afm-products/tsconfig.json"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"path": "../../../design-system/css/afm-products/tsconfig.json"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"path": "../../editor-json-transformer/afm-products/tsconfig.json"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"path": "../../editor-performance-metrics/afm-products/tsconfig.json"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"path": "../../editor-plugin-quick-insert/afm-products/tsconfig.json"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"path": "../../editor-plugin-user-preferences/afm-products/tsconfig.json"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"path": "../../editor-plugins/afm-products/tsconfig.json"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"path": "../../editor-shared-styles/afm-products/tsconfig.json"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"path": "../../editor-toolbar/afm-products/tsconfig.json"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"path": "../../editor-toolbar-model/afm-products/tsconfig.json"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"path": "../../../elements/emoji/afm-products/tsconfig.json"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"path": "../../../design-system/icon/afm-products/tsconfig.json"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"path": "../../../design-system/link/afm-products/tsconfig.json"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"path": "../../../media/media-card/afm-products/tsconfig.json"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"path": "../../../elements/mention/afm-products/tsconfig.json"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"path": "../../../platform/feature-flags/afm-products/tsconfig.json"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"path": "../../../platform/feature-flags-react/afm-products/tsconfig.json"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"path": "../../../react-ufo/atlaskit/afm-products/tsconfig.json"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"path": "../../../elements/task-decision/afm-products/tsconfig.json"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"path": "../../tmp-editor-statsig/afm-products/tsconfig.json"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"path": "../../../design-system/tokens/afm-products/tsconfig.json"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"path": "../../../design-system/tooltip/afm-products/tsconfig.json"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"path": "../../../design-system/width-detector/afm-products/tsconfig.json"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"path": "../../editor-common/afm-products/tsconfig.json"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"path": "../../../linking-platform/link-provider/afm-products/tsconfig.json"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"path": "../../../media/media-core/afm-products/tsconfig.json"
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}
|
|
@@ -440,7 +440,7 @@ function ReactEditorView(props) {
|
|
|
440
440
|
var nodes = (0, _getNodesCount.getNodesCount)(viewRef.current.state.doc);
|
|
441
441
|
var ttfb = (0, _navigation.getResponseEndTime)();
|
|
442
442
|
var contextIdentifier = (_pluginInjectionAPI$c2 = pluginInjectionAPI.current.api().base) === null || _pluginInjectionAPI$c2 === void 0 ? void 0 : _pluginInjectionAPI$c2.sharedState.currentState();
|
|
443
|
-
var nodesInViewport = (0,
|
|
443
|
+
var nodesInViewport = (0, _getNodesVisibleInViewport.getNodesVisibleInViewport)(viewRef.current.dom);
|
|
444
444
|
var nodeSize = viewRef.current.state.doc.nodeSize;
|
|
445
445
|
var _ref4 = (0, _expValEquals.expValEquals)('cc_editor_insm_doc_size_stats', 'isEnabled', true) ? {
|
|
446
446
|
totalNodes: Object.values(nodes).reduce(function (acc, curr) {
|
|
@@ -149,9 +149,9 @@ function createUniversalPresetInternal(_ref) {
|
|
|
149
149
|
HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent,
|
|
150
150
|
profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider,
|
|
151
151
|
mentionProvider: props.mentionProvider
|
|
152
|
-
}, initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.mentionsPlugin)], Boolean(props.mentionProvider)).maybeAdd([_emoji.emojiPlugin, {
|
|
152
|
+
}, initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.mentionsPlugin)], Boolean(props.mentionProvider)).maybeAdd([_emoji.emojiPlugin, _objectSpread({
|
|
153
153
|
emojiProvider: props.emojiProvider
|
|
154
|
-
}], Boolean(props.emojiProvider)).maybeAdd([_table.tablesPlugin, {
|
|
154
|
+
}, (0, _expValEquals.expValEquals)('platform_editor_plain_text_support', 'isEnabled', true) ? initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.emojiPlugin : {})], Boolean(props.emojiProvider)).maybeAdd([_table.tablesPlugin, {
|
|
155
155
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
156
156
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && (0, _experiments.editorExperiment)('support_table_in_comment', true, {
|
|
157
157
|
exposure: true
|
|
@@ -274,7 +274,11 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
|
|
|
274
274
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
275
275
|
_findReplaceStyles.findReplaceStylesNew :
|
|
276
276
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
277
|
-
_findReplaceStyles.findReplaceStyles,
|
|
277
|
+
_findReplaceStyles.findReplaceStyles, (0, _expValEquals.expValEquals)('platform_editor_find_and_replace_improvements', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_find_codeblock_color_contrast_fix') &&
|
|
278
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
279
|
+
_findReplaceStyles.findReplaceStylesNewWithCodeblockColorContrastFix, !(0, _expValEquals.expValEquals)('platform_editor_find_and_replace_improvements', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_find_codeblock_color_contrast_fix') &&
|
|
280
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
281
|
+
_findReplaceStyles.findReplaceStylesWithCodeblockColorContrastFix,
|
|
278
282
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
279
283
|
_textHighlightStyles.textHighlightStyle,
|
|
280
284
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
exports.findReplaceStylesNew = exports.findReplaceStyles = void 0;
|
|
7
|
+
exports.findReplaceStylesWithCodeblockColorContrastFix = exports.findReplaceStylesNewWithCodeblockColorContrastFix = exports.findReplaceStylesNew = exports.findReplaceStyles = void 0;
|
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
7
9
|
var _react = require("@emotion/react");
|
|
10
|
+
var _styles = require("@atlaskit/editor-common/styles");
|
|
8
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
9
12
|
|
|
10
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
@@ -22,6 +25,26 @@ var findReplaceStyles = exports.findReplaceStyles = (0, _react.css)({
|
|
|
22
25
|
}
|
|
23
26
|
});
|
|
24
27
|
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
29
|
+
var findReplaceStylesWithCodeblockColorContrastFix = exports.findReplaceStylesWithCodeblockColorContrastFix = (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(_styles.CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, " .search-match.selected-search-match"), {
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
31
|
+
span: {
|
|
32
|
+
// we need to use !important here as we need to override inline selection styles
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
34
|
+
color: "var(--ds-text, #172B4D)".concat(" !important")
|
|
35
|
+
}
|
|
36
|
+
}));
|
|
37
|
+
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
39
|
+
var findReplaceStylesNewWithCodeblockColorContrastFix = exports.findReplaceStylesNewWithCodeblockColorContrastFix = (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(_styles.CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, " .search-match-text.selected-search-match"), {
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
41
|
+
span: {
|
|
42
|
+
// we need to use !important here as we need to override inline selection styles
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
44
|
+
color: "var(--ds-text, #172B4D)".concat(" !important")
|
|
45
|
+
}
|
|
46
|
+
}));
|
|
47
|
+
|
|
25
48
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
26
49
|
var findReplaceStylesNew = exports.findReplaceStylesNew = (0, _react.css)({
|
|
27
50
|
/** Text match styles */
|
|
@@ -410,7 +410,7 @@ export function ReactEditorView(props) {
|
|
|
410
410
|
const nodes = getNodesCount(viewRef.current.state.doc);
|
|
411
411
|
const ttfb = getResponseEndTime();
|
|
412
412
|
const contextIdentifier = (_pluginInjectionAPI$c4 = pluginInjectionAPI.current.api().base) === null || _pluginInjectionAPI$c4 === void 0 ? void 0 : _pluginInjectionAPI$c4.sharedState.currentState();
|
|
413
|
-
const nodesInViewport =
|
|
413
|
+
const nodesInViewport = getNodesVisibleInViewport(viewRef.current.dom);
|
|
414
414
|
const nodeSize = viewRef.current.state.doc.nodeSize;
|
|
415
415
|
const {
|
|
416
416
|
totalNodes,
|
|
@@ -142,7 +142,8 @@ export default function createUniversalPresetInternal({
|
|
|
142
142
|
mentionProvider: props.mentionProvider,
|
|
143
143
|
...(initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.mentionsPlugin)
|
|
144
144
|
}], Boolean(props.mentionProvider)).maybeAdd([emojiPlugin, {
|
|
145
|
-
emojiProvider: props.emojiProvider
|
|
145
|
+
emojiProvider: props.emojiProvider,
|
|
146
|
+
...(expValEquals('platform_editor_plain_text_support', 'isEnabled', true) ? initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.emojiPlugin : {})
|
|
146
147
|
}], Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
|
|
147
148
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
148
149
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && editorExperiment('support_table_in_comment', true, {
|
|
@@ -34,7 +34,7 @@ import { embedCardStyles } from './styles/embedCardStyles';
|
|
|
34
34
|
import { emojiDangerStyles, emojiStyles, getDenseEmojiStyles } from './styles/emoji';
|
|
35
35
|
import { expandStyles, getDenseExpandTitleStyles, expandStylesMixin_fg_platform_editor_nested_dnd_styles_changes, expandStylesMixin_fg_platform_visual_refresh_icons, expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes } from './styles/expandStyles';
|
|
36
36
|
import { getExtensionStyles } from './styles/extensionStyles';
|
|
37
|
-
import { findReplaceStyles, findReplaceStylesNew } from './styles/findReplaceStyles';
|
|
37
|
+
import { findReplaceStyles, findReplaceStylesWithCodeblockColorContrastFix, findReplaceStylesNew, findReplaceStylesNewWithCodeblockColorContrastFix } from './styles/findReplaceStyles';
|
|
38
38
|
import { firstBlockNodeStyles } from './styles/firstBlockNodeStyles';
|
|
39
39
|
import { firstFloatingToolbarButtonStyles } from './styles/floatingToolbarStyles';
|
|
40
40
|
import { fullPageEditorStyles } from './styles/fullPageEditorStyles';
|
|
@@ -270,7 +270,11 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
270
270
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
271
271
|
findReplaceStylesNew :
|
|
272
272
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
273
|
-
findReplaceStyles,
|
|
273
|
+
findReplaceStyles, expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true) && fg('platform_editor_find_codeblock_color_contrast_fix') &&
|
|
274
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
275
|
+
findReplaceStylesNewWithCodeblockColorContrastFix, !expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true) && fg('platform_editor_find_codeblock_color_contrast_fix') &&
|
|
276
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
277
|
+
findReplaceStylesWithCodeblockColorContrastFix,
|
|
274
278
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
275
279
|
textHighlightStyle,
|
|
276
280
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
+
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
3
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
4
5
|
export const findReplaceStyles = css({
|
|
5
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -15,6 +16,32 @@ export const findReplaceStyles = css({
|
|
|
15
16
|
}
|
|
16
17
|
});
|
|
17
18
|
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
20
|
+
export const findReplaceStylesWithCodeblockColorContrastFix = css({
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
22
|
+
[`.${CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER} .search-match.selected-search-match`]: {
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
24
|
+
span: {
|
|
25
|
+
// we need to use !important here as we need to override inline selection styles
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
27
|
+
color: `${"var(--ds-text, #172B4D)"} !important`
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
33
|
+
export const findReplaceStylesNewWithCodeblockColorContrastFix = css({
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
35
|
+
[`.${CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER} .search-match-text.selected-search-match`]: {
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
37
|
+
span: {
|
|
38
|
+
// we need to use !important here as we need to override inline selection styles
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
40
|
+
color: `${"var(--ds-text, #172B4D)"} !important`
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
|
|
18
45
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
19
46
|
export const findReplaceStylesNew = css({
|
|
20
47
|
/** Text match styles */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "
|
|
2
|
+
export const version = "215.7.0";
|
|
@@ -430,7 +430,7 @@ export function ReactEditorView(props) {
|
|
|
430
430
|
var nodes = getNodesCount(viewRef.current.state.doc);
|
|
431
431
|
var ttfb = getResponseEndTime();
|
|
432
432
|
var contextIdentifier = (_pluginInjectionAPI$c2 = pluginInjectionAPI.current.api().base) === null || _pluginInjectionAPI$c2 === void 0 ? void 0 : _pluginInjectionAPI$c2.sharedState.currentState();
|
|
433
|
-
var nodesInViewport =
|
|
433
|
+
var nodesInViewport = getNodesVisibleInViewport(viewRef.current.dom);
|
|
434
434
|
var nodeSize = viewRef.current.state.doc.nodeSize;
|
|
435
435
|
var _ref4 = expValEquals('cc_editor_insm_doc_size_stats', 'isEnabled', true) ? {
|
|
436
436
|
totalNodes: Object.values(nodes).reduce(function (acc, curr) {
|
|
@@ -142,9 +142,9 @@ export default function createUniversalPresetInternal(_ref) {
|
|
|
142
142
|
HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent,
|
|
143
143
|
profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider,
|
|
144
144
|
mentionProvider: props.mentionProvider
|
|
145
|
-
}, initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.mentionsPlugin)], Boolean(props.mentionProvider)).maybeAdd([emojiPlugin, {
|
|
145
|
+
}, initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.mentionsPlugin)], Boolean(props.mentionProvider)).maybeAdd([emojiPlugin, _objectSpread({
|
|
146
146
|
emojiProvider: props.emojiProvider
|
|
147
|
-
}], Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
|
|
147
|
+
}, expValEquals('platform_editor_plain_text_support', 'isEnabled', true) ? initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.emojiPlugin : {})], Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
|
|
148
148
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
149
149
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && editorExperiment('support_table_in_comment', true, {
|
|
150
150
|
exposure: true
|
|
@@ -35,7 +35,7 @@ import { embedCardStyles } from './styles/embedCardStyles';
|
|
|
35
35
|
import { emojiDangerStyles, emojiStyles, getDenseEmojiStyles } from './styles/emoji';
|
|
36
36
|
import { expandStyles, getDenseExpandTitleStyles, expandStylesMixin_fg_platform_editor_nested_dnd_styles_changes, expandStylesMixin_fg_platform_visual_refresh_icons, expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes } from './styles/expandStyles';
|
|
37
37
|
import { getExtensionStyles } from './styles/extensionStyles';
|
|
38
|
-
import { findReplaceStyles, findReplaceStylesNew } from './styles/findReplaceStyles';
|
|
38
|
+
import { findReplaceStyles, findReplaceStylesWithCodeblockColorContrastFix, findReplaceStylesNew, findReplaceStylesNewWithCodeblockColorContrastFix } from './styles/findReplaceStyles';
|
|
39
39
|
import { firstBlockNodeStyles } from './styles/firstBlockNodeStyles';
|
|
40
40
|
import { firstFloatingToolbarButtonStyles } from './styles/floatingToolbarStyles';
|
|
41
41
|
import { fullPageEditorStyles } from './styles/fullPageEditorStyles';
|
|
@@ -266,7 +266,11 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
266
266
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
267
267
|
findReplaceStylesNew :
|
|
268
268
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
269
|
-
findReplaceStyles,
|
|
269
|
+
findReplaceStyles, expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true) && fg('platform_editor_find_codeblock_color_contrast_fix') &&
|
|
270
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
271
|
+
findReplaceStylesNewWithCodeblockColorContrastFix, !expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true) && fg('platform_editor_find_codeblock_color_contrast_fix') &&
|
|
272
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
273
|
+
findReplaceStylesWithCodeblockColorContrastFix,
|
|
270
274
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
271
275
|
textHighlightStyle,
|
|
272
276
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
1
2
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
2
3
|
import { css } from '@emotion/react';
|
|
4
|
+
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
3
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
4
6
|
export var findReplaceStyles = css({
|
|
5
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -15,6 +17,26 @@ export var findReplaceStyles = css({
|
|
|
15
17
|
}
|
|
16
18
|
});
|
|
17
19
|
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
21
|
+
export var findReplaceStylesWithCodeblockColorContrastFix = css(_defineProperty({}, ".".concat(CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, " .search-match.selected-search-match"), {
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
23
|
+
span: {
|
|
24
|
+
// we need to use !important here as we need to override inline selection styles
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
26
|
+
color: "var(--ds-text, #172B4D)".concat(" !important")
|
|
27
|
+
}
|
|
28
|
+
}));
|
|
29
|
+
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
31
|
+
export var findReplaceStylesNewWithCodeblockColorContrastFix = css(_defineProperty({}, ".".concat(CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, " .search-match-text.selected-search-match"), {
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
33
|
+
span: {
|
|
34
|
+
// we need to use !important here as we need to override inline selection styles
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
36
|
+
color: "var(--ds-text, #172B4D)".concat(" !important")
|
|
37
|
+
}
|
|
38
|
+
}));
|
|
39
|
+
|
|
18
40
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
19
41
|
export var findReplaceStylesNew = css({
|
|
20
42
|
/** Text match styles */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "
|
|
2
|
+
export var version = "215.7.0";
|
|
@@ -409,6 +409,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
409
409
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
410
410
|
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
411
411
|
actions: {
|
|
412
|
+
contextualFormattingMode: () => import("@atlaskit/editor-common/toolbar").ContextualFormattingEnabledOptions;
|
|
412
413
|
getComponents: () => Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>;
|
|
413
414
|
registerComponents: import("packages/editor/editor-plugin-toolbar/dist/types/types").RegisterComponentsAction;
|
|
414
415
|
};
|
|
@@ -547,6 +548,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
547
548
|
sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
548
549
|
}, import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
549
550
|
actions: {
|
|
551
|
+
contextualFormattingMode: () => import("@atlaskit/editor-common/toolbar").ContextualFormattingEnabledOptions;
|
|
550
552
|
getComponents: () => Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>;
|
|
551
553
|
registerComponents: import("packages/editor/editor-plugin-toolbar/dist/types/types").RegisterComponentsAction;
|
|
552
554
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
2
|
+
import type { ContextualFormattingEnabledOptions } from '@atlaskit/editor-common/toolbar';
|
|
2
3
|
import type { EditorAppearance, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
3
4
|
import type { ToolbarInsertBlockButtonsConfig } from '@atlaskit/editor-plugin-insert-block';
|
|
4
5
|
import { type ExtensionPluginOptions } from '@atlaskit/editor-plugins/extension';
|
|
@@ -13,6 +14,9 @@ export type UniversalPresetProps = DefaultPresetPluginOptions & EditorSharedProp
|
|
|
13
14
|
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
14
15
|
*/
|
|
15
16
|
export type InitialPluginConfiguration = {
|
|
17
|
+
emojiPlugin?: {
|
|
18
|
+
disableAutoformat?: boolean;
|
|
19
|
+
};
|
|
16
20
|
extensionPlugin?: {
|
|
17
21
|
__rendererExtensionOptions?: ExtensionPluginOptions['__rendererExtensionOptions'];
|
|
18
22
|
};
|
|
@@ -36,6 +40,12 @@ export type InitialPluginConfiguration = {
|
|
|
36
40
|
taskPlaceholder?: string;
|
|
37
41
|
};
|
|
38
42
|
toolbarPlugin?: {
|
|
43
|
+
contextualFormattingEnabled?: ContextualFormattingEnabledOptions;
|
|
44
|
+
/**
|
|
45
|
+
* The disableSelectionToolbar option is deprecated and will be removed in the future, replaced with `contextualFormattingEnabled`.
|
|
46
|
+
*
|
|
47
|
+
* To disable the selection toolbar (so only the primary toolbar is shown), use `contextualFormattingEnabled: 'always-pinned'`.
|
|
48
|
+
*/
|
|
39
49
|
disableSelectionToolbar?: boolean;
|
|
40
50
|
enableNewToolbarExperience?: boolean;
|
|
41
51
|
};
|
|
@@ -470,6 +480,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
470
480
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
471
481
|
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
472
482
|
actions: {
|
|
483
|
+
contextualFormattingMode: () => ContextualFormattingEnabledOptions;
|
|
473
484
|
getComponents: () => Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>;
|
|
474
485
|
registerComponents: import("packages/editor/editor-plugin-toolbar/dist/types/types").RegisterComponentsAction;
|
|
475
486
|
};
|
|
@@ -608,6 +619,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
608
619
|
sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
609
620
|
}, import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
610
621
|
actions: {
|
|
622
|
+
contextualFormattingMode: () => ContextualFormattingEnabledOptions;
|
|
611
623
|
getComponents: () => Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>;
|
|
612
624
|
registerComponents: import("packages/editor/editor-plugin-toolbar/dist/types/types").RegisterComponentsAction;
|
|
613
625
|
};
|
|
@@ -409,6 +409,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
409
409
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
410
410
|
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
411
411
|
actions: {
|
|
412
|
+
contextualFormattingMode: () => import("@atlaskit/editor-common/toolbar").ContextualFormattingEnabledOptions;
|
|
412
413
|
getComponents: () => Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>;
|
|
413
414
|
registerComponents: import("packages/editor/editor-plugin-toolbar/dist/types/types").RegisterComponentsAction;
|
|
414
415
|
};
|
|
@@ -547,6 +548,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
547
548
|
sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
548
549
|
}, import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
549
550
|
actions: {
|
|
551
|
+
contextualFormattingMode: () => import("@atlaskit/editor-common/toolbar").ContextualFormattingEnabledOptions;
|
|
550
552
|
getComponents: () => Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>;
|
|
551
553
|
registerComponents: import("packages/editor/editor-plugin-toolbar/dist/types/types").RegisterComponentsAction;
|
|
552
554
|
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { type SerializedStyles } from '@emotion/react';
|
|
2
2
|
export declare const findReplaceStyles: SerializedStyles;
|
|
3
|
+
export declare const findReplaceStylesWithCodeblockColorContrastFix: SerializedStyles;
|
|
4
|
+
export declare const findReplaceStylesNewWithCodeblockColorContrastFix: SerializedStyles;
|
|
3
5
|
export declare const findReplaceStylesNew: SerializedStyles;
|
|
@@ -580,6 +580,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
580
580
|
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>,
|
|
581
581
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
582
582
|
actions: {
|
|
583
|
+
contextualFormattingMode: () => import("@atlaskit/editor-common/toolbar").ContextualFormattingEnabledOptions;
|
|
583
584
|
getComponents: () => Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>;
|
|
584
585
|
registerComponents: import("packages/editor/editor-plugin-toolbar/dist/types/types").RegisterComponentsAction;
|
|
585
586
|
};
|
|
@@ -788,6 +789,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
788
789
|
}, import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginOptions | undefined>,
|
|
789
790
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
790
791
|
actions: {
|
|
792
|
+
contextualFormattingMode: () => import("@atlaskit/editor-common/toolbar").ContextualFormattingEnabledOptions;
|
|
791
793
|
getComponents: () => Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>;
|
|
792
794
|
registerComponents: import("packages/editor/editor-plugin-toolbar/dist/types/types").RegisterComponentsAction;
|
|
793
795
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
2
|
+
import type { ContextualFormattingEnabledOptions } from '@atlaskit/editor-common/toolbar';
|
|
2
3
|
import type { EditorAppearance, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
3
4
|
import type { ToolbarInsertBlockButtonsConfig } from '@atlaskit/editor-plugin-insert-block';
|
|
4
5
|
import { type ExtensionPluginOptions } from '@atlaskit/editor-plugins/extension';
|
|
@@ -13,6 +14,9 @@ export type UniversalPresetProps = DefaultPresetPluginOptions & EditorSharedProp
|
|
|
13
14
|
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
14
15
|
*/
|
|
15
16
|
export type InitialPluginConfiguration = {
|
|
17
|
+
emojiPlugin?: {
|
|
18
|
+
disableAutoformat?: boolean;
|
|
19
|
+
};
|
|
16
20
|
extensionPlugin?: {
|
|
17
21
|
__rendererExtensionOptions?: ExtensionPluginOptions['__rendererExtensionOptions'];
|
|
18
22
|
};
|
|
@@ -36,6 +40,12 @@ export type InitialPluginConfiguration = {
|
|
|
36
40
|
taskPlaceholder?: string;
|
|
37
41
|
};
|
|
38
42
|
toolbarPlugin?: {
|
|
43
|
+
contextualFormattingEnabled?: ContextualFormattingEnabledOptions;
|
|
44
|
+
/**
|
|
45
|
+
* The disableSelectionToolbar option is deprecated and will be removed in the future, replaced with `contextualFormattingEnabled`.
|
|
46
|
+
*
|
|
47
|
+
* To disable the selection toolbar (so only the primary toolbar is shown), use `contextualFormattingEnabled: 'always-pinned'`.
|
|
48
|
+
*/
|
|
39
49
|
disableSelectionToolbar?: boolean;
|
|
40
50
|
enableNewToolbarExperience?: boolean;
|
|
41
51
|
};
|
|
@@ -641,6 +651,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
641
651
|
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>,
|
|
642
652
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
643
653
|
actions: {
|
|
654
|
+
contextualFormattingMode: () => ContextualFormattingEnabledOptions;
|
|
644
655
|
getComponents: () => Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>;
|
|
645
656
|
registerComponents: import("packages/editor/editor-plugin-toolbar/dist/types/types").RegisterComponentsAction;
|
|
646
657
|
};
|
|
@@ -849,6 +860,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
849
860
|
}, import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginOptions | undefined>,
|
|
850
861
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
851
862
|
actions: {
|
|
863
|
+
contextualFormattingMode: () => ContextualFormattingEnabledOptions;
|
|
852
864
|
getComponents: () => Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>;
|
|
853
865
|
registerComponents: import("packages/editor/editor-plugin-toolbar/dist/types/types").RegisterComponentsAction;
|
|
854
866
|
};
|
|
@@ -580,6 +580,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
580
580
|
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>,
|
|
581
581
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
582
582
|
actions: {
|
|
583
|
+
contextualFormattingMode: () => import("@atlaskit/editor-common/toolbar").ContextualFormattingEnabledOptions;
|
|
583
584
|
getComponents: () => Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>;
|
|
584
585
|
registerComponents: import("packages/editor/editor-plugin-toolbar/dist/types/types").RegisterComponentsAction;
|
|
585
586
|
};
|
|
@@ -788,6 +789,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
788
789
|
}, import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginOptions | undefined>,
|
|
789
790
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
790
791
|
actions: {
|
|
792
|
+
contextualFormattingMode: () => import("@atlaskit/editor-common/toolbar").ContextualFormattingEnabledOptions;
|
|
791
793
|
getComponents: () => Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>;
|
|
792
794
|
registerComponents: import("packages/editor/editor-plugin-toolbar/dist/types/types").RegisterComponentsAction;
|
|
793
795
|
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { type SerializedStyles } from '@emotion/react';
|
|
2
2
|
export declare const findReplaceStyles: SerializedStyles;
|
|
3
|
+
export declare const findReplaceStylesWithCodeblockColorContrastFix: SerializedStyles;
|
|
4
|
+
export declare const findReplaceStylesNewWithCodeblockColorContrastFix: SerializedStyles;
|
|
3
5
|
export declare const findReplaceStylesNew: SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "215.
|
|
3
|
+
"version": "215.8.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@atlaskit/activity-provider": "^2.5.0",
|
|
42
|
-
"@atlaskit/adf-schema": "^51.3.
|
|
42
|
+
"@atlaskit/adf-schema": "^51.3.1",
|
|
43
43
|
"@atlaskit/afm-i18n-platform-editor-editor-core": "2.7.0",
|
|
44
44
|
"@atlaskit/analytics-namespaced-context": "^7.1.0",
|
|
45
45
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"uuid": "^3.1.0"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"@atlaskit/editor-common": "^110.
|
|
84
|
+
"@atlaskit/editor-common": "^110.18.0",
|
|
85
85
|
"@atlaskit/link-provider": "^4.0.0",
|
|
86
86
|
"@atlaskit/media-core": "^37.0.0",
|
|
87
87
|
"react": "^18.2.0",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"@atlaskit/primitives": "^16.0.0",
|
|
108
108
|
"@atlaskit/renderer": "^124.8.0",
|
|
109
109
|
"@atlaskit/section-message": "^8.7.0",
|
|
110
|
-
"@atlaskit/smart-card": "^43.
|
|
110
|
+
"@atlaskit/smart-card": "^43.3.0",
|
|
111
111
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
112
112
|
"@atlaskit/toggle": "^15.1.0",
|
|
113
113
|
"@atlaskit/util-data-test": "^18.3.0",
|
|
@@ -440,6 +440,9 @@
|
|
|
440
440
|
"type": "boolean",
|
|
441
441
|
"referenceOnly": true
|
|
442
442
|
},
|
|
443
|
+
"platform_editor_find_codeblock_color_contrast_fix": {
|
|
444
|
+
"type": "boolean"
|
|
445
|
+
},
|
|
443
446
|
"platform_editor_blocktaskitem_patch_3": {
|
|
444
447
|
"type": "boolean",
|
|
445
448
|
"referenceOnly": true
|
|
@@ -447,6 +450,9 @@
|
|
|
447
450
|
"platform_editor_text_highlight_padding": {
|
|
448
451
|
"type": "boolean"
|
|
449
452
|
},
|
|
453
|
+
"platform_editor_toolbar_aifc_placement_config": {
|
|
454
|
+
"type": "boolean"
|
|
455
|
+
},
|
|
450
456
|
"platform_editor_toolbar_aifc_patch_7": {
|
|
451
457
|
"type": "boolean"
|
|
452
458
|
},
|