@atlaskit/editor-plugin-hyperlink 4.0.5 → 4.0.7
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
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-hyperlink
|
|
2
2
|
|
|
3
|
+
## 4.0.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#120931](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120931)
|
|
8
|
+
[`624b97c021fea`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/624b97c021fea) -
|
|
9
|
+
[ux] ED-26676 revert to existing primary toolbar components
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 4.0.6
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 4.0.5
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -30,24 +30,18 @@ var PrimaryToolbarComponentWithIntl = function PrimaryToolbarComponentWithIntl(_
|
|
|
30
30
|
var _api$core, _api$hyperlink;
|
|
31
31
|
api === null || api === void 0 || (_api$core = api.core) === null || _api$core === void 0 || _api$core.actions.execute(api === null || api === void 0 || (_api$hyperlink = api.hyperlink) === null || _api$hyperlink === void 0 ? void 0 : _api$hyperlink.commands.showLinkToolbar(_analytics.INPUT_METHOD.TOOLBAR));
|
|
32
32
|
}, [api]);
|
|
33
|
-
return (0, _react2.jsx)(_uiMenu.ToolbarButton
|
|
34
|
-
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
|
|
35
|
-
, {
|
|
36
|
-
css: buttonStyles,
|
|
33
|
+
return (0, _react2.jsx)(_uiMenu.ToolbarButton, {
|
|
37
34
|
onClick: onClick,
|
|
38
35
|
"aria-haspopup": "dialog",
|
|
39
36
|
"aria-keyshortcuts": (0, _keymaps.getAriaKeyshortcuts)(_keymaps.addLink),
|
|
40
37
|
"aria-label": content,
|
|
41
38
|
testId: content,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
})
|
|
39
|
+
title: content,
|
|
40
|
+
iconBefore: (0, _react2.jsx)(_link.default, {
|
|
41
|
+
label: content,
|
|
42
|
+
color: "currentColor",
|
|
43
|
+
spacing: "spacious"
|
|
44
|
+
})
|
|
45
|
+
});
|
|
49
46
|
};
|
|
50
|
-
var buttonStyles = (0, _react2.css)({
|
|
51
|
-
padding: "var(--ds-space-075, 6px)".concat(" ", "var(--ds-space-100, 8px)")
|
|
52
|
-
});
|
|
53
47
|
var PrimaryToolbarComponent = exports.PrimaryToolbarComponent = (0, _reactIntlNext.injectIntl)(PrimaryToolbarComponentWithIntl);
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { useCallback } from 'react';
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
-
import {
|
|
9
|
+
import { jsx } from '@emotion/react';
|
|
10
10
|
import { injectIntl } from 'react-intl-next';
|
|
11
11
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
12
12
|
import { addLink, getAriaKeyshortcuts } from '@atlaskit/editor-common/keymaps';
|
|
@@ -27,24 +27,18 @@ const PrimaryToolbarComponentWithIntl = ({
|
|
|
27
27
|
var _api$core, _api$hyperlink;
|
|
28
28
|
api === null || api === void 0 ? void 0 : (_api$core = api.core) === null || _api$core === void 0 ? void 0 : _api$core.actions.execute(api === null || api === void 0 ? void 0 : (_api$hyperlink = api.hyperlink) === null || _api$hyperlink === void 0 ? void 0 : _api$hyperlink.commands.showLinkToolbar(INPUT_METHOD.TOOLBAR));
|
|
29
29
|
}, [api]);
|
|
30
|
-
return jsx(ToolbarButton
|
|
31
|
-
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
|
|
32
|
-
, {
|
|
33
|
-
css: buttonStyles,
|
|
30
|
+
return jsx(ToolbarButton, {
|
|
34
31
|
onClick: onClick,
|
|
35
32
|
"aria-haspopup": "dialog",
|
|
36
33
|
"aria-keyshortcuts": getAriaKeyshortcuts(addLink),
|
|
37
34
|
"aria-label": content,
|
|
38
35
|
testId: content,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
})
|
|
36
|
+
title: content,
|
|
37
|
+
iconBefore: jsx(LinkIcon, {
|
|
38
|
+
label: content,
|
|
39
|
+
color: "currentColor",
|
|
40
|
+
spacing: "spacious"
|
|
41
|
+
})
|
|
42
|
+
});
|
|
46
43
|
};
|
|
47
|
-
const buttonStyles = css({
|
|
48
|
-
padding: `${"var(--ds-space-075, 6px)"} ${"var(--ds-space-100, 8px)"}`
|
|
49
|
-
});
|
|
50
44
|
export const PrimaryToolbarComponent = injectIntl(PrimaryToolbarComponentWithIntl);
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { useCallback } from 'react';
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
-
import {
|
|
9
|
+
import { jsx } from '@emotion/react';
|
|
10
10
|
import { injectIntl } from 'react-intl-next';
|
|
11
11
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
12
12
|
import { addLink, getAriaKeyshortcuts } from '@atlaskit/editor-common/keymaps';
|
|
@@ -22,24 +22,18 @@ var PrimaryToolbarComponentWithIntl = function PrimaryToolbarComponentWithIntl(_
|
|
|
22
22
|
var _api$core, _api$hyperlink;
|
|
23
23
|
api === null || api === void 0 || (_api$core = api.core) === null || _api$core === void 0 || _api$core.actions.execute(api === null || api === void 0 || (_api$hyperlink = api.hyperlink) === null || _api$hyperlink === void 0 ? void 0 : _api$hyperlink.commands.showLinkToolbar(INPUT_METHOD.TOOLBAR));
|
|
24
24
|
}, [api]);
|
|
25
|
-
return jsx(ToolbarButton
|
|
26
|
-
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
|
|
27
|
-
, {
|
|
28
|
-
css: buttonStyles,
|
|
25
|
+
return jsx(ToolbarButton, {
|
|
29
26
|
onClick: onClick,
|
|
30
27
|
"aria-haspopup": "dialog",
|
|
31
28
|
"aria-keyshortcuts": getAriaKeyshortcuts(addLink),
|
|
32
29
|
"aria-label": content,
|
|
33
30
|
testId: content,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
})
|
|
31
|
+
title: content,
|
|
32
|
+
iconBefore: jsx(LinkIcon, {
|
|
33
|
+
label: content,
|
|
34
|
+
color: "currentColor",
|
|
35
|
+
spacing: "spacious"
|
|
36
|
+
})
|
|
37
|
+
});
|
|
41
38
|
};
|
|
42
|
-
var buttonStyles = css({
|
|
43
|
-
padding: "var(--ds-space-075, 6px)".concat(" ", "var(--ds-space-100, 8px)")
|
|
44
|
-
});
|
|
45
39
|
export var PrimaryToolbarComponent = injectIntl(PrimaryToolbarComponentWithIntl);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-hyperlink",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.7",
|
|
4
4
|
"description": "Hyperlink plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
38
38
|
"@atlaskit/editor-common": "^100.4.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^2.0.0",
|
|
40
|
-
"@atlaskit/editor-plugin-card": "5.0.
|
|
40
|
+
"@atlaskit/editor-plugin-card": "5.0.7",
|
|
41
41
|
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|
|
42
42
|
"@atlaskit/editor-plugin-editor-viewmode": "^3.0.0",
|
|
43
43
|
"@atlaskit/editor-plugin-primary-toolbar": "^3.0.0",
|