@atlaskit/link-picker 6.11.0 → 6.11.2

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,19 @@
1
1
  # @atlaskit/link-picker
2
2
 
3
+ ## 6.11.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`391d4ae6b157c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/391d4ae6b157c) -
8
+ Cleanup platform_link_picker_fix_error_state_text_overflow
9
+
10
+ ## 6.11.1
11
+
12
+ ### Patch Changes
13
+
14
+ - [`a2aa20fe5fe06`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a2aa20fe5fe06) -
15
+ Remove the fully shipped aifc_create_enabled feature gate, keeping creation behavior enabled.
16
+
3
17
  ## 6.11.0
4
18
 
5
19
  ### Minor Changes
@@ -12,7 +12,6 @@ var React = _interopRequireWildcard(require("react"));
12
12
  var _runtime = require("@compiled/react/runtime");
13
13
  var _css = require("@atlaskit/css");
14
14
  var _heading = _interopRequireDefault(require("@atlaskit/heading/heading"));
15
- var _fg = require("@atlaskit/platform-feature-flags/fg");
16
15
  var _compiled = require("@atlaskit/primitives/compiled");
17
16
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
18
17
  var styles = {
@@ -26,7 +25,7 @@ var EmptyState = exports.EmptyState = function EmptyState(_ref) {
26
25
  action = _ref.action,
27
26
  renderImage = _ref.renderImage;
28
27
  return /*#__PURE__*/React.createElement(_compiled.Flex, {
29
- xcss: (0, _css.cx)(styles.containerV2, (0, _fg.fg)('platform_link_picker_fix_error_state_text_overflow') && styles.whiteSpaceNormal),
28
+ xcss: (0, _css.cx)(styles.containerV2, styles.whiteSpaceNormal),
30
29
  testId: testId,
31
30
  direction: "column",
32
31
  alignItems: "center",
@@ -11,7 +11,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
11
11
  var _react = require("react");
12
12
  var _useAnalyticsEvents2 = require("@atlaskit/analytics-next/useAnalyticsEvents");
13
13
  var _convertToError = require("@atlaskit/frontend-utilities/convert-to-error");
14
- var _fg = require("@atlaskit/platform-feature-flags/fg");
15
14
  var _analytics = require("../../common/analytics");
16
15
  var _constants = require("../../common/constants");
17
16
  var _analytics2 = _interopRequireDefault(require("../../common/utils/analytics/analytics.codegen"));
@@ -79,7 +78,7 @@ function usePlugins(state, activeTab, plugins, recentSearchListSize, alwaysShowT
79
78
  dispatch({
80
79
  type: 'SUCCESS',
81
80
  payload: {
82
- items: limit(value.data, (0, _fg.fg)('aifc_create_enabled') ? recentSearchListSize : undefined),
81
+ items: limit(value.data, recentSearchListSize),
83
82
  isLoading: !done
84
83
  }
85
84
  });
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.testIds = exports.messages = exports.NoResults = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _reactIntl = require("react-intl");
10
- var _fg = require("@atlaskit/platform-feature-flags/fg");
11
10
  var _emptyState = require("../../../../../common/ui/empty-state");
12
11
  var _noResultsSvg = require("./no-results-svg");
13
12
  var messages = exports.messages = (0, _reactIntl.defineMessages)({
@@ -33,7 +32,7 @@ var NoResults = exports.NoResults = function NoResults(_ref) {
33
32
  testId: testIds.emptyResultPage,
34
33
  header: intl.formatMessage(messages.noResults),
35
34
  description: intl.formatMessage(messages.noResultsDescription),
36
- renderImage: !shouldRenderImage && (0, _fg.fg)('aifc_create_enabled') ? undefined : function () {
35
+ renderImage: !shouldRenderImage ? undefined : function () {
37
36
  return /*#__PURE__*/_react.default.createElement(_noResultsSvg.NoResultsSVG, null);
38
37
  }
39
38
  });
@@ -26,7 +26,7 @@ var testIds = exports.testIds = {
26
26
  };
27
27
  var PACKAGE_DATA = exports.PACKAGE_DATA = {
28
28
  packageName: "@atlaskit/link-picker" || '',
29
- packageVersion: "6.10.0" || '',
29
+ packageVersion: "6.11.1" || '',
30
30
  componentName: _constants.COMPONENT_NAME,
31
31
  source: _constants.COMPONENT_NAME
32
32
  };
@@ -4,7 +4,6 @@ import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import { cx } from '@atlaskit/css';
6
6
  import Heading from '@atlaskit/heading/heading';
7
- import { fg } from '@atlaskit/platform-feature-flags/fg';
8
7
  import { Flex, Text } from '@atlaskit/primitives/compiled';
9
8
  const styles = {
10
9
  containerV2: "_ca0q1ejb _u5f3oahv _19bvoahv _n3td1jfw _y3gn1h6o",
@@ -18,7 +17,7 @@ export const EmptyState = ({
18
17
  renderImage
19
18
  }) => {
20
19
  return /*#__PURE__*/React.createElement(Flex, {
21
- xcss: cx(styles.containerV2, fg('platform_link_picker_fix_error_state_text_overflow') && styles.whiteSpaceNormal),
20
+ xcss: cx(styles.containerV2, styles.whiteSpaceNormal),
22
21
  testId: testId,
23
22
  direction: "column",
24
23
  alignItems: "center",
@@ -1,7 +1,6 @@
1
1
  import { useCallback, useEffect, useMemo, useState } from 'react';
2
2
  import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
3
3
  import { convertToError } from '@atlaskit/frontend-utilities/convert-to-error';
4
- import { fg } from '@atlaskit/platform-feature-flags/fg';
5
4
  import { useLinkPickerAnalytics } from '../../common/analytics';
6
5
  import { ANALYTICS_CHANNEL, RECENT_SEARCH_LIST_SIZE } from '../../common/constants';
7
6
  import createEventPayload from '../../common/utils/analytics/analytics.codegen';
@@ -55,7 +54,7 @@ export function usePlugins(state, activeTab, plugins, recentSearchListSize, alwa
55
54
  dispatch({
56
55
  type: 'SUCCESS',
57
56
  payload: {
58
- items: limit(value.data, fg('aifc_create_enabled') ? recentSearchListSize : undefined),
57
+ items: limit(value.data, recentSearchListSize),
59
58
  isLoading: !done
60
59
  }
61
60
  });
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { defineMessages, useIntl } from 'react-intl';
3
- import { fg } from '@atlaskit/platform-feature-flags/fg';
4
3
  import { EmptyState } from '../../../../../common/ui/empty-state';
5
4
  import { NoResultsSVG } from './no-results-svg';
6
5
  export const messages = defineMessages({
@@ -26,6 +25,6 @@ export const NoResults = ({
26
25
  testId: testIds.emptyResultPage,
27
26
  header: intl.formatMessage(messages.noResults),
28
27
  description: intl.formatMessage(messages.noResultsDescription),
29
- renderImage: !shouldRenderImage && fg('aifc_create_enabled') ? undefined : () => /*#__PURE__*/React.createElement(NoResultsSVG, null)
28
+ renderImage: !shouldRenderImage ? undefined : () => /*#__PURE__*/React.createElement(NoResultsSVG, null)
30
29
  });
31
30
  };
@@ -16,7 +16,7 @@ export const testIds = {
16
16
  };
17
17
  export const PACKAGE_DATA = {
18
18
  packageName: "@atlaskit/link-picker" || '',
19
- packageVersion: "6.10.0" || '',
19
+ packageVersion: "6.11.1" || '',
20
20
  componentName: COMPONENT_NAME,
21
21
  source: COMPONENT_NAME
22
22
  };
@@ -4,7 +4,6 @@ import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import { cx } from '@atlaskit/css';
6
6
  import Heading from '@atlaskit/heading/heading';
7
- import { fg } from '@atlaskit/platform-feature-flags/fg';
8
7
  import { Flex, Text } from '@atlaskit/primitives/compiled';
9
8
  var styles = {
10
9
  containerV2: "_ca0q1ejb _u5f3oahv _19bvoahv _n3td1jfw _y3gn1h6o",
@@ -17,7 +16,7 @@ export var EmptyState = function EmptyState(_ref) {
17
16
  action = _ref.action,
18
17
  renderImage = _ref.renderImage;
19
18
  return /*#__PURE__*/React.createElement(Flex, {
20
- xcss: cx(styles.containerV2, fg('platform_link_picker_fix_error_state_text_overflow') && styles.whiteSpaceNormal),
19
+ xcss: cx(styles.containerV2, styles.whiteSpaceNormal),
21
20
  testId: testId,
22
21
  direction: "column",
23
22
  alignItems: "center",
@@ -4,7 +4,6 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
4
4
  import { useCallback, useEffect, useMemo, useState } from 'react';
5
5
  import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
6
6
  import { convertToError } from '@atlaskit/frontend-utilities/convert-to-error';
7
- import { fg } from '@atlaskit/platform-feature-flags/fg';
8
7
  import { useLinkPickerAnalytics } from '../../common/analytics';
9
8
  import { ANALYTICS_CHANNEL, RECENT_SEARCH_LIST_SIZE } from '../../common/constants';
10
9
  import createEventPayload from '../../common/utils/analytics/analytics.codegen';
@@ -72,7 +71,7 @@ export function usePlugins(state, activeTab, plugins, recentSearchListSize, alwa
72
71
  dispatch({
73
72
  type: 'SUCCESS',
74
73
  payload: {
75
- items: limit(value.data, fg('aifc_create_enabled') ? recentSearchListSize : undefined),
74
+ items: limit(value.data, recentSearchListSize),
76
75
  isLoading: !done
77
76
  }
78
77
  });
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { defineMessages, useIntl } from 'react-intl';
3
- import { fg } from '@atlaskit/platform-feature-flags/fg';
4
3
  import { EmptyState } from '../../../../../common/ui/empty-state';
5
4
  import { NoResultsSVG } from './no-results-svg';
6
5
  export var messages = defineMessages({
@@ -26,7 +25,7 @@ export var NoResults = function NoResults(_ref) {
26
25
  testId: testIds.emptyResultPage,
27
26
  header: intl.formatMessage(messages.noResults),
28
27
  description: intl.formatMessage(messages.noResultsDescription),
29
- renderImage: !shouldRenderImage && fg('aifc_create_enabled') ? undefined : function () {
28
+ renderImage: !shouldRenderImage ? undefined : function () {
30
29
  return /*#__PURE__*/React.createElement(NoResultsSVG, null);
31
30
  }
32
31
  });
@@ -17,7 +17,7 @@ export var testIds = {
17
17
  };
18
18
  export var PACKAGE_DATA = {
19
19
  packageName: "@atlaskit/link-picker" || '',
20
- packageVersion: "6.10.0" || '',
20
+ packageVersion: "6.11.1" || '',
21
21
  componentName: COMPONENT_NAME,
22
22
  source: COMPONENT_NAME
23
23
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-picker",
3
- "version": "6.11.0",
3
+ "version": "6.11.2",
4
4
  "description": "Standalone link picker",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {
@@ -40,15 +40,9 @@
40
40
  "platform_navx_3298_message_wrapper": {
41
41
  "type": "boolean"
42
42
  },
43
- "aifc_create_enabled": {
44
- "type": "boolean"
45
- },
46
43
  "add-disable-manual-url-capability-technical": {
47
44
  "type": "boolean"
48
45
  },
49
- "platform_link_picker_fix_error_state_text_overflow": {
50
- "type": "boolean"
51
- },
52
46
  "navx-5378-link-picker-tab-roles": {
53
47
  "type": "boolean"
54
48
  }
@@ -62,7 +56,7 @@
62
56
  "@atlaskit/atlassian-context": "^2.0.0",
63
57
  "@atlaskit/button": "^25.4.0",
64
58
  "@atlaskit/css": "^1.1.0",
65
- "@atlaskit/form": "^18.0.0",
59
+ "@atlaskit/form": "^18.1.0",
66
60
  "@atlaskit/frontend-utilities": "^5.0.0",
67
61
  "@atlaskit/heading": "^8.0.0",
68
62
  "@atlaskit/icon": "^38.0.0",
@@ -78,7 +72,7 @@
78
72
  "@atlaskit/spotlight": "^4.2.0",
79
73
  "@atlaskit/tabs": "^21.3.0",
80
74
  "@atlaskit/textfield": "^10.2.0",
81
- "@atlaskit/tokens": "^20.1.0",
75
+ "@atlaskit/tokens": "^20.2.0",
82
76
  "@atlaskit/tooltip": "^24.4.0",
83
77
  "@atlaskit/ufo": "^2.0.0",
84
78
  "@atlaskit/visually-hidden": "^4.4.0",