@atlaskit/editor-plugin-table 1.2.7 → 1.3.1

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.
Files changed (65) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/commands/package.json +2 -2
  3. package/dist/cjs/version.json +1 -1
  4. package/dist/es2019/version.json +1 -1
  5. package/dist/esm/version.json +1 -1
  6. package/dist/types/i18n/cs.d.ts +6 -6
  7. package/dist/types/i18n/da.d.ts +6 -6
  8. package/dist/types/i18n/de.d.ts +6 -6
  9. package/dist/types/i18n/en.d.ts +6 -6
  10. package/dist/types/i18n/en_GB.d.ts +6 -6
  11. package/dist/types/i18n/es.d.ts +6 -6
  12. package/dist/types/i18n/fi.d.ts +6 -6
  13. package/dist/types/i18n/fr.d.ts +6 -6
  14. package/dist/types/i18n/hu.d.ts +6 -6
  15. package/dist/types/i18n/it.d.ts +6 -6
  16. package/dist/types/i18n/ja.d.ts +6 -6
  17. package/dist/types/i18n/ko.d.ts +6 -6
  18. package/dist/types/i18n/nb.d.ts +6 -6
  19. package/dist/types/i18n/nl.d.ts +6 -6
  20. package/dist/types/i18n/pl.d.ts +6 -6
  21. package/dist/types/i18n/pt_BR.d.ts +6 -6
  22. package/dist/types/i18n/ru.d.ts +6 -6
  23. package/dist/types/i18n/sv.d.ts +6 -6
  24. package/dist/types/i18n/th.d.ts +6 -6
  25. package/dist/types/i18n/tr.d.ts +6 -6
  26. package/dist/types/i18n/uk.d.ts +6 -6
  27. package/dist/types/i18n/vi.d.ts +6 -6
  28. package/dist/types/i18n/zh.d.ts +6 -6
  29. package/dist/types/i18n/zh_TW.d.ts +6 -6
  30. package/dist/types/plugins/table/commands/clear.d.ts +1 -1
  31. package/dist/types/plugins/table/commands/hover.d.ts +3 -3
  32. package/dist/types/plugins/table/commands/misc.d.ts +4 -4
  33. package/dist/types/plugins/table/commands-with-analytics.d.ts +2 -2
  34. package/dist/types/plugins/table/event-handlers.d.ts +3 -3
  35. package/dist/types/plugins/table/nodeviews/OverflowShadowsObserver.d.ts +2 -2
  36. package/dist/types/plugins/table/nodeviews/table.d.ts +1 -1
  37. package/dist/types/plugins/table/nodeviews/types.d.ts +1 -1
  38. package/dist/types/plugins/table/nodeviews/update-overflow-shadows.d.ts +1 -1
  39. package/dist/types/plugins/table/pm-plugins/decorations/utils/types.d.ts +1 -1
  40. package/dist/types/plugins/table/pm-plugins/main.d.ts +1 -1
  41. package/dist/types/plugins/table/pm-plugins/sticky-headers/nodeviews/dom.d.ts +1 -1
  42. package/dist/types/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.d.ts +1 -1
  43. package/dist/types/plugins/table/pm-plugins/sticky-headers/types.d.ts +5 -5
  44. package/dist/types/plugins/table/pm-plugins/table-resizing/commands.d.ts +2 -2
  45. package/dist/types/plugins/table/pm-plugins/table-resizing/event-handlers.d.ts +1 -1
  46. package/dist/types/plugins/table/pm-plugins/table-resizing/utils/colgroup.d.ts +1 -1
  47. package/dist/types/plugins/table/pm-plugins/table-resizing/utils/dom.d.ts +1 -1
  48. package/dist/types/plugins/table/pm-plugins/table-resizing/utils/resize-column.d.ts +1 -1
  49. package/dist/types/plugins/table/pm-plugins/table-resizing/utils/resize-logic.d.ts +2 -2
  50. package/dist/types/plugins/table/transforms/fix-tables.d.ts +2 -2
  51. package/dist/types/plugins/table/transforms/metadata.d.ts +2 -2
  52. package/dist/types/plugins/table/transforms/replace-table.d.ts +1 -1
  53. package/dist/types/plugins/table/types.d.ts +11 -11
  54. package/dist/types/plugins/table/ui/FloatingDeleteButton/types.d.ts +1 -1
  55. package/dist/types/plugins/table/ui/ui-styles.d.ts +2 -2
  56. package/dist/types/plugins/table/utils/column-controls.d.ts +1 -1
  57. package/dist/types/plugins/table/utils/decoration.d.ts +1 -1
  58. package/dist/types/plugins/table/utils/dom.d.ts +2 -2
  59. package/dist/types/plugins/table/utils/row-controls.d.ts +1 -1
  60. package/dist/types/plugins/table/utils/selection.d.ts +1 -1
  61. package/package.json +27 -19
  62. package/plugin-key/package.json +2 -2
  63. package/types/package.json +2 -2
  64. package/ui/common-styles/package.json +2 -2
  65. package/ui/consts/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 1.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
8
+ - Updated dependencies
9
+
10
+ ## 1.3.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 1.2.7
4
21
 
5
22
  ### Patch Changes
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/plugins/table/commands/index.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/plugins/table/commands/index.d.ts"
11
+ "../dist/types-ts4.5/plugins/table/commands/index.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "1.2.7",
3
+ "version": "1.3.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "1.2.7",
3
+ "version": "1.3.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "1.2.7",
3
+ "version": "1.3.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.canNotSortTable': string;
3
9
  'fabric.editor.cellBackground': string;
@@ -26,10 +32,4 @@ declare const _default: {
26
32
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
27
33
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
28
34
  };
29
- /**
30
- * NOTE:
31
- *
32
- * This file is automatically generated by Traduki 2.0.
33
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
34
- */
35
35
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.canNotSortTable': string;
3
9
  'fabric.editor.cellBackground': string;
