@atlaskit/link-picker 3.5.2 → 3.5.3

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,11 @@
1
1
  # @atlaskit/link-picker
2
2
 
3
+ ## 3.5.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 3.5.2
4
10
 
5
11
  ### Patch Changes
@@ -16,8 +16,8 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
16
16
  var _reactIntlNext = require("react-intl-next");
17
17
  var _button = _interopRequireWildcard(require("@atlaskit/button"));
18
18
  var _new = _interopRequireDefault(require("@atlaskit/button/new"));
19
- var _add = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/add"));
20
- var _add2 = _interopRequireDefault(require("@atlaskit/icon/utility/add"));
19
+ var _add = _interopRequireDefault(require("@atlaskit/icon/core/add"));
20
+ var _add2 = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/add"));
21
21
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
22
22
  var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
23
23
  var _errors = require("../../../common/utils/errors");
@@ -71,11 +71,12 @@ var FormFooter = exports.FormFooter = /*#__PURE__*/(0, _react.memo)(function (_r
71
71
  onClick: pluginAction.callback,
72
72
  appearance: "default",
73
73
  iconBefore: function iconBefore() {
74
- return /*#__PURE__*/React.createElement(_add2.default, {
74
+ return /*#__PURE__*/React.createElement(_add.default, {
75
75
  label: "",
76
76
  LEGACY_size: "medium",
77
- LEGACY_fallbackIcon: _add.default,
78
- color: "currentColor"
77
+ LEGACY_fallbackIcon: _add2.default,
78
+ color: "currentColor",
79
+ size: "small"
79
80
  });
80
81
  },
81
82
  isDisabled: isSubmitting,
@@ -84,11 +85,12 @@ var FormFooter = exports.FormFooter = /*#__PURE__*/(0, _react.memo)(function (_r
84
85
  testId: testIds.actionButton,
85
86
  onClick: pluginAction.callback,
86
87
  appearance: "default",
87
- iconBefore: /*#__PURE__*/React.createElement(_add2.default, {
88
+ iconBefore: /*#__PURE__*/React.createElement(_add.default, {
88
89
  label: "",
89
90
  LEGACY_size: "medium",
90
- LEGACY_fallbackIcon: _add.default,
91
- color: "currentColor"
91
+ LEGACY_fallbackIcon: _add2.default,
92
+ color: "currentColor",
93
+ size: "small"
92
94
  }),
93
95
  isDisabled: isSubmitting,
94
96
  "aria-labelledby": isSubmitting ? submitMessageId : undefined
@@ -13,8 +13,8 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
13
13
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
14
14
  var _react = _interopRequireWildcard(require("react"));
15
15
  var _new = require("@atlaskit/button/new");
16
- var _chevronLeft = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-left"));
17
- var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-right"));
16
+ var _chevronLeft = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-left"));
17
+ var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-right"));
18
18
  var _colors = require("@atlaskit/theme/colors");
19
19
  var _scrollingTabs = require("./scrolling-tabs");
20
20
  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); }
@@ -143,7 +143,11 @@ var ScrollingTabList = exports.ScrollingTabList = function ScrollingTabList(prop
143
143
  return (0, _scrollingTabs.scrollBack)(ref);
144
144
  },
145
145
  label: "back",
146
- icon: _chevronLeft.default
146
+ icon: function icon(iconProps) {
147
+ return /*#__PURE__*/_react.default.createElement(_chevronLeft.default, (0, _extends2.default)({}, iconProps, {
148
+ size: "small"
149
+ }));
150
+ }
147
151
  }, buttonProps))), /*#__PURE__*/_react.default.createElement("div", {
148
152
  className: (0, _runtime.ax)(["_1bh4vqrj _1reo1wug _1dm8q5uf _1fjgglyw _rfx3yh40 _pascidpf _eid3idpf _zr3eidpf _fntnidpf _1kt9b3bt _19woidpf _1cs8stnw _1mp41kw7 _qnecu2gc _oounu2gc _kfgtyh40 _1russudh _1cicglyw"]),
149
153
  style: {
@@ -161,6 +165,10 @@ var ScrollingTabList = exports.ScrollingTabList = function ScrollingTabList(prop
161
165
  }
162
166
  }, buttonProps, {
163
167
  label: "forward",
164
- icon: _chevronRight.default
168
+ icon: function icon(iconProps) {
169
+ return /*#__PURE__*/_react.default.createElement(_chevronRight.default, (0, _extends2.default)({}, iconProps, {
170
+ size: "small"
171
+ }));
172
+ }
165
173
  }))));
166
174
  };
@@ -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: "3.5.2" || '',
29
+ packageVersion: "3.5.3" || '',
30
30
  componentName: _constants.COMPONENT_NAME,
31
31
  source: _constants.COMPONENT_NAME
32
32
  };
@@ -7,8 +7,8 @@ import { memo } from 'react';
7
7
  import { defineMessages, useIntl } from 'react-intl-next';
8
8
  import Button, { ButtonGroup } from '@atlaskit/button';
9
9
  import NewButton from '@atlaskit/button/new';
