@atlaskit/editor-core 202.0.0 → 202.1.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,20 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 202.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#166887](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/166887)
8
+ [`3e94479084b61`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3e94479084b61) -
9
+ Remove overrides for allowTable properties, allowTableResizing and allowTableAlignment, and allow
10
+ consumers to pass through props for these features
11
+
12
+ ## 202.0.1
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 202.0.0
4
19
 
5
20
  ### Major Changes
@@ -108,11 +108,6 @@ function createUniversalPresetInternal(_ref) {
108
108
  }
109
109
  return false;
110
110
  };
111
-
112
- // Extend table feature set for Jira - under support_table_in_comment_jira experiment
113
- var extendedTableFeaturesForComment = isComment && (0, _experiments.editorExperiment)('support_table_in_comment_jira', true, {
114
- exposure: true
115
- });
116
111
  var finalPreset = defaultPreset.add(_dataConsumer.dataConsumerPlugin).add(_accessibilityUtils.accessibilityUtilsPlugin).add(_contentInsertion.contentInsertionPlugin).add(_batchAttributeUpdates.batchAttributeUpdatesPlugin).maybeAdd([_breakout.breakoutPlugin, {
117
112
  allowBreakoutButton: appearance === 'full-page'
118
113
  }], 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, {
@@ -150,16 +145,17 @@ function createUniversalPresetInternal(_ref) {
150
145
  emojiProvider: props.emojiProvider,
151
146
  emojiNodeDataProvider: initialPluginConfiguration === null || initialPluginConfiguration === void 0 || (_initialPluginConfigu = initialPluginConfiguration.emoji) === null || _initialPluginConfigu === void 0 ? void 0 : _initialPluginConfigu.emojiNodeDataProvider
152
147
  }], Boolean(props.emojiProvider)).maybeAdd([_table.tablesPlugin, {
153
- tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : _objectSpread({
154
- allowTableResizing: extendedTableFeaturesForComment,
155
- allowTableAlignment: extendedTableFeaturesForComment
156
- }, props.allowTables),
148
+ tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
157
149
  dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && (0, _experiments.editorExperiment)('support_table_in_comment', true, {
158
150
  exposure: true
159
- })) || extendedTableFeaturesForComment,
151
+ })) || isComment && (0, _experiments.editorExperiment)('support_table_in_comment_jira', true, {
152
+ exposure: true
153
+ }),
160
154
  isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && (isFullPage || isComment && (0, _experiments.editorExperiment)('support_table_in_comment', true, {
161
155
  exposure: true
162
- })) || extendedTableFeaturesForComment,
156
+ })) || isComment && (0, _experiments.editorExperiment)('support_table_in_comment_jira', true, {
157
+ exposure: true
158
+ }),
163
159
  allowContextualMenu: true,
164
160
  fullWidthEnabled: appearance === 'full-width',
165
161
  wasFullWidthEnabled: prevAppearance && prevAppearance === 'full-width',
@@ -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 = "202.0.0";
8
+ var version = exports.version = "202.1.0";
@@ -98,11 +98,6 @@ export default function createUniversalPresetInternal({
98
98
  }
99
99
  return false;
100
100
  };
101
-
102
- // Extend table feature set for Jira - under support_table_in_comment_jira experiment
103
- const extendedTableFeaturesForComment = isComment && editorExperiment('support_table_in_comment_jira', true, {
104
- exposure: true
105
- });
106
101
  const finalPreset = defaultPreset.add(dataConsumerPlugin).add(accessibilityUtilsPlugin).add(contentInsertionPlugin).add(batchAttributeUpdatesPlugin).maybeAdd([breakoutPlugin, {
107
102
  allowBreakoutButton: appearance === 'full-page'
108
103
  }], 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, {
@@ -142,18 +137,17 @@ export default function createUniversalPresetInternal({
142
137
  emojiProvider: props.emojiProvider,
143
138
  emojiNodeDataProvider: initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : (_initialPluginConfigu = initialPluginConfiguration.emoji) === null || _initialPluginConfigu === void 0 ? void 0 : _initialPluginConfigu.emojiNodeDataProvider
144
139
  }], Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
145
- tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : {
146
- allowTableResizing: extendedTableFeaturesForComment,
147
- allowTableAlignment: extendedTableFeaturesForComment,
148
- // allow for consumers to pass through overrides for allowTableResizing and allowTableAlignment
149
- ...props.allowTables
150
- },
140
+ tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
151
141
  dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && editorExperiment('support_table_in_comment', true, {
152
142
  exposure: true
153
- })) || extendedTableFeaturesForComment,
143
+ })) || isComment && editorExperiment('support_table_in_comment_jira', true, {
144
+ exposure: true
145
+ }),
154
146
  isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && (isFullPage || isComment && editorExperiment('support_table_in_comment', true, {
155
147
  exposure: true
156
- })) || extendedTableFeaturesForComment,
148
+ })) || isComment && editorExperiment('support_table_in_comment_jira', true, {
149
+ exposure: true
150
+ }),
157
151
  allowContextualMenu: true,
158
152
  fullWidthEnabled: appearance === 'full-width',
159
153
  wasFullWidthEnabled: prevAppearance && prevAppearance === 'full-width',
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "202.0.0";
2
+ export const version = "202.1.0";
@@ -101,11 +101,6 @@ export default function createUniversalPresetInternal(_ref) {
101
101
  }
102
102
  return false;
103
103
  };
