@atlaskit/editor-plugin-table 15.4.4 → 15.4.5
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 +7 -0
- package/dist/cjs/ui/ContentComponent.js +1 -1
- package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +1 -1
- package/dist/cjs/ui/FloatingContextualMenu/index.js +1 -1
- package/dist/es2019/ui/ContentComponent.js +1 -1
- package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +1 -1
- package/dist/es2019/ui/FloatingContextualMenu/index.js +1 -1
- package/dist/esm/ui/ContentComponent.js +1 -1
- package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +1 -1
- package/dist/esm/ui/FloatingContextualMenu/index.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 15.4.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`d4b8a7cf9ea37`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d4b8a7cf9ea37) -
|
|
8
|
+
fix unsafe experiment usage for platform_editor_lovability_user_intent
|
|
9
|
+
|
|
3
10
|
## 15.4.4
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -147,7 +147,7 @@ var ContentComponentInternal = function ContentComponentInternal(_ref) {
|
|
|
147
147
|
isCellMenuOpenByKeyboard: isCellMenuOpenByKeyboard,
|
|
148
148
|
isCommentEditor: options === null || options === void 0 ? void 0 : options.isCommentEditor,
|
|
149
149
|
api: api,
|
|
150
|
-
isDragMenuOpen: isDragAndDropEnabled && (0, _expVal.expValNoExposure)('platform_editor_lovability_user_intent', 'isEnabled',
|
|
150
|
+
isDragMenuOpen: isDragAndDropEnabled && (0, _expVal.expValNoExposure)('platform_editor_lovability_user_intent', 'isEnabled', false) ? isDragMenuOpen : undefined
|
|
151
151
|
}), isDragAndDropEnabled && /*#__PURE__*/_react.default.createElement(_FloatingDragMenu.default, {
|
|
152
152
|
editorView: editorView,
|
|
153
153
|
mountPoint: popupsMountPoint,
|
|
@@ -755,7 +755,7 @@ var ContextualMenu = exports.ContextualMenu = /*#__PURE__*/function (_Component)
|
|
|
755
755
|
var _getPluginState11 = (0, _pluginFactory.getPluginState)(this.props.editorView.state),
|
|
756
756
|
isDragAndDropEnabled = _getPluginState11.isDragAndDropEnabled,
|
|
757
757
|
isContextualMenuOpen = _getPluginState11.isContextualMenuOpen;
|
|
758
|
-
if (isDragAndDropEnabled && this.props.isDragMenuOpen && isContextualMenuOpen && (0, _expVal.expValNoExposure)('platform_editor_lovability_user_intent', 'isEnabled',
|
|
758
|
+
if (isDragAndDropEnabled && this.props.isDragMenuOpen && isContextualMenuOpen && (0, _expVal.expValNoExposure)('platform_editor_lovability_user_intent', 'isEnabled', false)) {
|
|
759
759
|
(0, _commands.toggleContextualMenu)()(this.props.editorView.state, this.props.editorView.dispatch);
|
|
760
760
|
}
|
|
761
761
|
}
|
|
@@ -121,7 +121,7 @@ var FloatingContextualMenu = function FloatingContextualMenu(_ref) {
|
|
|
121
121
|
isCellMenuOpenByKeyboard: isCellMenuOpenByKeyboard,
|
|
122
122
|
isCommentEditor: isCommentEditor,
|
|
123
123
|
api: api,
|
|
124
|
-
isDragMenuOpen: (0, _expVal.expValNoExposure)('platform_editor_lovability_user_intent', 'isEnabled',
|
|
124
|
+
isDragMenuOpen: (0, _expVal.expValNoExposure)('platform_editor_lovability_user_intent', 'isEnabled', false) ? isDragMenuOpen : undefined
|
|
125
125
|
})));
|
|
126
126
|
};
|
|
127
127
|
FloatingContextualMenu.displayName = 'FloatingContextualMenu';
|
|
@@ -142,7 +142,7 @@ const ContentComponentInternal = ({
|
|
|
142
142
|
isCellMenuOpenByKeyboard: isCellMenuOpenByKeyboard,
|
|
143
143
|
isCommentEditor: options === null || options === void 0 ? void 0 : options.isCommentEditor,
|
|
144
144
|
api: api,
|
|
145
|
-
isDragMenuOpen: isDragAndDropEnabled && expValNoExposure('platform_editor_lovability_user_intent', 'isEnabled',
|
|
145
|
+
isDragMenuOpen: isDragAndDropEnabled && expValNoExposure('platform_editor_lovability_user_intent', 'isEnabled', false) ? isDragMenuOpen : undefined
|
|
146
146
|
}), isDragAndDropEnabled && /*#__PURE__*/React.createElement(FloatingDragMenu, {
|
|
147
147
|
editorView: editorView,
|
|
148
148
|
mountPoint: popupsMountPoint,
|
|
@@ -813,7 +813,7 @@ export class ContextualMenu extends Component {
|
|
|
813
813
|
isDragAndDropEnabled,
|
|
814
814
|
isContextualMenuOpen
|
|
815
815
|
} = getPluginState(this.props.editorView.state);
|
|
816
|
-
if (isDragAndDropEnabled && this.props.isDragMenuOpen && isContextualMenuOpen && expValNoExposure('platform_editor_lovability_user_intent', 'isEnabled',
|
|
816
|
+
if (isDragAndDropEnabled && this.props.isDragMenuOpen && isContextualMenuOpen && expValNoExposure('platform_editor_lovability_user_intent', 'isEnabled', false)) {
|
|
817
817
|
toggleContextualMenu()(this.props.editorView.state, this.props.editorView.dispatch);
|
|
818
818
|
}
|
|
819
819
|
}
|
|
@@ -117,7 +117,7 @@ const FloatingContextualMenu = ({
|
|
|
117
117
|
isCellMenuOpenByKeyboard: isCellMenuOpenByKeyboard,
|
|
118
118
|
isCommentEditor: isCommentEditor,
|
|
119
119
|
api: api,
|
|
120
|
-
isDragMenuOpen: expValNoExposure('platform_editor_lovability_user_intent', 'isEnabled',
|
|
120
|
+
isDragMenuOpen: expValNoExposure('platform_editor_lovability_user_intent', 'isEnabled', false) ? isDragMenuOpen : undefined
|
|
121
121
|
})));
|
|
122
122
|
};
|
|
123
123
|
FloatingContextualMenu.displayName = 'FloatingContextualMenu';
|
|
@@ -139,7 +139,7 @@ var ContentComponentInternal = function ContentComponentInternal(_ref) {
|
|
|
139
139
|
isCellMenuOpenByKeyboard: isCellMenuOpenByKeyboard,
|
|
140
140
|
isCommentEditor: options === null || options === void 0 ? void 0 : options.isCommentEditor,
|
|
141
141
|
api: api,
|
|
142
|
-
isDragMenuOpen: isDragAndDropEnabled && expValNoExposure('platform_editor_lovability_user_intent', 'isEnabled',
|
|
142
|
+
isDragMenuOpen: isDragAndDropEnabled && expValNoExposure('platform_editor_lovability_user_intent', 'isEnabled', false) ? isDragMenuOpen : undefined
|
|
143
143
|
}), isDragAndDropEnabled && /*#__PURE__*/React.createElement(FloatingDragMenu, {
|
|
144
144
|
editorView: editorView,
|
|
145
145
|
mountPoint: popupsMountPoint,
|
|
@@ -749,7 +749,7 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
|
|
|
749
749
|
var _getPluginState11 = getPluginState(this.props.editorView.state),
|
|
750
750
|
isDragAndDropEnabled = _getPluginState11.isDragAndDropEnabled,
|
|
751
751
|
isContextualMenuOpen = _getPluginState11.isContextualMenuOpen;
|
|
752
|
-
if (isDragAndDropEnabled && this.props.isDragMenuOpen && isContextualMenuOpen && expValNoExposure('platform_editor_lovability_user_intent', 'isEnabled',
|
|
752
|
+
if (isDragAndDropEnabled && this.props.isDragMenuOpen && isContextualMenuOpen && expValNoExposure('platform_editor_lovability_user_intent', 'isEnabled', false)) {
|
|
753
753
|
toggleContextualMenu()(this.props.editorView.state, this.props.editorView.dispatch);
|
|
754
754
|
}
|
|
755
755
|
}
|
|
@@ -113,7 +113,7 @@ var FloatingContextualMenu = function FloatingContextualMenu(_ref) {
|
|
|
113
113
|
isCellMenuOpenByKeyboard: isCellMenuOpenByKeyboard,
|
|
114
114
|
isCommentEditor: isCommentEditor,
|
|
115
115
|
api: api,
|
|
116
|
-
isDragMenuOpen: expValNoExposure('platform_editor_lovability_user_intent', 'isEnabled',
|
|
116
|
+
isDragMenuOpen: expValNoExposure('platform_editor_lovability_user_intent', 'isEnabled', false) ? isDragMenuOpen : undefined
|
|
117
117
|
})));
|
|
118
118
|
};
|
|
119
119
|
FloatingContextualMenu.displayName = 'FloatingContextualMenu';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "15.4.
|
|
3
|
+
"version": "15.4.5",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -56,12 +56,12 @@
|
|
|
56
56
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
57
57
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
|
|
58
58
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
59
|
-
"@atlaskit/primitives": "^16.
|
|
59
|
+
"@atlaskit/primitives": "^16.4.0",
|
|
60
60
|
"@atlaskit/react-ufo": "^4.15.0",
|
|
61
61
|
"@atlaskit/theme": "^21.0.0",
|
|
62
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
62
|
+
"@atlaskit/tmp-editor-statsig": "^13.44.0",
|
|
63
63
|
"@atlaskit/toggle": "^15.1.0",
|
|
64
|
-
"@atlaskit/tokens": "^8.
|
|
64
|
+
"@atlaskit/tokens": "^8.4.0",
|
|
65
65
|
"@atlaskit/tooltip": "^20.10.0",
|
|
66
66
|
"@babel/runtime": "^7.0.0",
|
|
67
67
|
"@emotion/react": "^11.7.1",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"uuid": "^3.1.0"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"@atlaskit/editor-common": "^110.
|
|
75
|
+
"@atlaskit/editor-common": "^110.35.0",
|
|
76
76
|
"react": "^18.2.0",
|
|
77
77
|
"react-dom": "^18.2.0",
|
|
78
78
|
"react-intl-next": "npm:react-intl@^5.18.1"
|