@fluentui-react-native/focus-trap-zone 0.12.5 → 0.12.7

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 CHANGED
@@ -2,7 +2,72 @@
2
2
  "name": "@fluentui-react-native/focus-trap-zone",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 29 Jan 2025 23:39:20 GMT",
5
+ "date": "Thu, 10 Jul 2025 20:30:38 GMT",
6
+ "version": "0.12.7",
7
+ "tag": "@fluentui-react-native/focus-trap-zone_v0.12.7",
8
+ "comments": {
9
+ "none": [
10
+ {
11
+ "author": "ruaraki@microsoft.com",
12
+ "package": "@fluentui-react-native/focus-trap-zone",
13
+ "commit": "a245202877ef7f2be9ab5f0e1356b2270957e693",
14
+ "comment": "Run bump-versions"
15
+ },
16
+ {
17
+ "author": "jasonmo@microsoft.com",
18
+ "package": "@fluentui-react-native/focus-trap-zone",
19
+ "commit": "54087dca787180bbf34630470cd0d06e88366b30",
20
+ "comment": "update eslint to 9.x and use new flat config format with security rules"
21
+ },
22
+ {
23
+ "author": "4123478+tido64@users.noreply.github.com",
24
+ "package": "@fluentui-react-native/focus-trap-zone",
25
+ "commit": "79bb06f6bbfd0a36f9d2ef371f4857be9660f027",
26
+ "comment": "Fixed `align-deps` warnings"
27
+ }
28
+ ],
29
+ "patch": [
30
+ {
31
+ "author": "jasonmo@microsoft.com",
32
+ "package": "@fluentui-react-native/focus-trap-zone",
33
+ "commit": "479b93cea460a26df70c55b5d3335927ed374713",
34
+ "comment": "update builds to use node16 settings and modern export maps"
35
+ }
36
+ ]
37
+ }
38
+ },
39
+ {
40
+ "date": "Thu, 10 Jul 2025 19:20:22 GMT",
41
+ "version": "0.12.6",
42
+ "tag": "@fluentui-react-native/focus-trap-zone_v0.12.6",
43
+ "comments": {
44
+ "patch": [
45
+ {
46
+ "author": "4123478+tido64@users.noreply.github.com",
47
+ "package": "@fluentui-react-native/focus-trap-zone",
48
+ "commit": "24b9abab3370f008afd2dbb304751fc9af6bec4a",
49
+ "comment": "Add support for React Native 0.74"
50
+ }
51
+ ]
52
+ }
53
+ },
54
+ {
55
+ "date": "Wed, 11 Jun 2025 19:34:56 GMT",
56
+ "version": "0.12.5",
57
+ "tag": "@fluentui-react-native/focus-trap-zone_v0.12.5",
58
+ "comments": {
59
+ "none": [
60
+ {
61
+ "author": "4123478+tido64@users.noreply.github.com",
62
+ "package": "@fluentui-react-native/focus-trap-zone",
63
+ "commit": "2342b87a20e5a584bd2073c8c5a266f0aa48c8bb",
64
+ "comment": "Added missing dev dependencies"
65
+ }
66
+ ]
67
+ }
68
+ },
69
+ {
70
+ "date": "Wed, 29 Jan 2025 23:43:55 GMT",
6
71
  "version": "0.12.5",
7
72
  "tag": "@fluentui-react-native/focus-trap-zone_v0.12.5",
8
73
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,28 @@
1
1
  # Change Log - @fluentui-react-native/focus-trap-zone
2
2
 
3
- <!-- This log was last generated on Wed, 29 Jan 2025 23:39:20 GMT and should not be manually modified. -->
3
+ <!-- This log was last generated on Thu, 10 Jul 2025 20:30:38 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.12.7
8
+
9
+ Thu, 10 Jul 2025 20:30:38 GMT
10
+
11
+ ### Patches
12
+
13
+ - update builds to use node16 settings and modern export maps (jasonmo@microsoft.com)
14
+
15
+ ## 0.12.6
16
+
17
+ Thu, 10 Jul 2025 19:20:22 GMT
18
+
19
+ ### Patches
20
+
21
+ - Add support for React Native 0.74 (4123478+tido64@users.noreply.github.com)
22
+
7
23
  ## 0.12.5
8
24
 
9
- Wed, 29 Jan 2025 23:39:20 GMT
25
+ Wed, 29 Jan 2025 23:43:55 GMT
10
26
 
11
27
  ### Patches
12
28
 
@@ -0,0 +1,3 @@
1
+ const baseConfig = require('@fluentui-react-native/eslint-config-rules');
2
+
3
+ module.exports = baseConfig;
@@ -3,17 +3,6 @@
3
3
  * Licensed under the MIT License.
4
4
  * @format
5
5
  */
6
- var __assign = (this && this.__assign) || function () {
7
- __assign = Object.assign || function(t) {
8
- for (var s, i = 1, n = arguments.length; i < n; i++) {
9
- s = arguments[i];
10
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
- t[p] = s[p];
12
- }
13
- return t;
14
- };
15
- return __assign.apply(this, arguments);
16
- };
17
6
  import { useViewCommandFocus } from '@fluentui-react-native/interactive-hooks';
18
7
  import { composable } from '@uifabricshared/foundation-composable';
19
8
  import { mergeSettings } from '@uifabricshared/foundation-settings';
@@ -21,11 +10,11 @@ import RCTFocusTrapZone from './FocusTrapZoneNativeComponent';
21
10
  export function filterOutComponentRef(propName) {
22
11
  return propName !== 'componentRef';
23
12
  }
24
- export var FocusTrapZone = composable({
25
- usePrepareProps: function (userProps, useStyling) {
26
- var ftzRef = useViewCommandFocus(userProps.componentRef);
13
+ export const FocusTrapZone = composable({
14
+ usePrepareProps: (userProps, useStyling) => {
15
+ const ftzRef = useViewCommandFocus(userProps.componentRef);
27
16
  return {
28
- slotProps: mergeSettings(useStyling(userProps), { root: __assign(__assign({}, userProps), { ref: ftzRef }) }),
17
+ slotProps: mergeSettings(useStyling(userProps), { root: { ...userProps, ref: ftzRef } }),
29
18
  };
30
19
  },
31
20
  slots: {
@@ -1 +1 @@
1
- {"version":3,"file":"FocusTrapZone.js","sourceRoot":"","sources":["../src/FocusTrapZone.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;;;;;;AAEH,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,gBAAgB,MAAM,gCAAgC,CAAC;AAE9D,MAAM,UAAU,qBAAqB,CAAC,QAAgB;IACpD,OAAO,QAAQ,KAAK,cAAc,CAAC;AACrC,CAAC;AAED,MAAM,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AAE,MAAM,EAAE,qBAAqB,EAAE;KACpE;CACF,CAAC,CAAC"}
@@ -1,13 +1,13 @@
1
1
  import * as React from 'react';
2
2
  import * as renderer from 'react-test-renderer';
3
3
  import { FocusTrapZone } from '..';
4
- it('FocusTrapZone default props', function () {
5
- var tree = renderer.create(React.createElement(FocusTrapZone, null)).toJSON();
4
+ it('FocusTrapZone default props', () => {
5
+ const tree = renderer.create(React.createElement(FocusTrapZone, null)).toJSON();
6
6
  expect(tree).toMatchSnapshot();
7
7
  });
8
- it('FocusTrapZone all props props', function () {
9
- var ref = { current: null };
10
- var tree = renderer
8
+ it('FocusTrapZone all props props', () => {
9
+ const ref = { current: null };
10
+ const tree = renderer
11
11
  .create(React.createElement(FocusTrapZone, { componentRef: ref, disableFirstFocus: true, disabled: true, ignoreExternalFocusing: true, focusPreviouslyFocusedInnerElement: true }))
12
12
  .toJSON();
13
13
  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;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
+ {"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,GAAG,EAAE;IACrC,MAAM,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,GAAG,EAAE;IACvC,MAAM,GAAG,GAAgC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC3D,MAAM,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"}
@@ -4,35 +4,24 @@
4
4
  * Licensed under the MIT License.
5
5
  * @format
6
6
  */
7
- var __assign = (this && this.__assign) || function () {
8
- __assign = Object.assign || function(t) {
9
- for (var s, i = 1, n = arguments.length; i < n; i++) {
10
- s = arguments[i];
11
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
12
- t[p] = s[p];
13
- }
14
- return t;
15
- };
16
- return __assign.apply(this, arguments);
17
- };
18
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
19
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
20
9
  };
21
10
  Object.defineProperty(exports, "__esModule", { value: true });
22
11
  exports.FocusTrapZone = exports.filterOutComponentRef = void 0;
23
- var interactive_hooks_1 = require("@fluentui-react-native/interactive-hooks");
24
- var foundation_composable_1 = require("@uifabricshared/foundation-composable");
25
- var foundation_settings_1 = require("@uifabricshared/foundation-settings");
26
- var FocusTrapZoneNativeComponent_1 = __importDefault(require("./FocusTrapZoneNativeComponent"));
12
+ const interactive_hooks_1 = require("@fluentui-react-native/interactive-hooks");
13
+ const foundation_composable_1 = require("@uifabricshared/foundation-composable");
14
+ const foundation_settings_1 = require("@uifabricshared/foundation-settings");
15
+ const FocusTrapZoneNativeComponent_1 = __importDefault(require("./FocusTrapZoneNativeComponent"));
27
16
  function filterOutComponentRef(propName) {
28
17
  return propName !== 'componentRef';
29
18
  }
30
19
  exports.filterOutComponentRef = filterOutComponentRef;
31
20
  exports.FocusTrapZone = (0, foundation_composable_1.composable)({
32
- usePrepareProps: function (userProps, useStyling) {
33
- var ftzRef = (0, interactive_hooks_1.useViewCommandFocus)(userProps.componentRef);
21
+ usePrepareProps: (userProps, useStyling) => {
22
+ const ftzRef = (0, interactive_hooks_1.useViewCommandFocus)(userProps.componentRef);
34
23
  return {
35
- slotProps: (0, foundation_settings_1.mergeSettings)(useStyling(userProps), { root: __assign(__assign({}, userProps), { ref: ftzRef }) }),
24
+ slotProps: (0, foundation_settings_1.mergeSettings)(useStyling(userProps), { root: { ...userProps, ref: ftzRef } }),
36
25
  };
37
26
  },
38
27
  slots: {
@@ -1 +1 @@
1
- {"version":3,"file":"FocusTrapZone.js","sourceRoot":"","sources":["../src/FocusTrapZone.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;AAEH,8EAA+E;AAE/E,+EAAmE;AACnE,2EAAoE;AAGpE,gGAA8D;AAE9D,SAAgB,qBAAqB,C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BAAqB,EAAE;KACpE;CACF,CAAC,CAAC"}
@@ -1,13 +1 @@
1
- "use strict";
2
- /**
3
- * Copyright (c) Microsoft Corporation.
4
- * Licensed under the MIT License.
5
- * @format
6
- */
7
- var __importDefault = (this && this.__importDefault) || function (mod) {
8
- return (mod && mod.__esModule) ? mod : { "default": mod };
9
- };
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- var codegenNativeComponent_1 = __importDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
12
- exports.default = (0, codegenNativeComponent_1.default)('RCTFocusTrapZone');
13
- //# sourceMappingURL=FocusTrapZoneNativeComponent.js.map
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var nativeComponentName='RCTFocusTrapZone';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RCTFocusTrapZone',validAttributes:{disabled:true,disableFirstFocus:true,focusPreviouslyFocusedInnerElement:true,ignoreExternalFocusing:true,forceFocusInsideTrap:true}};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});
@@ -1 +1 @@
1
- {"version":3,"file":"FocusTrapZoneNativeComponent.js","sourceRoot":"","sources":["../src/FocusTrapZoneNativeComponent.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;AAIH,mHAA6F;AAgC7F,kBAAe,IAAA,gCAAsB,EAAc,kBAAkB,CAA+B,CAAC"}
1
+ {"version":3,"file":"FocusTrapZoneNativeComponent.js","sourceRoot":"","sources":["../src/FocusTrapZoneNativeComponent.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;AAIH,qHAA6F;AAgC7F,kBAAe,IAAA,gCAAsB,EAAc,kBAAkB,CAA+B,CAAC"}
@@ -23,16 +23,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- var React = __importStar(require("react"));
27
- var renderer = __importStar(require("react-test-renderer"));
28
- var __1 = require("..");
29
- it('FocusTrapZone default props', function () {
30
- var tree = renderer.create(React.createElement(__1.FocusTrapZone, null)).toJSON();
26
+ const React = __importStar(require("react"));
27
+ const renderer = __importStar(require("react-test-renderer"));
28
+ const __1 = require("..");
29
+ it('FocusTrapZone default props', () => {
30
+ const tree = renderer.create(React.createElement(__1.FocusTrapZone, null)).toJSON();
31
31
  expect(tree).toMatchSnapshot();
32
32
  });
33
- it('FocusTrapZone all props props', function () {
34
- var ref = { current: null };
35
- var tree = renderer
33
+ it('FocusTrapZone all props props', () => {
34
+ const ref = { current: null };
35
+ const tree = renderer
36
36
  .create(React.createElement(__1.FocusTrapZone, { componentRef: ref, disableFirstFocus: true, disabled: true, ignoreExternalFocusing: true, focusPreviouslyFocusedInnerElement: true }))
37
37
  .toJSON();
38
38
  expect(tree).toMatchSnapshot();
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"FocusTrapZone.test.js","sourceRoot":"","sources":["../../src/__tests__/FocusTrapZone.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAG/B,8DAAgD;AAEhD,0BAAmC;AAEnC,EAAE,CAAC,6BAA6B,EAAE,GAAG,EAAE;IACrC,MAAM,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,GAAG,EAAE;IACvC,MAAM,GAAG,GAAgC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC3D,MAAM,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,9 +1,16 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/focus-trap-zone",
3
- "version": "0.12.5",
3
+ "version": "0.12.7",
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",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./lib/index.js",
10
+ "require": "./lib-commonjs/index.js",
11
+ "types": "./lib/index.d.ts"
12
+ }
13
+ },
7
14
  "typings": "lib/index.d.ts",
8
15
  "scripts": {
9
16
  "build": "fluentui-scripts build",
@@ -22,26 +29,30 @@
22
29
  "directory": "packages/components/FocusTrapZone"
23
30
  },
24
31
  "dependencies": {
25
- "@fluentui-react-native/adapters": "0.13.0",
26
- "@fluentui-react-native/interactive-hooks": "0.27.4",
27
- "@uifabricshared/foundation-composable": "0.13.1",
28
- "@uifabricshared/foundation-settings": "0.15.1"
32
+ "@fluentui-react-native/adapters": "0.13.2",
33
+ "@fluentui-react-native/interactive-hooks": "0.27.6",
34
+ "@uifabricshared/foundation-composable": "0.13.3",
35
+ "@uifabricshared/foundation-settings": "0.15.3"
29
36
  },
30
37
  "devDependencies": {
38
+ "@babel/core": "^7.20.0",
31
39
  "@fluentui-react-native/eslint-config-rules": "0.1.1",
32
40
  "@fluentui-react-native/scripts": "0.1.1",
33
- "@office-iss/react-native-win32": "^0.73.0",
34
- "@react-native/babel-preset": "^0.73.0",
35
- "@react-native/metro-config": "^0.73.0",
41
+ "@office-iss/react-native-win32": "^0.74.0",
42
+ "@react-native/babel-preset": "^0.74.0",
43
+ "@react-native/metro-config": "^0.74.0",
44
+ "@types/react": "~18.2.0",
36
45
  "react": "18.2.0",
37
- "react-native": "^0.73.0"
46
+ "react-native": "^0.74.0",
47
+ "react-native-macos": "^0.74.0",
48
+ "react-native-windows": "^0.74.0"
38
49
  },
39
50
  "peerDependencies": {
40
- "@office-iss/react-native-win32": "^0.73.0",
51
+ "@office-iss/react-native-win32": "^0.74.0",
41
52
  "react": "18.2.0",
42
- "react-native": "^0.73.0",
43
- "react-native-macos": "^0.73.0",
44
- "react-native-windows": "^0.73.0"
53
+ "react-native": "^0.73.0 || ^0.74.0",
54
+ "react-native-macos": "^0.73.0 || ^0.74.0",
55
+ "react-native-windows": "^0.73.0 || ^0.74.0"
45
56
  },
46
57
  "author": "",
47
58
  "license": "MIT",
@@ -51,13 +62,21 @@
51
62
  "presets": [
52
63
  "microsoft/react-native"
53
64
  ],
54
- "requirements": [
55
- "react-native@0.73"
56
- ],
65
+ "requirements": {
66
+ "development": [
67
+ "react-native@0.74"
68
+ ],
69
+ "production": [
70
+ "react-native@0.73 || 0.74"
71
+ ]
72
+ },
57
73
  "capabilities": [
74
+ "babel-preset-react-native",
58
75
  "core",
59
76
  "core-android",
60
77
  "core-ios",
78
+ "core-macos",
79
+ "core-windows",
61
80
  "react"
62
81
  ]
63
82
  }
package/.eslintrc.js DELETED
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- extends: ['@fluentui-react-native/eslint-config-rules'],
3
- };