@atlaskit/editor-plugin-table 18.0.8 → 18.1.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 18.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 18.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`ea21f2748d986`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ea21f2748d986) -
14
+ feat: set display-mode in table toDOM from node attributes
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 18.0.8
4
21
 
5
22
  ### Patch Changes
@@ -39,6 +39,9 @@ var tableNodeSpecWithFixedToDOM = exports.tableNodeSpecWithFixedToDOM = function
39
39
  'data-ssr-placeholder': "table-".concat(node.attrs.localId),
40
40
  'data-ssr-placeholder-replace': "table-".concat(node.attrs.localId)
41
41
  };
42
+ if ((0, _expValEquals.expValEquals)('platform_editor_table_display_mode_in_to_dom', 'isEnabled', true)) {
43
+ attrs['data-table-display-mode'] = node.attrs.displayMode;
44
+ }
42
45
 
43
46
  // This would be used for table scaling in colgroup CSS
44
47
  // cqw, or px is well supported
@@ -23,6 +23,9 @@ export const tableNodeSpecWithFixedToDOM = config => {
23
23
  'data-ssr-placeholder': `table-${node.attrs.localId}`,
24
24
  'data-ssr-placeholder-replace': `table-${node.attrs.localId}`
25
25
  };
26
+ if (expValEquals('platform_editor_table_display_mode_in_to_dom', 'isEnabled', true)) {
27
+ attrs['data-table-display-mode'] = node.attrs.displayMode;
28
+ }
26
29
 
27
30
  // This would be used for table scaling in colgroup CSS
28
31
  // cqw, or px is well supported
@@ -32,6 +32,9 @@ export var tableNodeSpecWithFixedToDOM = function tableNodeSpecWithFixedToDOM(co
32
32
  'data-ssr-placeholder': "table-".concat(node.attrs.localId),
33
33
  'data-ssr-placeholder-replace': "table-".concat(node.attrs.localId)
34
34
  };
35
+ if (expValEquals('platform_editor_table_display_mode_in_to_dom', 'isEnabled', true)) {
36
+ attrs['data-table-display-mode'] = node.attrs.displayMode;
37
+ }
35
38
 
36
39
  // This would be used for table scaling in colgroup CSS
37
40
  // cqw, or px is well supported
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "18.0.8",
3
+ "version": "18.1.1",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -37,7 +37,7 @@
37
37
  "@atlaskit/editor-plugin-batch-attribute-updates": "^8.0.0",
38
38
  "@atlaskit/editor-plugin-content-insertion": "^8.0.0",
39
39
  "@atlaskit/editor-plugin-editor-viewmode": "^10.0.0",
40
- "@atlaskit/editor-plugin-extension": "11.0.8",
40
+ "@atlaskit/editor-plugin-extension": "11.0.10",
41
41
  "@atlaskit/editor-plugin-guideline": "^8.0.0",
42
42
  "@atlaskit/editor-plugin-interaction": "^15.0.0",
43
43
  "@atlaskit/editor-plugin-limited-mode": "^5.0.0",
@@ -57,7 +57,7 @@
57
57
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
58
58
  "@atlaskit/primitives": "^18.0.0",
59
59
  "@atlaskit/theme": "^22.0.0",
60
- "@atlaskit/tmp-editor-statsig": "^40.6.0",
60
+ "@atlaskit/tmp-editor-statsig": "^42.0.0",
61
61
  "@atlaskit/toggle": "^15.2.0",
62
62
  "@atlaskit/tokens": "^11.1.0",
63
63
  "@atlaskit/tooltip": "^21.0.0",
@@ -70,7 +70,7 @@
70
70
  "uuid": "^3.1.0"
71
71
  },
72
72
  "peerDependencies": {
73
- "@atlaskit/editor-common": "^112.6.0",
73
+ "@atlaskit/editor-common": "^112.7.0",
74
74
  "react": "^18.2.0",
75
75
  "react-dom": "^18.2.0",
76
76
  "react-intl-next": "npm:react-intl@^5.18.1"