@atlaskit/editor-plugin-table 10.12.2 → 10.12.4
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 +12 -0
- package/dist/cjs/ui/toolbar.js +2 -3
- package/dist/es2019/ui/toolbar.js +2 -3
- package/dist/esm/ui/toolbar.js +2 -3
- package/package.json +6 -9
- package/src/ui/toolbar.tsx +2 -9
package/CHANGELOG.md
CHANGED
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -494,8 +494,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(getE
|
|
|
494
494
|
onBlur: (0, _commands.clearHoverSelection)()
|
|
495
495
|
};
|
|
496
496
|
};
|
|
497
|
-
var shouldGroupWithoutSeparators = (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')
|
|
498
|
-
|
|
497
|
+
var shouldGroupWithoutSeparators = (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1');
|
|
499
498
|
// testId is required to show focus on trigger button on ESC key press
|
|
500
499
|
// see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
|
|
501
500
|
var overflowDropdownTestId = (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_8') ? 'table-overflow-dropdown-trigger' : undefined;
|
|
@@ -649,7 +648,7 @@ var getColumnSettingItems = function getColumnSettingItems(editorState, editorVi
|
|
|
649
648
|
disabled: !wouldChange
|
|
650
649
|
});
|
|
651
650
|
}
|
|
652
|
-
if (items.length !== 0 &&
|
|
651
|
+
if (items.length !== 0 && !(0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
|
|
653
652
|
items.push({
|
|
654
653
|
type: 'separator'
|
|
655
654
|
});
|
|
@@ -464,8 +464,7 @@ export const getToolbarConfig = (getEditorContainerWidth, api, editorAnalyticsAP
|
|
|
464
464
|
onFocus: hoverTable(isInDanger, isSelected),
|
|
465
465
|
onBlur: clearHoverSelection()
|
|
466
466
|
});
|
|
467
|
-
const shouldGroupWithoutSeparators = editorExperiment('platform_editor_controls', 'variant1')
|
|
468
|
-
|
|
467
|
+
const shouldGroupWithoutSeparators = editorExperiment('platform_editor_controls', 'variant1');
|
|
469
468
|
// testId is required to show focus on trigger button on ESC key press
|
|
470
469
|
// see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
|
|
471
470
|
const overflowDropdownTestId = fg('platform_editor_controls_patch_8') ? 'table-overflow-dropdown-trigger' : undefined;
|
|
@@ -605,7 +604,7 @@ const getColumnSettingItems = (editorState, editorView, {
|
|
|
605
604
|
disabled: !wouldChange
|
|
606
605
|
});
|
|
607
606
|
}
|
|
608
|
-
if (items.length !== 0 &&
|
|
607
|
+
if (items.length !== 0 && !editorExperiment('platform_editor_controls', 'variant1')) {
|
|
609
608
|
items.push({
|
|
610
609
|
type: 'separator'
|
|
611
610
|
});
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -487,8 +487,7 @@ export var getToolbarConfig = function getToolbarConfig(getEditorContainerWidth,
|
|
|
487
487
|
onBlur: clearHoverSelection()
|
|
488
488
|
};
|
|
489
489
|
};
|
|
490
|
-
var shouldGroupWithoutSeparators = editorExperiment('platform_editor_controls', 'variant1')
|
|
491
|
-
|
|
490
|
+
var shouldGroupWithoutSeparators = editorExperiment('platform_editor_controls', 'variant1');
|
|
492
491
|
// testId is required to show focus on trigger button on ESC key press
|
|
493
492
|
// see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
|
|
494
493
|
var overflowDropdownTestId = fg('platform_editor_controls_patch_8') ? 'table-overflow-dropdown-trigger' : undefined;
|
|
@@ -642,7 +641,7 @@ var getColumnSettingItems = function getColumnSettingItems(editorState, editorVi
|
|
|
642
641
|
disabled: !wouldChange
|
|
643
642
|
});
|
|
644
643
|
}
|
|
645
|
-
if (items.length !== 0 &&
|
|
644
|
+
if (items.length !== 0 && !editorExperiment('platform_editor_controls', 'variant1')) {
|
|
646
645
|
items.push({
|
|
647
646
|
type: 'separator'
|
|
648
647
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "10.12.
|
|
3
|
+
"version": "10.12.4",
|
|
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": "^
|
|
35
|
+
"@atlaskit/editor-common": "^107.0.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.
|
|
42
|
+
"@atlaskit/editor-plugin-extension": "5.5.8",
|
|
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": "^
|
|
50
|
+
"@atlaskit/icon": "^27.0.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.8.0",
|
|
57
57
|
"@atlaskit/theme": "^18.0.0",
|
|
58
|
-
"@atlaskit/tmp-editor-statsig": "^7.
|
|
58
|
+
"@atlaskit/tmp-editor-statsig": "^7.1.0",
|
|
59
59
|
"@atlaskit/toggle": "^15.0.0",
|
|
60
|
-
"@atlaskit/tokens": "^5.
|
|
60
|
+
"@atlaskit/tokens": "^5.2.0",
|
|
61
61
|
"@atlaskit/tooltip": "^20.3.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|
|
63
63
|
"@emotion/react": "^11.7.1",
|
|
@@ -199,9 +199,6 @@
|
|
|
199
199
|
"platform_editor_remove_slow_table_transactions": {
|
|
200
200
|
"type": "boolean"
|
|
201
201
|
},
|
|
202
|
-
"platform_editor_controls_patch_6": {
|
|
203
|
-
"type": "boolean"
|
|
204
|
-
},
|
|
205
202
|
"platform_editor_fix_table_resizing_undo": {
|
|
206
203
|
"type": "boolean"
|
|
207
204
|
},
|
package/src/ui/toolbar.tsx
CHANGED
|
@@ -672,10 +672,7 @@ export const getToolbarConfig =
|
|
|
672
672
|
onBlur: clearHoverSelection(),
|
|
673
673
|
});
|
|
674
674
|
|
|
675
|
-
const shouldGroupWithoutSeparators =
|
|
676
|
-
editorExperiment('platform_editor_controls', 'variant1') &&
|
|
677
|
-
fg('platform_editor_controls_patch_6');
|
|
678
|
-
|
|
675
|
+
const shouldGroupWithoutSeparators = editorExperiment('platform_editor_controls', 'variant1');
|
|
679
676
|
// testId is required to show focus on trigger button on ESC key press
|
|
680
677
|
// see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
|
|
681
678
|
const overflowDropdownTestId = fg('platform_editor_controls_patch_8')
|
|
@@ -919,11 +916,7 @@ const getColumnSettingItems = (
|
|
|
919
916
|
});
|
|
920
917
|
}
|
|
921
918
|
|
|
922
|
-
if (
|
|
923
|
-
items.length !== 0 &&
|
|
924
|
-
(!editorExperiment('platform_editor_controls', 'variant1') ||
|
|
925
|
-
!fg('platform_editor_controls_patch_6'))
|
|
926
|
-
) {
|
|
919
|
+
if (items.length !== 0 && !editorExperiment('platform_editor_controls', 'variant1')) {
|
|
927
920
|
items.push({
|
|
928
921
|
type: 'separator',
|
|
929
922
|
});
|