@atlaskit/editor-core 217.5.1 → 217.5.2
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 +8 -0
- package/dist/cjs/presets/universal.js +2 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/presets/universal.js +2 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/presets/universal.js +2 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 217.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c68bac53b0cdc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c68bac53b0cdc) -
|
|
8
|
+
Add max appearance support to breakout plugin in universal preset
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 217.5.1
|
|
4
12
|
|
|
5
13
|
### 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,
|
|
@@ -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,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "
|
|
2
|
+
export const version = "0.0.0-development";
|
|
@@ -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,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "
|
|
2
|
+
export var version = "0.0.0-development";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "217.5.
|
|
3
|
+
"version": "217.5.2",
|
|
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": {
|