@atlaskit/link-picker 1.45.0 → 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 (137) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/cjs/common/analytics/context.js +1 -1
  3. package/dist/cjs/common/analytics/input-field-tracking.js +1 -1
  4. package/dist/cjs/common/ui/min-height-container/index.js +1 -1
  5. package/dist/cjs/common/utils/errors.js +1 -1
  6. package/dist/cjs/controllers/session-provider/index.js +1 -1
  7. package/dist/cjs/i18n/cs.js +1 -1
  8. package/dist/cjs/i18n/da.js +1 -1
  9. package/dist/cjs/i18n/de.js +1 -1
  10. package/dist/cjs/i18n/en.js +1 -1
  11. package/dist/cjs/i18n/en_GB.js +1 -1
  12. package/dist/cjs/i18n/en_ZZ.js +1 -1
  13. package/dist/cjs/i18n/es.js +1 -1
  14. package/dist/cjs/i18n/fi.js +1 -1
  15. package/dist/cjs/i18n/fr.js +1 -1
  16. package/dist/cjs/i18n/hu.js +1 -1
  17. package/dist/cjs/i18n/index.js +1 -1
  18. package/dist/cjs/i18n/it.js +1 -1
  19. package/dist/cjs/i18n/ja.js +1 -1
  20. package/dist/cjs/i18n/ko.js +1 -1
  21. package/dist/cjs/i18n/nb.js +1 -1
  22. package/dist/cjs/i18n/nl.js +1 -1
  23. package/dist/cjs/i18n/pl.js +1 -1
  24. package/dist/cjs/i18n/pt_BR.js +1 -1
  25. package/dist/cjs/i18n/ru.js +1 -1
  26. package/dist/cjs/i18n/sv.js +1 -1
  27. package/dist/cjs/i18n/th.js +1 -1
  28. package/dist/cjs/i18n/tr.js +1 -1
  29. package/dist/cjs/i18n/uk.js +1 -1
  30. package/dist/cjs/i18n/vi.js +1 -1
  31. package/dist/cjs/i18n/zh.js +1 -1
  32. package/dist/cjs/i18n/zh_TW.js +1 -1
  33. package/dist/cjs/index.js +1 -1
  34. package/dist/cjs/services/use-plugins/utils.js +1 -1
  35. package/dist/cjs/ui/error-boundary/error-boundary-base/index.js +2 -2
  36. package/dist/cjs/ui/error-boundary/error-boundary-fallback/index.js +11 -30
  37. package/dist/cjs/ui/error-boundary/index.js +1 -1
  38. package/dist/cjs/ui/lazy.js +1 -1
  39. package/dist/cjs/ui/link-picker/announcer.js +1 -1
  40. package/dist/cjs/ui/link-picker/form-footer/feature-discovery/index.js +12 -2
  41. package/dist/cjs/ui/link-picker/form-footer/index.js +1 -1
  42. package/dist/cjs/ui/link-picker/index.js +19 -6
  43. package/dist/cjs/ui/link-picker/search-results/index.js +9 -10
  44. package/dist/cjs/ui/link-picker/search-results/link-search-list/index.js +5 -4
  45. package/dist/cjs/ui/link-picker/search-results/scrolling-tabs/index.js +4 -4
  46. package/dist/cjs/ui/link-picker/search-results/search-results-container/index.js +20 -15
  47. package/dist/cjs/ui/loader-fallback/index.js +14 -21
  48. package/dist/cjs/ui/main.js +5 -14
  49. package/dist/es2019/i18n/cs.js +1 -1
  50. package/dist/es2019/i18n/da.js +1 -1
  51. package/dist/es2019/i18n/de.js +1 -1
  52. package/dist/es2019/i18n/en.js +1 -1
  53. package/dist/es2019/i18n/en_GB.js +1 -1
  54. package/dist/es2019/i18n/en_ZZ.js +1 -1
  55. package/dist/es2019/i18n/es.js +1 -1
  56. package/dist/es2019/i18n/fi.js +1 -1
  57. package/dist/es2019/i18n/fr.js +1 -1
  58. package/dist/es2019/i18n/hu.js +1 -1
  59. package/dist/es2019/i18n/it.js +1 -1
  60. package/dist/es2019/i18n/ja.js +1 -1
  61. package/dist/es2019/i18n/ko.js +1 -1
  62. package/dist/es2019/i18n/nb.js +1 -1
  63. package/dist/es2019/i18n/nl.js +1 -1
  64. package/dist/es2019/i18n/pl.js +1 -1
  65. package/dist/es2019/i18n/pt_BR.js +1 -1
  66. package/dist/es2019/i18n/ru.js +1 -1
  67. package/dist/es2019/i18n/sv.js +1 -1
  68. package/dist/es2019/i18n/th.js +1 -1
  69. package/dist/es2019/i18n/tr.js +1 -1
  70. package/dist/es2019/i18n/uk.js +1 -1
  71. package/dist/es2019/i18n/vi.js +1 -1
  72. package/dist/es2019/i18n/zh.js +1 -1
  73. package/dist/es2019/i18n/zh_TW.js +1 -1
  74. package/dist/es2019/ui/error-boundary/error-boundary-fallback/index.js +9 -25
  75. package/dist/es2019/ui/link-picker/form-footer/feature-discovery/index.js +14 -2
  76. package/dist/es2019/ui/link-picker/index.js +17 -5
  77. package/dist/es2019/ui/link-picker/search-results/index.js +8 -9
  78. package/dist/es2019/ui/link-picker/search-results/link-search-list/index.js +4 -3
  79. package/dist/es2019/ui/link-picker/search-results/search-results-container/index.js +20 -14
  80. package/dist/es2019/ui/loader-fallback/index.js +14 -21
  81. package/dist/es2019/ui/main.js +5 -14
  82. package/dist/esm/common/utils/errors.js +1 -1
  83. package/dist/esm/i18n/cs.js +1 -1
  84. package/dist/esm/i18n/da.js +1 -1
  85. package/dist/esm/i18n/de.js +1 -1
  86. package/dist/esm/i18n/en.js +1 -1
  87. package/dist/esm/i18n/en_GB.js +1 -1
  88. package/dist/esm/i18n/en_ZZ.js +1 -1
  89. package/dist/esm/i18n/es.js +1 -1
  90. package/dist/esm/i18n/fi.js +1 -1
  91. package/dist/esm/i18n/fr.js +1 -1
  92. package/dist/esm/i18n/hu.js +1 -1
  93. package/dist/esm/i18n/it.js +1 -1
  94. package/dist/esm/i18n/ja.js +1 -1
  95. package/dist/esm/i18n/ko.js +1 -1
  96. package/dist/esm/i18n/nb.js +1 -1
  97. package/dist/esm/i18n/nl.js +1 -1
  98. package/dist/esm/i18n/pl.js +1 -1
  99. package/dist/esm/i18n/pt_BR.js +1 -1
  100. package/dist/esm/i18n/ru.js +1 -1
  101. package/dist/esm/i18n/sv.js +1 -1
  102. package/dist/esm/i18n/th.js +1 -1
  103. package/dist/esm/i18n/tr.js +1 -1
  104. package/dist/esm/i18n/uk.js +1 -1
  105. package/dist/esm/i18n/vi.js +1 -1
  106. package/dist/esm/i18n/zh.js +1 -1
  107. package/dist/esm/i18n/zh_TW.js +1 -1
  108. package/dist/esm/services/use-plugins/utils.js +1 -1
  109. package/dist/esm/ui/error-boundary/error-boundary-base/index.js +1 -1
  110. package/dist/esm/ui/error-boundary/error-boundary-fallback/index.js +11 -29
  111. package/dist/esm/ui/link-picker/form-footer/feature-discovery/index.js +12 -2
  112. package/dist/esm/ui/link-picker/index.js +18 -5
  113. package/dist/esm/ui/link-picker/search-results/index.js +8 -9
  114. package/dist/esm/ui/link-picker/search-results/link-search-list/index.js +5 -4
  115. package/dist/esm/ui/link-picker/search-results/scrolling-tabs/index.js +3 -3
  116. package/dist/esm/ui/link-picker/search-results/search-results-container/index.js +19 -15
  117. package/dist/esm/ui/loader-fallback/index.js +14 -21
  118. package/dist/esm/ui/main.js +5 -14
  119. package/dist/types/common/types.d.ts +2 -0
  120. package/dist/types/ui/link-picker/search-results/index.d.ts +2 -1
  121. package/dist/types/ui/link-picker/search-results/link-search-list/index.d.ts +1 -0
  122. package/dist/types/ui/link-picker/search-results/search-results-container/index.d.ts +8 -3
  123. package/dist/types-ts4.5/common/types.d.ts +2 -0
  124. package/dist/types-ts4.5/ui/link-picker/search-results/index.d.ts +2 -1
  125. package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/index.d.ts +1 -0
  126. package/dist/types-ts4.5/ui/link-picker/search-results/search-results-container/index.d.ts +8 -3
  127. package/package.json +8 -16
  128. package/dist/cjs/controllers/use-fix-height/index.js +0 -22
  129. package/dist/cjs/ui/link-picker/styled.js +0 -18
  130. package/dist/es2019/controllers/use-fix-height/index.js +0 -16
  131. package/dist/es2019/ui/link-picker/styled.js +0 -19
  132. package/dist/esm/controllers/use-fix-height/index.js +0 -16
  133. package/dist/esm/ui/link-picker/styled.js +0 -12
  134. package/dist/types/controllers/use-fix-height/index.d.ts +0 -7
  135. package/dist/types/ui/link-picker/styled.d.ts +0 -2
  136. package/dist/types-ts4.5/controllers/use-fix-height/index.d.ts +0 -7
  137. 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.0",
