@atlaskit/editor-plugin-table 12.2.0 → 12.2.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,11 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 12.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 12.2.0
4
10
 
5
11
  ### Minor Changes
@@ -62,6 +62,9 @@
62
62
  {
63
63
  "path": "../../editor-plugin-selection/afm-cc/tsconfig.json"
64
64
  },
65
+ {
66
+ "path": "../../editor-plugin-user-intent/afm-cc/tsconfig.json"
67
+ },
65
68
  {
66
69
  "path": "../../editor-plugin-width/afm-cc/tsconfig.json"
67
70
  },
@@ -62,6 +62,9 @@
62
62
  {
63
63
  "path": "../../editor-plugin-selection/afm-dev-agents/tsconfig.json"
64
64
  },
65
+ {
66
+ "path": "../../editor-plugin-user-intent/afm-dev-agents/tsconfig.json"
67
+ },
65
68
  {
66
69
  "path": "../../editor-plugin-width/afm-dev-agents/tsconfig.json"
67
70
  },
@@ -62,6 +62,9 @@
62
62
  {
63
63
  "path": "../../editor-plugin-selection/afm-jira/tsconfig.json"
64
64
  },
65
+ {
66
+ "path": "../../editor-plugin-user-intent/afm-jira/tsconfig.json"
67
+ },
65
68
  {
66
69
  "path": "../../editor-plugin-width/afm-jira/tsconfig.json"
67
70
  },
@@ -62,6 +62,9 @@
62
62
  {
63
63
  "path": "../../editor-plugin-selection/afm-passionfruit/tsconfig.json"
64
64
  },
65
+ {
66
+ "path": "../../editor-plugin-user-intent/afm-passionfruit/tsconfig.json"
67
+ },
65
68
  {
66
69
  "path": "../../editor-plugin-width/afm-passionfruit/tsconfig.json"
67
70
  },
@@ -62,6 +62,9 @@
62
62
  {
63
63
  "path": "../../editor-plugin-selection/afm-post-office/tsconfig.json"
64
64
  },
65
+ {
66
+ "path": "../../editor-plugin-user-intent/afm-post-office/tsconfig.json"
67
+ },
65
68
  {
66
69
  "path": "../../editor-plugin-width/afm-post-office/tsconfig.json"
67
70
  },
@@ -62,6 +62,9 @@
62
62
  {
63
63
  "path": "../../editor-plugin-selection/afm-rovo-extension/tsconfig.json"
64
64
  },
65
+ {
66
+ "path": "../../editor-plugin-user-intent/afm-rovo-extension/tsconfig.json"
67
+ },
65
68
  {
66
69
  "path": "../../editor-plugin-width/afm-rovo-extension/tsconfig.json"
67
70
  },
@@ -62,6 +62,9 @@
62
62
  {
63
63
  "path": "../../editor-plugin-selection/afm-townsquare/tsconfig.json"
64
64
  },
65
+ {
66
+ "path": "../../editor-plugin-user-intent/afm-townsquare/tsconfig.json"
67
+ },
65
68
  {
66
69
  "path": "../../editor-plugin-width/afm-townsquare/tsconfig.json"
67
70
  },
@@ -25,6 +25,7 @@ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
25
25
  var _utils = require("@atlaskit/editor-tables/utils");
26
26
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
27
27
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
28
+ var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
28
29
  var _commandsWithAnalytics = require("../pm-plugins/commands/commands-with-analytics");
29
30
  var _misc = require("../pm-plugins/commands/misc");
30
31
  var _tableAnalytics = require("../pm-plugins/table-analytics");
@@ -270,13 +271,19 @@ var TableResizer = exports.TableResizer = function TableResizer(_ref) {
270
271
  tr.setMeta(_tableAnalytics.META_KEYS.OVERFLOW_TRIGGER, {
271
272
  name: _analytics.TABLE_OVERFLOW_CHANGE_TRIGGER.RESIZED
272
273
  });
274
+ if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_block_menu', 'isEnabled', true)) {
275
+ var _pluginInjectionApi$u;
276
+ pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$u = pluginInjectionApi.userIntent) === null || _pluginInjectionApi$u === void 0 || _pluginInjectionApi$u.commands.setCurrentUserIntent('resizing')({
277
+ tr: tr
278
+ });
279
+ }
273
280
  dispatch(tr);
