@fluentui/react-link 9.0.0-rc.8 → 9.0.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.
Files changed (47) hide show
  1. package/CHANGELOG.json +321 -1
  2. package/CHANGELOG.md +106 -2
  3. package/MIGRATION.md +12 -16
  4. package/README.md +19 -12
  5. package/SPEC.md +2 -67
  6. package/dist/index.d.ts +4 -10
  7. package/{lib → dist}/tsdoc-metadata.json +0 -0
  8. package/lib/components/Link/Link.js.map +1 -1
  9. package/lib/components/Link/Link.types.js.map +1 -1
  10. package/lib/components/Link/renderLink.js.map +1 -1
  11. package/lib/components/Link/useLink.js +4 -4
  12. package/lib/components/Link/useLink.js.map +1 -1
  13. package/lib/components/Link/useLinkState.js +2 -1
  14. package/lib/components/Link/useLinkState.js.map +1 -1
  15. package/lib/components/Link/useLinkStyles.js +9 -8
  16. package/lib/components/Link/useLinkStyles.js.map +1 -1
  17. package/lib/index.js +1 -2
  18. package/lib/index.js.map +1 -1
  19. package/lib-commonjs/components/Link/Link.js.map +1 -1
  20. package/lib-commonjs/components/Link/renderLink.js.map +1 -1
  21. package/lib-commonjs/components/Link/useLink.js +4 -4
  22. package/lib-commonjs/components/Link/useLink.js.map +1 -1
  23. package/lib-commonjs/components/Link/useLinkState.js +2 -1
  24. package/lib-commonjs/components/Link/useLinkState.js.map +1 -1
  25. package/lib-commonjs/components/Link/useLinkStyles.js +10 -9
  26. package/lib-commonjs/components/Link/useLinkStyles.js.map +1 -1
  27. package/lib-commonjs/index.js +1 -8
  28. package/lib-commonjs/index.js.map +1 -1
  29. package/package.json +9 -11
  30. package/lib/Link.d.ts +0 -1
  31. package/lib/components/Link/Link.d.ts +0 -6
  32. package/lib/components/Link/Link.types.d.ts +0 -33
  33. package/lib/components/Link/index.d.ts +0 -6
  34. package/lib/components/Link/renderLink.d.ts +0 -5
  35. package/lib/components/Link/useLink.d.ts +0 -8
  36. package/lib/components/Link/useLinkState.d.ts +0 -6
  37. package/lib/components/Link/useLinkStyles.d.ts +0 -8
  38. package/lib/index.d.ts +0 -2
  39. package/lib-commonjs/Link.d.ts +0 -1
  40. package/lib-commonjs/components/Link/Link.d.ts +0 -6
  41. package/lib-commonjs/components/Link/Link.types.d.ts +0 -33
  42. package/lib-commonjs/components/Link/index.d.ts +0 -6
  43. package/lib-commonjs/components/Link/renderLink.d.ts +0 -5
  44. package/lib-commonjs/components/Link/useLink.d.ts +0 -8
  45. package/lib-commonjs/components/Link/useLinkState.d.ts +0 -6
  46. package/lib-commonjs/components/Link/useLinkStyles.d.ts +0 -8
  47. package/lib-commonjs/index.d.ts +0 -2
package/CHANGELOG.json CHANGED
@@ -2,7 +2,327 @@
2
2
  "name": "@fluentui/react-link",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 04 May 2022 13:24:11 GMT",
