@fluentui/react-tabster 0.0.0-nightly-20230317-1454.1 → 0.0.0-nightly-20230321-0440.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 +9 -9
- package/CHANGELOG.md +7 -7
- package/lib/focus/constants.js +4 -4
- package/lib/focus/constants.js.map +1 -1
- package/lib/focus/createCustomFocusIndicatorStyle.js +7 -7
- package/lib/focus/createCustomFocusIndicatorStyle.js.map +1 -1
- package/lib/focus/createFocusOutlineStyle.js +15 -14
- package/lib/focus/createFocusOutlineStyle.js.map +1 -1
- package/lib/focus/focusVisiblePolyfill.js +7 -7
- package/lib/focus/focusVisiblePolyfill.js.map +1 -1
- package/lib/focus/focusWithinPolyfill.js +6 -6
- package/lib/focus/focusWithinPolyfill.js.map +1 -1
- package/lib/focus/index.js +4 -4
- package/lib/focus/index.js.map +1 -1
- package/lib/hooks/index.js +8 -8
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/useArrowNavigationGroup.js +8 -8
- package/lib/hooks/useArrowNavigationGroup.js.map +1 -1
- package/lib/hooks/useFocusFinders.js +7 -7
- package/lib/hooks/useFocusFinders.js.map +1 -1
- package/lib/hooks/useFocusVisible.js +6 -5
- package/lib/hooks/useFocusVisible.js.map +1 -1
- package/lib/hooks/useFocusWithin.js +4 -4
- package/lib/hooks/useFocusWithin.js.map +1 -1
- package/lib/hooks/useFocusableGroup.js +7 -7
- package/lib/hooks/useFocusableGroup.js.map +1 -1
- package/lib/hooks/useKeyboardNavAttribute.js +5 -5
- package/lib/hooks/useKeyboardNavAttribute.js.map +1 -1
- package/lib/hooks/useModalAttributes.js +5 -5
- package/lib/hooks/useModalAttributes.js.map +1 -1
- package/lib/hooks/useTabster.js +5 -5
- package/lib/hooks/useTabster.js.map +1 -1
- package/lib/hooks/useTabsterAttributes.js +2 -2
- package/lib/hooks/useTabsterAttributes.js.map +1 -1
- package/lib/index.js +3 -3
- package/lib/index.js.map +1 -1
- package/lib-commonjs/focus/constants.js +17 -23
- package/lib-commonjs/focus/constants.js.map +1 -1
- package/lib-commonjs/focus/createCustomFocusIndicatorStyle.js +31 -23
- package/lib-commonjs/focus/createCustomFocusIndicatorStyle.js.map +1 -1
- package/lib-commonjs/focus/createFocusOutlineStyle.js +57 -42
- package/lib-commonjs/focus/createFocusOutlineStyle.js.map +1 -1
- package/lib-commonjs/focus/focusVisiblePolyfill.js +68 -65
- package/lib-commonjs/focus/focusVisiblePolyfill.js.map +1 -1
- package/lib-commonjs/focus/focusWithinPolyfill.js +47 -44
- package/lib-commonjs/focus/focusWithinPolyfill.js.map +1 -1
- package/lib-commonjs/focus/index.js +7 -8
- package/lib-commonjs/focus/index.js.map +1 -1
- package/lib-commonjs/hooks/index.js +11 -12
- package/lib-commonjs/hooks/index.js.map +1 -1
- package/lib-commonjs/hooks/useArrowNavigationGroup.js +51 -42
- package/lib-commonjs/hooks/useArrowNavigationGroup.js.map +1 -1
- package/lib-commonjs/hooks/useFocusFinders.js +58 -64
- package/lib-commonjs/hooks/useFocusFinders.js.map +1 -1
- package/lib-commonjs/hooks/useFocusVisible.js +18 -23
- package/lib-commonjs/hooks/useFocusVisible.js.map +1 -1
- package/lib-commonjs/hooks/useFocusWithin.js +23 -22
- package/lib-commonjs/hooks/useFocusWithin.js.map +1 -1
- package/lib-commonjs/hooks/useFocusableGroup.js +32 -30
- package/lib-commonjs/hooks/useFocusableGroup.js.map +1 -1
- package/lib-commonjs/hooks/useKeyboardNavAttribute.js +38 -37
- package/lib-commonjs/hooks/useKeyboardNavAttribute.js.map +1 -1
- package/lib-commonjs/hooks/useModalAttributes.js +44 -35
- package/lib-commonjs/hooks/useModalAttributes.js.map +1 -1
- package/lib-commonjs/hooks/useTabster.js +38 -36
- package/lib-commonjs/hooks/useTabster.js.map +1 -1
- package/lib-commonjs/hooks/useTabsterAttributes.js +16 -14
- package/lib-commonjs/hooks/useTabsterAttributes.js.map +1 -1
- package/lib-commonjs/index.js +73 -25
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +7 -6
- package/.swcrc +0 -39
@@ -1,40 +1,42 @@
|
|
1
1
|
"use strict";
|
2
|
+
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
3
|
-
|
4
|
-
});
|
5
|
-
Object.defineProperty(exports, "useTabster", {
|
6
|
-
enumerable: true,
|
7
|
-
get: ()=>useTabster
|
4
|
+
value: true
|
8
5
|
});
|
9
|
-
|
10
|
-
const
|
11
|
-
const
|
12
|
-
const
|
13
|
-
const
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
6
|
+
exports.useTabster = void 0;
|
7
|
+
const React = /*#__PURE__*/require("react");
|
8
|
+
const react_shared_contexts_1 = /*#__PURE__*/require("@fluentui/react-shared-contexts");
|
9
|
+
const tabster_1 = /*#__PURE__*/require("tabster");
|
10
|
+
const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
|
11
|
+
/**
|
12
|
+
* Tries to get a tabster instance on the current window or creates a new one
|
13
|
+
* Since Tabster is single instance only, feel free to call this hook to ensure Tabster exists if necessary
|
14
|
+
*
|
15
|
+
* @internal
|
16
|
+
* @returns Tabster core instance
|
17
|
+
*/
|
18
|
+
const useTabster = () => {
|
19
|
+
const {
|
20
|
+
targetDocument
|
21
|
+
} = react_shared_contexts_1.useFluent_unstable();
|
22
|
+
const defaultView = (targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.defaultView) || undefined;
|
23
|
+
const tabster = React.useMemo(() => {
|
24
|
+
if (!defaultView) {
|
25
|
+
return null;
|
26
|
+
}
|
27
|
+
return tabster_1.createTabster(defaultView, {
|
28
|
+
autoRoot: {},
|
29
|
+
controlTab: false
|
30
|
+
});
|
31
|
+
}, [defaultView]);
|
32
|
+
react_utilities_1.useIsomorphicLayoutEffect(() => {
|
33
|
+
return () => {
|
34
|
+
if (tabster) {
|
35
|
+
tabster_1.disposeTabster(tabster);
|
36
|
+
}
|
37
|
+
};
|
38
|
+
}, [tabster]);
|
39
|
+
return tabster;
|
40
|
+
};
|
41
|
+
exports.useTabster = useTabster;
|
40
42
|
//# sourceMappingURL=useTabster.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"names":["React","require","react_shared_contexts_1","tabster_1","react_utilities_1","useTabster","targetDocument","useFluent_unstable","defaultView","undefined","tabster","useMemo","createTabster","autoRoot","controlTab","useIsomorphicLayoutEffect","disposeTabster","exports"],"sources":["../../../../../../../../packages/react-components/react-tabster/src/hooks/useTabster.ts"],"sourcesContent":["import * as React from 'react';\nimport { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\nimport { createTabster, disposeTabster, Types as TabsterTypes } from 'tabster';\nimport { useIsomorphicLayoutEffect } from '@fluentui/react-utilities';\n\n/**\n * Tries to get a tabster instance on the current window or creates a new one\n * Since Tabster is single instance only, feel free to call this hook to ensure Tabster exists if necessary\n *\n * @internal\n * @returns Tabster core instance\n */\nexport const useTabster = (): TabsterTypes.TabsterCore | null => {\n const { targetDocument } = useFluent();\n\n const defaultView = targetDocument?.defaultView || undefined;\n const tabster = React.useMemo(() => {\n if (!defaultView) {\n return null;\n }\n\n return createTabster(defaultView, { autoRoot: {}, controlTab: false });\n }, [defaultView]);\n\n useIsomorphicLayoutEffect(() => {\n return () => {\n if (tabster) {\n disposeTabster(tabster);\n }\n };\n }, [tabster]);\n\n return tabster;\n};\n"],"mappings":";;;;;;AAAA,MAAAA,KAAA,gBAAAC,OAAA;AACA,MAAAC,uBAAA,gBAAAD,OAAA;AACA,MAAAE,SAAA,gBAAAF,OAAA;AACA,MAAAG,iBAAA,gBAAAH,OAAA;AAEA;;;;;;;AAOO,MAAMI,UAAU,GAAGA,CAAA,KAAsC;EAC9D,MAAM;IAAEC;EAAc,CAAE,GAAGJ,uBAAA,CAAAK,kBAAS,EAAE;EAEtC,MAAMC,WAAW,GAAG,CAAAF,cAAc,aAAdA,cAAc,uBAAdA,cAAc,CAAEE,WAAW,KAAIC,SAAS;EAC5D,MAAMC,OAAO,GAAGV,KAAK,CAACW,OAAO,CAAC,MAAK;IACjC,IAAI,CAACH,WAAW,EAAE;MAChB,OAAO,IAAI;;IAGb,OAAOL,SAAA,CAAAS,aAAa,CAACJ,WAAW,EAAE;MAAEK,QAAQ,EAAE,EAAE;MAAEC,UAAU,EAAE;IAAK,CAAE,CAAC;EACxE,CAAC,EAAE,CAACN,WAAW,CAAC,CAAC;EAEjBJ,iBAAA,CAAAW,yBAAyB,CAAC,MAAK;IAC7B,OAAO,MAAK;MACV,IAAIL,OAAO,EAAE;QACXP,SAAA,CAAAa,cAAc,CAACN,OAAO,CAAC;;IAE3B,CAAC;EACH,CAAC,EAAE,CAACA,OAAO,CAAC,CAAC;EAEb,OAAOA,OAAO;AAChB,CAAC;AArBYO,OAAA,CAAAZ,UAAU,GAAAA,UAAA"}
|
@@ -1,18 +1,20 @@
|
|
1
1
|
"use strict";
|
2
|
+
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
3
|
-
|
4
|
-
});
|
5
|
-
Object.defineProperty(exports, "useTabsterAttributes", {
|
6
|
-
enumerable: true,
|
7
|
-
get: ()=>useTabsterAttributes
|
4
|
+
value: true
|
8
5
|
});
|
9
|
-
|
10
|
-
const
|
11
|
-
const
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
6
|
+
exports.useTabsterAttributes = void 0;
|
7
|
+
const tabster_1 = /*#__PURE__*/require("tabster");
|
8
|
+
const useTabster_1 = /*#__PURE__*/require("./useTabster");
|
9
|
+
/**
|
10
|
+
* @internal
|
11
|
+
* Hook that returns tabster attributes while ensuring tabster exists
|
12
|
+
*/
|
13
|
+
const useTabsterAttributes = props => {
|
14
|
+
// A tabster instance is not necessary to generate tabster attributes
|
15
|
+
// but calling the hook will ensure that a tabster instance exists internally and avoids consumers doing the same
|
16
|
+
useTabster_1.useTabster();
|
17
|
+
return tabster_1.getTabsterAttribute(props);
|
18
|
+
};
|
19
|
+
exports.useTabsterAttributes = useTabsterAttributes;
|
18
20
|
//# sourceMappingURL=useTabsterAttributes.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"names":["tabster_1","require","useTabster_1","useTabsterAttributes","props","useTabster","getTabsterAttribute","exports"],"sources":["../../../../../../../../packages/react-components/react-tabster/src/hooks/useTabsterAttributes.ts"],"sourcesContent":["import { getTabsterAttribute, Types as TabsterTypes } from 'tabster';\nimport { useTabster } from './useTabster';\n\n/**\n * @internal\n * Hook that returns tabster attributes while ensuring tabster exists\n */\nexport const useTabsterAttributes = (props: TabsterTypes.TabsterAttributeProps): TabsterTypes.TabsterDOMAttribute => {\n // A tabster instance is not necessary to generate tabster attributes\n // but calling the hook will ensure that a tabster instance exists internally and avoids consumers doing the same\n useTabster();\n\n return getTabsterAttribute(props);\n};\n"],"mappings":";;;;;;AAAA,MAAAA,SAAA,gBAAAC,OAAA;AACA,MAAAC,YAAA,gBAAAD,OAAA;AAEA;;;;AAIO,MAAME,oBAAoB,GAAIC,KAAyC,IAAsC;EAClH;EACA;EACAF,YAAA,CAAAG,UAAU,EAAE;EAEZ,OAAOL,SAAA,CAAAM,mBAAmB,CAACF,KAAK,CAAC;AACnC,CAAC;AANYG,OAAA,CAAAJ,oBAAoB,GAAAA,oBAAA"}
|
package/lib-commonjs/index.js
CHANGED
@@ -1,28 +1,76 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
3
|
-
value: true
|
4
|
-
});
|
5
|
-
function _export(target, all) {
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
7
|
-
enumerable: true,
|
8
|
-
get: all[name]
|
9
|
-
});
|
10
|
-
}
|
11
|
-
_export(exports, {
|
12
|
-
useArrowNavigationGroup: ()=>_index.useArrowNavigationGroup,
|
13
|
-
useFocusableGroup: ()=>_index.useFocusableGroup,
|
14
|
-
useFocusFinders: ()=>_index.useFocusFinders,
|
15
|
-
useFocusVisible: ()=>_index.useFocusVisible,
|
16
|
-
useFocusWithin: ()=>_index.useFocusWithin,
|
17
|
-
useKeyboardNavAttribute: ()=>_index.useKeyboardNavAttribute,
|
18
|
-
useModalAttributes: ()=>_index.useModalAttributes,
|
19
|
-
useTabsterAttributes: ()=>_index.useTabsterAttributes,
|
20
|
-
createCustomFocusIndicatorStyle: ()=>_index1.createCustomFocusIndicatorStyle,
|
21
|
-
createFocusOutlineStyle: ()=>_index1.createFocusOutlineStyle,
|
22
|
-
applyFocusVisiblePolyfill: ()=>_index1.applyFocusVisiblePolyfill
|
23
|
-
});
|
24
|
-
const _index = require("./hooks/index");
|
25
|
-
const _index1 = require("./focus/index");
|
26
|
-
//# sourceMappingURL=index.js.map
|
27
2
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.applyFocusVisiblePolyfill = exports.createFocusOutlineStyle = exports.createCustomFocusIndicatorStyle = exports.useTabsterAttributes = exports.useModalAttributes = exports.useKeyboardNavAttribute = exports.useFocusWithin = exports.useFocusVisible = exports.useFocusFinders = exports.useFocusableGroup = exports.useArrowNavigationGroup = void 0;
|
7
|
+
var index_1 = /*#__PURE__*/require("./hooks/index");
|
8
|
+
Object.defineProperty(exports, "useArrowNavigationGroup", {
|
9
|
+
enumerable: true,
|
10
|
+
get: function () {
|
11
|
+
return index_1.useArrowNavigationGroup;
|
12
|
+
}
|
13
|
+
});
|
14
|
+
Object.defineProperty(exports, "useFocusableGroup", {
|
15
|
+
enumerable: true,
|
16
|
+
get: function () {
|
17
|
+
return index_1.useFocusableGroup;
|
18
|
+
}
|
19
|
+
});
|
20
|
+
Object.defineProperty(exports, "useFocusFinders", {
|
21
|
+
enumerable: true,
|
22
|
+
get: function () {
|
23
|
+
return index_1.useFocusFinders;
|
24
|
+
}
|
25
|
+
});
|
26
|
+
Object.defineProperty(exports, "useFocusVisible", {
|
27
|
+
enumerable: true,
|
28
|
+
get: function () {
|
29
|
+
return index_1.useFocusVisible;
|
30
|
+
}
|
31
|
+
});
|
32
|
+
Object.defineProperty(exports, "useFocusWithin", {
|
33
|
+
enumerable: true,
|
34
|
+
get: function () {
|
35
|
+
return index_1.useFocusWithin;
|
36
|
+
}
|
37
|
+
});
|
38
|
+
Object.defineProperty(exports, "useKeyboardNavAttribute", {
|
39
|
+
enumerable: true,
|
40
|
+
get: function () {
|
41
|
+
return index_1.useKeyboardNavAttribute;
|
42
|
+
}
|
43
|
+
});
|
44
|
+
Object.defineProperty(exports, "useModalAttributes", {
|
45
|
+
enumerable: true,
|
46
|
+
get: function () {
|
47
|
+
return index_1.useModalAttributes;
|
48
|
+
}
|
49
|
+
});
|
50
|
+
Object.defineProperty(exports, "useTabsterAttributes", {
|
51
|
+
enumerable: true,
|
52
|
+
get: function () {
|
53
|
+
return index_1.useTabsterAttributes;
|
54
|
+
}
|
55
|
+
});
|
56
|
+
var index_2 = /*#__PURE__*/require("./focus/index");
|
57
|
+
Object.defineProperty(exports, "createCustomFocusIndicatorStyle", {
|
58
|
+
enumerable: true,
|
59
|
+
get: function () {
|
60
|
+
return index_2.createCustomFocusIndicatorStyle;
|
61
|
+
}
|
62
|
+
});
|
63
|
+
Object.defineProperty(exports, "createFocusOutlineStyle", {
|
64
|
+
enumerable: true,
|
65
|
+
get: function () {
|
66
|
+
return index_2.createFocusOutlineStyle;
|
67
|
+
}
|
68
|
+
});
|
69
|
+
var index_3 = /*#__PURE__*/require("./focus/index");
|
70
|
+
Object.defineProperty(exports, "applyFocusVisiblePolyfill", {
|
71
|
+
enumerable: true,
|
72
|
+
get: function () {
|
73
|
+
return index_3.applyFocusVisiblePolyfill;
|
74
|
+
}
|
75
|
+
});
|
28
76
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"names":["index_1","require","Object","defineProperty","exports","enumerable","get","useArrowNavigationGroup","useFocusableGroup","useFocusFinders","useFocusVisible","useFocusWithin","useKeyboardNavAttribute","useModalAttributes","useTabsterAttributes","index_2","createCustomFocusIndicatorStyle","createFocusOutlineStyle","index_3","applyFocusVisiblePolyfill"],"sources":["../../../../../../../packages/react-components/react-tabster/src/index.ts"],"sourcesContent":["export {\n useArrowNavigationGroup,\n useFocusableGroup,\n useFocusFinders,\n useFocusVisible,\n useFocusWithin,\n useKeyboardNavAttribute,\n useModalAttributes,\n useTabsterAttributes,\n} from './hooks/index';\nexport type {\n UseArrowNavigationGroupOptions,\n UseFocusableGroupOptions,\n UseModalAttributesOptions,\n} from './hooks/index';\n\nexport { createCustomFocusIndicatorStyle, createFocusOutlineStyle } from './focus/index';\n\nexport type {\n CreateCustomFocusIndicatorStyleOptions,\n CreateFocusOutlineStyleOptions,\n FocusOutlineOffset,\n FocusOutlineStyleOptions,\n} from './focus/index';\n\nexport { applyFocusVisiblePolyfill } from './focus/index';\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,gBAAAC,OAAA;AACEC,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAN,OAAA,CAAAO,uBAAuB;EAAA;AAAA;AACvBL,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAN,OAAA,CAAAQ,iBAAiB;EAAA;AAAA;AACjBN,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAN,OAAA,CAAAS,eAAe;EAAA;AAAA;AACfP,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAN,OAAA,CAAAU,eAAe;EAAA;AAAA;AACfR,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAN,OAAA,CAAAW,cAAc;EAAA;AAAA;AACdT,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAN,OAAA,CAAAY,uBAAuB;EAAA;AAAA;AACvBV,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAN,OAAA,CAAAa,kBAAkB;EAAA;AAAA;AAClBX,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAN,OAAA,CAAAc,oBAAoB;EAAA;AAAA;AAQtB,IAAAC,OAAA,gBAAAd,OAAA;AAASC,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAS,OAAA,CAAAC,+BAA+B;EAAA;AAAA;AAAEd,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAS,OAAA,CAAAE,uBAAuB;EAAA;AAAA;AASjE,IAAAC,OAAA,gBAAAjB,OAAA;AAASC,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAY,OAAA,CAAAC,yBAAyB;EAAA;AAAA"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-tabster",
|
3
|
-
"version": "0.0.0-nightly-
|
3
|
+
"version": "0.0.0-nightly-20230321-0440.1",
|
4
4
|
"description": "Utilities for focus management and facade for tabster",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"lint": "just-scripts lint",
|
22
22
|
"test": "jest --passWithNoTests",
|
23
23
|
"type-check": "tsc -b tsconfig.json",
|
24
|
-
"generate-api": "just-scripts
|
24
|
+
"generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor"
|
25
25
|
},
|
26
26
|
"devDependencies": {
|
27
27
|
"@fluentui/eslint-plugin": "*",
|
@@ -31,12 +31,12 @@
|
|
31
31
|
},
|
32
32
|
"dependencies": {
|
33
33
|
"@griffel/react": "^1.5.2",
|
34
|
-
"@fluentui/react-shared-contexts": "0.0.0-nightly-
|
35
|
-
"@fluentui/react-theme": "0.0.0-nightly-
|
36
|
-
"@fluentui/react-utilities": "0.0.0-nightly-
|
34
|
+
"@fluentui/react-shared-contexts": "0.0.0-nightly-20230321-0440.1",
|
35
|
+
"@fluentui/react-theme": "0.0.0-nightly-20230321-0440.1",
|
36
|
+
"@fluentui/react-utilities": "0.0.0-nightly-20230321-0440.1",
|
37
37
|
"keyborg": "^2.0.0",
|
38
38
|
"tabster": "^4.1.1",
|
39
|
-
"
|
39
|
+
"tslib": "^2.1.0"
|
40
40
|
},
|
41
41
|
"peerDependencies": {
|
42
42
|
"@types/react": ">=16.8.0 <19.0.0",
|
@@ -48,6 +48,7 @@
|
|
48
48
|
"exports": {
|
49
49
|
".": {
|
50
50
|
"types": "./dist/index.d.ts",
|
51
|
+
"node": "./lib-commonjs/index.js",
|
51
52
|
"import": "./lib/index.js",
|
52
53
|
"require": "./lib-commonjs/index.js"
|
53
54
|
},
|
package/.swcrc
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"$schema": "https://json.schemastore.org/swcrc",
|
3
|
-
"env": {
|
4
|
-
"targets": {
|
5
|
-
"chrome": "84",
|
6
|
-
"edge": "84",
|
7
|
-
"firefox": "75",
|
8
|
-
"opera": "73",
|
9
|
-
"safari": "14.1"
|
10
|
-
},
|
11
|
-
"bugfixes": true
|
12
|
-
},
|
13
|
-
"exclude": [
|
14
|
-
"/testing",
|
15
|
-
"/**/*.cy.ts",
|
16
|
-
"/**/*.cy.tsx",
|
17
|
-
"/**/*.spec.ts",
|
18
|
-
"/**/*.spec.tsx",
|
19
|
-
"/**/*.test.ts",
|
20
|
-
"/**/*.test.tsx"
|
21
|
-
],
|
22
|
-
"jsc": {
|
23
|
-
"parser": {
|
24
|
-
"syntax": "typescript",
|
25
|
-
"tsx": true,
|
26
|
-
"decorators": false,
|
27
|
-
"dynamicImport": false
|
28
|
-
},
|
29
|
-
"externalHelpers": true,
|
30
|
-
"transform": {
|
31
|
-
"react": {
|
32
|
-
"runtime": "classic",
|
33
|
-
"useSpread": true
|
34
|
-
}
|
35
|
-
}
|
36
|
-
},
|
37
|
-
"minify": false,
|
38
|
-
"sourceMaps": true
|
39
|
-
}
|