@atlaskit/editor-plugin-selection-extension 11.1.28 → 13.0.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 +25 -0
- package/dist/cjs/ui/toolbar/SelectionExtensionDropdownMenu.js +2 -2
- package/dist/cjs/ui/toolbar/SelectionExtensionDropdownMenuButton.js +2 -2
- package/dist/cjs/ui/toolbar/SelectionExtensionItems.js +2 -2
- package/dist/es2019/ui/toolbar/SelectionExtensionDropdownMenu.js +1 -1
- package/dist/es2019/ui/toolbar/SelectionExtensionDropdownMenuButton.js +1 -1
- package/dist/es2019/ui/toolbar/SelectionExtensionItems.js +1 -1
- package/dist/esm/ui/toolbar/SelectionExtensionDropdownMenu.js +1 -1
- package/dist/esm/ui/toolbar/SelectionExtensionDropdownMenuButton.js +1 -1
- package/dist/esm/ui/toolbar/SelectionExtensionItems.js +1 -1
- package/dist/types/ui/toolbar/SelectionExtensionDropdownMenu.d.ts +1 -1
- package/dist/types/ui/toolbar/SelectionExtensionDropdownMenuButton.d.ts +1 -1
- package/dist/types/ui/toolbar/SelectionExtensionItems.d.ts +1 -1
- package/dist/types-ts4.5/ui/toolbar/SelectionExtensionDropdownMenu.d.ts +1 -1
- package/dist/types-ts4.5/ui/toolbar/SelectionExtensionDropdownMenuButton.d.ts +1 -1
- package/dist/types-ts4.5/ui/toolbar/SelectionExtensionItems.d.ts +1 -1
- package/package.json +18 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-selection-extension
|
|
2
2
|
|
|
3
|
+
## 13.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`901c87a57486e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/901c87a57486e) -
|
|
8
|
+
Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
|
|
9
|
+
|
|
10
|
+
What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
|
|
11
|
+
removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
|
|
12
|
+
to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
|
|
13
|
+
|
|
14
|
+
How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
|
|
15
|
+
`^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
|
|
16
|
+
can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
22
|
+
## 12.0.0
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
|
|
3
28
|
## 11.1.28
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.SelectionExtensionDropdownMenu = void 0;
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
var
|
|
11
|
+
var _reactIntl = require("react-intl");
|
|
12
12
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
13
13
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
14
14
|
var _SelectionExtensionDropdownMenuButton = require("./SelectionExtensionDropdownMenuButton");
|
|
@@ -59,4 +59,4 @@ var SelectionExtensionDropdownMenuComponent = /*#__PURE__*/_react.default.memo(f
|
|
|
59
59
|
});
|
|
60
60
|
|
|
61
61
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
62
|
-
var SelectionExtensionDropdownMenu = exports.SelectionExtensionDropdownMenu = (0,
|
|
62
|
+
var SelectionExtensionDropdownMenu = exports.SelectionExtensionDropdownMenu = (0, _reactIntl.injectIntl)(SelectionExtensionDropdownMenuComponent);
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.SelectionExtensionDropdownMenuButton = 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 _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
12
12
|
var _apps = _interopRequireDefault(require("@atlaskit/icon/core/apps"));
|
|
@@ -37,4 +37,4 @@ var SelectionExtensionDropdownMenuButtonComponent = function SelectionExtensionD
|
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
40
|
-
var SelectionExtensionDropdownMenuButton = exports.SelectionExtensionDropdownMenuButton = (0,
|
|
40
|
+
var SelectionExtensionDropdownMenuButton = exports.SelectionExtensionDropdownMenuButton = (0, _reactIntl.injectIntl)(SelectionExtensionDropdownMenuButtonComponent);
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.SelectionExtensionItemsComponent = exports.SelectionExtensionItems = void 0;
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
var
|
|
11
|
+
var _reactIntl = require("react-intl");
|
|
12
12
|
var _uuid = require("uuid");
|
|
13
13
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
14
14
|
var _SelectionExtensionDropdownMenu = require("./SelectionExtensionDropdownMenu");
|
|
@@ -73,4 +73,4 @@ var SelectionExtensionItemsComponent = exports.SelectionExtensionItemsComponent
|
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
76
|
-
var SelectionExtensionItems = exports.SelectionExtensionItems = (0,
|
|
76
|
+
var SelectionExtensionItems = exports.SelectionExtensionItems = (0, _reactIntl.injectIntl)(SelectionExtensionItemsComponent);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { injectIntl } from 'react-intl
|
|
2
|
+
import { injectIntl } from 'react-intl';
|
|
3
3
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { DropdownMenuWithKeyboardNavigation as DropdownMenu } from '@atlaskit/editor-common/ui-menu';
|
|
5
5
|
import { SelectionExtensionDropdownMenuButton } from './SelectionExtensionDropdownMenuButton';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { injectIntl } from 'react-intl
|
|
2
|
+
import { injectIntl } from 'react-intl';
|
|
3
3
|
import { selectionExtensionMessages } from '@atlaskit/editor-common/messages';
|
|
4
4
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
5
5
|
import AppsIcon from '@atlaskit/icon/core/apps';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import React, { useMemo } from 'react';
|
|
7
|
-
import { injectIntl } from 'react-intl
|
|
7
|
+
import { injectIntl } from 'react-intl';
|
|
8
8
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
9
9
|
import { v4 as uuid } from 'uuid';
|
|
10
10
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
|
-
import { injectIntl } from 'react-intl
|
|
3
|
+
import { injectIntl } from 'react-intl';
|
|
4
4
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import { DropdownMenuWithKeyboardNavigation as DropdownMenu } from '@atlaskit/editor-common/ui-menu';
|
|
6
6
|
import { SelectionExtensionDropdownMenuButton } from './SelectionExtensionDropdownMenuButton';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { injectIntl } from 'react-intl
|
|
2
|
+
import { injectIntl } from 'react-intl';
|
|
3
3
|
import { selectionExtensionMessages } from '@atlaskit/editor-common/messages';
|
|
4
4
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
5
5
|
import AppsIcon from '@atlaskit/icon/core/apps';
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import React, { useMemo } from 'react';
|
|
10
|
-
import { injectIntl } from 'react-intl
|
|
10
|
+
import { injectIntl } from 'react-intl';
|
|
11
11
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
12
12
|
import { v4 as uuid } from 'uuid';
|
|
13
13
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { type MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
5
5
|
import type { MenuItemsType } from '../../types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
4
4
|
type SelectionExtensionDropdownMenuButtonProps = React.ComponentProps<typeof ToolbarButton> & WrappedComponentProps;
|
|
5
5
|
export declare const SelectionExtensionDropdownMenuButton: React.FC<WithIntlProps<SelectionExtensionDropdownMenuButtonProps>> & {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
7
7
|
import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
9
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { type MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
5
5
|
import type { MenuItemsType } from '../../types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
4
4
|
type SelectionExtensionDropdownMenuButtonProps = React.ComponentProps<typeof ToolbarButton> & WrappedComponentProps;
|
|
5
5
|
export declare const SelectionExtensionDropdownMenuButton: React.FC<WithIntlProps<SelectionExtensionDropdownMenuButtonProps>> & {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
7
7
|
import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
9
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection-extension",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"description": "editor-plugin-selection-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,37 +35,38 @@
|
|
|
35
35
|
"@atlaskit/adf-utils": "^19.27.0",
|
|
36
36
|
"@atlaskit/css": "^0.19.0",
|
|
37
37
|
"@atlaskit/editor-json-transformer": "^8.31.0",
|
|
38
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
39
|
-
"@atlaskit/editor-plugin-block-controls": "^
|
|
40
|
-
"@atlaskit/editor-plugin-block-menu": "^
|
|
41
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
42
|
-
"@atlaskit/editor-plugin-editor-viewmode-effects": "^
|
|
43
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^
|
|
44
|
-
"@atlaskit/editor-plugin-selection-toolbar": "^
|
|
45
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
46
|
-
"@atlaskit/editor-plugin-user-preferences": "^
|
|
38
|
+
"@atlaskit/editor-plugin-analytics": "^10.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-block-controls": "^11.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-block-menu": "^9.0.0",
|
|
41
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^12.0.0",
|
|
42
|
+
"@atlaskit/editor-plugin-editor-viewmode-effects": "^10.0.0",
|
|
43
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^11.0.0",
|
|
44
|
+
"@atlaskit/editor-plugin-selection-toolbar": "^11.0.0",
|
|
45
|
+
"@atlaskit/editor-plugin-toolbar": "^7.0.0",
|
|
46
|
+
"@atlaskit/editor-plugin-user-preferences": "^8.0.0",
|
|
47
47
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
48
48
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
49
49
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
50
|
-
"@atlaskit/editor-toolbar": "^0.
|
|
51
|
-
"@atlaskit/icon": "^34.
|
|
52
|
-
"@atlaskit/lozenge": "^13.
|
|
50
|
+
"@atlaskit/editor-toolbar": "^1.0.0",
|
|
51
|
+
"@atlaskit/icon": "^34.2.0",
|
|
52
|
+
"@atlaskit/lozenge": "^13.7.0",
|
|
53
53
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
54
54
|
"@atlaskit/primitives": "^19.0.0",
|
|
55
|
-
"@atlaskit/tmp-editor-statsig": "^62.
|
|
55
|
+
"@atlaskit/tmp-editor-statsig": "^62.4.0",
|
|
56
56
|
"@atlaskit/tokens": "^13.0.0",
|
|
57
57
|
"@babel/runtime": "^7.0.0",
|
|
58
58
|
"lodash": "^4.17.21",
|
|
59
|
-
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
60
59
|
"uuid": "^3.1.0"
|
|
61
60
|
},
|
|
62
61
|
"peerDependencies": {
|
|
63
|
-
"@atlaskit/editor-common": "^
|
|
64
|
-
"react": "^18.2.0"
|
|
62
|
+
"@atlaskit/editor-common": "^114.0.0",
|
|
63
|
+
"react": "^18.2.0",
|
|
64
|
+
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@testing-library/react": "^16.3.0",
|
|
68
68
|
"react-dom": "^18.2.0",
|
|
69
|
+
"react-intl": "^6.6.2",
|
|
69
70
|
"wait-for-expect": "^1.2.0"
|
|
70
71
|
},
|
|
71
72
|
"techstack": {
|