@atlaskit/editor-plugin-hyperlink 10.0.31 → 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 +25 -0
- package/dist/cjs/pm-plugins/decorations.js +2 -2
- package/dist/cjs/ui/PrimaryToolbarComponent.js +2 -2
- package/dist/cjs/ui/toolbar/LinkButton.js +2 -2
- package/dist/es2019/pm-plugins/decorations.js +1 -1
- package/dist/es2019/ui/PrimaryToolbarComponent.js +1 -1
- package/dist/es2019/ui/toolbar/LinkButton.js +1 -1
- package/dist/esm/pm-plugins/decorations.js +1 -1
- package/dist/esm/ui/PrimaryToolbarComponent.js +1 -1
- package/dist/esm/ui/toolbar/LinkButton.js +1 -1
- package/dist/types/pm-plugins/decorations.d.ts +1 -1
- package/dist/types/pm-plugins/main.d.ts +1 -1
- package/dist/types/ui/PrimaryToolbarComponent.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/decorations.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/main.d.ts +1 -1
- package/dist/types-ts4.5/ui/PrimaryToolbarComponent.d.ts +1 -1
- package/package.json +16 -15
- package/report.api.md +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-hyperlink
|
|
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
|
+
|
|
22
|
+
## 11.0.0
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
|
|
3
28
|
## 10.0.31
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.ButtonWrapper = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _reactDom = require("react-dom");
|
|
10
|
-
var
|
|
10
|
+
var _reactIntl = require("react-intl");
|
|
11
11
|
var _link = require("@atlaskit/editor-common/link");
|
|
12
12
|
var ButtonWrapper = exports.ButtonWrapper = function ButtonWrapper(_ref) {
|
|
13
13
|
var editorView = _ref.editorView,
|
|
@@ -24,7 +24,7 @@ var ButtonWrapper = exports.ButtonWrapper = function ButtonWrapper(_ref) {
|
|
|
24
24
|
isOpen: isOpen
|
|
25
25
|
}));
|
|
26
26
|
};
|
|
27
|
-
(0, _reactDom.render)( /*#__PURE__*/_react.default.createElement(
|
|
27
|
+
(0, _reactDom.render)( /*#__PURE__*/_react.default.createElement(_reactIntl.IntlProvider, {
|
|
28
28
|
locale: intl.locale || 'en',
|
|
29
29
|
messages: intl.messages,
|
|
30
30
|
formats: intl.formats
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.PrimaryToolbarComponent = void 0;
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
|
-
var
|
|
10
|
+
var _reactIntl = require("react-intl");
|
|
11
11
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
12
12
|
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
13
13
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
@@ -44,4 +44,4 @@ var PrimaryToolbarComponentWithIntl = function PrimaryToolbarComponentWithIntl(_
|
|
|
44
44
|
})
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
var PrimaryToolbarComponent = exports.PrimaryToolbarComponent = (0,
|
|
47
|
+
var PrimaryToolbarComponent = exports.PrimaryToolbarComponent = (0, _reactIntl.injectIntl)(PrimaryToolbarComponentWithIntl);
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.LinkButton = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _reactIntl = require("react-intl");
|
|
10
10
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
11
11
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
12
12
|
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
@@ -14,7 +14,7 @@ var _messages = require("@atlaskit/editor-common/messages");
|
|
|
14
14
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
15
15
|
var LinkButton = exports.LinkButton = function LinkButton(_ref) {
|
|
16
16
|
var api = _ref.api;
|
|
17
|
-
var _useIntl = (0,
|
|
17
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
18
18
|
formatMessage = _useIntl.formatMessage;
|
|
19
19
|
var canInsertLink = (0, _hooks.useSharedPluginStateWithSelector)(api, ['hyperlink'], function (state) {
|
|
20
20
|
var _state$hyperlinkState, _state$hyperlinkState2;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from 'react-dom';
|
|
3
|
-
import { IntlProvider } from 'react-intl
|
|
3
|
+
import { IntlProvider } from 'react-intl';
|
|
4
4
|
import { LinkAction, OverlayButton } from '@atlaskit/editor-common/link';
|
|
5
5
|
export const ButtonWrapper = ({
|
|
6
6
|
editorView,
|
|
@@ -7,7 +7,7 @@ import { useCallback } from 'react';
|
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
|
-
import { injectIntl } from 'react-intl
|
|
10
|
+
import { injectIntl } from 'react-intl';
|
|
11
11
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
12
12
|
import { addLink, getAriaKeyshortcuts } from '@atlaskit/editor-common/keymaps';
|
|
13
13
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
@@ -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 { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
5
5
|
import { ToolTipContent, addLink } from '@atlaskit/editor-common/keymaps';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from 'react-dom';
|
|
3
|
-
import { IntlProvider } from 'react-intl
|
|
3
|
+
import { IntlProvider } from 'react-intl';
|
|
4
4
|
import { LinkAction, OverlayButton } from '@atlaskit/editor-common/link';
|
|
5
5
|
export var ButtonWrapper = function ButtonWrapper(_ref) {
|
|
6
6
|
var editorView = _ref.editorView,
|
|
@@ -7,7 +7,7 @@ import { useCallback } from 'react';
|
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
|
-
import { injectIntl } from 'react-intl
|
|
10
|
+
import { injectIntl } from 'react-intl';
|
|
11
11
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
12
12
|
import { addLink, getAriaKeyshortcuts } from '@atlaskit/editor-common/keymaps';
|
|
13
13
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
@@ -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 { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
5
5
|
import { ToolTipContent, addLink } from '@atlaskit/editor-common/keymaps';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type MouseEvent } from 'react';
|
|
2
|
-
import { type IntlShape } from 'react-intl
|
|
2
|
+
import { type IntlShape } from 'react-intl';
|
|
3
3
|
import { type HyperlinkState } from '@atlaskit/editor-common/link';
|
|
4
4
|
import type { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { OnClickCallback } from '@atlaskit/editor-common/card';
|
|
3
3
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
4
|
import type { HyperlinkState } from '@atlaskit/editor-common/link';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { type ComponentType, type FC } 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 { HyperlinkPlugin } from '../hyperlinkPluginType';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type MouseEvent } from 'react';
|
|
2
|
-
import { type IntlShape } from 'react-intl
|
|
2
|
+
import { type IntlShape } from 'react-intl';
|
|
3
3
|
import { type HyperlinkState } from '@atlaskit/editor-common/link';
|
|
4
4
|
import type { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { OnClickCallback } from '@atlaskit/editor-common/card';
|
|
3
3
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
4
|
import type { HyperlinkState } from '@atlaskit/editor-common/link';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { type ComponentType, type FC } 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 { HyperlinkPlugin } from '../hyperlinkPluginType';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-hyperlink",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"description": "Hyperlink plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,36 +29,37 @@
|
|
|
29
29
|
],
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@atlaskit/adf-schema": "^52.
|
|
32
|
+
"@atlaskit/adf-schema": "^52.5.0",
|
|
33
33
|
"@atlaskit/analytics-next": "^11.2.0",
|
|
34
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
35
|
-
"@atlaskit/editor-plugin-card": "^
|
|
36
|
-
"@atlaskit/editor-plugin-connectivity": "^
|
|
37
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
38
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^
|
|
39
|
-
"@atlaskit/editor-plugin-selection-toolbar": "^
|
|
40
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
41
|
-
"@atlaskit/editor-plugin-user-intent": "^
|
|
34
|
+
"@atlaskit/editor-plugin-analytics": "^10.0.0",
|
|
35
|
+
"@atlaskit/editor-plugin-card": "^16.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-connectivity": "^10.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^12.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^11.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-selection-toolbar": "^11.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-toolbar": "^7.0.0",
|
|
41
|
+
"@atlaskit/editor-plugin-user-intent": "^8.0.0",
|
|
42
42
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
43
|
-
"@atlaskit/editor-toolbar": "^0.
|
|
43
|
+
"@atlaskit/editor-toolbar": "^1.0.0",
|
|
44
44
|
"@atlaskit/editor-toolbar-model": "^0.4.0",
|
|
45
|
-
"@atlaskit/icon": "^34.
|
|
45
|
+
"@atlaskit/icon": "^34.2.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
47
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^62.
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^62.4.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"@emotion/react": "^11.7.1",
|
|
51
51
|
"uuid": "^3.1.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@atlaskit/editor-common": "^
|
|
54
|
+
"@atlaskit/editor-common": "^114.0.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
61
|
"raf-stub": "^2.0.1",
|
|
62
|
+
"react-intl": "^6.6.2",
|
|
62
63
|
"wait-for-expect": "^1.2.0"
|
|
63
64
|
},
|
|
64
65
|
"techstack": {
|
package/report.api.md
CHANGED
|
@@ -26,7 +26,7 @@ import type { FloatingToolbarItem } from '@atlaskit/editor-common/types';
|
|
|
26
26
|
import type { HyperlinkPluginOptions } from '@atlaskit/editor-common/types';
|
|
27
27
|
import type { HyperlinkState } from '@atlaskit/editor-common/link';
|
|
28
28
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
29
|
-
import type { IntlShape } from 'react-intl
|
|
29
|
+
import type { IntlShape } from 'react-intl';
|
|
30
30
|
import type { LinkInputType } from '@atlaskit/editor-common/types';
|
|
31
31
|
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
32
32
|
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
@@ -119,7 +119,7 @@ export type UpdateLink = (href: string, text: string, pos: number, to?: number)
|
|
|
119
119
|
```json
|
|
120
120
|
{
|
|
121
121
|
"react": "^16.8.0",
|
|
122
|
-
"react-intl
|
|
122
|
+
"react-intl": "npm:react-intl@^5.18.1"
|
|
123
123
|
}
|
|
124
124
|
```
|
|
125
125
|
|