@fluentui-react-native/focus-zone 0.21.15 → 0.22.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.md CHANGED
@@ -1,5 +1,59 @@
1
1
  # Change Log - @fluentui-react-native/focus-zone
2
2
 
3
+ ## 0.22.1
4
+
5
+ ### Patch Changes
6
+
7
+ - f72b43a: Fix codegen definitions for native components in repo
8
+ - 0d6e9c1: chore: migrate to `oxfmt`
9
+ - ac6e7af: Ensure packages have a default export that references the typescript entrypoint and clean up build dependency ordering
10
+ - Updated dependencies [0d6e9c1]
11
+ - Updated dependencies [ac6e7af]
12
+ - @uifabricshared/foundation-composable@0.14.1
13
+ - @uifabricshared/foundation-settings@0.16.1
14
+ - @fluentui-react-native/interactive-hooks@0.28.1
15
+ - @fluentui-react-native/adapters@0.14.1
16
+
17
+ ## 0.22.0
18
+
19
+ ### Minor Changes
20
+
21
+ - d7adbdd: # Migration from Beachball to Changesets
22
+
23
+ This changeset represents the migration from Beachball to Changesets for version management and consolidates all changes from 440+ beachball change files that were in the `change/` directory.
24
+
25
+ All 75 affected packages receive a minor version bump to acknowledge the accumulated changes from the beachball era.
26
+
27
+ ## What Changed
28
+
29
+ Going forward, all version management uses Changesets via `yarn changeset`. The following beachball infrastructure has been removed:
30
+
31
+ - ❌ 440+ beachball change files from `change/` directory
32
+ - ❌ `beachball` package dependency
33
+ - ❌ Beachball scripts from `package.json`
34
+ - ❌ `beachball.config.js` configuration file
35
+ - ❌ Beachball publish steps from Azure Pipelines
36
+
37
+ ## New Workflow
38
+
39
+ ✅ **Create changes**: Run `yarn changeset` to document changes
40
+ ✅ **Version bump PRs**: Automatically created by GitHub Actions
41
+ ✅ **Publishing**: Handled by Azure Pipelines using `changeset publish`
42
+ ✅ **Validation**: CI validates changesets and blocks major version bumps
43
+
44
+ For details, see `CHANGESETS_SETUP.md` and `CONTRIBUTING.md`.
45
+
46
+ ### Patch Changes
47
+
48
+ - d1d8c26: We were pinning @types/react and react-native-macos via resolutions. This fixes that which uncovered a bunch of type inconsistencies that needed to be addressed.
49
+ - Updated dependencies [d7adbdd]
50
+ - Updated dependencies [d1d8c26]
51
+ - Updated dependencies [d1d8c26]
52
+ - @fluentui-react-native/adapters@0.14.0
53
+ - @fluentui-react-native/interactive-hooks@0.28.0
54
+ - @uifabricshared/foundation-composable@0.14.0
55
+ - @uifabricshared/foundation-settings@0.16.0
56
+
3
57
  <!-- This log was last generated on Tue, 05 Aug 2025 18:50:43 GMT and should not be manually modified. -->
4
58
 
5
59
  <!-- Start content -->
@@ -1456,7 +1510,7 @@ Thu, 16 Dec 2021 19:10:27 GMT
1456
1510
 
1457
1511
  ### Patches
1458
1512
 
1459
- - Rename Jest snapshots to be platform agnostic (sanajmi@microsoft.com)
1513
+ - Rename Jest snapshots to be platform agnostic (sanajmi@microsoft.com)
1460
1514
  - Bump @fluentui-react-native/interactive-hooks to v0.11.1
1461
1515
 
1462
1516
  ## 0.8.0