274
281
  var visibleGuidelines = getVisibleGuidelines(isTableScalingEnabled ? (0, _guidelines.defaultGuidelinesForPreserveTable)(_guidelines.PRESERVE_TABLE_GUIDELINES_LENGTH_OFFSET, isFullWidthModeEnabled ? lineLength + 2 * getPadding(containerWidth) : containerWidth, excludeGuidelineConfig) : _guidelines.defaultGuidelines, containerWidth, lineLength, Boolean(isTableScalingEnabled), Boolean(isFullWidthModeEnabled));
275
282
  setSnappingEnabled(displayGuideline(visibleGuidelines));
276
283
  if (onResizeStart) {
277
284
  onResizeStart();
278
285
  }
279
- }, [startMeasure, editorView, displayGapCursor, node.attrs.localId, tableRef, isTableScalingEnabled, excludeGuidelineConfig, containerWidth, lineLength, displayGuideline, onResizeStart, isFullWidthModeEnabled]);
286
+ }, [startMeasure, editorView, displayGapCursor, node.attrs.localId, tableRef, isTableScalingEnabled, excludeGuidelineConfig, containerWidth, lineLength, displayGuideline, onResizeStart, isFullWidthModeEnabled, pluginInjectionApi]);
280
287
  var handleResize = (0, _react.useCallback)(
281
288
  // Ignored via go/ees005
282
289
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -341,6 +348,12 @@ var TableResizer = exports.TableResizer = function TableResizer(_ref) {
341
348
  tableRef: null
342
349
  });
343
350
  tr.setMeta('is-resizer-resizing', false);
351
+ if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_block_menu', 'isEnabled', true)) {
352
+ var _pluginInjectionApi$u2;
353
+ pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$u2 = pluginInjectionApi.userIntent) === null || _pluginInjectionApi$u2 === void 0 || _pluginInjectionApi$u2.commands.setCurrentUserIntent('default')({
354
+ tr: tr
355
+ });
356
+ }
344
357
  var frameRateSamples = endMeasure();
