@fluentui/react-menu 9.0.0-beta.4 → 9.0.0-beta.5
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +94 -11
- package/CHANGELOG.md +31 -12
- package/lib/components/MenuPopover/useMenuPopoverStyles.js +2 -2
- package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +2 -2
- package/package.json +15 -14
- package/lib/common/isConformant.d.ts +0 -4
- package/lib/common/isConformant.js +0 -12
- package/lib/common/isConformant.js.map +0 -1
- package/lib/common/mockUseMenuContext.d.ts +0 -7
- package/lib/common/mockUseMenuContext.js +0 -29
- package/lib/common/mockUseMenuContext.js.map +0 -1
- package/lib-commonjs/common/isConformant.d.ts +0 -4
- package/lib-commonjs/common/isConformant.js +0 -23
- package/lib-commonjs/common/isConformant.js.map +0 -1
- package/lib-commonjs/common/mockUseMenuContext.d.ts +0 -7
- package/lib-commonjs/common/mockUseMenuContext.js +0 -39
- package/lib-commonjs/common/mockUseMenuContext.js.map +0 -1
package/CHANGELOG.json
CHANGED
@@ -2,7 +2,90 @@
|
|
2
2
|
"name": "@fluentui/react-menu",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
5
|
+
"date": "Thu, 25 Nov 2021 08:31:32 GMT",
|
6
|
+
"tag": "@fluentui/react-menu_v9.0.0-beta.5",
|
7
|
+
"version": "9.0.0-beta.5",
|
8
|
+
"comments": {
|
9
|
+
"none": [
|
10
|
+
{
|
11
|
+
"author": "lingfangao@hotmail.com",
|
12
|
+
"package": "@fluentui/react-menu",
|
13
|
+
"commit": "8a141d14f3a14de2e1c4691dad908622f310a9d1",
|
14
|
+
"comment": "Migrate package to use solution tsconfigs"
|
15
|
+
}
|
16
|
+
],
|
17
|
+
"prerelease": [
|
18
|
+
{
|
19
|
+
"author": "ololubek@microsoft.com",
|
20
|
+
"package": "@fluentui/react-menu",
|
21
|
+
"commit": "ecab13cfd6ac22657020db8f86eb89f952b0f953",
|
22
|
+
"comment": "update react-icons dependency"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"author": "beachball",
|
26
|
+
"package": "@fluentui/react-menu",
|
27
|
+
"comment": "Bump @fluentui/react-context-selector to v9.0.0-beta.4",
|
28
|
+
"commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"author": "beachball",
|
32
|
+
"package": "@fluentui/react-menu",
|
33
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
|
34
|
+
"commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
|
35
|
+
},
|
36
|
+
{
|
37
|
+
"author": "beachball",
|
38
|
+
"package": "@fluentui/react-menu",
|
39
|
+
"comment": "Bump @fluentui/react-portal to v9.0.0-beta.5",
|
40
|
+
"commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"author": "beachball",
|
44
|
+
"package": "@fluentui/react-menu",
|
45
|
+
"comment": "Bump @fluentui/react-positioning to v9.0.0-beta.4",
|
46
|
+
"commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"author": "beachball",
|
50
|
+
"package": "@fluentui/react-menu",
|
51
|
+
"comment": "Bump @fluentui/react-shared-contexts to v9.0.0-beta.4",
|
52
|
+
"commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"author": "beachball",
|
56
|
+
"package": "@fluentui/react-menu",
|
57
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-beta.5",
|
58
|
+
"commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"author": "beachball",
|
62
|
+
"package": "@fluentui/react-menu",
|
63
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
|
64
|
+
"commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"author": "beachball",
|
68
|
+
"package": "@fluentui/react-menu",
|
69
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
|
70
|
+
"commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"author": "beachball",
|
74
|
+
"package": "@fluentui/react-menu",
|
75
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
|
76
|
+
"commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"author": "beachball",
|
80
|
+
"package": "@fluentui/react-menu",
|
81
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
|
82
|
+
"commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
|
83
|
+
}
|
84
|
+
]
|
85
|
+
}
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"date": "Fri, 12 Nov 2021 13:25:27 GMT",
|
6
89
|
"tag": "@fluentui/react-menu_v9.0.0-beta.4",
|
7
90
|
"version": "9.0.0-beta.4",
|
8
91
|
"comments": {
|
@@ -35,61 +118,61 @@
|
|
35
118
|
"author": "beachball",
|
36
119
|
"package": "@fluentui/react-menu",
|
37
120
|
"comment": "Bump @fluentui/react-context-selector to v9.0.0-beta.3",
|
38
|
-
"commit": "
|
121
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
39
122
|
},
|
40
123
|
{
|
41
124
|
"author": "beachball",
|
42
125
|
"package": "@fluentui/react-menu",
|
43
126
|
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.3",
|
44
|
-
"commit": "
|
127
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
45
128
|
},
|
46
129
|
{
|
47
130
|
"author": "beachball",
|
48
131
|
"package": "@fluentui/react-menu",
|
49
132
|
"comment": "Bump @fluentui/react-portal to v9.0.0-beta.4",
|
50
|
-
"commit": "
|
133
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
51
134
|
},
|
52
135
|
{
|
53
136
|
"author": "beachball",
|
54
137
|
"package": "@fluentui/react-menu",
|
55
138
|
"comment": "Bump @fluentui/react-positioning to v9.0.0-beta.3",
|
56
|
-
"commit": "
|
139
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
57
140
|
},
|
58
141
|
{
|
59
142
|
"author": "beachball",
|
60
143
|
"package": "@fluentui/react-menu",
|
61
144
|
"comment": "Bump @fluentui/react-shared-contexts to v9.0.0-beta.3",
|
62
|
-
"commit": "
|
145
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
63
146
|
},
|
64
147
|
{
|
65
148
|
"author": "beachball",
|
66
149
|
"package": "@fluentui/react-menu",
|
67
150
|
"comment": "Bump @fluentui/react-tabster to v9.0.0-beta.4",
|
68
|
-
"commit": "
|
151
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
69
152
|
},
|
70
153
|
{
|
71
154
|
"author": "beachball",
|
72
155
|
"package": "@fluentui/react-menu",
|
73
156
|
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.3",
|
74
|
-
"commit": "
|
157
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
75
158
|
},
|
76
159
|
{
|
77
160
|
"author": "beachball",
|
78
161
|
"package": "@fluentui/react-menu",
|
79
162
|
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.3",
|
80
|
-
"commit": "
|
163
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
81
164
|
},
|
82
165
|
{
|
83
166
|
"author": "beachball",
|
84
167
|
"package": "@fluentui/react-menu",
|
85
168
|
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3",
|
86
|
-
"commit": "
|
169
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
87
170
|
},
|
88
171
|
{
|
89
172
|
"author": "beachball",
|
90
173
|
"package": "@fluentui/react-menu",
|
91
174
|
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3",
|
92
|
-
"commit": "
|
175
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
93
176
|
}
|
94
177
|
],
|
95
178
|
"none": [
|
package/CHANGELOG.md
CHANGED
@@ -1,12 +1,31 @@
|
|
1
1
|
# Change Log - @fluentui/react-menu
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Thu, 25 Nov 2021 08:31:32 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
+
## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.0.0-beta.5)
|
8
|
+
|
9
|
+
Thu, 25 Nov 2021 08:31:32 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-beta.4..@fluentui/react-menu_v9.0.0-beta.5)
|
11
|
+
|
12
|
+
### Changes
|
13
|
+
|
14
|
+
- update react-icons dependency ([PR #20563](https://github.com/microsoft/fluentui/pull/20563) by ololubek@microsoft.com)
|
15
|
+
- Bump @fluentui/react-context-selector to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
|
16
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
|
17
|
+
- Bump @fluentui/react-portal to v9.0.0-beta.5 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
|
18
|
+
- Bump @fluentui/react-positioning to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
|
19
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
|
20
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.5 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
|
21
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
|
22
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
|
23
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
|
24
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
|
25
|
+
|
7
26
|
## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.0.0-beta.4)
|
8
27
|
|
9
|
-
Fri, 12 Nov 2021
|
28
|
+
Fri, 12 Nov 2021 13:25:27 GMT
|
10
29
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-beta.3..@fluentui/react-menu_v9.0.0-beta.4)
|
11
30
|
|
12
31
|
### Changes
|
@@ -15,16 +34,16 @@ Fri, 12 Nov 2021 12:33:37 GMT
|
|
15
34
|
- use react-shared-contexts instead of react-provider ([PR #20578](https://github.com/microsoft/fluentui/pull/20578) by olfedias@microsoft.com)
|
16
35
|
- export static classes for components ([PR #20450](https://github.com/microsoft/fluentui/pull/20450) by olfedias@microsoft.com)
|
17
36
|
- Updated beta and RC components to ES2019 ([PR #20405](https://github.com/microsoft/fluentui/pull/20405) by gcox@microsoft.com)
|
18
|
-
- Bump @fluentui/react-context-selector to v9.0.0-beta.3 ([PR #
|
19
|
-
- Bump @fluentui/react-make-styles to v9.0.0-beta.3 ([PR #
|
20
|
-
- Bump @fluentui/react-portal to v9.0.0-beta.4 ([PR #
|
21
|
-
- Bump @fluentui/react-positioning to v9.0.0-beta.3 ([PR #
|
22
|
-
- Bump @fluentui/react-shared-contexts to v9.0.0-beta.3 ([PR #
|
23
|
-
- Bump @fluentui/react-tabster to v9.0.0-beta.4 ([PR #
|
24
|
-
- Bump @fluentui/react-utilities to v9.0.0-beta.3 ([PR #
|
25
|
-
- Bump @fluentui/babel-make-styles to v9.0.0-beta.3 ([PR #
|
26
|
-
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3 ([PR #
|
27
|
-
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3 ([PR #
|
37
|
+
- Bump @fluentui/react-context-selector to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
38
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
39
|
+
- Bump @fluentui/react-portal to v9.0.0-beta.4 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
40
|
+
- Bump @fluentui/react-positioning to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
41
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
42
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.4 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
43
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
44
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
45
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
46
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
28
47
|
|
29
48
|
## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.0.0-beta.3)
|
30
49
|
|
@@ -8,7 +8,7 @@ const useStyles = /*#__PURE__*/__styles({
|
|
8
8
|
"Bf4jedk": "fkqu4gx",
|
9
9
|
"B2u0y6b": "f1kaai3v",
|
10
10
|
"a9b677": "f1ahpp82",
|
11
|
-
"E5pizo":
|
11
|
+
"E5pizo": "f1hg901r",
|
12
12
|
"z8tnut": "f10ra9hq",
|
13
13
|
"z189sj": ["f8wuabp", "fycuoez"],
|
14
14
|
"Byoj8tv": "f1y2xyjm",
|
@@ -27,7 +27,7 @@ const useStyles = /*#__PURE__*/__styles({
|
|
27
27
|
"zhjwy3": ["fjscplz", "f1gn591s"]
|
28
28
|
}
|
29
29
|
}, {
|
30
|
-
"d": [".ft85np5{border-radius:var(--borderRadiusMedium);}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".fkqu4gx{min-width:128px;}", ".f1kaai3v{max-width:300px;}", ".f1ahpp82{width:-webkit-max-content;width:-moz-max-content;width:max-content;}", ".f1hg901r{box-shadow:var(--shadow16);}", ".
|
30
|
+
"d": [".ft85np5{border-radius:var(--borderRadiusMedium);}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".fkqu4gx{min-width:128px;}", ".f1kaai3v{max-width:300px;}", ".f1ahpp82{width:-webkit-max-content;width:-moz-max-content;width:max-content;}", ".f1hg901r{box-shadow:var(--shadow16);}", ".f10ra9hq{padding-top:4px;}", ".f8wuabp{padding-right:4px;}", ".fycuoez{padding-left:4px;}", ".f1y2xyjm{padding-bottom:4px;}", ".f5ogflp{border-top-width:1px;}", ".f1hqa2wf{border-right-width:1px;}", ".finvdd3{border-left-width:1px;}", ".f1f09k3d{border-bottom-width:1px;}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".fghlq4f{border-top-color:var(--colorTransparentStroke);}", ".f1gn591s{border-right-color:var(--colorTransparentStroke);}", ".fjscplz{border-left-color:var(--colorTransparentStroke);}", ".fb073pr{border-bottom-color:var(--colorTransparentStroke);}"]
|
31
31
|
});
|
32
32
|
/**
|
33
33
|
* Apply styling to the Menu slots based on the state
|
@@ -16,7 +16,7 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
16
16
|
"Bf4jedk": "fkqu4gx",
|
17
17
|
"B2u0y6b": "f1kaai3v",
|
18
18
|
"a9b677": "f1ahpp82",
|
19
|
-
"E5pizo":
|
19
|
+
"E5pizo": "f1hg901r",
|
20
20
|
"z8tnut": "f10ra9hq",
|
21
21
|
"z189sj": ["f8wuabp", "fycuoez"],
|
22
22
|
"Byoj8tv": "f1y2xyjm",
|
@@ -35,7 +35,7 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
35
35
|
"zhjwy3": ["fjscplz", "f1gn591s"]
|
36
36
|
}
|
37
37
|
}, {
|
38
|
-
"d": [".ft85np5{border-radius:var(--borderRadiusMedium);}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".fkqu4gx{min-width:128px;}", ".f1kaai3v{max-width:300px;}", ".f1ahpp82{width:-webkit-max-content;width:-moz-max-content;width:max-content;}", ".f1hg901r{box-shadow:var(--shadow16);}", ".
|
38
|
+
"d": [".ft85np5{border-radius:var(--borderRadiusMedium);}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".fkqu4gx{min-width:128px;}", ".f1kaai3v{max-width:300px;}", ".f1ahpp82{width:-webkit-max-content;width:-moz-max-content;width:max-content;}", ".f1hg901r{box-shadow:var(--shadow16);}", ".f10ra9hq{padding-top:4px;}", ".f8wuabp{padding-right:4px;}", ".fycuoez{padding-left:4px;}", ".f1y2xyjm{padding-bottom:4px;}", ".f5ogflp{border-top-width:1px;}", ".f1hqa2wf{border-right-width:1px;}", ".finvdd3{border-left-width:1px;}", ".f1f09k3d{border-bottom-width:1px;}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".fghlq4f{border-top-color:var(--colorTransparentStroke);}", ".f1gn591s{border-right-color:var(--colorTransparentStroke);}", ".fjscplz{border-left-color:var(--colorTransparentStroke);}", ".fb073pr{border-bottom-color:var(--colorTransparentStroke);}"]
|
39
39
|
});
|
40
40
|
/**
|
41
41
|
* Apply styling to the Menu slots based on the state
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-menu",
|
3
|
-
"version": "9.0.0-beta.
|
3
|
+
"version": "9.0.0-beta.5",
|
4
4
|
"description": "Fluent UI menu component",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -13,7 +13,7 @@
|
|
13
13
|
"license": "MIT",
|
14
14
|
"scripts": {
|
15
15
|
"docs": "api-extractor run --config=config/api-extractor.local.json --local",
|
16
|
-
"build:local": "tsc -p . --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output dist/react-menu/src && yarn docs",
|
16
|
+
"build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-menu/src && yarn docs",
|
17
17
|
"build": "just-scripts build",
|
18
18
|
"bundle-size": "bundle-size measure",
|
19
19
|
"clean": "just-scripts clean",
|
@@ -23,14 +23,15 @@
|
|
23
23
|
"lint": "just-scripts lint",
|
24
24
|
"start": "yarn storybook",
|
25
25
|
"storybook": "start-storybook",
|
26
|
-
"test": "jest"
|
26
|
+
"test": "jest",
|
27
|
+
"type-check": "tsc -b tsconfig.json"
|
27
28
|
},
|
28
29
|
"devDependencies": {
|
29
|
-
"@fluentui/babel-make-styles": "9.0.0-beta.
|
30
|
+
"@fluentui/babel-make-styles": "9.0.0-beta.4",
|
30
31
|
"@fluentui/eslint-plugin": "*",
|
31
|
-
"@fluentui/jest-serializer-make-styles": "9.0.0-beta.
|
32
|
+
"@fluentui/jest-serializer-make-styles": "9.0.0-beta.4",
|
32
33
|
"@fluentui/react-conformance": "*",
|
33
|
-
"@fluentui/react-conformance-make-styles": "9.0.0-beta.
|
34
|
+
"@fluentui/react-conformance-make-styles": "9.0.0-beta.4",
|
34
35
|
"@fluentui/scripts": "^1.0.0",
|
35
36
|
"@types/enzyme": "3.10.3",
|
36
37
|
"@types/enzyme-adapter-react-16": "1.0.3",
|
@@ -45,14 +46,14 @@
|
|
45
46
|
},
|
46
47
|
"dependencies": {
|
47
48
|
"@fluentui/keyboard-keys": "9.0.0-beta.1",
|
48
|
-
"@fluentui/react-context-selector": "9.0.0-beta.
|
49
|
-
"@fluentui/react-icons": "^
|
50
|
-
"@fluentui/react-make-styles": "9.0.0-beta.
|
51
|
-
"@fluentui/react-portal": "9.0.0-beta.
|
52
|
-
"@fluentui/react-positioning": "9.0.0-beta.
|
53
|
-
"@fluentui/react-shared-contexts": "9.0.0-beta.
|
54
|
-
"@fluentui/react-tabster": "9.0.0-beta.
|
55
|
-
"@fluentui/react-utilities": "9.0.0-beta.
|
49
|
+
"@fluentui/react-context-selector": "9.0.0-beta.4",
|
50
|
+
"@fluentui/react-icons": "^2.0.152-beta.3",
|
51
|
+
"@fluentui/react-make-styles": "9.0.0-beta.4",
|
52
|
+
"@fluentui/react-portal": "9.0.0-beta.5",
|
53
|
+
"@fluentui/react-positioning": "9.0.0-beta.4",
|
54
|
+
"@fluentui/react-shared-contexts": "9.0.0-beta.4",
|
55
|
+
"@fluentui/react-tabster": "9.0.0-beta.5",
|
56
|
+
"@fluentui/react-utilities": "9.0.0-beta.4",
|
56
57
|
"tslib": "^2.1.0"
|
57
58
|
},
|
58
59
|
"peerDependencies": {
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { isConformant as baseIsConformant } from '@fluentui/react-conformance';
|
2
|
-
import makeStylesTests from '@fluentui/react-conformance-make-styles';
|
3
|
-
export function isConformant(testInfo) {
|
4
|
-
const defaultOptions = {
|
5
|
-
asPropHandlesRef: true,
|
6
|
-
componentPath: module.parent.filename.replace('.test', ''),
|
7
|
-
skipAsPropTests: true,
|
8
|
-
extraTests: makeStylesTests
|
9
|
-
};
|
10
|
-
baseIsConformant(defaultOptions, testInfo);
|
11
|
-
}
|
12
|
-
//# sourceMappingURL=isConformant.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":"AAAA,SAAS,YAAY,IAAI,gBAAzB,QAAiD,6BAAjD;AAEA,OAAO,eAAP,MAA4B,yCAA5B;AAEA,OAAM,SAAU,YAAV,CACJ,QADI,EACqF;AAEzF,QAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D,IAAA,eAAe,EAAE,IAH0C;AAI3D,IAAA,UAAU,EAAE;AAJ+C,GAA7D;AAOA,EAAA,gBAAgB,CAAC,cAAD,EAAiB,QAAjB,CAAhB;AACD","sourceRoot":""}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { MenuContextValue } from '../contexts/menuContext';
|
2
|
-
/**
|
3
|
-
* A test utility to mock the useMenuContext hook that relies on context selector
|
4
|
-
* Don't forget to call `jest.mock(**\/popupContext.ts)` while using this
|
5
|
-
* @param options Menu context values to set for testing
|
6
|
-
*/
|
7
|
-
export declare const mockUseMenuContext: (options?: Partial<MenuContextValue>) => void;
|
@@ -1,29 +0,0 @@
|
|
1
|
-
import { useMenuContext } from '../contexts/menuContext';
|
2
|
-
/**
|
3
|
-
* A test utility to mock the useMenuContext hook that relies on context selector
|
4
|
-
* Don't forget to call `jest.mock(**\/popupContext.ts)` while using this
|
5
|
-
* @param options Menu context values to set for testing
|
6
|
-
*/
|
7
|
-
|
8
|
-
export const mockUseMenuContext = (options = {}) => {
|
9
|
-
const mockContext = {
|
10
|
-
open: false,
|
11
|
-
setOpen: () => null,
|
12
|
-
triggerRef: {
|
13
|
-
current: null
|
14
|
-
},
|
15
|
-
menuPopoverRef: {
|
16
|
-
current: null
|
17
|
-
},
|
18
|
-
openOnContext: false,
|
19
|
-
openOnHover: false,
|
20
|
-
isSubmenu: false,
|
21
|
-
triggerId: 'id',
|
22
|
-
...options
|
23
|
-
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
24
|
-
|
25
|
-
useMenuContext.mockImplementation(selector => {
|
26
|
-
return selector(mockContext);
|
27
|
-
});
|
28
|
-
};
|
29
|
-
//# sourceMappingURL=mockUseMenuContext.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/common/mockUseMenuContext.ts"],"names":[],"mappings":"AACA,SAAS,cAAT,QAA+B,yBAA/B;AAGA;;;;AAIG;;AACH,OAAO,MAAM,kBAAkB,GAAG,CAAC,OAAA,GAAqC,EAAtC,KAA4C;AAC5E,QAAM,WAAW,GAAqB;AACpC,IAAA,IAAI,EAAE,KAD8B;AAEpC,IAAA,OAAO,EAAE,MAAM,IAFqB;AAGpC,IAAA,UAAU,EAAG;AAAE,MAAA,OAAO,EAAE;AAAX,KAHuB;AAIpC,IAAA,cAAc,EAAG;AAAE,MAAA,OAAO,EAAE;AAAX,KAJmB;AAKpC,IAAA,aAAa,EAAE,KALqB;AAMpC,IAAA,WAAW,EAAE,KANuB;AAOpC,IAAA,SAAS,EAAE,KAPyB;AAQpC,IAAA,SAAS,EAAE,IARyB;AASpC,OAAG;AATiC,GAAtC,CAD4E,CAY5E;;AACC,EAAA,cAA4B,CAAC,kBAA7B,CAAiD,QAAD,IAAiD;AAChG,WAAO,QAAQ,CAAC,WAAD,CAAf;AACD,GAFA;AAGF,CAhBM","sourceRoot":""}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.isConformant = void 0;
|
7
|
-
|
8
|
-
const react_conformance_1 = /*#__PURE__*/require("@fluentui/react-conformance");
|
9
|
-
|
10
|
-
const react_conformance_make_styles_1 = /*#__PURE__*/require("@fluentui/react-conformance-make-styles");
|
11
|
-
|
12
|
-
function isConformant(testInfo) {
|
13
|
-
const defaultOptions = {
|
14
|
-
asPropHandlesRef: true,
|
15
|
-
componentPath: module.parent.filename.replace('.test', ''),
|
16
|
-
skipAsPropTests: true,
|
17
|
-
extraTests: react_conformance_make_styles_1.default
|
18
|
-
};
|
19
|
-
react_conformance_1.isConformant(defaultOptions, testInfo);
|
20
|
-
}
|
21
|
-
|
22
|
-
exports.isConformant = isConformant;
|
23
|
-
//# sourceMappingURL=isConformant.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAEA,MAAA,+BAAA,gBAAA,OAAA,CAAA,yCAAA,CAAA;;AAEA,SAAgB,YAAhB,CACE,QADF,EAC2F;AAEzF,QAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D,IAAA,eAAe,EAAE,IAH0C;AAI3D,IAAA,UAAU,EAAE,+BAAA,CAAA;AAJ+C,GAA7D;AAOA,EAAA,mBAAA,CAAA,YAAA,CAAiB,cAAjB,EAAiC,QAAjC;AACD;;AAXD,OAAA,CAAA,YAAA,GAAA,YAAA","sourceRoot":""}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { MenuContextValue } from '../contexts/menuContext';
|
2
|
-
/**
|
3
|
-
* A test utility to mock the useMenuContext hook that relies on context selector
|
4
|
-
* Don't forget to call `jest.mock(**\/popupContext.ts)` while using this
|
5
|
-
* @param options Menu context values to set for testing
|
6
|
-
*/
|
7
|
-
export declare const mockUseMenuContext: (options?: Partial<MenuContextValue>) => void;
|
@@ -1,39 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.mockUseMenuContext = void 0;
|
7
|
-
|
8
|
-
const menuContext_1 = /*#__PURE__*/require("../contexts/menuContext");
|
9
|
-
/**
|
10
|
-
* A test utility to mock the useMenuContext hook that relies on context selector
|
11
|
-
* Don't forget to call `jest.mock(**\/popupContext.ts)` while using this
|
12
|
-
* @param options Menu context values to set for testing
|
13
|
-
*/
|
14
|
-
|
15
|
-
|
16
|
-
const mockUseMenuContext = (options = {}) => {
|
17
|
-
const mockContext = {
|
18
|
-
open: false,
|
19
|
-
setOpen: () => null,
|
20
|
-
triggerRef: {
|
21
|
-
current: null
|
22
|
-
},
|
23
|
-
menuPopoverRef: {
|
24
|
-
current: null
|
25
|
-
},
|
26
|
-
openOnContext: false,
|
27
|
-
openOnHover: false,
|
28
|
-
isSubmenu: false,
|
29
|
-
triggerId: 'id',
|
30
|
-
...options
|
31
|
-
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
32
|
-
|
33
|
-
menuContext_1.useMenuContext.mockImplementation(selector => {
|
34
|
-
return selector(mockContext);
|
35
|
-
});
|
36
|
-
};
|
37
|
-
|
38
|
-
exports.mockUseMenuContext = mockUseMenuContext;
|
39
|
-
//# sourceMappingURL=mockUseMenuContext.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/common/mockUseMenuContext.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;AAGA;;;;AAIG;;;AACI,MAAM,kBAAkB,GAAG,CAAC,OAAA,GAAqC,EAAtC,KAA4C;AAC5E,QAAM,WAAW,GAAqB;AACpC,IAAA,IAAI,EAAE,KAD8B;AAEpC,IAAA,OAAO,EAAE,MAAM,IAFqB;AAGpC,IAAA,UAAU,EAAG;AAAE,MAAA,OAAO,EAAE;AAAX,KAHuB;AAIpC,IAAA,cAAc,EAAG;AAAE,MAAA,OAAO,EAAE;AAAX,KAJmB;AAKpC,IAAA,aAAa,EAAE,KALqB;AAMpC,IAAA,WAAW,EAAE,KANuB;AAOpC,IAAA,SAAS,EAAE,KAPyB;AAQpC,IAAA,SAAS,EAAE,IARyB;AASpC,OAAG;AATiC,GAAtC,CAD4E,CAY5E;;AACC,EAAA,aAAA,CAAA,cAAA,CAA6B,kBAA7B,CAAiD,QAAD,IAAiD;AAChG,WAAO,QAAQ,CAAC,WAAD,CAAf;AACD,GAFA;AAGF,CAhBM;;AAAM,OAAA,CAAA,kBAAA,GAAkB,kBAAlB","sourceRoot":""}
|