5
+ "date": "Tue, 28 Jun 2022 17:37:49 GMT",
6
+ "tag": "@fluentui/react-link_v9.0.1",
7
+ "version": "9.0.1",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "lingfangao@hotmail.com",
12
+ "package": "@fluentui/react-link",
13
+ "commit": "3deda1fbbfb6ac2b1ad150d4dc6343f1f7fda85b",
14
+ "comment": "fix: Use caret dependency range for Griffel"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui/react-link",
19
+ "comment": "Bump @fluentui/react-tabster to v9.0.1",
20
+ "commit": "3deda1fbbfb6ac2b1ad150d4dc6343f1f7fda85b"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-link",
25
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.10",
26
+ "commit": "3deda1fbbfb6ac2b1ad150d4dc6343f1f7fda85b"
27
+ }
28
+ ]
29
+ }
30
+ },
31
+ {
32
+ "date": "Tue, 28 Jun 2022 15:13:40 GMT",
33
+ "tag": "@fluentui/react-link_v9.0.0",
34
+ "version": "9.0.0",
35
+ "comments": {
36
+ "patch": [
37
+ {
38
+ "author": "lingfangao@hotmail.com",
39
+ "package": "@fluentui/react-link",
40
+ "commit": "c7b1348bdad7aa883c29bfbc96ef2a32e6ebc7dd",
41
+ "comment": "feat: Initial 9.0.0 release"
42
+ },
43
+ {
44
+ "author": "beachball",
45
+ "package": "@fluentui/react-link",
46
+ "comment": "Bump @fluentui/keyboard-keys to v9.0.0",
47
+ "commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
48
+ },
49
+ {
50
+ "author": "beachball",
51
+ "package": "@fluentui/react-link",
52
+ "comment": "Bump @fluentui/react-tabster to v9.0.0",
53
+ "commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
54
+ },
55
+ {
56
+ "author": "beachball",
57
+ "package": "@fluentui/react-link",
58
+ "comment": "Bump @fluentui/react-theme to v9.0.0",
59
+ "commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
60
+ },
61
+ {
62
+ "author": "beachball",
63
+ "package": "@fluentui/react-link",
64
+ "comment": "Bump @fluentui/react-utilities to v9.0.0",
65
+ "commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
66
+ },
67
+ {
68
+ "author": "beachball",
69
+ "package": "@fluentui/react-link",
70
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.9",
71
+ "commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
72
+ }
73
+ ],
74
+ "prerelease": [
75
+ {
76
+ "author": "lingfangao@hotmail.com",
77
+ "package": "@fluentui/react-link",
78
+ "commit": "675acea49c97f10837ddee9b8c4350ca27750125",
79
+ "comment": "Bump Griffel dependencies"
80
+ },
81
+ {
82
+ "author": "Humberto.Morimoto@microsoft.com",
83
+ "package": "@fluentui/react-link",
84
+ "commit": "bd64779b7d68775260b587f10265d64b916f6140",
85
+ "comment": "Fixing mention of SpinButton in README."
86
+ },
87
+ {
88
+ "author": "Humberto.Morimoto@microsoft.com",
89
+ "package": "@fluentui/react-link",
90
+ "commit": "ce6fe7e35398b3ca4e11a26b777fd9ba46529c72",
91
+ "comment": "README and migration guide cleanup."
92
+ },
93
+ {
94
+ "author": "lingfangao@hotmail.com",
95
+ "package": "@fluentui/react-link",
96
+ "commit": "e0aabd850b15adf9c151ebd4e332f7c50ad6cfdf",
97
+ "comment": "Update 9.0.0-rc dependencies to use caret range"
98
+ }
99
+ ],
100
+ "none": [
101
+ {
102
+ "author": "tristan.watanabe@gmail.com",
103
+ "package": "@fluentui/react-link",
104
+ "commit": "c6d03231b254b58e8de042800129907a970bc6f8",
105
+ "comment": "chore: Move Link stories to folder with index entry."
106
+ }
107
+ ]
108
+ }
109
+ },
110
+ {
111
+ "date": "Thu, 23 Jun 2022 14:25:31 GMT",
112
+ "tag": "@fluentui/react-link_v9.0.0-rc.14",
113
+ "version": "9.0.0-rc.14",
114
+ "comments": {
115
+ "prerelease": [
116
+ {
117
+ "author": "beachball",
118
+ "package": "@fluentui/react-link",
119
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.14",
120
+ "commit": "b00790b7a0ea1473d8c3cc49c7ca0088002957ed"
121
+ },
122
+ {
123
+ "author": "beachball",
124
+ "package": "@fluentui/react-link",
125
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.10",
126
+ "commit": "b00790b7a0ea1473d8c3cc49c7ca0088002957ed"
127
+ }
128
+ ]
129
+ }
130
+ },
131
+ {
132
+ "date": "Tue, 31 May 2022 21:28:40 GMT",
133
+ "tag": "@fluentui/react-link_v9.0.0-rc.13",
134
+ "version": "9.0.0-rc.13",
135
+ "comments": {
136
+ "prerelease": [
137
+ {
138
+ "author": "olfedias@microsoft.com",
139
+ "package": "@fluentui/react-link",
140
+ "commit": "0a5e9fa77a72eecafdd07034ccdc0b95fd49877c",
141
+ "comment": "chore: Update Griffel to latest version"
142
+ },
143
+ {
144
+ "author": "beachball",
145
+ "package": "@fluentui/react-link",
146
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.13",
147
+ "commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
148
+ },
149
+ {
150
+ "author": "beachball",
151
+ "package": "@fluentui/react-link",
152
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.10",
153
+ "commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
154
+ },
155
+ {
156
+ "author": "beachball",
157
+ "package": "@fluentui/react-link",
158
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.8",
159
+ "commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
160
+ }
161
+ ]
162
+ }
163
+ },
164
+ {
165
+ "date": "Thu, 26 May 2022 21:01:26 GMT",
166
+ "tag": "@fluentui/react-link_v9.0.0-rc.12",
167
+ "version": "9.0.0-rc.12",
168
+ "comments": {
169
+ "none": [
170
+ {
171
+ "author": "olfedias@microsoft.com",
172
+ "package": "@fluentui/react-link",
173
+ "commit": "e0417c44ab690bda8923df041a880b6085f48e2d",
174
+ "comment": "fix missing dot, create missing files"
175
+ }
176
+ ],
177
+ "prerelease": [
178
+ {
179
+ "author": "beachball",
180
+ "package": "@fluentui/react-link",
181
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.12",
182
+ "commit": "3cf55ce998048554bf6a550de44403843ea8ede0"
183
+ }
184
+ ]
185
+ }
186
+ },
187
+ {
188
+ "date": "Mon, 23 May 2022 18:56:45 GMT",
189
+ "tag": "@fluentui/react-link_v9.0.0-rc.11",
190
+ "version": "9.0.0-rc.11",
191
+ "comments": {
192
+ "prerelease": [
193
+ {
194
+ "author": "esteban.230@hotmail.com",
195
+ "package": "@fluentui/react-link",
196
+ "commit": "5ed22515a7542b432ed694f22606ac3718d501cb",
197
+ "comment": "Removing <componentName>ClassName exports."
198
+ },
199
+ {
200
+ "author": "beachball",
201
+ "package": "@fluentui/react-link",
202
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.11",
203
+ "commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
204
+ },
205
+ {
206
+ "author": "beachball",
207
+ "package": "@fluentui/react-link",
208
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.9",
209
+ "commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
210
+ },
211
+ {
212
+ "author": "beachball",
213
+ "package": "@fluentui/react-link",
214
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.7",
215
+ "commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
216
+ }
217
+ ]
218
+ }
219
+ },
220
+ {
221
+ "date": "Mon, 23 May 2022 12:14:21 GMT",
222
+ "tag": "@fluentui/react-link_v9.0.0-rc.10",
223
+ "version": "9.0.0-rc.10",
224
+ "comments": {
225
+ "prerelease": [
226
+ {
227
+ "author": "olfedias@microsoft.com",
228
+ "package": "@fluentui/react-link",
229
+ "commit": "f120fe9160ad7311a87af0cfacd8d2fb26275e34",
230
+ "comment": "chore: Update Griffel to latest version"
231
+ },
232
+ {
233
+ "author": "olfedias@microsoft.com",
234
+ "package": "@fluentui/react-link",
235
+ "commit": "60804cec07a495b8a5d1fc66338bf0443b212144",
236
+ "comment": "chore: Update Griffel to latest version"
237
+ },
238
+ {
239
+ "author": "martinhochel@microsoft.com",
240
+ "package": "@fluentui/react-link",
241
+ "commit": "692e6916819ee07a1dfb0d99ac2ffbdd0d75252f",
242
+ "comment": "feat: ship rolluped only dts"
243
+ },
244
+ {
245
+ "author": "Humberto.Morimoto@microsoft.com",
246
+ "package": "@fluentui/react-link",
247
+ "commit": "6462df4b4bf19411dd60e788c3316086aa685d8e",
248
+ "comment": "Removing LinkCommon type."
249
+ },
250
+ {
251
+ "author": "beachball",
252
+ "package": "@fluentui/react-link",
253
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.10",
254
+ "commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
255
+ },
256
+ {
257
+ "author": "beachball",
258
+ "package": "@fluentui/react-link",
259
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.8",
260
+ "commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
261
+ },
262
+ {
263
+ "author": "beachball",
264
+ "package": "@fluentui/react-link",
265
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.9",
266
+ "commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
267
+ },
268
+ {
269
+ "author": "beachball",
270
+ "package": "@fluentui/react-link",
271
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.6",
272
+ "commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
273
+ }
274
+ ],
275
+ "none": [
276
+ {
277
+ "author": "Humberto.Morimoto@microsoft.com",
278
+ "package": "@fluentui/react-link",
279
+ "commit": "8639df27de59d5a48e0e46c07fe7ac9342cfc98a",
280
+ "comment": "Improving README and updating spec and migration guide."
281
+ }
282
+ ]
283
+ }
284
+ },
285
+ {
286
+ "date": "Thu, 05 May 2022 18:26:30 GMT",
287
+ "tag": "@fluentui/react-link_v9.0.0-rc.9",
288
+ "version": "9.0.0-rc.9",
289
+ "comments": {
290
+ "prerelease": [
291
+ {
292
+ "author": "beachball",
293
+ "package": "@fluentui/react-link",
294
+ "comment": "Bump @fluentui/keyboard-keys to v9.0.0-rc.6",
295
+ "commit": "c5abb9c480ac94d12aa644d68d30773d77f2a159"
296
+ },
297
+ {
298
+ "author": "beachball",
299
+ "package": "@fluentui/react-link",
300
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.9",
301
+ "commit": "c5abb9c480ac94d12aa644d68d30773d77f2a159"
302
+ },
303
+ {
304
+ "author": "beachball",
305
+ "package": "@fluentui/react-link",
306
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.7",
307
+ "commit": "c5abb9c480ac94d12aa644d68d30773d77f2a159"
308
+ },
309
+ {
310
+ "author": "beachball",
311
+ "package": "@fluentui/react-link",
312
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.8",
313
+ "commit": "c5abb9c480ac94d12aa644d68d30773d77f2a159"
314
+ },
315
+ {
316
+ "author": "beachball",
317
+ "package": "@fluentui/react-link",
318
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.5",
319
+ "commit": "c5abb9c480ac94d12aa644d68d30773d77f2a159"
320
+ }
321
+ ]
322
+ }
323
+ },
324
+ {
325
+ "date": "Wed, 04 May 2022 13:26:44 GMT",
6
326
  "tag": "@fluentui/react-link_v9.0.0-rc.8",
7
327
  "version": "9.0.0-rc.8",
8
328
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,116 @@
1
1
  # Change Log - @fluentui/react-link
2
2
 
3
- This log was last generated on Wed, 04 May 2022 13:24:11 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 28 Jun 2022 17:37:49 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-link_v9.0.1)
8
+
9
+ Tue, 28 Jun 2022 17:37:49 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-link_v9.0.0..@fluentui/react-link_v9.0.1)
11
+
12
+ ### Patches
13
+
14
+ - fix: Use caret dependency range for Griffel ([PR #23754](https://github.com/microsoft/fluentui/pull/23754) by lingfangao@hotmail.com)
15
+ - Bump @fluentui/react-tabster to v9.0.1 ([PR #23754](https://github.com/microsoft/fluentui/pull/23754) by beachball)
16
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.10 ([PR #23754](https://github.com/microsoft/fluentui/pull/23754) by beachball)
17
+
18
+ ## [9.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-link_v9.0.0)
19
+
20
+ Tue, 28 Jun 2022 15:13:40 GMT
21
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-link_v9.0.0-rc.14..@fluentui/react-link_v9.0.0)
22
+
23
+ ### Patches
24
+
25
+ - feat: Initial 9.0.0 release ([PR #23733](https://github.com/microsoft/fluentui/pull/23733) by lingfangao@hotmail.com)
26
+ - Bump @fluentui/keyboard-keys to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
27
+ - Bump @fluentui/react-tabster to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
28
+ - Bump @fluentui/react-theme to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
29
+ - Bump @fluentui/react-utilities to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
30
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.9 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
31
+
32
+ ### Changes
33
+
34
+ - Bump Griffel dependencies ([PR #23688](https://github.com/microsoft/fluentui/pull/23688) by lingfangao@hotmail.com)
35
+ - Fixing mention of SpinButton in README. ([PR #23424](https://github.com/microsoft/fluentui/pull/23424) by Humberto.Morimoto@microsoft.com)
36
+ - README and migration guide cleanup. ([PR #23395](https://github.com/microsoft/fluentui/pull/23395) by Humberto.Morimoto@microsoft.com)
37
+ - Update 9.0.0-rc dependencies to use caret range ([PR #23732](https://github.com/microsoft/fluentui/pull/23732) by lingfangao@hotmail.com)
38
+
39
+ ## [9.0.0-rc.14](https://github.com/microsoft/fluentui/tree/@fluentui/react-link_v9.0.0-rc.14)
40
+
41
+ Thu, 23 Jun 2022 14:25:31 GMT
42
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-link_v9.0.0-rc.13..@fluentui/react-link_v9.0.0-rc.14)
43
+
44
+ ### Changes
45
+
46
+ - Bump @fluentui/react-tabster to v9.0.0-rc.14 ([PR #23608](https://github.com/microsoft/fluentui/pull/23608) by beachball)
47
+ - Bump @fluentui/react-theme to v9.0.0-rc.10 ([PR #23608](https://github.com/microsoft/fluentui/pull/23608) by beachball)
48
+
49
+ ## [9.0.0-rc.13](https://github.com/microsoft/fluentui/tree/@fluentui/react-link_v9.0.0-rc.13)
50
+
51
+ Tue, 31 May 2022 21:28:40 GMT
52
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-link_v9.0.0-rc.12..@fluentui/react-link_v9.0.0-rc.13)
53
+
54
+ ### Changes
55
+
56
+ - chore: Update Griffel to latest version ([PR #23275](https://github.com/microsoft/fluentui/pull/23275) by olfedias@microsoft.com)
57
+ - Bump @fluentui/react-tabster to v9.0.0-rc.13 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
58
+ - Bump @fluentui/react-utilities to v9.0.0-rc.10 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
59
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.8 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
60
+
61
+ ## [9.0.0-rc.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-link_v9.0.0-rc.12)
62
+
63
+ Thu, 26 May 2022 21:01:26 GMT
64
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-link_v9.0.0-rc.11..@fluentui/react-link_v9.0.0-rc.12)
65
+
66
+ ### Changes
67
+
68
+ - Bump @fluentui/react-tabster to v9.0.0-rc.12 ([PR #23267](https://github.com/microsoft/fluentui/pull/23267) by beachball)
69
+
70
+ ## [9.0.0-rc.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-link_v9.0.0-rc.11)
71
+
72
+ Mon, 23 May 2022 18:56:45 GMT
73
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-link_v9.0.0-rc.10..@fluentui/react-link_v9.0.0-rc.11)
74
+
75
+ ### Changes
76
+
77
+ - Removing <componentName>ClassName exports. ([PR #23092](https://github.com/microsoft/fluentui/pull/23092) by esteban.230@hotmail.com)
78
+ - Bump @fluentui/react-tabster to v9.0.0-rc.11 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
79
+ - Bump @fluentui/react-theme to v9.0.0-rc.9 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
80
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.7 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
81
+
82
+ ## [9.0.0-rc.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-link_v9.0.0-rc.10)
83
+
84
+ Mon, 23 May 2022 12:14:21 GMT
85
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-link_v9.0.0-rc.9..@fluentui/react-link_v9.0.0-rc.10)
86
+
87
+ ### Changes
88
+
89
+ - chore: Update Griffel to latest version ([PR #22894](https://github.com/microsoft/fluentui/pull/22894) by olfedias@microsoft.com)
90
+ - chore: Update Griffel to latest version ([PR #23029](https://github.com/microsoft/fluentui/pull/23029) by olfedias@microsoft.com)
91
+ - feat: ship rolluped only dts ([PR #22793](https://github.com/microsoft/fluentui/pull/22793) by martinhochel@microsoft.com)
92
+ - Removing LinkCommon type. ([PR #22942](https://github.com/microsoft/fluentui/pull/22942) by Humberto.Morimoto@microsoft.com)
93
+ - Bump @fluentui/react-tabster to v9.0.0-rc.10 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
94
+ - Bump @fluentui/react-theme to v9.0.0-rc.8 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
95
+ - Bump @fluentui/react-utilities to v9.0.0-rc.9 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
96
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.6 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
97
+
98
+ ## [9.0.0-rc.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-link_v9.0.0-rc.9)
99
+
100
+ Thu, 05 May 2022 18:26:30 GMT
101
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-link_v9.0.0-rc.8..@fluentui/react-link_v9.0.0-rc.9)
102
+
103
+ ### Changes
104
+
105
+ - Bump @fluentui/keyboard-keys to v9.0.0-rc.6 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
106
+ - Bump @fluentui/react-tabster to v9.0.0-rc.9 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
107
+ - Bump @fluentui/react-theme to v9.0.0-rc.7 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
108
+ - Bump @fluentui/react-utilities to v9.0.0-rc.8 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
109
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.5 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
110
+
7
111
  ## [9.0.0-rc.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-link_v9.0.0-rc.8)
8
112
 
9
- Wed, 04 May 2022 13:24:11 GMT
113
+ Wed, 04 May 2022 13:26:44 GMT
10
114
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-link_v9.0.0-rc.7..@fluentui/react-link_v9.0.0-rc.8)
11
115
 
12
116
  ### Changes
package/MIGRATION.md CHANGED
@@ -1,9 +1,5 @@
1
1
  # Link Migration
2
2
 
3
- ## STATUS: WIP 🚧
4
-
5
- This Migration guide is a work in progress and is not yet ready for use.
6
-
7
3
  ## Migration from v8
8
4
 
9
5
  The existing `Link` control supports a very similar set of props to the one being proposed with a few differences that are outlined below:
@@ -19,15 +15,15 @@ v0 does not currently export a `Link` component.
19
15
 
20
16
  ## Property mapping
21
17
 
22
- | v8 `Link` | Converged `Link` |
23
- | -------------- | ---------------- |
24
- | `componentRef` | - |
25
- | `disabled` | `disabled` |
26
- | `href` | `href` |
27
- | `onClick` | `onClick` |
28
- | `rel` | `rel` |
29
- | `styles` | - |
30
- | `target` | `target` |
31
- | `theme` | - |
32
- | `type` | `type` |
33
- | `underline` | `inline` |
18
+ | v8 `Link` | v9 `Link` |
19
+ | -------------- | ---------- |
20
+ | `componentRef` | - |
21
+ | `disabled` | `disabled` |
22
+ | `href` | `href` |
23
+ | `onClick` | `onClick` |
24
+ | `rel` | `rel` |
25
+ | `styles` | - |
26
+ | `target` | `target` |
27
+ | `theme` | - |
28
+ | `type` | `type` |
29
+ | `underline` | `inline` |
package/README.md CHANGED
@@ -1,23 +1,13 @@
1
1
  # @fluentui/react-link
2
2
 
3
- **Link components for [Fluent UI](https://dev.microsoft.com/fluentui)**
3
+ **Link components for [Fluent UI](https://aka.ms/fluentui-storybook)**
4
4
 
5
- The Link component references data that a user can follow by clicking or tapping it.
6
-
7
- ## STATUS: WIP 🚧
8
-
9
- These are not production-ready components and **should never be used in product**. This space is useful for testing new components whose APIs might change before final release.
5
+ Links reference data that a user can follow by clicking or tapping it.
10
6
 
11
7
  ## Usage
12
8
 
13
9
  To import Link:
14
10
 
15
- ```js
16
- import { Link } from '@fluentui/react-link';
17
- ```
18
-
19
- Once the Link component graduates to a production release, the component will be available at:
20
-
21
11
  ```js
22
12
  import { Link } from '@fluentui/react-components';
23
13
  ```
@@ -27,6 +17,23 @@ import { Link } from '@fluentui/react-components';
27
17
  ```jsx
28
18
  <Link>This is a link</Link>
29
19
  <Link href="https://www.bing.com">This is a link</Link>
20
+ <Link href="https://www.bing.com" appearance="subtle">This is a link</Link>
30
21
  <Link href="https://www.bing.com" disabled>This is a link</Link>
31
22
  <Link href="https://www.bing.com" target="_blank">This is a link</Link>
23
+ <Link as="button" appearance="subtle">This is a link</Link>
32
24
  ```
25
+
26
+ See [Fluent UI Storybook](https://aka.ms/fluentui-storybook) for more detailed usage examples.
27
+
28
+ Alternatively, run Storybook locally with:
29
+
30
+ 1. `yarn start`
31
+ 2. Select `react-link` from the list.
32
+
33
+ ### Specification
34
+
35
+ See [SPEC.md](./SPEC.md).
36
+
37
+ ### Migration Guide
38
+
39
+ If you're upgrading to Fluent UI v9 see [MIGRATION.md](./MIGRATION.md) for guidance on updating to the latest Link implementation.
package/SPEC.md CHANGED
@@ -54,72 +54,7 @@ The `Link` can also be custom rendered as something entirely different by replac
54
54
 
55
55
  ### Props
56
56
 
57
- ```ts
58
- export type LinkProps = ComponentProps &
59
- React.AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLElement> &
60
- Omit<React.ButtonHTMLAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLElement>, 'type'> & {
61
- /**
62
- * URL the link points to. If not provided, the link renders as a button (unless that behavior is
63
- * overridden using `as`).
64
- */
65
- href?: string;
66
-
67
- /**
68
- * Click handler for the link.
69
- */
70
- onClick?: (event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement | HTMLElement>) => void;
71
-
72
- /**
73
- * Relationship to the linked URL (can be a space-separated list).
74
- * Most common values are `noreferrer` and/or `noopener`.
75
- * This prop is only applied if `href` is set.
76
- */
77
- rel?: string;
78
-
79
- /**
80
- * Where to open the linked URL. Common values are `_blank` (a new tab or window),
81
- * `_self` (the current window/context), `_parent`, and `_top`.
82
- * This prop is only applied if `href` is set.
83
- */
84
- target?: string;
85
-
86
- /**
87
- * Built-in HTML attribute with different behavior depending on how the link is rendered.
88
- * If rendered as `<a>`, hints at the MIME type.
89
- * If rendered as `<button>`, override the type of button (`button` is the default).
90
- */
91
- type?: string;
92
-
93
- /**
94
- * A link can appear either with its default style or subtle.
95
- * If not specified, the link appears with its default styling.
96
- */
97
- appearance?: 'subtle';
98
-
99
- /**
100
- * Whether the link is disabled.
101
- * @default false
102
- */
103
- disabled?: boolean;
104
-
105
- /**
106
- * When set, allows the link to be focusable even when it has been disabled. This is used in scenarios where it is
107
- * important to keep a consistent tab order for screen reader and keyboard users.
108
- * @default false
109
- */
110
- disabledFocusable?: boolean;
111
-
112
- /**
113
- * If true, changes styling when the link is being used alongside other text content.
114
- * @default false
115
- */
116
- inline?: boolean;
117
- };
118
- ```
119
-
120
- ### Styling Tokens
121
-
122
- TBD once we decide on component tokens work.
57
+ See API at [Link.types.ts](./src/components/Link/Link.types.ts).
123
58
 
124
59
  ## Structure
125
60
 
@@ -141,7 +76,7 @@ For `Links` rendering as anything other than `<a>` (the example below uses `<but
141
76
 
142
77
  ## Migration
143
78
 
144
- See [MIGRATION.md](https://github.com/microsoft/fluentui/blob/master/packages/react-link/MIGRATION.md).
79
+ See [MIGRATION.md](./MIGRATION.md).
145
80
 
146
81
  ## Behaviors
147
82
 
package/dist/index.d.ts CHANGED
@@ -10,19 +10,15 @@ import type { SlotClassNames } from '@fluentui/react-utilities';
10
10
  */
11
11
  export declare const Link: ForwardRefComponent<LinkProps>;
12
12
 
13
- /**
14
- * @deprecated Use `linkClassNames.root` instead.
15
- */
16
- export declare const linkClassName = "fui-Link";
17
-
18
13
  export declare const linkClassNames: SlotClassNames<LinkSlots>;
19
14
 
20
- declare type LinkCommons = {
15
+ export declare type LinkProps = ComponentProps<LinkSlots> & {
21
16
  /**
22
17
  * A link can appear either with its default style or subtle.
23
18
  * If not specified, the link appears with its default styling.
19
+ * @default 'default'
24
20
  */
25
- appearance?: 'subtle';
21
+ appearance?: 'default' | 'subtle';
26
22
  /**
27
23
  * Whether the link is disabled.
28
24
  * @default false
@@ -41,8 +37,6 @@ declare type LinkCommons = {
41
37
  inline?: boolean;
42
38
  };
43
39
 
44
- export declare type LinkProps = ComponentProps<LinkSlots> & LinkCommons;
45
-
46
40
  export declare type LinkSlots = {
47
41
  /**
48
42
  * Root of the component that renders as either an <a> or a <button> tag.
@@ -50,7 +44,7 @@ export declare type LinkSlots = {
50
44
  root: Slot<'a', 'button'>;
51
45
  };
52
46
 
53
- export declare type LinkState = ComponentState<LinkSlots> & LinkCommons;
47
+ export declare type LinkState = ComponentState<LinkSlots> & Required<Pick<LinkProps, 'appearance' | 'disabled' | 'disabledFocusable' | 'inline'>>;
54
48
 
55
49
  /**
56
50
  * Renders a Link component by passing the state defined props to the appropriate slots.
File without changes
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Link/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,gBAAT,QAAiC,WAAjC;AACA,SAAS,sBAAT,QAAuC,iBAAvC;AACA,SAAS,mBAAT,QAAoC,cAApC;AAIA;;AAEG;;AACH,OAAO,MAAM,IAAI,gBAAmC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAClF,QAAM,KAAK,GAAG,gBAAgB,CAAC,KAAD,EAAQ,GAAR,CAA9B;AAEA,EAAA,sBAAsB,CAAC,KAAD,CAAtB;AAEA,SAAO,mBAAmB,CAAC,KAAD,CAA1B,CALkF,CAMlF;AACD,CAPmD,CAA7C;AASP,IAAI,CAAC,WAAL,GAAmB,MAAnB","sourcesContent":["import * as React from 'react';\nimport { useLink_unstable } from './useLink';\nimport { useLinkStyles_unstable } from './useLinkStyles';\nimport { renderLink_unstable } from './renderLink';\nimport type { LinkProps } from './Link.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * A Link is a reference to data that a user can follow by clicking or tapping it.\n */\nexport const Link: ForwardRefComponent<LinkProps> = React.forwardRef((props, ref) => {\n const state = useLink_unstable(props, ref);\n\n useLinkStyles_unstable(state);\n\n return renderLink_unstable(state);\n // Work around some small mismatches in inferred types which don't matter in practice\n}) as ForwardRefComponent<LinkProps>;\n\nLink.displayName = 'Link';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/Link/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,gBAAT,QAAiC,WAAjC;AACA,SAAS,sBAAT,QAAuC,iBAAvC;AACA,SAAS,mBAAT,QAAoC,cAApC;AAIA;;AAEG;;AACH,OAAO,MAAM,IAAI,gBAAmC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EAClF,MAAM,KAAK,GAAG,gBAAgB,CAAC,KAAD,EAAQ,GAAR,CAA9B;EAEA,sBAAsB,CAAC,KAAD,CAAtB;EAEA,OAAO,mBAAmB,CAAC,KAAD,CAA1B,CALkF,CAMlF;AACD,CAPmD,CAA7C;AASP,IAAI,CAAC,WAAL,GAAmB,MAAnB","sourcesContent":["import * as React from 'react';\nimport { useLink_unstable } from './useLink';\nimport { useLinkStyles_unstable } from './useLinkStyles';\nimport { renderLink_unstable } from './renderLink';\nimport type { LinkProps } from './Link.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * A Link is a reference to data that a user can follow by clicking or tapping it.\n */\nexport const Link: ForwardRefComponent<LinkProps> = React.forwardRef((props, ref) => {\n const state = useLink_unstable(props, ref);\n\n useLinkStyles_unstable(state);\n\n return renderLink_unstable(state);\n // Work around some small mismatches in inferred types which don't matter in practice\n}) as ForwardRefComponent<LinkProps>;\n\nLink.displayName = 'Link';\n"],"sourceRoot":"../src/"}