@fluentui-react-native/focus-zone 0.22.0 → 0.22.3
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 +36 -0
- package/lib/FocusZone.d.ts +2 -5
- package/lib/FocusZone.js +30 -28
- package/lib/FocusZone.types.d.ts +70 -74
- package/lib/FocusZone.types.js +1 -1
- package/lib/FocusZoneNativeComponent.d.ts +10 -16
- package/lib/FocusZoneNativeComponent.d.ts.map +1 -1
- package/lib/FocusZoneNativeComponent.js +3 -3
- package/lib/FocusZoneNativeComponent.js.map +1 -1
- package/lib/__tests__/FocusZone.test.d.ts +1 -1
- package/lib/__tests__/FocusZone.test.js +79 -133
- package/lib/index.d.ts +2 -13
- package/lib/index.js +1 -1
- package/lib-commonjs/FocusZone.d.ts +2 -5
- package/lib-commonjs/FocusZone.js +70 -87
- package/lib-commonjs/FocusZone.types.d.ts +70 -74
- package/lib-commonjs/FocusZone.types.js +3 -3
- package/lib-commonjs/FocusZoneNativeComponent.d.ts +10 -16
- package/lib-commonjs/FocusZoneNativeComponent.d.ts.map +1 -1
- package/lib-commonjs/FocusZoneNativeComponent.js +8 -5
- package/lib-commonjs/FocusZoneNativeComponent.js.map +1 -1
- package/lib-commonjs/__tests__/FocusZone.test.d.ts +1 -1
- package/lib-commonjs/__tests__/FocusZone.test.js +114 -190
- package/lib-commonjs/index.d.ts +2 -13
- package/lib-commonjs/index.js +7 -17
- package/package.json +25 -24
- package/src/FocusZoneNativeComponent.ts +3 -5
- package/eslint.config.js +0 -3
- package/src/codegenTypes.d.ts +0 -2
|
@@ -1,210 +1,134 @@
|
|
|
1
|
-
|
|
2
|
-
var __createBinding =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
(Object.create
|
|
25
|
-
? function (o, v) {
|
|
26
|
-
Object.defineProperty(o, 'default', { enumerable: true, value: v });
|
|
27
|
-
}
|
|
28
|
-
: function (o, v) {
|
|
29
|
-
o['default'] = v;
|
|
30
|
-
});
|
|
31
|
-
var __importStar =
|
|
32
|
-
(this && this.__importStar) ||
|
|
33
|
-
(function () {
|
|
34
|
-
var ownKeys = function (o) {
|
|
35
|
-
ownKeys =
|
|
36
|
-
Object.getOwnPropertyNames ||
|
|
37
|
-
function (o) {
|
|
38
|
-
var ar = [];
|
|
39
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
40
|
-
return ar;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
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;
|
|
41
24
|
};
|
|
42
|
-
|
|
25
|
+
return ownKeys(o);
|
|
43
26
|
};
|
|
44
27
|
return function (mod) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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;
|
|
50
33
|
};
|
|
51
|
-
|
|
52
|
-
Object.defineProperty(exports,
|
|
53
|
-
const jsx_runtime_1 = require(
|
|
54
|
-
const react_1 = require(
|
|
55
|
-
const react_native_1 = require(
|
|
56
|
-
const renderer = __importStar(require(
|
|
57
|
-
const __1 = require(
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
37
|
+
const react_1 = require("react");
|
|
38
|
+
const react_native_1 = require("react-native");
|
|
39
|
+
const renderer = __importStar(require("react-test-renderer"));
|
|
40
|
+
const __1 = require("..");
|
|
58
41
|
const onPress = () => {
|
|
59
|
-
|
|
42
|
+
return;
|
|
60
43
|
};
|
|
61
44
|
describe('FocusZone No Props', () => {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
45
|
+
it('No children', () => {
|
|
46
|
+
let component;
|
|
47
|
+
(0, react_1.act)(() => {
|
|
48
|
+
component = renderer.create(jsx_runtime_1.jsx(__1.FocusZone, {}));
|
|
49
|
+
});
|
|
50
|
+
expect(component.toJSON()).toMatchSnapshot();
|
|
66
51
|
});
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
jsx_runtime_1.jsx(__1.FocusZone, { children: jsx_runtime_1.jsx(react_native_1.Button, { title: 'button', onPress: onPress }) }),
|
|
74
|
-
);
|
|
52
|
+
it('One child', () => {
|
|
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();
|
|
75
58
|
});
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
jsx_runtime_1.jsx(react_native_1.Button, { title: 'button', onPress: onPress }),
|
|
85
|
-
jsx_runtime_1.jsx(react_native_1.Button, { title: 'button', onPress: onPress }),
|
|
86
|
-
],
|
|
87
|
-
}),
|
|
88
|
-
);
|
|
59
|
+
it('Two children', () => {
|
|
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();
|
|
89
67
|
});
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
jsx_runtime_1.jsx(react_native_1.Button, { title: 'button', onPress: onPress }),
|
|
99
|
-
jsx_runtime_1.jsx(react_native_1.Button, { title: 'button', onPress: onPress }),
|
|
100
|
-
jsx_runtime_1.jsx(react_native_1.Button, { title: 'button', onPress: onPress }),
|
|
101
|
-
],
|
|
102
|
-
}),
|
|
103
|
-
);
|
|
68
|
+
it('Three children', () => {
|
|
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();
|
|
104
76
|
});
|
|
105
|
-
expect(component.toJSON()).toMatchSnapshot();
|
|
106
|
-
});
|
|
107
77
|
});
|
|
108
78
|
describe('FocusZone With Props', () => {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
jsx_runtime_1.jsx(react_native_1.Button, { title: 'button', onPress: onPress }),
|
|
118
|
-
jsx_runtime_1.jsx(react_native_1.Button, { title: 'button', onPress: onPress }),
|
|
119
|
-
],
|
|
120
|
-
}),
|
|
121
|
-
);
|
|
79
|
+
it('defaultTabbableElement Prop', () => {
|
|
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();
|
|
122
87
|
});
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
children: [
|
|
132
|
-
jsx_runtime_1.jsx(react_native_1.Button, { title: 'button', onPress: onPress }),
|
|
133
|
-
jsx_runtime_1.jsx(react_native_1.Button, { title: 'button', onPress: onPress }),
|
|
134
|
-
jsx_runtime_1.jsx(react_native_1.Button, { title: 'button', onPress: onPress }),
|
|
135
|
-
],
|
|
136
|
-
}),
|
|
137
|
-
);
|
|
88
|
+
it('focusZoneDirection Prop', () => {
|
|
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();
|
|
138
96
|
});
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
children: [
|
|
148
|
-
jsx_runtime_1.jsx(react_native_1.Button, { title: 'button', onPress: onPress }),
|
|
149
|
-
jsx_runtime_1.jsx(react_native_1.Button, { title: 'button', onPress: onPress }),
|
|
150
|
-
jsx_runtime_1.jsx(react_native_1.Button, { title: 'button', onPress: onPress }),
|
|
151
|
-
],
|
|
152
|
-
}),
|
|
153
|
-
);
|
|
97
|
+
it('disabled Prop', () => {
|
|
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();
|
|
154
105
|
});
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
children: [
|
|
164
|
-
jsx_runtime_1.jsx(react_native_1.Button, { title: 'button', onPress: onPress }),
|
|
165
|
-
jsx_runtime_1.jsx(react_native_1.Button, { title: 'button', onPress: onPress }),
|
|
166
|
-
jsx_runtime_1.jsx(react_native_1.Button, { title: 'button', onPress: onPress }),
|
|
167
|
-
],
|
|
168
|
-
}),
|
|
169
|
-
);
|
|
106
|
+
it('isCircularNavigation Prop', () => {
|
|
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();
|
|
170
114
|
});
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
children: [
|
|
180
|
-
jsx_runtime_1.jsx(react_native_1.Button, { title: 'button', onPress: onPress }),
|
|
181
|
-
jsx_runtime_1.jsx(react_native_1.Button, { title: 'button', onPress: onPress }),
|
|
182
|
-
jsx_runtime_1.jsx(react_native_1.Button, { title: 'button', onPress: onPress }),
|
|
183
|
-
],
|
|
184
|
-
}),
|
|
185
|
-
);
|
|
115
|
+
it('use2DNavigation Prop', () => {
|
|
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();
|
|
186
123
|
});
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
use2DNavigation: true,
|
|
196
|
-
defaultTabbableElement: null,
|
|
197
|
-
isCircularNavigation: false,
|
|
198
|
-
focusZoneDirection: 'vertical',
|
|
199
|
-
children: [
|
|
200
|
-
jsx_runtime_1.jsx(react_native_1.Button, { title: 'button', onPress: onPress }),
|
|
201
|
-
jsx_runtime_1.jsx(react_native_1.Button, { title: 'button', onPress: onPress }),
|
|
202
|
-
jsx_runtime_1.jsx(react_native_1.Button, { title: 'button', onPress: onPress }),
|
|
203
|
-
],
|
|
204
|
-
}),
|
|
205
|
-
);
|
|
124
|
+
it('All Props', () => {
|
|
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();
|
|
206
132
|
});
|
|
207
|
-
expect(component.toJSON()).toMatchSnapshot();
|
|
208
|
-
});
|
|
209
133
|
});
|
|
210
|
-
//# sourceMappingURL=FocusZone.test.js.map
|
|
134
|
+
//# sourceMappingURL=FocusZone.test.js.map
|
package/lib-commonjs/index.d.ts
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
export { focusZoneName } from './FocusZone.types';
|
|
2
|
-
export type {
|
|
3
|
-
FocusZoneDirection,
|
|
4
|
-
FocusZoneProps,
|
|
5
|
-
FocusZoneRenderData,
|
|
6
|
-
FocusZoneSlotProps,
|
|
7
|
-
FocusZoneState,
|
|
8
|
-
FocusZoneTabNavigation,
|
|
9
|
-
FocusZoneTokens,
|
|
10
|
-
FocusZoneType,
|
|
11
|
-
NativeProps,
|
|
12
|
-
NavigateAtEnd,
|
|
13
|
-
} from './FocusZone.types';
|
|
2
|
+
export type { FocusZoneDirection, FocusZoneProps, FocusZoneRenderData, FocusZoneSlotProps, FocusZoneState, FocusZoneTabNavigation, FocusZoneTokens, FocusZoneType, NativeProps, NavigateAtEnd, } from './FocusZone.types';
|
|
14
3
|
export { FocusZone } from './FocusZone';
|
|
15
|
-
//# sourceMappingURL=index.d.ts.map
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
package/lib-commonjs/index.js
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FocusZone = exports.focusZoneName = void 0;
|
|
4
|
-
const FocusZone_types_1 = require(
|
|
5
|
-
Object.defineProperty(exports,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
});
|
|
11
|
-
const FocusZone_1 = require('./FocusZone');
|
|
12
|
-
Object.defineProperty(exports, 'FocusZone', {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return FocusZone_1.FocusZone;
|
|
16
|
-
},
|
|
17
|
-
});
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
4
|
+
const FocusZone_types_1 = require("./FocusZone.types");
|
|
5
|
+
Object.defineProperty(exports, "focusZoneName", { enumerable: true, get: function () { return FocusZone_types_1.focusZoneName; } });
|
|
6
|
+
const FocusZone_1 = require("./FocusZone");
|
|
7
|
+
Object.defineProperty(exports, "FocusZone", { enumerable: true, get: function () { return FocusZone_1.FocusZone; } });
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,49 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/focus-zone",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.3",
|
|
4
4
|
"description": "A cross-platform FocusZone component using the Fluent Design System",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "",
|
|
5
7
|
"repository": {
|
|
6
8
|
"type": "git",
|
|
7
9
|
"url": "https://github.com/microsoft/fluentui-react-native.git",
|
|
8
10
|
"directory": "packages/components/FocusZone"
|
|
9
11
|
},
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
+
"main": "lib-commonjs/index.js",
|
|
13
|
+
"module": "lib/index.js",
|
|
14
|
+
"types": "lib/index.d.ts",
|
|
12
15
|
"exports": {
|
|
13
16
|
".": {
|
|
14
17
|
"types": "./lib/index.d.ts",
|
|
15
18
|
"import": "./lib/index.js",
|
|
16
|
-
"require": "./lib-commonjs/index.js"
|
|
19
|
+
"require": "./lib-commonjs/index.js",
|
|
20
|
+
"default": "./src/index.ts"
|
|
17
21
|
}
|
|
18
22
|
},
|
|
19
|
-
"main": "lib-commonjs/index.js",
|
|
20
|
-
"module": "lib/index.js",
|
|
21
|
-
"types": "lib/index.d.ts",
|
|
22
23
|
"scripts": {
|
|
23
24
|
"build": "fluentui-scripts build",
|
|
24
25
|
"build-cjs": "tsgo --outDir lib-commonjs",
|
|
25
|
-
"build-
|
|
26
|
+
"build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
|
|
26
27
|
"clean": "fluentui-scripts clean",
|
|
27
28
|
"depcheck": "fluentui-scripts depcheck",
|
|
28
|
-
"
|
|
29
|
+
"format": "fluentui-scripts format",
|
|
30
|
+
"lint": "fluentui-scripts lint",
|
|
29
31
|
"lint-package": "fluentui-scripts lint-package",
|
|
30
|
-
"prettier": "fluentui-scripts prettier",
|
|
31
32
|
"test": "fluentui-scripts jest",
|
|
32
33
|
"update-snapshots": "fluentui-scripts jest -u"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
|
-
"@fluentui-react-native/adapters": "0.14.
|
|
36
|
-
"@fluentui-react-native/interactive-hooks": "0.28.
|
|
37
|
-
"@uifabricshared/foundation-composable": "0.14.
|
|
38
|
-
"@uifabricshared/foundation-settings": "0.16.
|
|
36
|
+
"@fluentui-react-native/adapters": "0.14.3",
|
|
37
|
+
"@fluentui-react-native/interactive-hooks": "0.28.3",
|
|
38
|
+
"@uifabricshared/foundation-composable": "0.14.3",
|
|
39
|
+
"@uifabricshared/foundation-settings": "0.16.3"
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|
|
41
42
|
"@babel/core": "^7.20.0",
|
|
42
43
|
"@fluentui-react-native/babel-config": "0.1.1",
|
|
43
|
-
"@fluentui-react-native/
|
|
44
|
-
"@fluentui-react-native/jest-config": "0.1.1",
|
|
44
|
+
"@fluentui-react-native/jest-config": "0.1.0",
|
|
45
45
|
"@fluentui-react-native/kit-config": "0.1.2",
|
|
46
|
-
"@fluentui-react-native/
|
|
46
|
+
"@fluentui-react-native/lint-config-rules": "0.1.3",
|
|
47
|
+
"@fluentui-react-native/scripts": "0.1.0",
|
|
47
48
|
"@office-iss/react-native-win32": "^0.74.0",
|
|
48
49
|
"@react-native-community/cli": "^20.0.0",
|
|
49
50
|
"@react-native-community/cli-platform-android": "^20.0.0",
|
|
@@ -51,19 +52,19 @@
|
|
|
51
52
|
"@react-native/babel-preset": "^0.81.0",
|
|
52
53
|
"@react-native/metro-babel-transformer": "^0.81.0",
|
|
53
54
|
"@react-native/metro-config": "^0.81.0",
|
|
54
|
-
"@types/react": "~19.1.
|
|
55
|
+
"@types/react": "~19.1.4",
|
|
55
56
|
"@types/react-test-renderer": "^19.1.0",
|
|
56
|
-
"react": "19.1.
|
|
57
|
-
"react-native": "^0.81.
|
|
57
|
+
"react": "19.1.4",
|
|
58
|
+
"react-native": "^0.81.6",
|
|
58
59
|
"react-native-macos": "^0.81.0",
|
|
59
60
|
"react-native-windows": "^0.81.0",
|
|
60
|
-
"react-test-renderer": "19.1.
|
|
61
|
+
"react-test-renderer": "19.1.4"
|
|
61
62
|
},
|
|
62
63
|
"peerDependencies": {
|
|
63
64
|
"@office-iss/react-native-win32": "^0.74.0",
|
|
64
|
-
"@types/react": "~18.2.0 || ~19.0.0 || ~19.1.
|
|
65
|
-
"react": "18.2.0 || 19.0.0 || 19.1.
|
|
66
|
-
"react-native": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.
|
|
65
|
+
"@types/react": "~18.2.0 || ~19.0.0 || ~19.1.4",
|
|
66
|
+
"react": "18.2.0 || 19.0.0 || 19.1.4",
|
|
67
|
+
"react-native": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.6",
|
|
67
68
|
"react-native-macos": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0",
|
|
68
69
|
"react-native-windows": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0"
|
|
69
70
|
},
|
|
@@ -3,13 +3,11 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
* @format
|
|
5
5
|
*/
|
|
6
|
+
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
6
7
|
|
|
7
8
|
import type { ViewProps } from 'react-native';
|
|
9
|
+
import type { WithDefault, UnsafeMixed } from 'react-native/Libraries/Types/CodegenTypes';
|
|
8
10
|
|
|
9
|
-
import type { WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
|
|
10
|
-
import { requireNativeComponent } from 'react-native';
|
|
11
|
-
|
|
12
|
-
import type { UnsafeMixed } from './codegenTypes';
|
|
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
|
|
24
|
+
export default codegenNativeComponent<NativeProps>('RCTFocusZone');
|
package/eslint.config.js
DELETED
package/src/codegenTypes.d.ts
DELETED