package/lib/FocusZone.js CHANGED
@@ -29,7 +29,7 @@ export const FocusZone = composable({
29
29
  return {
30
30
  slotProps: mergeSettings(useStyling(userProps), {
31
31
  root: {
32
- navigateAtEnd: isCircularNavigation ? 'NavigateWrap' : 'NavigateStopAtEnds',
32
+ navigateAtEnd: isCircularNavigation ? 'NavigateWrap' : 'NavigateStopAtEnds', // let rest override
33
33
  ...rest,
34
34
  defaultTabbableElement: targetFirstFocus,
35
35
  ref: ftzRef,
@@ -1 +1 @@
1
- {"version":3,"file":"FocusZone.js","sourceRoot":"","sources":["../src/FocusZone.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAE/E,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,aAAa,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AAC,sBAAsB,CAAC,CAAC,CAAC;QAE7B,OAAO;YACL,SAAS,EAAE,aAAa,CAAqB,UAAU,CAAC,SAAS,CAAC,EAAE;gBAClE,IAAI,EAAE;oBACJ,aAAa,EAAE,oBAAoB,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,oBAAoB,EAAE,oBAAoB;oBACjG,GAAG,IAAI;oBACP,sBAAsB,EAAE,gBAAgB;oBACxC,GAAG,EAAE,MAAM;iBACZ;aACF,CAAC;SACH,CAAC;IAAA,CACH;IACD,KAAK,EAAE;QACL,IAAI,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,qBAAqB,EAAE;KAChE;CACF,CAAC,CAAC"}
@@ -1,11 +1,5 @@
1
- /**
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- * @format
5
- */
6
- import type { HostComponent, ViewProps } from 'react-native';
7
- import type { WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
8
- import type { UnsafeMixed } from './codegenTypes';
1
+ import type { ViewProps } from 'react-native';
2
+ import type { WithDefault, UnsafeMixed } from 'react-native/Libraries/Types/CodegenTypes';
9
3
  export interface NativeProps extends ViewProps {
10
4
  navigateAtEnd?: WithDefault<'NavigateStopAtEnds' | 'NavigateWrap' | 'NavigateContinue', 'NavigateStopAtEnds'>;
11
5
  defaultTabbableElement?: UnsafeMixed;
@@ -15,6 +9,6 @@ export interface NativeProps extends ViewProps {
15
9
  disabled?: boolean;
16
10
  isTabNavigation?: boolean;
17
11
  }
18
- declare const _default: HostComponent<NativeProps>;
12
+ declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
19
13
  export default _default;
20
14
  //# sourceMappingURL=FocusZoneNativeComponent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FocusZoneNativeComponent.d.ts","sourceRoot":"","sources":["../src/FocusZoneNativeComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,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B,gBAAgB,CAAC,EAAE,WAAW,CAAC,MAAM,GAAG,cAAc,GAAG,oBAAoB,GAAG,QAAQ,EAAE,MAAM,CAAC,CAAC;IAClG,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;;AAED,wBAAmE"}
@@ -1 +1 @@
1
- {"version":3,"file":"FocusZoneNativeComponent.js","sourceRoot":"","sources":["../src/FocusZoneNativeComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,sBAAsB,MAAM,yDAAyD,CAAC;AAgB7F,eAAe,sBAAsB,CAAc,cAAc,CAA+B,CAAC"}
1
+ {"version":3,"file":"FocusZoneNativeComponent.js","sourceRoot":"","sources":["../src/FocusZoneNativeComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,sBAAsB,MAAM,yDAAyD,CAAC;AAkB7F,eAAe,sBAAsB,CAAc,cAAc,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
- import * as React from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { act } from 'react';
2
3
  import { Button } from 'react-native';
3
4
  import * as renderer from 'react-test-renderer';
4
5
  import { FocusZone } from '..';
@@ -7,88 +8,92 @@ const onPress = () => {
7
8
  };
8
9
  describe('FocusZone No Props', () => {
9
10
  it('No children', () => {
10
- const tree = renderer.create(React.createElement(FocusZone, null)).toJSON();
11
- expect(tree).toMatchSnapshot();
11
+ let component;
12
+ act(() => {
13
+ component = renderer.create(_jsx(FocusZone, {}));
14
+ });
15
+ expect(component.toJSON()).toMatchSnapshot();
12
16
  });
13
17
  it('One child', () => {
14
- const tree = renderer
15
- .create(React.createElement(FocusZone, null,
16
- React.createElement(Button, { title: "button", onPress: onPress })))
17
- .toJSON();
18
- expect(tree).toMatchSnapshot();
18
+ let component;
19
+ act(() => {
20
+ component = renderer.create(_jsx(FocusZone, { children: _jsx(Button, { title: "button", onPress: onPress }) }));
21
+ });
22
+ expect(component.toJSON()).toMatchSnapshot();
19
23
  });
20
24
  it('Two children', () => {
21
- const tree = renderer
22
- .create(React.createElement(FocusZone, null,
23
- React.createElement(Button, { title: "button", onPress: onPress }),
24
- React.createElement(Button, { title: "button", onPress: onPress })))
25
- .toJSON();
26
- expect(tree).toMatchSnapshot();
25
+ let component;
26
+ act(() => {
27
+ component = renderer.create(_jsxs(FocusZone, { children: [
28
+ _jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress })
29
+ ] }));
30
+ });
31
+ expect(component.toJSON()).toMatchSnapshot();
27
32
  });
28
33
  it('Three children', () => {
29
- const tree = renderer
30
- .create(React.createElement(FocusZone, null,
31
- React.createElement(Button, { title: "button", onPress: onPress }),
32
- React.createElement(Button, { title: "button", onPress: onPress }),
33
- React.createElement(Button, { title: "button", onPress: onPress })))
34
- .toJSON();
35
- expect(tree).toMatchSnapshot();
34
+ let component;
35
+ act(() => {
36
+ component = renderer.create(_jsxs(FocusZone, { children: [
37
+ _jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress })
38
+ ] }));
39
+ });
40
+ expect(component.toJSON()).toMatchSnapshot();
36
41
  });
37
42
  });
38
43
  describe('FocusZone With Props', () => {
39
44
  it('defaultTabbableElement Prop', () => {
40
- const tree = renderer
41
- .create(React.createElement(FocusZone, { defaultTabbableElement: null },
42
- React.createElement(Button, { title: "button", onPress: onPress }),
43
- React.createElement(Button, { title: "button", onPress: onPress }),
44
- React.createElement(Button, { title: "button", onPress: onPress })))
45
- .toJSON();
46
- expect(tree).toMatchSnapshot();
45
+ let component;
46
+ act(() => {
47
+ component = renderer.create(_jsxs(FocusZone, { defaultTabbableElement: null, children: [
48
+ _jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress })
49
+ ] }));
50
+ });
51
+ expect(component.toJSON()).toMatchSnapshot();
47
52
  });
48
53
  it('focusZoneDirection Prop', () => {
49
- const tree = renderer
50
- .create(React.createElement(FocusZone, { focusZoneDirection: "bidirectional" },
51
- React.createElement(Button, { title: "button", onPress: onPress }),
52
- React.createElement(Button, { title: "button", onPress: onPress }),
53
- React.createElement(Button, { title: "button", onPress: onPress })))
54
- .toJSON();
55
- expect(tree).toMatchSnapshot();
54
+ let component;
55
+ act(() => {
56
+ component = renderer.create(_jsxs(FocusZone, { focusZoneDirection: "bidirectional", children: [
57
+ _jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress })
58
+ ] }));
59
+ });
60
+ expect(component.toJSON()).toMatchSnapshot();
56
61
  });
57
62
  it('disabled Prop', () => {
58
- const tree = renderer
59
- .create(React.createElement(FocusZone, { disabled: true },
60
- React.createElement(Button, { title: "button", onPress: onPress }),
61
- React.createElement(Button, { title: "button", onPress: onPress }),
62
- React.createElement(Button, { title: "button", onPress: onPress })))
63
- .toJSON();
64
- expect(tree).toMatchSnapshot();
63
+ let component;
64
+ act(() => {
65
+ component = renderer.create(_jsxs(FocusZone, { disabled: true, children: [
66
+ _jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress })
67
+ ] }));
68
+ });
69
+ expect(component.toJSON()).toMatchSnapshot();
65
70
  });
66
71
  it('isCircularNavigation Prop', () => {
67
- const tree = renderer
68
- .create(React.createElement(FocusZone, { isCircularNavigation: true },
69
- React.createElement(Button, { title: "button", onPress: onPress }),
70
- React.createElement(Button, { title: "button", onPress: onPress }),
71
- React.createElement(Button, { title: "button", onPress: onPress })))
72
- .toJSON();
73
- expect(tree).toMatchSnapshot();
72
+ let component;
73
+ act(() => {
74
+ component = renderer.create(_jsxs(FocusZone, { isCircularNavigation: true, children: [
75
+ _jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress })
76
+ ] }));
77
+ });
78
+ expect(component.toJSON()).toMatchSnapshot();
74
79
  });
75
80
  it('use2DNavigation Prop', () => {
76
- const tree = renderer
77
- .create(React.createElement(FocusZone, { use2DNavigation: true },
78
- React.createElement(Button, { title: "button", onPress: onPress }),
79
- React.createElement(Button, { title: "button", onPress: onPress }),
80
- React.createElement(Button, { title: "button", onPress: onPress })))
81
- .toJSON();
82
- expect(tree).toMatchSnapshot();
81
+ let component;
82
+ act(() => {
83
+ component = renderer.create(_jsxs(FocusZone, { use2DNavigation: true, children: [
84
+ _jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress })
85
+ ] }));
86
+ });
87
+ expect(component.toJSON()).toMatchSnapshot();
83
88
  });
