@atlaskit/editor-plugin-table 12.1.9 → 12.1.11

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,23 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 12.1.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [#195804](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/195804)
8
+ [`c60fbe1e74541`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c60fbe1e74541) -
9
+ ED-28804: Cleanup FG platform_editor_r18_fix_selection_resync
10
+ - Updated dependencies
11
+
12
+ ## 12.1.10
13
+
14
+ ### Patch Changes
15
+
16
+ - [#195649](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/195649)
17
+ [`231bb33e06dfe`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/231bb33e06dfe) -
18
+ EDITOR-1131 Bump adf-schema version to 50.2.0
19
+ - Updated dependencies
20
+
3
21
  ## 12.1.9
4
22
 
5
23
  ### Patch Changes
@@ -0,0 +1,114 @@
1
+ {
2
+ "extends": "../../../../tsconfig.entry-points.dev-agents.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "target": "es5",
6
+ "outDir": "../../../../../dev-agents/tsDist/@atlaskit__editor-plugin-table/app",
7
+ "rootDir": "../",
8
+ "composite": true
9
+ },
10
+ "include": [
11
+ "../src/**/*.ts",
12
+ "../src/**/*.tsx"
13
+ ],
14
+ "exclude": [
15
+ "../src/**/__tests__/*",
16
+ "../src/**/*.test.*",
17
+ "../src/**/test.*",
18
+ "../src/**/examples.*",
19
+ "../src/**/examples/*",
20
+ "../src/**/examples/**/*",
21
+ "../src/**/*.stories.*",
22
+ "../src/**/stories/*",
23
+ "../src/**/stories/**/*"
24
+ ],
25
+ "references": [
26
+ {
27
+ "path": "../../../design-system/button/afm-dev-agents/tsconfig.json"
28
+ },
29
+ {
30
+ "path": "../../custom-steps/afm-dev-agents/tsconfig.json"
31
+ },
32
+ {
33
+ "path": "../../editor-palette/afm-dev-agents/tsconfig.json"
34
+ },
35
+ {
36
+ "path": "../../editor-plugin-accessibility-utils/afm-dev-agents/tsconfig.json"
37
+ },
38
+ {
39
+ "path": "../../editor-plugin-analytics/afm-dev-agents/tsconfig.json"
40
+ },
41
+ {
42
+ "path": "../../editor-plugin-batch-attribute-updates/afm-dev-agents/tsconfig.json"
43
+ },
44
+ {
45
+ "path": "../../editor-plugin-content-insertion/afm-dev-agents/tsconfig.json"
46
+ },
47
+ {
48
+ "path": "../../editor-plugin-editor-viewmode/afm-dev-agents/tsconfig.json"
49
+ },
50
+ {
51
+ "path": "../../editor-plugin-extension/afm-dev-agents/tsconfig.json"
52
+ },
53
+ {
54
+ "path": "../../editor-plugin-guideline/afm-dev-agents/tsconfig.json"
55
+ },
56
+ {
57
+ "path": "../../editor-plugin-interaction/afm-dev-agents/tsconfig.json"
58
+ },
59
+ {
60
+ "path": "../../editor-plugin-selection/afm-dev-agents/tsconfig.json"
61
+ },
62
+ {
63
+ "path": "../../editor-plugin-width/afm-dev-agents/tsconfig.json"
64
+ },
65
+ {
66
+ "path": "../../editor-shared-styles/afm-dev-agents/tsconfig.json"
67
+ },
68
+ {
69
+ "path": "../../editor-tables/afm-dev-agents/tsconfig.json"
70
+ },
71
+ {
72
+ "path": "../../../design-system/icon/afm-dev-agents/tsconfig.json"
73
+ },
74
+ {
75
+ "path": "../../../design-system/menu/afm-dev-agents/tsconfig.json"
76
+ },
77
+ {
78
+ "path": "../../../platform/feature-flags/afm-dev-agents/tsconfig.json"
79
+ },
80
+ {
81
+ "path": "../../../pragmatic-drag-and-drop/core/afm-dev-agents/tsconfig.json"
82
+ },
83
+ {
84
+ "path": "../../../pragmatic-drag-and-drop/auto-scroll/afm-dev-agents/tsconfig.json"
85
+ },
86
+ {
87
+ "path": "../../../pragmatic-drag-and-drop/hitbox/afm-dev-agents/tsconfig.json"
88
+ },
89
+ {
90
+ "path": "../../../design-system/primitives/afm-dev-agents/tsconfig.json"
91
+ },
92
+ {
93
+ "path": "../../../react-ufo/atlaskit/afm-dev-agents/tsconfig.json"
94
+ },
95
+ {
96
+ "path": "../../../design-system/theme/afm-dev-agents/tsconfig.json"
97
+ },
98
+ {
99
+ "path": "../../tmp-editor-statsig/afm-dev-agents/tsconfig.json"
100
+ },
101
+ {
102
+ "path": "../../../design-system/toggle/afm-dev-agents/tsconfig.json"
103
+ },
104
+ {
105
+ "path": "../../../design-system/tokens/afm-dev-agents/tsconfig.json"
106
+ },
107
+ {
108
+ "path": "../../../design-system/tooltip/afm-dev-agents/tsconfig.json"
109
+ },
110
+ {
111
+ "path": "../../editor-common/afm-dev-agents/tsconfig.json"
112
+ }
113
+ ]
114
+ }
@@ -165,13 +165,9 @@ var TableView = exports.default = /*#__PURE__*/function (_ReactNodeView) {
165
165
  var resolvedSelection = selectionBookmark.resolve(_this2.view.state.tr.doc);
166
166
  // Don't set the selection if it's the same as the current selection.
167
167
  if (!resolvedSelection.eq(_this2.view.state.selection)) {
168
- if ((0, _platformFeatureFlags.fg)('platform_editor_r18_fix_selection_resync')) {
169
- var tr = _this2.view.state.tr.setSelection(resolvedSelection);
170
- tr.setMeta('source', 'TableNodeView:_handleTableRef:selection-resync');
171
- _this2.view.dispatch(tr);
172
- } else {
173
- _this2.view.dispatch(_this2.view.state.tr.setSelection(resolvedSelection));
174
- }
168
+ var tr = _this2.view.state.tr.setSelection(resolvedSelection);
169
+ tr.setMeta('source', 'TableNodeView:_handleTableRef:selection-resync');
170
+ _this2.view.dispatch(tr);
175
171
  }
176
172
  }
177
173
  });