@@ -24,10 +30,4 @@ declare const _default: {
24
30
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
25
31
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
26
32
  };
27
- /**
28
- * NOTE:
29
- *
30
- * This file is automatically generated by Traduki 2.0.
31
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
32
- */
33
33
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.canNotSortTable': string;
3
9
  'fabric.editor.cellBackground': string;
@@ -24,10 +30,4 @@ declare const _default: {
24
30
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
25
31
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
26
32
  };
27
- /**
28
- * NOTE:
29
- *
30
- * This file is automatically generated by Traduki 2.0.
31
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
32
- */
33
33
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.canNotSortTable': string;
3
9
  'fabric.editor.cellBackground': string;
@@ -26,10 +32,4 @@ declare const _default: {
26
32
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
27
33
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
28
34
  };
29
- /**
30
- * NOTE:
31
- *
32
- * This file is automatically generated by Traduki 2.0.
33
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
34
- */
35
35
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.canNotSortTable': string;
3
9
  'fabric.editor.cellBackground': string;
@@ -26,10 +32,4 @@ declare const _default: {
26
32
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
27
33
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
28
34
  };
29
- /**
30
- * NOTE:
31
- *
32
- * This file is automatically generated by Traduki 2.0.
33
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
34
- */
35
35
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.canNotSortTable': string;
3
9
  'fabric.editor.cellBackground': string;
@@ -24,10 +30,4 @@ declare const _default: {
24
30
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
25
31
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
26
32
  };
27
- /**
28
- * NOTE:
29
- *
30
- * This file is automatically generated by Traduki 2.0.
31
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
32
- */
33
33
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.canNotSortTable': string;
3
9
  'fabric.editor.cellBackground': string;
@@ -24,10 +30,4 @@ declare const _default: {
24
30
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
25
31
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
26
32
  };
27
- /**
28
- * NOTE:
29
- *
30
- * This file is automatically generated by Traduki 2.0.
31
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
32
- */
33
33
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.canNotSortTable': string;
3
9
  'fabric.editor.cellBackground': string;
@@ -26,10 +32,4 @@ declare const _default: {
26
32
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
27
33
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
28
34
  };
29
- /**
30
- * NOTE:
31
- *
32
- * This file is automatically generated by Traduki 2.0.
33
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
34
- */
35
35
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.canNotSortTable': string;
3
9
  'fabric.editor.cellBackground': string;
@@ -26,10 +32,4 @@ declare const _default: {
26
32
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
27
33
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
28
34
  };
29
- /**
30
- * NOTE:
31
- *
32
- * This file is automatically generated by Traduki 2.0.
33
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
34
- */
35
35
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.canNotSortTable': string;
3
9
  'fabric.editor.cellBackground': string;
@@ -26,10 +32,4 @@ declare const _default: {
26
32
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
27
33
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
28
34
  };
29
- /**
30
- * NOTE:
31
- *
32
- * This file is automatically generated by Traduki 2.0.
33
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
34
- */
35
35
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.canNotSortTable': string;
3
9
  'fabric.editor.cellBackground': string;
@@ -26,10 +32,4 @@ declare const _default: {
26
32
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
27
33
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
28
34
  };
29
- /**
30
- * NOTE:
31
- *
32
- * This file is automatically generated by Traduki 2.0.
33
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
34
- */
35
35
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.canNotSortTable': string;
3
9
  'fabric.editor.cellBackground': string;
@@ -24,10 +30,4 @@ declare const _default: {
24
30
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
25
31
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
26
32
  };
27
- /**
28
- * NOTE:
29
- *
30
- * This file is automatically generated by Traduki 2.0.
31
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
32
- */
33
33
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.canNotSortTable': string;
3
9
  'fabric.editor.cellBackground': string;
@@ -24,10 +30,4 @@ declare const _default: {
24
30
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
25
31
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
26
32
  };
27
- /**
28
- * NOTE:
29
- *
30
- * This file is automatically generated by Traduki 2.0.
31
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
32
- */
33
33
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.canNotSortTable': string;
3
9
  'fabric.editor.cellBackground': string;
@@ -26,10 +32,4 @@ declare const _default: {
26
32
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
27
33
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
28
34
  };
29
- /**
30
- * NOTE:
31
- *
32
- * This file is automatically generated by Traduki 2.0.
33
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
34
- */
35
35
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.canNotSortTable': string;
3
9
  'fabric.editor.cellBackground': string;
@@ -26,10 +32,4 @@ declare const _default: {
26
32
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
27
33
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
28
34
  };
29
- /**
30
- * NOTE:
31
- *
32
- * This file is automatically generated by Traduki 2.0.
33
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
34
- */
35
35
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.canNotSortTable': string;
3
9
  'fabric.editor.cellBackground': string;
@@ -26,10 +32,4 @@ declare const _default: {
26
32
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
27
33
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
28
34
  };
29
- /**
30
- * NOTE:
31
- *
32
- * This file is automatically generated by Traduki 2.0.
33
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
34
- */
35
35
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.canNotSortTable': string;
3
9
  'fabric.editor.cellBackground': string;
@@ -26,10 +32,4 @@ declare const _default: {
26
32
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
27
33
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
28
34
  };
29
- /**
30
- * NOTE:
31
- *
32
- * This file is automatically generated by Traduki 2.0.
33
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
34
- */
35
35
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.canNotSortTable': string;
3
9
  'fabric.editor.cellBackground': string;
@@ -24,10 +30,4 @@ declare const _default: {
24
30
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
25
31
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
26
32
  };
27
- /**
28
- * NOTE:
29
- *
30
- * This file is automatically generated by Traduki 2.0.
31
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
32
- */
33
33
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.canNotSortTable': string;
3
9
  'fabric.editor.cellBackground': string;
@@ -24,10 +30,4 @@ declare const _default: {
24
30
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
25
31
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
26
32
  };
