@fluentui/react-tabster 0.0.0-nightly-20231017-0415.1 → 0.0.0-nightly-20231019-0416.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 CHANGED
@@ -2,9 +2,9 @@
2
2
  "name": "@fluentui/react-tabster",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 17 Oct 2023 04:23:04 GMT",
6
- "tag": "@fluentui/react-tabster_v0.0.0-nightly-20231017-0415.1",
7
- "version": "0.0.0-nightly-20231017-0415.1",
5
+ "date": "Thu, 19 Oct 2023 04:23:43 GMT",
6
+ "tag": "@fluentui/react-tabster_v0.0.0-nightly-20231019-0416.1",
7
+ "version": "0.0.0-nightly-20231019-0416.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
@@ -16,20 +16,49 @@
16
16
  {
17
17
  "author": "beachball",
18
18
  "package": "@fluentui/react-tabster",
19
- "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20231017-0415.1",
20
- "commit": "969aef94c02a6cdeea86ac88f118d7c619d299c0"
19
+ "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20231019-0416.1",
20
+ "commit": "e56eebedfe366d1c6488d161b4e0febcfc0bb47b"
21
21
  },
22
22
  {
23
23
  "author": "beachball",
24
24
  "package": "@fluentui/react-tabster",
25
- "comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20231017-0415.1",
26
- "commit": "969aef94c02a6cdeea86ac88f118d7c619d299c0"
25
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20231019-0416.1",
26
+ "commit": "e56eebedfe366d1c6488d161b4e0febcfc0bb47b"
27
27
  },
28
28
  {
29
29
  "author": "beachball",
30
30
  "package": "@fluentui/react-tabster",
31
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20231017-0415.1",
32
- "commit": "969aef94c02a6cdeea86ac88f118d7c619d299c0"
31
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20231019-0416.1",
32
+ "commit": "e56eebedfe366d1c6488d161b4e0febcfc0bb47b"
33
+ }
34
+ ]
35
+ }
36
+ },
37
+ {
38
+ "date": "Wed, 18 Oct 2023 17:54:06 GMT",
39
+ "tag": "@fluentui/react-tabster_v9.14.0",
40
+ "version": "9.14.0",
41
+ "comments": {
42
+ "patch": [
43
+ {
44
+ "author": "lingfangao@hotmail.com",
45
+ "package": "@fluentui/react-tabster",
46
+ "commit": "335cad5169597b51398b75eb44dc40003c29830b",
47
+ "comment": "chore: bump keyborg to 2.1.0"
48
+ }
49
+ ],
50
+ "minor": [
51
+ {
52
+ "author": "lingfangao@hotmail.com",
53
+ "package": "@fluentui/react-tabster",
54
+ "commit": "aa6771ed95c5af78f413b3c20068867f032cf4c4",
55
+ "comment": "feat: bump to tabster 4.8.0 in order to support support virtual parents"
56
+ },
57
+ {
58
+ "author": "beachball",
59
+ "package": "@fluentui/react-tabster",
60
+ "comment": "Bump @fluentui/react-utilities to v9.15.1",
61
+ "commit": "c0d3065982e1646c54ba00c1d524248b792dbcad"
33
62
  }
34
63
  ]
35
64
  }
package/CHANGELOG.md CHANGED
@@ -1,20 +1,34 @@
1
1
  # Change Log - @fluentui/react-tabster
2
2
 
3
- This log was last generated on Tue, 17 Oct 2023 04:23:04 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 19 Oct 2023 04:23:43 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20231017-0415.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabster_v0.0.0-nightly-20231017-0415.1)
7
+ ## [0.0.0-nightly-20231019-0416.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabster_v0.0.0-nightly-20231019-0416.1)
8
8
 
9
- Tue, 17 Oct 2023 04:23:04 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabster_v9.13.6..@fluentui/react-tabster_v0.0.0-nightly-20231017-0415.1)
9
+ Thu, 19 Oct 2023 04:23:43 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabster_v9.14.0..@fluentui/react-tabster_v0.0.0-nightly-20231019-0416.1)
11
11
 
12
12
  ### Changes
13
13
 
14
14
  - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com)
