@fluentui-react-native/focus-zone 0.23.2 → 0.23.4

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.
Files changed (58) hide show
  1. package/.cache/tsconfig.tsbuildinfo +1 -1
  2. package/CHANGELOG.md +14 -0
  3. package/RCTFocusZone.podspec +1 -1
  4. package/SPEC.md +42 -0
  5. package/lib/FocusZone.d.ts +2 -6
  6. package/lib/FocusZone.d.ts.map +1 -1
  7. package/lib/FocusZone.js +28 -45
  8. package/lib/FocusZone.js.map +1 -1
  9. package/lib/FocusZone.types.d.ts +16 -15
  10. package/lib/FocusZone.types.d.ts.map +1 -1
  11. package/lib/FocusZone.types.js.map +1 -1
  12. package/lib/FocusZoneNativeComponent.d.ts +5 -3
  13. package/lib/FocusZoneNativeComponent.d.ts.map +1 -1
  14. package/lib/FocusZoneNativeComponent.js +3 -1
  15. package/lib/FocusZoneNativeComponent.js.map +1 -1
  16. package/lib/FocusZoneNativeComponent.win32.d.ts +16 -0
  17. package/lib/FocusZoneNativeComponent.win32.d.ts.map +1 -0
  18. package/lib/FocusZoneNativeComponent.win32.js +3 -0
  19. package/lib/FocusZoneNativeComponent.win32.js.map +1 -0
  20. package/lib/__tests__/FocusZone.test.js +68 -70
  21. package/lib/__tests__/FocusZone.test.js.map +1 -1
  22. package/lib/__tests__/FocusZone.types.test.d.ts +2 -0
  23. package/lib/__tests__/FocusZone.types.test.d.ts.map +1 -0
  24. package/lib/__tests__/FocusZone.types.test.js +26 -0
  25. package/lib/__tests__/FocusZone.types.test.js.map +1 -0
  26. package/macos/RCTFocusZone.m +76 -17
  27. package/macos/RCTFocusZoneComponentView.h +14 -0
  28. package/macos/RCTFocusZoneComponentView.mm +201 -0
  29. package/package.json +30 -8
  30. package/react-native.config.cjs +15 -0
  31. package/src/FocusZone.tsx +50 -0
  32. package/src/FocusZone.types.ts +16 -16
  33. package/src/FocusZoneNativeComponent.ts +8 -6
  34. package/src/FocusZoneNativeComponent.win32.ts +18 -0
  35. package/src/__tests__/FocusZone.test.tsx +105 -125
  36. package/src/__tests__/FocusZone.types.test.ts +36 -0
  37. package/tsconfig.json +5 -7
  38. package/windows/ExperimentalFeatures.props +33 -0
  39. package/windows/FRNFocusZone/FRNFocusZone.def +3 -0
  40. package/windows/FRNFocusZone/FRNFocusZone.rc +0 -0
  41. package/windows/FRNFocusZone/FRNFocusZone.vcxproj +147 -0
  42. package/windows/FRNFocusZone/FRNFocusZone.vcxproj.filters +44 -0
  43. package/windows/FRNFocusZone/FocusZoneComponentView.cpp +590 -0
  44. package/windows/FRNFocusZone/FocusZoneComponentView.h +7 -0
  45. package/windows/FRNFocusZone/ReactPackageProvider.cpp +24 -0
  46. package/windows/FRNFocusZone/ReactPackageProvider.h +24 -0
  47. package/windows/FRNFocusZone/ReactPackageProvider.idl +9 -0
  48. package/windows/FRNFocusZone/codegen/.clang-format +2 -0
  49. package/windows/FRNFocusZone/codegen/react/components/FRNFocusZoneSpec/FocusZone.g.h +243 -0
  50. package/windows/FRNFocusZone/packages.lock.json +151 -0
  51. package/windows/FRNFocusZone/pch.cpp +1 -0
  52. package/windows/FRNFocusZone/pch.h +40 -0
  53. package/windows/FRNFocusZone/resource.h +5 -0
  54. package/windows/FRNFocusZone/targetver.h +8 -0
  55. package/windows/FRNFocusZone.sln +43 -0
  56. package/windows/NuGet.Config +13 -0
  57. package/src/FocusZone.ts +0 -57
  58. package/src/__tests__/__snapshots__/FocusZone.test.tsx.snap +0 -1516
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Change Log - @fluentui-react-native/focus-zone
2
2
 