27
- /**
28
- * NOTE:
29
- *
30
- * This file is automatically generated by Traduki 2.0.
31
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
32
- */
33
33
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.canNotSortTable': string;
3
9
  'fabric.editor.cellBackground': string;
@@ -26,10 +32,4 @@ declare const _default: {
26
32
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
27
33
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
28
34
  };
29
- /**
30
- * NOTE:
31
- *
32
- * This file is automatically generated by Traduki 2.0.
33
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
34
- */
35
35
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.canNotSortTable': string;
3
9
  'fabric.editor.cellBackground': string;
@@ -26,10 +32,4 @@ declare const _default: {
26
32
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
27
33
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
28
34
  };
29
- /**
30
- * NOTE:
31
- *
32
- * This file is automatically generated by Traduki 2.0.
33
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
34
- */
35
35
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.canNotSortTable': string;
3
9
  'fabric.editor.cellBackground': string;
@@ -24,10 +30,4 @@ declare const _default: {
24
30
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
25
31
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
26
32
  };
27
- /**
28
- * NOTE:
29
- *
30
- * This file is automatically generated by Traduki 2.0.
31
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
32
- */
33
33
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.canNotSortTable': string;
3
9
  'fabric.editor.cellBackground': string;
@@ -26,10 +32,4 @@ declare const _default: {
26
32
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
27
33
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
28
34
  };
29
- /**
30
- * NOTE:
31
- *
32
- * This file is automatically generated by Traduki 2.0.
33
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
34
- */
35
35
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.canNotSortTable': string;
3
9
  'fabric.editor.cellBackground': string;
@@ -26,10 +32,4 @@ declare const _default: {
26
32
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
27
33
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
28
34
  };
29
- /**
30
- * NOTE:
31
- *
32
- * This file is automatically generated by Traduki 2.0.
33
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
34
- */
35
35
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import { Command } from '@atlaskit/editor-common/types';
2
- export declare const clearMultipleCells: (targetCellPosition?: number | undefined) => Command;
2
+ export declare const clearMultipleCells: (targetCellPosition?: number) => Command;
3
3
  export declare const clearSelection: Command;
@@ -1,8 +1,8 @@
1
1
  import { CellColumnPositioning } from '../types';
2
2
  export declare const hoverMergedCells: () => import("@atlaskit/editor-common/types").Command;
3
- export declare const hoverColumns: (hoveredColumns: number[], isInDanger?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
4
- export declare const hoverRows: (hoveredRows: number[], isInDanger?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
5
- export declare const hoverTable: (isInDanger?: boolean | undefined, isSelected?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
3
+ export declare const hoverColumns: (hoveredColumns: number[], isInDanger?: boolean) => import("@atlaskit/editor-common/types").Command;
4
+ export declare const hoverRows: (hoveredRows: number[], isInDanger?: boolean) => import("@atlaskit/editor-common/types").Command;
5
+ export declare const hoverTable: (isInDanger?: boolean, isSelected?: boolean) => import("@atlaskit/editor-common/types").Command;
6
6
  export declare const clearHoverSelection: () => import("@atlaskit/editor-common/types").Command;
7
7
  export declare const showResizeHandleLine: (cellColumnPositioning: CellColumnPositioning) => import("@atlaskit/editor-common/types").Command;
8
8
  export declare const hideResizeHandleLine: () => import("@atlaskit/editor-common/types").Command;
@@ -4,7 +4,7 @@ import { ContentNodeWithPos } from 'prosemirror-utils';
4
4
  import { EditorView } from 'prosemirror-view';
5
5
  import { Command } from '@atlaskit/editor-common/types';
6
6
  export declare const setEditorFocus: (editorHasFocus: boolean) => Command;
7
- export declare const setTableRef: (ref?: HTMLTableElement | undefined) => Command;
7
+ export declare const setTableRef: (ref?: HTMLTableElement) => Command;
8
8
  export declare const setCellAttr: (name: string, value: any) => Command;
9
9
  export declare const triggerUnlessTableHeader: (command: Command) => Command;
10
10
  export declare const transformSliceRemoveCellBackgroundColor: (slice: Slice, schema: Schema) => Slice;
@@ -14,9 +14,9 @@ export declare const deleteTable: Command;
14
14
  export declare const deleteTableIfSelected: Command;
15
15
  export declare const convertFirstRowToHeader: (schema: Schema) => (tr: Transaction) => Transaction;
16
16
  export declare const moveCursorBackward: Command;
17
- export declare const setMultipleCellAttrs: (attrs: Object, targetCellPosition?: number | undefined) => Command;
18
- export declare const selectColumn: (column: number, expand?: boolean | undefined) => Command;
19
- export declare const selectRow: (row: number, expand?: boolean | undefined) => Command;
17
+ export declare const setMultipleCellAttrs: (attrs: Object, targetCellPosition?: number) => Command;
18
+ export declare const selectColumn: (column: number, expand?: boolean) => Command;
19
+ export declare const selectRow: (row: number, expand?: boolean) => Command;
20
20
  export declare const showInsertColumnButton: (columnIndex: number) => Command;
21
21
  export declare const showInsertRowButton: (rowIndex: number) => Command;
22
22
  export declare const hideInsertColumnOrRowButton: () => Command;
@@ -6,10 +6,10 @@ import { InsertRowMethods, InsertRowOptions, RowInsertPosition } from './types';
6
6
  import { TableSortOrder as SortOrder } from '@atlaskit/adf-schema/steps';
7
7
  import { ResizeStateWithAnalytics } from './pm-plugins/table-resizing/utils';
8
8
  import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
9
- export declare const emptyMultipleCellsWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FLOATING_TB, targetCellPosition?: number | undefined) => Command;
9
+ export declare const emptyMultipleCellsWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FLOATING_TB, targetCellPosition?: number) => Command;
10
10
  export declare const mergeCellsWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | null | undefined) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB) => Command;
11
11
  export declare const splitCellWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB) => Command;
