@atlaskit/link-picker 1.14.0 → 1.15.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/link-picker
2
2
 
3
+ ## 1.15.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`b7ace618362`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b7ace618362) - [ux] EDM-3578: adding a prop hideDisplayText for link picker to allow support that stops rendering of the display text field in link picker if prop is set to true.
8
+
3
9
  ## 1.14.0
4
10
 
5
11
  ### Minor Changes
@@ -142,6 +142,7 @@ function LinkPicker(_ref) {
142
142
  plugins = _ref.plugins,
143
143
  initUrl = _ref.url,
144
144
  initDisplayText = _ref.displayText,
145
+ hideDisplayText = _ref.hideDisplayText,
145
146
  featureFlags = _ref.featureFlags;
146
147
 
147
148
  var _useAnalyticsEvents = (0, _analyticsNext.useAnalyticsEvents)(),
@@ -390,7 +391,7 @@ function LinkPicker(_ref) {
390
391
  onClear: handleUrlClear,
391
392
  onKeyDown: handleKeyDown,
392
393
  onChange: handleChangeUrl
393
- }), (0, _react2.jsx)(DisplayTextInputField, {
394
+ }), !hideDisplayText && (0, _react2.jsx)(DisplayTextInputField, {
394
395
  autoComplete: "off",
395
396
  name: "displayText",
396
397
  testId: testIds.textInputField,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-picker",
3
- "version": "1.14.0",
3
+ "version": "1.15.0",
4
4
  "sideEffects": false
5
5
  }
@@ -88,6 +88,7 @@ function LinkPicker({
88
88
  plugins,
89
89
  url: initUrl,
90
90
  displayText: initDisplayText,
91
+ hideDisplayText,
91
92
  featureFlags
92
93
  }) {
93
94
  var _errorFallback;
@@ -333,7 +334,7 @@ function LinkPicker({
333
334
  onClear: handleUrlClear,
334
335
  onKeyDown: handleKeyDown,
335
336
  onChange: handleChangeUrl
336
- }), jsx(DisplayTextInputField, {
337
+ }), !hideDisplayText && jsx(DisplayTextInputField, {
337
338
  autoComplete: "off",
338
339
  name: "displayText",
339
340
  testId: testIds.textInputField,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-picker",
3
- "version": "1.14.0",
3
+ "version": "1.15.0",
4
4
  "sideEffects": false
5
5
  }
@@ -94,6 +94,7 @@ function LinkPicker(_ref) {
94
94
  plugins = _ref.plugins,
95
95
  initUrl = _ref.url,
96
96
  initDisplayText = _ref.displayText,
97
+ hideDisplayText = _ref.hideDisplayText,
97
98
  featureFlags = _ref.featureFlags;
98
99
 
99
100
  var _useAnalyticsEvents = useAnalyticsEvents(),
@@ -342,7 +343,7 @@ function LinkPicker(_ref) {
342
343
  onClear: handleUrlClear,
343
344
  onKeyDown: handleKeyDown,
344
345
  onChange: handleChangeUrl
345
- }), jsx(DisplayTextInputField, {
346
+ }), !hideDisplayText && jsx(DisplayTextInputField, {
346
347
  autoComplete: "off",
347
348
  name: "displayText",
348
349
  testId: testIds.textInputField,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-picker",
3
- "version": "1.14.0",
3
+ "version": "1.15.0",
4
4
  "sideEffects": false
5
5
  }
@@ -61,6 +61,8 @@ export interface LinkPickerProps {
61
61
  component?: React.ComponentType<Partial<LinkPickerProps> & {
62
62
  children: React.ReactElement;
63
63
  }>;
64
+ /** Hides the link picker display text field if set to true. */
65
+ hideDisplayText?: boolean;
64
66
  featureFlags?: Record<string, unknown>;
65
67
  }
66
68
  export interface PickerState {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-picker",
3
- "version": "1.14.0",
3
+ "version": "1.15.0",
4
4
  "description": "Standalone link picker",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {
@@ -73,8 +73,8 @@
73
73
  "@atlaskit/visual-regression": "*",
74
74
  "@atlaskit/webdriver-runner": "*",
75
75
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
76
- "@atlassian/link-picker-atlassian-plugin": "^24.0.0",
77
- "@atlassian/link-picker-plugins": "^12.0.0",
76
+ "@atlassian/link-picker-atlassian-plugin": "^25.0.0",
77
+ "@atlassian/link-picker-plugins": "^13.0.0",
78
78
  "@atlassian/recent-work-client": "^1.6.0",
79
79
  "@atlassian/search-provider": "^2.3.0",
80
80
  "@testing-library/dom": "^8.17.1",
package/report.api.md CHANGED
@@ -8,6 +8,7 @@
8
8
  ### Table of contents
9
9
 
10
10
  - [Main Entry Types](#main-entry-types)
11
+ - [Peer Dependencies](#peer-dependencies)
11
12
 
12
13
  ### Main Entry Types
13
14
 
@@ -60,6 +61,7 @@ export interface LinkPickerProps {
60
61
  displayText?: null | string;
61
62
  // (undocumented)
62
63
  featureFlags?: Record<string, unknown>;
64
+ hideDisplayText?: boolean;
63
65
  onCancel: () => void;
64
66
  onContentResize?: () => void;
65
67
  onSubmit: (
@@ -119,3 +121,16 @@ interface ResolveResult {
119
121
  ```
120
122
 
121
123
  <!--SECTION END: Main Entry Types-->
124
+
125
+ ### Peer Dependencies
126
+
127
+ <!--SECTION START: Peer Dependencies-->
128
+
129
+ ```json
130
+ {
131
+ "react": "^16.8.0",
132
+ "react-intl-next": "npm:react-intl@^5.18.1"
133
+ }
134
+ ```
135
+
136
+ <!--SECTION END: Peer Dependencies-->
@@ -41,6 +41,7 @@ export interface LinkPickerProps {
41
41
  displayText?: null | string;
42
42
  // (undocumented)
43
43
  featureFlags?: Record<string, unknown>;
44
+ hideDisplayText?: boolean;
44
45
  onCancel: () => void;
45
46
  onContentResize?: () => void;
46
47
  onSubmit: (arg: OnSubmitParameter, analytic?: UIAnalyticsEvent | null) => void;