@fluentui/react-menu 0.0.0-nightly906d31cfa320211115.1 → 0.0.0-nightly99adff5a9a20211125.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.
- package/CHANGELOG.json +33 -31
- package/CHANGELOG.md +15 -16
- package/lib/components/MenuPopover/useMenuPopoverStyles.js +2 -2
- package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +2 -2
- package/package.json +16 -15
- 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,82 +2,84 @@
|
|
|
2
2
|
"name": "@fluentui/react-menu",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
6
|
-
"tag": "@fluentui/react-menu_v0.0.0-
|
|
7
|
-
"version": "0.0.0-
|
|
5
|
+
"date": "Thu, 25 Nov 2021 04:13:55 GMT",
|
|
6
|
+
"tag": "@fluentui/react-menu_v0.0.0-nightly99adff5a9a20211125.1",
|
|
7
|
+
"version": "0.0.0-nightly99adff5a9a20211125.1",
|
|
8
8
|
"comments": {
|
|
9
|
-
"
|
|
9
|
+
"none": [
|
|
10
10
|
{
|
|
11
|
-
"author": "
|
|
11
|
+
"author": "lingfangao@hotmail.com",
|
|
12
12
|
"package": "@fluentui/react-menu",
|
|
13
|
-
"commit": "
|
|
14
|
-
"comment": "
|
|
15
|
-
}
|
|
13
|
+
"commit": "8a141d14f3a14de2e1c4691dad908622f310a9d1",
|
|
14
|
+
"comment": "Migrate package to use solution tsconfigs"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"prerelease": [
|
|
16
18
|
{
|
|
17
|
-
"author": "
|
|
19
|
+
"author": "ololubek@microsoft.com",
|
|
18
20
|
"package": "@fluentui/react-menu",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
+
"commit": "ecab13cfd6ac22657020db8f86eb89f952b0f953",
|
|
22
|
+
"comment": "update react-icons dependency"
|
|
21
23
|
},
|
|
22
24
|
{
|
|
23
25
|
"author": "beachball",
|
|
24
26
|
"package": "@fluentui/react-menu",
|
|
25
|
-
"comment": "Bump @fluentui/react-context-selector to v0.0.0-
|
|
26
|
-
"commit": "
|
|
27
|
+
"comment": "Bump @fluentui/react-context-selector to v0.0.0-nightly99adff5a9a20211125.1",
|
|
28
|
+
"commit": "82edadbaa0875da8b96295c6b41be3e0b2728832"
|
|
27
29
|
},
|
|
28
30
|
{
|
|
29
31
|
"author": "beachball",
|
|
30
32
|
"package": "@fluentui/react-menu",
|
|
31
|
-
"comment": "Bump @fluentui/react-make-styles to v0.0.0-
|
|
32
|
-
"commit": "
|
|
33
|
+
"comment": "Bump @fluentui/react-make-styles to v0.0.0-nightly99adff5a9a20211125.1",
|
|
34
|
+
"commit": "82edadbaa0875da8b96295c6b41be3e0b2728832"
|
|
33
35
|
},
|
|
34
36
|
{
|
|
35
37
|
"author": "beachball",
|
|
36
38
|
"package": "@fluentui/react-menu",
|
|
37
|
-
"comment": "Bump @fluentui/react-portal to v0.0.0-
|
|
38
|
-
"commit": "
|
|
39
|
+
"comment": "Bump @fluentui/react-portal to v0.0.0-nightly99adff5a9a20211125.1",
|
|
40
|
+
"commit": "82edadbaa0875da8b96295c6b41be3e0b2728832"
|
|
39
41
|
},
|
|
40
42
|
{
|
|
41
43
|
"author": "beachball",
|
|
42
44
|
"package": "@fluentui/react-menu",
|
|
43
|
-
"comment": "Bump @fluentui/react-positioning to v0.0.0-
|
|
44
|
-
"commit": "
|
|
45
|
+
"comment": "Bump @fluentui/react-positioning to v0.0.0-nightly99adff5a9a20211125.1",
|
|
46
|
+
"commit": "82edadbaa0875da8b96295c6b41be3e0b2728832"
|
|
45
47
|
},
|
|
46
48
|
{
|
|
47
49
|
"author": "beachball",
|
|
48
50
|
"package": "@fluentui/react-menu",
|
|
49
|
-
"comment": "Bump @fluentui/react-shared-contexts to v0.0.0-
|
|
50
|
-
"commit": "
|
|
51
|
+
"comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly99adff5a9a20211125.1",
|
|
52
|
+
"commit": "82edadbaa0875da8b96295c6b41be3e0b2728832"
|
|
51
53
|
},
|
|
52
54
|
{
|
|
53
55
|
"author": "beachball",
|
|
54
56
|
"package": "@fluentui/react-menu",
|
|
55
|
-
"comment": "Bump @fluentui/react-tabster to v0.0.0-
|
|
56
|
-
"commit": "
|
|
57
|
+
"comment": "Bump @fluentui/react-tabster to v0.0.0-nightly99adff5a9a20211125.1",
|
|
58
|
+
"commit": "82edadbaa0875da8b96295c6b41be3e0b2728832"
|
|
57
59
|
},
|
|
58
60
|
{
|
|
59
61
|
"author": "beachball",
|
|
60
62
|
"package": "@fluentui/react-menu",
|
|
61
|
-
"comment": "Bump @fluentui/react-utilities to v0.0.0-
|
|
62
|
-
"commit": "
|
|
63
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightly99adff5a9a20211125.1",
|
|
64
|
+
"commit": "82edadbaa0875da8b96295c6b41be3e0b2728832"
|
|
63
65
|
},
|
|
64
66
|
{
|
|
65
67
|
"author": "beachball",
|
|
66
68
|
"package": "@fluentui/react-menu",
|
|
67
|
-
"comment": "Bump @fluentui/babel-make-styles to v0.0.0-
|
|
68
|
-
"commit": "
|
|
69
|
+
"comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightly99adff5a9a20211125.1",
|
|
70
|
+
"commit": "82edadbaa0875da8b96295c6b41be3e0b2728832"
|
|
69
71
|
},
|
|
70
72
|
{
|
|
71
73
|
"author": "beachball",
|
|
72
74
|
"package": "@fluentui/react-menu",
|
|
73
|
-
"comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-
|
|
74
|
-
"commit": "
|
|
75
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly99adff5a9a20211125.1",
|
|
76
|
+
"commit": "82edadbaa0875da8b96295c6b41be3e0b2728832"
|
|
75
77
|
},
|
|
76
78
|
{
|
|
77
79
|
"author": "beachball",
|
|
78
80
|
"package": "@fluentui/react-menu",
|
|
79
|
-
"comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-
|
|
80
|
-
"commit": "
|
|
81
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly99adff5a9a20211125.1",
|
|
82
|
+
"commit": "82edadbaa0875da8b96295c6b41be3e0b2728832"
|
|
81
83
|
}
|
|
82
84
|
]
|
|
83
85
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
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 04:13:55 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [0.0.0-
|
|
7
|
+
## [0.0.0-nightly99adff5a9a20211125.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v0.0.0-nightly99adff5a9a20211125.1)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-beta.4..@fluentui/react-menu_v0.0.0-
|
|
9
|
+
Thu, 25 Nov 2021 04:13:55 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-beta.4..@fluentui/react-menu_v0.0.0-nightly99adff5a9a20211125.1)
|
|
11
11
|
|
|
12
12
|
### Changes
|
|
13
13
|
|
|
14
|
-
-
|
|
15
|
-
- Bump @fluentui/
|
|
16
|
-
- Bump @fluentui/react-
|
|
17
|
-
- Bump @fluentui/react-
|
|
18
|
-
- Bump @fluentui/react-
|
|
19
|
-
- Bump @fluentui/react-
|
|
20
|
-
- Bump @fluentui/react-
|
|
21
|
-
- Bump @fluentui/react-
|
|
22
|
-
- Bump @fluentui/
|
|
23
|
-
- Bump @fluentui/
|
|
24
|
-
- Bump @fluentui/
|
|
25
|
-
- Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly906d31cfa320211115.1 ([commit](https://github.com/microsoft/fluentui/commit/05edacbae8d85aa6b3d4164f9cd7d1465b47f246) by beachball)
|
|
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 v0.0.0-nightly99adff5a9a20211125.1 ([commit](https://github.com/microsoft/fluentui/commit/82edadbaa0875da8b96295c6b41be3e0b2728832) by beachball)
|
|
16
|
+
- Bump @fluentui/react-make-styles to v0.0.0-nightly99adff5a9a20211125.1 ([commit](https://github.com/microsoft/fluentui/commit/82edadbaa0875da8b96295c6b41be3e0b2728832) by beachball)
|
|
17
|
+
- Bump @fluentui/react-portal to v0.0.0-nightly99adff5a9a20211125.1 ([commit](https://github.com/microsoft/fluentui/commit/82edadbaa0875da8b96295c6b41be3e0b2728832) by beachball)
|
|
18
|
+
- Bump @fluentui/react-positioning to v0.0.0-nightly99adff5a9a20211125.1 ([commit](https://github.com/microsoft/fluentui/commit/82edadbaa0875da8b96295c6b41be3e0b2728832) by beachball)
|
|
19
|
+
- Bump @fluentui/react-shared-contexts to v0.0.0-nightly99adff5a9a20211125.1 ([commit](https://github.com/microsoft/fluentui/commit/82edadbaa0875da8b96295c6b41be3e0b2728832) by beachball)
|
|
20
|
+
- Bump @fluentui/react-tabster to v0.0.0-nightly99adff5a9a20211125.1 ([commit](https://github.com/microsoft/fluentui/commit/82edadbaa0875da8b96295c6b41be3e0b2728832) by beachball)
|
|
21
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightly99adff5a9a20211125.1 ([commit](https://github.com/microsoft/fluentui/commit/82edadbaa0875da8b96295c6b41be3e0b2728832) by beachball)
|
|
22
|
+
- Bump @fluentui/babel-make-styles to v0.0.0-nightly99adff5a9a20211125.1 ([commit](https://github.com/microsoft/fluentui/commit/82edadbaa0875da8b96295c6b41be3e0b2728832) by beachball)
|
|
23
|
+
- Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly99adff5a9a20211125.1 ([commit](https://github.com/microsoft/fluentui/commit/82edadbaa0875da8b96295c6b41be3e0b2728832) by beachball)
|
|
24
|
+
- Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly99adff5a9a20211125.1 ([commit](https://github.com/microsoft/fluentui/commit/82edadbaa0875da8b96295c6b41be3e0b2728832) by beachball)
|
|
26
25
|
|
|
27
26
|
## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.0.0-beta.4)
|
|
28
27
|
|
|
@@ -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": "0.0.0-
|
|
3
|
+
"version": "0.0.0-nightly99adff5a9a20211125.1",
|
|
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": "0.0.0-
|
|
30
|
+
"@fluentui/babel-make-styles": "0.0.0-nightly99adff5a9a20211125.1",
|
|
30
31
|
"@fluentui/eslint-plugin": "*",
|
|
31
|
-
"@fluentui/jest-serializer-make-styles": "0.0.0-
|
|
32
|
+
"@fluentui/jest-serializer-make-styles": "0.0.0-nightly99adff5a9a20211125.1",
|
|
32
33
|
"@fluentui/react-conformance": "*",
|
|
33
|
-
"@fluentui/react-conformance-make-styles": "0.0.0-
|
|
34
|
+
"@fluentui/react-conformance-make-styles": "0.0.0-nightly99adff5a9a20211125.1",
|
|
34
35
|
"@fluentui/scripts": "^1.0.0",
|
|
35
36
|
"@types/enzyme": "3.10.3",
|
|
36
37
|
"@types/enzyme-adapter-react-16": "1.0.3",
|
|
@@ -44,15 +45,15 @@
|
|
|
44
45
|
"react-test-renderer": "^16.3.0"
|
|
45
46
|
},
|
|
46
47
|
"dependencies": {
|
|
47
|
-
"@fluentui/keyboard-keys": "0.0.0-
|
|
48
|
-
"@fluentui/react-context-selector": "0.0.0-
|
|
49
|
-
"@fluentui/react-icons": "^
|
|
50
|
-
"@fluentui/react-make-styles": "0.0.0-
|
|
51
|
-
"@fluentui/react-portal": "0.0.0-
|
|
52
|
-
"@fluentui/react-positioning": "0.0.0-
|
|
53
|
-
"@fluentui/react-shared-contexts": "0.0.0-
|
|
54
|
-
"@fluentui/react-tabster": "0.0.0-
|
|
55
|
-
"@fluentui/react-utilities": "0.0.0-
|
|
48
|
+
"@fluentui/keyboard-keys": "0.0.0-nightly99adff5a9a20211125.0",
|
|
49
|
+
"@fluentui/react-context-selector": "0.0.0-nightly99adff5a9a20211125.1",
|
|
50
|
+
"@fluentui/react-icons": "^2.0.152-beta.3",
|
|
51
|
+
"@fluentui/react-make-styles": "0.0.0-nightly99adff5a9a20211125.1",
|
|
52
|
+
"@fluentui/react-portal": "0.0.0-nightly99adff5a9a20211125.1",
|
|
53
|
+
"@fluentui/react-positioning": "0.0.0-nightly99adff5a9a20211125.1",
|
|
54
|
+
"@fluentui/react-shared-contexts": "0.0.0-nightly99adff5a9a20211125.1",
|
|
55
|
+
"@fluentui/react-tabster": "0.0.0-nightly99adff5a9a20211125.1",
|
|
56
|
+
"@fluentui/react-utilities": "0.0.0-nightly99adff5a9a20211125.1",
|
|
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":""}
|