12
- export declare const setColorWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB, cellColor: string, targetCellPosition?: number | undefined) => Command;
12
+ export declare const setColorWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB, cellColor: string, targetCellPosition?: number) => Command;
13
13
  export declare const addRowAroundSelection: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (side: RowInsertPosition) => Command;
14
14
  export declare const insertRowWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: InsertRowMethods, options: InsertRowOptions) => Command;
15
15
  export declare const insertColumnWithAnalytics: (getEditorContainerWidth: GetEditorContainerWidth, editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.BUTTON | INPUT_METHOD.SHORTCUT | INPUT_METHOD.FLOATING_TB, position: number) => Command;
@@ -10,7 +10,7 @@ export declare const handleMouseOver: (view: EditorView, mouseEvent: Event) => b
10
10
  export declare const handleMouseDown: (_: EditorView, event: Event) => boolean;
11
11
  export declare const handleMouseOut: (view: EditorView, mouseEvent: Event) => boolean;
12
12
  export declare const handleMouseLeave: (view: EditorView, event: Event) => boolean;
13
- export declare const handleMouseMove: (getEditorFeatureFlags: GetEditorFeatureFlags) => (view: EditorView, event: Event, elementContentRects?: ElementContentRects | undefined) => boolean;
13
+ export declare const handleMouseMove: (getEditorFeatureFlags: GetEditorFeatureFlags) => (view: EditorView, event: Event, elementContentRects?: ElementContentRects) => boolean;
14
14
  export declare function handleTripleClick(view: EditorView, pos: number): boolean;
