@atlaskit/link-picker 1.47.14 → 1.47.16

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
+ ## 1.47.16
4
+
5
+ ### Patch Changes
6
+
7
+ - [#98234](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98234)
8
+ [`98766713e142d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/98766713e142d) -
9
+ Internal changes to typography.
10
+
11
+ ## 1.47.15
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 1.47.14
4
18
 
5
19
  ### Patch Changes
@@ -53,11 +53,10 @@ var withInputFieldTracking = exports.withInputFieldTracking = function withInput
53
53
 
54
54
  // Track the content and input method on every direct change to the input
55
55
  var handleOnChange = (0, _react.useCallback)(function (event) {
56
- var _filterOnChangeEventA;
57
56
  // TODO: See above re template literal, improve typesafety here
58
57
  // trackAttribute(`${field}FieldContent`, contentTypeFn(event.currentTarget.value));
59
58
  // trackAttribute(`${field}FieldContentInputMethod`, methodTypeFn(event));
60
- trackAttributes(filterOnChangeEventAttrs(event, (_filterOnChangeEventA = {}, (0, _defineProperty2.default)(_filterOnChangeEventA, "".concat(field, "FieldContent"), Boolean(event.currentTarget.value) ? 'text_string' : null), (0, _defineProperty2.default)(_filterOnChangeEventA, "".concat(field, "FieldContentInputMethod"), getChangeEventInputMethodType(event)), _filterOnChangeEventA)));
59
+ trackAttributes(filterOnChangeEventAttrs(event, (0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(field, "FieldContent"), Boolean(event.currentTarget.value) ? 'text_string' : null), "".concat(field, "FieldContentInputMethod"), getChangeEventInputMethodType(event))));
61
60
  onChange === null || onChange === void 0 || onChange(event);
62
61
  }, [onChange, trackAttributes]);
63
62
 
@@ -7,23 +7,22 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.UnauthenticatedError = void 0;
8
8
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
9
9
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
11
10
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
12
11
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
12
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
13
13
  var _wrapNativeSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/wrapNativeSuper"));
14
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
14
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
15
15
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
16
16
  var UnauthenticatedError = exports.UnauthenticatedError = /*#__PURE__*/function (_Error) {
17
- (0, _inherits2.default)(UnauthenticatedError, _Error);
18
- var _super = _createSuper(UnauthenticatedError);
19
17
  function UnauthenticatedError(iconUrl, authUrl, description) {
20
18
  var _this;
21
19
  (0, _classCallCheck2.default)(this, UnauthenticatedError);
22
- _this = _super.call(this, 'The user is not authenticated');
20
+ _this = _callSuper(this, UnauthenticatedError, ['The user is not authenticated']);
23
21
  _this.iconUrl = iconUrl;
24
22
  _this.authUrl = authUrl;
25
23
  _this.description = description;
26
24
  return _this;
27
25
  }
26
+ (0, _inherits2.default)(UnauthenticatedError, _Error);
28
27
  return (0, _createClass2.default)(UnauthenticatedError);
29
28
  }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
@@ -9,19 +9,18 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
9
9
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
10
10
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
11
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
12
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
13
12
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
14
13
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
14
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
15
15
  var _wrapNativeSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/wrapNativeSuper"));
16
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
16
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
17
17
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
18
18
  var CancellationError = exports.CancellationError = /*#__PURE__*/function (_Error) {
19
- (0, _inherits2.default)(CancellationError, _Error);
20
- var _super = _createSuper(CancellationError);
21
19
  function CancellationError() {
22
20
  (0, _classCallCheck2.default)(this, CancellationError);
23
- return _super.apply(this, arguments);
21
+ return _callSuper(this, CancellationError, arguments);
24
22
  }
23
+ (0, _inherits2.default)(CancellationError, _Error);
25
24
  return (0, _createClass2.default)(CancellationError);
26
25
  }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
27
26
  var cancellable = exports.cancellable = function cancellable(promise) {
@@ -8,28 +8,27 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.BaseErrorBoundary = void 0;
9
9
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
10
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
12
11
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
13
12
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
13
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
14
14
  var _react = _interopRequireWildcard(require("react"));
15
15
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
16
16
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
17
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
17
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
18
18
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
19
19
  // eslint-disable-next-line @repo/internal/react/no-class-components
20
20
  var BaseErrorBoundary = exports.BaseErrorBoundary = /*#__PURE__*/function (_Component) {
21
- (0, _inherits2.default)(BaseErrorBoundary, _Component);
22
- var _super = _createSuper(BaseErrorBoundary);
23
21
  function BaseErrorBoundary(props) {
24
22
  var _this;
25
23
  (0, _classCallCheck2.default)(this, BaseErrorBoundary);
26
- _this = _super.call(this, props);
24
+ _this = _callSuper(this, BaseErrorBoundary, [props]);
27
25
  _this.state = {
28
26
  hasError: false
29
27
  };
30
28
  return _this;
31
29
  }
32
- (0, _createClass2.default)(BaseErrorBoundary, [{
30
+ (0, _inherits2.default)(BaseErrorBoundary, _Component);
31
+ return (0, _createClass2.default)(BaseErrorBoundary, [{
33
32
  key: "componentDidCatch",
34
33
  value: function componentDidCatch(error, info) {
35
34
  var onError = this.props.onError;
@@ -51,5 +50,4 @@ var BaseErrorBoundary = exports.BaseErrorBoundary = /*#__PURE__*/function (_Comp
51
50
  return children;
52
51
  }
53
52
  }]);
54
- return BaseErrorBoundary;
55
53
  }(_react.Component);
@@ -3,24 +3,11 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.relativeFontSizeToBase16 = exports.listItemContextStyles = exports.listItemContainerStyles = exports.listItemContainerInnerStyles = exports.itemNameStyles = exports.itemIconStyles = exports.imgStyles = exports.composeListItemStyles = void 0;
6
+ exports.listItemContextStyles = exports.listItemContainerStyles = exports.listItemContainerInnerStyles = exports.itemNameStyles = exports.itemIconStyles = exports.imgStyles = exports.composeListItemStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _colors = require("@atlaskit/theme/colors");
9
- var _constants = require("@atlaskit/theme/constants");
10
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
10
 
12
- // AFP-2532 TODO: Fix automatic suppressions below
13
- // eslint-disable-next-line @atlassian/tangerine/import/entry-points
14
-
15
- var relativeFontSizeToBase16 = exports.relativeFontSizeToBase16 = function relativeFontSizeToBase16(px) {
16
- if (typeof px === 'string') {
17
- px = parseInt(px);
18
- }
19
- if (isNaN(px)) {
20
- throw new Error("Invalid font size: '".concat(px, "'"));
21
- }
22
- return "".concat(px / 16, "rem");
23
- };
24
11
  var listItemBaseStyles = (0, _react.css)({
25
12
  display: 'flex',
26
13
  paddingTop: "var(--ds-space-100, 8px)",
@@ -75,9 +62,7 @@ var itemNameStyles = exports.itemNameStyles = (0, _react.css)({
75
62
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
76
63
  var listItemContextStyles = exports.listItemContextStyles = (0, _react.css)({
77
64
  color: "var(--ds-text, ".concat(_colors.N300, ")"),
78
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
79
- fontSize: relativeFontSizeToBase16((0, _constants.fontSizeSmall)()),
80
- lineHeight: "".concat((0, _constants.fontSize)(), "px"),
65
+ font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
81
66
  display: 'flex'
82
67
  });
83
68
 
@@ -31,7 +31,7 @@ var testIds = exports.testIds = {
31
31
  };
32
32
  var PACKAGE_DATA = exports.PACKAGE_DATA = {
33
33
  packageName: "@atlaskit/link-picker" || '',
34
- packageVersion: "1.47.14" || '',
34
+ packageVersion: "1.47.16" || '',
35
35
  componentName: _constants.COMPONENT_NAME,
36
36
  source: _constants.COMPONENT_NAME
37
37
  };
@@ -51,14 +51,14 @@ var FixedWidthContainer = function FixedWidthContainer(props) {
51
51
  };
52
52
  var composeLinkPicker = exports.composeLinkPicker = function composeLinkPicker(Component) {
53
53
  return /*#__PURE__*/(0, _react.memo)(function (props) {
54
- var _props$paddingLeft, _props$paddingRight, _props$paddingTop, _props$paddingBottom, _ref2;
54
+ var _props$paddingLeft, _props$paddingRight, _props$paddingTop, _props$paddingBottom;
55
55
  var component = props.component;
56
56
  var RootComponent = component !== null && component !== void 0 ? component : DefaultRootComponent;
57
57
  return (0, _react2.jsx)(_analyticsNext.AnalyticsContext, {
58
58
  data: PACKAGE_DATA
59
59
  }, (0, _react2.jsx)(_sessionProvider.LinkPickerSessionProvider, null, (0, _react2.jsx)(_messagesProvider.MessagesProvider, null, (0, _react2.jsx)("div", {
60
- style: (_ref2 = {}, (0, _defineProperty2.default)(_ref2, '--link-picker-width', props.disableWidth ? '100%' : // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
61
- "".concat(_constants.LINK_PICKER_WIDTH_IN_PX, "px")), (0, _defineProperty2.default)(_ref2, '--link-picker-padding-left', (_props$paddingLeft = props.paddingLeft) !== null && _props$paddingLeft !== void 0 ? _props$paddingLeft : "var(--ds-space-200, 16px)"), (0, _defineProperty2.default)(_ref2, '--link-picker-padding-right', (_props$paddingRight = props.paddingRight) !== null && _props$paddingRight !== void 0 ? _props$paddingRight : "var(--ds-space-200, 16px)"), (0, _defineProperty2.default)(_ref2, '--link-picker-padding-top', (_props$paddingTop = props.paddingTop) !== null && _props$paddingTop !== void 0 ? _props$paddingTop : "var(--ds-space-200, 16px)"), (0, _defineProperty2.default)(_ref2, '--link-picker-padding-bottom', (_props$paddingBottom = props.paddingBottom) !== null && _props$paddingBottom !== void 0 ? _props$paddingBottom : "var(--ds-space-200, 16px)"), _ref2)
60
+ style: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, '--link-picker-width', props.disableWidth ? '100%' : // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
61
+ "".concat(_constants.LINK_PICKER_WIDTH_IN_PX, "px")), '--link-picker-padding-left', (_props$paddingLeft = props.paddingLeft) !== null && _props$paddingLeft !== void 0 ? _props$paddingLeft : "var(--ds-space-200, 16px)"), '--link-picker-padding-right', (_props$paddingRight = props.paddingRight) !== null && _props$paddingRight !== void 0 ? _props$paddingRight : "var(--ds-space-200, 16px)"), '--link-picker-padding-top', (_props$paddingTop = props.paddingTop) !== null && _props$paddingTop !== void 0 ? _props$paddingTop : "var(--ds-space-200, 16px)"), '--link-picker-padding-bottom', (_props$paddingBottom = props.paddingBottom) !== null && _props$paddingBottom !== void 0 ? _props$paddingBottom : "var(--ds-space-200, 16px)")
62
62
  }, (0, _react2.jsx)(FixedWidthContainer, null, (0, _react2.jsx)(_errorBoundary.ErrorBoundary, null, (0, _react2.jsx)(_reactLooselyLazy.LazySuspense, {
63
63
  fallback: (0, _react2.jsx)(_loaderFallback.LoaderFallback, {
64
64
  url: props.url,
@@ -1,19 +1,6 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import { css } from '@emotion/react';
3
3
  import { B100, B400, B50, N20, N200, N300 } from '@atlaskit/theme/colors';
4
- import { fontSize, fontSizeSmall } from '@atlaskit/theme/constants';
5
- // AFP-2532 TODO: Fix automatic suppressions below
6
- // eslint-disable-next-line @atlassian/tangerine/import/entry-points
7
-
8
- export const relativeFontSizeToBase16 = px => {
9
- if (typeof px === 'string') {
10
- px = parseInt(px);
11
- }
12
- if (isNaN(px)) {
13
- throw new Error(`Invalid font size: '${px}'`);
14
- }
15
- return `${px / 16}rem`;
16
- };
17
4
  const listItemBaseStyles = css({
18
5
  display: 'flex',
19
6
  paddingTop: "var(--ds-space-100, 8px)",
@@ -67,9 +54,7 @@ export const itemNameStyles = css({
67
54
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
68
55
  export const listItemContextStyles = css({
69
56
  color: `var(--ds-text, ${N300})`,
70
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
71
- fontSize: relativeFontSizeToBase16(fontSizeSmall()),
72
- lineHeight: `${fontSize()}px`,
57
+ font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
73
58
  display: 'flex'
74
59
  });
75
60
 
@@ -19,7 +19,7 @@ export const testIds = {
19
19
  };
20
20
  export const PACKAGE_DATA = {
21
21
  packageName: "@atlaskit/link-picker" || '',
22
- packageVersion: "1.47.14" || '',
22
+ packageVersion: "1.47.16" || '',
23
23
  componentName: COMPONENT_NAME,
24
24
  source: COMPONENT_NAME
25
25
  };
@@ -43,11 +43,10 @@ export var withInputFieldTracking = function withInputFieldTracking(WrappedCompo
43
43
 
44
44
  // Track the content and input method on every direct change to the input
45
45
  var handleOnChange = useCallback(function (event) {
46
- var _filterOnChangeEventA;
47
46
  // TODO: See above re template literal, improve typesafety here
48
47
  // trackAttribute(`${field}FieldContent`, contentTypeFn(event.currentTarget.value));
49
48
  // trackAttribute(`${field}FieldContentInputMethod`, methodTypeFn(event));
50
- trackAttributes(filterOnChangeEventAttrs(event, (_filterOnChangeEventA = {}, _defineProperty(_filterOnChangeEventA, "".concat(field, "FieldContent"), Boolean(event.currentTarget.value) ? 'text_string' : null), _defineProperty(_filterOnChangeEventA, "".concat(field, "FieldContentInputMethod"), getChangeEventInputMethodType(event)), _filterOnChangeEventA)));
49
+ trackAttributes(filterOnChangeEventAttrs(event, _defineProperty(_defineProperty({}, "".concat(field, "FieldContent"), Boolean(event.currentTarget.value) ? 'text_string' : null), "".concat(field, "FieldContentInputMethod"), getChangeEventInputMethodType(event))));
51
50
  onChange === null || onChange === void 0 || onChange(event);
52
51
  }, [onChange, trackAttributes]);
53
52
 
@@ -1,22 +1,21 @@
1
1
  import _createClass from "@babel/runtime/helpers/createClass";
2
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _inherits from "@babel/runtime/helpers/inherits";
4
3
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
4
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
5
+ import _inherits from "@babel/runtime/helpers/inherits";
6
6
  import _wrapNativeSuper from "@babel/runtime/helpers/wrapNativeSuper";
7
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
8
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
9
9
  export var UnauthenticatedError = /*#__PURE__*/function (_Error) {
10
- _inherits(UnauthenticatedError, _Error);
11
- var _super = _createSuper(UnauthenticatedError);
12
10
  function UnauthenticatedError(iconUrl, authUrl, description) {
13
11
  var _this;
14
12
  _classCallCheck(this, UnauthenticatedError);
15
- _this = _super.call(this, 'The user is not authenticated');
13
+ _this = _callSuper(this, UnauthenticatedError, ['The user is not authenticated']);
16
14
  _this.iconUrl = iconUrl;
17
15
  _this.authUrl = authUrl;
18
16
  _this.description = description;
19
17
  return _this;
20
18
  }
19
+ _inherits(UnauthenticatedError, _Error);
21
20
  return _createClass(UnauthenticatedError);
22
21
  }( /*#__PURE__*/_wrapNativeSuper(Error));
@@ -1,20 +1,19 @@
1
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
2
  import _createClass from "@babel/runtime/helpers/createClass";
3
3
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
- import _inherits from "@babel/runtime/helpers/inherits";
5
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
+ import _inherits from "@babel/runtime/helpers/inherits";
7
7
  import _wrapNativeSuper from "@babel/runtime/helpers/wrapNativeSuper";
8
8
  import _regeneratorRuntime from "@babel/runtime/regenerator";
9
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
9
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
10
10
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
11
  export var CancellationError = /*#__PURE__*/function (_Error) {
12
- _inherits(CancellationError, _Error);
13
- var _super = _createSuper(CancellationError);
14
12
  function CancellationError() {
15
13
  _classCallCheck(this, CancellationError);
16
- return _super.apply(this, arguments);
14
+ return _callSuper(this, CancellationError, arguments);
17
15
  }
16
+ _inherits(CancellationError, _Error);
18
17
  return _createClass(CancellationError);
19
18
  }( /*#__PURE__*/_wrapNativeSuper(Error));
20
19
  export var cancellable = function cancellable(promise) {
@@ -1,25 +1,24 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/createClass";
3
- import _inherits from "@babel/runtime/helpers/inherits";
4
3
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
4
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
5
+ import _inherits from "@babel/runtime/helpers/inherits";
6
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
7
7
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
8
  import React, { Component } from 'react';
9
9
  // eslint-disable-next-line @repo/internal/react/no-class-components
10
10
  export var BaseErrorBoundary = /*#__PURE__*/function (_Component) {
11
- _inherits(BaseErrorBoundary, _Component);
12
- var _super = _createSuper(BaseErrorBoundary);
13
11
  function BaseErrorBoundary(props) {
14
12
  var _this;
15
13
  _classCallCheck(this, BaseErrorBoundary);
16
- _this = _super.call(this, props);
14
+ _this = _callSuper(this, BaseErrorBoundary, [props]);
17
15
  _this.state = {
18
16
  hasError: false
19
17
  };
20
18
  return _this;
21
19
  }
22
- _createClass(BaseErrorBoundary, [{
20
+ _inherits(BaseErrorBoundary, _Component);
21
+ return _createClass(BaseErrorBoundary, [{
23
22
  key: "componentDidCatch",
24
23
  value: function componentDidCatch(error, info) {
25
24
  var onError = this.props.onError;
@@ -41,5 +40,4 @@ export var BaseErrorBoundary = /*#__PURE__*/function (_Component) {
41
40
  return children;
42
41
  }
43
42
  }]);
44
- return BaseErrorBoundary;
45
43
  }(Component);
@@ -1,19 +1,6 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import { css } from '@emotion/react';
3
3
  import { B100, B400, B50, N20, N200, N300 } from '@atlaskit/theme/colors';
4
- import { fontSize, fontSizeSmall } from '@atlaskit/theme/constants';
5
- // AFP-2532 TODO: Fix automatic suppressions below
6
- // eslint-disable-next-line @atlassian/tangerine/import/entry-points
7
-
8
- export var relativeFontSizeToBase16 = function relativeFontSizeToBase16(px) {
9
- if (typeof px === 'string') {
10
- px = parseInt(px);
11
- }
12
- if (isNaN(px)) {
13
- throw new Error("Invalid font size: '".concat(px, "'"));
14
- }
15
- return "".concat(px / 16, "rem");
16
- };
17
4
  var listItemBaseStyles = css({
18
5
  display: 'flex',
19
6
  paddingTop: "var(--ds-space-100, 8px)",
@@ -68,9 +55,7 @@ export var itemNameStyles = css({
68
55
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
69
56
  export var listItemContextStyles = css({
70
57
  color: "var(--ds-text, ".concat(N300, ")"),
71
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
72
- fontSize: relativeFontSizeToBase16(fontSizeSmall()),
73
- lineHeight: "".concat(fontSize(), "px"),
58
+ font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
74
59
  display: 'flex'
75
60
  });
76
61
 
@@ -20,7 +20,7 @@ export var testIds = {
20
20
  };
21
21
  export var PACKAGE_DATA = {
22
22
  packageName: "@atlaskit/link-picker" || '',
23
- packageVersion: "1.47.14" || '',
23
+ packageVersion: "1.47.16" || '',
24
24
  componentName: COMPONENT_NAME,
25
25
  source: COMPONENT_NAME
26
26
  };
@@ -40,14 +40,14 @@ var FixedWidthContainer = function FixedWidthContainer(props) {
40
40
  };
41
41
  export var composeLinkPicker = function composeLinkPicker(Component) {
42
42
  return /*#__PURE__*/memo(function (props) {
43
- var _props$paddingLeft, _props$paddingRight, _props$paddingTop, _props$paddingBottom, _ref2;
43
+ var _props$paddingLeft, _props$paddingRight, _props$paddingTop, _props$paddingBottom;
44
44
  var component = props.component;
45
45
  var RootComponent = component !== null && component !== void 0 ? component : DefaultRootComponent;
46
46
  return jsx(AnalyticsContext, {
47
47
  data: PACKAGE_DATA
48
48
  }, jsx(LinkPickerSessionProvider, null, jsx(MessagesProvider, null, jsx("div", {
49
- style: (_ref2 = {}, _defineProperty(_ref2, '--link-picker-width', props.disableWidth ? '100%' : // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
50
- "".concat(LINK_PICKER_WIDTH_IN_PX, "px")), _defineProperty(_ref2, '--link-picker-padding-left', (_props$paddingLeft = props.paddingLeft) !== null && _props$paddingLeft !== void 0 ? _props$paddingLeft : "var(--ds-space-200, 16px)"), _defineProperty(_ref2, '--link-picker-padding-right', (_props$paddingRight = props.paddingRight) !== null && _props$paddingRight !== void 0 ? _props$paddingRight : "var(--ds-space-200, 16px)"), _defineProperty(_ref2, '--link-picker-padding-top', (_props$paddingTop = props.paddingTop) !== null && _props$paddingTop !== void 0 ? _props$paddingTop : "var(--ds-space-200, 16px)"), _defineProperty(_ref2, '--link-picker-padding-bottom', (_props$paddingBottom = props.paddingBottom) !== null && _props$paddingBottom !== void 0 ? _props$paddingBottom : "var(--ds-space-200, 16px)"), _ref2)
49
+ style: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, '--link-picker-width', props.disableWidth ? '100%' : // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
50
+ "".concat(LINK_PICKER_WIDTH_IN_PX, "px")), '--link-picker-padding-left', (_props$paddingLeft = props.paddingLeft) !== null && _props$paddingLeft !== void 0 ? _props$paddingLeft : "var(--ds-space-200, 16px)"), '--link-picker-padding-right', (_props$paddingRight = props.paddingRight) !== null && _props$paddingRight !== void 0 ? _props$paddingRight : "var(--ds-space-200, 16px)"), '--link-picker-padding-top', (_props$paddingTop = props.paddingTop) !== null && _props$paddingTop !== void 0 ? _props$paddingTop : "var(--ds-space-200, 16px)"), '--link-picker-padding-bottom', (_props$paddingBottom = props.paddingBottom) !== null && _props$paddingBottom !== void 0 ? _props$paddingBottom : "var(--ds-space-200, 16px)")
51
51
  }, jsx(FixedWidthContainer, null, jsx(ErrorBoundary, null, jsx(LazySuspense, {
52
52
  fallback: jsx(LoaderFallback, {
53
53
  url: props.url,
@@ -1,4 +1,3 @@
1
- export declare const relativeFontSizeToBase16: (px: number | string) => string;
2
1
  export declare const composeListItemStyles: (selected?: boolean) => import("@emotion/react").SerializedStyles;
3
2
  export declare const itemNameStyles: import("@emotion/react").SerializedStyles;
4
3
  export declare const listItemContextStyles: import("@emotion/react").SerializedStyles;
@@ -1,4 +1,3 @@
1
- export declare const relativeFontSizeToBase16: (px: number | string) => string;
2
1
  export declare const composeListItemStyles: (selected?: boolean) => import("@emotion/react").SerializedStyles;
3
2
  export declare const itemNameStyles: import("@emotion/react").SerializedStyles;
4
3
  export declare const listItemContextStyles: import("@emotion/react").SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-picker",
3
- "version": "1.47.14",
3
+ "version": "1.47.16",
4
4
  "description": "Standalone link picker",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {
@@ -46,12 +46,12 @@
46
46
  "@atlaskit/analytics-next": "^10.2.0",
47
47
  "@atlaskit/atlassian-context": "^0.0.2",
48
48
  "@atlaskit/button": "^20.3.0",
49
- "@atlaskit/form": "^10.6.0",
49
+ "@atlaskit/form": "^11.0.0",
50
50
  "@atlaskit/frontend-utilities": "^2.7.0",
51
51
  "@atlaskit/heading": "^4.0.0",
52
52
  "@atlaskit/icon": "^23.1.0",
53
53
  "@atlaskit/intl-messages-provider": "^1.0.2",
54
- "@atlaskit/linking-common": "^6.0.0",
54
+ "@atlaskit/linking-common": "^6.1.0",
55
55
  "@atlaskit/onboarding": "^12.2.0",
56
56
  "@atlaskit/platform-feature-flags": "^0.3.0",
57
57
  "@atlaskit/primitives": "^13.3.0",
@@ -59,7 +59,7 @@
59
59
  "@atlaskit/tabs": "^17.0.0",
60
60
  "@atlaskit/textfield": "^6.7.0",
61
61
  "@atlaskit/theme": "^14.0.0",
62
- "@atlaskit/tokens": "^2.4.0",
62
+ "@atlaskit/tokens": "^2.5.0",
63
63
  "@atlaskit/tooltip": "^19.0.0",
64
64
  "@atlaskit/ufo": "^0.3.0",
65
65
  "@atlaskit/visually-hidden": "^1.5.0",