@atlaskit/editor-plugin-table 16.3.1 → 16.3.3
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 +14 -0
- package/dist/cjs/tablePlugin.js +2 -2
- package/dist/es2019/tablePlugin.js +2 -2
- package/dist/esm/tablePlugin.js +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 16.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e225fb5074e28`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e225fb5074e28) -
|
|
8
|
+
[ux] Update logic for enabling drag and drop in tables
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 16.3.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 16.3.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/tablePlugin.js
CHANGED
|
@@ -67,7 +67,7 @@ var TABLE_WIDTH_INFO_TIMEOUT = 10000;
|
|
|
67
67
|
* from `@atlaskit/editor-core`.
|
|
68
68
|
*/
|
|
69
69
|
var tablePlugin = function tablePlugin(_ref) {
|
|
70
|
-
var _config$tableOptions,
|
|
70
|
+
var _config$tableOptions, _api$analytics, _options$getEditorFea, _options$getEditorFea2;
|
|
71
71
|
var config = _ref.config,
|
|
72
72
|
api = _ref.api;
|
|
73
73
|
var editorViewRef = {
|
|
@@ -75,7 +75,7 @@ var tablePlugin = function tablePlugin(_ref) {
|
|
|
75
75
|
};
|
|
76
76
|
var options = _objectSpread(_objectSpread({}, config), {}, {
|
|
77
77
|
tableOptions: (_config$tableOptions = config === null || config === void 0 ? void 0 : config.tableOptions) !== null && _config$tableOptions !== void 0 ? _config$tableOptions : {},
|
|
78
|
-
dragAndDropEnabled: (
|
|
78
|
+
dragAndDropEnabled: (config === null || config === void 0 ? void 0 : config.dragAndDropEnabled) || (0, _platformFeatureFlags.fg)('platform_editor_enable_table_dnd')
|
|
79
79
|
});
|
|
80
80
|
var defaultGetEditorContainerWidth = function defaultGetEditorContainerWidth() {
|
|
81
81
|
var _api$width$sharedStat, _api$width, _document$body$offset, _document;
|
|
@@ -56,14 +56,14 @@ const tablePlugin = ({
|
|
|
56
56
|
config,
|
|
57
57
|
api
|
|
58
58
|
}) => {
|
|
59
|
-
var _config$tableOptions,
|
|
59
|
+
var _config$tableOptions, _api$analytics, _options$getEditorFea, _options$getEditorFea2;
|
|
60
60
|
const editorViewRef = {
|
|
61
61
|
current: null
|
|
62
62
|
};
|
|
63
63
|
const options = {
|
|
64
64
|
...config,
|
|
65
65
|
tableOptions: (_config$tableOptions = config === null || config === void 0 ? void 0 : config.tableOptions) !== null && _config$tableOptions !== void 0 ? _config$tableOptions : {},
|
|
66
|
-
dragAndDropEnabled: (
|
|
66
|
+
dragAndDropEnabled: (config === null || config === void 0 ? void 0 : config.dragAndDropEnabled) || fg('platform_editor_enable_table_dnd')
|
|
67
67
|
};
|
|
68
68
|
const defaultGetEditorContainerWidth = () => {
|
|
69
69
|
var _api$width$sharedStat, _api$width, _document$body$offset, _document, _document$body;
|
package/dist/esm/tablePlugin.js
CHANGED
|
@@ -58,7 +58,7 @@ var TABLE_WIDTH_INFO_TIMEOUT = 10000;
|
|
|
58
58
|
* from `@atlaskit/editor-core`.
|
|
59
59
|
*/
|
|
60
60
|
var tablePlugin = function tablePlugin(_ref) {
|
|
61
|
-
var _config$tableOptions,
|
|
61
|
+
var _config$tableOptions, _api$analytics, _options$getEditorFea, _options$getEditorFea2;
|
|
62
62
|
var config = _ref.config,
|
|
63
63
|
api = _ref.api;
|
|
64
64
|
var editorViewRef = {
|
|
@@ -66,7 +66,7 @@ var tablePlugin = function tablePlugin(_ref) {
|
|
|
66
66
|
};
|
|
67
67
|
var options = _objectSpread(_objectSpread({}, config), {}, {
|
|
68
68
|
tableOptions: (_config$tableOptions = config === null || config === void 0 ? void 0 : config.tableOptions) !== null && _config$tableOptions !== void 0 ? _config$tableOptions : {},
|
|
69
|
-
dragAndDropEnabled: (
|
|
69
|
+
dragAndDropEnabled: (config === null || config === void 0 ? void 0 : config.dragAndDropEnabled) || fg('platform_editor_enable_table_dnd')
|
|
70
70
|
});
|
|
71
71
|
var defaultGetEditorContainerWidth = function defaultGetEditorContainerWidth() {
|
|
72
72
|
var _api$width$sharedStat, _api$width, _document$body$offset, _document;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "16.3.
|
|
3
|
+
"version": "16.3.3",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"@atlaskit/editor-plugin-batch-attribute-updates": "^7.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-content-insertion": "^7.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-editor-viewmode": "^9.0.0",
|
|
40
|
-
"@atlaskit/editor-plugin-extension": "10.0.
|
|
40
|
+
"@atlaskit/editor-plugin-extension": "10.0.3",
|
|
41
41
|
"@atlaskit/editor-plugin-guideline": "^7.0.0",
|
|
42
|
-
"@atlaskit/editor-plugin-interaction": "^
|
|
42
|
+
"@atlaskit/editor-plugin-interaction": "^13.0.0",
|
|
43
43
|
"@atlaskit/editor-plugin-limited-mode": "^4.0.0",
|
|
44
44
|
"@atlaskit/editor-plugin-selection": "^7.0.0",
|
|
45
45
|
"@atlaskit/editor-plugin-toolbar": "^4.0.0",
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
58
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.24.0",
|
|
61
61
|
"@atlaskit/toggle": "^15.2.0",
|
|
62
|
-
"@atlaskit/tokens": "^
|
|
62
|
+
"@atlaskit/tokens": "^10.0.0",
|
|
63
63
|
"@atlaskit/tooltip": "^20.14.0",
|
|
64
64
|
"@babel/runtime": "^7.0.0",
|
|
65
65
|
"@emotion/react": "^11.7.1",
|