@fluentui/react-link 9.0.0-rc.9 → 9.0.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.
Files changed (47) hide show
  1. package/CHANGELOG.json +317 -1
  2. package/CHANGELOG.md +104 -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,323 @@
2
2
  "name": "@fluentui/react-link",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 05 May 2022 18:24:37 GMT",
5
+ "date": "Thu, 14 Jul 2022 17:03:29 GMT",
6
+ "tag": "@fluentui/react-link_v9.0.2",
7
+ "version": "9.0.2",
8
+ "comments": {
9
+ "none": [
10
+ {
11
+ "author": "Humberto.Morimoto@microsoft.com",
12
+ "package": "@fluentui/react-link",
13
+ "commit": "422636fffd66758c1a6dd617063582d902b61927",
14
+ "comment": "docs: Replacing https://aka.ms/fluentui-storybook with https://react.fluentui.dev/ to point to the official documentation site."
15
+ }
16
+ ],
17
+ "patch": [
18
+ {
19
+ "author": "beachball",
20
+ "package": "@fluentui/react-link",
21
+ "comment": "Bump @fluentui/react-tabster to v9.0.2",
22
+ "commit": "fd9308f35ec9b2c7f7fdbfce62f9a94ca00d6536"
23
+ },
24
+ {
25
+ "author": "beachball",
26
+ "package": "@fluentui/react-link",
27
+ "comment": "Bump @fluentui/react-utilities to v9.0.1-0",
28
+ "commit": "fd9308f35ec9b2c7f7fdbfce62f9a94ca00d6536"
29
+ },
30
+ {
31
+ "author": "beachball",
32
+ "package": "@fluentui/react-link",
33
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.11",
34
+ "commit": "fd9308f35ec9b2c7f7fdbfce62f9a94ca00d6536"
35
+ }
36
+ ]
37
+ }
38
+ },
39
+ {
40
+ "date": "Tue, 28 Jun 2022 17:39:49 GMT",
41
+ "tag": "@fluentui/react-link_v9.0.1",
42
+ "version": "9.0.1",
43
+ "comments": {
44
+ "patch": [
45
+ {
46
+ "author": "lingfangao@hotmail.com",
47
+ "package": "@fluentui/react-link",
48
+ "commit": "3deda1fbbfb6ac2b1ad150d4dc6343f1f7fda85b",
49
+ "comment": "fix: Use caret dependency range for Griffel"
50
+ },
51
+ {
52
+ "author": "beachball",
53
+ "package": "@fluentui/react-link",
54
+ "comment": "Bump @fluentui/react-tabster to v9.0.1",
55
+ "commit": "3deda1fbbfb6ac2b1ad150d4dc6343f1f7fda85b"
56
+ },
57
+ {
58
+ "author": "beachball",
59
+ "package": "@fluentui/react-link",
60
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.10",
61
+ "commit": "3deda1fbbfb6ac2b1ad150d4dc6343f1f7fda85b"
62
+ }
63
+ ]
64
+ }
65
+ },
66
+ {
67
+ "date": "Tue, 28 Jun 2022 15:13:40 GMT",
68
+ "tag": "@fluentui/react-link_v9.0.0",
69
+ "version": "9.0.0",
70
+ "comments": {
71
+ "patch": [
72
+ {
73
+ "author": "lingfangao@hotmail.com",
74
+ "package": "@fluentui/react-link",
75
+ "commit": "c7b1348bdad7aa883c29bfbc96ef2a32e6ebc7dd",
76
+ "comment": "feat: Initial 9.0.0 release"
77
+ },
78
+ {
79
+ "author": "beachball",
80
+ "package": "@fluentui/react-link",
81
+ "comment": "Bump @fluentui/keyboard-keys to v9.0.0",
82
+ "commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
83
+ },
84
+ {
85
+ "author": "beachball",
86
+ "package": "@fluentui/react-link",
87
+ "comment": "Bump @fluentui/react-tabster to v9.0.0",
88
+ "commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
89
+ },
90
+ {
91
+ "author": "beachball",
92
+ "package": "@fluentui/react-link",
93
+ "comment": "Bump @fluentui/react-theme to v9.0.0",
94
+ "commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
95
+ },
96
+ {
97
+ "author": "beachball",
98
+ "package": "@fluentui/react-link",
99
+ "comment": "Bump @fluentui/react-utilities to v9.0.0",
100
+ "commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
101
+ },
102
+ {
103
+ "author": "beachball",
104
+ "package": "@fluentui/react-link",
105
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.9",
106
+ "commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
107
+ }
108
+ ],
109
+ "prerelease": [
110
+ {
111
+ "author": "lingfangao@hotmail.com",
112
+ "package": "@fluentui/react-link",
113
+ "commit": "675acea49c97f10837ddee9b8c4350ca27750125",
114
+ "comment": "Bump Griffel dependencies"
115
+ },
116
+ {
117
+ "author": "Humberto.Morimoto@microsoft.com",
118
+ "package": "@fluentui/react-link",
119
+ "commit": "bd64779b7d68775260b587f10265d64b916f6140",
120
+ "comment": "Fixing mention of SpinButton in README."
121
+ },
122
+ {
123
+ "author": "Humberto.Morimoto@microsoft.com",
124
+ "package": "@fluentui/react-link",
125
+ "commit": "ce6fe7e35398b3ca4e11a26b777fd9ba46529c72",
126
+ "comment": "README and migration guide cleanup."
127
+ },
128
+ {
129
+ "author": "lingfangao@hotmail.com",
130
+ "package": "@fluentui/react-link",
131
+ "commit": "e0aabd850b15adf9c151ebd4e332f7c50ad6cfdf",
132
+ "comment": "Update 9.0.0-rc dependencies to use caret range"
133
+ }
134
+ ],
135
+ "none": [
136
+ {
137
+ "author": "tristan.watanabe@gmail.com",
138
+ "package": "@fluentui/react-link",
139
+ "commit": "c6d03231b254b58e8de042800129907a970bc6f8",
140
+ "comment": "chore: Move Link stories to folder with index entry."
141
+ }
142
+ ]
143
+ }
144
+ },
145
+ {
146
+ "date": "Thu, 23 Jun 2022 14:25:31 GMT",
147
+ "tag": "@fluentui/react-link_v9.0.0-rc.14",
148
+ "version": "9.0.0-rc.14",
149
+ "comments": {
150
+ "prerelease": [
151
+ {
152
+ "author": "beachball",
153
+ "package": "@fluentui/react-link",
154
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.14",
155
+ "commit": "b00790b7a0ea1473d8c3cc49c7ca0088002957ed"
156
+ },
157
+ {
158
+ "author": "beachball",
159
+ "package": "@fluentui/react-link",
160
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.10",
161
+ "commit": "b00790b7a0ea1473d8c3cc49c7ca0088002957ed"
162
+ }
163
+ ]
164
+ }
165
+ },
166
+ {
167
+ "date": "Tue, 31 May 2022 21:28:40 GMT",
168
+ "tag": "@fluentui/react-link_v9.0.0-rc.13",
169
+ "version": "9.0.0-rc.13",
170
+ "comments": {
171
+ "prerelease": [
172
+ {
173
+ "author": "olfedias@microsoft.com",
174
+ "package": "@fluentui/react-link",
175
+ "commit": "0a5e9fa77a72eecafdd07034ccdc0b95fd49877c",
176
+ "comment": "chore: Update Griffel to latest version"
177
+ },
178
+ {
179
+ "author": "beachball",
180
+ "package": "@fluentui/react-link",
181
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.13",
182
+ "commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
183
+ },
184
+ {
185
+ "author": "beachball",
186
+ "package": "@fluentui/react-link",
187
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.10",
188
+ "commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
189
+ },
190
+ {
191
+ "author": "beachball",
192
+ "package": "@fluentui/react-link",
193
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.8",
194
+ "commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
195
+ }
196
+ ]
197
+ }
198
+ },
199
+ {
200
+ "date": "Thu, 26 May 2022 21:01:26 GMT",
201
+ "tag": "@fluentui/react-link_v9.0.0-rc.12",
202
+ "version": "9.0.0-rc.12",
203
+ "comments": {
204
+ "none": [
205
+ {
206
+ "author": "olfedias@microsoft.com",
207
+ "package": "@fluentui/react-link",
208
+ "commit": "e0417c44ab690bda8923df041a880b6085f48e2d",
209
+ "comment": "fix missing dot, create missing files"
210
+ }
211
+ ],
212
+ "prerelease": [
213
+ {
214
+ "author": "beachball",
215
+ "package": "@fluentui/react-link",
216
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.12",
217
+ "commit": "3cf55ce998048554bf6a550de44403843ea8ede0"
218
+ }
219
+ ]
220
+ }
221
+ },
222
+ {
223
+ "date": "Mon, 23 May 2022 18:56:45 GMT",
224
+ "tag": "@fluentui/react-link_v9.0.0-rc.11",
225
+ "version": "9.0.0-rc.11",
226
+ "comments": {
227
+ "prerelease": [
228
+ {
229
+ "author": "esteban.230@hotmail.com",
230
+ "package": "@fluentui/react-link",
231
+ "commit": "5ed22515a7542b432ed694f22606ac3718d501cb",
232
+ "comment": "Removing <componentName>ClassName exports."
233
+ },
234
+ {
235
+ "author": "beachball",
236
+ "package": "@fluentui/react-link",
237
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.11",
238
+ "commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
239
+ },
240
+ {
241
+ "author": "beachball",
242
+ "package": "@fluentui/react-link",
243
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.9",
244
+ "commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
245
+ },
246
+ {
247
+ "author": "beachball",
248
+ "package": "@fluentui/react-link",
249
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.7",
250
+ "commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
251
+ }
252
+ ]
253
+ }
254
+ },
255
+ {
256
+ "date": "Mon, 23 May 2022 12:14:21 GMT",
257
+ "tag": "@fluentui/react-link_v9.0.0-rc.10",
258
+ "version": "9.0.0-rc.10",
259
+ "comments": {
260
+ "prerelease": [
261
+ {
262
+ "author": "olfedias@microsoft.com",
263
+ "package": "@fluentui/react-link",
264
+ "commit": "f120fe9160ad7311a87af0cfacd8d2fb26275e34",
265
+ "comment": "chore: Update Griffel to latest version"
266
+ },
267
+ {
268
+ "author": "olfedias@microsoft.com",
269
+ "package": "@fluentui/react-link",
270
+ "commit": "60804cec07a495b8a5d1fc66338bf0443b212144",
271
+ "comment": "chore: Update Griffel to latest version"
272
+ },
273
+ {
274
+ "author": "martinhochel@microsoft.com",
275
+ "package": "@fluentui/react-link",
276
+ "commit": "692e6916819ee07a1dfb0d99ac2ffbdd0d75252f",
277
+ "comment": "feat: ship rolluped only dts"
278
+ },
279
+ {
280
+ "author": "Humberto.Morimoto@microsoft.com",
281
+ "package": "@fluentui/react-link",
282
+ "commit": "6462df4b4bf19411dd60e788c3316086aa685d8e",
283
+ "comment": "Removing LinkCommon type."
284
+ },
285
+ {
286
+ "author": "beachball",
287
+ "package": "@fluentui/react-link",
288
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.10",
289
+ "commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
290
+ },
291
+ {
292
+ "author": "beachball",
293
+ "package": "@fluentui/react-link",
294
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.8",
295
+ "commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
296
+ },
297
+ {
298
+ "author": "beachball",
299
+ "package": "@fluentui/react-link",
300
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.9",
301
+ "commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
302
+ },
303
+ {
304
+ "author": "beachball",
305
+ "package": "@fluentui/react-link",
306
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.6",
307
+ "commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
308
+ }
309
+ ],
310
+ "none": [
311
+ {
312
+ "author": "Humberto.Morimoto@microsoft.com",
313
+ "package": "@fluentui/react-link",
314
+ "commit": "8639df27de59d5a48e0e46c07fe7ac9342cfc98a",
315
+ "comment": "Improving README and updating spec and migration guide."
316
+ }
317
+ ]
318
+ }
319
+ },
320
+ {
321
+ "date": "Thu, 05 May 2022 18:26:30 GMT",
6
322
  "tag": "@fluentui/react-link_v9.0.0-rc.9",
7
323
  "version": "9.0.0-rc.9",
8
324
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,114 @@
1
1
  # Change Log - @fluentui/react-link
2
2
 
3
- This log was last generated on Thu, 05 May 2022 18:24:37 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 14 Jul 2022 17:03:29 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-link_v9.0.2)
8
+
9
+ Thu, 14 Jul 2022 17:03:29 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-link_v9.0.1..@fluentui/react-link_v9.0.2)
11
+
12
+ ### Patches
13
+
14
+ - Bump @fluentui/react-tabster to v9.0.2 ([PR #23909](https://github.com/microsoft/fluentui/pull/23909) by beachball)
15
+ - Bump @fluentui/react-utilities to v9.0.1-0 ([PR #23909](https://github.com/microsoft/fluentui/pull/23909) by beachball)
16
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.11 ([PR #23909](https://github.com/microsoft/fluentui/pull/23909) by beachball)
17
+
18
+ ## [9.0.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-link_v9.0.1)
19
+
20
+ Tue, 28 Jun 2022 17:39:49 GMT
21
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-link_v9.0.0..@fluentui/react-link_v9.0.1)
22
+
23
+ ### Patches
24
+
25
+ - fix: Use caret dependency range for Griffel ([PR #23754](https://github.com/microsoft/fluentui/pull/23754) by lingfangao@hotmail.com)
26
+ - Bump @fluentui/react-tabster to v9.0.1 ([PR #23754](https://github.com/microsoft/fluentui/pull/23754) by beachball)
27
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.10 ([PR #23754](https://github.com/microsoft/fluentui/pull/23754) by beachball)
28
+
29
+ ## [9.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-link_v9.0.0)
30
+
31
+ Tue, 28 Jun 2022 15:13:40 GMT
32
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-link_v9.0.0-rc.14..@fluentui/react-link_v9.0.0)
33
+
34
+ ### Patches
35
+
36
+ - feat: Initial 9.0.0 release ([PR #23733](https://github.com/microsoft/fluentui/pull/23733) by lingfangao@hotmail.com)
37
+ - Bump @fluentui/keyboard-keys to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
38
+ - Bump @fluentui/react-tabster to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
39
+ - Bump @fluentui/react-theme to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
40
+ - Bump @fluentui/react-utilities to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
41
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.9 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
42
+
43
+ ### Changes
44
+
45
+ - Bump Griffel dependencies ([PR #23688](https://github.com/microsoft/fluentui/pull/23688) by lingfangao@hotmail.com)
46
+ - Fixing mention of SpinButton in README. ([PR #23424](https://github.com/microsoft/fluentui/pull/23424) by Humberto.Morimoto@microsoft.com)
47
+ - README and migration guide cleanup. ([PR #23395](https://github.com/microsoft/fluentui/pull/23395) by Humberto.Morimoto@microsoft.com)
48
+ - Update 9.0.0-rc dependencies to use caret range ([PR #23732](https://github.com/microsoft/fluentui/pull/23732) by lingfangao@hotmail.com)
49
+
50
+ ## [9.0.0-rc.14](https://github.com/microsoft/fluentui/tree/@fluentui/react-link_v9.0.0-rc.14)
51
+
52
+ Thu, 23 Jun 2022 14:25:31 GMT
53
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-link_v9.0.0-rc.13..@fluentui/react-link_v9.0.0-rc.14)
54
+
55
+ ### Changes
56
+
57
+ - Bump @fluentui/react-tabster to v9.0.0-rc.14 ([PR #23608](https://github.com/microsoft/fluentui/pull/23608) by beachball)
58
+ - Bump @fluentui/react-theme to v9.0.0-rc.10 ([PR #23608](https://github.com/microsoft/fluentui/pull/23608) by beachball)
59
+
60
+ ## [9.0.0-rc.13](https://github.com/microsoft/fluentui/tree/@fluentui/react-link_v9.0.0-rc.13)
61
+
62
+ Tue, 31 May 2022 21:28:40 GMT
63
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-link_v9.0.0-rc.12..@fluentui/react-link_v9.0.0-rc.13)
64
+
65
+ ### Changes
66
+
67
+ - chore: Update Griffel to latest version ([PR #23275](https://github.com/microsoft/fluentui/pull/23275) by olfedias@microsoft.com)
68
+ - Bump @fluentui/react-tabster to v9.0.0-rc.13 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
69
+ - Bump @fluentui/react-utilities to v9.0.0-rc.10 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
70
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.8 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
71
+
72
+ ## [9.0.0-rc.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-link_v9.0.0-rc.12)
73
+
74
+ Thu, 26 May 2022 21:01:26 GMT
75
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-link_v9.0.0-rc.11..@fluentui/react-link_v9.0.0-rc.12)
76
+
77
+ ### Changes
78
+
79
+ - Bump @fluentui/react-tabster to v9.0.0-rc.12 ([PR #23267](https://github.com/microsoft/fluentui/pull/23267) by beachball)
80
+
81
+ ## [9.0.0-rc.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-link_v9.0.0-rc.11)
82
+
83
+ Mon, 23 May 2022 18:56:45 GMT
84
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-link_v9.0.0-rc.10..@fluentui/react-link_v9.0.0-rc.11)
85
+
86
+ ### Changes
87
+
88
+ - Removing <componentName>ClassName exports. ([PR #23092](https://github.com/microsoft/fluentui/pull/23092) by esteban.230@hotmail.com)
89
+ - Bump @fluentui/react-tabster to v9.0.0-rc.11 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
90
+ - Bump @fluentui/react-theme to v9.0.0-rc.9 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
91
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.7 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
92
+
93
+ ## [9.0.0-rc.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-link_v9.0.0-rc.10)
94
+
95
+ Mon, 23 May 2022 12:14:21 GMT
96
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-link_v9.0.0-rc.9..@fluentui/react-link_v9.0.0-rc.10)
97
+
98
+ ### Changes
99
+
100
+ - chore: Update Griffel to latest version ([PR #22894](https://github.com/microsoft/fluentui/pull/22894) by olfedias@microsoft.com)
101
+ - chore: Update Griffel to latest version ([PR #23029](https://github.com/microsoft/fluentui/pull/23029) by olfedias@microsoft.com)
102
+ - feat: ship rolluped only dts ([PR #22793](https://github.com/microsoft/fluentui/pull/22793) by martinhochel@microsoft.com)
103
+ - Removing LinkCommon type. ([PR #22942](https://github.com/microsoft/fluentui/pull/22942) by Humberto.Morimoto@microsoft.com)
104
+ - Bump @fluentui/react-tabster to v9.0.0-rc.10 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
105
+ - Bump @fluentui/react-theme to v9.0.0-rc.8 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
106
+ - Bump @fluentui/react-utilities to v9.0.0-rc.9 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
107
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.6 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
108
+
7
109
  ## [9.0.0-rc.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-link_v9.0.0-rc.9)
8
110
 
9
- Thu, 05 May 2022 18:24:37 GMT
111
+ Thu, 05 May 2022 18:26:30 GMT
10
112
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-link_v9.0.0-rc.8..@fluentui/react-link_v9.0.0-rc.9)
11
113
 
12
114
  ### 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://react.fluentui.dev/)**
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://react.fluentui.dev/) 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/"}