@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 +10 -0
- package/dist/cjs/tablePlugin.js +1 -1
- package/dist/es2019/tablePlugin.js +1 -1
- package/dist/esm/tablePlugin.js +1 -1
- package/package.json +1 -1
- package/src/tablePlugin.tsx +1 -2
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
|
package/dist/cjs/tablePlugin.js
CHANGED
|
@@ -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)
|
|
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)
|
|
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({
|
package/dist/esm/tablePlugin.js
CHANGED
|
@@ -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)
|
|
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
package/src/tablePlugin.tsx
CHANGED
|
@@ -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
|
? [
|