@atlaskit/editor-plugin-table 9.5.5 → 9.5.6

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-plugin-table
2
2
 
3
+ ## 9.5.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#115520](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/115520)
8
+ [`328b6f9fa248b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/328b6f9fa248b) -
9
+ [ux] ED-25438 Clean up usage of `platform_editor_use_nested_table_pm_nodes` when used for toggling
10
+ ProseMirror schema nodes to reduce risk of content loss in case of a Statsig outage. Schema
11
+ changes are non-reversible so we need to prevent it from being mistakenly disabled.
12
+
3
13
  ## 9.5.5
4
14
 
5
15
  ### Patch Changes
@@ -189,7 +189,7 @@ var tablesPlugin = function tablesPlugin(_ref) {
189
189
  var _pluginConfig = (0, _createPluginConfig.pluginConfig)(options === null || options === void 0 ? void 0 : options.tableOptions),
190
190
  allowColumnResizing = _pluginConfig.allowColumnResizing;
191
191
  // TODO: ED-25901 - We need to move this into a plugin config option so we don't accidentally enable nested nodes in Jira
192
- var isNestingSupported = (options === null || options === void 0 || (_options$tableOptions2 = options.tableOptions) === null || _options$tableOptions2 === void 0 ? void 0 : _options$tableOptions2.allowNestedTables) && (0, _platformFeatureFlags.fg)('platform_editor_use_nested_table_pm_nodes');
192
+ var isNestingSupported = Boolean(options === null || options === void 0 || (_options$tableOptions2 = options.tableOptions) === null || _options$tableOptions2 === void 0 ? void 0 : _options$tableOptions2.allowNestedTables);
193
193
  return isNestingSupported ? [{
194
194
  name: 'table',
195
195
  node: (0, _toDOM.tableNodeSpecWithFixedToDOM)({
@@ -178,7 +178,7 @@ const tablesPlugin = ({
178
178
  allowColumnResizing
179
179
  } = pluginConfig(options === null || options === void 0 ? void 0 : options.tableOptions);
180
180
  // TODO: ED-25901 - We need to move this into a plugin config option so we don't accidentally enable nested nodes in Jira
181
- const isNestingSupported = (options === null || options === void 0 ? void 0 : (_options$tableOptions2 = options.tableOptions) === null || _options$tableOptions2 === void 0 ? void 0 : _options$tableOptions2.allowNestedTables) && fg('platform_editor_use_nested_table_pm_nodes');
181
+ const isNestingSupported = Boolean(options === null || options === void 0 ? void 0 : (_options$tableOptions2 = options.tableOptions) === null || _options$tableOptions2 === void 0 ? void 0 : _options$tableOptions2.allowNestedTables);
182
182
  return isNestingSupported ? [{
183
183
  name: 'table',
184
184
  node: tableNodeSpecWithFixedToDOM({
@@ -183,7 +183,7 @@ var tablesPlugin = function tablesPlugin(_ref) {
183
183
  var _pluginConfig = pluginConfig(options === null || options === void 0 ? void 0 : options.tableOptions),
184
184
  allowColumnResizing = _pluginConfig.allowColumnResizing;
185
185
  // TODO: ED-25901 - We need to move this into a plugin config option so we don't accidentally enable nested nodes in Jira
186
- var isNestingSupported = (options === null || options === void 0 || (_options$tableOptions2 = options.tableOptions) === null || _options$tableOptions2 === void 0 ? void 0 : _options$tableOptions2.allowNestedTables) && fg('platform_editor_use_nested_table_pm_nodes');
186
+ var isNestingSupported = Boolean(options === null || options === void 0 || (_options$tableOptions2 = options.tableOptions) === null || _options$tableOptions2 === void 0 ? void 0 : _options$tableOptions2.allowNestedTables);
187
187
  return isNestingSupported ? [{
188
188
  name: 'table',
189
189
  node: tableNodeSpecWithFixedToDOM({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "9.5.5",
3
+ "version": "9.5.6",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -238,8 +238,7 @@ const tablesPlugin: TablePlugin = ({ config: options, api }) => {
238
238
  nodes() {
239
239
  const { allowColumnResizing } = pluginConfig(options?.tableOptions);
240
240
  // TODO: ED-25901 - We need to move this into a plugin config option so we don't accidentally enable nested nodes in Jira
241
- const isNestingSupported =
242
- options?.tableOptions?.allowNestedTables && fg('platform_editor_use_nested_table_pm_nodes');
241
+ const isNestingSupported = Boolean(options?.tableOptions?.allowNestedTables);
243
242
 
244
243
  return isNestingSupported
245
244
  ? [