15
- export declare const handleCut: (oldTr: Transaction, oldState: EditorState, newState: EditorState, editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => Transaction;
16
- export declare const whenTableInFocus: (eventHandler: (view: EditorView, mouseEvent: Event, elementContentRects?: ElementContentRects | undefined) => boolean, elementContentRects?: ElementContentRects | undefined) => (view: EditorView, mouseEvent: Event) => boolean;
15
+ export declare const handleCut: (oldTr: Transaction, oldState: EditorState, newState: EditorState, editorAnalyticsAPI?: EditorAnalyticsAPI) => Transaction;
16
+ export declare const whenTableInFocus: (eventHandler: (view: EditorView, mouseEvent: Event, elementContentRects?: ElementContentRects) => boolean, elementContentRects?: ElementContentRects) => (view: EditorView, mouseEvent: Event) => boolean;
@@ -14,12 +14,12 @@ export declare class OverflowShadowsObserver {
14
14
  private checkIntersectionEvent;
15
15
  private updateStickyShadowsHeightIfChanged;
16
16
  private getStickyCell;
17
- observeShadowSentinels: (isSticky?: boolean | undefined) => void;
17
+ observeShadowSentinels: (isSticky?: boolean) => void;
18
18
  /**
19
19
  * Takes a heightStyle if it can be computed in a less expensive manner,
20
20
  * e.g. bounds on an IntersectionObserverEntry, otherwise proceed with
21
21
  * reading it from sticky cell
22
22
  */
23
- updateStickyShadows: (stickyRowHeight?: number | undefined) => void;
23
+ updateStickyShadows: (stickyRowHeight?: number) => void;
24
24
  dispose(): void;
25
25
  }
@@ -7,7 +7,7 @@ import ReactNodeView from '@atlaskit/editor-common/react-node-view';
7
7
  import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
8
8
  import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
9
9
  import { Props, TableOptions } from './types';
10
- declare type ForwardRef = (node: HTMLElement | null) => void;
10
+ type ForwardRef = (node: HTMLElement | null) => void;
11
11
  export default class TableView extends ReactNodeView<Props> {
12
12
  private table;
13
13
  private resizeObserver?;
@@ -3,7 +3,7 @@ import { EditorView } from 'prosemirror-view';
3
3
  import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
4
4
  import { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
5
5
  import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
6
- export declare type TableOptions = {
6
+ export type TableOptions = {
7
7
  isBreakoutEnabled?: boolean;
8
8
  isFullWidthModeEnabled?: boolean;
9
9
  wasFullWidthModeEnabled?: boolean;
@@ -5,4 +5,4 @@ export declare const updateShadowListForStickyStyles: (heightStyle: string, shad
5
5
  * Update overflow shadows for a given wrapper & table.
6
6
  * if `overflowShadowOptimization` is enabled, this will exit early.
7
7
  */
8
- export declare const updateOverflowShadows: (getEditorFeatureFlags: GetEditorFeatureFlags) => (editorState: EditorState, wrapper?: HTMLElement | null | undefined, table?: HTMLElement | null | undefined, rightShadows?: NodeListOf<HTMLElement> | null | undefined, leftShadows?: NodeListOf<HTMLElement> | null | undefined) => false | undefined;
8
+ export declare const updateOverflowShadows: (getEditorFeatureFlags: GetEditorFeatureFlags) => (editorState: EditorState, wrapper?: HTMLElement | null, table?: HTMLElement | null, rightShadows?: NodeListOf<HTMLElement> | null, leftShadows?: NodeListOf<HTMLElement> | null) => false | undefined;
@@ -1,6 +1,6 @@
1
1
  import { ReadonlyTransaction, Transaction } from 'prosemirror-state';
2
2
  import { DecorationSet } from 'prosemirror-view';
3
- export declare type DecorationTransformer = ({ decorationSet, tr, }: {
3
+ export type DecorationTransformer = ({ decorationSet, tr, }: {
4
4
  decorationSet: DecorationSet;
5
5
  tr: Transaction | ReadonlyTransaction;
6
6
  }) => DecorationSet;
@@ -5,4 +5,4 @@ import { PluginConfig } from '../types';
5
5
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
6
6
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
7
7
  import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
8
- export declare const createPlugin: (dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginConfig: PluginConfig, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, breakoutEnabled?: boolean | undefined, fullWidthModeEnabled?: boolean | undefined, previousFullWidthModeEnabled?: boolean | undefined, editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => SafePlugin<import("../types").TablePluginState, import("prosemirror-model").Schema<any, any>>;
8
+ export declare const createPlugin: (dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginConfig: PluginConfig, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, breakoutEnabled?: boolean, fullWidthModeEnabled?: boolean, previousFullWidthModeEnabled?: boolean, editorAnalyticsAPI?: EditorAnalyticsAPI) => SafePlugin<import("../types").TablePluginState, import("prosemirror-model").Schema<any, any>>;
@@ -1,4 +1,4 @@
1
- export declare type TableDOMElements = {
1
+ export type TableDOMElements = {
2
2
  wrapper: HTMLDivElement;
3
3
  table: HTMLTableElement;
4
4
  };
@@ -59,7 +59,7 @@ export declare class TableRowNodeView implements NodeView {
59
59
  onTablePluginState: (state: TablePluginState) => void;
60
60
  updateStickyHeaderWidth: () => void;
61
61
  shouldHeaderStick: (tree: TableDOMElements) => boolean;
62
- makeHeaderRowSticky: (tree: TableDOMElements, scrollTop?: number | undefined) => void;
62
+ makeHeaderRowSticky: (tree: TableDOMElements, scrollTop?: number) => void;
63
63
  makeRowHeaderNotSticky: (table: HTMLElement, isEditorDestroyed?: boolean) => void;
64
64
  getWrapperoffset: (inverse?: boolean) => number;
65
65
  getWrapperRefTop: (wrapper: HTMLElement) => number;
@@ -1,16 +1,16 @@
1
- export declare type RowStickyState = {
1
+ export type RowStickyState = {
2
2
  pos: number;
3
3
  top: number;
4
4
  padding: number;
5
5
  sticky: boolean;
6
6
  };
7
- export declare type StickyPluginState = RowStickyState[];
8
- export declare type UpdateSticky = {
7
+ export type StickyPluginState = RowStickyState[];
8
+ export type UpdateSticky = {
9
9
  name: 'UPDATE';
10
10
  state: RowStickyState;
11
11
  };
12
- export declare type RemoveSticky = {
12
+ export type RemoveSticky = {
13
13
  name: 'REMOVE';
14
14
  pos: number;
15
15
  };
16
- export declare type StickyPluginAction = UpdateSticky | RemoveSticky;
16
+ export type StickyPluginAction = UpdateSticky | RemoveSticky;
@@ -13,11 +13,11 @@ export declare const evenColumns: ({ resizeState, table, start, event, }: {
13
13
  }) => Command;
14
14
  export declare const distributeColumnsWidths: (newResizeState: ResizeState, table: ContentNodeWithPos) => Command;
15
15
  export declare const setResizeHandlePos: (resizeHandlePos: number | null) => Command;
16
- export declare const stopResizing: (tr?: Transaction<any> | undefined) => Command;
16
+ export declare const stopResizing: (tr?: Transaction) => Command;
17
17
  export declare const setDragging: (dragging: {
18
18
  startX: number;
19
19
  startWidth: number;
20
- } | null, tr?: Transaction<any> | undefined) => Command;
20
+ } | null, tr?: Transaction) => Command;
21
21
  export declare const setLastClick: (lastClick: {
22
22
  x: number;
23
23
  y: number;
@@ -1,4 +1,4 @@
1
1
  import { EditorView } from 'prosemirror-view';
2
2
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
3
  import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
4
- export declare const handleMouseDown: (view: EditorView, event: MouseEvent, localResizeHandlePos: number, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => boolean;
4
+ export declare const handleMouseDown: (view: EditorView, event: MouseEvent, localResizeHandlePos: number, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, editorAnalyticsAPI?: EditorAnalyticsAPI) => boolean;
@@ -1,5 +1,5 @@
1
1
  import { Node as PmNode } from 'prosemirror-model';
2
- declare type Col = Array<string | {
2
+ type Col = Array<string | {
3
3
  [name: string]: string;
4
4
  }>;
5
5
  export declare const generateColgroup: (table: PmNode) => Col[];
@@ -9,5 +9,5 @@ export declare const isClickNear: (event: MouseEvent, click: {
9
9
  export declare const getResizeCellPos: (view: EditorView, event: MouseEvent, lastColumnResizable: boolean) => number | null;
10
10
  export declare const updateStickyMargins: (table: HTMLElement) => void;
11
11
  export declare const applyColWidthsToStickyRow: (colGroup: HTMLTableColElement | null, headerRow: HTMLTableRowElement) => void;
12
- export declare const syncStickyRowToTable: (tableRef?: HTMLElement | null | undefined) => void;
12
+ export declare const syncStickyRowToTable: (tableRef?: HTMLElement | null) => void;
13
13
  export declare const applyTableWidthToStickyRow: (tableRef: HTMLElement, headerRow: HTMLTableRowElement) => void;
@@ -1,2 +1,2 @@
1
1
  import { ResizeState } from './types';
2
- export declare const resizeColumn: (resizeState: ResizeState, colIndex: number, amount: number, tableRef: HTMLElement, selectedColumns?: number[] | undefined) => ResizeState;
2
+ export declare const resizeColumn: (resizeState: ResizeState, colIndex: number, amount: number, tableRef: HTMLElement, selectedColumns?: number[]) => ResizeState;
@@ -1,4 +1,4 @@
1
1
  import { ResizeState } from './types';
2
- export declare const growColumn: (state: ResizeState, colIndex: number, amount: number, selectedColumns?: number[] | undefined) => ResizeState;
3
- export declare const shrinkColumn: (state: ResizeState, colIndex: number, amount: number, selectedColumns?: number[] | undefined) => ResizeState;
2
+ export declare const growColumn: (state: ResizeState, colIndex: number, amount: number, selectedColumns?: number[]) => ResizeState;
3
+ export declare const shrinkColumn: (state: ResizeState, colIndex: number, amount: number, selectedColumns?: number[]) => ResizeState;
4
4
  export declare function reduceSpace(state: ResizeState, amount: number, ignoreCols?: number[]): ResizeState;
@@ -3,8 +3,8 @@ import { Transaction } from 'prosemirror-state';
3
3
  import { EditorView } from 'prosemirror-view';
4
4
  import { ReportInvalidNodeAttrs } from '../types';
5
5
  export declare const fireAnalytics: (properties?: {}) => Promise<Response>;
6
- export declare const removeExtraneousColumnWidths: (node: PMNode, basePos: number, tr: Transaction, reportInvalidTableCellSpanAttrs?: ReportInvalidNodeAttrs | undefined) => boolean;
7
- export declare const fixTables: (tr: Transaction, reportInvalidTableCellSpanAttrs?: ReportInvalidNodeAttrs | undefined) => Transaction | undefined;
6
+ export declare const removeExtraneousColumnWidths: (node: PMNode, basePos: number, tr: Transaction, reportInvalidTableCellSpanAttrs?: ReportInvalidNodeAttrs) => boolean;
7
+ export declare const fixTables: (tr: Transaction, reportInvalidTableCellSpanAttrs?: ReportInvalidNodeAttrs) => Transaction | undefined;
8
8
  export declare const fixAutoSizedTable: (view: EditorView, tableNode: PMNode, tableRef: HTMLTableElement, tablePos: number, opts: {
9
9
  containerWidth: number;
10
10
  }) => Transaction;
@@ -1,6 +1,6 @@
1
1
  import { Transaction } from 'prosemirror-state';
2
- declare type TableProblems = 'NEGATIVE_ROWSPAN' | 'REMOVE_EMPTY_ROWS' | 'REMOVE_EMPTY_COLUMNS' | 'EMPTY_TABLE' | 'FIX_ROWSPANS' | 'COLWIDTHS_BEFORE_UPDATE' | 'COLWIDTHS_AFTER_UPDATE';
3
- export declare type TableMetaData = {
2
+ type TableProblems = 'NEGATIVE_ROWSPAN' | 'REMOVE_EMPTY_ROWS' | 'REMOVE_EMPTY_COLUMNS' | 'EMPTY_TABLE' | 'FIX_ROWSPANS' | 'COLWIDTHS_BEFORE_UPDATE' | 'COLWIDTHS_AFTER_UPDATE';
3
+ export type TableMetaData = {
4
4
  type: 'MERGE_CELLS';
5
5
  problem?: TableProblems;
6
6
  } | {
@@ -2,4 +2,4 @@ import { Transaction, EditorState } from 'prosemirror-state';
2
2
  import { Slice } from 'prosemirror-model';
3
3
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
5
- export declare const replaceSelectedTable: (state: EditorState, content: string | Slice, inputMethod: INPUT_METHOD.KEYBOARD | INPUT_METHOD.CLIPBOARD, editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => Transaction;
5
+ export declare const replaceSelectedTable: (state: EditorState, content: string | Slice, inputMethod: INPUT_METHOD.KEYBOARD | INPUT_METHOD.CLIPBOARD, editorAnalyticsAPI?: EditorAnalyticsAPI) => Transaction;
@@ -7,19 +7,19 @@ import { TableLayout } from '@atlaskit/adf-schema';
7
7
  import { TableColumnOrdering } from '@atlaskit/adf-schema/steps';
8
8
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
9
9
  export declare const RESIZE_HANDLE_AREA_DECORATION_GAP = 30;
10
- export declare type RowInsertPosition = 'TOP' | 'BOTTOM';
11
- export declare type PermittedLayoutsDescriptor = TableLayout[] | 'all';
12
- export declare type Cell = {
10
+ export type RowInsertPosition = 'TOP' | 'BOTTOM';
11
+ export type PermittedLayoutsDescriptor = TableLayout[] | 'all';
12
+ export type Cell = {
13
13
  pos: number;
14
14
  start: number;
15
15
  node: PmNode;
16
16
  };
17
- export declare type CellTransform = (cell: Cell) => (tr: Transaction) => Transaction;
17
+ export type CellTransform = (cell: Cell) => (tr: Transaction) => Transaction;
18
18
  export interface InsertRowOptions {
19
19
  index: number;
20
20
  moveCursorToInsertedRow: boolean;
21
21
  }
22
- export declare type InsertRowMethods = INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.BUTTON | INPUT_METHOD.SHORTCUT | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FLOATING_TB;
22
+ export type InsertRowMethods = INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.BUTTON | INPUT_METHOD.SHORTCUT | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FLOATING_TB;
23
23
  export interface PluginConfig {
24
24
  advanced?: boolean;
25
25
  allowBackgroundColor?: boolean;
@@ -57,7 +57,7 @@ export interface ColumnResizingPluginState {
57
57
  } | null;
58
58
  lastColumnResizable?: boolean;
59
59
  }
60
- export declare type CellColumnPositioning = Pick<Rect, 'right' | 'left'>;
60
+ export type CellColumnPositioning = Pick<Rect, 'right' | 'left'>;
61
61
  export interface TablePluginState {
62
62
  editorHasFocus?: boolean;
63
63
  hoveredColumns: number[];
@@ -84,7 +84,7 @@ export interface TablePluginState {
84
84
  isTableCollapsed?: boolean;
85
85
  canCollapseTable?: boolean;
86
86
  }
87
- export declare type TablePluginAction = {
87
+ export type TablePluginAction = {
88
88
  type: 'SET_EDITOR_FOCUS';
89
89
  data: {
90
90
  editorHasFocus: boolean;
@@ -188,7 +188,7 @@ export declare type TablePluginAction = {
188
188
  } | {
189
189
  type: 'TOGGLE_CONTEXTUAL_MENU';
190
190
  };
191
- export declare type ColumnResizingPluginAction = {
191
+ export type ColumnResizingPluginAction = {
192
192
  type: 'SET_RESIZE_HANDLE_POSITION';
193
193
  data: {
194
194
  resizeHandlePos: number | null;
@@ -315,15 +315,15 @@ export interface ToolbarMenuState {
315
315
  export interface ToolbarMenuContext {
316
316
  formatMessage: IntlShape['formatMessage'];
317
317
  }
318
- export declare type ElementContentRects = {
318
+ export type ElementContentRects = {
319
319
  [key: string]: ResizeObserverEntry['contentRect'];
320
320
  };
321
321
  export declare enum ShadowEvent {
322
322
  SHOW_BEFORE_SHADOW = "showBeforeShadow",
323
323
  SHOW_AFTER_SHADOW = "showAfterShadow"
324
324
  }
325
- export declare type ReportInvalidNodeAttrs = (invalidNodeAttrs: InvalidNodeAttr) => void;
326
- export declare type InvalidNodeAttr = {
325
+ export type ReportInvalidNodeAttrs = (invalidNodeAttrs: InvalidNodeAttr) => void;
326
+ export type InvalidNodeAttr = {
327
327
  nodeType: string;
328
328
  attribute: string;
329
329
  reason: string;
@@ -1 +1 @@
1
- export declare type CellSelectionType = 'column' | 'row' | undefined;
1
+ export type CellSelectionType = 'column' | 'row' | undefined;
@@ -1,6 +1,6 @@
1
1
  import { ThemeProps } from '@atlaskit/theme/types';
2
- export declare const InsertMarker: (props: ThemeProps, cssString?: string | undefined) => import("@emotion/react").SerializedStyles;
3
- export declare const HeaderButton: (props: ThemeProps, cssString?: string | undefined) => import("@emotion/react").SerializedStyles;
2
+ export declare const InsertMarker: (props: ThemeProps, cssString?: string) => import("@emotion/react").SerializedStyles;
3
+ export declare const HeaderButton: (props: ThemeProps, cssString?: string) => import("@emotion/react").SerializedStyles;
4
4
  export declare const HeaderButtonHover: () => import("@emotion/react").SerializedStyles;
5
5
  export declare const HeaderButtonDanger: () => import("@emotion/react").SerializedStyles;
6
6
  export declare const insertColumnButtonWrapper: import("@emotion/react").SerializedStyles;
@@ -6,5 +6,5 @@ export declare const getColumnDeleteButtonParams: (columnsWidths: Array<number |
6
6
  left: number;
7
7
  indexes: number[];
8
8
  } | null;
9
- export declare const getColumnClassNames: (index: number, selection: Selection, hoveredColumns?: number[], isInDanger?: boolean | undefined, isResizing?: boolean | undefined) => string;
9
+ export declare const getColumnClassNames: (index: number, selection: Selection, hoveredColumns?: number[], isInDanger?: boolean, isResizing?: boolean) => string;
10
10
  export declare const colWidthsForRow: (colGroup: HTMLTableColElement | null, tr: HTMLTableRowElement) => string;
@@ -5,7 +5,7 @@ import { Cell, CellColumnPositioning, TableDecorations } from '../types';
5
5
  export declare const findColumnControlSelectedDecoration: (decorationSet: DecorationSet) => Decoration[];
6
6
  export declare const findControlsHoverDecoration: (decorationSet: DecorationSet) => Decoration[];
7
7
  export declare const createCellHoverDecoration: (cells: Cell[], type: 'warning') => Decoration[];
8
- export declare const createControlsHoverDecoration: (cells: Cell[], type: 'row' | 'column' | 'table', tr: Transaction | ReadonlyTransaction, danger?: boolean | undefined, selected?: boolean | undefined) => Decoration[];
8
+ export declare const createControlsHoverDecoration: (cells: Cell[], type: 'row' | 'column' | 'table', tr: Transaction | ReadonlyTransaction, danger?: boolean, selected?: boolean) => Decoration[];
9
9
  export declare const createColumnSelectedDecoration: (tr: Transaction | ReadonlyTransaction) => Decoration[];
10
10
  export declare const createColumnControlsDecoration: (selection: Selection) => Decoration[];
11
11
  export declare const updateDecorations: (node: PmNode, decorationSet: DecorationSet, decorations: Decoration[], key: TableDecorations) => DecorationSet;
@@ -8,9 +8,9 @@ export declare const isRowControlsButton: (node: HTMLElement | null) => boolean;
8
8
  export declare const isResizeHandleDecoration: (node: HTMLElement | null) => boolean;
9
9
  export declare const isTableControlsButton: (node: HTMLElement | null) => boolean;
10
10
  export declare const isTableContainerOrWrapper: (node: HTMLElement | null) => boolean;
11
- export declare const getMousePositionHorizontalRelativeByElement: (mouseEvent: MouseEvent, mouseMoveOptimization?: boolean | undefined, elementContentRects?: ElementContentRects | undefined, gapInPixels?: number | undefined) => 'left' | 'right' | null;
11
+ export declare const getMousePositionHorizontalRelativeByElement: (mouseEvent: MouseEvent, mouseMoveOptimization?: boolean, elementContentRects?: ElementContentRects, gapInPixels?: number) => 'left' | 'right' | null;
12
12
  export declare const getMousePositionVerticalRelativeByElement: (mouseEvent: MouseEvent) => 'top' | 'bottom' | null;
13
- export declare const updateResizeHandles: (tableRef?: HTMLElement | undefined) => void;
13
+ export declare const updateResizeHandles: (tableRef?: HTMLElement) => void;
14
14
  export declare const hasResizeHandler: ({ columnEndIndexTarget, target, }: {
15
15
  columnEndIndexTarget: number;
16
16
  target: HTMLElement;
@@ -12,5 +12,5 @@ export declare const getRowDeleteButtonParams: (rowsHeights: Array<number | unde
12
12
  indexes: number[];
13
13
  } | null;
14
14
  export declare const getRowsParams: (rowsHeights: Array<number | undefined>) => RowParams[];
15
- export declare const getRowClassNames: (index: number, selection: Selection, hoveredRows?: number[], isInDanger?: boolean | undefined, isResizing?: boolean | undefined) => string;
15
+ export declare const getRowClassNames: (index: number, selection: Selection, hoveredRows?: number[], isInDanger?: boolean, isResizing?: boolean) => string;
16
16
  export declare const copyPreviousRow: (schema: Schema) => (insertNewRowIndex: number) => (tr: Transaction) => Transaction<any>;
@@ -1,6 +1,6 @@
1
1
  import { Selection, Transaction } from 'prosemirror-state';
2
2
  import { Rect } from '@atlaskit/editor-tables/table-map';
3
- export declare const isSelectionUpdated: (oldSelection: Selection, newSelection?: Selection<any> | undefined) => boolean;
3
+ export declare const isSelectionUpdated: (oldSelection: Selection, newSelection?: Selection) => boolean;
4
4
  export declare const normalizeSelection: (tr: Transaction) => Transaction;
5
5
  export declare const getSelectedColumnIndexes: (selectionRect: Rect) => number[];
6
6
  export declare const getSelectedRowIndexes: (selectionRect: Rect) => number[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "1.2.7",
3
+ "version": "1.3.1",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -11,6 +11,14 @@
11
11
  "module": "dist/esm/index.js",
12
12
  "module:es2019": "dist/es2019/index.js",
13
13
  "types": "dist/types/index.d.ts",
14
+ "typesVersions": {
15
+ ">=4.5 <4.9": {
16
+ "*": [
17
+ "dist/types-ts4.5/*",
18
+ "dist/types-ts4.5/index.d.ts"
19
+ ]
20
+ }
21
+ },
14
22
  "sideEffects": false,
15
23
  "atlaskit:src": "src/index.ts",
16
24
  "atlassian": {
@@ -18,15 +26,15 @@
18
26
  "releaseModel": "scheduled"
19
27
  },
20
28
  "dependencies": {
21
- "@atlaskit/adf-schema": "^25.5.0",
22
- "@atlaskit/editor-common": "^73.0.0",
23
- "@atlaskit/editor-palette": "1.3.0",
24
- "@atlaskit/editor-shared-styles": "^2.3.0",
25
- "@atlaskit/editor-tables": "^2.2.0",
26
- "@atlaskit/icon": "^21.11.0",
27
- "@atlaskit/theme": "^12.4.0",
28
- "@atlaskit/tokens": "^1.2.0",
29
- "@atlaskit/tooltip": "^17.7.0",
29
+ "@atlaskit/adf-schema": "^25.6.0",
30
+ "@atlaskit/editor-common": "^74.0.0",
31
+ "@atlaskit/editor-palette": "1.4.1",
32
+ "@atlaskit/editor-shared-styles": "^2.4.0",
33
+ "@atlaskit/editor-tables": "^2.3.0",
34
+ "@atlaskit/icon": "^21.12.0",
35
+ "@atlaskit/theme": "^12.5.0",
36
+ "@atlaskit/tokens": "^1.4.0",
37
+ "@atlaskit/tooltip": "^17.8.0",
30
38
  "@babel/runtime": "^7.0.0",
31
39
  "@emotion/react": "^11.7.1",
32
40
  "@types/prosemirror-state": "^1.2.0",
@@ -50,16 +58,16 @@
50
58
  "react-intl-next": "npm:react-intl@^5.18.1"
51
59
  },
52
60
  "devDependencies": {
53
- "@atlaskit/analytics-next": "^9.0.0",
54
- "@atlaskit/button": "^16.6.0",
55
- "@atlaskit/editor-core": "^182.2.0",
56
- "@atlaskit/editor-plugin-feature-flags": "^0.0.4",
57
- "@atlaskit/editor-test-helpers": "^18.2.0",
58
- "@atlaskit/link-provider": "^1.5.0",
59
- "@atlaskit/logo": "^13.13.0",
61
+ "@atlaskit/analytics-next": "^9.1.0",
62
+ "@atlaskit/button": "^16.7.0",
63
+ "@atlaskit/editor-core": "^183.0.0",
64
+ "@atlaskit/editor-plugin-feature-flags": "^0.1.0",
65
+ "@atlaskit/editor-test-helpers": "^18.3.0",
66
+ "@atlaskit/link-provider": "^1.6.0",
67
+ "@atlaskit/logo": "^13.14.0",
60
68
  "@atlaskit/media-integration-test-helpers": "^2.6.0",
61
69
  "@atlaskit/synchrony-test-helpers": "^2.3.0",
62
- "@atlaskit/util-data-test": "^17.7.0",
70
+ "@atlaskit/util-data-test": "^17.8.0",
63
71
  "@atlaskit/visual-regression": "*",
64
72
  "@atlaskit/webdriver-runner": "*",
65
73
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
@@ -67,7 +75,7 @@
67
75
  "@types/prosemirror-history": "^1.0.1",
68
76
  "prosemirror-history": "^1.1.3",
69
77
  "raf-stub": "^2.0.1",
70
- "typescript": "4.5.5"
78
+ "typescript": "~4.9.5"
71
79
  },
72
80
  "af:exports": {
73
81
  "./types": "./src/plugins/table/types.ts",
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/plugins/table/pm-plugins/plugin-key.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/plugins/table/pm-plugins/plugin-key.d.ts"
11
+ "../dist/types-ts4.5/plugins/table/pm-plugins/plugin-key.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/plugins/table/types.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/plugins/table/types.d.ts"
11
+ "../dist/types-ts4.5/plugins/table/types.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../../dist/types/plugins/table/ui/common-styles.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../../dist/types-ts4.0/plugins/table/ui/common-styles.d.ts"
11
+ "../../dist/types-ts4.5/plugins/table/ui/common-styles.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../../dist/types/plugins/table/ui/consts.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../../dist/types-ts4.0/plugins/table/ui/consts.d.ts"
11
+ "../../dist/types-ts4.5/plugins/table/ui/consts.d.ts"
12
12
  ]
13
13
  }
14
14
  }