@atlaskit/editor-plugin-selection-toolbar 10.0.0 → 11.0.1
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 +25 -0
- package/dist/cjs/ui/PinButton.js +2 -2
- package/dist/cjs/ui/PinMenuItem.js +2 -2
- package/dist/cjs/ui/PrimaryToolbarComponent.js +2 -2
- package/dist/es2019/ui/PinButton.js +1 -1
- package/dist/es2019/ui/PinMenuItem.js +1 -1
- package/dist/es2019/ui/PrimaryToolbarComponent.js +1 -1
- package/dist/esm/ui/PinButton.js +1 -1
- package/dist/esm/ui/PinMenuItem.js +1 -1
- package/dist/esm/ui/PrimaryToolbarComponent.js +1 -1
- package/dist/types/ui/overflow-toolbar-config.d.ts +1 -1
- package/dist/types/ui/pin-toolbar-config.d.ts +1 -1
- package/dist/types-ts4.5/ui/overflow-toolbar-config.d.ts +1 -1
- package/dist/types-ts4.5/ui/pin-toolbar-config.d.ts +1 -1
- package/package.json +14 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-selection-toolbar
|
|
2
2
|
|
|
3
|
+
## 11.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 11.0.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- [`901c87a57486e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/901c87a57486e) -
|
|
14
|
+
Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
|
|
15
|
+
|
|
16
|
+
What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
|
|
17
|
+
removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
|
|
18
|
+
to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
|
|
19
|
+
|
|
20
|
+
How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
|
|
21
|
+
`^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
|
|
22
|
+
can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
|
|
3
28
|
## 10.0.0
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
package/dist/cjs/ui/PinButton.js
CHANGED
|
@@ -6,13 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.PinButton = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _reactIntl = require("react-intl");
|
|
10
10
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
11
11
|
var _toolbar = require("@atlaskit/editor-common/toolbar");
|
|
12
12
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
13
13
|
var PinButton = exports.PinButton = function PinButton(_ref) {
|
|
14
14
|
var api = _ref.api;
|
|
15
|
-
var intl = (0,
|
|
15
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
16
16
|
var message = intl.formatMessage(_messages.selectionToolbarMessages.toolbarPositionPinedAtTop);
|
|
17
17
|
var _useEditorToolbar = (0, _toolbar.useEditorToolbar)(),
|
|
18
18
|
isDisabled = _useEditorToolbar.isOffline;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.PinMenuItem = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _reactIntl = require("react-intl");
|
|
10
10
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
11
11
|
var _toolbar = require("@atlaskit/editor-common/toolbar");
|
|
12
12
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
@@ -31,7 +31,7 @@ var usePluginState = function usePluginState(_api) {
|
|
|
31
31
|
var PinMenuItem = exports.PinMenuItem = function PinMenuItem(_ref) {
|
|
32
32
|
var api = _ref.api,
|
|
33
33
|
disablePin = _ref.disablePin;
|
|
34
|
-
var intl = (0,
|
|
34
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
35
35
|
var _usePluginState = usePluginState(api),
|
|
36
36
|
editorViewMode = _usePluginState.editorViewMode,
|
|
37
37
|
editorToolbarDockingPreference = _usePluginState.editorToolbarDockingPreference,
|
|
@@ -10,7 +10,7 @@ exports.PrimaryToolbarComponent = void 0;
|
|
|
10
10
|
require("./PrimaryToolbarComponent.compiled.css");
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
|
-
var
|
|
13
|
+
var _reactIntl = require("react-intl");
|
|
14
14
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
15
15
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
16
16
|
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
@@ -28,7 +28,7 @@ var PrimaryToolbarComponent = exports.PrimaryToolbarComponent = function Primary
|
|
|
28
28
|
var _api$userPreferences, _api$selectionToolbar;
|
|
29
29
|
var api = _ref.api,
|
|
30
30
|
disabled = _ref.disabled;
|
|
31
|
-
var intl = (0,
|
|
31
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
32
32
|
var mode = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'connectivity.mode');
|
|
33
33
|
var isOffline = (0, _editorPluginConnectivity.isOfflineMode)(mode);
|
|
34
34
|
var isDockedToTop = (0, _platformFeatureFlags.fg)('platform_editor_use_preferences_plugin') ? (api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.preferences) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.toolbarDockingPosition) === 'top' : (api === null || api === void 0 || (_api$selectionToolbar = api.selectionToolbar.sharedState.currentState()) === null || _api$selectionToolbar === void 0 ? void 0 : _api$selectionToolbar.toolbarDocking) === 'top';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl
|
|
2
|
+
import { useIntl } from 'react-intl';
|
|
3
3
|
import { selectionToolbarMessages } from '@atlaskit/editor-common/messages';
|
|
4
4
|
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
5
5
|
import { PinnedIcon, ToolbarButton, ToolbarTooltip } from '@atlaskit/editor-toolbar';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl
|
|
2
|
+
import { useIntl } from 'react-intl';
|
|
3
3
|
import { selectionToolbarMessages } from '@atlaskit/editor-common/messages';
|
|
4
4
|
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
5
5
|
import { PinIcon, PinnedIcon, ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./PrimaryToolbarComponent.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { useIntl } from 'react-intl
|
|
5
|
+
import { useIntl } from 'react-intl';
|
|
6
6
|
import { selectionToolbarMessages } from '@atlaskit/editor-common/messages';
|
|
7
7
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
8
8
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
package/dist/esm/ui/PinButton.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl
|
|
2
|
+
import { useIntl } from 'react-intl';
|
|
3
3
|
import { selectionToolbarMessages } from '@atlaskit/editor-common/messages';
|
|
4
4
|
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
5
5
|
import { PinnedIcon, ToolbarButton, ToolbarTooltip } from '@atlaskit/editor-toolbar';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl
|
|
2
|
+
import { useIntl } from 'react-intl';
|
|
3
3
|
import { selectionToolbarMessages } from '@atlaskit/editor-common/messages';
|
|
4
4
|
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
5
5
|
import { PinIcon, PinnedIcon, ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./PrimaryToolbarComponent.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { useIntl } from 'react-intl
|
|
5
|
+
import { useIntl } from 'react-intl';
|
|
6
6
|
import { selectionToolbarMessages } from '@atlaskit/editor-common/messages';
|
|
7
7
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
8
8
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
* @jsxFrag
|
|
5
5
|
*/
|
|
6
|
-
import type { IntlShape } from 'react-intl
|
|
6
|
+
import type { IntlShape } from 'react-intl';
|
|
7
7
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
8
8
|
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
9
9
|
import type { SelectionToolbarPlugin } from '../selectionToolbarPluginType';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { Command, FloatingToolbarItem } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { SelectionToolbarPlugin } from '../selectionToolbarPluginType';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
* @jsxFrag
|
|
5
5
|
*/
|
|
6
|
-
import type { IntlShape } from 'react-intl
|
|
6
|
+
import type { IntlShape } from 'react-intl';
|
|
7
7
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
8
8
|
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
9
9
|
import type { SelectionToolbarPlugin } from '../selectionToolbarPluginType';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { Command, FloatingToolbarItem } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { SelectionToolbarPlugin } from '../selectionToolbarPluginType';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection-toolbar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.1",
|
|
4
4
|
"description": "@atlaskit/editor-plugin-selection-toolbar for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,34 +30,35 @@
|
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@atlaskit/css": "^0.19.0",
|
|
33
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
34
|
-
"@atlaskit/editor-plugin-block-controls": "^
|
|
35
|
-
"@atlaskit/editor-plugin-connectivity": "^
|
|
36
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
37
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^
|
|
38
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
39
|
-
"@atlaskit/editor-plugin-user-intent": "^
|
|
40
|
-
"@atlaskit/editor-plugin-user-preferences": "^
|
|
33
|
+
"@atlaskit/editor-plugin-analytics": "^10.0.0",
|
|
34
|
+
"@atlaskit/editor-plugin-block-controls": "^11.0.0",
|
|
35
|
+
"@atlaskit/editor-plugin-connectivity": "^10.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^12.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^11.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-toolbar": "^7.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-user-intent": "^8.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-user-preferences": "^8.0.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
42
|
-
"@atlaskit/editor-toolbar": "^0.
|
|
42
|
+
"@atlaskit/editor-toolbar": "^1.0.0",
|
|
43
43
|
"@atlaskit/editor-toolbar-model": "^0.4.0",
|
|
44
44
|
"@atlaskit/icon": "^34.2.0",
|
|
45
45
|
"@atlaskit/icon-lab": "^6.5.0",
|
|
46
46
|
"@atlaskit/menu": "^8.5.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^63.0.0",
|
|
49
49
|
"@atlaskit/tokens": "^13.0.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"bind-event-listener": "^3.0.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@atlaskit/editor-common": "^
|
|
54
|
+
"@atlaskit/editor-common": "^114.2.0",
|
|
55
55
|
"react": "^18.2.0",
|
|
56
56
|
"react-dom": "^18.2.0",
|
|
57
|
-
"react-intl
|
|
57
|
+
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@testing-library/react": "^16.3.0",
|
|
61
|
+
"react-intl": "^6.6.2",
|
|
61
62
|
"wait-for-expect": "^1.2.0"
|
|
62
63
|
},
|
|
63
64
|
"techstack": {
|