@atlaskit/link-picker 1.45.1 → 1.46.1
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 +20 -0
- package/dist/cjs/ui/error-boundary/error-boundary-fallback/index.js +11 -30
- package/dist/cjs/ui/link-picker/index.js +19 -6
- package/dist/cjs/ui/link-picker/search-results/index.js +8 -9
- package/dist/cjs/ui/link-picker/search-results/link-search-list/index.js +5 -4
- package/dist/cjs/ui/link-picker/search-results/search-results-container/index.js +20 -15
- package/dist/cjs/ui/loader-fallback/index.js +14 -21
- package/dist/cjs/ui/main.js +4 -13
- package/dist/es2019/ui/error-boundary/error-boundary-fallback/index.js +9 -25
- package/dist/es2019/ui/link-picker/index.js +17 -5
- package/dist/es2019/ui/link-picker/search-results/index.js +8 -9
- package/dist/es2019/ui/link-picker/search-results/link-search-list/index.js +4 -3
- package/dist/es2019/ui/link-picker/search-results/search-results-container/index.js +20 -14
- package/dist/es2019/ui/loader-fallback/index.js +14 -21
- package/dist/es2019/ui/main.js +5 -14
- package/dist/esm/ui/error-boundary/error-boundary-fallback/index.js +11 -29
- package/dist/esm/ui/link-picker/index.js +18 -5
- package/dist/esm/ui/link-picker/search-results/index.js +8 -9
- package/dist/esm/ui/link-picker/search-results/link-search-list/index.js +5 -4
- package/dist/esm/ui/link-picker/search-results/search-results-container/index.js +19 -15
- package/dist/esm/ui/loader-fallback/index.js +14 -21
- package/dist/esm/ui/main.js +5 -14
- package/dist/types/common/types.d.ts +2 -0
- package/dist/types/ui/link-picker/search-results/index.d.ts +2 -1
- package/dist/types/ui/link-picker/search-results/link-search-list/index.d.ts +1 -0
- package/dist/types/ui/link-picker/search-results/search-results-container/index.d.ts +8 -3
- package/dist/types-ts4.5/common/types.d.ts +2 -0
- package/dist/types-ts4.5/ui/link-picker/search-results/index.d.ts +2 -1
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/link-picker/search-results/search-results-container/index.d.ts +8 -3
- package/package.json +6 -9
- package/dist/cjs/controllers/use-fix-height/index.js +0 -22
- package/dist/cjs/ui/link-picker/styled.js +0 -18
- package/dist/es2019/controllers/use-fix-height/index.js +0 -16
- package/dist/es2019/ui/link-picker/styled.js +0 -19
- package/dist/esm/controllers/use-fix-height/index.js +0 -16
- package/dist/esm/ui/link-picker/styled.js +0 -12
- package/dist/types/controllers/use-fix-height/index.d.ts +0 -7
- package/dist/types/ui/link-picker/styled.d.ts +0 -2
- package/dist/types-ts4.5/controllers/use-fix-height/index.d.ts +0 -7
- package/dist/types-ts4.5/ui/link-picker/styled.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-picker",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.46.1",
|
|
4
4
|
"description": "Standalone link picker",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"publishConfig": {
|
|
@@ -38,9 +38,6 @@
|
|
|
38
38
|
"platform.linking-platform.link-picker.enable-empty-state": {
|
|
39
39
|
"type": "boolean"
|
|
40
40
|
},
|
|
41
|
-
"platform.linking-platform.link-picker.fixed-height-search-results": {
|
|
42
|
-
"type": "boolean"
|
|
43
|
-
},
|
|
44
41
|
"platform.linking-platform.link-picker.enable-jira-create": {
|
|
45
42
|
"type": "boolean"
|
|
46
43
|
}
|
|
@@ -50,22 +47,22 @@
|
|
|
50
47
|
},
|
|
51
48
|
"dependencies": {
|
|
52
49
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
53
|
-
"@atlaskit/atlassian-context": "^0.0.
|
|
54
|
-
"@atlaskit/button": "^20.
|
|
50
|
+
"@atlaskit/atlassian-context": "^0.0.2",
|
|
51
|
+
"@atlaskit/button": "^20.2.0",
|
|
55
52
|
"@atlaskit/form": "^10.5.0",
|
|
56
53
|
"@atlaskit/frontend-utilities": "^2.7.0",
|
|
57
54
|
"@atlaskit/heading": "^2.4.0",
|
|
58
55
|
"@atlaskit/icon": "^22.18.0",
|
|
59
56
|
"@atlaskit/intl-messages-provider": "^1.0.2",
|
|
60
57
|
"@atlaskit/linking-common": "^5.11.0",
|
|
61
|
-
"@atlaskit/onboarding": "^11.
|
|
58
|
+
"@atlaskit/onboarding": "^11.15.0",
|
|
62
59
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
63
|
-
"@atlaskit/primitives": "^12.
|
|
60
|
+
"@atlaskit/primitives": "^12.2.0",
|
|
64
61
|
"@atlaskit/spinner": "^16.3.0",
|
|
65
62
|
"@atlaskit/tabs": "^16.4.0",
|
|
66
63
|
"@atlaskit/textfield": "^6.5.0",
|
|
67
64
|
"@atlaskit/theme": "^13.0.0",
|
|
68
|
-
"@atlaskit/tokens": "^
|
|
65
|
+
"@atlaskit/tokens": "^2.0.0",
|
|
69
66
|
"@atlaskit/tooltip": "^18.7.0",
|
|
70
67
|
"@atlaskit/ufo": "^0.3.0",
|
|
71
68
|
"@atlaskit/visually-hidden": "^1.5.0",
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useFixHeight = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var useFixHeight = exports.useFixHeight = function useFixHeight(shouldFixHeight) {
|
|
9
|
-
var ref = (0, _react.useRef)(null);
|
|
10
|
-
var currentHeight = (0, _react.useRef)(null);
|
|
11
|
-
(0, _react.useLayoutEffect)(function () {
|
|
12
|
-
if (ref.current) {
|
|
13
|
-
currentHeight.current = ref.current.getBoundingClientRect().height;
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
return {
|
|
17
|
-
ref: ref,
|
|
18
|
-
style: shouldFixHeight ? {
|
|
19
|
-
minHeight: currentHeight.current || 'auto'
|
|
20
|
-
} : undefined
|
|
21
|
-
};
|
|
22
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.rootContainerStyles = exports.formFooterMargin = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
|
-
var _react = require("@emotion/react");
|
|
10
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
|
-
var _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
13
|
-
var rootContainerStyles = exports.rootContainerStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\twidth: ", ";\n\tpadding-left: var(--link-picker-padding-left);\n\tpadding-right: var(--link-picker-padding-right);\n\tpadding-top: var(--link-picker-padding-top);\n\tpadding-bottom: var(--link-picker-padding-bottom);\n\tbox-sizing: border-box;\n\tline-height: initial;\n\tdisplay: block !important;\n"])), (0, _platformFeatureFlags.fg)('platform.linking-platform.link-picker.fixed-height-search-results') ? undefined : 'var(--link-picker-width)');
|
|
14
|
-
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
16
|
-
var formFooterMargin = exports.formFooterMargin = (0, _react.css)({
|
|
17
|
-
marginTop: "var(--ds-space-200, 16px)"
|
|
18
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { useLayoutEffect, useRef } from 'react';
|
|
2
|
-
export const useFixHeight = shouldFixHeight => {
|
|
3
|
-
const ref = useRef(null);
|
|
4
|
-
const currentHeight = useRef(null);
|
|
5
|
-
useLayoutEffect(() => {
|
|
6
|
-
if (ref.current) {
|
|
7
|
-
currentHeight.current = ref.current.getBoundingClientRect().height;
|
|
8
|
-
}
|
|
9
|
-
});
|
|
10
|
-
return {
|
|
11
|
-
ref,
|
|
12
|
-
style: shouldFixHeight ? {
|
|
13
|
-
minHeight: currentHeight.current || 'auto'
|
|
14
|
-
} : undefined
|
|
15
|
-
};
|
|
16
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
-
import { css } from '@emotion/react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
|
-
export const rootContainerStyles = css`
|
|
6
|
-
width: ${fg('platform.linking-platform.link-picker.fixed-height-search-results') ? undefined : 'var(--link-picker-width)'};
|
|
7
|
-
padding-left: var(--link-picker-padding-left);
|
|
8
|
-
padding-right: var(--link-picker-padding-right);
|
|
9
|
-
padding-top: var(--link-picker-padding-top);
|
|
10
|
-
padding-bottom: var(--link-picker-padding-bottom);
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
line-height: initial;
|
|
13
|
-
display: block !important;
|
|
14
|
-
`;
|
|
15
|
-
|
|
16
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
17
|
-
export const formFooterMargin = css({
|
|
18
|
-
marginTop: "var(--ds-space-200, 16px)"
|
|
19
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { useLayoutEffect, useRef } from 'react';
|
|
2
|
-
export var useFixHeight = function useFixHeight(shouldFixHeight) {
|
|
3
|
-
var ref = useRef(null);
|
|
4
|
-
var currentHeight = useRef(null);
|
|
5
|
-
useLayoutEffect(function () {
|
|
6
|
-
if (ref.current) {
|
|
7
|
-
currentHeight.current = ref.current.getBoundingClientRect().height;
|
|
8
|
-
}
|
|
9
|
-
});
|
|
10
|
-
return {
|
|
11
|
-
ref: ref,
|
|
12
|
-
style: shouldFixHeight ? {
|
|
13
|
-
minHeight: currentHeight.current || 'auto'
|
|
14
|
-
} : undefined
|
|
15
|
-
};
|
|
16
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject;
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
-
import { css } from '@emotion/react';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
|
-
export var rootContainerStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\twidth: ", ";\n\tpadding-left: var(--link-picker-padding-left);\n\tpadding-right: var(--link-picker-padding-right);\n\tpadding-top: var(--link-picker-padding-top);\n\tpadding-bottom: var(--link-picker-padding-bottom);\n\tbox-sizing: border-box;\n\tline-height: initial;\n\tdisplay: block !important;\n"])), fg('platform.linking-platform.link-picker.fixed-height-search-results') ? undefined : 'var(--link-picker-width)');
|
|
8
|
-
|
|
9
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
10
|
-
export var formFooterMargin = css({
|
|
11
|
-
marginTop: "var(--ds-space-200, 16px)"
|
|
12
|
-
});
|