@atlaskit/editor-plugin-floating-toolbar 11.0.0 → 12.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 +19 -0
- package/dist/cjs/ui/ConfirmationModal.js +2 -2
- package/dist/cjs/ui/DropdownMenu.js +2 -2
- package/dist/cjs/ui/Toolbar.js +2 -2
- package/dist/es2019/ui/ConfirmationModal.js +1 -1
- package/dist/es2019/ui/DropdownMenu.js +1 -1
- package/dist/es2019/ui/Toolbar.js +1 -1
- package/dist/esm/ui/ConfirmationModal.js +1 -1
- package/dist/esm/ui/DropdownMenu.js +1 -1
- package/dist/esm/ui/Toolbar.js +1 -1
- package/dist/types/floatingToolbarPlugin.d.ts +1 -1
- package/dist/types/ui/CheckboxModal.d.ts +1 -1
- package/dist/types/ui/ConfirmationModal.d.ts +1 -1
- package/dist/types/ui/DropdownMenu.d.ts +1 -1
- package/dist/types/ui/ScrollButton.d.ts +1 -1
- package/dist/types/ui/ScrollButtons.d.ts +1 -1
- package/dist/types/ui/SimpleModal.d.ts +1 -1
- package/dist/types/ui/Toolbar.d.ts +1 -1
- package/dist/types-ts4.5/floatingToolbarPlugin.d.ts +1 -1
- package/dist/types-ts4.5/ui/CheckboxModal.d.ts +1 -1
- package/dist/types-ts4.5/ui/ConfirmationModal.d.ts +1 -1
- package/dist/types-ts4.5/ui/DropdownMenu.d.ts +1 -1
- package/dist/types-ts4.5/ui/ScrollButton.d.ts +1 -1
- package/dist/types-ts4.5/ui/ScrollButtons.d.ts +1 -1
- package/dist/types-ts4.5/ui/SimpleModal.d.ts +1 -1
- package/dist/types-ts4.5/ui/Toolbar.d.ts +1 -1
- package/package.json +15 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-floating-toolbar
|
|
2
2
|
|
|
3
|
+
## 12.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
|
+
|
|
3
22
|
## 11.0.0
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.ConfirmationModal = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _reactIntl = require("react-intl");
|
|
10
10
|
var _modalDialog = require("@atlaskit/modal-dialog");
|
|
11
11
|
var _CheckboxModal = require("./CheckboxModal");
|
|
12
12
|
var _SimpleModal = require("./SimpleModal");
|
|
@@ -26,4 +26,4 @@ var ConfirmationModalImpl = function ConfirmationModalImpl(props) {
|
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
29
|
-
var ConfirmationModal = exports.ConfirmationModal = (0,
|
|
29
|
+
var ConfirmationModal = exports.ConfirmationModal = (0, _reactIntl.injectIntl)(ConfirmationModalImpl);
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.menuItemDimensions = exports.itemSpacing = exports.default = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _react2 = require("@emotion/react");
|
|
9
|
-
var
|
|
9
|
+
var _reactIntl = require("react-intl");
|
|
10
10
|
var _floatingToolbar = require("@atlaskit/editor-common/floating-toolbar");
|
|
11
11
|
var _menu = require("@atlaskit/menu");
|
|
12
12
|
/**
|
|
@@ -123,5 +123,5 @@ var Dropdown = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
123
123
|
});
|
|
124
124
|
}));
|
|
125
125
|
});
|
|
126
|
-
var _default_1 = (0,
|
|
126
|
+
var _default_1 = (0, _reactIntl.injectIntl)(Dropdown);
|
|
127
127
|
var _default = exports.default = _default_1;
|
package/dist/cjs/ui/Toolbar.js
CHANGED
|
@@ -16,7 +16,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
16
16
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
17
|
var _react = _interopRequireWildcard(require("react"));
|
|
18
18
|
var _react2 = require("@emotion/react");
|
|
19
|
-
var
|
|
19
|
+
var _reactIntl = require("react-intl");
|
|
20
20
|
var _buttonGroup = _interopRequireDefault(require("@atlaskit/button/button-group"));
|
|
21
21
|
var _floatingToolbar = require("@atlaskit/editor-common/floating-toolbar");
|
|
22
22
|
var _messages = _interopRequireDefault(require("@atlaskit/editor-common/messages"));
|
|
@@ -779,5 +779,5 @@ var Toolbar = /*#__PURE__*/function (_Component) {
|
|
|
779
779
|
}
|
|
780
780
|
}]);
|
|
781
781
|
}(_react.Component); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
782
|
-
var _default_1 = (0,
|
|
782
|
+
var _default_1 = (0, _reactIntl.injectIntl)(Toolbar);
|
|
783
783
|
var _default = exports.default = _default_1;
|
|
@@ -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 { ModalTransition } from '@atlaskit/modal-dialog';
|
|
4
4
|
import { CheckboxModal } from './CheckboxModal';
|
|
5
5
|
import { SimpleModal } from './SimpleModal';
|
|
@@ -7,7 +7,7 @@ import { memo } from 'react';
|
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
9
9
|
|
|
10
|
-
import { injectIntl } from 'react-intl
|
|
10
|
+
import { injectIntl } from 'react-intl';
|
|
11
11
|
import { DropdownMenuItem, DropdownSeparator } from '@atlaskit/editor-common/floating-toolbar';
|
|
12
12
|
import { HeadingItem } from '@atlaskit/menu';
|
|
13
13
|
export const menuItemDimensions = {
|
|
@@ -9,7 +9,7 @@ import React, { Component } from 'react';
|
|
|
9
9
|
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
11
|
import { css, jsx } from '@emotion/react';
|
|
12
|
-
import { injectIntl } from 'react-intl
|
|
12
|
+
import { injectIntl } from 'react-intl';
|
|
13
13
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
14
14
|
import { areSameItems, messages } from '@atlaskit/editor-common/floating-toolbar';
|
|
15
15
|
import commonMessages from '@atlaskit/editor-common/messages';
|
|
@@ -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 { ModalTransition } from '@atlaskit/modal-dialog';
|
|
4
4
|
import { CheckboxModal } from './CheckboxModal';
|
|
5
5
|
import { SimpleModal } from './SimpleModal';
|
|
@@ -7,7 +7,7 @@ import { memo } from 'react';
|
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
9
9
|
|
|
10
|
-
import { injectIntl } from 'react-intl
|
|
10
|
+
import { injectIntl } from 'react-intl';
|
|
11
11
|
import { DropdownMenuItem, DropdownSeparator } from '@atlaskit/editor-common/floating-toolbar';
|
|
12
12
|
import { HeadingItem } from '@atlaskit/menu';
|
|
13
13
|
export var menuItemDimensions = {
|
package/dist/esm/ui/Toolbar.js
CHANGED
|
@@ -18,7 +18,7 @@ import React, { Component } from 'react';
|
|
|
18
18
|
|
|
19
19
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
20
|
import { css, jsx } from '@emotion/react';
|
|
21
|
-
import { injectIntl } from 'react-intl
|
|
21
|
+
import { injectIntl } from 'react-intl';
|
|
22
22
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
23
23
|
import { areSameItems, messages } from '@atlaskit/editor-common/floating-toolbar';
|
|
24
24
|
import commonMessages from '@atlaskit/editor-common/messages';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { IntlShape } from 'react-intl
|
|
2
|
+
import type { IntlShape } from 'react-intl';
|
|
3
3
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
5
|
import type { ExtractInjectionAPI, FloatingToolbarConfig, FloatingToolbarHandler, UiComponentFactoryParams } from '@atlaskit/editor-common/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
|
|
4
4
|
export declare const CheckboxModal: (props: ConfirmationDialogProps & WrappedComponentProps) => React.JSX.Element;
|
|
@@ -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 { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
|
|
4
4
|
export declare const ConfirmationModal: React.FC<WithIntlProps<ConfirmationDialogProps & WrappedComponentProps>> & {
|
|
5
5
|
WrappedComponent: React.ComponentType<ConfirmationDialogProps & WrappedComponentProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentType, FC } from 'react';
|
|
2
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import type { ExtensionAPI, ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
4
4
|
import type { DropdownOptionT, FloatingToolbarOverflowDropdownOptions } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
import type { IntlShape } from 'react-intl
|
|
7
|
+
import type { IntlShape } from 'react-intl';
|
|
8
8
|
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
9
9
|
interface ScrollButtonsProps {
|
|
10
10
|
areAnyNewToolbarFlagsEnabled: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
|
|
4
4
|
export declare const SimpleModal: (props: ConfirmationDialogProps & WrappedComponentProps) => React.JSX.Element;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx 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 { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
9
9
|
import type { Item } from '@atlaskit/editor-common/floating-toolbar';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { IntlShape } from 'react-intl
|
|
2
|
+
import type { IntlShape } from 'react-intl';
|
|
3
3
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
5
|
import type { ExtractInjectionAPI, FloatingToolbarConfig, FloatingToolbarHandler, UiComponentFactoryParams } from '@atlaskit/editor-common/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
|
|
4
4
|
export declare const CheckboxModal: (props: ConfirmationDialogProps & WrappedComponentProps) => React.JSX.Element;
|
|
@@ -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 { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
|
|
4
4
|
export declare const ConfirmationModal: React.FC<WithIntlProps<ConfirmationDialogProps & WrappedComponentProps>> & {
|
|
5
5
|
WrappedComponent: React.ComponentType<ConfirmationDialogProps & WrappedComponentProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentType, FC } from 'react';
|
|
2
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import type { ExtensionAPI, ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
4
4
|
import type { DropdownOptionT, FloatingToolbarOverflowDropdownOptions } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
import type { IntlShape } from 'react-intl
|
|
7
|
+
import type { IntlShape } from 'react-intl';
|
|
8
8
|
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
9
9
|
interface ScrollButtonsProps {
|
|
10
10
|
areAnyNewToolbarFlagsEnabled: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
|
|
4
4
|
export declare const SimpleModal: (props: ConfirmationDialogProps & WrappedComponentProps) => React.JSX.Element;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx 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 { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
9
9
|
import type { Item } from '@atlaskit/editor-common/floating-toolbar';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-floating-toolbar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
"@atlaskit/button": "^23.11.0",
|
|
26
26
|
"@atlaskit/checkbox": "^17.3.0",
|
|
27
27
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
28
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
29
|
-
"@atlaskit/editor-plugin-context-panel": "^
|
|
30
|
-
"@atlaskit/editor-plugin-copy-button": "^
|
|
31
|
-
"@atlaskit/editor-plugin-decorations": "^
|
|
32
|
-
"@atlaskit/editor-plugin-editor-disabled": "^
|
|
33
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
34
|
-
"@atlaskit/editor-plugin-emoji": "^
|
|
35
|
-
"@atlaskit/editor-plugin-extension": "^
|
|
36
|
-
"@atlaskit/editor-plugin-interaction": "^
|
|
37
|
-
"@atlaskit/editor-plugin-user-intent": "^
|
|
28
|
+
"@atlaskit/editor-plugin-analytics": "^10.0.0",
|
|
29
|
+
"@atlaskit/editor-plugin-context-panel": "^12.0.0",
|
|
30
|
+
"@atlaskit/editor-plugin-copy-button": "^10.0.0",
|
|
31
|
+
"@atlaskit/editor-plugin-decorations": "^10.0.0",
|
|
32
|
+
"@atlaskit/editor-plugin-editor-disabled": "^10.0.0",
|
|
33
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^12.0.0",
|
|
34
|
+
"@atlaskit/editor-plugin-emoji": "^11.0.0",
|
|
35
|
+
"@atlaskit/editor-plugin-extension": "^13.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-interaction": "^19.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-user-intent": "^8.0.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
39
39
|
"@atlaskit/emoji": "^70.0.0",
|
|
40
40
|
"@atlaskit/icon": "^34.2.0",
|
|
@@ -51,19 +51,20 @@
|
|
|
51
51
|
"bind-event-listener": "^3.0.0",
|
|
52
52
|
"lodash": "^4.17.21",
|
|
53
53
|
"raf-schd": "^4.0.3",
|
|
54
|
-
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
55
54
|
"react-loadable": "^5.1.0"
|
|
56
55
|
},
|
|
57
56
|
"peerDependencies": {
|
|
58
|
-
"@atlaskit/editor-common": "^
|
|
57
|
+
"@atlaskit/editor-common": "^114.0.0",
|
|
59
58
|
"react": "^18.2.0",
|
|
60
|
-
"react-dom": "^18.2.0"
|
|
59
|
+
"react-dom": "^18.2.0",
|
|
60
|
+
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@testing-library/dom": "^10.1.0",
|
|
64
64
|
"@testing-library/react": "^16.3.0",
|
|
65
65
|
"@testing-library/user-event": "^14.4.3",
|
|
66
66
|
"enzyme": "^3.10.0",
|
|
67
|
+
"react-intl": "^6.6.2",
|
|
67
68
|
"wait-for-expect": "^1.2.0"
|
|
68
69
|
},
|
|
69
70
|
"techstack": {
|