@atlaskit/editor-plugin-selection-toolbar 19.0.6 → 19.0.8
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/ui/PinMenuItem.js +1 -2
- package/dist/cjs/ui/PrimaryToolbarComponent.js +1 -1
- package/dist/cjs/ui/overflow-toolbar-config.js +1 -1
- package/dist/es2019/ui/PinMenuItem.js +1 -2
- package/dist/es2019/ui/PrimaryToolbarComponent.js +1 -1
- package/dist/es2019/ui/overflow-toolbar-config.js +1 -1
- package/dist/esm/ui/PinMenuItem.js +1 -2
- package/dist/esm/ui/PrimaryToolbarComponent.js +1 -1
- package/dist/esm/ui/overflow-toolbar-config.js +1 -1
- package/package.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-selection-toolbar
|
|
2
2
|
|
|
3
|
+
## 19.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`b78306efe5c75`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b78306efe5c75) -
|
|
8
|
+
Clean up feature gate `platform_editor_markdown_patch_m3`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 19.0.7
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 19.0.6
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -11,7 +11,6 @@ var _hooks = require("@atlaskit/editor-common/hooks");
|
|
|
11
11
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
12
12
|
var _toolbar = require("@atlaskit/editor-common/toolbar");
|
|
13
13
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
14
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
15
14
|
var shouldShowPinMenuItem = function shouldShowPinMenuItem(editMode) {
|
|
16
15
|
return editMode !== 'view';
|
|
17
16
|
};
|
|
@@ -43,7 +42,7 @@ var PinMenuItem = exports.PinMenuItem = function PinMenuItem(_ref) {
|
|
|
43
42
|
editorToolbarDockingPreference = _usePluginState.editorToolbarDockingPreference,
|
|
44
43
|
isDisabled = _usePluginState.isOffline;
|
|
45
44
|
var isToolbarDocked = editorToolbarDockingPreference === 'top';
|
|
46
|
-
if (disablePin || !shouldShowPinMenuItem(editorViewMode) || runtimeOverride === 'always-pinned'
|
|
45
|
+
if (disablePin || !shouldShowPinMenuItem(editorViewMode) || runtimeOverride === 'always-pinned') {
|
|
47
46
|
return null;
|
|
48
47
|
}
|
|
49
48
|
var onClick = function onClick() {
|
|
@@ -4,7 +4,6 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
4
4
|
import { selectionToolbarMessages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
6
6
|
import { PinIcon, PinnedIcon, ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
7
|
const shouldShowPinMenuItem = editMode => {
|
|
9
8
|
return editMode !== 'view';
|
|
10
9
|
};
|
|
@@ -39,7 +38,7 @@ export const PinMenuItem = ({
|
|
|
39
38
|
isOffline: isDisabled
|
|
40
39
|
} = usePluginState(api);
|
|
41
40
|
const isToolbarDocked = editorToolbarDockingPreference === 'top';
|
|
42
|
-
if (disablePin || !shouldShowPinMenuItem(editorViewMode) || runtimeOverride === 'always-pinned'
|
|
41
|
+
if (disablePin || !shouldShowPinMenuItem(editorViewMode) || runtimeOverride === 'always-pinned') {
|
|
43
42
|
return null;
|
|
44
43
|
}
|
|
45
44
|
const onClick = () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* PrimaryToolbarComponent.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* PrimaryToolbarComponent.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import "./PrimaryToolbarComponent.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* overflow-toolbar-config.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* overflow-toolbar-config.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import { selectionToolbarMessages } from '@atlaskit/editor-common/messages';
|
|
@@ -4,7 +4,6 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
4
4
|
import { selectionToolbarMessages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
6
6
|
import { PinIcon, PinnedIcon, ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
7
|
var shouldShowPinMenuItem = function shouldShowPinMenuItem(editMode) {
|
|
9
8
|
return editMode !== 'view';
|
|
10
9
|
};
|
|
@@ -36,7 +35,7 @@ export var PinMenuItem = function PinMenuItem(_ref) {
|
|
|
36
35
|
editorToolbarDockingPreference = _usePluginState.editorToolbarDockingPreference,
|
|
37
36
|
isDisabled = _usePluginState.isOffline;
|
|
38
37
|
var isToolbarDocked = editorToolbarDockingPreference === 'top';
|
|
39
|
-
if (disablePin || !shouldShowPinMenuItem(editorViewMode) || runtimeOverride === 'always-pinned'
|
|
38
|
+
if (disablePin || !shouldShowPinMenuItem(editorViewMode) || runtimeOverride === 'always-pinned') {
|
|
40
39
|
return null;
|
|
41
40
|
}
|
|
42
41
|
var onClick = function onClick() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* PrimaryToolbarComponent.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* PrimaryToolbarComponent.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import "./PrimaryToolbarComponent.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* overflow-toolbar-config.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* overflow-toolbar-config.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import { selectionToolbarMessages } from '@atlaskit/editor-common/messages';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection-toolbar",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.8",
|
|
4
4
|
"description": "@atlaskit/editor-plugin-selection-toolbar for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"@atlaskit/icon-lab": "^7.9.0",
|
|
38
38
|
"@atlaskit/menu": "^10.2.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
40
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
41
|
-
"@atlaskit/tokens": "^
|
|
40
|
+
"@atlaskit/tmp-editor-statsig": "^196.0.0",
|
|
41
|
+
"@atlaskit/tokens": "^17.0.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0",
|
|
43
43
|
"bind-event-listener": "^3.0.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@atlaskit/editor-common": "^122.
|
|
46
|
+
"@atlaskit/editor-common": "^122.7.0",
|
|
47
47
|
"react": "^18.2.0 || ^19.2.0",
|
|
48
48
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
49
49
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
@@ -60,9 +60,6 @@
|
|
|
60
60
|
"platform-feature-flags": {
|
|
61
61
|
"platform_editor_use_preferences_plugin": {
|
|
62
62
|
"type": "boolean"
|
|
63
|
-
},
|
|
64
|
-
"platform_editor_markdown_patch_m3": {
|
|
65
|
-
"type": "boolean"
|
|
66
63
|
}
|
|
67
64
|
}
|
|
68
65
|
}
|