@fluentui-react-native/focus-trap-zone 0.9.60 → 0.9.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +46 -1
- package/CHANGELOG.md +15 -2
- package/lib/FocusTrapZone.d.ts.map +1 -1
- package/lib/FocusTrapZone.js +2 -2
- package/lib/FocusTrapZone.js.map +1 -1
- package/lib/FocusTrapZone.types.d.ts.map +1 -1
- package/lib/__tests__/FocusTrapZone.test.js +1 -1
- package/lib/__tests__/FocusTrapZone.test.js.map +1 -1
- package/lib-commonjs/FocusTrapZone.d.ts.map +1 -1
- package/lib-commonjs/FocusTrapZone.js +2 -2
- package/lib-commonjs/FocusTrapZone.js.map +1 -1
- package/lib-commonjs/FocusTrapZone.types.d.ts.map +1 -1
- package/lib-commonjs/__tests__/FocusTrapZone.test.js +1 -1
- package/lib-commonjs/__tests__/FocusTrapZone.test.js.map +1 -1
- package/package.json +6 -6
- package/src/FocusTrapZone.ts +4 -3
- package/src/FocusTrapZone.types.ts +1 -0
- package/src/__tests__/FocusTrapZone.test.tsx +4 -2
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,52 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/focus-trap-zone",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Fri, 24 Feb 2023
|
|
5
|
+
"date": "Fri, 24 Feb 2023 20:36:23 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/focus-trap-zone_v0.9.61",
|
|
7
|
+
"version": "0.9.61",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "78454019+lyzhan7@users.noreply.github.com",
|
|
12
|
+
"package": "@fluentui-react-native/focus-trap-zone",
|
|
13
|
+
"commit": "743bd1507af336a62946361f3fe3c800ae5bd4c2",
|
|
14
|
+
"comment": "Order imports"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui-react-native/focus-trap-zone",
|
|
19
|
+
"comment": "Bump @fluentui-react-native/adapters to v0.10.2",
|
|
20
|
+
"commit": "743bd1507af336a62946361f3fe3c800ae5bd4c2"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@fluentui-react-native/focus-trap-zone",
|
|
25
|
+
"comment": "Bump @fluentui-react-native/component-cache to v1.4.4",
|
|
26
|
+
"commit": "743bd1507af336a62946361f3fe3c800ae5bd4c2"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "beachball",
|
|
30
|
+
"package": "@fluentui-react-native/focus-trap-zone",
|
|
31
|
+
"comment": "Bump @fluentui-react-native/interactive-hooks to v0.22.20",
|
|
32
|
+
"commit": "743bd1507af336a62946361f3fe3c800ae5bd4c2"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "beachball",
|
|
36
|
+
"package": "@fluentui-react-native/focus-trap-zone",
|
|
37
|
+
"comment": "Bump @uifabricshared/foundation-composable to v0.11.3",
|
|
38
|
+
"commit": "743bd1507af336a62946361f3fe3c800ae5bd4c2"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"author": "beachball",
|
|
42
|
+
"package": "@fluentui-react-native/focus-trap-zone",
|
|
43
|
+
"comment": "Bump @uifabricshared/foundation-settings to v0.12.3",
|
|
44
|
+
"commit": "743bd1507af336a62946361f3fe3c800ae5bd4c2"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"date": "Fri, 24 Feb 2023 02:22:40 GMT",
|
|
6
51
|
"tag": "@fluentui-react-native/focus-trap-zone_v0.9.60",
|
|
7
52
|
"version": "0.9.60",
|
|
8
53
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/focus-trap-zone
|
|
2
2
|
|
|
3
|
-
This log was last generated on Fri, 24 Feb 2023
|
|
3
|
+
This log was last generated on Fri, 24 Feb 2023 20:36:23 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.9.61
|
|
8
|
+
|
|
9
|
+
Fri, 24 Feb 2023 20:36:23 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Order imports (78454019+lyzhan7@users.noreply.github.com)
|
|
14
|
+
- Bump @fluentui-react-native/adapters to v0.10.2
|
|
15
|
+
- Bump @fluentui-react-native/component-cache to v1.4.4
|
|
16
|
+
- Bump @fluentui-react-native/interactive-hooks to v0.22.20
|
|
17
|
+
- Bump @uifabricshared/foundation-composable to v0.11.3
|
|
18
|
+
- Bump @uifabricshared/foundation-settings to v0.12.3
|
|
19
|
+
|
|
7
20
|
## 0.9.60
|
|
8
21
|
|
|
9
|
-
Fri, 24 Feb 2023 02:
|
|
22
|
+
Fri, 24 Feb 2023 02:22:40 GMT
|
|
10
23
|
|
|
11
24
|
### Patches
|
|
12
25
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusTrapZone.d.ts","sourceRoot":"","sources":["../src/FocusTrapZone.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FocusTrapZone.d.ts","sourceRoot":"","sources":["../src/FocusTrapZone.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,uBAAuB,EAAsB,MAAM,uBAAuB,CAAC;AAI9G,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAE/D;AAED,eAAO,MAAM,aAAa,8YAUxB,CAAC"}
|
package/lib/FocusTrapZone.js
CHANGED
|
@@ -9,10 +9,10 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
import { ensureNativeComponent } from '@fluentui-react-native/component-cache';
|
|
13
|
+
import { useViewCommandFocus } from '@fluentui-react-native/interactive-hooks';
|
|
12
14
|
import { composable } from '@uifabricshared/foundation-composable';
|
|
13
15
|
import { mergeSettings } from '@uifabricshared/foundation-settings';
|
|
14
|
-
import { useViewCommandFocus } from '@fluentui-react-native/interactive-hooks';
|
|
15
|
-
import { ensureNativeComponent } from '@fluentui-react-native/component-cache';
|
|
16
16
|
var RCTFocusTrapZone = ensureNativeComponent('RCTFocusTrapZone');
|
|
17
17
|
export function filterOutComponentRef(propName) {
|
|
18
18
|
return propName !== 'componentRef';
|
package/lib/FocusTrapZone.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusTrapZone.js","sourceRoot":"","sources":["../src/FocusTrapZone.ts"],"names":[],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"FocusTrapZone.js","sourceRoot":"","sources":["../src/FocusTrapZone.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAE/E,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAIpE,IAAM,gBAAgB,GAAG,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;AAEnE,MAAM,UAAU,qBAAqB,CAAC,QAAgB;IACpD,OAAO,QAAQ,KAAK,cAAc,CAAC;AACrC,CAAC;AAED,MAAM,CAAC,IAAM,aAAa,GAAG,UAAU,CAAqB;IAC1D,eAAe,EAAE,UAAC,SAA8B,EAAE,UAA2C;QAC3F,IAAM,MAAM,GAAG,mBAAmB,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;QAC3D,OAAO;YACL,SAAS,EAAE,aAAa,CAA0B,UAAU,CAAC,SAAS,CAAC,EAAE,EAAE,IAAI,wBAAO,SAAS,KAAE,GAAG,EAAE,MAAM,GAAE,EAAE,CAAC;SAClH,CAAC;IACJ,CAAC;IACD,KAAK,EAAE;QACL,IAAI,EAAE,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,EAAE,qBAAqB,EAAE;KACpE;CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusTrapZone.types.d.ts","sourceRoot":"","sources":["../src/FocusTrapZone.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FocusTrapZone.types.d.ts","sourceRoot":"","sources":["../src/FocusTrapZone.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;AAE3E,MAAM,MAAM,mBAAmB,CAAC,KAAK,GAAG,UAAU,IAAI,KAAK,GAAG;IAC5D;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC3C;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;;OAKG;IACH,kCAAkC,CAAC,EAAE,OAAO,CAAC;IAC7C;;;;;;OAMG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,uBAAuB,CAAC,KAAK,GAAG,UAAU,IAAI;IACxD,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC;CAC5E,CAAC;AAEF,MAAM,MAAM,kBAAkB,CAAC,KAAK,GAAG,UAAU,IAAI;IACnD,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAClC,SAAS,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC;CAC3C,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { FocusTrapZone } from '..';
|
|
3
2
|
import * as renderer from 'react-test-renderer';
|
|
3
|
+
import { FocusTrapZone } from '..';
|
|
4
4
|
it('FocusTrapZone default props', function () {
|
|
5
5
|
var tree = renderer.create(React.createElement(FocusTrapZone, null)).toJSON();
|
|
6
6
|
expect(tree).toMatchSnapshot();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusTrapZone.test.js","sourceRoot":"","sources":["../../src/__tests__/FocusTrapZone.test.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FocusTrapZone.test.js","sourceRoot":"","sources":["../../src/__tests__/FocusTrapZone.test.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAEnC,EAAE,CAAC,6BAA6B,EAAE;IAChC,IAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,oBAAC,aAAa,OAAG,CAAC,CAAC,MAAM,EAAE,CAAC;IACzD,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;AACjC,CAAC,CAAC,CAAC;AAEH,EAAE,CAAC,+BAA+B,EAAE;IAClC,IAAM,GAAG,GAAgC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC3D,IAAM,IAAI,GAAG,QAAQ;SAClB,MAAM,CAAC,oBAAC,aAAa,IAAC,YAAY,EAAE,GAAG,EAAE,iBAAiB,QAAC,QAAQ,QAAC,sBAAsB,QAAC,kCAAkC,SAAG,CAAC;SACjI,MAAM,EAAE,CAAC;IACZ,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;AACjC,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusTrapZone.d.ts","sourceRoot":"","sources":["../src/FocusTrapZone.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FocusTrapZone.d.ts","sourceRoot":"","sources":["../src/FocusTrapZone.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,uBAAuB,EAAsB,MAAM,uBAAuB,CAAC;AAI9G,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAE/D;AAED,eAAO,MAAM,aAAa,8YAUxB,CAAC"}
|
|
@@ -12,10 +12,10 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.FocusTrapZone = exports.filterOutComponentRef = void 0;
|
|
15
|
+
var component_cache_1 = require("@fluentui-react-native/component-cache");
|
|
16
|
+
var interactive_hooks_1 = require("@fluentui-react-native/interactive-hooks");
|
|
15
17
|
var foundation_composable_1 = require("@uifabricshared/foundation-composable");
|
|
16
18
|
var foundation_settings_1 = require("@uifabricshared/foundation-settings");
|
|
17
|
-
var interactive_hooks_1 = require("@fluentui-react-native/interactive-hooks");
|
|
18
|
-
var component_cache_1 = require("@fluentui-react-native/component-cache");
|
|
19
19
|
var RCTFocusTrapZone = (0, component_cache_1.ensureNativeComponent)('RCTFocusTrapZone');
|
|
20
20
|
function filterOutComponentRef(propName) {
|
|
21
21
|
return propName !== 'componentRef';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusTrapZone.js","sourceRoot":"","sources":["../src/FocusTrapZone.ts"],"names":[],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"FocusTrapZone.js","sourceRoot":"","sources":["../src/FocusTrapZone.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,0EAA+E;AAC/E,8EAA+E;AAE/E,+EAAmE;AACnE,2EAAoE;AAIpE,IAAM,gBAAgB,GAAG,IAAA,uCAAqB,EAAC,kBAAkB,CAAC,CAAC;AAEnE,SAAgB,qBAAqB,CAAC,QAAgB;IACpD,OAAO,QAAQ,KAAK,cAAc,CAAC;AACrC,CAAC;AAFD,sDAEC;AAEY,QAAA,aAAa,GAAG,IAAA,kCAAU,EAAqB;IAC1D,eAAe,EAAE,UAAC,SAA8B,EAAE,UAA2C;QAC3F,IAAM,MAAM,GAAG,IAAA,uCAAmB,EAAC,SAAS,CAAC,YAAY,CAAC,CAAC;QAC3D,OAAO;YACL,SAAS,EAAE,IAAA,mCAAa,EAA0B,UAAU,CAAC,SAAS,CAAC,EAAE,EAAE,IAAI,wBAAO,SAAS,KAAE,GAAG,EAAE,MAAM,GAAE,EAAE,CAAC;SAClH,CAAC;IACJ,CAAC;IACD,KAAK,EAAE;QACL,IAAI,EAAE,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,EAAE,qBAAqB,EAAE;KACpE;CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusTrapZone.types.d.ts","sourceRoot":"","sources":["../src/FocusTrapZone.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FocusTrapZone.types.d.ts","sourceRoot":"","sources":["../src/FocusTrapZone.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;AAE3E,MAAM,MAAM,mBAAmB,CAAC,KAAK,GAAG,UAAU,IAAI,KAAK,GAAG;IAC5D;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC3C;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;;OAKG;IACH,kCAAkC,CAAC,EAAE,OAAO,CAAC;IAC7C;;;;;;OAMG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,uBAAuB,CAAC,KAAK,GAAG,UAAU,IAAI;IACxD,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC;CAC5E,CAAC;AAEF,MAAM,MAAM,kBAAkB,CAAC,KAAK,GAAG,UAAU,IAAI;IACnD,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAClC,SAAS,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC;CAC3C,CAAC"}
|
|
@@ -24,8 +24,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
var React = __importStar(require("react"));
|
|
27
|
-
var __1 = require("..");
|
|
28
27
|
var renderer = __importStar(require("react-test-renderer"));
|
|
28
|
+
var __1 = require("..");
|
|
29
29
|
it('FocusTrapZone default props', function () {
|
|
30
30
|
var tree = renderer.create(React.createElement(__1.FocusTrapZone, null)).toJSON();
|
|
31
31
|
expect(tree).toMatchSnapshot();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusTrapZone.test.js","sourceRoot":"","sources":["../../src/__tests__/FocusTrapZone.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;
|
|
1
|
+
{"version":3,"file":"FocusTrapZone.test.js","sourceRoot":"","sources":["../../src/__tests__/FocusTrapZone.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAG/B,4DAAgD;AAEhD,wBAAmC;AAEnC,EAAE,CAAC,6BAA6B,EAAE;IAChC,IAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,oBAAC,iBAAa,OAAG,CAAC,CAAC,MAAM,EAAE,CAAC;IACzD,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;AACjC,CAAC,CAAC,CAAC;AAEH,EAAE,CAAC,+BAA+B,EAAE;IAClC,IAAM,GAAG,GAAgC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC3D,IAAM,IAAI,GAAG,QAAQ;SAClB,MAAM,CAAC,oBAAC,iBAAa,IAAC,YAAY,EAAE,GAAG,EAAE,iBAAiB,QAAC,QAAQ,QAAC,sBAAsB,QAAC,kCAAkC,SAAG,CAAC;SACjI,MAAM,EAAE,CAAC;IACZ,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;AACjC,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/focus-trap-zone",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.61",
|
|
4
4
|
"description": "A cross-platform FocusTrapZone component using the Fluent Design System",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"directory": "packages/components/FocusTrapZone"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@fluentui-react-native/adapters": ">=0.10.
|
|
26
|
-
"@fluentui-react-native/component-cache": "^1.4.
|
|
27
|
-
"@fluentui-react-native/interactive-hooks": ">=0.22.
|
|
28
|
-
"@uifabricshared/foundation-composable": ">=0.11.
|
|
29
|
-
"@uifabricshared/foundation-settings": ">=0.12.
|
|
25
|
+
"@fluentui-react-native/adapters": ">=0.10.2 <1.0.0",
|
|
26
|
+
"@fluentui-react-native/component-cache": "^1.4.4",
|
|
27
|
+
"@fluentui-react-native/interactive-hooks": ">=0.22.20 <1.0.0",
|
|
28
|
+
"@uifabricshared/foundation-composable": ">=0.11.3 <1.0.0",
|
|
29
|
+
"@uifabricshared/foundation-settings": ">=0.12.3 <1.0.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@fluentui-react-native/eslint-config-rules": "^0.1.1",
|
package/src/FocusTrapZone.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ensureNativeComponent } from '@fluentui-react-native/component-cache';
|
|
2
|
+
import { useViewCommandFocus } from '@fluentui-react-native/interactive-hooks';
|
|
2
3
|
import type { IUseStyling } from '@uifabricshared/foundation-composable';
|
|
3
4
|
import { composable } from '@uifabricshared/foundation-composable';
|
|
4
5
|
import { mergeSettings } from '@uifabricshared/foundation-settings';
|
|
5
|
-
|
|
6
|
-
import {
|
|
6
|
+
|
|
7
|
+
import type { IFocusTrapZoneProps, IFocusTrapZoneSlotProps, IFocusTrapZoneType } from './FocusTrapZone.types';
|
|
7
8
|
|
|
8
9
|
const RCTFocusTrapZone = ensureNativeComponent('RCTFocusTrapZone');
|
|
9
10
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
import * as renderer from 'react-test-renderer';
|
|
2
|
+
|
|
4
3
|
import type { IFocusable } from '@fluentui-react-native/interactive-hooks';
|
|
4
|
+
import * as renderer from 'react-test-renderer';
|
|
5
|
+
|
|
6
|
+
import { FocusTrapZone } from '..';
|
|
5
7
|
|
|
6
8
|
it('FocusTrapZone default props', () => {
|
|
7
9
|
const tree = renderer.create(<FocusTrapZone />).toJSON();
|