10
+ import EditorAddIcon from '@atlaskit/icon/core/add';
10
11
  import EditorAddIconLegacy from '@atlaskit/icon/glyph/editor/add';
11
- import EditorAddIcon from '@atlaskit/icon/utility/add';
12
12
  import { fg } from '@atlaskit/platform-feature-flags';
13
13
  import VisuallyHidden from '@atlaskit/visually-hidden';
14
14
  import { UnauthenticatedError } from '../../../common/utils/errors';
@@ -62,7 +62,8 @@ export const FormFooter = /*#__PURE__*/memo(({
62
62
  label: "",
63
63
  LEGACY_size: "medium",
64
64
  LEGACY_fallbackIcon: EditorAddIconLegacy,
65
- color: "currentColor"
65
+ color: "currentColor",
66
+ size: "small"
66
67
  }),
67
68
  isDisabled: isSubmitting,
68
69
  "aria-labelledby": isSubmitting ? submitMessageId : undefined
@@ -74,7 +75,8 @@ export const FormFooter = /*#__PURE__*/memo(({
74
75
  label: "",
75
76
  LEGACY_size: "medium",
76
77
  LEGACY_fallbackIcon: EditorAddIconLegacy,
77
- color: "currentColor"
78
+ color: "currentColor",
79
+ size: "small"
78
80
  }),
79
81
  isDisabled: isSubmitting,
80
82
  "aria-labelledby": isSubmitting ? submitMessageId : undefined
@@ -4,8 +4,8 @@ import "./index.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import React, { useCallback, useMemo, useRef, useState } from 'react';
6
6
  import { IconButton } from '@atlaskit/button/new';
7
- import ChevronLeftIcon from '@atlaskit/icon/utility/migration/chevron-left';
8
- import ChevronRightIcon from '@atlaskit/icon/utility/migration/chevron-right';
7
+ import ChevronLeftIcon from '@atlaskit/icon/core/migration/chevron-left';
8
+ import ChevronRightIcon from '@atlaskit/icon/core/migration/chevron-right';
9
9
  import { N0, N30 } from '@atlaskit/theme/colors';
10
10
  import { calculateConditionalButtons, createGhost, getTabList, scrollBack, scrollForward } from './scrolling-tabs';
11
11
  function isTouchDevice() {
@@ -105,7 +105,9 @@ export const ScrollingTabList = props => {
105
105
  "data-test-id": "back",
106
106
  onClick: () => scrollBack(ref),
107
107
  label: "back",
108
- icon: ChevronLeftIcon
108
+ icon: iconProps => /*#__PURE__*/React.createElement(ChevronLeftIcon, _extends({}, iconProps, {
109
+ size: "small"
110
+ }))
109
111
  }, buttonProps))), /*#__PURE__*/React.createElement("div", {
110
112
  className: ax(["_1bh4vqrj _1reo1wug _1dm8q5uf _1fjgglyw _rfx3yh40 _pascidpf _eid3idpf _zr3eidpf _fntnidpf _1kt9b3bt _19woidpf _1cs8stnw _1mp41kw7 _qnecu2gc _oounu2gc _kfgtyh40 _1rushloo _1cicglyw"])
111
113
  }, props.children), conditionalButtons.forward && /*#__PURE__*/React.createElement("div", {
@@ -115,6 +117,8 @@ export const ScrollingTabList = props => {
115
117
  onClick: () => scrollForward(ref)
116
118
  }, buttonProps, {
117
119
  label: "forward",
118
- icon: ChevronRightIcon
120
+ icon: iconProps => /*#__PURE__*/React.createElement(ChevronRightIcon, _extends({}, iconProps, {
121
+ size: "small"
122
+ }))
119
123
  }))));
120
124
  };
@@ -16,7 +16,7 @@ export const testIds = {
16
16
  };
17
17
  export const PACKAGE_DATA = {
18
18
  packageName: "@atlaskit/link-picker" || '',
19
- packageVersion: "3.5.2" || '',
19
+ packageVersion: "3.5.3" || '',
20
20
  componentName: COMPONENT_NAME,
21
21
  source: COMPONENT_NAME
22
22
  };
@@ -9,8 +9,8 @@ import { memo } from 'react';
9
9
  import { defineMessages, useIntl } from 'react-intl-next';
10
10
  import Button, { ButtonGroup } from '@atlaskit/button';
11
11
  import NewButton from '@atlaskit/button/new';
12
+ import EditorAddIcon from '@atlaskit/icon/core/add';
12
13
  import EditorAddIconLegacy from '@atlaskit/icon/glyph/editor/add';
13
- import EditorAddIcon from '@atlaskit/icon/utility/add';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import VisuallyHidden from '@atlaskit/visually-hidden';
16
16
  import { UnauthenticatedError } from '../../../common/utils/errors';
@@ -66,7 +66,8 @@ export var FormFooter = /*#__PURE__*/memo(function (_ref) {
66
66
  label: "",
67
67
  LEGACY_size: "medium",
68
68
  LEGACY_fallbackIcon: EditorAddIconLegacy,
69
- color: "currentColor"
69
+ color: "currentColor",
70
+ size: "small"
70
71
  });
