@atlaskit/editor-plugin-table 22.2.23 → 22.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 +17 -0
- package/dist/cjs/pm-plugins/main.js +4 -3
- package/dist/es2019/pm-plugins/main.js +14 -11
- package/dist/esm/pm-plugins/main.js +5 -4
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 22.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`edd5d6d4c23ec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/edd5d6d4c23ec) -
|
|
8
|
+
Add SSR streaming supporting to Editor starmt cards and extensions
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 22.2.24
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 22.2.23
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -66,7 +66,7 @@ var createPlugin = exports.createPlugin = function createPlugin(dispatchAnalytic
|
|
|
66
66
|
return editorView.state;
|
|
67
67
|
};
|
|
68
68
|
var getNodeView = function getNodeView() {
|
|
69
|
-
return {
|
|
69
|
+
return _objectSpread(_objectSpread({}, (0, _expValEquals.expValEquals)('platform_editor_editor_ssr_streaming', 'isEnabled', true) && (0, _coreUtils.isSSR)() ? {} : {
|
|
70
70
|
table: (0, _tableNodeViews.tableView)({
|
|
71
71
|
portalProviderAPI: portalProviderAPI,
|
|
72
72
|
eventDispatcher: eventDispatcher,
|
|
@@ -77,7 +77,8 @@ var createPlugin = exports.createPlugin = function createPlugin(dispatchAnalytic
|
|
|
77
77
|
isCommentEditor: isCommentEditor,
|
|
78
78
|
isChromelessEditor: isChromelessEditor,
|
|
79
79
|
allowFixedColumnWidthOption: allowFixedColumnWidthOption
|
|
80
|
-
})
|
|
80
|
+
})
|
|
81
|
+
}), {}, {
|
|
81
82
|
tableRow: (0, _tableNodeViews.tableRowView)({
|
|
82
83
|
eventDispatcher: eventDispatcher,
|
|
83
84
|
pluginInjectionApi: pluginInjectionApi
|
|
@@ -90,7 +91,7 @@ var createPlugin = exports.createPlugin = function createPlugin(dispatchAnalytic
|
|
|
90
91
|
eventDispatcher: eventDispatcher,
|
|
91
92
|
pluginInjectionApi: pluginInjectionApi
|
|
92
93
|
})
|
|
93
|
-
};
|
|
94
|
+
});
|
|
94
95
|
};
|
|
95
96
|
var nodeViews = getNodeView();
|
|
96
97
|
return new _safePlugin.SafePlugin({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { bind } from 'bind-event-listener';
|
|
2
2
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
4
|
-
import { insideTable } from '@atlaskit/editor-common/core-utils';
|
|
4
|
+
import { insideTable, isSSR } from '@atlaskit/editor-common/core-utils';
|
|
5
5
|
import { isNestedTablesSupported } from '@atlaskit/editor-common/nesting';
|
|
6
6
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
7
7
|
import { transformSliceToRemoveOpenBodiedExtension, transformSliceToRemoveOpenExpand, transformSliceToRemoveOpenLayoutNodes, transformSliceToRemoveOpenMultiBodiedExtension, transformSliceToRemoveOpenNestedExpand } from '@atlaskit/editor-common/transforms';
|
|
@@ -58,16 +58,19 @@ export const createPlugin = (dispatchAnalyticsEvent, dispatch, portalProviderAPI
|
|
|
58
58
|
};
|
|
59
59
|
const getNodeView = () => {
|
|
60
60
|
return {
|
|
61
|
-
table
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
61
|
+
// In SSR use native ProseMirror spec-based render for table nodes
|
|
62
|
+
...(expValEquals('platform_editor_editor_ssr_streaming', 'isEnabled', true) && isSSR() ? {} : {
|
|
63
|
+
table: tableView({
|
|
64
|
+
portalProviderAPI,
|
|
65
|
+
eventDispatcher,
|
|
66
|
+
getEditorContainerWidth,
|
|
67
|
+
getEditorFeatureFlags,
|
|
68
|
+
dispatchAnalyticsEvent,
|
|
69
|
+
pluginInjectionApi,
|
|
70
|
+
isCommentEditor,
|
|
71
|
+
isChromelessEditor,
|
|
72
|
+
allowFixedColumnWidthOption
|
|
73
|
+
})
|
|
71
74
|
}),
|
|
72
75
|
tableRow: tableRowView({
|
|
73
76
|
eventDispatcher,
|
|
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
import { bind } from 'bind-event-listener';
|
|
5
5
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
7
|
-
import { insideTable } from '@atlaskit/editor-common/core-utils';
|
|
7
|
+
import { insideTable, isSSR } from '@atlaskit/editor-common/core-utils';
|
|
8
8
|
import { isNestedTablesSupported } from '@atlaskit/editor-common/nesting';
|
|
9
9
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
10
10
|
import { transformSliceToRemoveOpenBodiedExtension, transformSliceToRemoveOpenExpand, transformSliceToRemoveOpenLayoutNodes, transformSliceToRemoveOpenMultiBodiedExtension, transformSliceToRemoveOpenNestedExpand } from '@atlaskit/editor-common/transforms';
|
|
@@ -59,7 +59,7 @@ export var createPlugin = function createPlugin(dispatchAnalyticsEvent, dispatch
|
|
|
59
59
|
return editorView.state;
|
|
60
60
|
};
|
|
61
61
|
var getNodeView = function getNodeView() {
|
|
62
|
-
return {
|
|
62
|
+
return _objectSpread(_objectSpread({}, expValEquals('platform_editor_editor_ssr_streaming', 'isEnabled', true) && isSSR() ? {} : {
|
|
63
63
|
table: tableView({
|
|
64
64
|
portalProviderAPI: portalProviderAPI,
|
|
65
65
|
eventDispatcher: eventDispatcher,
|
|
@@ -70,7 +70,8 @@ export var createPlugin = function createPlugin(dispatchAnalyticsEvent, dispatch
|
|
|
70
70
|
isCommentEditor: isCommentEditor,
|
|
71
71
|
isChromelessEditor: isChromelessEditor,
|
|
72
72
|
allowFixedColumnWidthOption: allowFixedColumnWidthOption
|
|
73
|
-
})
|
|
73
|
+
})
|
|
74
|
+
}), {}, {
|
|
74
75
|
tableRow: tableRowView({
|
|
75
76
|
eventDispatcher: eventDispatcher,
|
|
76
77
|
pluginInjectionApi: pluginInjectionApi
|
|
@@ -83,7 +84,7 @@ export var createPlugin = function createPlugin(dispatchAnalyticsEvent, dispatch
|
|
|
83
84
|
eventDispatcher: eventDispatcher,
|
|
84
85
|
pluginInjectionApi: pluginInjectionApi
|
|
85
86
|
})
|
|
86
|
-
};
|
|
87
|
+
});
|
|
87
88
|
};
|
|
88
89
|
var nodeViews = getNodeView();
|
|
89
90
|
return new SafePlugin({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.3.0",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"singleton": true
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@atlaskit/adf-schema": "^52.
|
|
31
|
+
"@atlaskit/adf-schema": "^52.11.0",
|
|
32
32
|
"@atlaskit/button": "^23.11.0",
|
|
33
33
|
"@atlaskit/custom-steps": "^0.16.0",
|
|
34
34
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/editor-plugin-batch-attribute-updates": "^10.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-content-insertion": "^10.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-editor-viewmode": "^12.0.0",
|
|
40
|
-
"@atlaskit/editor-plugin-extension": "13.
|
|
40
|
+
"@atlaskit/editor-plugin-extension": "13.3.0",
|
|
41
41
|
"@atlaskit/editor-plugin-guideline": "^10.0.0",
|
|
42
42
|
"@atlaskit/editor-plugin-interaction": "^19.0.0",
|
|
43
43
|
"@atlaskit/editor-plugin-limited-mode": "^7.1.0",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
|
|
57
57
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
58
58
|
"@atlaskit/primitives": "^19.0.0",
|
|
59
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
59
|
+
"@atlaskit/tmp-editor-statsig": "^79.0.0",
|
|
60
60
|
"@atlaskit/toggle": "^15.6.0",
|
|
61
61
|
"@atlaskit/tokens": "^13.0.0",
|
|
62
|
-
"@atlaskit/tooltip": "^22.
|
|
62
|
+
"@atlaskit/tooltip": "^22.2.0",
|
|
63
63
|
"@babel/runtime": "^7.0.0",
|
|
64
64
|
"@emotion/react": "^11.7.1",
|
|
65
65
|
"bind-event-listener": "^3.0.0",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"uuid": "^3.1.0"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"@atlaskit/editor-common": "^114.
|
|
73
|
+
"@atlaskit/editor-common": "^114.30.0",
|
|
74
74
|
"react": "^18.2.0",
|
|
75
75
|
"react-dom": "^18.2.0",
|
|
76
76
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|