@atlaskit/editor-plugin-table 9.0.1 → 9.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,13 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 9.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#101452](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101452)
8
+ [`e9f0bba750826`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e9f0bba750826) -
9
+ [ED-25901] Update the editor-plugin-table plugin type to have allowNestedTables as a prop
10
+
3
11
  ## 9.0.1
4
12
 
5
13
  ### Patch Changes
@@ -54,6 +54,7 @@ export interface PluginConfig {
54
54
  allowColumnSorting?: boolean;
55
55
  allowAddColumnWithCustomStep?: boolean;
56
56
  allowCollapse?: boolean;
57
+ allowNestedTables?: boolean;
57
58
  isHeaderRowRequired?: boolean;
58
59
  /**
59
60
  * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-6877 Internal documentation for deprecation (no external access)}
@@ -54,6 +54,7 @@ export interface PluginConfig {
54
54
  allowColumnSorting?: boolean;
55
55
  allowAddColumnWithCustomStep?: boolean;
56
56
  allowCollapse?: boolean;
57
+ allowNestedTables?: boolean;
57
58
  isHeaderRowRequired?: boolean;
58
59
  /**
59
60
  * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-6877 Internal documentation for deprecation (no external access)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "9.0.1",
3
+ "version": "9.1.0",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -51,7 +51,7 @@
51
51
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.0",
52
52
  "@atlaskit/primitives": "^13.3.0",
53
53
  "@atlaskit/theme": "^14.0.0",
54
- "@atlaskit/tmp-editor-statsig": "^2.32.0",
54
+ "@atlaskit/tmp-editor-statsig": "^2.33.0",
55
55
  "@atlaskit/toggle": "^14.0.0",
56
56
  "@atlaskit/tokens": "^2.5.0",
57
57
  "@atlaskit/tooltip": "^19.0.0",
@@ -91,6 +91,7 @@ export interface PluginConfig {
91
91
  allowColumnSorting?: boolean;
92
92
  allowAddColumnWithCustomStep?: boolean;
93
93
  allowCollapse?: boolean;
94
+ allowNestedTables?: boolean;
94
95
  isHeaderRowRequired?: boolean;
95
96
  /**
96
97
  * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-6877 Internal documentation for deprecation (no external access)}
@@ -234,7 +234,7 @@ export const handleMouseOver = (view: EditorView, mouseEvent: Event): boolean =>
234
234
  const nestedTable = findParentNodeOfTypeClosestToPos(state.doc.resolve(state.selection.from), [
235
235
  state.schema.nodes.table,
236
236
  ]);
237
-
237
+
238
238
  const parentTable = findParentNodeOfTypeClosestToPos(state.doc.resolve(nestedTable?.pos || 0), [
239
239
  state.schema.nodes.table,
240
240
  ]);