@fluentui/react-aria 0.0.0-nightlya54302c0b220211124.1 → 0.0.0-nightlyb8663b78ad20220207.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 +86 -7
- package/CHANGELOG.md +22 -6
- package/dist/react-aria.d.ts +5 -5
- package/lib/hooks/useARIAButton.d.ts +3 -3
- package/lib/hooks/useARIAButton.js.map +1 -1
- package/lib/utils/mergeARIADisabled.d.ts +2 -2
- package/lib/utils/mergeARIADisabled.js.map +1 -1
- package/lib-commonjs/hooks/useARIAButton.d.ts +3 -3
- package/lib-commonjs/hooks/useARIAButton.js.map +1 -1
- package/lib-commonjs/utils/mergeARIADisabled.d.ts +2 -2
- package/lib-commonjs/utils/mergeARIADisabled.js.map +1 -1
- package/package.json +7 -8
package/CHANGELOG.json
CHANGED
|
@@ -2,22 +2,101 @@
|
|
|
2
2
|
"name": "@fluentui/react-aria",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
6
|
-
"tag": "@fluentui/react-aria_v0.0.0-
|
|
7
|
-
"version": "0.0.0-
|
|
5
|
+
"date": "Mon, 07 Feb 2022 04:15:30 GMT",
|
|
6
|
+
"tag": "@fluentui/react-aria_v0.0.0-nightlyb8663b78ad20220207.1",
|
|
7
|
+
"version": "0.0.0-nightlyb8663b78ad20220207.1",
|
|
8
8
|
"comments": {
|
|
9
9
|
"prerelease": [
|
|
10
|
+
{
|
|
11
|
+
"author": "email not defined",
|
|
12
|
+
"package": "@fluentui/react-aria",
|
|
13
|
+
"commit": "2e460da7ff58924597e3137a784dc897fd174d71",
|
|
14
|
+
"comment": "Release nightly v9"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "olfedias@microsoft.com",
|
|
18
|
+
"package": "@fluentui/react-aria",
|
|
19
|
+
"commit": "f4eafee2c3b8d85b3a267d6b155f0f5585a435fd",
|
|
20
|
+
"comment": "remove Griffel packages"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
|
24
|
+
"package": "@fluentui/react-aria",
|
|
25
|
+
"commit": "e0b8e1fa6980077e7b311fd1c72c28d3e4305db0",
|
|
26
|
+
"comment": "Updating based on changes to composition types."
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "behowell@microsoft.com",
|
|
30
|
+
"package": "@fluentui/react-aria",
|
|
31
|
+
"commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
|
|
32
|
+
"comment": "Remove component's shorthandProps array"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "beachball",
|
|
36
|
+
"package": "@fluentui/react-aria",
|
|
37
|
+
"comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightlyb8663b78ad20220207.1",
|
|
38
|
+
"commit": "2e460da7ff58924597e3137a784dc897fd174d71"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"author": "beachball",
|
|
42
|
+
"package": "@fluentui/react-aria",
|
|
43
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyb8663b78ad20220207.1",
|
|
44
|
+
"commit": "2e460da7ff58924597e3137a784dc897fd174d71"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"none": [
|
|
48
|
+
{
|
|
49
|
+
"author": "olfedias@microsoft.com",
|
|
50
|
+
"package": "@fluentui/react-aria",
|
|
51
|
+
"commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
|
|
52
|
+
"comment": "remove inline-style-expand-shorthand from tsconfigs"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"author": "martinhochel@microsoft.com",
|
|
56
|
+
"package": "@fluentui/react-aria",
|
|
57
|
+
"commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
|
|
58
|
+
"comment": "chore: use storybook runner for all vNext packages"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"date": "Thu, 25 Nov 2021 08:34:10 GMT",
|
|
65
|
+
"tag": "@fluentui/react-aria_v9.0.0-beta.4",
|
|
66
|
+
"version": "9.0.0-beta.4",
|
|
67
|
+
"comments": {
|
|
68
|
+
"none": [
|
|
69
|
+
{
|
|
70
|
+
"author": "olfedias@microsoft.com",
|
|
71
|
+
"package": "@fluentui/react-aria",
|
|
72
|
+
"commit": "8a820339f7f4084d8c46e97f06eebbeb18111397",
|
|
73
|
+
"comment": "update tooling config"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"prerelease": [
|
|
77
|
+
{
|
|
78
|
+
"author": "beachball",
|
|
79
|
+
"package": "@fluentui/react-aria",
|
|
80
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
|
|
81
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"author": "beachball",
|
|
85
|
+
"package": "@fluentui/react-aria",
|
|
86
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
|
|
87
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
88
|
+
},
|
|
10
89
|
{
|
|
11
90
|
"author": "beachball",
|
|
12
91
|
"package": "@fluentui/react-aria",
|
|
13
|
-
"comment": "Bump @fluentui/
|
|
14
|
-
"commit": "
|
|
92
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
|
|
93
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
15
94
|
},
|
|
16
95
|
{
|
|
17
96
|
"author": "beachball",
|
|
18
97
|
"package": "@fluentui/react-aria",
|
|
19
|
-
"comment": "Bump @fluentui/
|
|
20
|
-
"commit": "
|
|
98
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
|
|
99
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
21
100
|
}
|
|
22
101
|
]
|
|
23
102
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,34 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-aria
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 07 Feb 2022 04:15:30 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [0.0.0-
|
|
7
|
+
## [0.0.0-nightlyb8663b78ad20220207.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v0.0.0-nightlyb8663b78ad20220207.1)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-beta.
|
|
9
|
+
Mon, 07 Feb 2022 04:15:30 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-beta.4..@fluentui/react-aria_v0.0.0-nightlyb8663b78ad20220207.1)
|
|
11
11
|
|
|
12
12
|
### Changes
|
|
13
13
|
|
|
14
|
-
-
|
|
15
|
-
-
|
|
14
|
+
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/2e460da7ff58924597e3137a784dc897fd174d71) by email not defined)
|
|
15
|
+
- remove Griffel packages ([PR #21440](https://github.com/microsoft/fluentui/pull/21440) by olfedias@microsoft.com)
|
|
16
|
+
- Updating based on changes to composition types. ([PR #20891](https://github.com/microsoft/fluentui/pull/20891) by Humberto.Morimoto@microsoft.com)
|
|
17
|
+
- Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
|
|
18
|
+
- Bump @fluentui/keyboard-keys to v0.0.0-nightlyb8663b78ad20220207.1 ([commit](https://github.com/microsoft/fluentui/commit/2e460da7ff58924597e3137a784dc897fd174d71) by beachball)
|
|
19
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightlyb8663b78ad20220207.1 ([commit](https://github.com/microsoft/fluentui/commit/2e460da7ff58924597e3137a784dc897fd174d71) by beachball)
|
|
20
|
+
|
|
21
|
+
## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-beta.4)
|
|
22
|
+
|
|
23
|
+
Thu, 25 Nov 2021 08:34:10 GMT
|
|
24
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-beta.3..@fluentui/react-aria_v9.0.0-beta.4)
|
|
25
|
+
|
|
26
|
+
### Changes
|
|
27
|
+
|
|
28
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
29
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
30
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
31
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
16
32
|
|
|
17
33
|
## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-beta.3)
|
|
18
34
|
|
package/dist/react-aria.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { ObjectShorthandProps } from '@fluentui/react-utilities';
|
|
1
|
+
import type { IntrinsicSlotProps } from '@fluentui/react-utilities';
|
|
3
2
|
import * as React_2 from 'react';
|
|
4
3
|
import type { ResolveShorthandOptions } from '@fluentui/react-utilities';
|
|
5
4
|
import type { ShorthandProps } from '@fluentui/react-utilities';
|
|
5
|
+
import { SlotProps } from '@fluentui/react-utilities';
|
|
6
6
|
|
|
7
|
-
export declare type
|
|
7
|
+
export declare type ARIAButtonSlotProps = IntrinsicSlotProps<'button', 'a'> & {
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
disabledFocusable?: boolean;
|
|
10
10
|
};
|
|
@@ -12,7 +12,7 @@ export declare type ARIAButtonShorthandProps = IntrinsicShorthandProps<'button',
|
|
|
12
12
|
/**
|
|
13
13
|
* Merges disabled declaration with `aria-disabled`
|
|
14
14
|
*/
|
|
15
|
-
export declare function mergeARIADisabled(shorthand:
|
|
15
|
+
export declare function mergeARIADisabled(shorthand: SlotProps<{
|
|
16
16
|
'aria-disabled'?: string | boolean;
|
|
17
17
|
children?: React_2.ReactNode;
|
|
18
18
|
disabled?: boolean;
|
|
@@ -23,6 +23,6 @@ export declare function mergeARIADisabled(shorthand: ObjectShorthandProps<{
|
|
|
23
23
|
* for multiple scenarios of shorthand properties. Ensuring 1st rule of ARIA for cases
|
|
24
24
|
* where no attribute addition is required.
|
|
25
25
|
*/
|
|
26
|
-
export declare function useARIAButton<Required extends boolean = false>(shorthand: ShorthandProps<
|
|
26
|
+
export declare function useARIAButton<Required extends boolean = false>(shorthand: ShorthandProps<ARIAButtonSlotProps>, options?: ResolveShorthandOptions<ARIAButtonSlotProps, Required>): Required extends false ? ARIAButtonSlotProps | undefined : ARIAButtonSlotProps;
|
|
27
27
|
|
|
28
28
|
export { }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare type
|
|
1
|
+
import type { IntrinsicSlotProps, ResolveShorthandOptions, ShorthandProps } from '@fluentui/react-utilities';
|
|
2
|
+
export declare type ARIAButtonSlotProps = IntrinsicSlotProps<'button', 'a'> & {
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
disabledFocusable?: boolean;
|
|
5
5
|
};
|
|
@@ -8,4 +8,4 @@ export declare type ARIAButtonShorthandProps = IntrinsicShorthandProps<'button',
|
|
|
8
8
|
* for multiple scenarios of shorthand properties. Ensuring 1st rule of ARIA for cases
|
|
9
9
|
* where no attribute addition is required.
|
|
10
10
|
*/
|
|
11
|
-
export declare function useARIAButton<Required extends boolean = false>(shorthand: ShorthandProps<
|
|
11
|
+
export declare function useARIAButton<Required extends boolean = false>(shorthand: ShorthandProps<ARIAButtonSlotProps>, options?: ResolveShorthandOptions<ARIAButtonSlotProps, Required>): Required extends false ? ARIAButtonSlotProps | undefined : ARIAButtonSlotProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/hooks/useARIAButton.ts"],"names":[],"mappings":"AAAA,SAAS,KAAT,EAAgB,KAAhB,QAA6B,yBAA7B;AACA,SAAS,gBAAT,EAA2B,gBAA3B,QAAmD,2BAAnD;AAQA;;;;AAIG;;AACH,OAAM,SAAU,aAAV,CACJ,SADI,EAEJ,OAFI,
|
|
1
|
+
{"version":3,"sources":["../../src/hooks/useARIAButton.ts"],"names":[],"mappings":"AAAA,SAAS,KAAT,EAAgB,KAAhB,QAA6B,yBAA7B;AACA,SAAS,gBAAT,EAA2B,gBAA3B,QAAmD,2BAAnD;AAQA;;;;AAIG;;AACH,OAAM,SAAU,aAAV,CACJ,SADI,EAEJ,OAFI,EAE4D;;;AAEhE,QAAM,cAAc,GAAG,gBAAgB,CAAC,SAAD,EAAY,OAAZ,CAAvC;AAEA,QAAM;AAAE,IAAA,QAAF;AAAY,IAAA,iBAAZ;AAA+B,IAAA,OAA/B;AAAwC,IAAA,SAAxC;AAAmD,IAAA,OAAnD;AAA4D,IAAA;AAA5D,MAA0E,cAAc,IAC5F,EADF;AAGA,QAAM,cAAc,GAAmC,gBAAgB,CAAC,EAAE,IAAG;AAC3E,QAAI,QAAQ,IAAI,iBAAhB,EAAmC;AACjC,MAAA,EAAE,CAAC,cAAH;AACA,MAAA,EAAE,CAAC,eAAH;AACD,KAHD,MAGO;AACL,MAAA,OAAO,KAAA,IAAP,IAAA,OAAO,KAAA,KAAA,CAAP,GAAO,KAAA,CAAP,GAAA,OAAO,CAAG,EAAH,CAAP;AACD;AACF,GAPsE,CAAvE;AASA,QAAM,gBAAgB,GAAqC,gBAAgB,CAAC,EAAE,IAAG;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
3
3
|
/**
|
|
4
4
|
* Merges disabled declaration with `aria-disabled`
|
|
5
5
|
*/
|
|
6
|
-
export declare function mergeARIADisabled(shorthand:
|
|
6
|
+
export declare function mergeARIADisabled(shorthand: SlotProps<{
|
|
7
7
|
'aria-disabled'?: string | boolean;
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
disabled?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/mergeARIADisabled.ts"],"names":[],"mappings":"AAGA;;AAEG;AACH,OAAM,SAAU,iBAAV,CACJ,SADI,EAKF;;;AAEF,QAAM,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../../src/utils/mergeARIADisabled.ts"],"names":[],"mappings":"AAGA;;AAEG;AACH,OAAM,SAAU,iBAAV,CACJ,SADI,EAKF;;;AAEF,QAAM,QAAQ,GAAG,CAAA,EAAA,GAAA,SAAS,CAAC,QAAV,MAAkB,IAAlB,IAAkB,EAAA,KAAA,KAAA,CAAlB,GAAkB,EAAlB,GAAsB,SAAS,CAAC,eAAD,CAAhD;;AACA,MAAI,OAAO,QAAP,KAAoB,QAAxB,EAAkC;AAChC,WAAO,QAAQ,KAAK,OAAb,GAAuB,KAAvB,GAA+B,IAAtC;AACD;;AACD,SAAO,QAAQ,KAAA,IAAR,IAAA,QAAQ,KAAA,KAAA,CAAR,GAAA,QAAA,GAAY,KAAnB;AACD","sourceRoot":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare type
|
|
1
|
+
import type { IntrinsicSlotProps, ResolveShorthandOptions, ShorthandProps } from '@fluentui/react-utilities';
|
|
2
|
+
export declare type ARIAButtonSlotProps = IntrinsicSlotProps<'button', 'a'> & {
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
disabledFocusable?: boolean;
|
|
5
5
|
};
|
|
@@ -8,4 +8,4 @@ export declare type ARIAButtonShorthandProps = IntrinsicShorthandProps<'button',
|
|
|
8
8
|
* for multiple scenarios of shorthand properties. Ensuring 1st rule of ARIA for cases
|
|
9
9
|
* where no attribute addition is required.
|
|
10
10
|
*/
|
|
11
|
-
export declare function useARIAButton<Required extends boolean = false>(shorthand: ShorthandProps<
|
|
11
|
+
export declare function useARIAButton<Required extends boolean = false>(shorthand: ShorthandProps<ARIAButtonSlotProps>, options?: ResolveShorthandOptions<ARIAButtonSlotProps, Required>): Required extends false ? ARIAButtonSlotProps | undefined : ARIAButtonSlotProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/hooks/useARIAButton.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,eAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAQA;;;;AAIG;;;AACH,SAAgB,aAAhB,CACE,SADF,EAEE,OAFF,
|
|
1
|
+
{"version":3,"sources":["../../src/hooks/useARIAButton.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,eAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAQA;;;;AAIG;;;AACH,SAAgB,aAAhB,CACE,SADF,EAEE,OAFF,EAEkE;;;AAEhE,QAAM,cAAc,GAAG,iBAAA,CAAA,gBAAA,CAAiB,SAAjB,EAA4B,OAA5B,CAAvB;AAEA,QAAM;AAAE,IAAA,QAAF;AAAY,IAAA,iBAAZ;AAA+B,IAAA,OAA/B;AAAwC,IAAA,SAAxC;AAAmD,IAAA,OAAnD;AAA4D,IAAA;AAA5D,MAA0E,cAAc,IAC5F,EADF;AAGA,QAAM,cAAc,GAAmC,iBAAA,CAAA,gBAAA,CAAiB,EAAE,IAAG;AAC3E,QAAI,QAAQ,IAAI,iBAAhB,EAAmC;AACjC,MAAA,EAAE,CAAC,cAAH;AACA,MAAA,EAAE,CAAC,eAAH;AACD,KAHD,MAGO;AACL,MAAA,OAAO,KAAA,IAAP,IA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R,IAAA,QAAQ,KAAA,KAAA,CAAR,GAAA,QAAA,GAAY,CAAnF;AACD,KA1BiB,CA4BlB;;;AACA,WAAO,cAAc,CAAC,iBAAtB;AACD;;AAED,SAAO,cAAP;AACD;;AAnGD,OAAA,CAAA,aAAA,GAAA,aAAA","sourceRoot":""}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { SlotProps } from '@fluentui/react-utilities';
|
|
3
3
|
/**
|
|
4
4
|
* Merges disabled declaration with `aria-disabled`
|
|
5
5
|
*/
|
|
6
|
-
export declare function mergeARIADisabled(shorthand:
|
|
6
|
+
export declare function mergeARIADisabled(shorthand: SlotProps<{
|
|
7
7
|
'aria-disabled'?: string | boolean;
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
disabled?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/mergeARIADisabled.ts"],"names":[],"mappings":";;;;;;AAGA;;AAEG;;AACH,SAAgB,iBAAhB,CACE,SADF,EAKI;;;AAEF,QAAM,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../../src/utils/mergeARIADisabled.ts"],"names":[],"mappings":";;;;;;AAGA;;AAEG;;AACH,SAAgB,iBAAhB,CACE,SADF,EAKI;;;AAEF,QAAM,QAAQ,GAAG,CAAA,EAAA,GAAA,SAAS,CAAC,QAAV,MAAkB,IAAlB,IAAkB,EAAA,KAAA,KAAA,CAAlB,GAAkB,EAAlB,GAAsB,SAAS,CAAC,eAAD,CAAhD;;AACA,MAAI,OAAO,QAAP,KAAoB,QAAxB,EAAkC;AAChC,WAAO,QAAQ,KAAK,OAAb,GAAuB,KAAvB,GAA+B,IAAtC;AACD;;AACD,SAAO,QAAQ,KAAA,IAAR,IAAA,QAAQ,KAAA,KAAA,CAAR,GAAA,QAAA,GAAY,KAAnB;AACD;;AAZD,OAAA,CAAA,iBAAA,GAAA,iBAAA","sourceRoot":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-aria",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-nightlyb8663b78ad20220207.1",
|
|
4
4
|
"description": "React helper to ensure ARIA",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"just": "just-scripts",
|
|
19
19
|
"lint": "just-scripts lint",
|
|
20
20
|
"start": "yarn storybook",
|
|
21
|
-
"test": "jest",
|
|
21
|
+
"test": "jest --passWithNoTests",
|
|
22
22
|
"docs": "api-extractor run --config=config/api-extractor.local.json --local",
|
|
23
|
-
"build:local": "tsc -p . --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output dist/react-aria/src && yarn docs",
|
|
24
|
-
"storybook": "
|
|
23
|
+
"build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-aria/src && yarn docs",
|
|
24
|
+
"storybook": "node ../../scripts/storybook/runner",
|
|
25
|
+
"type-check": "tsc -b tsconfig.json"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
28
|
"@fluentui/eslint-plugin": "*",
|
|
28
|
-
"@fluentui/jest-serializer-make-styles": "0.0.0-nightlya54302c0b220211124.1",
|
|
29
29
|
"@fluentui/react-conformance": "*",
|
|
30
30
|
"@fluentui/scripts": "^1.0.0",
|
|
31
31
|
"@types/enzyme": "3.10.3",
|
|
@@ -40,9 +40,8 @@
|
|
|
40
40
|
"react-test-renderer": "^16.3.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@fluentui/keyboard-keys": "0.0.0-
|
|
44
|
-
"@fluentui/react-
|
|
45
|
-
"@fluentui/react-utilities": "0.0.0-nightlya54302c0b220211124.0",
|
|
43
|
+
"@fluentui/keyboard-keys": "0.0.0-nightlyb8663b78ad20220207.1",
|
|
44
|
+
"@fluentui/react-utilities": "0.0.0-nightlyb8663b78ad20220207.1",
|
|
46
45
|
"tslib": "^2.1.0"
|
|
47
46
|
},
|
|
48
47
|
"peerDependencies": {
|