@fluentui/react-tooltip 9.0.0-rc.1 → 9.0.0-rc.5

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.json CHANGED
@@ -2,7 +2,142 @@
2
2
  "name": "@fluentui/react-tooltip",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 10 Feb 2022 08:43:43 GMT",
5
+ "date": "Fri, 04 Mar 2022 05:15:46 GMT",
6
+ "tag": "@fluentui/react-tooltip_v9.0.0-rc.5",
7
+ "version": "9.0.0-rc.5",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "dzearing@microsoft.com",
12
+ "package": "@fluentui/react-tooltip",
13
+ "commit": "f2f1c0ea948cc3517eeb442c05433eb0918def29",
14
+ "comment": "Adding explicit export maps on all consumer packages for FUIR 8 and 9."
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui/react-tooltip",
19
+ "comment": "Bump @fluentui/react-portal to v9.0.0-rc.5",
20
+ "commit": "1494f0b620f6d5aae7f0aef33fc9e8f6eb7f8749"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-tooltip",
25
+ "comment": "Bump @fluentui/react-positioning to v9.0.0-rc.5",
26
+ "commit": "1494f0b620f6d5aae7f0aef33fc9e8f6eb7f8749"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-tooltip",
31
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.0-rc.4",
32
+ "commit": "1494f0b620f6d5aae7f0aef33fc9e8f6eb7f8749"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-tooltip",
37
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.4",
38
+ "commit": "1494f0b620f6d5aae7f0aef33fc9e8f6eb7f8749"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui/react-tooltip",
43
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.5",
44
+ "commit": "1494f0b620f6d5aae7f0aef33fc9e8f6eb7f8749"
45
+ }
46
+ ]
47
+ }
48
+ },
49
+ {
50
+ "date": "Tue, 01 Mar 2022 02:17:40 GMT",
51
+ "tag": "@fluentui/react-tooltip_v9.0.0-rc.4",
52
+ "version": "9.0.0-rc.4",
53
+ "comments": {
54
+ "prerelease": [
55
+ {
56
+ "author": "beachball",
57
+ "package": "@fluentui/react-tooltip",
58
+ "comment": "Bump @fluentui/react-portal to v9.0.0-rc.4",
59
+ "commit": "0bc1e755543ed69443d5d03e1976c630583242f7"
60
+ },
61
+ {
62
+ "author": "beachball",
63
+ "package": "@fluentui/react-tooltip",
64
+ "comment": "Bump @fluentui/react-positioning to v9.0.0-rc.4",
65
+ "commit": "0bc1e755543ed69443d5d03e1976c630583242f7"
66
+ },
67
+ {
68
+ "author": "beachball",
69
+ "package": "@fluentui/react-tooltip",
70
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.4",
71
+ "commit": "0bc1e755543ed69443d5d03e1976c630583242f7"
72
+ }
73
+ ]
74
+ }
75
+ },
76
+ {
77
+ "date": "Fri, 18 Feb 2022 13:35:36 GMT",
78
+ "tag": "@fluentui/react-tooltip_v9.0.0-rc.3",
79
+ "version": "9.0.0-rc.3",
80
+ "comments": {
81
+ "prerelease": [
82
+ {
83
+ "author": "behowell@microsoft.com",
84
+ "package": "@fluentui/react-tooltip",
85
+ "commit": "50ae56ec346d762d66b3d74ed1127943ffda344f",
86
+ "comment": "Update documentation comments"
87
+ },
88
+ {
89
+ "author": "lingfangao@hotmail.com",
90
+ "package": "@fluentui/react-tooltip",
91
+ "commit": "1aa9e691fcccd9a64168cea7941c0f1e71fa1d14",
92
+ "comment": "fix: Source maps contain original source code"
93
+ },
94
+ {
95
+ "author": "olfedias@microsoft.com",
96
+ "package": "@fluentui/react-tooltip",
97
+ "commit": "2bf88fea066244bc078912bb6e45edb960f3b866",
98
+ "comment": "update trigger implementation to be consistent"
99
+ },
100
+ {
101
+ "author": "beachball",
102
+ "package": "@fluentui/react-tooltip",
103
+ "comment": "Bump @fluentui/react-portal to v9.0.0-rc.3",
104
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
105
+ },
106
+ {
107
+ "author": "beachball",
108
+ "package": "@fluentui/react-tooltip",
109
+ "comment": "Bump @fluentui/react-positioning to v9.0.0-rc.3",
110
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
111
+ },
112
+ {
113
+ "author": "beachball",
114
+ "package": "@fluentui/react-tooltip",
115
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.0-rc.3",
116
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
117
+ },
118
+ {
119
+ "author": "beachball",
120
+ "package": "@fluentui/react-tooltip",
121
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.3",
122
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
123
+ },
124
+ {
125
+ "author": "beachball",
126
+ "package": "@fluentui/react-tooltip",
127
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.3",
128
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
129
+ },
130
+ {
131
+ "author": "beachball",
132
+ "package": "@fluentui/react-tooltip",
133
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.3",
134
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
135
+ }
136
+ ]
137
+ }
138
+ },
139
+ {
140
+ "date": "Thu, 10 Feb 2022 08:50:30 GMT",
6
141
  "tag": "@fluentui/react-tooltip_v9.0.0-rc.1",
7
142
  "version": "9.0.0-rc.1",
8
143
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,54 @@
1
1
  # Change Log - @fluentui/react-tooltip
2
2
 
3
- This log was last generated on Thu, 10 Feb 2022 08:43:43 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 04 Mar 2022 05:15:46 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.0-rc.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v9.0.0-rc.5)
8
+
9
+ Fri, 04 Mar 2022 05:15:46 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tooltip_v9.0.0-rc.4..@fluentui/react-tooltip_v9.0.0-rc.5)
11
+
12
+ ### Changes
13
+
14
+ - Adding explicit export maps on all consumer packages for FUIR 8 and 9. ([PR #21508](https://github.com/microsoft/fluentui/pull/21508) by dzearing@microsoft.com)
15
+ - Bump @fluentui/react-portal to v9.0.0-rc.5 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
16
+ - Bump @fluentui/react-positioning to v9.0.0-rc.5 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
17
+ - Bump @fluentui/react-shared-contexts to v9.0.0-rc.4 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
18
+ - Bump @fluentui/react-theme to v9.0.0-rc.4 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
19
+ - Bump @fluentui/react-utilities to v9.0.0-rc.5 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
20
+
21
+ ## [9.0.0-rc.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v9.0.0-rc.4)
22
+
23
+ Tue, 01 Mar 2022 02:17:40 GMT
24
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tooltip_v9.0.0-rc.3..@fluentui/react-tooltip_v9.0.0-rc.4)
25
+
26
+ ### Changes
27
+
28
+ - Bump @fluentui/react-portal to v9.0.0-rc.4 ([PR #21884](https://github.com/microsoft/fluentui/pull/21884) by beachball)
29
+ - Bump @fluentui/react-positioning to v9.0.0-rc.4 ([PR #21884](https://github.com/microsoft/fluentui/pull/21884) by beachball)
30
+ - Bump @fluentui/react-utilities to v9.0.0-rc.4 ([PR #21884](https://github.com/microsoft/fluentui/pull/21884) by beachball)
31
+
32
+ ## [9.0.0-rc.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v9.0.0-rc.3)
33
+
34
+ Fri, 18 Feb 2022 13:35:36 GMT
35
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tooltip_v9.0.0-rc.1..@fluentui/react-tooltip_v9.0.0-rc.3)
36
+
37
+ ### Changes
38
+
39
+ - Update documentation comments ([PR #21736](https://github.com/microsoft/fluentui/pull/21736) by behowell@microsoft.com)
40
+ - fix: Source maps contain original source code ([PR #21690](https://github.com/microsoft/fluentui/pull/21690) by lingfangao@hotmail.com)
41
+ - update trigger implementation to be consistent ([PR #21626](https://github.com/microsoft/fluentui/pull/21626) by olfedias@microsoft.com)
42
+ - Bump @fluentui/react-portal to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
43
+ - Bump @fluentui/react-positioning to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
44
+ - Bump @fluentui/react-shared-contexts to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
45
+ - Bump @fluentui/react-theme to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
46
+ - Bump @fluentui/react-utilities to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
47
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
48
+
7
49
  ## [9.0.0-rc.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v9.0.0-rc.1)
8
50
 
9
- Thu, 10 Feb 2022 08:43:43 GMT
51
+ Thu, 10 Feb 2022 08:50:30 GMT
10
52
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tooltip_v9.0.0-beta.5..@fluentui/react-tooltip_v9.0.0-rc.1)
11
53
 
12
54
  ### Changes
package/MIGRATION.md CHANGED
@@ -6,55 +6,63 @@ This Migration guide is a work in progress and is not yet ready for use.
6
6
 
7
7
  ## Migration from v8
8
8
 
9
- The converged API does not support many of the custom features of the v8 tooltip. We may need to revisit and add additional features to the converged Tooltip if needed.
9
+ TooltipHost is replaced by Tooltip itself, as the wrapper around the element that should receive a tooltip.
10
10
 
11
11
  - `Tooltip`
12
- - `calloutProps` => Not supported. The arrow's visibility can be controlled using `noArrow`.
13
- - `componentRef` => `componentRef`
14
- - `delay` => `showDelay` on the TooltipTrigger
15
- - `directionalHint` => `position` and `align`
16
- - `topLeftEdge` => `position: 'above', align: 'start'`
17
- - `topCenter` => `position: 'above'`
18
- - `topRightEdge` => `position: 'above', align: 'end'`
12
+ - `calloutProps`
13
+ - `isBeakVisible` => `withArrow`
14
+ - `beakWidth` => Not supported.
15
+ - `gapSpace` => Not supported.
16
+ - `doNotLayer` => Not supported. Tooltips are always layered by rendering in a Portal.
17
+ - `setInitialFocus` => Not supported. Tooltips can't be focused, by design.
18
+ - `componentRef` => Not supported. Tooltips can be controlled declaratively with props like `visible`, instead of using an imperative API like `componentRef`.
19
+ - `delay` => `showDelay`
20
+ - `directionalHint` => `positioning`
21
+ - `topLeftEdge` => `positioning="above-start"`
22
+ - `topCenter` => `positioning="above"`
23
+ - `topRightEdge` => `positioning="above-end"`
19
24
  - `topAutoEdge` => Not supported
20
- - `bottomLeftEdge` => `position: 'below', align: 'start'`
21
- - `bottomCenter` => `position: 'below'`
22
- - `bottomRightEdge` => `position: 'below', align: 'end'`
25
+ - `bottomLeftEdge` => `positioning="below-start"`
26
+ - `bottomCenter` => `positioning="below"`
27
+ - `bottomRightEdge` => `positioning="below-end"`
23
28
  - `bottomAutoEdge` => Not supported
24
- - `leftTopEdge` => `position: 'before', align: 'top'`
25
- - `leftCenter` => `position: 'before'`
26
- - `leftBottomEdge` => `position: 'before', align: 'bottom'`
27
- - `rightTopEdge` => `position: 'after', align: 'top'`
28
- - `rightCenter` => `position: 'after'`
29
- - `rightBottomEdge` => `position: 'after', align: 'bottom'`
30
- - `directionalHintForRTL` => Automatic based on whether the element is in an RTL context
31
- - `maxWidth` => Add styling to the Tooltip: `tooltip={{ style: { maxWidth: ... }, children: 'Tooltip Content' }}`
32
- - `onRenderContent` => Set the Tooltip's `children` to a custom render function
33
- - `TooltipHost` => `TooltipTrigger`
34
- - `calloutProps` => Not supported
29
+ - `leftTopEdge` => `positioning="before-top"`
30
+ - `leftCenter` => `positioning="before"`
31
+ - `leftBottomEdge` => `positioning="before-bottom"`
32
+ - `rightTopEdge` => `positioning="after-top"`
33
+ - `rightCenter` => `positioning="after"`
34
+ - `rightBottomEdge` => `positioning="after-bottom"`
35
+ - `directionalHintForRTL` => Automatic based on whether the element is in an RTL context according to `FluentProvider`.
36
+ - `maxWidth` => Supported only through CSS styling of the `content` slot.
37
+ - `onRenderContent` => Set the `content` slot to a custom render function.
38
+ - `TooltipHost` => The tooltip itself is the "host".
35
39
  - `closeDelay` => `hideDelay`
36
- - `hostClassName` => Not needed because there is no element rendered by TooltipTrigger
37
- - `onTooltipToggle` => Not supported
38
- - `overflowMode` => `onlyIfTruncated`
39
- - `TooltipOverflowMode.self` => `onlyIfTruncated="true"`
40
- - `TooltipOverflowMode.parent` => `onlyIfTruncated="true"` and set `targetRef` to the parent element
40
+ - `hostClassName` => Not needed because there is no element rendered inline by Tooltip
41
+ - `onTooltipToggle` => `onVisibleChange`
42
+ - `overflowMode` => Not supported. If this behavior is needed, the tooltip's visibility can be controlled using the `visible` prop and `onVisibleChange` event.
41
43
 
42
44
  ## Migration from v0
43
45
 
44
- - `Tooltip` => `TooltipTrigger`
45
- - `content="..."` => `tooltip="..."`
46
- - `defaultOpen` => Not supported
47
- - `flipBoundary` => Not supported
48
- - `mountNode` => Unknown
46
+ The v9 Tooltip swaps the meaning of children between content and trigger. In v0, Tooltip's children is the tooltip content, and its trigger is a prop. In v9, that is swapped: Tooltip's children is the trigger, and its content is a prop.
47
+
48
+ - `Tooltip`
49
+ - children => `content`
50
+ - `trigger` => children
51
+ - `defaultOpen` => Not supported. The tooltip's visibility can be controlled using the `visible` prop and `onVisibleChange` event.
52
+ - `mountNode` => Not supported
53
+ - `open` => `visible`
54
+ - `onOpenChange` => `onVisibleChange`
55
+ - `pointing` => `withArrow`
56
+ - `mouseEnterDelay` => `showDelay`
49
57
  - `mouseLeaveDelay` => `hideDelay`
50
- - `offset` => `offset`
51
- - `onOpenChange` => Not supported
52
- - `open` => Not supported
53
- - `overflowBoundary` => Not supported
54
- - `pointing={false}` => `noArrow={true}`
55
- - `popperRef` => Not supported
56
- - `position` => `position`
57
- - `align` => `align`
58
- - `positionFixed` => Not supported
59
- - `target` => `targetRef`
60
- - `trigger` => The child of the `TooltipTrigger`
58
+ - `subtle={true}` = `appearance="normal"` (default)
59
+ - `subtle={false}` => `appearance="inverted"`
60
+ - Positioning props are now attributes of the `positioning` prop:
61
+ - `flipBoundary` => `positioning.flipBoundary`
62
+ - `offset` => `positioning.offset`
63
+ - `overflowBoundary` => `positioning.overflowBoundary`
64
+ - `popperRef` => `positioning.popperRef`
65
+ - `position` => `positioning.position`
66
+ - `align` => `positioning.align`
67
+ - `positionFixed` => `positioning.positionFixed`
68
+ - `target` => `positioning.target`