345
358
  if (frameRateSamples.length > 0) {
346
359
  var resizeFrameRatePayloads = (0, _analytics2.generateResizeFrameRatePayloads)({
@@ -265,13 +265,13 @@ var tablePlugin = function tablePlugin(_ref) {
265
265
  })
266
266
  }, {
267
267
  name: 'tableHeader',
268
- node: _adfSchema.tableHeaderWithNestedTable
268
+ node: (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.tableHeaderWithLocalId : _adfSchema.tableHeaderWithNestedTable
269
269
  }, {
270
270
  name: 'tableRow',
271
- node: _adfSchema.tableRowWithNestedTable
271
+ node: (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.tableRowWithLocalId : _adfSchema.tableRowWithNestedTable
272
272
  }, {
273
273
  name: 'tableCell',
274
- node: _adfSchema.tableCellWithNestedTable
274
+ node: (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.tableCellWithLocalId : _adfSchema.tableCellWithNestedTable
275
275
  }] : [{
276
276
  name: 'table',
277
277
  node: (0, _toDOM.tableNodeSpecWithFixedToDOM)({
@@ -15,6 +15,7 @@ import { akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFul
15
15
  import { findTable } from '@atlaskit/editor-tables/utils';
16
16
  import { fg } from '@atlaskit/platform-feature-flags';
17
17
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
18
+ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
18
19
  import { setTableAlignmentWithTableContentWithPosWithAnalytics } from '../pm-plugins/commands/commands-with-analytics';
19
20
  import { updateWidthToWidest } from '../pm-plugins/commands/misc';
20
21
  import { META_KEYS } from '../pm-plugins/table-analytics';
@@ -265,13 +266,19 @@ export const TableResizer = ({
265
266
  tr.setMeta(META_KEYS.OVERFLOW_TRIGGER, {
266
267
  name: TABLE_OVERFLOW_CHANGE_TRIGGER.RESIZED
267
268
  });
269
+ if (expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true)) {
270
+ var _pluginInjectionApi$u;
271
+ pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$u = pluginInjectionApi.userIntent) === null || _pluginInjectionApi$u === void 0 ? void 0 : _pluginInjectionApi$u.commands.setCurrentUserIntent('resizing')({
272
+ tr
273
+ });
274
+ }
268
275
  dispatch(tr);
269
276
  const visibleGuidelines = getVisibleGuidelines(isTableScalingEnabled ? defaultGuidelinesForPreserveTable(PRESERVE_TABLE_GUIDELINES_LENGTH_OFFSET, isFullWidthModeEnabled ? lineLength + 2 * getPadding(containerWidth) : containerWidth, excludeGuidelineConfig) : defaultGuidelines, containerWidth, lineLength, Boolean(isTableScalingEnabled), Boolean(isFullWidthModeEnabled));
270
277
  setSnappingEnabled(displayGuideline(visibleGuidelines));
271
278
  if (onResizeStart) {
272
279
  onResizeStart();
273
280
  }
274
- }, [startMeasure, editorView, displayGapCursor, node.attrs.localId, tableRef, isTableScalingEnabled, excludeGuidelineConfig, containerWidth, lineLength, displayGuideline, onResizeStart, isFullWidthModeEnabled]);
281
+ }, [startMeasure, editorView, displayGapCursor, node.attrs.localId, tableRef, isTableScalingEnabled, excludeGuidelineConfig, containerWidth, lineLength, displayGuideline, onResizeStart, isFullWidthModeEnabled, pluginInjectionApi]);
275
282
  const handleResize = useCallback(
276
283
  // Ignored via go/ees005
277
284
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -338,6 +345,12 @@ export const TableResizer = ({
338
345
  tableRef: null
339
346
  });
340
347
  tr.setMeta('is-resizer-resizing', false);
348
+ if (expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true)) {
349
+ var _pluginInjectionApi$u2;
350
+ pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$u2 = pluginInjectionApi.userIntent) === null || _pluginInjectionApi$u2 === void 0 ? void 0 : _pluginInjectionApi$u2.commands.setCurrentUserIntent('default')({
351
+ tr
352
+ });
353
+ }
341
354
  const frameRateSamples = endMeasure();
342
355
  if (frameRateSamples.length > 0) {
343
356
  const resizeFrameRatePayloads = generateResizeFrameRatePayloads({
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect } from 'react';
2
- import { tableCell, tableCellWithNestedTable, tableHeader, tableHeaderWithNestedTable, tableRow, tableRowWithNestedTable } from '@atlaskit/adf-schema';
2
+ import { tableCell, tableCellWithNestedTable, tableHeader, tableHeaderWithLocalId, tableHeaderWithNestedTable, tableRow, tableRowWithNestedTable, tableRowWithLocalId, tableCellWithLocalId } from '@atlaskit/adf-schema';
3
3
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, TABLE_ACTION } from '@atlaskit/editor-common/analytics';
4
4
  import { browser } from '@atlaskit/editor-common/browser';
5
5
  import { ErrorBoundary } from '@atlaskit/editor-common/error-boundary';
@@ -254,13 +254,13 @@ const tablePlugin = ({
254
254
  })
255
255
  }, {
256
256
  name: 'tableHeader',
257
- node: tableHeaderWithNestedTable
257
+ node: fg('platform_editor_adf_with_localid') ? tableHeaderWithLocalId : tableHeaderWithNestedTable
258
258
  }, {
259
259
  name: 'tableRow',
260
- node: tableRowWithNestedTable
260
+ node: fg('platform_editor_adf_with_localid') ? tableRowWithLocalId : tableRowWithNestedTable
261
261
  }, {
262
262
  name: 'tableCell',
263
- node: tableCellWithNestedTable
263
+ node: fg('platform_editor_adf_with_localid') ? tableCellWithLocalId : tableCellWithNestedTable
264
264
  }] : [{
265
265
  name: 'table',
266
266
  node: tableNodeSpecWithFixedToDOM({
@@ -19,6 +19,7 @@ import { akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFul
19
19
  import { findTable } from '@atlaskit/editor-tables/utils';
20
20
  import { fg } from '@atlaskit/platform-feature-flags';
21
21
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
22
+ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
22
23
  import { setTableAlignmentWithTableContentWithPosWithAnalytics } from '../pm-plugins/commands/commands-with-analytics';
23
24
  import { updateWidthToWidest } from '../pm-plugins/commands/misc';
24
25
  import { META_KEYS } from '../pm-plugins/table-analytics';
@@ -261,13 +262,19 @@ export var TableResizer = function TableResizer(_ref) {
261
262
  tr.setMeta(META_KEYS.OVERFLOW_TRIGGER, {
262
263
  name: TABLE_OVERFLOW_CHANGE_TRIGGER.RESIZED
263
264
  });
265
+ if (expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true)) {
266
+ var _pluginInjectionApi$u;
267
+ pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$u = pluginInjectionApi.userIntent) === null || _pluginInjectionApi$u === void 0 || _pluginInjectionApi$u.commands.setCurrentUserIntent('resizing')({
268
+ tr: tr
269
+ });
270
+ }
264
271
  dispatch(tr);
265
272
  var visibleGuidelines = getVisibleGuidelines(isTableScalingEnabled ? defaultGuidelinesForPreserveTable(PRESERVE_TABLE_GUIDELINES_LENGTH_OFFSET, isFullWidthModeEnabled ? lineLength + 2 * getPadding(containerWidth) : containerWidth, excludeGuidelineConfig) : defaultGuidelines, containerWidth, lineLength, Boolean(isTableScalingEnabled), Boolean(isFullWidthModeEnabled));
266
273
  setSnappingEnabled(displayGuideline(visibleGuidelines));
267
274
  if (onResizeStart) {
268
275
  onResizeStart();
269
276
  }
270
- }, [startMeasure, editorView, displayGapCursor, node.attrs.localId, tableRef, isTableScalingEnabled, excludeGuidelineConfig, containerWidth, lineLength, displayGuideline, onResizeStart, isFullWidthModeEnabled]);
277
+ }, [startMeasure, editorView, displayGapCursor, node.attrs.localId, tableRef, isTableScalingEnabled, excludeGuidelineConfig, containerWidth, lineLength, displayGuideline, onResizeStart, isFullWidthModeEnabled, pluginInjectionApi]);
271
278
  var handleResize = useCallback(
272
279
  // Ignored via go/ees005
273
280
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -332,6 +339,12 @@ export var TableResizer = function TableResizer(_ref) {
332
339
  tableRef: null
333
340
  });
334
341
  tr.setMeta('is-resizer-resizing', false);
342
+ if (expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true)) {
343
+ var _pluginInjectionApi$u2;
344
+ pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$u2 = pluginInjectionApi.userIntent) === null || _pluginInjectionApi$u2 === void 0 || _pluginInjectionApi$u2.commands.setCurrentUserIntent('default')({
345
+ tr: tr
346
+ });
347
+ }
335
348
  var frameRateSamples = endMeasure();
