@atlaskit/editor-core 195.0.2 → 195.0.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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 195.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#124890](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/124890)
8
+ [`04951dd1969d5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/04951dd1969d5) -
9
+ [ux] ED-24278: Turned on table dnd in chromeless editor
10
+ - Updated dependencies
11
+
3
12
  ## 195.0.2
4
13
 
5
14
  ### Patch Changes
@@ -130,11 +130,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
130
130
  }], Boolean(props.mentionProvider)).maybeAdd(_emoji.emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([_table.tablesPlugin, {
131
131
  tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
132
132
  tableResizingEnabled: isFullPage || isComment && (0, _platformFeatureFlags.fg)('platform_editor_table_support_in_comment'),
133
- dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && isFullPage ||
134
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning
135
- isComment && (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) &&
136
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
137
- (0, _platformFeatureFlags.fg)('platform_editor_table_support_in_comment'),
133
+ dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && (0, _platformFeatureFlags.fg)('platform_editor_table_support_in_comment')),
138
134
  isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && isFullPage,
139
135
  allowContextualMenu: !isMobile,
140
136
  fullWidthEnabled: appearance === 'full-width',
@@ -142,7 +138,8 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
142
138
  getEditorFeatureFlags: getEditorFeatureFlags,
143
139
  isTableAlignmentEnabled: (0, _platformFeatureFlags.fg)('platform.editor.table.allow-table-alignment') && (isFullPage || isComment && (0, _platformFeatureFlags.fg)('platform_editor_table_support_in_comment')),
144
140
  isNewColumnResizingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableNewColumnResizing) && isFullPage,
145
- isCommentEditor: isComment
141
+ isCommentEditor: isComment,
142
+ isChromelessEditor: isChromeless
146
143
  }], Boolean(props.allowTables)).maybeAdd([_tasksAndDecisions.tasksAndDecisionsPlugin, {
147
144
  allowNestedTasks: props.allowNestedTasks,
148
145
  consumeTabs: isFullPage,
@@ -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 = "195.0.2";
8
+ var version = exports.version = "195.0.3";
@@ -119,11 +119,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
119
119
  }], Boolean(props.mentionProvider)).maybeAdd(emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
120
120
  tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
121
121
  tableResizingEnabled: isFullPage || isComment && fg('platform_editor_table_support_in_comment'),
122
- dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && isFullPage ||
123
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning
124
- isComment && (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) &&
125
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
126
- fg('platform_editor_table_support_in_comment'),
122
+ dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && fg('platform_editor_table_support_in_comment')),
127
123
  isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && isFullPage,
128
124
  allowContextualMenu: !isMobile,
129
125
  fullWidthEnabled: appearance === 'full-width',
@@ -131,7 +127,8 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
131
127
  getEditorFeatureFlags,
132
128
  isTableAlignmentEnabled: fg('platform.editor.table.allow-table-alignment') && (isFullPage || isComment && fg('platform_editor_table_support_in_comment')),
133
129
  isNewColumnResizingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableNewColumnResizing) && isFullPage,
134
- isCommentEditor: isComment
130
+ isCommentEditor: isComment,
131
+ isChromelessEditor: isChromeless
135
132
  }], Boolean(props.allowTables)).maybeAdd([tasksAndDecisionsPlugin, {
136
133
  allowNestedTasks: props.allowNestedTasks,
137
134
  consumeTabs: isFullPage,
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "195.0.2";
2
+ export const version = "195.0.3";
@@ -122,11 +122,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
122
122
  }], Boolean(props.mentionProvider)).maybeAdd(emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
123
123
  tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
124
124
  tableResizingEnabled: isFullPage || isComment && fg('platform_editor_table_support_in_comment'),
125
- dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && isFullPage ||
126
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning
127
- isComment && (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) &&
128
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
129
- fg('platform_editor_table_support_in_comment'),
125
+ dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && fg('platform_editor_table_support_in_comment')),
130
126
  isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && isFullPage,
131
127
  allowContextualMenu: !isMobile,
132
128
  fullWidthEnabled: appearance === 'full-width',
@@ -134,7 +130,8 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
134
130
  getEditorFeatureFlags: getEditorFeatureFlags,
135
131
  isTableAlignmentEnabled: fg('platform.editor.table.allow-table-alignment') && (isFullPage || isComment && fg('platform_editor_table_support_in_comment')),
136
132
  isNewColumnResizingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableNewColumnResizing) && isFullPage,
137
- isCommentEditor: isComment
133
+ isCommentEditor: isComment,
134
+ isChromelessEditor: isChromeless
138
135
  }], Boolean(props.allowTables)).maybeAdd([tasksAndDecisionsPlugin, {
139
136
  allowNestedTasks: props.allowNestedTasks,
140
137
  consumeTabs: isFullPage,
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "195.0.2";
2
+ export var version = "195.0.3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "195.0.2",
3
+ "version": "195.0.3",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -50,7 +50,7 @@
50
50
  "@atlaskit/editor-prosemirror": "5.0.1",
51
51
  "@atlaskit/editor-shared-styles": "^2.13.0",
52
52
  "@atlaskit/emoji": "^67.6.0",
53
- "@atlaskit/icon": "^22.7.0",
53
+ "@atlaskit/icon": "^22.8.0",
54
54
  "@atlaskit/media-card": "^78.0.0",
55
55
  "@atlaskit/mention": "^23.2.0",
56
56
  "@atlaskit/platform-feature-flags": "^0.3.0",