84
89
  it('All Props', () => {
85
- const tree = renderer
86
- .create(React.createElement(FocusZone, { disabled: false, use2DNavigation: true, defaultTabbableElement: null, isCircularNavigation: false, focusZoneDirection: "vertical" },
87
- React.createElement(Button, { title: "button", onPress: onPress }),
88
- React.createElement(Button, { title: "button", onPress: onPress }),
89
- React.createElement(Button, { title: "button", onPress: onPress })))
90
- .toJSON();
91
- expect(tree).toMatchSnapshot();
90
+ let component;
91
+ act(() => {
92
+ component = renderer.create(_jsxs(FocusZone, { disabled: false, use2DNavigation: true, defaultTabbableElement: null, isCircularNavigation: false, focusZoneDirection: "vertical", children: [
93
+ _jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress })
94
+ ] }));
95
+ });
96
+ expect(component.toJSON()).toMatchSnapshot();
92
97
  });
93
98
  });
94
99
  //# sourceMappingURL=FocusZone.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FocusZone.test.js","sourceRoot":"","sources":["../../src/__tests__/FocusZone.test.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAA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EAAC,QAAQ,EAAC,OAAO,EAAE,OAAO,GAAI,EAC3C,KAAC,MAAM,IAAC,KAAK,EAAC,QAAQ,EAAC,OAAO,EAAE,OAAO,GAAI;oBACjC,CACb,CAAC;QAAA,CACH,CAAC,CAAC;QACH,MAAM,CAAC,SAAU,CAAC,MAAM,EAAE,CAAC,CAAC,eAAe,EAAE,CAAC;IAAA,CAC/C,CAAC,CAAC;AAAA,CACJ,CAAC,CAAC"}
@@ -20,13 +20,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
20
20
  }) : function(o, v) {
21
21
  o["default"] = v;
22
22
  });
23
- var __importStar = (this && this.__importStar) || function (mod) {
24
- if (mod && mod.__esModule) return mod;
25
- var result = {};
26
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
27
- __setModuleDefault(result, mod);
28
- return result;
29
- };
23
+ var __importStar = (this && this.__importStar) || (function () {
24
+ var ownKeys = function(o) {
25
+ ownKeys = Object.getOwnPropertyNames || function (o) {
26
+ var ar = [];
27
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
28
+ return ar;
29
+ };
30
+ return ownKeys(o);
31
+ };
32
+ return function (mod) {
33
+ if (mod && mod.__esModule) return mod;
34
+ var result = {};
35
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
36
+ __setModuleDefault(result, mod);
37
+ return result;
38
+ };
39
+ })();
30
40
  var __importDefault = (this && this.__importDefault) || function (mod) {
31
41
  return (mod && mod.__esModule) ? mod : { "default": mod };
32
42
  };
