@atlaskit/editor-plugin-table 10.6.11 → 10.7.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 +22 -0
- package/dist/cjs/index.js +6 -0
- package/dist/cjs/tablePlugin.js +2 -2
- package/dist/cjs/ui/toolbar.js +2 -2
- package/dist/es2019/index.js +9 -1
- package/dist/es2019/tablePlugin.js +2 -2
- package/dist/es2019/ui/toolbar.js +2 -2
- package/dist/esm/index.js +9 -1
- package/dist/esm/tablePlugin.js +2 -2
- package/dist/esm/ui/toolbar.js +2 -2
- package/dist/types/index.d.ts +6 -1
- package/dist/types/tablePlugin.d.ts +2 -2
- package/dist/types-ts4.5/index.d.ts +6 -1
- package/dist/types-ts4.5/tablePlugin.d.ts +2 -2
- package/package.json +4 -7
- package/src/index.ts +11 -1
- package/src/tablePlugin.tsx +2 -2
- package/src/ui/toolbar.tsx +6 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 10.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#139216](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/139216)
|
|
8
|
+
[`e8f596d2b1910`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e8f596d2b1910) -
|
|
9
|
+
[ux] Cleaned up platform_editor_controls_patch_1 FG
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 10.7.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#139139](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/139139)
|
|
17
|
+
[`7f6b665d778dd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7f6b665d778dd) -
|
|
18
|
+
[https://product-fabric.atlassian.net/browse/ED-27499](ED-27499) - the new
|
|
19
|
+
`@atlassian/confluence-presets` package with Confluence `full-page` preset is created
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 10.6.11
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -4,6 +4,12 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
+
Object.defineProperty(exports, "tablePlugin", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function get() {
|
|
10
|
+
return _tablePlugin.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
7
13
|
Object.defineProperty(exports, "tablesPlugin", {
|
|
8
14
|
enumerable: true,
|
|
9
15
|
get: function get() {
|
package/dist/cjs/tablePlugin.js
CHANGED
|
@@ -73,7 +73,7 @@ var defaultGetEditorFeatureFlags = function defaultGetEditorFeatureFlags() {
|
|
|
73
73
|
* Table plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
74
74
|
* from `@atlaskit/editor-core`.
|
|
75
75
|
*/
|
|
76
|
-
var
|
|
76
|
+
var tablePlugin = function tablePlugin(_ref) {
|
|
77
77
|
var _api$analytics, _api$accessibilityUti, _options$getEditorFea, _api$analytics2;
|
|
78
78
|
var options = _ref.config,
|
|
79
79
|
api = _ref.api;
|
|
@@ -631,4 +631,4 @@ var tablesPlugin = function tablesPlugin(_ref) {
|
|
|
631
631
|
}
|
|
632
632
|
};
|
|
633
633
|
};
|
|
634
|
-
var _default = exports.default =
|
|
634
|
+
var _default = exports.default = tablePlugin;
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -487,12 +487,12 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(getE
|
|
|
487
487
|
};
|
|
488
488
|
var isNestedTable = (0, _platformFeatureFlags.fg)('platform_editor_use_nested_table_pm_nodes') && (0, _nesting.isSelectionTableNestedInTable)(state);
|
|
489
489
|
var hoverTableProps = function hoverTableProps(isInDanger, isSelected) {
|
|
490
|
-
return
|
|
490
|
+
return {
|
|
491
491
|
onMouseEnter: (0, _commands.hoverTable)(isInDanger, isSelected),
|
|
492
492
|
onMouseLeave: (0, _commands.clearHoverSelection)(),
|
|
493
493
|
onFocus: (0, _commands.hoverTable)(isInDanger, isSelected),
|
|
494
494
|
onBlur: (0, _commands.clearHoverSelection)()
|
|
495
|
-
}
|
|
495
|
+
};
|
|
496
496
|
};
|
|
497
497
|
return {
|
|
498
498
|
title: toolbarTitle,
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/editor/only-export-plugin */
|
|
1
2
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
3
|
// Entry file in package.json
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
// eslint-disable-next-line @atlaskit/editor/only-export-plugin
|
|
6
|
+
export {
|
|
7
|
+
/**
|
|
8
|
+
* @private
|
|
9
|
+
* @deprecated Use {@link tablePlugin} instead.
|
|
10
|
+
*/
|
|
11
|
+
default as tablesPlugin, default as tablePlugin } from './tablePlugin';
|
|
12
|
+
// eslint-disable-next-line @atlaskit/editor/only-export-plugin
|
|
@@ -59,7 +59,7 @@ const defaultGetEditorFeatureFlags = () => ({});
|
|
|
59
59
|
* Table plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
60
60
|
* from `@atlaskit/editor-core`.
|
|
61
61
|
*/
|
|
62
|
-
const
|
|
62
|
+
const tablePlugin = ({
|
|
63
63
|
config: options,
|
|
64
64
|
api
|
|
65
65
|
}) => {
|
|
@@ -628,4 +628,4 @@ const tablesPlugin = ({
|
|
|
628
628
|
}
|
|
629
629
|
};
|
|
630
630
|
};
|
|
631
|
-
export default
|
|
631
|
+
export default tablePlugin;
|
|
@@ -457,12 +457,12 @@ export const getToolbarConfig = (getEditorContainerWidth, api, editorAnalyticsAP
|
|
|
457
457
|
}]
|
|
458
458
|
};
|
|
459
459
|
const isNestedTable = fg('platform_editor_use_nested_table_pm_nodes') && isSelectionTableNestedInTable(state);
|
|
460
|
-
const hoverTableProps = (isInDanger, isSelected) =>
|
|
460
|
+
const hoverTableProps = (isInDanger, isSelected) => ({
|
|
461
461
|
onMouseEnter: hoverTable(isInDanger, isSelected),
|
|
462
462
|
onMouseLeave: clearHoverSelection(),
|
|
463
463
|
onFocus: hoverTable(isInDanger, isSelected),
|
|
464
464
|
onBlur: clearHoverSelection()
|
|
465
|
-
}
|
|
465
|
+
});
|
|
466
466
|
return {
|
|
467
467
|
title: toolbarTitle,
|
|
468
468
|
getDomRef,
|
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/editor/only-export-plugin */
|
|
1
2
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
3
|
// Entry file in package.json
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
// eslint-disable-next-line @atlaskit/editor/only-export-plugin
|
|
6
|
+
export {
|
|
7
|
+
/**
|
|
8
|
+
* @private
|
|
9
|
+
* @deprecated Use {@link tablePlugin} instead.
|
|
10
|
+
*/
|
|
11
|
+
default as tablesPlugin, default as tablePlugin } from './tablePlugin';
|
|
12
|
+
// eslint-disable-next-line @atlaskit/editor/only-export-plugin
|
package/dist/esm/tablePlugin.js
CHANGED
|
@@ -64,7 +64,7 @@ var defaultGetEditorFeatureFlags = function defaultGetEditorFeatureFlags() {
|
|
|
64
64
|
* Table plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
65
65
|
* from `@atlaskit/editor-core`.
|
|
66
66
|
*/
|
|
67
|
-
var
|
|
67
|
+
var tablePlugin = function tablePlugin(_ref) {
|
|
68
68
|
var _api$analytics, _api$accessibilityUti, _options$getEditorFea, _api$analytics2;
|
|
69
69
|
var options = _ref.config,
|
|
70
70
|
api = _ref.api;
|
|
@@ -622,4 +622,4 @@ var tablesPlugin = function tablesPlugin(_ref) {
|
|
|
622
622
|
}
|
|
623
623
|
};
|
|
624
624
|
};
|
|
625
|
-
export default
|
|
625
|
+
export default tablePlugin;
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -479,12 +479,12 @@ export var getToolbarConfig = function getToolbarConfig(getEditorContainerWidth,
|
|
|
479
479
|
};
|
|
480
480
|
var isNestedTable = fg('platform_editor_use_nested_table_pm_nodes') && isSelectionTableNestedInTable(state);
|
|
481
481
|
var hoverTableProps = function hoverTableProps(isInDanger, isSelected) {
|
|
482
|
-
return
|
|
482
|
+
return {
|
|
483
483
|
onMouseEnter: hoverTable(isInDanger, isSelected),
|
|
484
484
|
onMouseLeave: clearHoverSelection(),
|
|
485
485
|
onFocus: hoverTable(isInDanger, isSelected),
|
|
486
486
|
onBlur: clearHoverSelection()
|
|
487
|
-
}
|
|
487
|
+
};
|
|
488
488
|
};
|
|
489
489
|
return {
|
|
490
490
|
title: toolbarTitle,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {
|
|
2
|
+
/**
|
|
3
|
+
* @private
|
|
4
|
+
* @deprecated Use {@link tablePlugin} instead.
|
|
5
|
+
*/
|
|
6
|
+
default as tablesPlugin, default as tablePlugin, } from './tablePlugin';
|
|
2
7
|
export type { TablePlugin, TablePluginOptions } from './tablePluginType';
|
|
@@ -3,5 +3,5 @@ import type { TablePlugin } from './tablePluginType';
|
|
|
3
3
|
* Table plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
4
4
|
* from `@atlaskit/editor-core`.
|
|
5
5
|
*/
|
|
6
|
-
declare const
|
|
7
|
-
export default
|
|
6
|
+
declare const tablePlugin: TablePlugin;
|
|
7
|
+
export default tablePlugin;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {
|
|
2
|
+
/**
|
|
3
|
+
* @private
|
|
4
|
+
* @deprecated Use {@link tablePlugin} instead.
|
|
5
|
+
*/
|
|
6
|
+
default as tablesPlugin, default as tablePlugin, } from './tablePlugin';
|
|
2
7
|
export type { TablePlugin, TablePluginOptions } from './tablePluginType';
|
|
@@ -3,5 +3,5 @@ import type { TablePlugin } from './tablePluginType';
|
|
|
3
3
|
* Table plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
4
4
|
* from `@atlaskit/editor-core`.
|
|
5
5
|
*/
|
|
6
|
-
declare const
|
|
7
|
-
export default
|
|
6
|
+
declare const tablePlugin: TablePlugin;
|
|
7
|
+
export default tablePlugin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.7.1",
|
|
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.0.0",
|
|
34
34
|
"@atlaskit/custom-steps": "^0.11.0",
|
|
35
|
-
"@atlaskit/editor-common": "^103.
|
|
35
|
+
"@atlaskit/editor-common": "^103.4.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.2.0",
|
|
39
39
|
"@atlaskit/editor-plugin-batch-attribute-updates": "^2.1.0",
|
|
40
40
|
"@atlaskit/editor-plugin-content-insertion": "^2.1.0",
|
|
41
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^3.
|
|
42
|
-
"@atlaskit/editor-plugin-extension": "5.2.
|
|
41
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^3.1.0",
|
|
42
|
+
"@atlaskit/editor-plugin-extension": "5.2.4",
|
|
43
43
|
"@atlaskit/editor-plugin-guideline": "^2.0.0",
|
|
44
44
|
"@atlaskit/editor-plugin-selection": "^2.1.0",
|
|
45
45
|
"@atlaskit/editor-plugin-width": "^3.0.0",
|
|
@@ -192,9 +192,6 @@
|
|
|
192
192
|
"platform_editor_nested_tables_cellselection_paste": {
|
|
193
193
|
"type": "boolean"
|
|
194
194
|
},
|
|
195
|
-
"platform_editor_controls_patch_1": {
|
|
196
|
-
"type": "boolean"
|
|
197
|
-
},
|
|
198
195
|
"platform_editor_number_column_sticky_header_broken": {
|
|
199
196
|
"type": "boolean"
|
|
200
197
|
},
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/editor/only-export-plugin */
|
|
1
2
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
3
|
// Entry file in package.json
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
// eslint-disable-next-line @atlaskit/editor/only-export-plugin
|
|
6
|
+
export {
|
|
7
|
+
/**
|
|
8
|
+
* @private
|
|
9
|
+
* @deprecated Use {@link tablePlugin} instead.
|
|
10
|
+
*/
|
|
11
|
+
default as tablesPlugin,
|
|
12
|
+
default as tablePlugin,
|
|
13
|
+
} from './tablePlugin';
|
|
14
|
+
// eslint-disable-next-line @atlaskit/editor/only-export-plugin
|
|
5
15
|
export type { TablePlugin, TablePluginOptions } from './tablePluginType';
|
package/src/tablePlugin.tsx
CHANGED
|
@@ -87,7 +87,7 @@ const defaultGetEditorFeatureFlags = () => ({});
|
|
|
87
87
|
* Table plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
88
88
|
* from `@atlaskit/editor-core`.
|
|
89
89
|
*/
|
|
90
|
-
const
|
|
90
|
+
const tablePlugin: TablePlugin = ({ config: options, api }) => {
|
|
91
91
|
const editorViewRef: Record<'current', EditorView | null> = { current: null };
|
|
92
92
|
const defaultGetEditorContainerWidth: GetEditorContainerWidth = () => {
|
|
93
93
|
return (
|
|
@@ -790,4 +790,4 @@ const tablesPlugin: TablePlugin = ({ config: options, api }) => {
|
|
|
790
790
|
};
|
|
791
791
|
};
|
|
792
792
|
|
|
793
|
-
export default
|
|
793
|
+
export default tablePlugin;
|
package/src/ui/toolbar.tsx
CHANGED
|
@@ -665,15 +665,12 @@ export const getToolbarConfig =
|
|
|
665
665
|
const isNestedTable =
|
|
666
666
|
fg('platform_editor_use_nested_table_pm_nodes') && isSelectionTableNestedInTable(state);
|
|
667
667
|
|
|
668
|
-
const hoverTableProps = (isInDanger?: boolean, isSelected?: boolean) =>
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
onBlur: clearHoverSelection(),
|
|
675
|
-
}
|
|
676
|
-
: undefined;
|
|
668
|
+
const hoverTableProps = (isInDanger?: boolean, isSelected?: boolean) => ({
|
|
669
|
+
onMouseEnter: hoverTable(isInDanger, isSelected),
|
|
670
|
+
onMouseLeave: clearHoverSelection(),
|
|
671
|
+
onFocus: hoverTable(isInDanger, isSelected),
|
|
672
|
+
onBlur: clearHoverSelection(),
|
|
673
|
+
});
|
|
677
674
|
|
|
678
675
|
return {
|
|
679
676
|
title: toolbarTitle,
|