@fluentui/react-tabster 9.19.4 → 9.19.6

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.md CHANGED
@@ -1,12 +1,33 @@
1
1
  # Change Log - @fluentui/react-tabster
2
2
 
3
- This log was last generated on Fri, 15 Mar 2024 21:37:57 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 02 Apr 2024 09:41:20 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.19.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabster_v9.19.6)
8
+
9
+ Tue, 02 Apr 2024 09:41:20 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabster_v9.19.5..@fluentui/react-tabster_v9.19.6)
11
+
12
+ ### Patches
13
+
14
+ - Bump @fluentui/react-shared-contexts to v9.16.0 ([PR #30926](https://github.com/microsoft/fluentui/pull/30926) by beachball)
15
+ - Bump @fluentui/react-utilities to v9.18.6 ([PR #30926](https://github.com/microsoft/fluentui/pull/30926) by beachball)
16
+
17
+ ## [9.19.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabster_v9.19.5)
18
+
19
+ Mon, 18 Mar 2024 19:50:46 GMT
20
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabster_v9.19.4..@fluentui/react-tabster_v9.19.5)
21
+
22
+ ### Patches
23
+
24
+ - Bump @fluentui/react-shared-contexts to v9.15.2 ([PR #30600](https://github.com/microsoft/fluentui/pull/30600) by beachball)
25
+ - Bump @fluentui/react-theme to v9.1.19 ([PR #30600](https://github.com/microsoft/fluentui/pull/30600) by beachball)
26
+ - Bump @fluentui/react-utilities to v9.18.5 ([PR #30600](https://github.com/microsoft/fluentui/pull/30600) by beachball)
27
+
7
28
  ## [9.19.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabster_v9.19.4)
8
29
 
9
- Fri, 15 Mar 2024 21:37:57 GMT
30
+ Fri, 15 Mar 2024 21:43:49 GMT
10
31
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabster_v9.19.3..@fluentui/react-tabster_v9.19.4)
11
32
 
12
33
  ### Patches
@@ -9,18 +9,18 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- FOCUS_VISIBLE_ATTR: function() {
13
- return FOCUS_VISIBLE_ATTR;
14
- },
15
- FOCUS_WITHIN_ATTR: function() {
16
- return FOCUS_WITHIN_ATTR;
17
- },
18
12
  KEYBOARD_NAV_ATTRIBUTE: function() {
19
13
  return KEYBOARD_NAV_ATTRIBUTE;
20
14
  },
21
15
  KEYBOARD_NAV_SELECTOR: function() {
22
16
  return KEYBOARD_NAV_SELECTOR;
23
17
  },
18
+ FOCUS_VISIBLE_ATTR: function() {
19
+ return FOCUS_VISIBLE_ATTR;
20
+ },
21
+ FOCUS_WITHIN_ATTR: function() {
22
+ return FOCUS_WITHIN_ATTR;
23
+ },
24
24
  defaultOptions: function() {
25
25
  return defaultOptions;
26
26
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["constants.js"],"sourcesContent":["export const KEYBOARD_NAV_ATTRIBUTE = 'data-keyboard-nav';\nexport const KEYBOARD_NAV_SELECTOR = `:global([${KEYBOARD_NAV_ATTRIBUTE}])`;\n/**\n * @internal\n */ export const FOCUS_VISIBLE_ATTR = 'data-fui-focus-visible';\n/**\n * @internal\n */ export const FOCUS_WITHIN_ATTR = 'data-fui-focus-within';\nexport const defaultOptions = {\n style: {},\n selector: 'focus',\n customizeSelector: (selector)=>selector\n};\n"],"names":["FOCUS_VISIBLE_ATTR","FOCUS_WITHIN_ATTR","KEYBOARD_NAV_ATTRIBUTE","KEYBOARD_NAV_SELECTOR","defaultOptions","style","selector","customizeSelector"],"mappings":";;;;;;;;;;;IAIiBA,kBAAkB;eAAlBA;;IAGAC,iBAAiB;eAAjBA;;IAPJC,sBAAsB;eAAtBA;;IACAC,qBAAqB;eAArBA;;IAOAC,cAAc;eAAdA;;;AARN,MAAMF,yBAAyB;AAC/B,MAAMC,wBAAwB,CAAC,SAAS,EAAED,uBAAuB,EAAE,CAAC;AAGhE,MAAMF,qBAAqB;AAG3B,MAAMC,oBAAoB;AAC9B,MAAMG,iBAAiB;IAC1BC,OAAO,CAAC;IACRC,UAAU;IACVC,mBAAmB,CAACD,WAAWA;AACnC"}
1
+ {"version":3,"sources":["constants.js"],"sourcesContent":["export const KEYBOARD_NAV_ATTRIBUTE = 'data-keyboard-nav';\nexport const KEYBOARD_NAV_SELECTOR = `:global([${KEYBOARD_NAV_ATTRIBUTE}])`;\n/**\n * @internal\n */ export const FOCUS_VISIBLE_ATTR = 'data-fui-focus-visible';\n/**\n * @internal\n */ export const FOCUS_WITHIN_ATTR = 'data-fui-focus-within';\nexport const defaultOptions = {\n style: {},\n selector: 'focus',\n customizeSelector: (selector)=>selector\n};\n"],"names":["KEYBOARD_NAV_ATTRIBUTE","KEYBOARD_NAV_SELECTOR","FOCUS_VISIBLE_ATTR","FOCUS_WITHIN_ATTR","defaultOptions","style","selector","customizeSelector"],"mappings":";;;;;;;;;;;IAAaA,sBAAsB;eAAtBA;;IACAC,qBAAqB;eAArBA;;IAGIC,kBAAkB;eAAlBA;;IAGAC,iBAAiB;eAAjBA;;IACJC,cAAc;eAAdA;;;AARN,MAAMJ,yBAAyB;AAC/B,MAAMC,wBAAwB,CAAC,SAAS,EAAED,uBAAuB,EAAE,CAAC;AAGhE,MAAME,qBAAqB;AAG3B,MAAMC,oBAAoB;AAC9B,MAAMC,iBAAiB;IAC1BC,OAAO,CAAC;IACRC,UAAU;IACVC,mBAAmB,CAACD,WAAWA;AACnC"}
@@ -9,11 +9,11 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- useRestoreFocusSource: function() {
13
- return useRestoreFocusSource;
14
- },
15
12
  useRestoreFocusTarget: function() {
16
13
  return useRestoreFocusTarget;
14
+ },
15
+ useRestoreFocusSource: function() {
16
+ return useRestoreFocusSource;
17
17
  }
18
18
  });
19
19
  const _tabster = require("tabster");
@@ -1 +1 @@
1
- {"version":3,"sources":["useRestoreFocus.js"],"sourcesContent":["import { getRestorer, getTabsterAttribute, Types as TabsterTypes } from 'tabster';\nimport { useTabster } from './useTabster';\n/**\n * Focus will be restored to the most recent target element when it is lost from a source\n * @returns Attribute to apply to the target element where focus is restored\n */ export function useRestoreFocusTarget() {\n const tabster = useTabster();\n // Initializes the restorer API\n if (tabster) {\n getRestorer(tabster);\n }\n return getTabsterAttribute({\n restorer: {\n type: TabsterTypes.RestorerTypes.Target\n }\n });\n}\n/**\n * Focus will be restored to the most recent target element when it is lost from a source\n * @returns Attribute to apply to the element that might lose focus\n */ export function useRestoreFocusSource() {\n const tabster = useTabster();\n // Initializes the restorer API\n if (tabster) {\n getRestorer(tabster);\n }\n return getTabsterAttribute({\n restorer: {\n type: TabsterTypes.RestorerTypes.Source\n }\n });\n}\n"],"names":["useRestoreFocusSource","useRestoreFocusTarget","tabster","useTabster","getRestorer","getTabsterAttribute","restorer","type","TabsterTypes","RestorerTypes","Target","Source"],"mappings":";;;;;;;;;;;IAoBoBA,qBAAqB;eAArBA;;IAfAC,qBAAqB;eAArBA;;;yBALoD;4BAC7C;AAIhB,SAASA;IAChB,MAAMC,UAAUC,IAAAA,sBAAU;IAC1B,+BAA+B;IAC/B,IAAID,SAAS;QACTE,IAAAA,oBAAW,EAACF;IAChB;IACA,OAAOG,IAAAA,4BAAmB,EAAC;QACvBC,UAAU;YACNC,MAAMC,cAAY,CAACC,aAAa,CAACC,MAAM;QAC3C;IACJ;AACJ;AAIW,SAASV;IAChB,MAAME,UAAUC,IAAAA,sBAAU;IAC1B,+BAA+B;IAC/B,IAAID,SAAS;QACTE,IAAAA,oBAAW,EAACF;IAChB;IACA,OAAOG,IAAAA,4BAAmB,EAAC;QACvBC,UAAU;YACNC,MAAMC,cAAY,CAACC,aAAa,CAACE,MAAM;QAC3C;IACJ;AACJ"}
1
+ {"version":3,"sources":["useRestoreFocus.js"],"sourcesContent":["import { getRestorer, getTabsterAttribute, Types as TabsterTypes } from 'tabster';\nimport { useTabster } from './useTabster';\n/**\n * Focus will be restored to the most recent target element when it is lost from a source\n * @returns Attribute to apply to the target element where focus is restored\n */ export function useRestoreFocusTarget() {\n const tabster = useTabster();\n // Initializes the restorer API\n if (tabster) {\n getRestorer(tabster);\n }\n return getTabsterAttribute({\n restorer: {\n type: TabsterTypes.RestorerTypes.Target\n }\n });\n}\n/**\n * Focus will be restored to the most recent target element when it is lost from a source\n * @returns Attribute to apply to the element that might lose focus\n */ export function useRestoreFocusSource() {\n const tabster = useTabster();\n // Initializes the restorer API\n if (tabster) {\n getRestorer(tabster);\n }\n return getTabsterAttribute({\n restorer: {\n type: TabsterTypes.RestorerTypes.Source\n }\n });\n}\n"],"names":["useRestoreFocusTarget","useRestoreFocusSource","tabster","useTabster","getRestorer","getTabsterAttribute","restorer","type","TabsterTypes","RestorerTypes","Target","Source"],"mappings":";;;;;;;;;;;IAKoBA,qBAAqB;eAArBA;;IAeAC,qBAAqB;eAArBA;;;yBApBoD;4BAC7C;AAIhB,SAASD;IAChB,MAAME,UAAUC,IAAAA,sBAAU;IAC1B,+BAA+B;IAC/B,IAAID,SAAS;QACTE,IAAAA,oBAAW,EAACF;IAChB;IACA,OAAOG,IAAAA,4BAAmB,EAAC;QACvBC,UAAU;YACNC,MAAMC,cAAY,CAACC,aAAa,CAACC,MAAM;QAC3C;IACJ;AACJ;AAIW,SAAST;IAChB,MAAMC,UAAUC,IAAAA,sBAAU;IAC1B,+BAA+B;IAC/B,IAAID,SAAS;QACTE,IAAAA,oBAAW,EAACF;IAChB;IACA,OAAOG,IAAAA,4BAAmB,EAAC;QACvBC,UAAU;YACNC,MAAMC,cAAY,CAACC,aAAa,CAACE,MAAM;QAC3C;IACJ;AACJ"}
@@ -9,59 +9,38 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- KEYBORG_FOCUSIN: function() {
13
- return _keyborg.KEYBORG_FOCUSIN;
14
- },
15
- TabsterTypes: function() {
16
- return _tabster.Types;
17
- },
18
- applyFocusVisiblePolyfill: function() {
19
- return _index1.applyFocusVisiblePolyfill;
20
- },
21
- createCustomFocusIndicatorStyle: function() {
22
- return _index1.createCustomFocusIndicatorStyle;
23
- },
24
- createFocusOutlineStyle: function() {
25
- return _index1.createFocusOutlineStyle;
26
- },
27
- dispatchGroupperMoveFocusEvent: function() {
28
- return _tabster.dispatchGroupperMoveFocusEvent;
29
- },
30
- dispatchMoverMoveFocusEvent: function() {
31
- return _tabster.dispatchMoverMoveFocusEvent;
32
- },
33
12
  useArrowNavigationGroup: function() {
34
13
  return _index.useArrowNavigationGroup;
35
14
  },
15
+ useFocusableGroup: function() {
16
+ return _index.useFocusableGroup;
17
+ },
36
18
  useFocusFinders: function() {
37
19
  return _index.useFocusFinders;
38
20
  },
39
- useFocusObserved: function() {
40
- return _index.useFocusObserved;
41
- },
42
21
  useFocusVisible: function() {
43
22
  return _index.useFocusVisible;
44
23
  },
45
24
  useFocusWithin: function() {
46
25
  return _index.useFocusWithin;
47
26
  },
48
- useFocusableGroup: function() {
49
- return _index.useFocusableGroup;
50
- },
51
27
  useKeyboardNavAttribute: function() {
52
28
  return _index.useKeyboardNavAttribute;
53
29
  },
54
- useMergedTabsterAttributes_unstable: function() {
55
- return _index.useMergedTabsterAttributes_unstable;
56
- },
57
30
  useModalAttributes: function() {
58
31
  return _index.useModalAttributes;
59
32
  },
33
+ useTabsterAttributes: function() {
34
+ return _index.useTabsterAttributes;
35
+ },
60
36
  useObservedElement: function() {
61
37
  return _index.useObservedElement;
62
38
  },
63
- useOnKeyboardNavigationChange: function() {
64
- return _index.useOnKeyboardNavigationChange;
39
+ useFocusObserved: function() {
40
+ return _index.useFocusObserved;
41
+ },
42
+ useMergedTabsterAttributes_unstable: function() {
43
+ return _index.useMergedTabsterAttributes_unstable;
65
44
  },
66
45
  useRestoreFocusSource: function() {
67
46
  return _index.useRestoreFocusSource;
@@ -69,14 +48,35 @@ _export(exports, {
69
48
  useRestoreFocusTarget: function() {
70
49
  return _index.useRestoreFocusTarget;
71
50
  },
51
+ useUncontrolledFocus: function() {
52
+ return _index.useUncontrolledFocus;
53
+ },
54
+ useOnKeyboardNavigationChange: function() {
55
+ return _index.useOnKeyboardNavigationChange;
56
+ },
72
57
  useSetKeyboardNavigation: function() {
73
58
  return _index.useSetKeyboardNavigation;
74
59
  },
75
- useTabsterAttributes: function() {
76
- return _index.useTabsterAttributes;
60
+ createCustomFocusIndicatorStyle: function() {
61
+ return _index1.createCustomFocusIndicatorStyle;
77
62
  },
78
- useUncontrolledFocus: function() {
79
- return _index.useUncontrolledFocus;
63
+ createFocusOutlineStyle: function() {
64
+ return _index1.createFocusOutlineStyle;
65
+ },
66
+ applyFocusVisiblePolyfill: function() {
67
+ return _index1.applyFocusVisiblePolyfill;
68
+ },
69
+ KEYBORG_FOCUSIN: function() {
70
+ return _keyborg.KEYBORG_FOCUSIN;
71
+ },
72
+ TabsterTypes: function() {
73
+ return _tabster.Types;
74
+ },
75
+ dispatchGroupperMoveFocusEvent: function() {
76
+ return _tabster.dispatchGroupperMoveFocusEvent;
77
+ },
78
+ dispatchMoverMoveFocusEvent: function() {
79
+ return _tabster.dispatchMoverMoveFocusEvent;
80
80
  }
81
81
  });
82
82
  const _index = require("./hooks/index");
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js"],"sourcesContent":["export { useArrowNavigationGroup, useFocusableGroup, useFocusFinders, useFocusVisible, useFocusWithin, useKeyboardNavAttribute, useModalAttributes, useTabsterAttributes, useObservedElement, useFocusObserved, useMergedTabsterAttributes_unstable, useRestoreFocusSource, useRestoreFocusTarget, useUncontrolledFocus, useOnKeyboardNavigationChange, useSetKeyboardNavigation } from './hooks/index';\nexport { createCustomFocusIndicatorStyle, createFocusOutlineStyle } from './focus/index';\nexport { applyFocusVisiblePolyfill } from './focus/index';\nimport { Types as TabsterTypes, dispatchGroupperMoveFocusEvent, dispatchMoverMoveFocusEvent } from 'tabster';\nexport { KEYBORG_FOCUSIN } from 'keyborg';\n// @internal (undocumented)\nexport { TabsterTypes, dispatchGroupperMoveFocusEvent, dispatchMoverMoveFocusEvent };\n"],"names":["KEYBORG_FOCUSIN","TabsterTypes","applyFocusVisiblePolyfill","createCustomFocusIndicatorStyle","createFocusOutlineStyle","dispatchGroupperMoveFocusEvent","dispatchMoverMoveFocusEvent","useArrowNavigationGroup","useFocusFinders","useFocusObserved","useFocusVisible","useFocusWithin","useFocusableGroup","useKeyboardNavAttribute","useMergedTabsterAttributes_unstable","useModalAttributes","useObservedElement","useOnKeyboardNavigationChange","useRestoreFocusSource","useRestoreFocusTarget","useSetKeyboardNavigation","useTabsterAttributes","useUncontrolledFocus"],"mappings":";;;;;;;;;;;IAISA,eAAe;eAAfA,wBAAe;;IAEfC,YAAY;eAAZA,cAAY;;IAJZC,yBAAyB;eAAzBA,iCAAyB;;IADzBC,+BAA+B;eAA/BA,uCAA+B;;IAAEC,uBAAuB;eAAvBA,+BAAuB;;IAK1CC,8BAA8B;eAA9BA,uCAA8B;;IAAEC,2BAA2B;eAA3BA,oCAA2B;;IANzEC,uBAAuB;eAAvBA,8BAAuB;;IAAqBC,eAAe;eAAfA,sBAAe;;IAA0HC,gBAAgB;eAAhBA,uBAAgB;;IAAxIC,eAAe;eAAfA,sBAAe;;IAAEC,cAAc;eAAdA,qBAAc;;IAAnEC,iBAAiB;eAAjBA,wBAAiB;;IAAoDC,uBAAuB;eAAvBA,8BAAuB;;IAAkFC,mCAAmC;eAAnCA,0CAAmC;;IAAnHC,kBAAkB;eAAlBA,yBAAkB;;IAAwBC,kBAAkB;eAAlBA,yBAAkB;;IAA6HC,6BAA6B;eAA7BA,oCAA6B;;IAAjGC,qBAAqB;eAArBA,4BAAqB;;IAAEC,qBAAqB;eAArBA,4BAAqB;;IAAuDC,wBAAwB;eAAxBA,+BAAwB;;IAA5NC,oBAAoB;eAApBA,2BAAoB;;IAA2HC,oBAAoB;eAApBA,2BAAoB;;;uBAAiE;wBAC/S;yBAE0B;yBACnE"}
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export { useArrowNavigationGroup, useFocusableGroup, useFocusFinders, useFocusVisible, useFocusWithin, useKeyboardNavAttribute, useModalAttributes, useTabsterAttributes, useObservedElement, useFocusObserved, useMergedTabsterAttributes_unstable, useRestoreFocusSource, useRestoreFocusTarget, useUncontrolledFocus, useOnKeyboardNavigationChange, useSetKeyboardNavigation } from './hooks/index';\nexport { createCustomFocusIndicatorStyle, createFocusOutlineStyle } from './focus/index';\nexport { applyFocusVisiblePolyfill } from './focus/index';\nimport { Types as TabsterTypes, dispatchGroupperMoveFocusEvent, dispatchMoverMoveFocusEvent } from 'tabster';\nexport { KEYBORG_FOCUSIN } from 'keyborg';\n// @internal (undocumented)\nexport { TabsterTypes, dispatchGroupperMoveFocusEvent, dispatchMoverMoveFocusEvent };\n"],"names":["useArrowNavigationGroup","useFocusableGroup","useFocusFinders","useFocusVisible","useFocusWithin","useKeyboardNavAttribute","useModalAttributes","useTabsterAttributes","useObservedElement","useFocusObserved","useMergedTabsterAttributes_unstable","useRestoreFocusSource","useRestoreFocusTarget","useUncontrolledFocus","useOnKeyboardNavigationChange","useSetKeyboardNavigation","createCustomFocusIndicatorStyle","createFocusOutlineStyle","applyFocusVisiblePolyfill","KEYBORG_FOCUSIN","TabsterTypes","dispatchGroupperMoveFocusEvent","dispatchMoverMoveFocusEvent"],"mappings":";;;;;;;;;;;IAASA,uBAAuB;eAAvBA,8BAAuB;;IAAEC,iBAAiB;eAAjBA,wBAAiB;;IAAEC,eAAe;eAAfA,sBAAe;;IAAEC,eAAe;eAAfA,sBAAe;;IAAEC,cAAc;eAAdA,qBAAc;;IAAEC,uBAAuB;eAAvBA,8BAAuB;;IAAEC,kBAAkB;eAAlBA,yBAAkB;;IAAEC,oBAAoB;eAApBA,2BAAoB;;IAAEC,kBAAkB;eAAlBA,yBAAkB;;IAAEC,gBAAgB;eAAhBA,uBAAgB;;IAAEC,mCAAmC;eAAnCA,0CAAmC;;IAAEC,qBAAqB;eAArBA,4BAAqB;;IAAEC,qBAAqB;eAArBA,4BAAqB;;IAAEC,oBAAoB;eAApBA,2BAAoB;;IAAEC,6BAA6B;eAA7BA,oCAA6B;;IAAEC,wBAAwB;eAAxBA,+BAAwB;;IACvWC,+BAA+B;eAA/BA,uCAA+B;;IAAEC,uBAAuB;eAAvBA,+BAAuB;;IACxDC,yBAAyB;eAAzBA,iCAAyB;;IAEzBC,eAAe;eAAfA,wBAAe;;IAEfC,YAAY;eAAZA,cAAY;;IAAEC,8BAA8B;eAA9BA,uCAA8B;;IAAEC,2BAA2B;eAA3BA,oCAA2B;;;uBANsS;wBAC/S;yBAE0B;yBACnE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-tabster",
3
- "version": "9.19.4",
3
+ "version": "9.19.6",
4
4
  "description": "Utilities for focus management and facade for tabster",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -31,9 +31,9 @@
31
31
  "@fluentui/scripts-tasks": "*"
32
32
  },
33
33
  "dependencies": {
34
- "@fluentui/react-shared-contexts": "^9.15.1",
35
- "@fluentui/react-theme": "^9.1.18",
36
- "@fluentui/react-utilities": "^9.18.4",
34
+ "@fluentui/react-shared-contexts": "^9.16.0",
35
+ "@fluentui/react-theme": "^9.1.19",
36
+ "@fluentui/react-utilities": "^9.18.6",
37
37
  "@griffel/react": "^1.5.14",
38
38
  "@swc/helpers": "^0.5.1",
39
39
  "keyborg": "^2.5.0",