71
72
  },
72
73
  isDisabled: isSubmitting,
@@ -79,7 +80,8 @@ export var FormFooter = /*#__PURE__*/memo(function (_ref) {
79
80
  label: "",
80
81
  LEGACY_size: "medium",
81
82
  LEGACY_fallbackIcon: EditorAddIconLegacy,
82
- color: "currentColor"
83
+ color: "currentColor",
84
+ size: "small"
83
85
  }),
84
86
  isDisabled: isSubmitting,
85
87
  "aria-labelledby": isSubmitting ? submitMessageId : undefined
@@ -8,8 +8,8 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
8
8
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
9
9
  import React, { useCallback, useMemo, useRef, useState } from 'react';
10
10
  import { IconButton } from '@atlaskit/button/new';
11
- import ChevronLeftIcon from '@atlaskit/icon/utility/migration/chevron-left';
12
- import ChevronRightIcon from '@atlaskit/icon/utility/migration/chevron-right';
11
+ import ChevronLeftIcon from '@atlaskit/icon/core/migration/chevron-left';
12
+ import ChevronRightIcon from '@atlaskit/icon/core/migration/chevron-right';
13
13
  import { N0, N30 } from '@atlaskit/theme/colors';
14
14
  import { calculateConditionalButtons, createGhost, getTabList, scrollBack, scrollForward } from './scrolling-tabs';
15
15
  function isTouchDevice() {
@@ -134,7 +134,11 @@ export var ScrollingTabList = function ScrollingTabList(props) {
134
134
  return scrollBack(ref);
135
135
  },
136
136
  label: "back",
137
- icon: ChevronLeftIcon
137
+ icon: function icon(iconProps) {
138
+ return /*#__PURE__*/React.createElement(ChevronLeftIcon, _extends({}, iconProps, {
139
+ size: "small"
140
+ }));
141
+ }
138
142
  }, buttonProps))), /*#__PURE__*/React.createElement("div", {
139
143
  className: ax(["_1bh4vqrj _1reo1wug _1dm8q5uf _1fjgglyw _rfx3yh40 _pascidpf _eid3idpf _zr3eidpf _fntnidpf _1kt9b3bt _19woidpf _1cs8stnw _1mp41kw7 _qnecu2gc _oounu2gc _kfgtyh40 _1russudh _1cicglyw"]),
140
144
  style: {
@@ -152,6 +156,10 @@ export var ScrollingTabList = function ScrollingTabList(props) {
152
156
  }
153
157
  }, buttonProps, {
154
158
  label: "forward",
155
- icon: ChevronRightIcon
159
+ icon: function icon(iconProps) {
160
+ return /*#__PURE__*/React.createElement(ChevronRightIcon, _extends({}, iconProps, {
161
+ size: "small"
162
+ }));
163
+ }
156
164
  }))));
157
165
  };
@@ -17,7 +17,7 @@ export var testIds = {
17
17
  };
18
18
  export var PACKAGE_DATA = {
19
19
  packageName: "@atlaskit/link-picker" || '',
20
- packageVersion: "3.5.2" || '',
20
+ packageVersion: "3.5.3" || '',
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": "3.5.2",
3
+ "version": "3.5.3",
4
4
  "description": "Standalone link picker",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {
@@ -66,6 +66,9 @@
66
66
  },
67
67
  "platform-link-picker-a11y-label": {
68
68
  "type": "boolean"
69
+ },
70
+ "should-render-to-parent-should-be-true-linking-pla": {
71
+ "type": "boolean"
69
72
  }
70
73
  },
71
74
  "scripts": {
@@ -79,7 +82,7 @@
79
82
  "@atlaskit/form": "^12.0.0",
80
83
  "@atlaskit/frontend-utilities": "^3.0.0",
81
84
  "@atlaskit/heading": "^5.2.0",
82
- "@atlaskit/icon": "^26.4.0",
85
+ "@atlaskit/icon": "^27.0.0",
83
86
  "@atlaskit/intl-messages-provider": "^2.0.0",
84
87
  "@atlaskit/link": "^3.2.0",
85
88
  "@atlaskit/link-provider": "^3.3.0",
@@ -87,12 +90,12 @@
87
90
  "@atlaskit/onboarding": "^14.2.0",
88
91
  "@atlaskit/platform-feature-flags": "^1.1.0",
89
92
  "@atlaskit/primitives": "^14.8.0",
90
- "@atlaskit/smart-card": "^38.6.0",
93
+ "@atlaskit/smart-card": "^38.9.0",
91
94
  "@atlaskit/spinner": "^18.0.0",
92
95
  "@atlaskit/tabs": "^18.1.0",
93
96
  "@atlaskit/textfield": "^8.0.0",
94
97
  "@atlaskit/theme": "^18.0.0",
95
- "@atlaskit/tokens": "^5.0.0",
98
+ "@atlaskit/tokens": "^5.2.0",
96
99
  "@atlaskit/tooltip": "^20.3.0",
97
100
  "@atlaskit/ufo": "^0.4.0",
98
101
  "@atlaskit/visually-hidden": "^3.0.0",