@atlaskit/editor-plugin-paste-options-toolbar 16.0.8 → 16.1.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,27 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-paste-options-toolbar
|
|
2
2
|
|
|
3
|
+
## 16.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`d96f86ff344b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d96f86ff344b8) -
|
|
8
|
+
Use @atlaskit/platform-feature-experiments directly for
|
|
9
|
+
platform_editor_vc90_transition_expand_icon, platform_editor_add_image_editing,
|
|
10
|
+
platform_editor_ai_multi_format_streaming, platform_editor_default_toolbar_state,
|
|
11
|
+
platform_editor_early_exit_return_draft, platform_editor_fix_focus_MediaInsertPicker,
|
|
12
|
+
platform_editor_fix_table_move_shortcut, platform_editor_menu_radius_update,
|
|
13
|
+
platform_editor_react19_migration, and show_mentions_in_suggest_reply.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
19
|
+
## 16.0.9
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 16.0.8
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -16,8 +16,8 @@ var _toolbar = require("@atlaskit/editor-common/toolbar");
|
|
|
16
16
|
var _uiReact = require("@atlaskit/editor-common/ui-react");
|
|
17
17
|
var _toolbarMenuContainer = require("@atlaskit/editor-toolbar/toolbar-menu-container");
|
|
18
18
|
var _editorUiControlModel = require("@atlaskit/editor-ui-control-model");
|
|
19
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
19
20
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
20
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
21
21
|
var _currentPastedSmartLink = require("../utils/current-pasted-smart-link");
|
|
22
22
|
var _asyncHidden = require("./async-hidden");
|
|
23
23
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -119,7 +119,7 @@ var PasteActionsMenuContent = exports.PasteActionsMenuContent = function PasteAc
|
|
|
119
119
|
contentRef.current = node;
|
|
120
120
|
}
|
|
121
121
|
}, [setOutsideClickTargetRef, contentRef]);
|
|
122
|
-
if ((0,
|
|
122
|
+
if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_menu_radius_update')) {
|
|
123
123
|
return /*#__PURE__*/_react.default.createElement(_toolbarMenuContainer.ToolbarMenuContainer, {
|
|
124
124
|
ref: mergedRef,
|
|
125
125
|
onMouseDown: onMouseDown,
|
|
@@ -6,8 +6,8 @@ import { PASTE_MENU } from '@atlaskit/editor-common/toolbar';
|
|
|
6
6
|
import { OutsideClickTargetRefContext } from '@atlaskit/editor-common/ui-react';
|
|
7
7
|
import { ToolbarMenuContainer } from '@atlaskit/editor-toolbar/toolbar-menu-container';
|
|
8
8
|
import { SurfaceRenderer } from '@atlaskit/editor-ui-control-model';
|
|
9
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
9
10
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
10
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
11
|
import { getSingleSmartLinkUrlFromSlice } from '../utils/current-pasted-smart-link';
|
|
12
12
|
import { evaluateAsyncHidden } from './async-hidden';
|
|
13
13
|
const styles = {
|
|
@@ -90,7 +90,7 @@ export const PasteActionsMenuContent = ({
|
|
|
90
90
|
contentRef.current = node;
|
|
91
91
|
}
|
|
92
92
|
}, [setOutsideClickTargetRef, contentRef]);
|
|
93
|
-
if (
|
|
93
|
+
if (isExperimentEnabled('platform_editor_menu_radius_update')) {
|
|
94
94
|
return /*#__PURE__*/React.createElement(ToolbarMenuContainer, {
|
|
95
95
|
ref: mergedRef,
|
|
96
96
|
onMouseDown: onMouseDown,
|
|
@@ -13,8 +13,8 @@ import { PASTE_MENU } from '@atlaskit/editor-common/toolbar';
|
|
|
13
13
|
import { OutsideClickTargetRefContext } from '@atlaskit/editor-common/ui-react';
|
|
14
14
|
import { ToolbarMenuContainer } from '@atlaskit/editor-toolbar/toolbar-menu-container';
|
|
15
15
|
import { SurfaceRenderer } from '@atlaskit/editor-ui-control-model';
|
|
16
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
16
17
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
17
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
18
|
import { getSingleSmartLinkUrlFromSlice } from '../utils/current-pasted-smart-link';
|
|
19
19
|
import { evaluateAsyncHidden } from './async-hidden';
|
|
20
20
|
var styles = {
|
|
@@ -110,7 +110,7 @@ export var PasteActionsMenuContent = function PasteActionsMenuContent(_ref) {
|
|
|
110
110
|
contentRef.current = node;
|
|
111
111
|
}
|
|
112
112
|
}, [setOutsideClickTargetRef, contentRef]);
|
|
113
|
-
if (
|
|
113
|
+
if (isExperimentEnabled('platform_editor_menu_radius_update')) {
|
|
114
114
|
return /*#__PURE__*/React.createElement(ToolbarMenuContainer, {
|
|
115
115
|
ref: mergedRef,
|
|
116
116
|
onMouseDown: onMouseDown,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-paste-options-toolbar",
|
|
3
|
-
"version": "16.0
|
|
3
|
+
"version": "16.1.0",
|
|
4
4
|
"description": "Paste options toolbar for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,27 +22,27 @@
|
|
|
22
22
|
"atlaskit:src": "src/index.ts",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@atlaskit/css": "^1.0.0",
|
|
25
|
-
"@atlaskit/dropdown-menu": "^18.
|
|
25
|
+
"@atlaskit/dropdown-menu": "^18.2.0",
|
|
26
26
|
"@atlaskit/editor-markdown-transformer": "^6.2.0",
|
|
27
27
|
"@atlaskit/editor-plugin-analytics": "^15.0.0",
|
|
28
28
|
"@atlaskit/editor-plugin-paste": "^16.0.0",
|
|
29
29
|
"@atlaskit/editor-plugin-ui-control-registry": "^9.0.0",
|
|
30
30
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
31
31
|
"@atlaskit/editor-shared-styles": "^4.0.0",
|
|
32
|
-
"@atlaskit/editor-toolbar": "^2.
|
|
32
|
+
"@atlaskit/editor-toolbar": "^2.6.0",
|
|
33
33
|
"@atlaskit/editor-ui-control-model": "^2.7.0",
|
|
34
|
-
"@atlaskit/icon": "^37.
|
|
34
|
+
"@atlaskit/icon": "^37.5.0",
|
|
35
35
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
36
36
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
37
|
-
"@atlaskit/primitives": "^22.
|
|
38
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
39
|
-
"@atlaskit/tokens": "^16.
|
|
37
|
+
"@atlaskit/primitives": "^22.4.0",
|
|
38
|
+
"@atlaskit/tmp-editor-statsig": "^157.0.0",
|
|
39
|
+
"@atlaskit/tokens": "^16.8.0",
|
|
40
40
|
"@babel/runtime": "^7.0.0",
|
|
41
41
|
"@compiled/react": "^1.0.2",
|
|
42
42
|
"@emotion/react": "^11.7.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@atlaskit/editor-common": "^119.
|
|
45
|
+
"@atlaskit/editor-common": "^119.13.0",
|
|
46
46
|
"react": "^18.2.0 || ^19.2.0",
|
|
47
47
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
48
48
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|