@atlaskit/editor-core 229.1.4 → 229.1.5

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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 229.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3f8ea6c51b718`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3f8ea6c51b718) -
8
+ Remove the rolled-out `editor_tinymce_full_width_mode` and
9
+ `confluence_max_width_content_appearance` experiments and make max-width content behavior
10
+ permanent.
11
+ - Updated dependencies
12
+
3
13
  ## 229.1.4
4
14
 
5
15
  ### Patch Changes
@@ -58,7 +58,6 @@ var _textColor = require("@atlaskit/editor-plugins/text-color");
58
58
  var _toolbarListsIndentation = require("@atlaskit/editor-plugins/toolbar-lists-indentation");
59
59
  var _ufo = require("@atlaskit/editor-plugins/ufo");
60
60
  var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
61
- var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
62
61
  var _isFullPage = require("../utils/is-full-page");
63
62
  var _versionWrapper = require("../version-wrapper");
64
63
  var _default = require("./default");
@@ -127,7 +126,7 @@ function createUniversalPresetInternal(_ref) {
127
126
  })], Boolean((_initialPluginConfigu0 = initialPluginConfiguration === null || initialPluginConfiguration === void 0 || (_initialPluginConfigu1 = initialPluginConfiguration.blockControlsPlugin) === null || _initialPluginConfigu1 === void 0 ? void 0 : _initialPluginConfigu1.enabled) !== null && _initialPluginConfigu0 !== void 0 ? _initialPluginConfigu0 : false)).maybeAdd([_breakout.breakoutPlugin, {
128
127
  allowBreakoutButton: appearance === 'full-page',
129
128
  appearance: appearance
130
- }], 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))))).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, {
129
+ }], Boolean(props.allowBreakout && (isFullPage || appearance === 'max'))).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, {
131
130
  allowInsertion: isExpandInsertionEnabled(props),
132
131
  useLongPressSelection: false,
133
132
  appearance: appearance,
@@ -385,7 +385,7 @@ var EditorContentContainerCompiled = exports.EditorContentContainerCompiled = /*
385
385
  useStandardNodeWidth = props.useStandardNodeWidth;
386
386
  var _useThemeObserver = (0, _useThemeObserver2.useThemeObserver)(),
387
387
  colorMode = _useThemeObserver.colorMode;
388
- var isFullPage = appearance === 'full-page' || appearance === 'full-width' || ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('editor_tinymce_full_width_mode', 'isEnabled', true) || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('confluence_max_width_content_appearance', 'isEnabled', true)) && appearance === 'max';
388
+ var isFullPage = appearance === 'full-page' || appearance === 'full-width' || appearance === 'max';
389
389
  var isComment = appearance === 'comment';
390
390
  var isChromeless = appearance === 'chromeless';
391
391
 
@@ -306,7 +306,7 @@ var EditorContentContainerEmotion = exports.EditorContentContainerEmotion = /*#_
306
306
  var theme = (0, _react2.useTheme)();
307
307
  var _useThemeObserver = (0, _useThemeObserver2.useThemeObserver)(),
308
308
  colorMode = _useThemeObserver.colorMode;
309
- var isFullPage = appearance === 'full-page' || appearance === 'full-width' || ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('editor_tinymce_full_width_mode', 'isEnabled', true) || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('confluence_max_width_content_appearance', 'isEnabled', true)) && appearance === 'max';
309
+ var isFullPage = appearance === 'full-page' || appearance === 'full-width' || appearance === 'max';
310
310
  var isComment = appearance === 'comment';
311
311
  var isChromeless = appearance === 'chromeless';
312
312
 
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
8
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
9
- var version = exports.version = "229.1.3";
9
+ var version = exports.version = "229.1.4";
@@ -48,7 +48,6 @@ import { textColorPlugin } from '@atlaskit/editor-plugins/text-color';
48
48
  import { toolbarListsIndentationPlugin } from '@atlaskit/editor-plugins/toolbar-lists-indentation';
49
49
  import { ufoPlugin } from '@atlaskit/editor-plugins/ufo';
50
50
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
51
- import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
52
51
  import { isFullPage as fullPageCheck } from '../utils/is-full-page';
53
52
  import { version as coreVersion } from '../version-wrapper';
54
53
  import { createDefaultPreset } from './default';
@@ -124,7 +123,7 @@ export default function createUniversalPresetInternal({
124
123
  }], Boolean((_initialPluginConfigu0 = initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : (_initialPluginConfigu1 = initialPluginConfiguration.blockControlsPlugin) === null || _initialPluginConfigu1 === void 0 ? void 0 : _initialPluginConfigu1.enabled) !== null && _initialPluginConfigu0 !== void 0 ? _initialPluginConfigu0 : false)).maybeAdd([breakoutPlugin, {
125
124
  allowBreakoutButton: appearance === 'full-page',
126
125
  appearance: appearance
127
- }], Boolean(props.allowBreakout && (isFullPage || appearance === 'max' && (expValEqualsNoExposure('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEqualsNoExposure('confluence_max_width_content_appearance', 'isEnabled', true))))).maybeAdd(alignmentPlugin, Boolean(props.allowTextAlignment)).maybeAdd([textColorPlugin, props.allowTextColor], Boolean(props.allowTextColor)).add(listPlugin).maybeAdd(rulePlugin, Boolean(props.allowRule)).maybeAdd([expandPlugin, {
126
+ }], Boolean(props.allowBreakout && (isFullPage || appearance === 'max'))).maybeAdd(alignmentPlugin, Boolean(props.allowTextAlignment)).maybeAdd([textColorPlugin, props.allowTextColor], Boolean(props.allowTextColor)).add(listPlugin).maybeAdd(rulePlugin, Boolean(props.allowRule)).maybeAdd([expandPlugin, {
128
127
  allowInsertion: isExpandInsertionEnabled(props),
129
128
  useLongPressSelection: false,
130
129
  appearance: appearance,
@@ -439,7 +439,7 @@ export const EditorContentContainerCompiled = /*#__PURE__*/React.forwardRef((pro
439
439
  const {
440
440
  colorMode
441
441
  } = useThemeObserver();
442
- const isFullPage = appearance === 'full-page' || appearance === 'full-width' || (expValEqualsNoExposure('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEqualsNoExposure('confluence_max_width_content_appearance', 'isEnabled', true)) && appearance === 'max';
442
+ const isFullPage = appearance === 'full-page' || appearance === 'full-width' || appearance === 'max';
443
443
  const isComment = appearance === 'comment';
444
444
  const isChromeless = appearance === 'chromeless';
445
445
 
@@ -306,7 +306,7 @@ export const EditorContentContainerEmotion = /*#__PURE__*/React.forwardRef((prop
306
306
  const {
307
307
  colorMode
308
308
  } = useThemeObserver();
309
- const isFullPage = appearance === 'full-page' || appearance === 'full-width' || (expValEqualsNoExposure('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEqualsNoExposure('confluence_max_width_content_appearance', 'isEnabled', true)) && appearance === 'max';
309
+ const isFullPage = appearance === 'full-page' || appearance === 'full-width' || appearance === 'max';
310
310
  const isComment = appearance === 'comment';
311
311
  const isChromeless = appearance === 'chromeless';
312
312
 
@@ -1,3 +1,3 @@
1
1
  export const name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export const version = "229.1.3";
3
+ export const version = "229.1.4";
@@ -52,7 +52,6 @@ import { textColorPlugin } from '@atlaskit/editor-plugins/text-color';
52
52
  import { toolbarListsIndentationPlugin } from '@atlaskit/editor-plugins/toolbar-lists-indentation';
53
53
  import { ufoPlugin } from '@atlaskit/editor-plugins/ufo';
54
54
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
55
- import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
56
55
  import { isFullPage as fullPageCheck } from '../utils/is-full-page';
57
56
  import { version as coreVersion } from '../version-wrapper';
58
57
  import { createDefaultPreset } from './default';
@@ -120,7 +119,7 @@ export default function createUniversalPresetInternal(_ref) {
120
119
  })], Boolean((_initialPluginConfigu0 = initialPluginConfiguration === null || initialPluginConfiguration === void 0 || (_initialPluginConfigu1 = initialPluginConfiguration.blockControlsPlugin) === null || _initialPluginConfigu1 === void 0 ? void 0 : _initialPluginConfigu1.enabled) !== null && _initialPluginConfigu0 !== void 0 ? _initialPluginConfigu0 : false)).maybeAdd([breakoutPlugin, {
121
120
  allowBreakoutButton: appearance === 'full-page',
122
121
  appearance: appearance
123
- }], Boolean(props.allowBreakout && (isFullPage || appearance === 'max' && (expValEqualsNoExposure('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEqualsNoExposure('confluence_max_width_content_appearance', 'isEnabled', true))))).maybeAdd(alignmentPlugin, Boolean(props.allowTextAlignment)).maybeAdd([textColorPlugin, props.allowTextColor], Boolean(props.allowTextColor)).add(listPlugin).maybeAdd(rulePlugin, Boolean(props.allowRule)).maybeAdd([expandPlugin, {
122
+ }], Boolean(props.allowBreakout && (isFullPage || appearance === 'max'))).maybeAdd(alignmentPlugin, Boolean(props.allowTextAlignment)).maybeAdd([textColorPlugin, props.allowTextColor], Boolean(props.allowTextColor)).add(listPlugin).maybeAdd(rulePlugin, Boolean(props.allowRule)).maybeAdd([expandPlugin, {
124
123
  allowInsertion: isExpandInsertionEnabled(props),
125
124
  useLongPressSelection: false,
126
125
  appearance: appearance,
@@ -384,7 +384,7 @@ export var EditorContentContainerCompiled = /*#__PURE__*/React.forwardRef(functi
384
384
  useStandardNodeWidth = props.useStandardNodeWidth;
385
385
  var _useThemeObserver = useThemeObserver(),
386
386
  colorMode = _useThemeObserver.colorMode;
387
- var isFullPage = appearance === 'full-page' || appearance === 'full-width' || (expValEqualsNoExposure('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEqualsNoExposure('confluence_max_width_content_appearance', 'isEnabled', true)) && appearance === 'max';
387
+ var isFullPage = appearance === 'full-page' || appearance === 'full-width' || appearance === 'max';
388
388
  var isComment = appearance === 'comment';
389
389
  var isChromeless = appearance === 'chromeless';
390
390
 
@@ -304,7 +304,7 @@ export var EditorContentContainerEmotion = /*#__PURE__*/React.forwardRef(functio
304
304
  var theme = useTheme();
305
305
  var _useThemeObserver = useThemeObserver(),
306
306
  colorMode = _useThemeObserver.colorMode;
307
- var isFullPage = appearance === 'full-page' || appearance === 'full-width' || (expValEqualsNoExposure('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEqualsNoExposure('confluence_max_width_content_appearance', 'isEnabled', true)) && appearance === 'max';
307
+ var isFullPage = appearance === 'full-page' || appearance === 'full-width' || appearance === 'max';
308
308
  var isComment = appearance === 'comment';
309
309
  var isChromeless = appearance === 'chromeless';
310
310
 
@@ -1,3 +1,3 @@
1
1
  export var name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export var version = "229.1.3";
3
+ export var version = "229.1.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "229.1.4",
3
+ "version": "229.1.5",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -77,7 +77,7 @@
77
77
  "@atlaskit/react-compiler-gating": "^0.2.0",
78
78
  "@atlaskit/react-ufo": "^7.13.0",
79
79
  "@atlaskit/task-decision": "^21.10.0",
80
- "@atlaskit/tmp-editor-statsig": "^201.0.0",
80
+ "@atlaskit/tmp-editor-statsig": "^202.0.0",
81
81
  "@atlaskit/tokens": "^18.2.0",
82
82
  "@atlaskit/tooltip": "^24.3.0",
83
83
  "@atlaskit/width-detector": "^7.2.0",
@@ -96,7 +96,7 @@
96
96
  "uuid": "^11.1.1"
97
97
  },
98
98
  "peerDependencies": {
99
- "@atlaskit/editor-common": "^123.4.0",
99
+ "@atlaskit/editor-common": "^123.5.0",
100
100
  "@atlaskit/link-provider": "^5.7.0",
101
101
  "@atlaskit/media-core": "^38.2.0",
102
102
  "react": "^18.2.0 || ^19.2.0",