@@ -137,13 +137,9 @@ export default class TableView extends ReactNodeView {
137
137
  const resolvedSelection = selectionBookmark.resolve(this.view.state.tr.doc);
138
138
  // Don't set the selection if it's the same as the current selection.
139
139
  if (!resolvedSelection.eq(this.view.state.selection)) {
140
- if (fg('platform_editor_r18_fix_selection_resync')) {
141
- const tr = this.view.state.tr.setSelection(resolvedSelection);
142
- tr.setMeta('source', 'TableNodeView:_handleTableRef:selection-resync');
143
- this.view.dispatch(tr);
144
- } else {
145
- this.view.dispatch(this.view.state.tr.setSelection(resolvedSelection));
146
- }
140
+ const tr = this.view.state.tr.setSelection(resolvedSelection);
141
+ tr.setMeta('source', 'TableNodeView:_handleTableRef:selection-resync');
142
+ this.view.dispatch(tr);
147
143
  }
148
144
  }
149
145
  });
@@ -158,13 +158,9 @@ var TableView = /*#__PURE__*/function (_ReactNodeView) {
158
158
  var resolvedSelection = selectionBookmark.resolve(_this2.view.state.tr.doc);
159
159
  // Don't set the selection if it's the same as the current selection.
160
160
  if (!resolvedSelection.eq(_this2.view.state.selection)) {
161
- if (fg('platform_editor_r18_fix_selection_resync')) {
162
- var tr = _this2.view.state.tr.setSelection(resolvedSelection);
163
- tr.setMeta('source', 'TableNodeView:_handleTableRef:selection-resync');
164
- _this2.view.dispatch(tr);
165
- } else {
166
- _this2.view.dispatch(_this2.view.state.tr.setSelection(resolvedSelection));
167
- }
161
+ var tr = _this2.view.state.tr.setSelection(resolvedSelection);
162
+ tr.setMeta('source', 'TableNodeView:_handleTableRef:selection-resync');
163
+ _this2.view.dispatch(tr);
168
164
  }
169
165
  }
