@atlaskit/editor-plugin-table 10.12.5 → 10.12.7

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,17 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 10.12.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 10.12.6
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 10.12.5
4
16
 
5
17
  ### Patch Changes
@@ -497,7 +497,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(getE
497
497
  var shouldGroupWithoutSeparators = (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1');
498
498
  // testId is required to show focus on trigger button on ESC key press
499
499
  // see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
500
- var overflowDropdownTestId = (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_8') ? 'table-overflow-dropdown-trigger' : undefined;
500
+ var overflowDropdownTestId = 'table-overflow-dropdown-trigger';
501
501
  var extensionState = api === null || api === void 0 || (_api$extension = api.extension) === null || _api$extension === void 0 || (_api$extension = _api$extension.sharedState) === null || _api$extension === void 0 ? void 0 : _api$extension.currentState();
502
502
  var extensionApi = api === null || api === void 0 || (_api$extension2 = api.extension) === null || _api$extension2 === void 0 ? void 0 : _api$extension2.actions.api();
503
503
  return {
@@ -467,7 +467,7 @@ export const getToolbarConfig = (getEditorContainerWidth, api, editorAnalyticsAP
467
467
  const shouldGroupWithoutSeparators = editorExperiment('platform_editor_controls', 'variant1');
468
468
  // testId is required to show focus on trigger button on ESC key press
469
469
  // see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
470
- const overflowDropdownTestId = fg('platform_editor_controls_patch_8') ? 'table-overflow-dropdown-trigger' : undefined;
470
+ const overflowDropdownTestId = 'table-overflow-dropdown-trigger';
471
471
  const extensionState = api === null || api === void 0 ? void 0 : (_api$extension = api.extension) === null || _api$extension === void 0 ? void 0 : (_api$extension$shared = _api$extension.sharedState) === null || _api$extension$shared === void 0 ? void 0 : _api$extension$shared.currentState();
472
472
  const extensionApi = api === null || api === void 0 ? void 0 : (_api$extension2 = api.extension) === null || _api$extension2 === void 0 ? void 0 : _api$extension2.actions.api();
473
473
  return {
@@ -490,7 +490,7 @@ export var getToolbarConfig = function getToolbarConfig(getEditorContainerWidth,
490
490
  var shouldGroupWithoutSeparators = editorExperiment('platform_editor_controls', 'variant1');
491
491
  // testId is required to show focus on trigger button on ESC key press
492
492
  // see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
493
- var overflowDropdownTestId = fg('platform_editor_controls_patch_8') ? 'table-overflow-dropdown-trigger' : undefined;
493
+ var overflowDropdownTestId = 'table-overflow-dropdown-trigger';
494
494
  var extensionState = api === null || api === void 0 || (_api$extension = api.extension) === null || _api$extension === void 0 || (_api$extension = _api$extension.sharedState) === null || _api$extension === void 0 ? void 0 : _api$extension.currentState();
495
495
  var extensionApi = api === null || api === void 0 || (_api$extension2 = api.extension) === null || _api$extension2 === void 0 ? void 0 : _api$extension2.actions.api();
496
496
  return {
@@ -1,5 +1,5 @@
1
1
  import type { Schema } from '@atlaskit/editor-prosemirror/model';
2
- import { Slice, Fragment, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
+ import { Slice, Fragment, type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
4
4
  export declare const unwrapContentFromTable: (maybeTable: PMNode) => PMNode | PMNode[];
5
5
  export declare const removeTableFromFirstChild: (node: PMNode, i: number) => PMNode | PMNode[];
@@ -1,5 +1,5 @@
1
1
  import type { Schema } from '@atlaskit/editor-prosemirror/model';
2
- import { Slice, Fragment, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
+ import { Slice, Fragment, type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
4
4
  export declare const unwrapContentFromTable: (maybeTable: PMNode) => PMNode | PMNode[];
5
5
  export declare const removeTableFromFirstChild: (node: PMNode, i: number) => PMNode | PMNode[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "10.12.5",
3
+ "version": "10.12.7",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -32,14 +32,14 @@
32
32
  "@atlaskit/adf-schema": "^47.6.0",
33
33
  "@atlaskit/button": "^23.2.0",
34
34
  "@atlaskit/custom-steps": "^0.11.0",
35
- "@atlaskit/editor-common": "^107.0.0",
35
+ "@atlaskit/editor-common": "^107.1.0",
36
36
  "@atlaskit/editor-palette": "^2.1.0",
37
37
  "@atlaskit/editor-plugin-accessibility-utils": "^2.0.0",
38
38
  "@atlaskit/editor-plugin-analytics": "^2.3.0",
39
39
  "@atlaskit/editor-plugin-batch-attribute-updates": "^2.1.0",
40
40
  "@atlaskit/editor-plugin-content-insertion": "^2.1.0",
41
41
  "@atlaskit/editor-plugin-editor-viewmode": "^4.0.0",
42
- "@atlaskit/editor-plugin-extension": "5.5.9",
42
+ "@atlaskit/editor-plugin-extension": "5.5.11",
43
43
  "@atlaskit/editor-plugin-guideline": "^2.0.0",
44
44
  "@atlaskit/editor-plugin-interaction": "^2.0.0",
45
45
  "@atlaskit/editor-plugin-selection": "^2.2.0",
@@ -47,7 +47,7 @@
47
47
  "@atlaskit/editor-prosemirror": "7.0.0",
48
48
  "@atlaskit/editor-shared-styles": "^3.4.0",
49
49
  "@atlaskit/editor-tables": "^2.9.0",
50
- "@atlaskit/icon": "^27.0.0",
50
+ "@atlaskit/icon": "^27.1.0",
51
51
  "@atlaskit/menu": "^8.0.0",
52
52
  "@atlaskit/platform-feature-flags": "^1.1.0",
53
53
  "@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
@@ -55,9 +55,9 @@
55
55
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
56
56
  "@atlaskit/primitives": "^14.9.0",
57
57
  "@atlaskit/theme": "^18.0.0",
58
- "@atlaskit/tmp-editor-statsig": "^7.2.0",
58
+ "@atlaskit/tmp-editor-statsig": "^8.0.0",
59
59
  "@atlaskit/toggle": "^15.0.0",
60
- "@atlaskit/tokens": "^5.3.0",
60
+ "@atlaskit/tokens": "^5.4.0",
61
61
  "@atlaskit/tooltip": "^20.3.0",
62
62
  "@babel/runtime": "^7.0.0",
63
63
  "@emotion/react": "^11.7.1",
@@ -208,9 +208,6 @@
208
208
  "platform_editor_r18_fix_selection_resync": {
209
209
  "type": "boolean"
210
210
  },
211
- "platform_editor_controls_patch_8": {
212
- "type": "boolean"
213
- },
214
211
  "platform_editor_table_fw_numcol_overflow_fix": {
215
212
  "type": "boolean"
216
213
  },
@@ -1,7 +1,7 @@
1
1
  import { getParentOfTypeCount } from '@atlaskit/editor-common/nesting';
2
2
  import { flatmap, mapChildren, mapSlice } from '@atlaskit/editor-common/utils';
3
3
  import type { Schema } from '@atlaskit/editor-prosemirror/model';
4
- import { Slice, Fragment, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
+ import { Slice, Fragment, type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
5
5
  import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
6
6
  import { flatten, hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
7
7
  import { CellSelection } from '@atlaskit/editor-tables';
@@ -675,9 +675,8 @@ export const getToolbarConfig =
675
675
  const shouldGroupWithoutSeparators = editorExperiment('platform_editor_controls', 'variant1');
676
676
  // testId is required to show focus on trigger button on ESC key press
677
677
  // see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
678
- const overflowDropdownTestId = fg('platform_editor_controls_patch_8')
679
- ? 'table-overflow-dropdown-trigger'
680
- : undefined;
678
+ const overflowDropdownTestId = 'table-overflow-dropdown-trigger';
679
+
681
680
  const extensionState = api?.extension?.sharedState?.currentState();
682
681
  const extensionApi = api?.extension?.actions.api();
683
682