@atlaskit/link-picker 3.16.3 → 3.16.5

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/link-picker
2
2
 
3
+ ## 3.16.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`56537d0ea00dd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/56537d0ea00dd) -
8
+ NAVX-2134 fixing styling for link picker heading a11y change
9
+
10
+ ## 3.16.4
11
+
12
+ ### Patch Changes
13
+
14
+ - [`72222bda541f2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/72222bda541f2) -
15
+ Clean up feature flags.
16
+ - Updated dependencies
17
+
3
18
  ## 3.16.3
4
19
 
5
20
  ### Patch Changes
package/compass.yml CHANGED
@@ -7,7 +7,7 @@ description: >-
7
7
  and enhancing productivity.
8
8
  configVersion: 1
9
9
  typeId: CAPABILITY
10
- ownerId: 'ari:cloud:identity::team/e738fbc3-d778-4660-aa11-5697a458ffa7'
10
+ ownerId: 'ari:cloud:identity::team/0e6dedf8-18d1-4531-b4b9-07648a425d47'
11
11
  fields:
12
12
  isMonorepoProject: false
13
13
  tier: 4
@@ -21,10 +21,10 @@ links:
21
21
  url: 'https://hello.jira.atlassian.cloud/jira/software/projects/NAVX/boards/14605'
22
22
  - name: ''
23
23
  type: CHAT_CHANNEL
24
- url: 'https://atlassian.enterprise.slack.com/archives/C07TNMDEVHC'
24
+ url: 'https://atlassian.enterprise.slack.com/archives/C09FTFN0APN'
25
25
  - name: ''
26
26
  type: ON_CALL
27
- url: 'https://hello.jira.atlassian.cloud/jira/ops/teams/e738fbc3-d778-4660-aa11-5697a458ffa7/on-call'
27
+ url: 'https://hello.jira.atlassian.cloud/jira/ops/teams/0e6dedf8-18d1-4531-b4b9-07648a425d47/on-call'
28
28
  relationships:
29
29
  DEPENDS_ON:
30
30
  - 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/85cec322-aa6f-4e16-800d-8ee284f6195b'
@@ -60,7 +60,7 @@ customFields:
60
60
  value: null
61
61
  - name: Owner or Team Name
62
62
  type: single_select
63
- value: 1e93a963-fa64-4c3a-aebb-cc835e418a0a
63
+ value: 1e93a963-fa64-4c3a-aebb-cc835e418a0a # This means Yes
64
64
  - name: Perimeter
65
65
  type: single_select
66
66
  value: null
@@ -15,7 +15,6 @@ 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 _css = require("@atlaskit/css");
19
18
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
20
19
  var _compiled = require("@atlaskit/primitives/compiled");
21
20
  var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
@@ -30,15 +29,19 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
30
29
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
31
30
  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) { (0, _defineProperty2.default)(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; }
32
31
  var styles = {
33
- emptyStateNoResultsWrapper: "_1tkepxbi",
34
- baseListTitleStyles: "_11c81o8v _k48pmoej _otyr1b66",
35
- newListTitleStyles: "_syaz1gjq"
32
+ emptyStateNoResultsWrapper: "_1tkepxbi"
36
33
  };
37
34
  var listContainerStyles = null;
38
35
  var spinnerContainerStyles = null;
39
36
  var listStyles = null;
40
37
  var baseListTitleStyles = null;
41
38
  var newListTitleStyles = null;
39
+ var listTitleStyles = {
40
+ font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
41
+ fontWeight: "var(--ds-font-weight-bold, 700)",
42
+ marginBottom: "var(--ds-space-050, 4px)",
43
+ color: "var(--ds-text-subtle, #44546F)"
44
+ };
42
45
  var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
43
46
  titleRecentlyViewed: {
44
47
  id: 'fabric.linkPicker.listTitle.recentlyViewed',
@@ -147,8 +150,12 @@ var LinkSearchList = exports.LinkSearchList = /*#__PURE__*/(0, _react.forwardRef
147
150
  var listItemNameMaxLines = activePlugin === null || activePlugin === void 0 || (_activePlugin$uiOptio = activePlugin.uiOptions) === null || _activePlugin$uiOptio === void 0 ? void 0 : _activePlugin$uiOptio.listItemNameMaxLines;
148
151
  if (items && items.length > 0) {
149
152
  itemsContent = /*#__PURE__*/React.createElement(_react.Fragment, null, (0, _platformFeatureFlags.fg)('navx-2134-fix-a11y-link-picker-headings') ? /*#__PURE__*/React.createElement(_compiled.Box, {
150
- as: "h2",
151
- xcss: (0, _css.cx)(styles.baseListTitleStyles, styles.newListTitleStyles),
153
+ as: "h2" // Must remain <h2> for a11y title hierarchy as per https://hello.jira.atlassian.cloud/browse/A11Y-27579
154
+ // `.wiki-content h2` css styles in confluence override ADS/native styles here, so inline styles are needed.
155
+ // Should use css or xcss prop when that CSS is removed/fixed by confluence
156
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
157
+ ,
158
+ style: listTitleStyles,
152
159
  id: testIds.resultListTitle,
153
160
  testId: testIds.resultListTitle
154
161
  }, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, linkListTitle)) : /*#__PURE__*/React.createElement("div", {
@@ -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: "3.16.2" || '',
28
+ packageVersion: "3.16.4" || '',
29
29
  componentName: _constants.COMPONENT_NAME,
30
30
  source: _constants.COMPONENT_NAME
31
31
  };
@@ -5,7 +5,6 @@ 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 { cx } from '@atlaskit/css';
9
8
  import { fg } from '@atlaskit/platform-feature-flags';
10
9
  import { Box } from '@atlaskit/primitives/compiled';
11
10
  import Spinner from '@atlaskit/spinner';
@@ -16,15 +15,19 @@ import { NoResults, testIds as noResultsTestIds } from './link-search-no-results
16
15
  import { LinkSearchListItem, testIds as searchResultItemTestIds } from './list-item';
17
16
  import { useTrackResultsShown } from './use-track-results-shown';
18
17
  const styles = {
19
- emptyStateNoResultsWrapper: "_1tkepxbi",
20
- baseListTitleStyles: "_11c81o8v _k48pmoej _otyr1b66",
21
- newListTitleStyles: "_syaz1gjq"
18
+ emptyStateNoResultsWrapper: "_1tkepxbi"
22
19
  };
23
20
  const listContainerStyles = null;
24
21
  const spinnerContainerStyles = null;
25
22
  const listStyles = null;
26
23
  const baseListTitleStyles = null;
27
24
  const newListTitleStyles = null;
25
+ const listTitleStyles = {
26
+ font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
27
+ fontWeight: "var(--ds-font-weight-bold, 700)",
28
+ marginBottom: "var(--ds-space-050, 4px)",
29
+ color: "var(--ds-text-subtle, #44546F)"
30
+ };
28
31
  export const messages = defineMessages({
29
32
  titleRecentlyViewed: {
30
33
  id: 'fabric.linkPicker.listTitle.recentlyViewed',
@@ -136,8 +139,12 @@ export const LinkSearchList = /*#__PURE__*/forwardRef(({
136
139
  const listItemNameMaxLines = activePlugin === null || activePlugin === void 0 ? void 0 : (_activePlugin$uiOptio = activePlugin.uiOptions) === null || _activePlugin$uiOptio === void 0 ? void 0 : _activePlugin$uiOptio.listItemNameMaxLines;
137
140
  if (items && items.length > 0) {
138
141
  itemsContent = /*#__PURE__*/React.createElement(Fragment, null, fg('navx-2134-fix-a11y-link-picker-headings') ? /*#__PURE__*/React.createElement(Box, {
139
- as: "h2",
140
- xcss: cx(styles.baseListTitleStyles, styles.newListTitleStyles),
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.
144
+ // Should use css or xcss prop when that CSS is removed/fixed by confluence
145
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
146
+ ,
147
+ style: listTitleStyles,
141
148
  id: testIds.resultListTitle,
142
149
  testId: testIds.resultListTitle
143
150
  }, /*#__PURE__*/React.createElement(FormattedMessage, linkListTitle)) : /*#__PURE__*/React.createElement("div", {
@@ -15,7 +15,7 @@ export const testIds = {
15
15
  };
16
16
  export const PACKAGE_DATA = {
17
17
  packageName: "@atlaskit/link-picker" || '',
18
- packageVersion: "3.16.2" || '',
18
+ packageVersion: "3.16.4" || '',
19
19
  componentName: COMPONENT_NAME,
20
20
  source: COMPONENT_NAME
21
21
  };
@@ -10,7 +10,6 @@ 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 { cx } from '@atlaskit/css';
14
13
  import { fg } from '@atlaskit/platform-feature-flags';
15
14
  import { Box } from '@atlaskit/primitives/compiled';
16
15
  import Spinner from '@atlaskit/spinner';
@@ -21,15 +20,19 @@ import { NoResults, testIds as noResultsTestIds } from './link-search-no-results
21
20
  import { LinkSearchListItem, testIds as searchResultItemTestIds } from './list-item';
22
21
  import { useTrackResultsShown } from './use-track-results-shown';
23
22
  var styles = {
24
- emptyStateNoResultsWrapper: "_1tkepxbi",
25
- baseListTitleStyles: "_11c81o8v _k48pmoej _otyr1b66",
26
- newListTitleStyles: "_syaz1gjq"
23
+ emptyStateNoResultsWrapper: "_1tkepxbi"
27
24
  };
28
25
  var listContainerStyles = null;
29
26
  var spinnerContainerStyles = null;
30
27
  var listStyles = null;
31
28
  var baseListTitleStyles = null;
32
29
  var newListTitleStyles = null;
30
+ var listTitleStyles = {
31
+ font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
32
+ fontWeight: "var(--ds-font-weight-bold, 700)",
33
+ marginBottom: "var(--ds-space-050, 4px)",
34
+ color: "var(--ds-text-subtle, #44546F)"
35
+ };
33
36
  export var messages = defineMessages({
34
37
  titleRecentlyViewed: {
35
38
  id: 'fabric.linkPicker.listTitle.recentlyViewed',
@@ -138,8 +141,12 @@ export var LinkSearchList = /*#__PURE__*/forwardRef(function (_ref, ref) {
138
141
  var listItemNameMaxLines = activePlugin === null || activePlugin === void 0 || (_activePlugin$uiOptio = activePlugin.uiOptions) === null || _activePlugin$uiOptio === void 0 ? void 0 : _activePlugin$uiOptio.listItemNameMaxLines;
139
142
  if (items && items.length > 0) {
140
143
  itemsContent = /*#__PURE__*/React.createElement(Fragment, null, fg('navx-2134-fix-a11y-link-picker-headings') ? /*#__PURE__*/React.createElement(Box, {
141
- as: "h2",
142
- xcss: cx(styles.baseListTitleStyles, styles.newListTitleStyles),
144
+ as: "h2" // Must remain <h2> for a11y title hierarchy as per https://hello.jira.atlassian.cloud/browse/A11Y-27579
145
+ // `.wiki-content h2` css styles in confluence override ADS/native styles here, so inline styles are needed.
146
+ // Should use css or xcss prop when that CSS is removed/fixed by confluence
147
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
148
+ ,
149
+ style: listTitleStyles,
143
150
  id: testIds.resultListTitle,
144
151
  testId: testIds.resultListTitle
145
152
  }, /*#__PURE__*/React.createElement(FormattedMessage, linkListTitle)) : /*#__PURE__*/React.createElement("div", {
@@ -16,7 +16,7 @@ export var testIds = {
16
16
  };
17
17
  export var PACKAGE_DATA = {
18
18
  packageName: "@atlaskit/link-picker" || '',
19
- packageVersion: "3.16.2" || '',
19
+ packageVersion: "3.16.4" || '',
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": "3.16.3",
3
+ "version": "3.16.5",
4
4
  "description": "Standalone link picker",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {
@@ -41,9 +41,6 @@
41
41
  "dst-a11y__replace-anchor-with-link__linking-platfo": {
42
42
  "type": "boolean"
43
43
  },
44
- "should-render-to-parent-should-be-true-linking-pla": {
45
- "type": "boolean"
46
- },
47
44
  "aifc_create_enabled": {
48
45
  "type": "boolean"
49
46
  },
@@ -71,14 +68,14 @@
71
68
  "@atlaskit/linking-common": "^9.7.0",
72
69
  "@atlaskit/onboarding": "^14.4.0",
73
70
  "@atlaskit/platform-feature-flags": "^1.1.0",
74
- "@atlaskit/primitives": "^16.0.0",
75
- "@atlaskit/smart-card": "^43.1.0",
71
+ "@atlaskit/primitives": "^16.1.0",
72
+ "@atlaskit/smart-card": "^43.5.0",
76
73
  "@atlaskit/spinner": "^19.0.0",
77
74
  "@atlaskit/tabs": "^18.2.0",
78
75
  "@atlaskit/textfield": "^8.0.0",
79
76
  "@atlaskit/theme": "^21.0.0",
80
- "@atlaskit/tokens": "^7.0.0",
81
- "@atlaskit/tooltip": "^20.5.0",
77
+ "@atlaskit/tokens": "^7.1.0",
78
+ "@atlaskit/tooltip": "^20.7.0",
82
79
  "@atlaskit/ufo": "^0.4.0",
83
80
  "@atlaskit/visually-hidden": "^3.0.0",
84
81
  "@babel/runtime": "^7.0.0",
@@ -100,7 +97,7 @@
100
97
  "@af/visual-regression": "workspace:^",
101
98
  "@atlaskit/dropdown-menu": "^16.3.0",
102
99
  "@atlaskit/link-test-helpers": "^8.4.0",
103
- "@atlassian/feature-flags-test-utils": "^0.3.0",
100
+ "@atlassian/feature-flags-test-utils": "^1.0.0",
104
101
  "@testing-library/dom": "^10.1.0",
105
102
  "@testing-library/jest-dom": "^6.4.5",
106
103
  "@testing-library/react": "^13.4.0",