3
+ "version": "1.46.0",
4
4
  "description": "Standalone link picker",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {
@@ -9,12 +9,7 @@
9
9
  "license": "Apache-2.0",
10
10
  "atlassian": {
11
11
  "team": "Linking Platform",
12
- "inPublicMirror": false,
13
- "releaseModel": "continuous",
14
12
  "i18n": true,
15
- "productPushConsumption": [
16
- "jira"
17
- ],
18
13
  "website": {
19
14
  "name": "Link Picker"
20
15
  },
@@ -43,9 +38,6 @@
43
38
  "platform.linking-platform.link-picker.enable-empty-state": {
44
39
  "type": "boolean"
45
40
  },
46
- "platform.linking-platform.link-picker.fixed-height-search-results": {
47
- "type": "boolean"
48
- },
49
41
  "platform.linking-platform.link-picker.enable-jira-create": {
50
42
  "type": "boolean"
51
43
  }
@@ -55,22 +47,22 @@
55
47
  },
56
48
  "dependencies": {
57
49
  "@atlaskit/analytics-next": "^10.1.0",
58
- "@atlaskit/atlassian-context": "^0.0.1",
59
- "@atlaskit/button": "^20.1.0",
50
+ "@atlaskit/atlassian-context": "^0.0.2",
51
+ "@atlaskit/button": "^20.2.0",
60
52
  "@atlaskit/form": "^10.5.0",
61
53
  "@atlaskit/frontend-utilities": "^2.7.0",
62
54
  "@atlaskit/heading": "^2.4.0",
63
- "@atlaskit/icon": "^22.15.0",
55
+ "@atlaskit/icon": "^22.18.0",
64
56
  "@atlaskit/intl-messages-provider": "^1.0.2",
65
57
  "@atlaskit/linking-common": "^5.11.0",
66
- "@atlaskit/onboarding": "^11.12.0",
58
+ "@atlaskit/onboarding": "^11.15.0",
67
59
  "@atlaskit/platform-feature-flags": "^0.3.0",
68
- "@atlaskit/primitives": "^12.0.0",
60
+ "@atlaskit/primitives": "^12.2.0",
69
61
  "@atlaskit/spinner": "^16.3.0",
70
62
  "@atlaskit/tabs": "^16.4.0",
71
63
  "@atlaskit/textfield": "^6.5.0",
72
64
  "@atlaskit/theme": "^13.0.0",
73
- "@atlaskit/tokens": "^1.59.0",
65
+ "@atlaskit/tokens": "^1.61.0",
74
66
  "@atlaskit/tooltip": "^18.7.0",
75
67
  "@atlaskit/ufo": "^0.3.0",
76
68
  "@atlaskit/visually-hidden": "^1.5.0",
@@ -91,7 +83,7 @@
91
83
  "@af/integration-testing": "*",
92
84
  "@af/visual-regression": "*",
93
85
  "@atlaskit/dropdown-menu": "^12.18.0",
94
- "@atlaskit/link-provider": "^1.14.0",
86
+ "@atlaskit/link-provider": "^1.16.0",
95
87
  "@atlaskit/link-test-helpers": "^7.5.0",
96
88
  "@atlaskit/visual-regression": "*",
97
89
  "@atlassian/feature-flags-test-utils": "*",
@@ -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;