3
+ ## 0.23.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 1ffcfa3: Convert FocusZone to an unstyled phased primitive and add package-owned macOS and Windows Fabric implementations alongside Paper.
8
+
9
+ ## 0.23.3
10
+
11
+ ### Patch Changes
12
+
13
+ - @uifabricshared/foundation-composable@0.15.3
14
+ - @uifabricshared/foundation-settings@0.16.9
15
+ - @fluentui-react-native/interactive-hooks@0.28.9
16
+
3
17
  ## 0.23.2
4
18
 
5
19
  ### Patch Changes
@@ -17,5 +17,5 @@ Pod::Spec.new do |s|
17
17
  s.osx.deployment_target = "10.15"
18
18
  s.osx.source_files = "macos/*.{swift,h,m,mm}"
19
19
 
20
- s.dependency 'React'
20
+ install_modules_dependencies(s)
21
21
  end
package/SPEC.md ADDED
@@ -0,0 +1,42 @@
1
+ # FocusZone
2
+
3
+ ## Purpose
4
+
5
+ FocusZone is an unstyled native primitive that coordinates directional and Tab
6
+ keyboard navigation among focusable descendants. It remains a standalone package
7
+ because it owns native macOS code and CocoaPods integration.
8
+
9
+ ## Contract
10
+
11
+ - `FocusZoneProps` extends React Native `ViewProps` with directional, circular,
12
+ Tab, disabled, and default-tabbable-element behavior.
13
+ - `defaultTabbableElement` accepts a React component ref or registered native
14
+ identifier.
15
+ - `componentRef` exposes the native view, including its `focus()` method.
16
+ - Children, accessibility props, test props, native events, and caller styles are
17
+ forwarded without theme tokens or appearance defaults.
18
+ - `isCircularNavigation` maps to the native `NavigateWrap` end behavior; otherwise
19
+ navigation stops at the ends.
20
+
21
+ ## Platform behavior
22
+
23
+ - macOS includes both the existing Paper view manager and a package-owned Fabric
24
+ component view. Both reuse the same `RCTFocusZone` navigation implementation.
25
+ - Windows includes a package-owned Fabric component view that coordinates
26
+ directional, Home/End, Tab, and focus-restoration behavior through RNW
27
+ `ComponentView` focus APIs.
28
+ - Win32 continues to use its platform-provided native FocusZone implementation.
29
+ - Unsupported behavior remains platform-defined rather than being simulated in
30
+ JavaScript.
31
+
32
+ ## Compatibility
33
+
34
+ `FocusZoneState`, `FocusZoneTokens`, `FocusZoneSlotProps`,
35
+ `FocusZoneRenderData`, and `FocusZoneType` remain as deprecated compatibility
36
+ types.
37
+
38
+ ## Demonstration
39
+
40
+ Interactive directional, circular, Tab, disabled, and default-focus scenarios
41
+ live with the agentic primitive stories in
42
+ `packages/agentic/components/src/primitives/focus-zone/focus-zone.stories.tsx`.
@@ -1,9 +1,5 @@
1
1
  /**
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- * @format
2
+ * Renders the native FocusZone without applying theme or appearance defaults.
5
3
  */
6
- import * as React from 'react';
7
- import type { FocusZoneProps, FocusZoneSlotProps } from './FocusZone.types';
8
- export declare const FocusZone: import("@uifabricshared/foundation-composable").IWithComposable<React.FunctionComponent<FocusZoneProps>, import("@uifabricshared/foundation-composable").IComposable<FocusZoneProps, FocusZoneSlotProps, {}>>;
4
+ export declare const FocusZone: any;
9
5
  //# sourceMappingURL=FocusZone.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FocusZone.d.ts","sourceRoot":"","sources":["../src/FocusZone.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAiB,MAAM,mBAAmB,CAAC;AAW3F,eAAO,MAAM,SAAS,+MA+BpB,CAAC"}
1
+ {"version":3,"file":"FocusZone.d.ts","sourceRoot":"","sources":["../src/FocusZone.tsx"],"names":[],"mappings":"AAWA;;GAEG;AACH,eAAO,MAAM,SAAS,KAiCpB,CAAC"}
package/lib/FocusZone.js CHANGED
@@ -1,50 +1,33 @@
1
- /**
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- * @format
5
- */
1
+ import { jsx as _jsx } from "@fluentui-react-native/framework-base/jsx-runtime";
2
+ /** @jsxImportSource @fluentui-react-native/framework-base */
6
3
  import * as React from 'react';
