@atlaskit/link-picker 1.45.1 → 1.46.0

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.
Files changed (41) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/ui/error-boundary/error-boundary-fallback/index.js +11 -30
  3. package/dist/cjs/ui/link-picker/index.js +19 -6
  4. package/dist/cjs/ui/link-picker/search-results/index.js +8 -9
  5. package/dist/cjs/ui/link-picker/search-results/link-search-list/index.js +5 -4
  6. package/dist/cjs/ui/link-picker/search-results/search-results-container/index.js +20 -15
  7. package/dist/cjs/ui/loader-fallback/index.js +14 -21
  8. package/dist/cjs/ui/main.js +4 -13
  9. package/dist/es2019/ui/error-boundary/error-boundary-fallback/index.js +9 -25
  10. package/dist/es2019/ui/link-picker/index.js +17 -5
  11. package/dist/es2019/ui/link-picker/search-results/index.js +8 -9
  12. package/dist/es2019/ui/link-picker/search-results/link-search-list/index.js +4 -3
  13. package/dist/es2019/ui/link-picker/search-results/search-results-container/index.js +20 -14
  14. package/dist/es2019/ui/loader-fallback/index.js +14 -21
  15. package/dist/es2019/ui/main.js +5 -14
  16. package/dist/esm/ui/error-boundary/error-boundary-fallback/index.js +11 -29
  17. package/dist/esm/ui/link-picker/index.js +18 -5
  18. package/dist/esm/ui/link-picker/search-results/index.js +8 -9
  19. package/dist/esm/ui/link-picker/search-results/link-search-list/index.js +5 -4
  20. package/dist/esm/ui/link-picker/search-results/search-results-container/index.js +19 -15
  21. package/dist/esm/ui/loader-fallback/index.js +14 -21
  22. package/dist/esm/ui/main.js +5 -14
  23. package/dist/types/common/types.d.ts +2 -0
  24. package/dist/types/ui/link-picker/search-results/index.d.ts +2 -1
  25. package/dist/types/ui/link-picker/search-results/link-search-list/index.d.ts +1 -0
  26. package/dist/types/ui/link-picker/search-results/search-results-container/index.d.ts +8 -3
  27. package/dist/types-ts4.5/common/types.d.ts +2 -0
  28. package/dist/types-ts4.5/ui/link-picker/search-results/index.d.ts +2 -1
  29. package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/index.d.ts +1 -0
  30. package/dist/types-ts4.5/ui/link-picker/search-results/search-results-container/index.d.ts +8 -3
  31. package/package.json +6 -9
  32. package/dist/cjs/controllers/use-fix-height/index.js +0 -22
  33. package/dist/cjs/ui/link-picker/styled.js +0 -18
  34. package/dist/es2019/controllers/use-fix-height/index.js +0 -16
  35. package/dist/es2019/ui/link-picker/styled.js +0 -19
  36. package/dist/esm/controllers/use-fix-height/index.js +0 -16
  37. package/dist/esm/ui/link-picker/styled.js +0 -12
  38. package/dist/types/controllers/use-fix-height/index.d.ts +0 -7
  39. package/dist/types/ui/link-picker/styled.d.ts +0 -2
  40. package/dist/types-ts4.5/controllers/use-fix-height/index.d.ts +0 -7
  41. 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.45.1",
3
+ "version": "1.46.0",
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.1",
54
- "@atlaskit/button": "^20.1.0",
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.14.0",
58
+ "@atlaskit/onboarding": "^11.15.0",
62
59
  "@atlaskit/platform-feature-flags": "^0.3.0",
63
- "@atlaskit/primitives": "^12.1.0",
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": "^1.60.0",
65
+ "@atlaskit/tokens": "^1.61.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
- });
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const useFixHeight: (shouldFixHeight: boolean) => {
3
- ref: import("react").RefObject<HTMLDivElement>;
4
- style: {
5
- minHeight: string | number;
6
- } | undefined;
7
- };
@@ -1,2 +0,0 @@
1
- export declare const rootContainerStyles: import("@emotion/react").SerializedStyles;
2
- export declare const formFooterMargin: import("@emotion/react").SerializedStyles;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const useFixHeight: (shouldFixHeight: boolean) => {
3
- ref: import("react").RefObject<HTMLDivElement>;
4
- style: {
5
- minHeight: string | number;
6
- } | undefined;
7
- };
@@ -1,2 +0,0 @@
1
- export declare const rootContainerStyles: import("@emotion/react").SerializedStyles;
2
- export declare const formFooterMargin: import("@emotion/react").SerializedStyles;