15
- - Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20231017-0415.1 ([commit](https://github.com/microsoft/fluentui/commit/969aef94c02a6cdeea86ac88f118d7c619d299c0) by beachball)
16
- - Bump @fluentui/react-theme to v0.0.0-nightly-20231017-0415.1 ([commit](https://github.com/microsoft/fluentui/commit/969aef94c02a6cdeea86ac88f118d7c619d299c0) by beachball)
17
- - Bump @fluentui/react-utilities to v0.0.0-nightly-20231017-0415.1 ([commit](https://github.com/microsoft/fluentui/commit/969aef94c02a6cdeea86ac88f118d7c619d299c0) by beachball)
15
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20231019-0416.1 ([commit](https://github.com/microsoft/fluentui/commit/e56eebedfe366d1c6488d161b4e0febcfc0bb47b) by beachball)
16
+ - Bump @fluentui/react-theme to v0.0.0-nightly-20231019-0416.1 ([commit](https://github.com/microsoft/fluentui/commit/e56eebedfe366d1c6488d161b4e0febcfc0bb47b) by beachball)
17
+ - Bump @fluentui/react-utilities to v0.0.0-nightly-20231019-0416.1 ([commit](https://github.com/microsoft/fluentui/commit/e56eebedfe366d1c6488d161b4e0febcfc0bb47b) by beachball)
18
+
19
+ ## [9.14.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabster_v9.14.0)
20
+
21
+ Wed, 18 Oct 2023 17:54:06 GMT
22
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabster_v9.13.6..@fluentui/react-tabster_v9.14.0)
23
+
24
+ ### Minor changes
25
+
26
+ - feat: bump to tabster 4.8.0 in order to support support virtual parents ([PR #29549](https://github.com/microsoft/fluentui/pull/29549) by lingfangao@hotmail.com)
27
+ - Bump @fluentui/react-utilities to v9.15.1 ([PR #29560](https://github.com/microsoft/fluentui/pull/29560) by beachball)
28
+
29
+ ### Patches
30
+
31
+ - chore: bump keyborg to 2.1.0 ([PR #29520](https://github.com/microsoft/fluentui/pull/29520) by lingfangao@hotmail.com)
18
32
 
19
33
  ## [9.13.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabster_v9.13.6)
20
34
 
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';
3
3
  import { createTabster, disposeTabster } from 'tabster';
4
- import { useIsomorphicLayoutEffect } from '@fluentui/react-utilities';
4
+ import { useIsomorphicLayoutEffect, getParent } from '@fluentui/react-utilities';
5
5
  /**
6
6
  * Tries to get a tabster instance on the current window or creates a new one
7
7
  * Since Tabster is single instance only, feel free to call this hook to ensure Tabster exists if necessary
@@ -17,7 +17,8 @@ import { useIsomorphicLayoutEffect } from '@fluentui/react-utilities';
17
17
  }
18
18
  return createTabster(defaultView, {
19
19
  autoRoot: {},
20
- controlTab: false
20
+ controlTab: false,
21
+ getParent
21
22
  });
22
23
  }, [
23
24
  defaultView
@@ -1 +1 @@
1
- {"version":3,"sources":["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"],"names":["React","useFluent_unstable","useFluent","createTabster","disposeTabster","useIsomorphicLayoutEffect","useTabster","targetDocument","defaultView","undefined","tabster","useMemo","autoRoot","controlTab"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,sBAAsBC,SAAS,QAAQ,kCAAkC;AAClF,SAASC,aAAa,EAAEC,cAAc,QAA+B,UAAU;AAC/E,SAASC,yBAAyB,QAAQ,4BAA4B;AAEtE;;;;;;CAMC,GACD,OAAO,MAAMC,aAAa;IACxB,MAAM,EAAEC,cAAc,EAAE,GAAGL;IAE3B,MAAMM,cAAcD,CAAAA,2BAAAA,qCAAAA,eAAgBC,WAAW,KAAIC;IACnD,MAAMC,UAAUV,MAAMW,OAAO,CAAC;QAC5B,IAAI,CAACH,aAAa;YAChB,OAAO;QACT;QAEA,OAAOL,cAAcK,aAAa;YAAEI,UAAU,CAAC;YAAGC,YAAY;QAAM;IACtE,GAAG;QAACL;KAAY;IAEhBH,0BAA0B;QACxB,OAAO;YACL,IAAIK,SAAS;gBACXN,eAAeM;YACjB;QACF;IACF,GAAG;QAACA;KAAQ;IAEZ,OAAOA;AACT,EAAE"}
1
+ {"version":3,"sources":["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, getParent } 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, getParent });\n }, [defaultView]);\n\n useIsomorphicLayoutEffect(() => {\n return () => {\n if (tabster) {\n disposeTabster(tabster);\n }\n };\n }, [tabster]);\n\n return tabster;\n};\n"],"names":["React","useFluent_unstable","useFluent","createTabster","disposeTabster","useIsomorphicLayoutEffect","getParent","useTabster","targetDocument","defaultView","undefined","tabster","useMemo","autoRoot","controlTab"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,sBAAsBC,SAAS,QAAQ,kCAAkC;AAClF,SAASC,aAAa,EAAEC,cAAc,QAA+B,UAAU;AAC/E,SAASC,yBAAyB,EAAEC,SAAS,QAAQ,4BAA4B;AAEjF;;;;;;CAMC,GACD,OAAO,MAAMC,aAAa;IACxB,MAAM,EAAEC,cAAc,EAAE,GAAGN;IAE3B,MAAMO,cAAcD,CAAAA,2BAAAA,qCAAAA,eAAgBC,WAAW,KAAIC;IACnD,MAAMC,UAAUX,MAAMY,OAAO,CAAC;QAC5B,IAAI,CAACH,aAAa;YAChB,OAAO;QACT;QAEA,OAAON,cAAcM,aAAa;YAAEI,UAAU,CAAC;YAAGC,YAAY;YAAOR;QAAU;IACjF,GAAG;QAACG;KAAY;IAEhBJ,0BAA0B;QACxB,OAAO;YACL,IAAIM,SAAS;gBACXP,eAAeO;YACjB;QACF;IACF,GAAG;QAACA;KAAQ;IAEZ,OAAOA;AACT,EAAE"}
@@ -22,7 +22,8 @@ const useTabster = ()=>{
22
22
  }
23
23
  return (0, _tabster.createTabster)(defaultView, {
24
24
  autoRoot: {},
25
- controlTab: false
25
+ controlTab: false,
26
+ getParent: _reactutilities.getParent
26
27
  });
27
28
  }, [
28
29
  defaultView
@@ -1 +1 @@
1
- {"version":3,"sources":["useTabster.js"],"sourcesContent":["import * as React from 'react';\nimport { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\nimport { createTabster, disposeTabster } from 'tabster';\nimport { useIsomorphicLayoutEffect } from '@fluentui/react-utilities';\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 */ export const useTabster = ()=>{\n const { targetDocument } = useFluent();\n const defaultView = (targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.defaultView) || undefined;\n const tabster = React.useMemo(()=>{\n if (!defaultView) {\n return null;\n }\n return createTabster(defaultView, {\n autoRoot: {},\n controlTab: false\n });\n }, [\n defaultView\n ]);\n useIsomorphicLayoutEffect(()=>{\n return ()=>{\n if (tabster) {\n disposeTabster(tabster);\n }\n };\n }, [\n tabster\n ]);\n return tabster;\n};\n"],"names":["useTabster","targetDocument","useFluent","defaultView","undefined","tabster","React","useMemo","createTabster","autoRoot","controlTab","useIsomorphicLayoutEffect","disposeTabster"],"mappings":";;;;+BAUiBA;;;eAAAA;;;;iEAVM;qCACyB;yBACF;gCACJ;AAO/B,MAAMA,aAAa;IAC1B,MAAM,EAAEC,cAAc,EAAE,GAAGC,IAAAA,uCAAS;IACpC,MAAMC,cAAc,AAACF,CAAAA,mBAAmB,QAAQA,mBAAmB,KAAK,IAAI,KAAK,IAAIA,eAAeE,WAAW,AAAD,KAAMC;IACpH,MAAMC,UAAUC,OAAMC,OAAO,CAAC;QAC1B,IAAI,CAACJ,aAAa;YACd,OAAO;QACX;QACA,OAAOK,IAAAA,sBAAa,EAACL,aAAa;YAC9BM,UAAU,CAAC;YACXC,YAAY;QAChB;IACJ,GAAG;QACCP;KACH;IACDQ,IAAAA,yCAAyB,EAAC;QACtB,OAAO;YACH,IAAIN,SAAS;gBACTO,IAAAA,uBAAc,EAACP;YACnB;QACJ;IACJ,GAAG;QACCA;KACH;IACD,OAAOA;AACX"}
1
+ {"version":3,"sources":["useTabster.js"],"sourcesContent":["import * as React from 'react';\nimport { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\nimport { createTabster, disposeTabster } from 'tabster';\nimport { useIsomorphicLayoutEffect, getParent } from '@fluentui/react-utilities';\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 */ export const useTabster = ()=>{\n const { targetDocument } = useFluent();\n const defaultView = (targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.defaultView) || undefined;\n const tabster = React.useMemo(()=>{\n if (!defaultView) {\n return null;\n }\n return createTabster(defaultView, {\n autoRoot: {},\n controlTab: false,\n getParent\n });\n }, [\n defaultView\n ]);\n useIsomorphicLayoutEffect(()=>{\n return ()=>{\n if (tabster) {\n disposeTabster(tabster);\n }\n };\n }, [\n tabster\n ]);\n return tabster;\n};\n"],"names":["useTabster","targetDocument","useFluent","defaultView","undefined","tabster","React","useMemo","createTabster","autoRoot","controlTab","getParent","useIsomorphicLayoutEffect","disposeTabster"],"mappings":";;;;+BAUiBA;;;eAAAA;;;;iEAVM;qCACyB;yBACF;gCACO;AAO1C,MAAMA,aAAa;IAC1B,MAAM,EAAEC,cAAc,EAAE,GAAGC,IAAAA,uCAAS;IACpC,MAAMC,cAAc,AAACF,CAAAA,mBAAmB,QAAQA,mBAAmB,KAAK,IAAI,KAAK,IAAIA,eAAeE,WAAW,AAAD,KAAMC;IACpH,MAAMC,UAAUC,OAAMC,OAAO,CAAC;QAC1B,IAAI,CAACJ,aAAa;YACd,OAAO;QACX;QACA,OAAOK,IAAAA,sBAAa,EAACL,aAAa;YAC9BM,UAAU,CAAC;YACXC,YAAY;YACZC,WAAAA,yBAAS;QACb;IACJ,GAAG;QACCR;KACH;IACDS,IAAAA,yCAAyB,EAAC;QACtB,OAAO;YACH,IAAIP,SAAS;gBACTQ,IAAAA,uBAAc,EAACR;YACnB;QACJ;IACJ,GAAG;QACCA;KACH;IACD,OAAOA;AACX"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-tabster",
3
- "version": "0.0.0-nightly-20231017-0415.1",
3
+ "version": "0.0.0-nightly-20231019-0416.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",
@@ -31,13 +31,13 @@
31
31
  "@fluentui/scripts-tasks": "*"
32
32
  },
33
33
  "dependencies": {
34
- "@fluentui/react-shared-contexts": "0.0.0-nightly-20231017-0415.1",
35
- "@fluentui/react-theme": "0.0.0-nightly-20231017-0415.1",
36
- "@fluentui/react-utilities": "0.0.0-nightly-20231017-0415.1",
34
+ "@fluentui/react-shared-contexts": "0.0.0-nightly-20231019-0416.1",
35
+ "@fluentui/react-theme": "0.0.0-nightly-20231019-0416.1",
36
+ "@fluentui/react-utilities": "0.0.0-nightly-20231019-0416.1",
37
37
  "@griffel/react": "^1.5.14",
38
38
  "@swc/helpers": "^0.5.1",
39
39
  "keyborg": "^2.1.0",
40
- "tabster": "^4.7.0"
40
+ "tabster": "^4.8.0"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@types/react": ">=16.14.0 <19.0.0",