@atlaskit/editor-plugin-extension 5.3.8 → 5.4.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,14 @@
1
1
  # @atlaskit/editor-plugin-extension
2
2
 
3
+ ## 5.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#157075](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/157075)
8
+ [`bd3036802949a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd3036802949a) -
9
+ We are testing the migration to the ADS Link component behind a feature flag. If this fix is
10
+ successful it will be available in a later release.
11
+
3
12
  ## 5.3.8
4
13
 
5
14
  ### Patch Changes
@@ -221,6 +221,11 @@ var editButton = function editButton(formatMessage, extensionState, applyChangeT
221
221
 
222
222
  /**
223
223
  * Calculates the position for the toolbar when dealing with nested extensions
224
+ * @param editorView
225
+ * @param nextPos
226
+ * @param state
227
+ * @param extensionNode
228
+ * @example
224
229
  */
225
230
  var calculateToolbarPosition = function calculateToolbarPosition(editorView, nextPos, state, extensionNode) {
226
231
  var _editorView$state = editorView.state,
@@ -6,17 +6,23 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.HelpLink = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
+ var _link = _interopRequireDefault(require("@atlaskit/link"));
10
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
9
11
  var HelpLink = exports.HelpLink = function HelpLink(_ref) {
10
12
  var documentationUrl = _ref.documentationUrl,
11
13
  label = _ref.label;
12
- return (
13
- /*#__PURE__*/
14
- // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
15
- _react.default.createElement("a", {
16
- target: "_blank",
17
- rel: "noopener noreferrer",
18
- href: documentationUrl,
19
- "data-testid": "config-panel-header-documentation-link"
20
- }, label)
21
- );
14
+ return (0, _platformFeatureFlags.fg)('dst-a11y__replace-anchor-with-link__editor-core-ex') ? /*#__PURE__*/_react.default.createElement(_link.default, {
15
+ target: "_blank",
16
+ rel: "noopener noreferrer",
17
+ href: documentationUrl,
18
+ "data-testid": "config-panel-header-documentation-link"
19
+ }, label) :
20
+ /*#__PURE__*/
21
+ // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
22
+ _react.default.createElement("a", {
23
+ target: "_blank",
24
+ rel: "noopener noreferrer",
25
+ href: documentationUrl,
26
+ "data-testid": "config-panel-header-documentation-link"
27
+ }, label);
22
28
  };
@@ -217,6 +217,11 @@ const editButton = (formatMessage, extensionState, applyChangeToContextPanel, ed
217
217
 
218
218
  /**
219
219
  * Calculates the position for the toolbar when dealing with nested extensions
220
+ * @param editorView
221
+ * @param nextPos
222
+ * @param state
223
+ * @param extensionNode
224
+ * @example
220
225
  */
221
226
  const calculateToolbarPosition = (editorView, nextPos, state, extensionNode) => {
222
227
  const {
@@ -1,16 +1,22 @@
1
1
  import React from 'react';
2
+ import Link from '@atlaskit/link';
3
+ import { fg } from '@atlaskit/platform-feature-flags';
2
4
  export const HelpLink = ({
3
5
  documentationUrl,
4
6
  label
5
7
  }) => {
6
- return (
7
- /*#__PURE__*/
8
- // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
9
- React.createElement("a", {
10
- target: "_blank",
11
- rel: "noopener noreferrer",
12
- href: documentationUrl,
13
- "data-testid": "config-panel-header-documentation-link"
14
- }, label)
15
- );
8
+ return fg('dst-a11y__replace-anchor-with-link__editor-core-ex') ? /*#__PURE__*/React.createElement(Link, {
9
+ target: "_blank",
10
+ rel: "noopener noreferrer",
11
+ href: documentationUrl,
12
+ "data-testid": "config-panel-header-documentation-link"
13
+ }, label) :
14
+ /*#__PURE__*/
15
+ // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
16
+ React.createElement("a", {
17
+ target: "_blank",
18
+ rel: "noopener noreferrer",
19
+ href: documentationUrl,
20
+ "data-testid": "config-panel-header-documentation-link"
21
+ }, label);
16
22
  };
@@ -215,6 +215,11 @@ var editButton = function editButton(formatMessage, extensionState, applyChangeT
215
215
 
216
216
  /**
217
217
  * Calculates the position for the toolbar when dealing with nested extensions
218
+ * @param editorView
219
+ * @param nextPos
220
+ * @param state
221
+ * @param extensionNode
222
+ * @example
218
223
  */
219
224
  var calculateToolbarPosition = function calculateToolbarPosition(editorView, nextPos, state, extensionNode) {
220
225
  var _editorView$state = editorView.state,
@@ -1,15 +1,21 @@
1
1
  import React from 'react';
2
+ import Link from '@atlaskit/link';
3
+ import { fg } from '@atlaskit/platform-feature-flags';
2
4
  export var HelpLink = function HelpLink(_ref) {
3
5
  var documentationUrl = _ref.documentationUrl,
4
6
  label = _ref.label;
5
- return (
6
- /*#__PURE__*/
7
- // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
8
- React.createElement("a", {
9
- target: "_blank",
10
- rel: "noopener noreferrer",
11
- href: documentationUrl,
12
- "data-testid": "config-panel-header-documentation-link"
13
- }, label)
14
- );
7
+ return fg('dst-a11y__replace-anchor-with-link__editor-core-ex') ? /*#__PURE__*/React.createElement(Link, {
8
+ target: "_blank",
9
+ rel: "noopener noreferrer",
10
+ href: documentationUrl,
11
+ "data-testid": "config-panel-header-documentation-link"
12
+ }, label) :
13
+ /*#__PURE__*/
14
+ // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
15
+ React.createElement("a", {
16
+ target: "_blank",
17
+ rel: "noopener noreferrer",
18
+ href: documentationUrl,
19
+ "data-testid": "config-panel-header-documentation-link"
20
+ }, label);
15
21
  };
@@ -4,7 +4,7 @@ import type { ExtensionAPI, ExtensionHandlers, ExtensionProvider, Parameters, Tr
4
4
  import type { MacroProvider } from '@atlaskit/editor-common/provider-factory';
5
5
  import type { EditorAppearance, LongPressSelectionPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
6
6
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
7
- import { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity';
7
+ import type { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity';
8
8
  import type { ContextIdentifierPlugin } from '@atlaskit/editor-plugin-context-identifier';
9
9
  import type { ApplyChangeHandler, ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
10
10
  import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
@@ -1,6 +1,6 @@
1
1
  import type { FloatingToolbarHandler, PublicPluginAPI } from '@atlaskit/editor-common/types';
2
2
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
3
- import { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity';
3
+ import type { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity';
4
4
  import type { ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
5
5
  import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
6
6
  interface GetToolbarConfigProps {
@@ -4,7 +4,7 @@ import type { ExtensionAPI, ExtensionHandlers, ExtensionProvider, Parameters, Tr
4
4
  import type { MacroProvider } from '@atlaskit/editor-common/provider-factory';
5
5
  import type { EditorAppearance, LongPressSelectionPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
6
6
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
7
- import { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity';
7
+ import type { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity';
8
8
  import type { ContextIdentifierPlugin } from '@atlaskit/editor-plugin-context-identifier';
9
9
  import type { ApplyChangeHandler, ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
10
10
  import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
@@ -1,6 +1,6 @@
1
1
  import type { FloatingToolbarHandler, PublicPluginAPI } from '@atlaskit/editor-common/types';
2
2
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
3
- import { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity';
3
+ import type { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity';
4
4
  import type { ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
5
5
  import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
6
6
  interface GetToolbarConfigProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-extension",
3
- "version": "5.3.8",
3
+ "version": "5.4.0",
4
4
  "description": "editor-plugin-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,10 +29,10 @@
29
29
  "@atlaskit/adf-utils": "^19.19.0",
30
30
  "@atlaskit/analytics-next": "^11.0.0",
31
31
  "@atlaskit/avatar": "^25.1.0",
32
- "@atlaskit/button": "^23.0.0",
32
+ "@atlaskit/button": "^23.2.0",
33
33
  "@atlaskit/checkbox": "^17.1.0",
34
34
  "@atlaskit/datetime-picker": "^17.0.0",
35
- "@atlaskit/editor-common": "^105.2.0",
35
+ "@atlaskit/editor-common": "^105.6.0",
36
36
  "@atlaskit/editor-json-transformer": "^8.24.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^2.3.0",
38
38
  "@atlaskit/editor-plugin-connectivity": "^2.0.0",
@@ -47,21 +47,22 @@
47
47
  "@atlaskit/empty-state": "^10.0.0",
48
48
  "@atlaskit/form": "^12.0.0",
49
49
  "@atlaskit/heading": "^5.2.0",
50
- "@atlaskit/icon": "^26.0.0",
50
+ "@atlaskit/icon": "^26.1.0",
51
+ "@atlaskit/link": "^3.2.0",
51
52
  "@atlaskit/platform-feature-flags": "^1.1.0",
52
- "@atlaskit/primitives": "^14.7.0",
53
+ "@atlaskit/primitives": "^14.8.0",
53
54
  "@atlaskit/radio": "^8.1.0",
54
55
  "@atlaskit/section-message": "^8.2.0",
55
- "@atlaskit/select": "^20.4.0",
56
+ "@atlaskit/select": "^20.6.0",
56
57
  "@atlaskit/smart-user-picker": "^8.0.0",
57
58
  "@atlaskit/spinner": "^18.0.0",
58
- "@atlaskit/tabs": "^18.0.0",
59
+ "@atlaskit/tabs": "^18.1.0",
59
60
  "@atlaskit/textarea": "^8.0.0",
60
61
  "@atlaskit/textfield": "^8.0.0",
61
62
  "@atlaskit/theme": "^18.0.0",
62
- "@atlaskit/tmp-editor-statsig": "^4.21.0",
63
+ "@atlaskit/tmp-editor-statsig": "^4.22.0",
63
64
  "@atlaskit/toggle": "^15.0.0",
64
- "@atlaskit/tokens": "^4.8.0",
65
+ "@atlaskit/tokens": "^4.9.0",
65
66
  "@atlaskit/tooltip": "^20.0.0",
66
67
  "@babel/runtime": "^7.0.0",
67
68
  "@emotion/react": "^11.7.1",
@@ -130,6 +131,9 @@
130
131
  },
131
132
  "platform_editor_controls_patch_8": {
132
133
  "type": "boolean"
134
+ },
135
+ "dst-a11y__replace-anchor-with-link__editor-core-ex": {
136
+ "type": "boolean"
133
137
  }
134
138
  },
135
139
  "stricter": {