@atlaskit/link-picker 1.37.0 → 1.37.2
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/.eslintrc.js +22 -22
- package/CHANGELOG.md +12 -0
- package/LICENSE.md +6 -8
- package/compass.yml +0 -1
- package/dist/cjs/common/generic-error-svg/index.js +4 -1
- package/dist/cjs/common/generic-error-svg/styled.js +4 -0
- package/dist/cjs/common/ui/empty-state/index.js +3 -1
- package/dist/cjs/common/ui/min-height-container/index.js +4 -1
- package/dist/cjs/common/ui/min-height-container/styled.js +3 -0
- package/dist/cjs/ui/error-boundary/error-boundary-fallback/index.js +17 -11
- package/dist/cjs/ui/error-boundary/error-boundary-fallback/styled.js +3 -0
- package/dist/cjs/ui/index.js +5 -3
- package/dist/cjs/ui/link-picker/form-footer/feature-discovery/index.js +9 -4
- package/dist/cjs/ui/link-picker/form-footer/feature-discovery/styled.js +4 -0
- package/dist/cjs/ui/link-picker/form-footer/index.js +30 -24
- package/dist/cjs/ui/link-picker/form-footer/styled.js +5 -0
- package/dist/cjs/ui/link-picker/index.js +8 -4
- package/dist/cjs/ui/link-picker/search-results/index.js +7 -3
- package/dist/cjs/ui/link-picker/search-results/link-search-error/index.js +1 -0
- package/dist/cjs/ui/link-picker/search-results/link-search-list/index.js +21 -10
- package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js +15 -11
- package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.js +2 -0
- package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/styled.js +4 -0
- package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/styled.js +6 -0
- package/dist/cjs/ui/link-picker/search-results/link-search-list/list-item/index.js +34 -17
- package/dist/cjs/ui/link-picker/search-results/link-search-list/list-item/styled.js +29 -3
- package/dist/cjs/ui/link-picker/search-results/link-search-list/styled.js +9 -0
- package/dist/cjs/ui/link-picker/search-results/scrolling-tabs/index.js +38 -33
- package/dist/cjs/ui/link-picker/search-results/scrolling-tabs/styles.js +20 -4
- package/dist/cjs/ui/link-picker/search-results/search-results-container/index.js +3 -0
- package/dist/cjs/ui/link-picker/search-results/search-results-container/styled.js +3 -0
- package/dist/cjs/ui/link-picker/search-results/styled.js +7 -0
- package/dist/cjs/ui/link-picker/styled.js +5 -3
- package/dist/cjs/ui/link-picker/text-input/index.js +25 -19
- package/dist/cjs/ui/link-picker/text-input/styled.js +6 -0
- package/dist/cjs/ui/loader-fallback/index.js +4 -1
- package/dist/cjs/ui/loader-fallback/styled.js +3 -0
- package/dist/cjs/ui/styled.js +3 -0
- package/dist/es2019/common/generic-error-svg/index.js +4 -1
- package/dist/es2019/common/generic-error-svg/styled.js +3 -0
- package/dist/es2019/common/ui/empty-state/index.js +3 -1
- package/dist/es2019/common/ui/min-height-container/index.js +5 -1
- package/dist/es2019/common/ui/min-height-container/styled.js +3 -0
- package/dist/es2019/ui/error-boundary/error-boundary-fallback/index.js +15 -9
- package/dist/es2019/ui/error-boundary/error-boundary-fallback/styled.js +3 -0
- package/dist/es2019/ui/index.js +7 -2
- package/dist/es2019/ui/link-picker/form-footer/feature-discovery/index.js +9 -4
- package/dist/es2019/ui/link-picker/form-footer/feature-discovery/styled.js +3 -0
- package/dist/es2019/ui/link-picker/form-footer/index.js +31 -24
- package/dist/es2019/ui/link-picker/form-footer/styled.js +5 -0
- package/dist/es2019/ui/link-picker/index.js +9 -3
- package/dist/es2019/ui/link-picker/search-results/index.js +8 -2
- package/dist/es2019/ui/link-picker/search-results/link-search-error/index.js +1 -0
- package/dist/es2019/ui/link-picker/search-results/link-search-list/index.js +22 -9
- package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js +13 -9
- package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.js +2 -0
- package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/styled.js +3 -0
- package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/styled.js +5 -0
- package/dist/es2019/ui/link-picker/search-results/link-search-list/list-item/index.js +34 -17
- package/dist/es2019/ui/link-picker/search-results/link-search-list/list-item/styled.js +28 -3
- package/dist/es2019/ui/link-picker/search-results/link-search-list/styled.js +8 -0
- package/dist/es2019/ui/link-picker/search-results/scrolling-tabs/index.js +35 -28
- package/dist/es2019/ui/link-picker/search-results/scrolling-tabs/styles.js +19 -4
- package/dist/es2019/ui/link-picker/search-results/search-results-container/index.js +4 -0
- package/dist/es2019/ui/link-picker/search-results/search-results-container/styled.js +3 -0
- package/dist/es2019/ui/link-picker/search-results/styled.js +6 -0
- package/dist/es2019/ui/link-picker/styled.js +12 -9
- package/dist/es2019/ui/link-picker/text-input/index.js +27 -20
- package/dist/es2019/ui/link-picker/text-input/styled.js +5 -0
- package/dist/es2019/ui/loader-fallback/index.js +4 -1
- package/dist/es2019/ui/loader-fallback/styled.js +3 -0
- package/dist/es2019/ui/styled.js +3 -0
- package/dist/esm/common/generic-error-svg/index.js +4 -1
- package/dist/esm/common/generic-error-svg/styled.js +3 -0
- package/dist/esm/common/ui/empty-state/index.js +3 -1
- package/dist/esm/common/ui/min-height-container/index.js +5 -1
- package/dist/esm/common/ui/min-height-container/styled.js +3 -0
- package/dist/esm/ui/error-boundary/error-boundary-fallback/index.js +17 -11
- package/dist/esm/ui/error-boundary/error-boundary-fallback/styled.js +3 -0
- package/dist/esm/ui/index.js +6 -2
- package/dist/esm/ui/link-picker/form-footer/feature-discovery/index.js +9 -4
- package/dist/esm/ui/link-picker/form-footer/feature-discovery/styled.js +3 -0
- package/dist/esm/ui/link-picker/form-footer/index.js +31 -24
- package/dist/esm/ui/link-picker/form-footer/styled.js +5 -0
- package/dist/esm/ui/link-picker/index.js +9 -3
- package/dist/esm/ui/link-picker/search-results/index.js +8 -2
- package/dist/esm/ui/link-picker/search-results/link-search-error/index.js +1 -0
- package/dist/esm/ui/link-picker/search-results/link-search-list/index.js +22 -9
- package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js +15 -11
- package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.js +2 -0
- package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/styled.js +3 -0
- package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/styled.js +5 -0
- package/dist/esm/ui/link-picker/search-results/link-search-list/list-item/index.js +34 -17
- package/dist/esm/ui/link-picker/search-results/link-search-list/list-item/styled.js +28 -3
- package/dist/esm/ui/link-picker/search-results/link-search-list/styled.js +8 -0
- package/dist/esm/ui/link-picker/search-results/scrolling-tabs/index.js +39 -32
- package/dist/esm/ui/link-picker/search-results/scrolling-tabs/styles.js +19 -4
- package/dist/esm/ui/link-picker/search-results/search-results-container/index.js +4 -0
- package/dist/esm/ui/link-picker/search-results/search-results-container/styled.js +3 -0
- package/dist/esm/ui/link-picker/search-results/styled.js +6 -0
- package/dist/esm/ui/link-picker/styled.js +5 -2
- package/dist/esm/ui/link-picker/text-input/index.js +26 -19
- package/dist/esm/ui/link-picker/text-input/styled.js +5 -0
- package/dist/esm/ui/loader-fallback/index.js +4 -1
- package/dist/esm/ui/loader-fallback/styled.js +3 -0
- package/dist/esm/ui/styled.js +3 -0
- package/dist/types/common/analytics/index.d.ts +1 -1
- package/dist/types/common/ui/empty-state/index.d.ts +1 -1
- package/dist/types/controllers/session-provider/index.d.ts +1 -1
- package/dist/types/ui/error-boundary/error-boundary-base/index.d.ts +3 -3
- package/dist/types/ui/link-picker/search-results/track-tab-viewed/index.d.ts +1 -1
- package/dist/types/ui/messages-provider/lazy-messages-provider/index.d.ts +1 -1
- package/dist/types-ts4.5/common/analytics/index.d.ts +1 -1
- package/dist/types-ts4.5/common/ui/empty-state/index.d.ts +1 -1
- package/dist/types-ts4.5/controllers/session-provider/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/error-boundary/error-boundary-base/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/link-picker/search-results/track-tab-viewed/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/messages-provider/lazy-messages-provider/index.d.ts +1 -1
- package/package.json +147 -147
- package/report.api.md +75 -82
package/package.json
CHANGED
|
@@ -1,148 +1,148 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}
|
|
2
|
+
"name": "@atlaskit/link-picker",
|
|
3
|
+
"version": "1.37.2",
|
|
4
|
+
"description": "Standalone link picker",
|
|
5
|
+
"author": "Atlassian Pty Ltd",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"registry": "https://registry.npmjs.org/"
|
|
8
|
+
},
|
|
9
|
+
"license": "Apache-2.0",
|
|
10
|
+
"atlassian": {
|
|
11
|
+
"team": "Linking Platform",
|
|
12
|
+
"inPublicMirror": false,
|
|
13
|
+
"releaseModel": "continuous",
|
|
14
|
+
"i18n": true,
|
|
15
|
+
"productPushConsumption": [
|
|
16
|
+
"jira"
|
|
17
|
+
],
|
|
18
|
+
"website": {
|
|
19
|
+
"name": "Link Picker"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
23
|
+
"main": "dist/cjs/index.js",
|
|
24
|
+
"module": "dist/esm/index.js",
|
|
25
|
+
"module:es2019": "dist/es2019/index.js",
|
|
26
|
+
"types": "dist/types/index.d.ts",
|
|
27
|
+
"typesVersions": {
|
|
28
|
+
">=4.5 <4.9": {
|
|
29
|
+
"*": [
|
|
30
|
+
"dist/types-ts4.5/*",
|
|
31
|
+
"dist/types-ts4.5/index.d.ts"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"sideEffects": false,
|
|
36
|
+
"atlaskit:src": "src/index.ts",
|
|
37
|
+
"af:exports": {
|
|
38
|
+
".": "./src/index.ts"
|
|
39
|
+
},
|
|
40
|
+
"platform-feature-flags": {
|
|
41
|
+
"platform.linking-platform.link-picker.enable-empty-state": {
|
|
42
|
+
"type": "boolean"
|
|
43
|
+
},
|
|
44
|
+
"platform.linking-platform.link-picker.fixed-height-search-results": {
|
|
45
|
+
"type": "boolean"
|
|
46
|
+
},
|
|
47
|
+
"platform.linking-platform.link-picker.enable-jira-create": {
|
|
48
|
+
"type": "boolean"
|
|
49
|
+
},
|
|
50
|
+
"platform.linking-platform.link-picker.remove-dst-empty-state": {
|
|
51
|
+
"type": "boolean"
|
|
52
|
+
},
|
|
53
|
+
"platform.linking-platform.link-picker.translations-map": {
|
|
54
|
+
"type": "boolean"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"scripts": {
|
|
58
|
+
"codegen-analytics": "yarn run ts-analytics-codegen --command='yarn workspace @atlaskit/link-picker run codegen-analytics'"
|
|
59
|
+
},
|
|
60
|
+
"dependencies": {
|
|
61
|
+
"@atlaskit/analytics-next": "^9.3.0",
|
|
62
|
+
"@atlaskit/button": "^17.22.0",
|
|
63
|
+
"@atlaskit/empty-state": "^7.9.0",
|
|
64
|
+
"@atlaskit/form": "^10.4.0",
|
|
65
|
+
"@atlaskit/frontend-utilities": "^2.7.0",
|
|
66
|
+
"@atlaskit/heading": "^2.4.0",
|
|
67
|
+
"@atlaskit/icon": "^22.4.0",
|
|
68
|
+
"@atlaskit/intl-messages-provider": "^1.0.2",
|
|
69
|
+
"@atlaskit/linking-common": "^5.7.0",
|
|
70
|
+
"@atlaskit/onboarding": "^11.7.0",
|
|
71
|
+
"@atlaskit/platform-feature-flags": "^0.2.1",
|
|
72
|
+
"@atlaskit/primitives": "^8.0.0",
|
|
73
|
+
"@atlaskit/spinner": "^16.2.0",
|
|
74
|
+
"@atlaskit/tabs": "^16.2.0",
|
|
75
|
+
"@atlaskit/textfield": "^6.4.0",
|
|
76
|
+
"@atlaskit/theme": "^12.10.0",
|
|
77
|
+
"@atlaskit/tokens": "^1.51.0",
|
|
78
|
+
"@atlaskit/tooltip": "^18.5.0",
|
|
79
|
+
"@atlaskit/ufo": "^0.2.0",
|
|
80
|
+
"@atlaskit/visually-hidden": "^1.4.0",
|
|
81
|
+
"@babel/runtime": "^7.0.0",
|
|
82
|
+
"@emotion/react": "^11.7.1",
|
|
83
|
+
"@react-loosely-lazy/manifest": "^1.0.0",
|
|
84
|
+
"date-fns": "^2.17.0",
|
|
85
|
+
"react-loosely-lazy": "^1.0.0",
|
|
86
|
+
"use-debounce": "^3.4.0",
|
|
87
|
+
"uuid": "^3.1.0"
|
|
88
|
+
},
|
|
89
|
+
"peerDependencies": {
|
|
90
|
+
"react": "^16.8.0",
|
|
91
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
92
|
+
},
|
|
93
|
+
"devDependencies": {
|
|
94
|
+
"@af/analytics-codegen": "^0.1.0",
|
|
95
|
+
"@af/integration-testing": "*",
|
|
96
|
+
"@af/visual-regression": "*",
|
|
97
|
+
"@atlaskit/dropdown-menu": "^12.13.0",
|
|
98
|
+
"@atlaskit/link-provider": "^1.11.0",
|
|
99
|
+
"@atlaskit/link-test-helpers": "^7.0.0",
|
|
100
|
+
"@atlaskit/visual-regression": "*",
|
|
101
|
+
"@atlassian/feature-flags-test-utils": "*",
|
|
102
|
+
"@testing-library/dom": "^8.17.1",
|
|
103
|
+
"@testing-library/jest-dom": "^6.4.5",
|
|
104
|
+
"@testing-library/react": "^12.1.5",
|
|
105
|
+
"@testing-library/react-hooks": "^8.0.1",
|
|
106
|
+
"@testing-library/user-event": "^14.4.3",
|
|
107
|
+
"fetch-mock": "^8.0.0",
|
|
108
|
+
"jest-extended": "^0.11.2",
|
|
109
|
+
"lodash": "^4.17.21",
|
|
110
|
+
"mockdate": "^3.0.5",
|
|
111
|
+
"node-fetch": "^2.6.7",
|
|
112
|
+
"prettier": "^3.2.5",
|
|
113
|
+
"react-dom": "^16.8.0",
|
|
114
|
+
"sinon": "^2.2.0",
|
|
115
|
+
"typescript": "~5.4.2"
|
|
116
|
+
},
|
|
117
|
+
"techstack": {
|
|
118
|
+
"@atlassian/frontend": {
|
|
119
|
+
"code-structure": [
|
|
120
|
+
"tangerine-next"
|
|
121
|
+
],
|
|
122
|
+
"import-structure": [
|
|
123
|
+
"atlassian-conventions"
|
|
124
|
+
],
|
|
125
|
+
"circular-dependencies": [
|
|
126
|
+
"file-and-folder-level"
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
"@repo/internal": {
|
|
130
|
+
"dom-events": "use-bind-event-listener",
|
|
131
|
+
"analytics": [
|
|
132
|
+
"analytics-next"
|
|
133
|
+
],
|
|
134
|
+
"design-tokens": [
|
|
135
|
+
"color",
|
|
136
|
+
"spacing"
|
|
137
|
+
],
|
|
138
|
+
"imports": [
|
|
139
|
+
"import-no-extraneous-disable-for-examples-and-docs"
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"techstackIgnore": {
|
|
144
|
+
"stricter": [
|
|
145
|
+
"@atlassian/tangerine/project-structure"
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
}
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/link-picker"
|
|
4
4
|
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
5
|
+
> Do not edit this file. This report is auto-generated using
|
|
6
|
+
> [API Extractor](https://api-extractor.com/).
|
|
6
7
|
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
8
|
|
|
8
9
|
### Table of contents
|
|
@@ -27,125 +28,117 @@ import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
|
27
28
|
export type LinkInputType = 'manual' | 'typeAhead';
|
|
28
29
|
|
|
29
30
|
// @public (undocumented)
|
|
30
|
-
export const LinkPicker: React_2.MemoExoticComponent<
|
|
31
|
-
(props: LinkPickerProps) => jsx.JSX.Element
|
|
32
|
-
>;
|
|
31
|
+
export const LinkPicker: React_2.MemoExoticComponent<(props: LinkPickerProps) => jsx.JSX.Element>;
|
|
33
32
|
|
|
34
33
|
// @public (undocumented)
|
|
35
34
|
export interface LinkPickerPlugin {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
35
|
+
action?: LinkPickerPluginAction;
|
|
36
|
+
emptyStateNoResults?: LinkPickerPluginEmptyStateNoResults;
|
|
37
|
+
errorFallback?: LinkPickerPluginErrorFallback;
|
|
38
|
+
meta?: {
|
|
39
|
+
source?: string;
|
|
40
|
+
};
|
|
41
|
+
// (undocumented)
|
|
42
|
+
resolve: (
|
|
43
|
+
state: LinkPickerState,
|
|
44
|
+
) => AsyncGenerator<ResolveResult, ResolveResult> | Promise<ResolveResult>;
|
|
45
|
+
tabKey?: string;
|
|
46
|
+
tabTitle?: string;
|
|
47
|
+
UNSAFE_onActivation?: () => void;
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
// @public (undocumented)
|
|
52
51
|
export interface LinkPickerPluginAction {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
// (undocumented)
|
|
53
|
+
callback: () => void;
|
|
54
|
+
// (undocumented)
|
|
55
|
+
label: MessageDescriptor | string;
|
|
57
56
|
}
|
|
58
57
|
|
|
59
58
|
// @public (undocumented)
|
|
60
59
|
export type LinkPickerPluginEmptyStateNoResults = () => ReactNode;
|
|
61
60
|
|
|
62
61
|
// @public (undocumented)
|
|
63
|
-
export type LinkPickerPluginErrorFallback = (
|
|
64
|
-
error: unknown,
|
|
65
|
-
retry: () => void,
|
|
66
|
-
) => ReactNode;
|
|
62
|
+
export type LinkPickerPluginErrorFallback = (error: unknown, retry: () => void) => ReactNode;
|
|
67
63
|
|
|
68
64
|
// @public (undocumented)
|
|
69
65
|
export interface LinkPickerProps {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
paddingTop?: string;
|
|
91
|
-
plugins?: LinkPickerPlugin[];
|
|
92
|
-
url?: string;
|
|
66
|
+
component?: React.ComponentType<
|
|
67
|
+
Partial<LinkPickerProps> & {
|
|
68
|
+
children: React.ReactElement;
|
|
69
|
+
}
|
|
70
|
+
>;
|
|
71
|
+
disableWidth?: boolean;
|
|
72
|
+
displayText?: null | string;
|
|
73
|
+
// (undocumented)
|
|
74
|
+
featureFlags?: Record<string, unknown>;
|
|
75
|
+
hideDisplayText?: boolean;
|
|
76
|
+
isLoadingPlugins?: boolean;
|
|
77
|
+
onCancel: () => void;
|
|
78
|
+
onContentResize?: () => void;
|
|
79
|
+
onSubmit: (arg: OnSubmitParameter, analytic?: UIAnalyticsEvent | null) => void;
|
|
80
|
+
paddingBottom?: string;
|
|
81
|
+
paddingLeft?: string;
|
|
82
|
+
paddingRight?: string;
|
|
83
|
+
paddingTop?: string;
|
|
84
|
+
plugins?: LinkPickerPlugin[];
|
|
85
|
+
url?: string;
|
|
93
86
|
}
|
|
94
87
|
|
|
95
88
|
// @public (undocumented)
|
|
96
89
|
export interface LinkPickerState {
|
|
97
|
-
|
|
90
|
+
query: string;
|
|
98
91
|
}
|
|
99
92
|
|
|
100
93
|
// @public (undocumented)
|
|
101
94
|
export interface LinkSearchListItemData {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
95
|
+
container?: string;
|
|
96
|
+
icon:
|
|
97
|
+
| React.ComponentType<{
|
|
98
|
+
alt: string;
|
|
99
|
+
}>
|
|
100
|
+
| string;
|
|
101
|
+
iconAlt: MessageDescriptor | string;
|
|
102
|
+
lastUpdatedDate?: Date;
|
|
103
|
+
lastViewedDate?: Date;
|
|
104
|
+
meta?: {
|
|
105
|
+
source?: string;
|
|
106
|
+
};
|
|
107
|
+
name: string;
|
|
108
|
+
objectId: string;
|
|
109
|
+
prefetch?: boolean;
|
|
110
|
+
url: string;
|
|
118
111
|
}
|
|
119
112
|
|
|
120
113
|
// @public (undocumented)
|
|
121
114
|
interface Meta {
|
|
122
|
-
|
|
115
|
+
inputMethod: LinkInputType;
|
|
123
116
|
}
|
|
124
117
|
|
|
125
118
|
// @public (undocumented)
|
|
126
119
|
interface OnSubmitParameter {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
120
|
+
displayText: null | string;
|
|
121
|
+
meta: Meta;
|
|
122
|
+
rawUrl?: string;
|
|
123
|
+
title: null | string;
|
|
124
|
+
url: string;
|
|
132
125
|
}
|
|
133
126
|
|
|
134
127
|
// @public (undocumented)
|
|
135
128
|
interface ResolveResult {
|
|
136
|
-
|
|
137
|
-
|
|
129
|
+
// (undocumented)
|
|
130
|
+
data: LinkSearchListItemData[];
|
|
138
131
|
}
|
|
139
132
|
|
|
140
133
|
// @public (undocumented)
|
|
141
134
|
export class UnauthenticatedError extends Error {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
135
|
+
constructor(iconUrl: string, authUrl: string, description: string);
|
|
136
|
+
// (undocumented)
|
|
137
|
+
authUrl: string;
|
|
138
|
+
// (undocumented)
|
|
139
|
+
description: string;
|
|
140
|
+
// (undocumented)
|
|
141
|
+
iconUrl: string;
|
|
149
142
|
}
|
|
150
143
|
|
|
151
144
|
// (No @packageDocumentation comment for this package)
|
|
@@ -159,8 +152,8 @@ export class UnauthenticatedError extends Error {
|
|
|
159
152
|
|
|
160
153
|
```json
|
|
161
154
|
{
|
|
162
|
-
|
|
163
|
-
|
|
155
|
+
"react": "^16.8.0",
|
|
156
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
164
157
|
}
|
|
165
158
|
```
|
|
166
159
|
|