104
-
105
- // Extend table feature set for Jira - under support_table_in_comment_jira experiment
106
- var extendedTableFeaturesForComment = isComment && editorExperiment('support_table_in_comment_jira', true, {
107
- exposure: true
108
- });
109
104
  var finalPreset = defaultPreset.add(dataConsumerPlugin).add(accessibilityUtilsPlugin).add(contentInsertionPlugin).add(batchAttributeUpdatesPlugin).maybeAdd([breakoutPlugin, {
110
105
  allowBreakoutButton: appearance === 'full-page'
111
106
  }], 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, {
@@ -143,16 +138,17 @@ export default function createUniversalPresetInternal(_ref) {
143
138
  emojiProvider: props.emojiProvider,
144
139
  emojiNodeDataProvider: initialPluginConfiguration === null || initialPluginConfiguration === void 0 || (_initialPluginConfigu = initialPluginConfiguration.emoji) === null || _initialPluginConfigu === void 0 ? void 0 : _initialPluginConfigu.emojiNodeDataProvider
145
140
  }], Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
146
- tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : _objectSpread({
147
- allowTableResizing: extendedTableFeaturesForComment,
148
- allowTableAlignment: extendedTableFeaturesForComment
149
- }, props.allowTables),
141
+ tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
150
142
  dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && editorExperiment('support_table_in_comment', true, {
151
143
  exposure: true
152
- })) || extendedTableFeaturesForComment,
144
+ })) || isComment && editorExperiment('support_table_in_comment_jira', true, {
145
+ exposure: true
146
+ }),
153
147
  isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && (isFullPage || isComment && editorExperiment('support_table_in_comment', true, {
154
148
  exposure: true
155
- })) || extendedTableFeaturesForComment,
149
+ })) || isComment && editorExperiment('support_table_in_comment_jira', true, {
150
+ exposure: true
151
+ }),
156
152
  allowContextualMenu: true,
157
153
  fullWidthEnabled: appearance === 'full-width',
158
154
  wasFullWidthEnabled: prevAppearance && prevAppearance === 'full-width',
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "202.0.0";
2
+ export var version = "202.1.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "202.0.0",
3
+ "version": "202.1.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -37,26 +37,26 @@
37
37
  "runReact18": true
38
38
  },
39
39
  "dependencies": {
40
- "@atlaskit/activity-provider": "^2.4.0",
40
+ "@atlaskit/activity-provider": "^2.5.0",
41
41
  "@atlaskit/adf-schema": "^44.2.0",
42
42
  "@atlaskit/analytics-namespaced-context": "^6.12.0",
43
43
  "@atlaskit/analytics-next": "^10.1.0",
44
44
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
45
45
  "@atlaskit/button": "^20.3.0",
46
- "@atlaskit/editor-common": "^94.24.0",
46
+ "@atlaskit/editor-common": "^95.1.0",
47
47
  "@atlaskit/editor-json-transformer": "^8.21.0",
48
- "@atlaskit/editor-plugin-quick-insert": "1.7.0",
48
+ "@atlaskit/editor-plugin-quick-insert": "1.7.1",
49
49
  "@atlaskit/editor-plugins": "^5.6.0",
50
50
  "@atlaskit/editor-prosemirror": "6.0.0",
51
51
  "@atlaskit/editor-shared-styles": "^3.2.0",
52
52
  "@atlaskit/emoji": "^67.11.0",
53
- "@atlaskit/icon": "^22.24.0",
53
+ "@atlaskit/icon": "^22.25.0",
54
54
  "@atlaskit/media-card": "^78.14.0",
55
55
  "@atlaskit/mention": "^23.4.0",
56
56
  "@atlaskit/platform-feature-flags": "^0.3.0",
57
57
  "@atlaskit/task-decision": "^17.11.0",
58
58
  "@atlaskit/tmp-editor-statsig": "^2.19.0",
59
- "@atlaskit/tokens": "^2.2.0",
59
+ "@atlaskit/tokens": "^2.3.0",
60
60
  "@atlaskit/tooltip": "^18.9.0",
61
61
  "@atlaskit/width-detector": "^4.3.0",
62
62
  "@babel/runtime": "^7.0.0",
@@ -81,10 +81,10 @@
81
81
  "devDependencies": {
82
82
  "@af/editor-libra": "*",
83
83
  "@af/visual-regression": "*",
84
- "@atlaskit/adf-utils": "^19.12.0",
84
+ "@atlaskit/adf-utils": "^19.13.0",
85
85
  "@atlaskit/analytics-listeners": "^8.11.0",
86
- "@atlaskit/collab-provider": "9.46.0",
87
- "@atlaskit/editor-plugin-annotation": "1.24.0",
86
+ "@atlaskit/collab-provider": "10.0.0",
87
+ "@atlaskit/editor-plugin-annotation": "1.24.1",
88
88
  "@atlaskit/editor-plugin-card": "^4.4.0",
89
89
  "@atlaskit/editor-plugin-list": "^3.9.0",
90
90
  "@atlaskit/editor-plugin-paste": "^2.0.0",
@@ -103,7 +103,7 @@
103
103
  "@atlaskit/visual-regression": "*",
104
104
  "@atlassian/adf-schema-json": "^1.22.0",
105
105
  "@atlassian/feature-flags-test-utils": "*",
106
- "@atlassian/search-provider": "2.4.168",
106
+ "@atlassian/search-provider": "2.4.169",
107
107
  "@emotion/jest": "^11.8.0",
108
108
  "@storybook/addon-knobs": "^6.4.0",
109
109
  "@testing-library/react": "^12.1.5",