@atlaskit/editor-plugin-hyperlink 4.0.6 → 4.1.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 CHANGED
@@ -1,5 +1,26 @@
1
1
  # @atlaskit/editor-plugin-hyperlink
2
2
 
3
+ ## 4.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#120472](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120472)
8
+ [`73c800ab5f2fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73c800ab5f2fc) -
9
+ ED-26766 update adf-schema from 47.2.1 to 47.6.0 and adf-schema-json from 1.27.0 to 1.31.0
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 4.0.7
16
+
17
+ ### Patch Changes
18
+
19
+ - [#120931](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120931)
20
+ [`624b97c021fea`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/624b97c021fea) -
21
+ [ux] ED-26676 revert to existing primary toolbar components
22
+ - Updated dependencies
23
+
3
24
  ## 4.0.6
4
25
 
5
26
  ### 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
- spacing: "none",
43
- title: content
44
- }, (0, _react2.jsx)(_link.default, {
45
- label: "",
46
- color: "currentColor",
47
- spacing: "none"
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 { css, jsx } from '@emotion/react';
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
- spacing: "none",
40
- title: content
41
- }, jsx(LinkIcon, {
42
- label: "",
43
- color: "currentColor",
44
- spacing: "none"
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 { css, jsx } from '@emotion/react';
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
- spacing: "none",
35
- title: content
36
- }, jsx(LinkIcon, {
37
- label: "",
38
- color: "currentColor",
39
- spacing: "none"
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.6",
3
+ "version": "4.1.0",
4
4
  "description": "Hyperlink plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,11 +33,11 @@
33
33
  ".": "./src/index.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/adf-schema": "^47.2.1",
36
+ "@atlaskit/adf-schema": "^47.6.0",
37
37
  "@atlaskit/analytics-next": "^11.0.0",
38
- "@atlaskit/editor-common": "^100.4.0",
39
- "@atlaskit/editor-plugin-analytics": "^2.0.0",
40
- "@atlaskit/editor-plugin-card": "5.0.6",
38
+ "@atlaskit/editor-common": "^100.5.0",
39
+ "@atlaskit/editor-plugin-analytics": "^2.1.0",
40
+ "@atlaskit/editor-plugin-card": "5.1.0",
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",
@@ -46,7 +46,7 @@
46
46
  "@atlaskit/icon": "^24.1.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
48
  "@atlaskit/prosemirror-input-rules": "^3.3.0",
49
- "@atlaskit/tmp-editor-statsig": "^3.3.0",
49
+ "@atlaskit/tmp-editor-statsig": "^3.4.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1",
52
52
  "uuid": "^3.1.0"