@atlaskit/link-picker 4.2.8 → 4.2.9

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,13 @@
1
1
  # @atlaskit/link-picker
2
2
 
3
+ ## 4.2.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8d357ee3705c1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8d357ee3705c1) -
8
+ [ux] NAVX-3332 updating link-picker headings to be h3 for a11y
9
+ - Updated dependencies
10
+
3
11
  ## 4.2.8
4
12
 
5
13
  ### Patch Changes
@@ -15,6 +15,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
15
15
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
16
16
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
17
17
  var _reactIntlNext = require("react-intl-next");
18
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
19
  var _compiled = require("@atlaskit/primitives/compiled");
19
20
  var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
20
21
  var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
@@ -139,8 +140,8 @@ var LinkSearchList = exports.LinkSearchList = /*#__PURE__*/(0, _react.forwardRef
139
140
  var listItemNameMaxLines = activePlugin === null || activePlugin === void 0 || (_activePlugin$uiOptio = activePlugin.uiOptions) === null || _activePlugin$uiOptio === void 0 ? void 0 : _activePlugin$uiOptio.listItemNameMaxLines;
140
141
  if (items && items.length > 0) {
141
142
  itemsContent = /*#__PURE__*/React.createElement(_react.Fragment, null, /*#__PURE__*/React.createElement(_compiled.Box, {
142
- as: "h2" // Must remain <h2> for a11y title hierarchy as per https://hello.jira.atlassian.cloud/browse/A11Y-27579
143
- // `.wiki-content h2` css styles in confluence override ADS/native styles here, so inline styles are needed.
143
+ as: (0, _platformFeatureFlags.fg)('navx-3332-update-link-picker-heading-levels') ? 'h3' : 'h2' // Must remain <h3> for a11y title hierarchy as per https://hello.jira.atlassian.cloud/browse/NAVX-3332
144
+ // `.wiki-content h3` css styles in confluence override ADS/native styles here, so inline styles are needed.
144
145
  // Should use css or xcss prop when that CSS is removed/fixed by confluence
145
146
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
146
147
  ,
@@ -25,7 +25,7 @@ var testIds = exports.testIds = {
25
25
  };
26
26
  var PACKAGE_DATA = exports.PACKAGE_DATA = {
27
27
  packageName: "@atlaskit/link-picker" || '',
28
- packageVersion: "0.0.0-development" || '',
28
+ packageVersion: "4.2.9" || '',
29
29
  componentName: _constants.COMPONENT_NAME,
30
30
  source: _constants.COMPONENT_NAME
31
31
  };
@@ -5,6 +5,7 @@ import * as React from 'react';
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
6
  import { forwardRef, Fragment, useCallback, useRef } from 'react';
7
7
  import { defineMessages, FormattedMessage } from 'react-intl-next';
8
+ import { fg } from '@atlaskit/platform-feature-flags';
8
9
  import { Box } from '@atlaskit/primitives/compiled';
9
10
  import Spinner from '@atlaskit/spinner';
10
11
  import VisuallyHidden from '@atlaskit/visually-hidden';
@@ -128,8 +129,8 @@ export const LinkSearchList = /*#__PURE__*/forwardRef(({
128
129
  const listItemNameMaxLines = activePlugin === null || activePlugin === void 0 ? void 0 : (_activePlugin$uiOptio = activePlugin.uiOptions) === null || _activePlugin$uiOptio === void 0 ? void 0 : _activePlugin$uiOptio.listItemNameMaxLines;
129
130
  if (items && items.length > 0) {
130
131
  itemsContent = /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Box, {
131
- as: "h2" // Must remain <h2> for a11y title hierarchy as per https://hello.jira.atlassian.cloud/browse/A11Y-27579
132
- // `.wiki-content h2` css styles in confluence override ADS/native styles here, so inline styles are needed.
132
+ as: fg('navx-3332-update-link-picker-heading-levels') ? 'h3' : 'h2' // Must remain <h3> for a11y title hierarchy as per https://hello.jira.atlassian.cloud/browse/NAVX-3332
133
+ // `.wiki-content h3` css styles in confluence override ADS/native styles here, so inline styles are needed.
133
134
  // Should use css or xcss prop when that CSS is removed/fixed by confluence
134
135
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
135
136
  ,
@@ -15,7 +15,7 @@ export const testIds = {
15
15
  };
16
16
  export const PACKAGE_DATA = {
17
17
  packageName: "@atlaskit/link-picker" || '',
18
- packageVersion: "0.0.0-development" || '',
18
+ packageVersion: "4.2.9" || '',
19
19
  componentName: COMPONENT_NAME,
20
20
  source: COMPONENT_NAME
21
21
  };
@@ -10,6 +10,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
10
10
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
11
11
  import { forwardRef, Fragment, useCallback, useRef } from 'react';
12
12
  import { defineMessages, FormattedMessage } from 'react-intl-next';
13
+ import { fg } from '@atlaskit/platform-feature-flags';
13
14
  import { Box } from '@atlaskit/primitives/compiled';
14
15
  import Spinner from '@atlaskit/spinner';
15
16
  import VisuallyHidden from '@atlaskit/visually-hidden';
@@ -130,8 +131,8 @@ export var LinkSearchList = /*#__PURE__*/forwardRef(function (_ref, ref) {
130
131
  var listItemNameMaxLines = activePlugin === null || activePlugin === void 0 || (_activePlugin$uiOptio = activePlugin.uiOptions) === null || _activePlugin$uiOptio === void 0 ? void 0 : _activePlugin$uiOptio.listItemNameMaxLines;
131
132
  if (items && items.length > 0) {
132
133
  itemsContent = /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Box, {
133
- as: "h2" // Must remain <h2> for a11y title hierarchy as per https://hello.jira.atlassian.cloud/browse/A11Y-27579
134
- // `.wiki-content h2` css styles in confluence override ADS/native styles here, so inline styles are needed.
134
+ as: fg('navx-3332-update-link-picker-heading-levels') ? 'h3' : 'h2' // Must remain <h3> for a11y title hierarchy as per https://hello.jira.atlassian.cloud/browse/NAVX-3332
135
+ // `.wiki-content h3` css styles in confluence override ADS/native styles here, so inline styles are needed.
135
136
  // Should use css or xcss prop when that CSS is removed/fixed by confluence
136
137
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
137
138
  ,
@@ -16,7 +16,7 @@ export var testIds = {
16
16
  };
17
17
  export var PACKAGE_DATA = {
18
18
  packageName: "@atlaskit/link-picker" || '',
19
- packageVersion: "0.0.0-development" || '',
19
+ packageVersion: "4.2.9" || '',
20
20
  componentName: COMPONENT_NAME,
21
21
  source: COMPONENT_NAME
22
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-picker",
3
- "version": "4.2.8",
3
+ "version": "4.2.9",
4
4
  "description": "Standalone link picker",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {
@@ -37,6 +37,9 @@
37
37
  },
38
38
  "aifc_create_enabled": {
39
39
  "type": "boolean"
40
+ },
41
+ "navx-3332-update-link-picker-heading-levels": {
42
+ "type": "boolean"
40
43
  }
41
44
  },
42
45
  "scripts": {
@@ -55,11 +58,11 @@
55
58
  "@atlaskit/intl-messages-provider": "^2.0.0",
56
59
  "@atlaskit/link": "^3.3.0",
57
60
  "@atlaskit/link-provider": "^4.2.0",
58
- "@atlaskit/linking-common": "^9.9.0",
61
+ "@atlaskit/linking-common": "^9.10.0",
59
62
  "@atlaskit/onboarding": "^14.5.0",
60
63
  "@atlaskit/platform-feature-flags": "^1.1.0",
61
64
  "@atlaskit/primitives": "^18.0.0",
62
- "@atlaskit/smart-card": "^43.24.0",
65
+ "@atlaskit/smart-card": "^43.25.0",
63
66
  "@atlaskit/spinner": "^19.0.0",
64
67
  "@atlaskit/tabs": "^18.3.0",
65
68
  "@atlaskit/textfield": "^8.2.0",