@atlaskit/editor-core 215.11.1 → 215.12.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 CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 215.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`71fde95667d6f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/71fde95667d6f) -
8
+ [EDITOR-2426] Fix more types for Editor Appearance so they work with Confluence
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 215.11.2
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 215.11.1
4
21
 
5
22
  ### Patch Changes
@@ -265,7 +265,10 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
265
265
  // for breakout resizing, there's no need to restrict the width of codeblocks as they're always wrapped in a breakout mark
266
266
  (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_breakout_resizing_width_changes') ? editorContentAreaContainerStyleExcludeCodeBlockNew : editorContentAreaContainerStyleNew, (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') && editorContentAreaContainerNestedDndStyle, !(0, _platformFeatureFlags.fg)('platform_editor_controls_no_toolbar_space') && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && contentAreaReducedHeaderSpace, !(0, _platformFeatureFlags.fg)('platform_editor_controls_no_toolbar_space') && props.isEditorToolbarHidden && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && contentAreaReservedPrimaryToolbarSpace],
267
267
  style: {
268
- '--ak-editor-content-area-max-width': !fullWidthMode ? Boolean(maxWidthMode) && (0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true) ? "".concat(akEditorUltraWideLayoutWidth + getTotalPadding(), "px") : "".concat(theme.layoutMaxWidth + getTotalPadding(), "px") : "".concat(akEditorFullWidthLayoutWidth + getTotalPadding(), "px")
268
+ '--ak-editor-content-area-max-width': !fullWidthMode ? Boolean(maxWidthMode) && (0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true)
269
+ // @ts-ignore
270
+ ? "".concat(akEditorUltraWideLayoutWidth + getTotalPadding(), "px") // @ts-ignore
271
+ : "".concat(theme.layoutMaxWidth + getTotalPadding(), "px") : "".concat(akEditorFullWidthLayoutWidth + getTotalPadding(), "px")
269
272
  }
270
273
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
271
274
  ,
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "215.11.0";
8
+ var version = exports.version = "215.11.2";
@@ -257,7 +257,11 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
257
257
  // for breakout resizing, there's no need to restrict the width of codeblocks as they're always wrapped in a breakout mark
258
258
  expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && fg('platform_editor_breakout_resizing_width_changes') ? editorContentAreaContainerStyleExcludeCodeBlockNew : editorContentAreaContainerStyleNew, fg('platform_editor_nested_dnd_styles_changes') && editorContentAreaContainerNestedDndStyle, !fg('platform_editor_controls_no_toolbar_space') && editorExperiment('platform_editor_controls', 'variant1') && contentAreaReducedHeaderSpace, !fg('platform_editor_controls_no_toolbar_space') && props.isEditorToolbarHidden && editorExperiment('platform_editor_controls', 'variant1') && contentAreaReservedPrimaryToolbarSpace],
259
259
  style: {
260
- '--ak-editor-content-area-max-width': !fullWidthMode ? Boolean(maxWidthMode) && expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) ? `${akEditorUltraWideLayoutWidth + getTotalPadding()}px` : `${theme.layoutMaxWidth + getTotalPadding()}px` : `${akEditorFullWidthLayoutWidth + getTotalPadding()}px`
260
+ '--ak-editor-content-area-max-width': !fullWidthMode ? Boolean(maxWidthMode) && expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true)
261
+ // @ts-ignore
262
+ ? `${akEditorUltraWideLayoutWidth + getTotalPadding()}px`
263
+ // @ts-ignore
264
+ : `${theme.layoutMaxWidth + getTotalPadding()}px` : `${akEditorFullWidthLayoutWidth + getTotalPadding()}px`
261
265
  }
262
266
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
263
267
  ,
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "215.11.0";
2
+ export const version = "215.11.2";
@@ -255,7 +255,10 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
255
255
  // for breakout resizing, there's no need to restrict the width of codeblocks as they're always wrapped in a breakout mark
256
256
  expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && fg('platform_editor_breakout_resizing_width_changes') ? editorContentAreaContainerStyleExcludeCodeBlockNew : editorContentAreaContainerStyleNew, fg('platform_editor_nested_dnd_styles_changes') && editorContentAreaContainerNestedDndStyle, !fg('platform_editor_controls_no_toolbar_space') && editorExperiment('platform_editor_controls', 'variant1') && contentAreaReducedHeaderSpace, !fg('platform_editor_controls_no_toolbar_space') && props.isEditorToolbarHidden && editorExperiment('platform_editor_controls', 'variant1') && contentAreaReservedPrimaryToolbarSpace],
257
257
  style: {
258
- '--ak-editor-content-area-max-width': !fullWidthMode ? Boolean(maxWidthMode) && expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) ? "".concat(akEditorUltraWideLayoutWidth + getTotalPadding(), "px") : "".concat(theme.layoutMaxWidth + getTotalPadding(), "px") : "".concat(akEditorFullWidthLayoutWidth + getTotalPadding(), "px")
258
+ '--ak-editor-content-area-max-width': !fullWidthMode ? Boolean(maxWidthMode) && expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true)
259
+ // @ts-ignore
260
+ ? "".concat(akEditorUltraWideLayoutWidth + getTotalPadding(), "px") // @ts-ignore
261
+ : "".concat(theme.layoutMaxWidth + getTotalPadding(), "px") : "".concat(akEditorFullWidthLayoutWidth + getTotalPadding(), "px")
259
262
  }
260
263
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
261
264
  ,
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "215.11.0";
2
+ export var version = "215.11.2";
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import type EditorActions from '../actions';
3
3
  import { type EditorNextProps } from '../types/editor-props';
4
4
  export type FullPageEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'disabled' | 'mentionProvider' | 'performanceTracking' | 'contextIdentifierProvider' | 'searchProvider' | 'activityProvider' | 'annotationProviders' | 'collabEditProvider' | 'collabEdit' | 'contentMode' | 'taskDecisionProvider' | 'extensionProviders' | 'shouldFocus' | 'quickInsert' | 'secondaryToolbarComponents' | 'featureFlags' | 'primaryToolbarComponents' | 'contextPanel' | 'contentComponents' | 'primaryToolbarIconBefore' | 'sanitizePrivateContent' | '__livePage'> & {
5
- appearance: 'full-page' | 'full-width';
5
+ appearance: 'full-page' | 'full-width' | 'max';
6
6
  onChange?: () => void;
7
7
  onEditorReady?: (editorActions: EditorActions) => void;
8
8
  };
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import type EditorActions from '../actions';
3
3
  import { type EditorNextProps } from '../types/editor-props';
4
4
  export type FullPageEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'disabled' | 'mentionProvider' | 'performanceTracking' | 'contextIdentifierProvider' | 'searchProvider' | 'activityProvider' | 'annotationProviders' | 'collabEditProvider' | 'collabEdit' | 'contentMode' | 'taskDecisionProvider' | 'extensionProviders' | 'shouldFocus' | 'quickInsert' | 'secondaryToolbarComponents' | 'featureFlags' | 'primaryToolbarComponents' | 'contextPanel' | 'contentComponents' | 'primaryToolbarIconBefore' | 'sanitizePrivateContent' | '__livePage'> & {
5
- appearance: 'full-page' | 'full-width';
5
+ appearance: 'full-page' | 'full-width' | 'max';
6
6
  onChange?: () => void;
7
7
  onEditorReady?: (editorActions: EditorActions) => void;
8
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "215.11.1",
3
+ "version": "215.12.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -40,7 +40,7 @@
40
40
  "dependencies": {
41
41
  "@atlaskit/activity-provider": "^2.5.0",
42
42
  "@atlaskit/adf-schema": "^51.3.2",
43
- "@atlaskit/afm-i18n-platform-editor-editor-core": "2.7.0",
43
+ "@atlaskit/afm-i18n-platform-editor-editor-core": "2.10.0",
44
44
  "@atlaskit/analytics-namespaced-context": "^7.1.0",
45
45
  "@atlaskit/analytics-next": "^11.1.0",
46
46
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
@@ -56,7 +56,7 @@
56
56
  "@atlaskit/editor-toolbar": "^0.17.0",
57
57
  "@atlaskit/editor-toolbar-model": "^0.2.0",
58
58
  "@atlaskit/emoji": "^69.7.0",
59
- "@atlaskit/icon": "^28.5.0",
59
+ "@atlaskit/icon": "^29.0.0",
60
60
  "@atlaskit/link": "^3.2.0",
61
61
  "@atlaskit/media-card": "^79.6.0",
62
62
  "@atlaskit/mention": "^24.4.0",