@@ -58,7 +68,7 @@ exports.FocusZone = (0, foundation_composable_1.composable)({
58
68
  return {
59
69
  slotProps: (0, foundation_settings_1.mergeSettings)(useStyling(userProps), {
60
70
  root: {
61
- navigateAtEnd: isCircularNavigation ? 'NavigateWrap' : 'NavigateStopAtEnds',
71
+ navigateAtEnd: isCircularNavigation ? 'NavigateWrap' : 'NavigateStopAtEnds', // let rest override
62
72
  ...rest,
63
73
  defaultTabbableElement: targetFirstFocus,
64
74
  ref: ftzRef,
@@ -1 +1 @@
1
- {"version":3,"file":"FocusZone.js","sourceRoot":"","sources":["../src/FocusZone.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,6CAA+B;AAC/B,+CAA8C;AAE9C,gFAA+E;AAE/E,iFAAmE;AACnE,6EAAoE;AAGpE,0FAAsD;AAEtD,MAAM,qBAAqB,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,KAAK,cAAc,CAAC;AAE3D,QAAA,SAAS,GAAG,IAAA,kCAAU,EAAgB;IACjD,eAAe,EAAE,CAAC,SAAyB,EAAE,UAAsC,EAAE,EAAE;QACrF,MAAM,EAAE,YAAY,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,GAAG,IAAI,EAAE,GAAG,SAAS,CAAC;QAE1F,MAAM,MAAM,GAAG,IAAA,uCAAmB,EAAC,YAAY,CAAC,CAAC;QAEjD,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAkB,SAAS,CAAC,CAAC;QAC3F,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE;YACzB,IAAI,OAAO,sBAAsB,KAAK,QAAQ,EAAE;gBAC9C,mBAAmB,CAAC,sBAAsB,CAAC,CAAC;aAC7C;iBAAM,IAAI,sBAAsB,EAAE,OAAO,EAAE;gBAC1C,mBAAmB,CAAC,IAAA,6BAAc,EAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC;aACrE;iBAAM;gBACL,mBAAmB,CAAC,SAAS,CAAC,CAAC;aAChC;QACH,CAAC,EAAE,CAAC,sBAAsB,CAAC,CAAC,CAAC;QAE7B,OAAO;YACL,SAAS,EAAE,IAAA,mCAAa,EAAqB,UAAU,CAAC,SAAS,CAAC,EAAE;gBAClE,I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C,IAAA,6BAAc,EAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC;YACtE,CAAC;iBAAM,CAAC;gBACN,mBAAmB,CAAC,SAAS,CAAC,CAAC;YACjC,CAAC;QAAA,CACF,EAAE,CAAC,sBAAsB,CAAC,CAAC,CAAC;QAE7B,OAAO;YACL,SAAS,EAAE,IAAA,mCAAa,EAAqB,UAAU,CAAC,SAAS,CAAC,EAAE;gBAClE,IAAI,EAAE;oBACJ,aAAa,EAAE,oBAAoB,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,oBAAoB,EAAE,oBAAoB;oBACjG,GAAG,IAAI;oBACP,sBAAsB,EAAE,gBAAgB;oBACxC,GAAG,EAAE,MAAM;iBACZ;aACF,CAAC;SACH,CAAC;IAAA,CACH;IACD,KAAK,EAAE;QACL,IAAI,EAAE,EAAE,QAAQ,EAAE,kCAAY,EAAE,MAAM,EAAE,qBAAqB,EAAE;KAChE;CACF,CAAC,CAAC"}
@@ -1,11 +1,5 @@
1
- /**
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- * @format
5
- */
6
- import type { HostComponent, ViewProps } from 'react-native';
7
- import type { WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
8
- import type { UnsafeMixed } from './codegenTypes';
1
+ import type { ViewProps } from 'react-native';
2
+ import type { WithDefault, UnsafeMixed } from 'react-native/Libraries/Types/CodegenTypes';
9
3
  export interface NativeProps extends ViewProps {
10
4
  navigateAtEnd?: WithDefault<'NavigateStopAtEnds' | 'NavigateWrap' | 'NavigateContinue', 'NavigateStopAtEnds'>;
11
5
  defaultTabbableElement?: UnsafeMixed;
@@ -15,6 +9,6 @@ export interface NativeProps extends ViewProps {
15
9
  disabled?: boolean;
16
10
  isTabNavigation?: boolean;
17
11
  }
18
- declare const _default: HostComponent<NativeProps>;
12
+ declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
19
13
  export default _default;
20
14
  //# sourceMappingURL=FocusZoneNativeComponent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FocusZoneNativeComponent.d.ts","sourceRoot":"","sources":["../src/FocusZoneNativeComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAG7E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIlD,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,aAAa,CAAC,EAAE,WAAW,CAAC,oBAAoB,GAAG,cAAc,GAAG,kBAAkB,EAAE,oBAAoB,CAAC,CAAC;IAC9G,sBAAsB,CAAC,EAAE,WAAW,CAAC;IACrC,kBAAkB,CAAC,EAAE,WAAW,CAAC,eAAe,GAAG,UAAU,GAAG,YAAY,GAAG,MAAM,EAAE,eAAe,CAAC,CAAC;IACxG,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,WAAW,CAAC,MAAM,GAAG,cAAc,GAAG,oBAAoB,GAAG,QAAQ,EAAE,MAAM,CAAC,CAAC;IAClG,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;;AAED,wBAAiG"}
1
+ {"version":3,"file":"FocusZoneNativeComponent.d.ts","sourceRoot":"","sources":["../src/FocusZoneNativeComponent.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAK1F,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,aAAa,CAAC,EAAE,WAAW,CAAC,oBAAoB,GAAG,cAAc,GAAG,kBAAkB,EAAE,oBAAoB,CAAC,CAAC;IAC9G,sBAAsB,CAAC,EAAE,WAAW,CAAC;IACrC,kBAAkB,CAAC,EAAE,WAAW,CAAC,eAAe,GAAG,UAAU,GAAG,YAAY,GAAG,MAAM,EAAE,eAAe,CAAC,CAAC;IACxG,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,WAAW,CAAC,MAAM,GAAG,cAAc,GAAG,oBAAoB,GAAG,QAAQ,EAAE,MAAM,CAAC,CAAC;IAClG,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;;AAED,wBAAmE"}
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
2
6
  /**
3
7
  * Copyright (c) Microsoft Corporation.
4
8
  * Licensed under the MIT License.
5
9
  * @format
6
10
  */
7
- var __importDefault = (this && this.__importDefault) || function (mod) {
8
- return (mod && mod.__esModule) ? mod : { "default": mod };
9
- };
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
11
  const codegenNativeComponent_1 = __importDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
12
12
  exports.default = (0, codegenNativeComponent_1.default)('RCTFocusZone');
13
13
  //# sourceMappingURL=FocusZoneNativeComponent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FocusZoneNativeComponent.js","sourceRoot":"","sources":["../src/FocusZoneNativeComponent.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;AAKH,qHAA6F;AAgB7F,kBAAe,IAAA,gCAAsB,EAAc,cAAc,CAA+B,CAAC"}
1
+ {"version":3,"file":"FocusZoneNativeComponent.js","sourceRoot":"","sources":["../src/FocusZoneNativeComponent.ts"],"names":[],"mappings":";;;;;AAAA;;;;GAIG;AACH,qHAA6F;kBAkB9E,IAAA,gCAAsB,EAAc,cAAc,CAAC"}
@@ -15,15 +15,26 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
- const React = __importStar(require("react"));
36
+ const jsx_runtime_1 = require("react/jsx-runtime");
37
+ const react_1 = require("react");
27
38
  const react_native_1 = require("react-native");
28
39
  const renderer = __importStar(require("react-test-renderer"));
29
40
  const __1 = require("..");
@@ -32,88 +43,92 @@ const onPress = () => {
32
43
  };
33
44
  describe('FocusZone No Props', () => {
34
45
  it('No children', () => {
35
- const tree = renderer.create(React.createElement(__1.FocusZone, null)).toJSON();
36
- expect(tree).toMatchSnapshot();
46
+ let component;
47
+ (0, react_1.act)(() => {
48
+ component = renderer.create(jsx_runtime_1.jsx(__1.FocusZone, {}));
49
+ });
50
+ expect(component.toJSON()).toMatchSnapshot();
37
51
  });
38
52
  it('One child', () => {
39
- const tree = renderer
40
- .create(React.createElement(__1.FocusZone, null,
41
- React.createElement(react_native_1.Button, { title: "button", onPress: onPress })))
42
- .toJSON();
43
- expect(tree).toMatchSnapshot();
53
+ let component;
54
+ (0, react_1.act)(() => {
55
+ component = renderer.create(jsx_runtime_1.jsx(__1.FocusZone, { children: jsx_runtime_1.jsx(react_native_1.Button, { title: "button", onPress: onPress }) }));
56
+ });
57
+ expect(component.toJSON()).toMatchSnapshot();
44
58
  });
45
59
  it('Two children', () => {
46
- const tree = renderer
47
- .create(React.createElement(__1.FocusZone, null,
48
- React.createElement(react_native_1.Button, { title: "button", onPress: onPress }),
49
- React.createElement(react_native_1.Button, { title: "button", onPress: onPress })))
50
- .toJSON();
51
- expect(tree).toMatchSnapshot();
60
+ let component;
61
+ (0, react_1.act)(() => {
62
+ component = renderer.create(jsx_runtime_1.jsxs(__1.FocusZone, { children: [
63
+ jsx_runtime_1.jsx(react_native_1.Button, { title: "button", onPress: onPress }), jsx_runtime_1.jsx(react_native_1.Button, { title: "button", onPress: onPress })
64
+ ] }));
65
+ });
66
+ expect(component.toJSON()).toMatchSnapshot();
52
67
  });
53
68
  it('Three children', () => {
54
- const tree = renderer
55
- .create(React.createElement(__1.FocusZone, null,
56
- React.createElement(react_native_1.Button, { title: "button", onPress: onPress }),
57
- React.createElement(react_native_1.Button, { title: "button", onPress: onPress }),
58
- React.createElement(react_native_1.Button, { title: "button", onPress: onPress })))
59
- .toJSON();
60
- expect(tree).toMatchSnapshot();
69
+ let component;
70
+ (0, react_1.act)(() => {
71
+ component = renderer.create(jsx_runtime_1.jsxs(__1.FocusZone, { children: [
72
+ jsx_runtime_1.jsx(react_native_1.Button, { title: "button", onPress: onPress }), jsx_runtime_1.jsx(react_native_1.Button, { title: "button", onPress: onPress }), jsx_runtime_1.jsx(react_native_1.Button, { title: "button", onPress: onPress })
73
+ ] }));
74
+ });
75
+ expect(component.toJSON()).toMatchSnapshot();
61
76
  });
62
77
  });
63
78
  describe('FocusZone With Props', () => {
64
79
  it('defaultTabbableElement Prop', () => {
65
- const tree = renderer
66
- .create(React.createElement(__1.FocusZone, { defaultTabbableElement: null },
67
- React.createElement(react_native_1.Button, { title: "button", onPress: onPress }),
68
- React.createElement(react_native_1.Button, { title: "button", onPress: onPress }),
69
- React.createElement(react_native_1.Button, { title: "button", onPress: onPress })))
70
- .toJSON();
71
- expect(tree).toMatchSnapshot();
80
+ let component;
81
+ (0, react_1.act)(() => {
82
+ component = renderer.create(jsx_runtime_1.jsxs(__1.FocusZone, { defaultTabbableElement: null, children: [
83
+ jsx_runtime_1.jsx(react_native_1.Button, { title: "button", onPress: onPress }), jsx_runtime_1.jsx(react_native_1.Button, { title: "button", onPress: onPress }), jsx_runtime_1.jsx(react_native_1.Button, { title: "button", onPress: onPress })
84
+ ] }));
85
+ });
86
+ expect(component.toJSON()).toMatchSnapshot();
72
87
  });
73
88
  it('focusZoneDirection Prop', () => {
74
- const tree = renderer
75
- .create(React.createElement(__1.FocusZone, { focusZoneDirection: "bidirectional" },
76
- React.createElement(react_native_1.Button, { title: "button", onPress: onPress }),
77
- React.createElement(react_native_1.Button, { title: "button", onPress: onPress }),
78
- React.createElement(react_native_1.Button, { title: "button", onPress: onPress })))
79
- .toJSON();
80
- expect(tree).toMatchSnapshot();
89
+ let component;
90
+ (0, react_1.act)(() => {
91
+ component = renderer.create(jsx_runtime_1.jsxs(__1.FocusZone, { focusZoneDirection: "bidirectional", children: [
92
+ jsx_runtime_1.jsx(react_native_1.Button, { title: "button", onPress: onPress }), jsx_runtime_1.jsx(react_native_1.Button, { title: "button", onPress: onPress }), jsx_runtime_1.jsx(react_native_1.Button, { title: "button", onPress: onPress })
93
+ ] }));
94
+ });
95
+ expect(component.toJSON()).toMatchSnapshot();
81
96
  });
82
97
  it('disabled Prop', () => {
83
- const tree = renderer
84
- .create(React.createElement(__1.FocusZone, { disabled: true },
85
- React.createElement(react_native_1.Button, { title: "button", onPress: onPress }),
86
- React.createElement(react_native_1.Button, { title: "button", onPress: onPress }),
87
- React.createElement(react_native_1.Button, { title: "button", onPress: onPress })))
88
- .toJSON();
89
- expect(tree).toMatchSnapshot();
98
+ let component;
99
+ (0, react_1.act)(() => {
100
+ component = renderer.create(jsx_runtime_1.jsxs(__1.FocusZone, { disabled: true, children: [
101
+ jsx_runtime_1.jsx(react_native_1.Button, { title: "button", onPress: onPress }), jsx_runtime_1.jsx(react_native_1.Button, { title: "button", onPress: onPress }), jsx_runtime_1.jsx(react_native_1.Button, { title: "button", onPress: onPress })
102
+ ] }));
103
+ });
104
+ expect(component.toJSON()).toMatchSnapshot();
90
105
  });
91
106
  it('isCircularNavigation Prop', () => {
92
- const tree = renderer
93
- .create(React.createElement(__1.FocusZone, { isCircularNavigation: true },
94
- React.createElement(react_native_1.Button, { title: "button", onPress: onPress }),
95
- React.createElement(react_native_1.Button, { title: "button", onPress: onPress }),
96
- React.createElement(react_native_1.Button, { title: "button", onPress: onPress })))
97
- .toJSON();
98
- expect(tree).toMatchSnapshot();
107
+ let component;
108
+ (0, react_1.act)(() => {
109
+ component = renderer.create(jsx_runtime_1.jsxs(__1.FocusZone, { isCircularNavigation: true, children: [
110
+ jsx_runtime_1.jsx(react_native_1.Button, { title: "button", onPress: onPress }), jsx_runtime_1.jsx(react_native_1.Button, { title: "button", onPress: onPress }), jsx_runtime_1.jsx(react_native_1.Button, { title: "button", onPress: onPress })
111
+ ] }));
112
+ });
113
+ expect(component.toJSON()).toMatchSnapshot();
99
114
  });
100
115
  it('use2DNavigation Prop', () => {
101
- const tree = renderer
102
- .create(React.createElement(__1.FocusZone, { use2DNavigation: true },
103
- React.createElement(react_native_1.Button, { title: "button", onPress: onPress }),
104
- React.createElement(react_native_1.Button, { title: "button", onPress: onPress }),
105
- React.createElement(react_native_1.Button, { title: "button", onPress: onPress })))
106
- .toJSON();
107
- expect(tree).toMatchSnapshot();
116
+ let component;
117
+ (0, react_1.act)(() => {
118
+ component = renderer.create(jsx_runtime_1.jsxs(__1.FocusZone, { use2DNavigation: true, children: [
119
+ jsx_runtime_1.jsx(react_native_1.Button, { title: "button", onPress: onPress }), jsx_runtime_1.jsx(react_native_1.Button, { title: "button", onPress: onPress }), jsx_runtime_1.jsx(react_native_1.Button, { title: "button", onPress: onPress })
120
+ ] }));
121
+ });
122
+ expect(component.toJSON()).toMatchSnapshot();
108
123
  });
109
124
  it('All Props', () => {
110
- const tree = renderer
111
- .create(React.createElement(__1.FocusZone, { disabled: false, use2DNavigation: true, defaultTabbableElement: null, isCircularNavigation: false, focusZoneDirection: "vertical" },
112
- React.createElement(react_native_1.Button, { title: "button", onPress: onPress }),
113
- React.createElement(react_native_1.Button, { title: "button", onPress: onPress }),
114
- React.createElement(react_native_1.Button, { title: "button", onPress: onPress })))
115
- .toJSON();
116
- expect(tree).toMatchSnapshot();
125
+ let component;
126
+ (0, react_1.act)(() => {
127
+ component = renderer.create(jsx_runtime_1.jsxs(__1.FocusZone, { disabled: false, use2DNavigation: true, defaultTabbableElement: null, isCircularNavigation: false, focusZoneDirection: "vertical", children: [
128
+ jsx_runtime_1.jsx(react_native_1.Button, { title: "button", onPress: onPress }), jsx_runtime_1.jsx(react_native_1.Button, { title: "button", onPress: onPress }), jsx_runtime_1.jsx(react_native_1.Button, { title: "button", onPress: onPress })
129
+ ] }));
130
+ });
131
+ expect(component.toJSON()).toMatchSnapshot();
117
132
  });
118
133
  });
119
134
  //# sourceMappingURL=FocusZone.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FocusZone.test.js","sourceRoot":"","sources":["../../src/__tests__/FocusZone.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAC/B,+CAAsC;AAEtC,8DAAgD;AAEhD,0BAA+B;AAE/B,MAAM,OAAO,GAAG,GAAG,EAAE;IACnB,OAAO;AACT,CAAC,CAAC;AAEF,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,EAAE,CAAC,aAAa,EAAE,GAAG,EAAE;QACrB,MAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,oBAAC,aAAS,OAAG,CAAC,CAAC,MAAM,EAAE,CAAC;QACrD,MAAM,CAAC,IAAI,CAA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strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FocusZone = exports.focusZoneName = void 0;
4
- var FocusZone_types_1 = require("./FocusZone.types");
4
+ const FocusZone_types_1 = require("./FocusZone.types");
5
5
  Object.defineProperty(exports, "focusZoneName", { enumerable: true, get: function () { return FocusZone_types_1.focusZoneName; } });
6
- var FocusZone_1 = require("./FocusZone");
6
+ const FocusZone_1 = require("./FocusZone");
7
7
  Object.defineProperty(exports, "FocusZone", { enumerable: true, get: function () { return FocusZone_1.FocusZone; } });
8
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,qDAAkD;AAAzC,gHAAA,aAAa,OAAA;AAatB,yCAAwC;AAA/B,sGAAA,SAAS,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,uDAAkD;AAAzC,gHAAA,aAAa,OAAA;AAatB,2CAAwC;AAA/B,sGAAA,SAAS,OAAA"}
package/package.json CHANGED
@@ -1,81 +1,90 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/focus-zone",
3
- "version": "0.21.15",
3
+ "version": "0.22.1",
4
4
  "description": "A cross-platform FocusZone component using the Fluent Design System",
5
+ "license": "MIT",
6
+ "author": "",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/microsoft/fluentui-react-native.git",
10
+ "directory": "packages/components/FocusZone"
11
+ },
5
12
  "main": "lib-commonjs/index.js",
6
13
  "module": "lib/index.js",
7
- "react-native": "src/index.ts",
14
+ "types": "lib/index.d.ts",
8
15
  "exports": {
9
16
  ".": {
17
+ "types": "./lib/index.d.ts",
10
18
  "import": "./lib/index.js",
11
19
  "require": "./lib-commonjs/index.js",
12
- "types": "./lib/index.d.ts"
20
+ "default": "./src/index.ts"
13
21
  }
14
22
  },
15
- "typings": "lib/index.d.ts",
16
23
  "scripts": {
17
24
  "build": "fluentui-scripts build",
18
- "depcheck": "fluentui-scripts depcheck",
19
- "just": "fluentui-scripts",
25
+ "build-cjs": "tsgo --outDir lib-commonjs",
26
+ "build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
20
27
  "clean": "fluentui-scripts clean",
28
+ "depcheck": "fluentui-scripts depcheck",
21
29
  "lint": "fluentui-scripts eslint",
30
+ "lint-package": "fluentui-scripts lint-package",
31
+ "format": "fluentui-scripts format",
22
32
  "test": "fluentui-scripts jest",
23
- "update-snapshots": "fluentui-scripts jest -u",
24
- "prettier": "fluentui-scripts prettier",
25
- "prettier-fix": "fluentui-scripts prettier --fix true"
26
- },
27
- "repository": {
28
- "type": "git",
29
- "url": "https://github.com/microsoft/fluentui-react-native.git",
30
- "directory": "packages/components/FocusZone"
33
+ "update-snapshots": "fluentui-scripts jest -u"
31
34
  },
32
35
  "dependencies": {
33
- "@fluentui-react-native/adapters": "0.13.5",
34
- "@fluentui-react-native/interactive-hooks": "0.27.19",
35
- "@uifabricshared/foundation-composable": "0.13.11",
36
- "@uifabricshared/foundation-settings": "0.15.11"
36
+ "@fluentui-react-native/adapters": "0.14.1",
37
+ "@fluentui-react-native/interactive-hooks": "0.28.1",
38
+ "@uifabricshared/foundation-composable": "0.14.1",
39
+ "@uifabricshared/foundation-settings": "0.16.1"
37
40
  },
38
41
  "devDependencies": {
39
42
  "@babel/core": "^7.20.0",
40
43
  "@fluentui-react-native/babel-config": "0.1.1",
41
- "@fluentui-react-native/eslint-config-rules": "0.1.1",
42
- "@fluentui-react-native/jest-config": "0.1.1",
43
- "@fluentui-react-native/scripts": "0.1.1",
44
+ "@fluentui-react-native/eslint-config-rules": "0.1.2",
45
+ "@fluentui-react-native/jest-config": "0.1.0",
46
+ "@fluentui-react-native/kit-config": "0.1.2",
47
+ "@fluentui-react-native/scripts": "0.1.0",
44
48
  "@office-iss/react-native-win32": "^0.74.0",
45
- "@react-native/babel-preset": "^0.74.0",
46
- "@react-native/metro-babel-transformer": "^0.74.0",
47
- "@react-native/metro-config": "^0.74.0",
48
- "@types/react": "~18.2.0",
49
- "@types/react-test-renderer": "^18.2.0",
50
- "react": "18.2.0",
51
- "react-native": "^0.74.0",
52
- "react-native-macos": "^0.74.0",
53
- "react-native-windows": "^0.74.0",
54
- "react-test-renderer": "18.2.0"
49
+ "@react-native-community/cli": "^20.0.0",
50
+ "@react-native-community/cli-platform-android": "^20.0.0",
51
+ "@react-native-community/cli-platform-ios": "^20.0.0",
52
+ "@react-native/babel-preset": "^0.81.0",
53
+ "@react-native/metro-babel-transformer": "^0.81.0",
54
+ "@react-native/metro-config": "^0.81.0",
55
+ "@types/react": "~19.1.0",
56
+ "@types/react-test-renderer": "^19.1.0",
57
+ "react": "19.1.0",
58
+ "react-native": "^0.81.0",
59
+ "react-native-macos": "^0.81.0",
60
+ "react-native-windows": "^0.81.0",
61
+ "react-test-renderer": "19.1.0"
55
62
  },
56
63
  "peerDependencies": {
57
64
  "@office-iss/react-native-win32": "^0.74.0",
58
- "react": "18.2.0",
59
- "react-native": "^0.73.0 || ^0.74.0",
60
- "react-native-macos": "^0.73.0 || ^0.74.0",
61
- "react-native-windows": "^0.73.0 || ^0.74.0"
65
+ "@types/react": "~18.2.0 || ~19.0.0 || ~19.1.0",
66
+ "react": "18.2.0 || 19.0.0 || 19.1.0",
67
+ "react-native": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0",
68
+ "react-native-macos": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0",
69
+ "react-native-windows": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0"
70
+ },
71
+ "peerDependenciesMeta": {
72
+ "@office-iss/react-native-win32": {
73
+ "optional": true
74
+ },
75
+ "@types/react": {
76
+ "optional": true
77
+ },
78
+ "react-native-macos": {
79
+ "optional": true
80
+ },
81
+ "react-native-windows": {
82
+ "optional": true
83
+ }
62
84
  },
63
- "author": "",
64
- "license": "MIT",
65
85
  "rnx-kit": {
66
86
  "kitType": "library",
67
87
  "alignDeps": {
68
- "presets": [
69
- "microsoft/react-native"
70
- ],
71
- "requirements": {
72
- "development": [
73
- "react-native@0.74"
74
- ],
75
- "production": [
76
- "react-native@0.73 || 0.74"
77
- ]
78
- },
79
88
  "capabilities": [
80
89
  "babel-preset-react-native",
81
90
  "core",
@@ -85,19 +94,11 @@
85
94
  "core-windows",
86
95
  "metro-react-native-babel-transformer",
87
96
  "react",
88
- "react-test-renderer"
97
+ "react-test-renderer",
98
+ "tools-core",
99
+ "tools-jest"
89
100
  ]
90
- }
91
- },
92
- "peerDependenciesMeta": {
93
- "@office-iss/react-native-win32": {
94
- "optional": true
95
- },
96
- "react-native-macos": {
97
- "optional": true
98
101
  },
99
- "react-native-windows": {
100
- "optional": true
101
- }
102
+ "extends": "@fluentui-react-native/kit-config"
102
103
  }
103
- }
104
+ }
@@ -3,13 +3,11 @@
3
3
  * Licensed under the MIT License.
4
4
  * @format
5
5
  */
6
-
7
- import type { HostComponent, ViewProps } from 'react-native';
8
-
9
- import type { WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
10
6
  import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
11
7
 
12
- import type { UnsafeMixed } from './codegenTypes';
8
+ import type { ViewProps } from 'react-native';
9
+ import type { WithDefault, UnsafeMixed } from 'react-native/Libraries/Types/CodegenTypes';
10
+
13
11
  // Should be:
14
12
  // import type { UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes';
15
13
 
@@ -23,4 +21,4 @@ export interface NativeProps extends ViewProps {
23
21
  isTabNavigation?: boolean;
24
22
  }
25
23
 
26
- export default codegenNativeComponent<NativeProps>('RCTFocusZone') as HostComponent<NativeProps>;
24
+ export default codegenNativeComponent<NativeProps>('RCTFocusZone');
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import { act } from 'react';
2
2
  import { Button } from 'react-native';
3
3
 
4
4
  import * as renderer from 'react-test-renderer';
@@ -11,116 +11,128 @@ const onPress = () => {
11
11
 
12
12
  describe('FocusZone No Props', () => {
13
13
  it('No children', () => {
14
- const tree = renderer.create(<FocusZone />).toJSON();
15
- expect(tree).toMatchSnapshot();
14
+ let component: renderer.ReactTestRenderer;
15
+ act(() => {
16
+ component = renderer.create(<FocusZone />);
17
+ });
18
+ expect(component!.toJSON()).toMatchSnapshot();
16
19
  });
17
20
 
18
21
  it('One child', () => {
19
- const tree = renderer
20
- .create(
22
+ let component: renderer.ReactTestRenderer;
23
+ act(() => {
24
+ component = renderer.create(
21
25
  <FocusZone>
22
26
  <Button title="button" onPress={onPress} />
23
27
  </FocusZone>,
24
- )
25
- .toJSON();
26
- expect(tree).toMatchSnapshot();
28
+ );
29
+ });
30
+ expect(component!.toJSON()).toMatchSnapshot();
27
31
  });
28
32
 
29
33
  it('Two children', () => {
30
- const tree = renderer
31
- .create(
34
+ let component: renderer.ReactTestRenderer;
35
+ act(() => {
36
+ component = renderer.create(
32
37
  <FocusZone>
33
38
  <Button title="button" onPress={onPress} />
34
39
  <Button title="button" onPress={onPress} />
35
40
  </FocusZone>,
36
- )
37
- .toJSON();
38
- expect(tree).toMatchSnapshot();
41
+ );
42
+ });
43
+ expect(component!.toJSON()).toMatchSnapshot();
39
44
  });
40
45
 
41
46
  it('Three children', () => {
42
- const tree = renderer
43
- .create(
47
+ let component: renderer.ReactTestRenderer;
48
+ act(() => {
49
+ component = renderer.create(
44
50
  <FocusZone>
45
51
  <Button title="button" onPress={onPress} />
46
52
  <Button title="button" onPress={onPress} />
47
53
  <Button title="button" onPress={onPress} />
48
54
  </FocusZone>,
49
- )
50
- .toJSON();
51
- expect(tree).toMatchSnapshot();
55
+ );
56
+ });
57
+ expect(component!.toJSON()).toMatchSnapshot();
52
58
  });
53
59
  });
54
60
 
55
61
  describe('FocusZone With Props', () => {
56
62
  it('defaultTabbableElement Prop', () => {
57
- const tree = renderer
58
- .create(
63
+ let component: renderer.ReactTestRenderer;
64
+ act(() => {
65
+ component = renderer.create(
59
66
  <FocusZone defaultTabbableElement={null}>
60
67
  <Button title="button" onPress={onPress} />
61
68
  <Button title="button" onPress={onPress} />
62
69
  <Button title="button" onPress={onPress} />
63
70
  </FocusZone>,
64
- )
65
- .toJSON();
66
- expect(tree).toMatchSnapshot();
71
+ );
72
+ });
73
+ expect(component!.toJSON()).toMatchSnapshot();
67
74
  });
68
75
 
69
76
  it('focusZoneDirection Prop', () => {
70
- const tree = renderer
71
- .create(
77
+ let component: renderer.ReactTestRenderer;
78
+ act(() => {
79
+ component = renderer.create(
72
80
  <FocusZone focusZoneDirection="bidirectional">
73
81
  <Button title="button" onPress={onPress} />
74
82
  <Button title="button" onPress={onPress} />
75
83
  <Button title="button" onPress={onPress} />
76
84
  </FocusZone>,
77
- )
78
- .toJSON();
79
- expect(tree).toMatchSnapshot();
85
+ );
86
+ });
87
+ expect(component!.toJSON()).toMatchSnapshot();
80
88
  });
81
89
 
82
90
  it('disabled Prop', () => {
83
- const tree = renderer
84
- .create(
91
+ let component: renderer.ReactTestRenderer;
92
+ act(() => {
93
+ component = renderer.create(
85
94
  <FocusZone disabled={true}>
86
95
  <Button title="button" onPress={onPress} />
87
96
  <Button title="button" onPress={onPress} />
88
97
  <Button title="button" onPress={onPress} />
89
98
  </FocusZone>,
90
- )
91
- .toJSON();
92
- expect(tree).toMatchSnapshot();
99
+ );
100
+ });
101
+ expect(component!.toJSON()).toMatchSnapshot();
93
102
  });
94
103
 
95
104
  it('isCircularNavigation Prop', () => {
96
- const tree = renderer
97
- .create(
105
+ let component: renderer.ReactTestRenderer;
106
+ act(() => {
107
+ component = renderer.create(
98
108
  <FocusZone isCircularNavigation={true}>
99
109
  <Button title="button" onPress={onPress} />
100
110
  <Button title="button" onPress={onPress} />
101
111
  <Button title="button" onPress={onPress} />
102
112
  </FocusZone>,
103
- )
104
- .toJSON();
105
- expect(tree).toMatchSnapshot();
113
+ );
114
+ });
115
+ expect(component!.toJSON()).toMatchSnapshot();
106
116
  });
107
117
 
108
118
  it('use2DNavigation Prop', () => {
109
- const tree = renderer
110
- .create(
119
+ let component: renderer.ReactTestRenderer;
120
+ act(() => {
121
+ component = renderer.create(
111
122
  <FocusZone use2DNavigation={true}>
112
123
  <Button title="button" onPress={onPress} />
113
124
  <Button title="button" onPress={onPress} />
114
125
  <Button title="button" onPress={onPress} />
115
126
  </FocusZone>,
116
- )
117
- .toJSON();
118
- expect(tree).toMatchSnapshot();
127
+ );
128
+ });
129
+ expect(component!.toJSON()).toMatchSnapshot();
119
130
  });
120
131
 
121
132
  it('All Props', () => {
122
- const tree = renderer
123
- .create(
133
+ let component: renderer.ReactTestRenderer;
134
+ act(() => {
135
+ component = renderer.create(
124
136
  <FocusZone
125
137
  disabled={false}
126
138
  use2DNavigation={true}
@@ -132,8 +144,8 @@ describe('FocusZone With Props', () => {
132
144
  <Button title="button" onPress={onPress} />
133
145
  <Button title="button" onPress={onPress} />
134
146
  </FocusZone>,
135
- )
136
- .toJSON();
137
- expect(tree).toMatchSnapshot();
147
+ );
148
+ });
149
+ expect(component!.toJSON()).toMatchSnapshot();
138
150
  });
139
151
  });
@@ -1,2 +0,0 @@
1
- // Separate .d.ts file to fool codegen, since UnsafeMixed does not existing in the TS types of RN currently.
2
- export type UnsafeMixed = any;