@atlaskit/link-picker 1.47.15 → 1.47.17
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 +16 -0
- package/dist/cjs/common/ui/empty-state/index.js +2 -1
- package/dist/cjs/ui/link-picker/search-results/link-search-list/list-item/styled.js +2 -17
- package/dist/cjs/ui/main.js +1 -1
- package/dist/es2019/common/ui/empty-state/index.js +2 -1
- package/dist/es2019/ui/link-picker/search-results/link-search-list/list-item/styled.js +1 -16
- package/dist/es2019/ui/main.js +1 -1
- package/dist/esm/common/ui/empty-state/index.js +2 -1
- package/dist/esm/ui/link-picker/search-results/link-search-list/list-item/styled.js +1 -16
- package/dist/esm/ui/main.js +1 -1
- package/dist/types/ui/link-picker/search-results/link-search-list/list-item/styled.d.ts +0 -1
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/list-item/styled.d.ts +0 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/link-picker
|
|
2
2
|
|
|
3
|
+
## 1.47.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#99456](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99456)
|
|
8
|
+
[`9301bc6f44edf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9301bc6f44edf) -
|
|
9
|
+
[ux] Fix the incorrect heading structure on the link picker with no results
|
|
10
|
+
|
|
11
|
+
## 1.47.16
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#98234](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98234)
|
|
16
|
+
[`98766713e142d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/98766713e142d) -
|
|
17
|
+
Internal changes to typography.
|
|
18
|
+
|
|
3
19
|
## 1.47.15
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -29,7 +29,8 @@ var EmptyState = exports.EmptyState = function EmptyState(_ref) {
|
|
|
29
29
|
alignItems: "center",
|
|
30
30
|
gap: "space.200"
|
|
31
31
|
}, /*#__PURE__*/_react.default.createElement(_heading.default, {
|
|
32
|
-
size: "medium"
|
|
32
|
+
size: "medium",
|
|
33
|
+
as: "h2"
|
|
33
34
|
}, header), description && /*#__PURE__*/_react.default.createElement(_primitives.Text, {
|
|
34
35
|
as: "p",
|
|
35
36
|
color: "color.text"
|
|
@@ -3,24 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
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
|
-
|
|
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
|
|
package/dist/cjs/ui/main.js
CHANGED
|
@@ -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.
|
|
34
|
+
packageVersion: "1.47.17" || '',
|
|
35
35
|
componentName: _constants.COMPONENT_NAME,
|
|
36
36
|
source: _constants.COMPONENT_NAME
|
|
37
37
|
};
|
|
@@ -23,7 +23,8 @@ export const EmptyState = ({
|
|
|
23
23
|
alignItems: "center",
|
|
24
24
|
gap: "space.200"
|
|
25
25
|
}, /*#__PURE__*/React.createElement(Heading, {
|
|
26
|
-
size: "medium"
|
|
26
|
+
size: "medium",
|
|
27
|
+
as: "h2"
|
|
27
28
|
}, header), description && /*#__PURE__*/React.createElement(Text, {
|
|
28
29
|
as: "p",
|
|
29
30
|
color: "color.text"
|
|
@@ -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
|
-
|
|
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
|
|
package/dist/es2019/ui/main.js
CHANGED
|
@@ -22,7 +22,8 @@ export var EmptyState = function EmptyState(_ref) {
|
|
|
22
22
|
alignItems: "center",
|
|
23
23
|
gap: "space.200"
|
|
24
24
|
}, /*#__PURE__*/React.createElement(Heading, {
|
|
25
|
-
size: "medium"
|
|
25
|
+
size: "medium",
|
|
26
|
+
as: "h2"
|
|
26
27
|
}, header), description && /*#__PURE__*/React.createElement(Text, {
|
|
27
28
|
as: "p",
|
|
28
29
|
color: "color.text"
|
|
@@ -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
|
-
|
|
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
|
|
package/dist/esm/ui/main.js
CHANGED
|
@@ -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/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/list-item/styled.d.ts
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "1.47.17",
|
|
4
4
|
"description": "Standalone link picker",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"publishConfig": {
|
|
@@ -51,7 +51,7 @@
|
|
|
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.
|
|
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",
|