@fluentui-react-native/focus-zone 0.23.3 → 0.23.5
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/.cache/tsconfig.tsbuildinfo +1 -1
- package/CHANGELOG.md +33 -0
- package/RCTFocusZone.podspec +1 -1
- package/SPEC.md +47 -0
- package/lib/FocusZone.d.ts +2 -6
- package/lib/FocusZone.d.ts.map +1 -1
- package/lib/FocusZone.js +28 -45
- package/lib/FocusZone.js.map +1 -1
- package/lib/FocusZone.types.d.ts +19 -17
- package/lib/FocusZone.types.d.ts.map +1 -1
- package/lib/FocusZone.types.js.map +1 -1
- package/lib/FocusZoneNativeComponent.d.ts +5 -3
- package/lib/FocusZoneNativeComponent.d.ts.map +1 -1
- package/lib/FocusZoneNativeComponent.js +3 -1
- package/lib/FocusZoneNativeComponent.js.map +1 -1
- package/lib/FocusZoneNativeComponent.win32.d.ts +16 -0
- package/lib/FocusZoneNativeComponent.win32.d.ts.map +1 -0
- package/lib/FocusZoneNativeComponent.win32.js +3 -0
- package/lib/FocusZoneNativeComponent.win32.js.map +1 -0
- package/lib/__tests__/FocusZone.test.js +68 -70
- package/lib/__tests__/FocusZone.test.js.map +1 -1
- package/lib/__tests__/FocusZone.types.test.d.ts +2 -0
- package/lib/__tests__/FocusZone.types.test.d.ts.map +1 -0
- package/lib/__tests__/FocusZone.types.test.js +26 -0
- package/lib/__tests__/FocusZone.types.test.js.map +1 -0
- package/macos/RCTFocusZone.m +76 -17
- package/macos/RCTFocusZoneComponentView.h +14 -0
- package/macos/RCTFocusZoneComponentView.mm +201 -0
- package/package.json +30 -8
- package/react-native.config.cjs +15 -0
- package/src/FocusZone.tsx +50 -0
- package/src/FocusZone.types.ts +19 -18
- package/src/FocusZoneNativeComponent.ts +8 -6
- package/src/FocusZoneNativeComponent.win32.ts +18 -0
- package/src/__tests__/FocusZone.test.tsx +105 -125
- package/src/__tests__/FocusZone.types.test.ts +36 -0
- package/tsconfig.json +5 -7
- package/windows/ExperimentalFeatures.props +33 -0
- package/windows/FRNFocusZone/FRNFocusZone.def +3 -0
- package/windows/FRNFocusZone/FRNFocusZone.rc +0 -0
- package/windows/FRNFocusZone/FRNFocusZone.vcxproj +147 -0
- package/windows/FRNFocusZone/FRNFocusZone.vcxproj.filters +44 -0
- package/windows/FRNFocusZone/FocusZoneComponentView.cpp +590 -0
- package/windows/FRNFocusZone/FocusZoneComponentView.h +7 -0
- package/windows/FRNFocusZone/ReactPackageProvider.cpp +24 -0
- package/windows/FRNFocusZone/ReactPackageProvider.h +24 -0
- package/windows/FRNFocusZone/ReactPackageProvider.idl +9 -0
- package/windows/FRNFocusZone/codegen/.clang-format +2 -0
- package/windows/FRNFocusZone/codegen/react/components/FRNFocusZoneSpec/FocusZone.g.h +243 -0
- package/windows/FRNFocusZone/packages.lock.json +151 -0
- package/windows/FRNFocusZone/pch.cpp +1 -0
- package/windows/FRNFocusZone/pch.h +40 -0
- package/windows/FRNFocusZone/resource.h +5 -0
- package/windows/FRNFocusZone/targetver.h +8 -0
- package/windows/FRNFocusZone.sln +43 -0
- package/windows/NuGet.Config +13 -0
- package/src/FocusZone.ts +0 -57
- package/src/__tests__/__snapshots__/FocusZone.test.tsx.snap +0 -1516
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/focus-zone
|
|
2
2
|
|
|
3
|
+
## 0.23.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5b3f74c: Add the native macOS and Windows implementations, explicit native build
|
|
8
|
+
verification, and prebuilt-only Storybook PR pipeline integration for the
|
|
9
|
+
desktop-driver package. Keep the FocusZone Windows WinMD compatible with the
|
|
10
|
+
consuming Storybook application's target SDK.
|
|
11
|
+
- 65245b4: Add ref-backed focus targets and cancellable focus requests, shared focusable pressable behavior, live focused-owner modality subscriptions, and shared-controller popup input boundaries. Migrate agentic components and commit TabList eligibility before requesting native focus. Preserve native activation, adapt unidentified Win32 key codes without duplicate presses, and expose Toggle/Select accessibility actions. Add owned targeted native focus qualification through smoke story/tag selectors.
|
|
12
|
+
|
|
13
|
+
Keep the focusable pressable implementation native-only so React-only Framework Base consumers can load the generic entrypoint without importing the React Native runtime.
|
|
14
|
+
|
|
15
|
+
Separate native keyboard press cleanup from activation pairing, preserving macOS keydown activation and clearing pressed feedback after interruption, blur, disable, or target replacement. Centralize endpoint-specific accessibility action contracts in Framework Base, and execute shared focus stories on macOS with narrowly scoped Windows-only pointer assertions.
|
|
16
|
+
|
|
17
|
+
Carry owned modifier state on macOS native input events so rapid WebDriver chords such as Shift+Tab are delivered correctly.
|
|
18
|
+
|
|
19
|
+
Clarify that FocusZone uses geometric directional navigation on macOS, while Windows and Win32 opt into geometry with use2DNavigation.
|
|
20
|
+
|
|
21
|
+
Coalesce same-instance callback-ref handoffs without changing snapshots or mount generations, while rejecting detached-target activation immediately. Track repeated native key events separately from held physical keys so a single modifier release cannot leave later input modified.
|
|
22
|
+
- 65245b4: Use native focus visuals on all platforms by default while retaining the custom
|
|
23
|
+
FocusVisual implementation behind a shared evaluation switch. Require React
|
|
24
|
+
Native Windows 0.81.35 or newer for the native focus visual crash fix.
|
|
25
|
+
Refresh the Windows Callout and FocusZone NuGet locks to the same runtime version.
|
|
26
|
+
- Updated dependencies [65245b4]
|
|
27
|
+
- @fluentui-react-native/framework-base@0.8.0
|
|
28
|
+
- @fluentui-react-native/interactive-hooks@0.28.10
|
|
29
|
+
|
|
30
|
+
## 0.23.4
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- 1ffcfa3: Convert FocusZone to an unstyled phased primitive and add package-owned macOS and Windows Fabric implementations alongside Paper.
|
|
35
|
+
|
|
3
36
|
## 0.23.3
|
|
4
37
|
|
|
5
38
|
### Patch Changes
|
package/RCTFocusZone.podspec
CHANGED
package/SPEC.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
Directional movement is geometric; `use2DNavigation` does not switch AppKit to
|
|
26
|
+
the Windows linear mode. For example, Down from item 2 in a three-column grid
|
|
27
|
+
moves to item 5.
|
|
28
|
+
- Windows includes a package-owned Fabric component view that coordinates
|
|
29
|
+
directional, Home/End, Tab, and focus-restoration behavior through RNW
|
|
30
|
+
`ComponentView` focus APIs.
|
|
31
|
+
- Win32 continues to use its platform-provided native FocusZone implementation.
|
|
32
|
+
Windows/Win32 use linear movement by default and opt into geometric movement
|
|
33
|
+
with `use2DNavigation`.
|
|
34
|
+
- Unsupported behavior remains platform-defined rather than being simulated in
|
|
35
|
+
JavaScript.
|
|
36
|
+
|
|
37
|
+
## Compatibility
|
|
38
|
+
|
|
39
|
+
`FocusZoneState`, `FocusZoneTokens`, `FocusZoneSlotProps`,
|
|
40
|
+
`FocusZoneRenderData`, and `FocusZoneType` remain as deprecated compatibility
|
|
41
|
+
types.
|
|
42
|
+
|
|
43
|
+
## Demonstration
|
|
44
|
+
|
|
45
|
+
Interactive directional, circular, Tab, disabled, and default-focus scenarios
|
|
46
|
+
live with the agentic primitive stories in
|
|
47
|
+
`packages/agentic/components/src/primitives/focus-zone/focus-zone.stories.tsx`.
|
package/lib/FocusZone.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* @format
|
|
2
|
+
* Renders the native FocusZone without applying theme or appearance defaults.
|
|
5
3
|
*/
|
|
6
|
-
|
|
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
|
package/lib/FocusZone.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusZone.d.ts","sourceRoot":"","sources":["../src/FocusZone.
|
|
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
|
-
|
|
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 {
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
package/lib/FocusZone.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusZone.js","sourceRoot":"","sources":["../src/FocusZone.
|
|
1
|
+
{"version":3,"file":"FocusZone.js","sourceRoot":"","sources":["../src/FocusZone.tsx"],"names":[],"mappings":";AAAA,6DAA6D;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACrG,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAG/E,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,eAAe,MAAM,4BAA4B,CAAC;AAEzD;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,eAAe,CAAiB,CAAC,KAAK,EAAE,EAAE;IACjE,MAAM,EAAE,YAAY,EAAE,sBAAsB,EAAE,GAAG,KAAK,CAAC;IACvD,MAAM,SAAS,GAAG,mBAAmB,CAAC,YAAY,CAAC,CAAC;IACpD,MAAM,CAAC,4BAA4B,EAAE,+BAA+B,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAmB,CAAC;IAE1G,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE;QACzB,IAAI,OAAO,sBAAsB,KAAK,QAAQ,EAAE,CAAC;YAC/C,+BAA+B,CAAC,sBAAsB,CAAC,CAAC;QAC1D,CAAC;aAAM,IAAI,sBAAsB,EAAE,OAAO,EAAE,CAAC;YAC3C,+BAA+B,CAAC,cAAc,CAAC,sBAAsB,CAAC,OAAO,CAAC,IAAI,SAAS,CAAC,CAAC;QAC/F,CAAC;aAAM,CAAC;YACN,+BAA+B,CAAC,SAAS,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC,EAAE,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAE7B,OAAO,eAAe,CAAiB,CAAC,WAAW,EAAE,EAAE;QACrD,MAAM,EACJ,YAAY,EAAE,aAAa,EAC3B,sBAAsB,EAAE,uBAAuB,EAC/C,oBAAoB,EACpB,aAAa,GAAG,oBAAoB,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,oBAAoB,EAC5E,GAAG,WAAW,EACf,GAAG,UAAU,CAAC,KAAK,EAAE,WAAW,CAAoG,CAAC;QAEtI,OAAO,CACL,KAAC,eAAe,OACV,WAAW,EACf,sBAAsB,EAAE,4BAA4B,EACpD,aAAa,EAAE,aAAa,EAC5B,GAAG,EAAE,SAAS,GACd,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAS,CAAC,WAAW,GAAG,aAAa,CAAC"}
|
package/lib/FocusZone.types.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
|
-
import type {
|
|
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
|
|
7
|
-
export
|
|
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
|
*/
|
|
@@ -24,8 +22,9 @@ export type FocusZoneProps = IViewProps & {
|
|
|
24
22
|
disabled?: boolean;
|
|
25
23
|
isCircularNavigation?: boolean;
|
|
26
24
|
/**
|
|
27
|
-
*
|
|
28
|
-
|
|
25
|
+
* Enables geometric rather than linear navigation on Windows/Win32.
|
|
26
|
+
* macOS always uses geometric directional navigation.
|
|
27
|
+
* @platform windows, win32
|
|
29
28
|
*/
|
|
30
29
|
use2DNavigation?: boolean;
|
|
31
30
|
/**
|
|
@@ -48,10 +47,6 @@ export type FocusZoneProps = IViewProps & {
|
|
|
48
47
|
* the FocusZone.
|
|
49
48
|
*/
|
|
50
49
|
tabKeyNavigation?: FocusZoneTabNavigation;
|
|
51
|
-
/**
|
|
52
|
-
* Callback called when “focus” event triggered in FocusZone
|
|
53
|
-
*/
|
|
54
|
-
onFocus?: (e?: any) => void;
|
|
55
50
|
/**
|
|
56
51
|
* @platform macos
|
|
57
52
|
* By default, the Apple KeyView loop is calculated based on the UI tree hierarchy, accessibility properties,
|
|
@@ -69,24 +64,31 @@ export type FocusZoneProps = IViewProps & {
|
|
|
69
64
|
* of the MacOS KeyView loop mechanics.
|
|
70
65
|
*/
|
|
71
66
|
navigationOrderInRenderOrder?: boolean;
|
|
72
|
-
}
|
|
73
|
-
export interface NativeProps extends Omit<FocusZoneProps, 'isCircularNavigation'> {
|
|
67
|
+
}
|
|
68
|
+
export interface NativeProps extends Omit<FocusZoneProps, 'componentRef' | 'defaultTabbableElement' | 'isCircularNavigation'> {
|
|
69
|
+
defaultTabbableElement?: number | string;
|
|
74
70
|
navigateAtEnd?: NavigateAtEnd;
|
|
75
71
|
tabKeyNavigation?: FocusZoneTabNavigation;
|
|
76
72
|
}
|
|
77
73
|
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
74
|
export type NavigateAtEnd = 'NavigateStopAtEnds' | 'NavigateWrap' | 'NavigateContinue';
|
|
79
75
|
export type FocusZoneTabNavigation = 'None' | 'NavigateWrap' | 'NavigateStopAtEnds' | 'Normal';
|
|
80
|
-
|
|
76
|
+
/** @deprecated FocusZone is an unstyled primitive and does not resolve tokens. */
|
|
77
|
+
export type FocusZoneTokens = Record<never, never>;
|
|
78
|
+
/** @deprecated Use FocusZoneProps. */
|
|
81
79
|
export interface FocusZoneSlotProps {
|
|
82
80
|
root: NativeProps;
|
|
83
81
|
}
|
|
84
|
-
|
|
82
|
+
/** @deprecated FocusZone uses the phased primitive component pattern. */
|
|
83
|
+
export interface FocusZoneRenderData {
|
|
84
|
+
slotProps?: FocusZoneSlotProps;
|
|
85
|
+
state?: FocusZoneState;
|
|
86
|
+
}
|
|
87
|
+
/** @deprecated Use FocusZoneProps. */
|
|
85
88
|
export interface FocusZoneType {
|
|
86
89
|
props: FocusZoneProps;
|
|
87
90
|
tokens: FocusZoneTokens;
|
|
88
91
|
slotProps: FocusZoneSlotProps;
|
|
89
92
|
state: FocusZoneState;
|
|
90
93
|
}
|
|
91
|
-
export {};
|
|
92
94
|
//# 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;
|
|
1
|
+
{"version":3,"file":"FocusZone.types.d.ts","sourceRoot":"","sources":["../src/FocusZone.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AAE3E,eAAO,MAAM,aAAa,cAAc,CAAC;AAEzC,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AAElD,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAE3C;;OAEG;IACH,sBAAsB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,MAAM,CAAC;IAE1E;;OAEG;IACH,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IAExC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAGnB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAE/B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;;;;;;;;;;;;;;;OAkBG;IACH,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;IAE1C;;;;;;;;;;;;;;;OAeG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC;AAED,MAAM,WAAW,WAAY,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":"
|
|
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 {
|
|
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
|
-
|
|
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;
|
|
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('
|
|
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,
|
|
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 @@
|
|
|
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
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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('
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
expect(
|
|
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('
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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(
|
|
42
|
+
expect(StyleSheet.flatten(focusZone.props.style)).toEqual(style);
|
|
43
|
+
expect(component.getByText('FocusZone content')).toBeTruthy();
|
|
30
44
|
});
|
|
31
|
-
it('
|
|
32
|
-
|
|
33
|
-
|
|
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('
|
|
48
|
-
|
|
49
|
-
|
|
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('
|
|
55
|
-
|
|
56
|
-
|
|
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('
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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('
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
expect(
|
|
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('
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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.
|
|
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,
|
|
1
|
+
{"version":3,"file":"FocusZone.test.js","sourceRoot":"","sources":["../../src/__tests__/FocusZone.test.tsx"],"names":[],"mappings":";AAAA,6DAA6D;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAEnF,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAEvD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,IAAI,CAAC,IAAI,CAAC,kDAAkD,EAAE,GAAG,EAAE,CAAC,CAAC;IACnE,GAAG,IAAI,CAAC,aAAa,CAAC,kDAAkD,CAAC;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