336
349
  if (frameRateSamples.length > 0) {
337
350
  var resizeFrameRatePayloads = generateResizeFrameRatePayloads({
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  import React, { useEffect } from 'react';
5
- import { tableCell, tableCellWithNestedTable, tableHeader, tableHeaderWithNestedTable, tableRow, tableRowWithNestedTable } from '@atlaskit/adf-schema';
5
+ import { tableCell, tableCellWithNestedTable, tableHeader, tableHeaderWithLocalId, tableHeaderWithNestedTable, tableRow, tableRowWithNestedTable, tableRowWithLocalId, tableCellWithLocalId } from '@atlaskit/adf-schema';
6
6
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, TABLE_ACTION } from '@atlaskit/editor-common/analytics';
7
7
  import { browser } from '@atlaskit/editor-common/browser';
8
8
  import { ErrorBoundary } from '@atlaskit/editor-common/error-boundary';
@@ -257,13 +257,13 @@ var tablePlugin = function tablePlugin(_ref) {
257
257
  })
258
258
  }, {
259
259
  name: 'tableHeader',
260
- node: tableHeaderWithNestedTable
260
+ node: fg('platform_editor_adf_with_localid') ? tableHeaderWithLocalId : tableHeaderWithNestedTable
261
261
  }, {
262
262
  name: 'tableRow',
263
- node: tableRowWithNestedTable
263
+ node: fg('platform_editor_adf_with_localid') ? tableRowWithLocalId : tableRowWithNestedTable
264
264
  }, {
265
265
  name: 'tableCell',
266
- node: tableCellWithNestedTable
266
+ node: fg('platform_editor_adf_with_localid') ? tableCellWithLocalId : tableCellWithNestedTable
267
267
  }] : [{
268
268
  name: 'table',
269
269
  node: tableNodeSpecWithFixedToDOM({
@@ -11,6 +11,7 @@ import type { GuidelinePlugin } from '@atlaskit/editor-plugin-guideline';
11
11
  import type { InteractionPlugin } from '@atlaskit/editor-plugin-interaction';
12
12
  import type { LimitedModePlugin } from '@atlaskit/editor-plugin-limited-mode';
13
13
  import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
14
+ import type { UserIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
14
15
  import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
15
16
  import type { PluginConfig, TableSharedState } from './types';
16
17
  export interface TablePluginOptions {
@@ -51,7 +52,8 @@ export type TablePluginDependencies = [
51
52
  OptionalPlugin<EditorViewModePlugin>,
52
53
  OptionalPlugin<FeatureFlagsPlugin>,
53
54
  OptionalPlugin<ExtensionPlugin>,
54
- OptionalPlugin<InteractionPlugin>
55
+ OptionalPlugin<InteractionPlugin>,
56
+ OptionalPlugin<UserIntentPlugin>
55
57
  ];
56
58
  export type TablePlugin = NextEditorPlugin<'table', {
57
59
  pluginConfiguration: TablePluginOptions | undefined;
@@ -11,6 +11,7 @@ import type { GuidelinePlugin } from '@atlaskit/editor-plugin-guideline';
11
11
  import type { InteractionPlugin } from '@atlaskit/editor-plugin-interaction';
12
12
  import type { LimitedModePlugin } from '@atlaskit/editor-plugin-limited-mode';
13
13
  import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
14
+ import type { UserIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
14
15
  import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
15
16
  import type { PluginConfig, TableSharedState } from './types';
16
17
  export interface TablePluginOptions {
@@ -51,7 +52,8 @@ export type TablePluginDependencies = [
51
52
  OptionalPlugin<EditorViewModePlugin>,
52
53
  OptionalPlugin<FeatureFlagsPlugin>,
53
54
  OptionalPlugin<ExtensionPlugin>,
54
- OptionalPlugin<InteractionPlugin>
55
+ OptionalPlugin<InteractionPlugin>,
56
+ OptionalPlugin<UserIntentPlugin>
55
57
  ];
56
58
  export type TablePlugin = NextEditorPlugin<'table', {
57
59
  pluginConfiguration: TablePluginOptions | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "12.2.0",
3
+ "version": "12.2.1",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -37,11 +37,12 @@
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.7",
40
+ "@atlaskit/editor-plugin-extension": "6.1.8",
41
41
  "@atlaskit/editor-plugin-guideline": "^3.0.0",
42
42
  "@atlaskit/editor-plugin-interaction": "^5.0.0",
43
- "@atlaskit/editor-plugin-limited-mode": "^0.0.1",
43
+ "@atlaskit/editor-plugin-limited-mode": "^0.0.2",
44
44
  "@atlaskit/editor-plugin-selection": "^3.0.0",
45
+ "@atlaskit/editor-plugin-user-intent": "^1.1.0",
45
46
  "@atlaskit/editor-plugin-width": "^4.0.0",
46
47
  "@atlaskit/editor-prosemirror": "7.0.0",
47
48
  "@atlaskit/editor-shared-styles": "^3.6.0",
@@ -56,7 +57,7 @@
56
57
  "@atlaskit/primitives": "^14.11.0",
57
58
  "@atlaskit/react-ufo": "^4.3.0",
58
59
  "@atlaskit/theme": "^19.0.0",
59
- "@atlaskit/tmp-editor-statsig": "^10.0.0",
60
+ "@atlaskit/tmp-editor-statsig": "^11.0.0",
60
61
  "@atlaskit/toggle": "^15.1.0",
61
62
  "@atlaskit/tokens": "^6.0.0",
62
63
  "@atlaskit/tooltip": "^20.4.0",
@@ -176,6 +177,9 @@
176
177
  },
177
178
  "platform_editor_nodevisibility_resize_sync": {
178
179
  "type": "boolean"
180
+ },
181
+ "platform_editor_adf_with_localid": {
182
+ "type": "boolean"
179
183
  }
180
184
  }
181
185
  }
@@ -36,6 +36,7 @@ import {
36
36
  import { findTable } from '@atlaskit/editor-tables/utils';
37
37
  import { fg } from '@atlaskit/platform-feature-flags';
38
38
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
39
+ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
39
40
  import { token } from '@atlaskit/tokens';
40
41
 
41
42
  import { setTableAlignmentWithTableContentWithPosWithAnalytics } from '../pm-plugins/commands/commands-with-analytics';
@@ -435,6 +436,10 @@ export const TableResizer = ({
435
436
  name: TABLE_OVERFLOW_CHANGE_TRIGGER.RESIZED,
436
437
  });
437
438
 
439
+ if (expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true)) {
440
+ pluginInjectionApi?.userIntent?.commands.setCurrentUserIntent('resizing')({ tr });
441
+ }
442
+
438
443
  dispatch(tr);
439
444
 
440
445
  const visibleGuidelines = getVisibleGuidelines(
@@ -468,6 +473,7 @@ export const TableResizer = ({
468
473
  displayGuideline,
469
474
  onResizeStart,
470
475
  isFullWidthModeEnabled,
476
+ pluginInjectionApi,
471
477
  ]);
472
478
 
473
479
  const handleResize = useCallback(
@@ -610,6 +616,9 @@ export const TableResizer = ({
610
616
  tableRef: null,
611
617
  });
612
618
  tr.setMeta('is-resizer-resizing', false);
619
+ if (expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true)) {
620
+ pluginInjectionApi?.userIntent?.commands.setCurrentUserIntent('default')({ tr });
621
+ }
613
622
  const frameRateSamples = endMeasure();
614
623
 
615
624
  if (frameRateSamples.length > 0) {
@@ -234,7 +234,7 @@ export const insertColgroupFromNode = (
234
234
 
235
235
  colgroup = renderColgroupFromNode(
236
236
  table,
237
- isTableScalingEnabled ? (tableRef ?? undefined) : undefined,
237
+ isTableScalingEnabled ? tableRef ?? undefined : undefined,
238
238
  shouldUseIncreasedScalingPercent,
239
239
  isCommentEditor,
240
240
  );
@@ -4,9 +4,12 @@ import {
4
4
  tableCell,
5
5
  tableCellWithNestedTable,
6
6
  tableHeader,
7
+ tableHeaderWithLocalId,
7
8
  tableHeaderWithNestedTable,
8
9
  tableRow,
9
10
  tableRowWithNestedTable,
11
+ tableRowWithLocalId,
12
+ tableCellWithLocalId,
10
13
  } from '@atlaskit/adf-schema';
11
14
  import {
12
15
  ACTION,
@@ -337,9 +340,24 @@ const tablePlugin: TablePlugin = ({ config: options, api }) => {
337
340
  isChromelessEditor,
338
341
  }),
339
342
  },
340
- { name: 'tableHeader', node: tableHeaderWithNestedTable },
341
- { name: 'tableRow', node: tableRowWithNestedTable },
342
- { name: 'tableCell', node: tableCellWithNestedTable },
343
+ {
344
+ name: 'tableHeader',
345
+ node: fg('platform_editor_adf_with_localid')
346
+ ? tableHeaderWithLocalId
347
+ : tableHeaderWithNestedTable,
348
+ },
349
+ {
350
+ name: 'tableRow',
351
+ node: fg('platform_editor_adf_with_localid')
352
+ ? tableRowWithLocalId
353
+ : tableRowWithNestedTable,
354
+ },
355
+ {
356
+ name: 'tableCell',
357
+ node: fg('platform_editor_adf_with_localid')
358
+ ? tableCellWithLocalId
359
+ : tableCellWithNestedTable,
360
+ },
343
361
  ]
344
362
  : [
345
363
  {
@@ -17,6 +17,7 @@ import type { GuidelinePlugin } from '@atlaskit/editor-plugin-guideline';
17
17
  import type { InteractionPlugin } from '@atlaskit/editor-plugin-interaction';
18
18
  import type { LimitedModePlugin } from '@atlaskit/editor-plugin-limited-mode';
19
19
  import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
20
+ import type { UserIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
20
21
  import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
21
22
 
22
23
  import type { PluginConfig, TableSharedState } from './types';
@@ -86,6 +87,7 @@ export type TablePluginDependencies = [
86
87
  OptionalPlugin<FeatureFlagsPlugin>,
87
88
  OptionalPlugin<ExtensionPlugin>,
88
89
  OptionalPlugin<InteractionPlugin>,
90
+ OptionalPlugin<UserIntentPlugin>,
89
91
  ];
90
92
 
91
93
  export type TablePlugin = NextEditorPlugin<
package/tsconfig.app.json CHANGED
@@ -77,6 +77,9 @@
77
77
  {
78
78
  "path": "../editor-plugin-selection/tsconfig.app.json"
79
79
  },
80
+ {
81
+ "path": "../editor-plugin-user-intent/tsconfig.app.json"
82
+ },
80
83
  {
81
84
  "path": "../editor-plugin-width/tsconfig.app.json"
82
85
  },