@atlaskit/editor-plugin-table 16.2.0 → 16.3.0
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,16 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 16.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`814909b91111b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/814909b91111b) -
|
|
8
|
+
[ux] EDITOR-4459 Set dragAndDropEnabled by default in tablesPlugin
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 16.2.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
package/dist/cjs/tablePlugin.js
CHANGED
|
@@ -67,12 +67,16 @@ var TABLE_WIDTH_INFO_TIMEOUT = 10000;
|
|
|
67
67
|
* from `@atlaskit/editor-core`.
|
|
68
68
|
*/
|
|
69
69
|
var tablePlugin = function tablePlugin(_ref) {
|
|
70
|
-
var _api$analytics, _options$getEditorFea, _options$getEditorFea2;
|
|
71
|
-
var
|
|
70
|
+
var _config$tableOptions, _api$analytics, _options$getEditorFea, _options$getEditorFea2;
|
|
71
|
+
var config = _ref.config,
|
|
72
72
|
api = _ref.api;
|
|
73
73
|
var editorViewRef = {
|
|
74
74
|
current: null
|
|
75
75
|
};
|
|
76
|
+
var options = _objectSpread(_objectSpread({}, config), {}, {
|
|
77
|
+
tableOptions: (_config$tableOptions = config === null || config === void 0 ? void 0 : config.tableOptions) !== null && _config$tableOptions !== void 0 ? _config$tableOptions : {},
|
|
78
|
+
dragAndDropEnabled: (0, _platformFeatureFlags.fg)('platform_editor_enable_table_dnd') ? true : config === null || config === void 0 ? void 0 : config.dragAndDropEnabled
|
|
79
|
+
});
|
|
76
80
|
var defaultGetEditorContainerWidth = function defaultGetEditorContainerWidth() {
|
|
77
81
|
var _api$width$sharedStat, _api$width, _document$body$offset, _document;
|
|
78
82
|
return (_api$width$sharedStat = api === null || api === void 0 || (_api$width = api.width) === null || _api$width === void 0 ? void 0 : _api$width.sharedState.currentState()) !== null && _api$width$sharedStat !== void 0 ? _api$width$sharedStat : {
|
|
@@ -53,13 +53,18 @@ const TABLE_WIDTH_INFO_TIMEOUT = 10000;
|
|
|
53
53
|
* from `@atlaskit/editor-core`.
|
|
54
54
|
*/
|
|
55
55
|
const tablePlugin = ({
|
|
56
|
-
config
|
|
56
|
+
config,
|
|
57
57
|
api
|
|
58
58
|
}) => {
|
|
59
|
-
var _api$analytics, _options$getEditorFea, _options$getEditorFea2;
|
|
59
|
+
var _config$tableOptions, _api$analytics, _options$getEditorFea, _options$getEditorFea2;
|
|
60
60
|
const editorViewRef = {
|
|
61
61
|
current: null
|
|
62
62
|
};
|
|
63
|
+
const options = {
|
|
64
|
+
...config,
|
|
65
|
+
tableOptions: (_config$tableOptions = config === null || config === void 0 ? void 0 : config.tableOptions) !== null && _config$tableOptions !== void 0 ? _config$tableOptions : {},
|
|
66
|
+
dragAndDropEnabled: fg('platform_editor_enable_table_dnd') ? true : config === null || config === void 0 ? void 0 : config.dragAndDropEnabled
|
|
67
|
+
};
|
|
63
68
|
const defaultGetEditorContainerWidth = () => {
|
|
64
69
|
var _api$width$sharedStat, _api$width, _document$body$offset, _document, _document$body;
|
|
65
70
|
return (_api$width$sharedStat = api === null || api === void 0 ? void 0 : (_api$width = api.width) === null || _api$width === void 0 ? void 0 : _api$width.sharedState.currentState()) !== null && _api$width$sharedStat !== void 0 ? _api$width$sharedStat : {
|
package/dist/esm/tablePlugin.js
CHANGED
|
@@ -58,12 +58,16 @@ var TABLE_WIDTH_INFO_TIMEOUT = 10000;
|
|
|
58
58
|
* from `@atlaskit/editor-core`.
|
|
59
59
|
*/
|
|
60
60
|
var tablePlugin = function tablePlugin(_ref) {
|
|
61
|
-
var _api$analytics, _options$getEditorFea, _options$getEditorFea2;
|
|
62
|
-
var
|
|
61
|
+
var _config$tableOptions, _api$analytics, _options$getEditorFea, _options$getEditorFea2;
|
|
62
|
+
var config = _ref.config,
|
|
63
63
|
api = _ref.api;
|
|
64
64
|
var editorViewRef = {
|
|
65
65
|
current: null
|
|
66
66
|
};
|
|
67
|
+
var options = _objectSpread(_objectSpread({}, config), {}, {
|
|
68
|
+
tableOptions: (_config$tableOptions = config === null || config === void 0 ? void 0 : config.tableOptions) !== null && _config$tableOptions !== void 0 ? _config$tableOptions : {},
|
|
69
|
+
dragAndDropEnabled: fg('platform_editor_enable_table_dnd') ? true : config === null || config === void 0 ? void 0 : config.dragAndDropEnabled
|
|
70
|
+
});
|
|
67
71
|
var defaultGetEditorContainerWidth = function defaultGetEditorContainerWidth() {
|
|
68
72
|
var _api$width$sharedStat, _api$width, _document$body$offset, _document;
|
|
69
73
|
return (_api$width$sharedStat = api === null || api === void 0 || (_api$width = api.width) === null || _api$width === void 0 ? void 0 : _api$width.sharedState.currentState()) !== null && _api$width$sharedStat !== void 0 ? _api$width$sharedStat : {
|
|
@@ -17,6 +17,11 @@ import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
|
17
17
|
import type { PluginConfig, TableSharedState } from './types';
|
|
18
18
|
export interface TablePluginOptions {
|
|
19
19
|
allowContextualMenu?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-49683 Internal documentation for deprecation (no external access)}
|
|
22
|
+
* Deprecating this prop to enable drag and drop in tables by default.
|
|
23
|
+
* See {@link https://hello.atlassian.net/wiki/spaces/EDITOR/pages/6312469305/Deprecating+legacy+table+controls} for rollout plan
|
|
24
|
+
**/
|
|
20
25
|
dragAndDropEnabled?: boolean;
|
|
21
26
|
fullWidthEnabled?: boolean;
|
|
22
27
|
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
@@ -17,6 +17,11 @@ import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
|
17
17
|
import type { PluginConfig, TableSharedState } from './types';
|
|
18
18
|
export interface TablePluginOptions {
|
|
19
19
|
allowContextualMenu?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-49683 Internal documentation for deprecation (no external access)}
|
|
22
|
+
* Deprecating this prop to enable drag and drop in tables by default.
|
|
23
|
+
* See {@link https://hello.atlassian.net/wiki/spaces/EDITOR/pages/6312469305/Deprecating+legacy+table+controls} for rollout plan
|
|
24
|
+
**/
|
|
20
25
|
dragAndDropEnabled?: boolean;
|
|
21
26
|
fullWidthEnabled?: boolean;
|
|
22
27
|
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.3.0",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
56
56
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
|
|
57
57
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
58
|
-
"@atlaskit/primitives": "^17.
|
|
58
|
+
"@atlaskit/primitives": "^17.1.0",
|
|
59
59
|
"@atlaskit/theme": "^21.0.0",
|
|
60
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
60
|
+
"@atlaskit/tmp-editor-statsig": "^16.22.0",
|
|
61
61
|
"@atlaskit/toggle": "^15.2.0",
|
|
62
62
|
"@atlaskit/tokens": "^9.1.0",
|
|
63
|
-
"@atlaskit/tooltip": "^20.
|
|
63
|
+
"@atlaskit/tooltip": "^20.14.0",
|
|
64
64
|
"@babel/runtime": "^7.0.0",
|
|
65
65
|
"@emotion/react": "^11.7.1",
|
|
66
66
|
"classnames": "^2.2.5",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"uuid": "^3.1.0"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"@atlaskit/editor-common": "^111.
|
|
73
|
+
"@atlaskit/editor-common": "^111.8.0",
|
|
74
74
|
"react": "^18.2.0",
|
|
75
75
|
"react-dom": "^18.2.0",
|
|
76
76
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -174,6 +174,9 @@
|
|
|
174
174
|
},
|
|
175
175
|
"platform_editor_table_less_padding_fix": {
|
|
176
176
|
"type": "boolean"
|
|
177
|
+
},
|
|
178
|
+
"platform_editor_enable_table_dnd": {
|
|
179
|
+
"type": "boolean"
|
|
177
180
|
}
|
|
178
181
|
}
|
|
179
182
|
}
|