170
166
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "12.1.9",
3
+ "version": "12.1.11",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -28,7 +28,7 @@
28
28
  "singleton": true
29
29
  },
30
30
  "dependencies": {
31
- "@atlaskit/adf-schema": "^50.0.1",
31
+ "@atlaskit/adf-schema": "^50.2.0",
32
32
  "@atlaskit/button": "^23.3.0",
33
33
  "@atlaskit/custom-steps": "^0.11.0",
34
34
  "@atlaskit/editor-palette": "^2.1.0",
@@ -37,7 +37,7 @@
37
37
  "@atlaskit/editor-plugin-batch-attribute-updates": "^3.0.0",
38
38
  "@atlaskit/editor-plugin-content-insertion": "^3.1.0",
39
39
  "@atlaskit/editor-plugin-editor-viewmode": "^5.0.0",
40
- "@atlaskit/editor-plugin-extension": "6.1.4",
40
+ "@atlaskit/editor-plugin-extension": "6.1.5",
41
41
  "@atlaskit/editor-plugin-guideline": "^3.0.0",
42
42
  "@atlaskit/editor-plugin-interaction": "^5.0.0",
43
43
  "@atlaskit/editor-plugin-selection": "^3.0.0",
@@ -54,7 +54,7 @@
54
54
  "@atlaskit/primitives": "^14.11.0",
55
55
  "@atlaskit/react-ufo": "^4.1.0",
56
56
  "@atlaskit/theme": "^19.0.0",
57
- "@atlaskit/tmp-editor-statsig": "^9.22.0",
57
+ "@atlaskit/tmp-editor-statsig": "^9.23.0",
58
58
  "@atlaskit/toggle": "^15.1.0",
59
59
  "@atlaskit/tokens": "^6.0.0",
60
60
  "@atlaskit/tooltip": "^20.4.0",
@@ -178,9 +178,6 @@
178
178
  "platform_editor_table_drag_menu_flickers_fix": {
179
179
  "type": "boolean"
180
180
  },
181
- "platform_editor_r18_fix_selection_resync": {
182
- "type": "boolean"
183
- },
184
181
  "platform_editor_table_fw_numcol_overflow_fix": {
185
182
  "type": "boolean"
186
183
  },
@@ -207,13 +207,9 @@ export default class TableView extends ReactNodeView<Props> {
207
207
  const resolvedSelection = selectionBookmark.resolve(this.view.state.tr.doc);
208
208
  // Don't set the selection if it's the same as the current selection.
209
209
  if (!resolvedSelection.eq(this.view.state.selection)) {
210
- if (fg('platform_editor_r18_fix_selection_resync')) {
211
- const tr = this.view.state.tr.setSelection(resolvedSelection);
212
- tr.setMeta('source', 'TableNodeView:_handleTableRef:selection-resync');
213
- this.view.dispatch(tr);
214
- } else {
215
- this.view.dispatch(this.view.state.tr.setSelection(resolvedSelection));
216
- }
210
+ const tr = this.view.state.tr.setSelection(resolvedSelection);
211
+ tr.setMeta('source', 'TableNodeView:_handleTableRef:selection-resync');
212
+ this.view.dispatch(tr);
217
213
  }
218
214
  }
219
215
  });