7
4
  import { findNodeHandle } from 'react-native';
5
+ import { directComponent, mergeProps, phasedComponent } from '@fluentui-react-native/framework-base';
8
6
  import { useViewCommandFocus } from '@fluentui-react-native/interactive-hooks';
9
- import { composable } from '@uifabricshared/foundation-composable';
10
- import { mergeSettings } from '@uifabricshared/foundation-settings';
11
- import RCTFocusZone from './FocusZoneNativeComponent';
12
- const filterOutComponentRef = (props) => {
13
- if (props && typeof props === 'object' && 'componentRef' in props) {
14
- const { componentRef: _componentRef, ...rest } = props;
15
- return rest;
16
- }
17
- return props;
18
- };
19
- export const FocusZone = composable({
20
- usePrepareProps: (userProps, useStyling) => {
21
- const { componentRef, defaultTabbableElement, isCircularNavigation, ...rest } = userProps;
22
- const ftzRef = useViewCommandFocus(componentRef);
23
- const [targetFirstFocus, setTargetFirstFocus] = React.useState(undefined);
24
- React.useLayoutEffect(() => {
25
- if (typeof defaultTabbableElement === 'string') {
26
- setTargetFirstFocus(defaultTabbableElement);
27
- }
28
- else if (defaultTabbableElement?.current) {
29
- setTargetFirstFocus(findNodeHandle(defaultTabbableElement.current));
30
- }
31
- else {
32
- setTargetFirstFocus(undefined);
33
- }
34
- }, [defaultTabbableElement]);
35
- return {
36
- slotProps: mergeSettings(useStyling(userProps), {
37
- root: {
38
- navigateAtEnd: isCircularNavigation ? 'NavigateWrap' : 'NavigateStopAtEnds', // let rest override
39
- ...rest,
40
- defaultTabbableElement: targetFirstFocus,
41
- ref: ftzRef,
42
- },
43
- }),
44
- };
45
- },
46
- slots: {
47
- root: { slotType: RCTFocusZone, filter: filterOutComponentRef },
48
- },
7
+ import { focusZoneName } from './FocusZone.types';
8
+ import NativeFocusZone from './FocusZoneNativeComponent';
9
+ /**
10
+ * Renders the native FocusZone without applying theme or appearance defaults.
11
+ */
12
+ export const FocusZone = phasedComponent((props) => {
13
+ const { componentRef, defaultTabbableElement } = props;
14
+ const nativeRef = useViewCommandFocus(componentRef);
15
+ const [nativeDefaultTabbableElement, setNativeDefaultTabbableElement] = React.useState();
16
+ React.useLayoutEffect(() => {
17
+ if (typeof defaultTabbableElement === 'string') {
18
+ setNativeDefaultTabbableElement(defaultTabbableElement);
19
+ }
20
+ else if (defaultTabbableElement?.current) {
21
+ setNativeDefaultTabbableElement(findNodeHandle(defaultTabbableElement.current) ?? undefined);
22
+ }
23
+ else {
24
+ setNativeDefaultTabbableElement(undefined);
25
+ }
26
+ }, [defaultTabbableElement]);
27
+ return directComponent((renderProps) => {
28
+ const { componentRef: _componentRef, defaultTabbableElement: _defaultTabbableElement, isCircularNavigation, navigateAtEnd = isCircularNavigation ? 'NavigateWrap' : 'NavigateStopAtEnds', ...nativeProps } = mergeProps(props, renderProps);
29
+ return (_jsx(NativeFocusZone, { ...nativeProps, defaultTabbableElement: nativeDefaultTabbableElement, navigateAtEnd: navigateAtEnd, ref: nativeRef }));
30
+ });
49
31
  });
32
+ FocusZone.displayName = focusZoneName;
50
33
  //# sourceMappingURL=FocusZone.js.map
@@ -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,EAAE,MAAM,qCAAqC,CAAC;AAGpE,OAAO,YAAY,MAAM,4BAA4B,CAAC;AAEtD,MAAM,qBAAqB,GAAG,CAAI,KAAQ,EAAK,EAAE;IAC/C,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,cAAc,IAAI,KAAK,EAAE,CAAC;QAClE,MAAM,EAAE,YAAY,EAAE,aAAa,EAAE,GAAG,IAAI,EAAE,GAAG,KAAgC,CAAC;QAClF,OAAO,IAAS,CAAC;IACnB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,UAAU,CAAgB;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,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;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAS,CAAC,WAAW,GAAG,aAAa,CAAC"}
@@ -1,11 +1,9 @@
1
1
  import type * as React from 'react';
2
- import type { IViewProps } from '@fluentui-react-native/adapters';
2
+ import type { ViewProps } from 'react-native';
3
3
  import type { IFocusable } from '@fluentui-react-native/interactive-hooks';
4
- import type { IRenderData } from '@uifabricshared/foundation-composable';
5
4
  export declare const focusZoneName = "FocusZone";
6
- type EmptyInterface = {};
7
- export type FocusZoneState = EmptyInterface;
8
- export type FocusZoneProps = IViewProps & {
5
+ export type FocusZoneState = Record<never, never>;
6
+ export interface FocusZoneProps extends ViewProps {
9
7
  /**
10
8
  * A RefObject to access the IFocusable interface. Use this to access the public methods and properties of the component.
11
9
  */
@@ -13,7 +11,7 @@ export type FocusZoneProps = IViewProps & {
13
11
  /**
14
12
  * Optionally defines the initial tabbable element inside the FocusZone
15
13
  */
16
- defaultTabbableElement?: React.RefObject<React.Component> | string;
14
+ defaultTabbableElement?: React.RefObject<React.Component | null> | string;
17
15
  /**
18
16
  ** Defines which arrows to react to
19
17
  */
@@ -48,10 +46,6 @@ export type FocusZoneProps = IViewProps & {
48
46
  * the FocusZone.
49
47
  */
50
48
  tabKeyNavigation?: FocusZoneTabNavigation;
51
- /**
52
- * Callback called when “focus” event triggered in FocusZone
53
- */
54
- onFocus?: (e?: any) => void;
55
49
  /**
56
50
  * @platform macos
57
51
  * By default, the Apple KeyView loop is calculated based on the UI tree hierarchy, accessibility properties,
@@ -69,24 +63,31 @@ export type FocusZoneProps = IViewProps & {
69
63
  * of the MacOS KeyView loop mechanics.
70
64
  */
71
65
  navigationOrderInRenderOrder?: boolean;
72
- };
73
- export interface NativeProps extends Omit<FocusZoneProps, 'isCircularNavigation'> {
66
+ }
67
+ export interface NativeProps extends Omit<FocusZoneProps, 'componentRef' | 'defaultTabbableElement' | 'isCircularNavigation'> {
68
+ defaultTabbableElement?: number | string;
74
69
  navigateAtEnd?: NavigateAtEnd;
75
70
  tabKeyNavigation?: FocusZoneTabNavigation;
76
71
  }
77
72
  export type FocusZoneDirection = 'bidirectional' /** React to all arrows. */ | 'vertical' /** Only react to up/down arrows. */ | 'horizontal' /** Only react to left/right arrows. */ | 'none'; /** Doesn't respond to any arrow keys. */
78
73
  export type NavigateAtEnd = 'NavigateStopAtEnds' | 'NavigateWrap' | 'NavigateContinue';
79
74
  export type FocusZoneTabNavigation = 'None' | 'NavigateWrap' | 'NavigateStopAtEnds' | 'Normal';
80
- export type FocusZoneTokens = EmptyInterface;
75
+ /** @deprecated FocusZone is an unstyled primitive and does not resolve tokens. */
76
+ export type FocusZoneTokens = Record<never, never>;
77
+ /** @deprecated Use FocusZoneProps. */
81
78
  export interface FocusZoneSlotProps {
82
79
  root: NativeProps;
83
80
  }
84
- export type FocusZoneRenderData = IRenderData<FocusZoneSlotProps, FocusZoneState>;
81
+ /** @deprecated FocusZone uses the phased primitive component pattern. */
82
+ export interface FocusZoneRenderData {
83
+ slotProps?: FocusZoneSlotProps;
84
+ state?: FocusZoneState;
85
+ }
86
+ /** @deprecated Use FocusZoneProps. */
85
87
  export interface FocusZoneType {
86
88
  props: FocusZoneProps;
87
89
  tokens: FocusZoneTokens;
88
90
  slotProps: FocusZoneSlotProps;
89
91
  state: FocusZoneState;
90
92
  }
91
- export {};
92
93
  //# sourceMappingURL=FocusZone.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FocusZone.types.d.ts","sourceRoot":"","sources":["../src/FocusZone.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEzE,eAAO,MAAM,aAAa,cAAc,CAAC;AAGzC,KAAK,c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,SAAQ,IAAI,CAAC,cAAc,EAAE,cAAc,GAAG,wBAAwB,GAAG,sBAAsB,CAAC;IAC3H,sBAAsB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzC,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;CAC3C;AAED,MAAM,MAAM,kBAAkB,GAC1B,eAAe,CAAC,2BAA2B,GAC3C,UAAU,CAAC,oCAAoC,GAC/C,YAAY,CAAC,uCAAuC,GACpD,MAAM,CAAC,CAAC,yCAAyC;AAErD,MAAM,MAAM,aAAa,GACrB,oBAAoB,GACpB,cAAc,GACd,kBAAkB,CAAC;AAEvB,MAAM,MAAM,sBAAsB,GAC9B,MAAM,GACN,cAAc,GACd,oBAAoB,GACpB,QAAQ,CAAC;AAEb,kFAAkF;AAClF,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AAEnD,sCAAsC;AACtC,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,yEAAyE;AACzE,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB;AAED,sCAAsC;AACtC,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,cAAc,CAAC;IACtB,MAAM,EAAE,eAAe,CAAC;IACxB,SAAS,EAAE,kBAAkB,CAAC;IAC9B,KAAK,EAAE,cAAc,CAAC;CACvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"FocusZone.types.js","sourceRoot":"","sources":["../src/FocusZone.types.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,CAAC"}
1
+ {"version":3,"file":"FocusZone.types.js","sourceRoot":"","sources":["../src/FocusZone.types.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { ViewProps } from 'react-native';
2
- import type { WithDefault, UnsafeMixed } from 'react-native/Libraries/Types/CodegenTypes';
1
+ import type { HostComponent, ViewProps } from 'react-native';
2
+ import type { UnsafeMixed, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
3
3
  export interface NativeProps extends ViewProps {
4
4
  navigateAtEnd?: WithDefault<'NavigateStopAtEnds' | 'NavigateWrap' | 'NavigateContinue', 'NavigateStopAtEnds'>;
5
5
  defaultTabbableElement?: UnsafeMixed;
@@ -8,7 +8,9 @@ export interface NativeProps extends ViewProps {
8
8
  tabKeyNavigation?: WithDefault<'None' | 'NavigateWrap' | 'NavigateStopAtEnds' | 'Normal', 'None'>;
9
9
  disabled?: boolean;
10
10
  isTabNavigation?: boolean;
11
+ navigationOrderInRenderOrder?: boolean;
11
12
  }
12
- declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
13
+ export type FocusZoneComponentType = HostComponent<NativeProps>;
14
+ declare const _default: FocusZoneComponentType;
13
15
  export default _default;
14
16
  //# sourceMappingURL=FocusZoneNativeComponent.d.ts.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"FocusZoneNativeComponent.d.ts","sourceRoot":"","sources":["../src/FocusZoneNativeComponent.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAE1F,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;IAC1B,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC;AAED,MAAM,MAAM,sBAAsB,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC;wBAI1D,sBAAsB"}
@@ -4,5 +4,7 @@
4
4
  * @format
5
5
  */
6
6
  import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
7
- export default codegenNativeComponent('RCTFocusZone');
7
+ export default codegenNativeComponent('FocusZone', {
8
+ paperComponentName: 'RCTFocusZone',
9
+ });
8
10
  //# sourceMappingURL=FocusZoneNativeComponent.js.map
@@ -1 +1 @@
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
+ {"version":3,"file":"FocusZoneNativeComponent.js","sourceRoot":"","sources":["../src/FocusZoneNativeComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,sBAAsB,MAAM,yDAAyD,CAAC;AAkB7F,eAAe,sBAAsB,CAAc,WAAW,EAAE;IAC9D,kBAAkB,EAAE,cAAc;CACnC,CAA2B,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { HostComponent, ViewProps } from 'react-native';
2
+ import type { UnsafeMixed, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
3
+ export interface NativeProps extends ViewProps {
4
+ navigateAtEnd?: WithDefault<'NavigateStopAtEnds' | 'NavigateWrap' | 'NavigateContinue', 'NavigateStopAtEnds'>;
5
+ defaultTabbableElement?: UnsafeMixed;
6
+ focusZoneDirection?: WithDefault<'bidirectional' | 'vertical' | 'horizontal' | 'none', 'bidirectional'>;
7
+ use2DNavigation?: boolean;
8
+ tabKeyNavigation?: WithDefault<'None' | 'NavigateWrap' | 'NavigateStopAtEnds' | 'Normal', 'None'>;
9
+ disabled?: boolean;
10
+ isTabNavigation?: boolean;
11
+ navigationOrderInRenderOrder?: boolean;
12
+ }
13
+ export type FocusZoneComponentType = HostComponent<NativeProps>;
14
+ declare const _default: FocusZoneComponentType;
15
+ export default _default;
16
+ //# sourceMappingURL=FocusZoneNativeComponent.win32.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FocusZoneNativeComponent.win32.d.ts","sourceRoot":"","sources":["../src/FocusZoneNativeComponent.win32.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAE1F,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;IAC1B,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC;AAED,MAAM,MAAM,sBAAsB,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC;wBAEM,sBAAsB"}
@@ -0,0 +1,3 @@
1
+ import { requireNativeComponent } from 'react-native';
2
+ export default requireNativeComponent('RCTFocusZone');
3
+ //# sourceMappingURL=FocusZoneNativeComponent.win32.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FocusZoneNativeComponent.win32.js","sourceRoot":"","sources":["../src/FocusZoneNativeComponent.win32.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAiBtD,eAAe,sBAAsB,CAAc,cAAc,CAA2B,CAAC"}
@@ -1,83 +1,81 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { act } from 'react';
3
- import { Button } from 'react-native';
4
- import * as renderer from 'react-test-renderer';
5
- import { FocusZone } from '..';
6
- const onPress = () => {
7
- return;
8
- };
9
- describe('FocusZone No Props', () => {
10
- it('No children', () => {
11
- let component;
12
- act(() => {
13
- component = renderer.create(_jsx(FocusZone, {}));
14
- });
15
- expect(component.toJSON()).toMatchSnapshot();
1
+ import { jsx as _jsx } from "@fluentui-react-native/framework-base/jsx-runtime";
2
+ /** @jsxImportSource @fluentui-react-native/framework-base */
3
+ import * as React from 'react';
4
+ import { StyleSheet, Text, View } from 'react-native';
5
+ import { isPhasedComponent, useSlot } from '@fluentui-react-native/framework-base';
6
+ import { render } from '@testing-library/react-native';
7
+ import { FocusZone } from '../FocusZone';
8
+ jest.mock('react-native/Libraries/ReactNative/RendererProxy', () => ({
9
+ ...jest.requireActual('react-native/Libraries/ReactNative/RendererProxy'),
10
+ findNodeHandle: jest.fn(() => 42),
11
+ }));
12
+ function FocusZoneSlotConsumer({ focusZone }) {
13
+ const FocusZoneSlot = useSlot(FocusZone, focusZone);
14
+ return (_jsx(FocusZoneSlot, { accessibilityHint: "rendered as a slot", testID: "slotted-focus-zone", children: _jsx(Text, { children: "Slot content" }) }));
15
+ }
16
+ describe('FocusZone', () => {
17
+ afterEach(() => {
18
+ jest.restoreAllMocks();
16
19
  });
17
- it('One child', () => {
18
- let component;
19
- act(() => {
20
- component = renderer.create(_jsx(FocusZone, { children: _jsx(Button, { title: "button", onPress: onPress }) }));
21
- });
22
- expect(component.toJSON()).toMatchSnapshot();
20
+ it('uses phased rendering and applies no styling defaults', async () => {
21
+ expect(isPhasedComponent(FocusZone)).toBe(true);
22
+ const component = await render(_jsx(FocusZone, { testID: "focus-zone" }));
23
+ const focusZone = component.getByTestId('focus-zone');
24
+ expect(focusZone.type).toBe('RCTFocusZone');
25
+ expect(focusZone.props.navigateAtEnd).toBe('NavigateStopAtEnds');
26
+ expect(focusZone.props.style).toBeUndefined();
23
27
  });
24
- it('Two children', () => {
25
- let component;
26
- act(() => {
27
- component = renderer.create(_jsxs(FocusZone, { children: [_jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress })] }));
28
+ it('forwards native behavior, accessibility, style, callbacks, and children', async () => {
29
+ const onFocus = jest.fn();
30
+ const style = { opacity: 0.5 };
31
+ const component = await render(_jsx(FocusZone, { accessibilityLabel: "Formatting tools", disabled: true, focusZoneDirection: "vertical", navigationOrderInRenderOrder: true, onFocus: onFocus, style: style, tabKeyNavigation: "Normal", testID: "focus-zone", use2DNavigation: true, children: _jsx(Text, { children: "FocusZone content" }) }));
32
+ const focusZone = component.getByTestId('focus-zone');
33
+ expect(focusZone.props).toMatchObject({
34
+ accessibilityLabel: 'Formatting tools',
35
+ disabled: true,
36
+ focusZoneDirection: 'vertical',
37
+ navigationOrderInRenderOrder: true,
38
+ onFocus,
39
+ tabKeyNavigation: 'Normal',
40
+ use2DNavigation: true,
28
41
  });
29
- expect(component.toJSON()).toMatchSnapshot();
42
+ expect(StyleSheet.flatten(focusZone.props.style)).toEqual(style);
43
+ expect(component.getByText('FocusZone content')).toBeTruthy();
30
44
  });
31
- it('Three children', () => {
32
- let component;
33
- act(() => {
34
- component = renderer.create(_jsxs(FocusZone, { children: [_jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress })] }));
35
- });
36
- expect(component.toJSON()).toMatchSnapshot();
37
- });
38
- });
39
- describe('FocusZone With Props', () => {
40
- it('defaultTabbableElement Prop', () => {
41
- let component;
42
- act(() => {
43
- component = renderer.create(_jsxs(FocusZone, { defaultTabbableElement: null, children: [_jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress })] }));
44
- });
45
- expect(component.toJSON()).toMatchSnapshot();
45
+ it('maps circular navigation to the native end behavior', async () => {
46
+ const component = await render(_jsx(FocusZone, { isCircularNavigation: true, testID: "focus-zone" }));
47
+ expect(component.getByTestId('focus-zone').props.navigateAtEnd).toBe('NavigateWrap');
46
48
  });
47
- it('focusZoneDirection Prop', () => {
48
- let component;
49
- act(() => {
50
- component = renderer.create(_jsxs(FocusZone, { focusZoneDirection: "bidirectional", children: [_jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress })] }));
51
- });
52
- expect(component.toJSON()).toMatchSnapshot();
49
+ it('preserves a native end behavior supplied by a legacy slot consumer', async () => {
50
+ const component = await render(_jsx(FocusZoneSlotConsumer, { focusZone: { navigateAtEnd: 'NavigateContinue' } }));
51
+ expect(component.getByTestId('slotted-focus-zone').props.navigateAtEnd).toBe('NavigateContinue');
53
52
  });
54
- it('disabled Prop', () => {
55
- let component;
56
- act(() => {
57
- component = renderer.create(_jsxs(FocusZone, { disabled: true, children: [_jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress })] }));
58
- });
59
- expect(component.toJSON()).toMatchSnapshot();
53
+ it('forwards a registered native identifier as the default tabbable element', async () => {
54
+ const component = await render(_jsx(FocusZone, { defaultTabbableElement: "preferred-item", testID: "focus-zone" }));
55
+ expect(component.getByTestId('focus-zone').props.defaultTabbableElement).toBe('preferred-item');
60
56
  });
61
- it('isCircularNavigation Prop', () => {
62
- let component;
63
- act(() => {
64
- component = renderer.create(_jsxs(FocusZone, { isCircularNavigation: true, children: [_jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress })] }));
65
- });
66
- expect(component.toJSON()).toMatchSnapshot();
57
+ it('resolves a default tabbable element ref to its native handle', async () => {
58
+ const defaultTabbableElement = React.createRef();
59
+ const component = await render(_jsx(FocusZone, { defaultTabbableElement: defaultTabbableElement, testID: "focus-zone", children: _jsx(View, { ref: defaultTabbableElement }) }));
60
+ expect(defaultTabbableElement.current).not.toBeNull();
61
+ expect(component.getByTestId('focus-zone').props.defaultTabbableElement).toBe(42);
67
62
  });
68
- it('use2DNavigation Prop', () => {
69
- let component;
70
- act(() => {
71
- component = renderer.create(_jsxs(FocusZone, { use2DNavigation: true, children: [_jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress })] }));
72
- });
73
- expect(component.toJSON()).toMatchSnapshot();
63
+ it('forwards componentRef without exposing it as a native prop', async () => {
64
+ const componentRef = React.createRef();
65
+ const component = await render(_jsx(FocusZone, { componentRef: componentRef, testID: "focus-zone" }));
66
+ const focusZone = component.getByTestId('focus-zone');
67
+ expect(componentRef.current).not.toBeNull();
68
+ expect(focusZone.props.componentRef).toBeUndefined();
74
69
  });
75
- it('All Props', () => {
76
- let component;
77
- act(() => {
78
- component = renderer.create(_jsxs(FocusZone, { disabled: false, use2DNavigation: true, defaultTabbableElement: null, isCircularNavigation: false, focusZoneDirection: "vertical", children: [_jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress }), _jsx(Button, { title: "button", onPress: onPress })] }));
70
+ it('can be consumed as a slot with merged render props', async () => {
71
+ const component = await render(_jsx(FocusZoneSlotConsumer, { focusZone: { accessibilityLabel: 'Slotted FocusZone', focusZoneDirection: 'horizontal' } }));
72
+ const focusZone = component.getByTestId('slotted-focus-zone');
73
+ expect(focusZone.props).toMatchObject({
74
+ accessibilityHint: 'rendered as a slot',
75
+ accessibilityLabel: 'Slotted FocusZone',
76
+ focusZoneDirection: 'horizontal',
79
77
  });
80
- expect(component.toJSON()).toMatchSnapshot();
78
+ expect(component.getByText('Slot content')).toBeTruthy();
81
79
  });
82
80
  });
83
81
  //# 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,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,KAAK,QAAQ,MAAM,qBA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AAE,kBAAkB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,YAAY,EAAE,GAAI,CACpH,CAAC;QACF,MAAM,SAAS,GAAG,SAAS,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;QAE9D,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC;YACpC,iBAAiB,EAAE,oBAAoB;YACvC,kBAAkB,EAAE,mBAAmB;YACvC,kBAAkB,EAAE,YAAY;SACjC,CAAC,CAAC;QACH,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IAC3D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=FocusZone.types.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FocusZone.types.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/FocusZone.types.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,26 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ import * as React from 'react';
3
+ const componentRef = React.createRef();
4
+ const defaultTabbableElement = React.createRef();
5
+ const props = {
6
+ accessibilityLabel: 'Formatting tools',
7
+ componentRef,
8
+ defaultTabbableElement,
9
+ focusZoneDirection: 'horizontal',
10
+ isCircularNavigation: true,
11
+ };
12
+ const focusZoneSlot = props;
13
+ const nativeProps = {
14
+ defaultTabbableElement: 42,
15
+ focusZoneDirection: 'vertical',
16
+ navigateAtEnd: 'NavigateWrap',
17
+ };
18
+ // @ts-expect-error FocusZone direction must be one of the supported navigation axes.
19
+ const invalidDirection = { focusZoneDirection: 'diagonal' };
20
+ describe('FocusZone types', () => {
21
+ it('accepts public props as a slot contract', () => {
22
+ expect(focusZoneSlot).toBeDefined();
23
+ expect(nativeProps).toBeDefined();
24
+ });
25
+ });
26
+ //# sourceMappingURL=FocusZone.types.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FocusZone.types.test.js","sourceRoot":"","sources":["../../src/__tests__/FocusZone.types.test.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,YAAY,GAAG,KAAK,CAAC,SAAS,EAAc,CAAC;AACnD,MAAM,sBAAsB,GAAG,KAAK,CAAC,SAAS,EAAmB,CAAC;AAElE,MAAM,KAAK,GAAmB;IAC5B,kBAAkB,EAAE,kBAAkB;IACtC,YAAY;IACZ,sBAAsB;IACtB,kBAAkB,EAAE,YAAY;IAChC,oBAAoB,EAAE,IAAI;CAC3B,CAAC;AAEF,MAAM,aAAa,GAA+B,KAAK,CAAC;AACxD,MAAM,WAAW,GAAgB;IAC/B,sBAAsB,EAAE,EAAE;IAC1B,kBAAkB,EAAE,UAAU;IAC9B,aAAa,EAAE,cAAc;CAC9B,CAAC;AAEF,qFAAqF;AACrF,MAAM,gBAAgB,GAAmB,EAAE,kBAAkB,EAAE,UAAU,EAAE,CAAC;AAE5E,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,EAAE,CAAC,yCAAyC,EAAE,GAAG,EAAE;QACjD,MAAM,CAAC,aAAa,CAAC,CAAC,WAAW,EAAE,CAAC;QACpC,MAAM,CAAC,WAAW,CAAC,CAAC,WAAW,EAAE,CAAC;IACpC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}