@atlaskit/editor-core 217.5.1 → 217.5.3
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 +16 -0
- package/dist/cjs/presets/universal.js +2 -1
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +10 -4
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/presets/universal.js +2 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +10 -4
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/presets/universal.js +2 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +10 -4
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 217.5.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9ed32aea2c1d3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9ed32aea2c1d3) -
|
|
8
|
+
Replace feature experiment util with cross platform alternative for platform_editor_block_menu
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 217.5.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`c68bac53b0cdc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c68bac53b0cdc) -
|
|
16
|
+
Add max appearance support to breakout plugin in universal preset
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 217.5.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -59,6 +59,7 @@ var _toolbarListsIndentation = require("@atlaskit/editor-plugins/toolbar-lists-i
|
|
|
59
59
|
var _ufo = require("@atlaskit/editor-plugins/ufo");
|
|
60
60
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
61
61
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
62
|
+
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
62
63
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
63
64
|
var _isFullPage = require("../utils/is-full-page");
|
|
64
65
|
var _versionWrapper = require("../version-wrapper");
|
|
@@ -117,7 +118,7 @@ function createUniversalPresetInternal(_ref) {
|
|
|
117
118
|
var finalPreset = defaultPreset.add(_ufo.ufoPlugin).add(_dataConsumer.dataConsumerPlugin).add(_accessibilityUtils.accessibilityUtilsPlugin).add(_contentInsertion.contentInsertionPlugin).add(_batchAttributeUpdates.batchAttributeUpdatesPlugin).maybeAdd([_breakout.breakoutPlugin, {
|
|
118
119
|
allowBreakoutButton: appearance === 'full-page',
|
|
119
120
|
appearance: appearance
|
|
120
|
-
}], Boolean(props.allowBreakout && isFullPage)).maybeAdd(_alignment.alignmentPlugin, Boolean(props.allowTextAlignment)).maybeAdd([_textColor.textColorPlugin, props.allowTextColor], Boolean(props.allowTextColor)).add(_list.listPlugin).maybeAdd(_rule.rulePlugin, Boolean(props.allowRule)).maybeAdd([_expand.expandPlugin, {
|
|
121
|
+
}], Boolean(props.allowBreakout && (isFullPage || appearance === 'max' && ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('editor_tinymce_full_width_mode', 'isEnabled', true) || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('confluence_max_width_content_appearance', 'isEnabled', true)) && (0, _platformFeatureFlags.fg)('platform_editor_breakout_in_universal_preset')))).maybeAdd(_alignment.alignmentPlugin, Boolean(props.allowTextAlignment)).maybeAdd([_textColor.textColorPlugin, props.allowTextColor], Boolean(props.allowTextColor)).add(_list.listPlugin).maybeAdd(_rule.rulePlugin, Boolean(props.allowRule)).maybeAdd([_expand.expandPlugin, {
|
|
121
122
|
allowInsertion: isExpandInsertionEnabled(props),
|
|
122
123
|
useLongPressSelection: false,
|
|
123
124
|
appearance: appearance,
|
|
@@ -204,11 +204,17 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
|
|
|
204
204
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
205
205
|
(0, _expValEquals.expValEquals)('platform_editor_small_font_size', 'isEnabled', true) && _editorUGCTokenStyles.editorUGCSmallText,
|
|
206
206
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
207
|
-
_blockTypeStyles.blocktypeStyles, (0,
|
|
207
|
+
_blockTypeStyles.blocktypeStyles, (0, _experiments.editorExperiment)('platform_editor_block_menu', true, {
|
|
208
|
+
exposure: true
|
|
209
|
+
}) &&
|
|
208
210
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
209
|
-
_blockTypeStyles.blockquoteSelectedNodeStyles, (0,
|
|
211
|
+
_blockTypeStyles.blockquoteSelectedNodeStyles, (0, _experiments.editorExperiment)('platform_editor_block_menu', true, {
|
|
212
|
+
exposure: true
|
|
213
|
+
}) &&
|
|
210
214
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
211
|
-
_blockTypeStyles.listSelectedNodeStyles, (0,
|
|
215
|
+
_blockTypeStyles.listSelectedNodeStyles, (0, _experiments.editorExperiment)('platform_editor_block_menu', true, {
|
|
216
|
+
exposure: true
|
|
217
|
+
}) &&
|
|
212
218
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
213
219
|
_blockTypeStyles.textSelectedNodeStyles,
|
|
214
220
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -344,7 +350,7 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
|
|
|
344
350
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
345
351
|
_statusStyles.statusStylesMixin_without_fg_platform_component_visual_refresh,
|
|
346
352
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
347
|
-
_annotationStyles.annotationStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? (0,
|
|
353
|
+
_annotationStyles.annotationStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? (0, _experiments.editorExperiment)('platform_editor_block_menu', true) ?
|
|
348
354
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
349
355
|
_smartCardStyles.smartCardStylesWithSearchMatchAndBlockMenuDangerStyles :
|
|
350
356
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -49,6 +49,7 @@ import { toolbarListsIndentationPlugin } from '@atlaskit/editor-plugins/toolbar-
|
|
|
49
49
|
import { ufoPlugin } from '@atlaskit/editor-plugins/ufo';
|
|
50
50
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
51
51
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
52
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
52
53
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
53
54
|
import { isFullPage as fullPageCheck } from '../utils/is-full-page';
|
|
54
55
|
import { version as coreVersion } from '../version-wrapper';
|
|
@@ -110,7 +111,7 @@ export default function createUniversalPresetInternal({
|
|
|
110
111
|
const finalPreset = defaultPreset.add(ufoPlugin).add(dataConsumerPlugin).add(accessibilityUtilsPlugin).add(contentInsertionPlugin).add(batchAttributeUpdatesPlugin).maybeAdd([breakoutPlugin, {
|
|
111
112
|
allowBreakoutButton: appearance === 'full-page',
|
|
112
113
|
appearance: appearance
|
|
113
|
-
}], Boolean(props.allowBreakout && isFullPage)).maybeAdd(alignmentPlugin, Boolean(props.allowTextAlignment)).maybeAdd([textColorPlugin, props.allowTextColor], Boolean(props.allowTextColor)).add(listPlugin).maybeAdd(rulePlugin, Boolean(props.allowRule)).maybeAdd([expandPlugin, {
|
|
114
|
+
}], Boolean(props.allowBreakout && (isFullPage || appearance === 'max' && (expValEqualsNoExposure('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEqualsNoExposure('confluence_max_width_content_appearance', 'isEnabled', true)) && fg('platform_editor_breakout_in_universal_preset')))).maybeAdd(alignmentPlugin, Boolean(props.allowTextAlignment)).maybeAdd([textColorPlugin, props.allowTextColor], Boolean(props.allowTextColor)).add(listPlugin).maybeAdd(rulePlugin, Boolean(props.allowRule)).maybeAdd([expandPlugin, {
|
|
114
115
|
allowInsertion: isExpandInsertionEnabled(props),
|
|
115
116
|
useLongPressSelection: false,
|
|
116
117
|
appearance: appearance,
|
|
@@ -200,11 +200,17 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
200
200
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
201
201
|
expValEquals('platform_editor_small_font_size', 'isEnabled', true) && editorUGCSmallText,
|
|
202
202
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
203
|
-
blocktypeStyles,
|
|
203
|
+
blocktypeStyles, editorExperiment('platform_editor_block_menu', true, {
|
|
204
|
+
exposure: true
|
|
205
|
+
}) &&
|
|
204
206
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
205
|
-
blockquoteSelectedNodeStyles,
|
|
207
|
+
blockquoteSelectedNodeStyles, editorExperiment('platform_editor_block_menu', true, {
|
|
208
|
+
exposure: true
|
|
209
|
+
}) &&
|
|
206
210
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
207
|
-
listSelectedNodeStyles,
|
|
211
|
+
listSelectedNodeStyles, editorExperiment('platform_editor_block_menu', true, {
|
|
212
|
+
exposure: true
|
|
213
|
+
}) &&
|
|
208
214
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
209
215
|
textSelectedNodeStyles,
|
|
210
216
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -340,7 +346,7 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
340
346
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
341
347
|
statusStylesMixin_without_fg_platform_component_visual_refresh,
|
|
342
348
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
343
|
-
annotationStyles, expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
|
|
349
|
+
annotationStyles, expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? editorExperiment('platform_editor_block_menu', true) ?
|
|
344
350
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
345
351
|
smartCardStylesWithSearchMatchAndBlockMenuDangerStyles :
|
|
346
352
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "217.5.
|
|
2
|
+
export const version = "217.5.2";
|
|
@@ -53,6 +53,7 @@ import { toolbarListsIndentationPlugin } from '@atlaskit/editor-plugins/toolbar-
|
|
|
53
53
|
import { ufoPlugin } from '@atlaskit/editor-plugins/ufo';
|
|
54
54
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
55
55
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
56
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
56
57
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
57
58
|
import { isFullPage as fullPageCheck } from '../utils/is-full-page';
|
|
58
59
|
import { version as coreVersion } from '../version-wrapper';
|
|
@@ -110,7 +111,7 @@ export default function createUniversalPresetInternal(_ref) {
|
|
|
110
111
|
var finalPreset = defaultPreset.add(ufoPlugin).add(dataConsumerPlugin).add(accessibilityUtilsPlugin).add(contentInsertionPlugin).add(batchAttributeUpdatesPlugin).maybeAdd([breakoutPlugin, {
|
|
111
112
|
allowBreakoutButton: appearance === 'full-page',
|
|
112
113
|
appearance: appearance
|
|
113
|
-
}], Boolean(props.allowBreakout && isFullPage)).maybeAdd(alignmentPlugin, Boolean(props.allowTextAlignment)).maybeAdd([textColorPlugin, props.allowTextColor], Boolean(props.allowTextColor)).add(listPlugin).maybeAdd(rulePlugin, Boolean(props.allowRule)).maybeAdd([expandPlugin, {
|
|
114
|
+
}], Boolean(props.allowBreakout && (isFullPage || appearance === 'max' && (expValEqualsNoExposure('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEqualsNoExposure('confluence_max_width_content_appearance', 'isEnabled', true)) && fg('platform_editor_breakout_in_universal_preset')))).maybeAdd(alignmentPlugin, Boolean(props.allowTextAlignment)).maybeAdd([textColorPlugin, props.allowTextColor], Boolean(props.allowTextColor)).add(listPlugin).maybeAdd(rulePlugin, Boolean(props.allowRule)).maybeAdd([expandPlugin, {
|
|
114
115
|
allowInsertion: isExpandInsertionEnabled(props),
|
|
115
116
|
useLongPressSelection: false,
|
|
116
117
|
appearance: appearance,
|
|
@@ -196,11 +196,17 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
196
196
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
197
197
|
expValEquals('platform_editor_small_font_size', 'isEnabled', true) && editorUGCSmallText,
|
|
198
198
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
199
|
-
blocktypeStyles,
|
|
199
|
+
blocktypeStyles, editorExperiment('platform_editor_block_menu', true, {
|
|
200
|
+
exposure: true
|
|
201
|
+
}) &&
|
|
200
202
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
201
|
-
blockquoteSelectedNodeStyles,
|
|
203
|
+
blockquoteSelectedNodeStyles, editorExperiment('platform_editor_block_menu', true, {
|
|
204
|
+
exposure: true
|
|
205
|
+
}) &&
|
|
202
206
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
203
|
-
listSelectedNodeStyles,
|
|
207
|
+
listSelectedNodeStyles, editorExperiment('platform_editor_block_menu', true, {
|
|
208
|
+
exposure: true
|
|
209
|
+
}) &&
|
|
204
210
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
205
211
|
textSelectedNodeStyles,
|
|
206
212
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -336,7 +342,7 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
336
342
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
337
343
|
statusStylesMixin_without_fg_platform_component_visual_refresh,
|
|
338
344
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
339
|
-
annotationStyles, expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
|
|
345
|
+
annotationStyles, expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? editorExperiment('platform_editor_block_menu', true) ?
|
|
340
346
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
341
347
|
smartCardStylesWithSearchMatchAndBlockMenuDangerStyles :
|
|
342
348
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "217.5.
|
|
2
|
+
export var version = "217.5.2";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "217.5.
|
|
3
|
+
"version": "217.5.3",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
67
67
|
"@atlaskit/react-ufo": "^5.4.0",
|
|
68
68
|
"@atlaskit/task-decision": "^19.3.0",
|
|
69
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
69
|
+
"@atlaskit/tmp-editor-statsig": "^43.0.0",
|
|
70
70
|
"@atlaskit/tokens": "^11.1.0",
|
|
71
71
|
"@atlaskit/tooltip": "^21.0.0",
|
|
72
72
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -313,6 +313,9 @@
|
|
|
313
313
|
},
|
|
314
314
|
"platform_editor_max_width_mode_resize_fix": {
|
|
315
315
|
"type": "boolean"
|
|
316
|
+
},
|
|
317
|
+
"platform_editor_breakout_in_universal_preset": {
|
|
318
|
+
"type": "boolean"
|
|
316
319
|
}
|
|
317
320
|
},
|
|
318
321
|
"stricter": {
|