@fluentui-react-native/callout 0.27.2 → 0.27.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.
package/CHANGELOG.json CHANGED
@@ -2,7 +2,72 @@
2
2
  "name": "@fluentui-react-native/callout",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 29 Jan 2025 23:39:19 GMT",
5
+ "date": "Thu, 10 Jul 2025 20:30:43 GMT",
6
+ "version": "0.27.4",
7
+ "tag": "@fluentui-react-native/callout_v0.27.4",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "jasonmo@microsoft.com",
12
+ "package": "@fluentui-react-native/callout",
13
+ "commit": "479b93cea460a26df70c55b5d3335927ed374713",
14
+ "comment": "update builds to use node16 settings and modern export maps"
15
+ }
16
+ ],
17
+ "none": [
18
+ {
19
+ "author": "jasonmo@microsoft.com",
20
+ "package": "@fluentui-react-native/callout",
21
+ "commit": "54087dca787180bbf34630470cd0d06e88366b30",
22
+ "comment": "update eslint to 9.x and use new flat config format with security rules"
23
+ },
24
+ {
25
+ "author": "ruaraki@microsoft.com",
26
+ "package": "@fluentui-react-native/callout",
27
+ "commit": "a245202877ef7f2be9ab5f0e1356b2270957e693",
28
+ "comment": "Run bump-versions"
29
+ },
30
+ {
31
+ "author": "4123478+tido64@users.noreply.github.com",
32
+ "package": "@fluentui-react-native/callout",
33
+ "commit": "79bb06f6bbfd0a36f9d2ef371f4857be9660f027",
34
+ "comment": "Fixed `align-deps` warnings"
35
+ }
36
+ ]
37
+ }
38
+ },
39
+ {
40
+ "date": "Thu, 10 Jul 2025 19:20:27 GMT",
41
+ "version": "0.27.3",
42
+ "tag": "@fluentui-react-native/callout_v0.27.3",
43
+ "comments": {
44
+ "patch": [
45
+ {
46
+ "author": "4123478+tido64@users.noreply.github.com",
47
+ "package": "@fluentui-react-native/callout",
48
+ "commit": "24b9abab3370f008afd2dbb304751fc9af6bec4a",
49
+ "comment": "Add support for React Native 0.74"
50
+ }
51
+ ]
52
+ }
53
+ },
54
+ {
55
+ "date": "Wed, 11 Jun 2025 19:35:00 GMT",
56
+ "version": "0.27.2",
57
+ "tag": "@fluentui-react-native/callout_v0.27.2",
58
+ "comments": {
59
+ "none": [
60
+ {
61
+ "author": "4123478+tido64@users.noreply.github.com",
62
+ "package": "@fluentui-react-native/callout",
63
+ "commit": "2342b87a20e5a584bd2073c8c5a266f0aa48c8bb",
64
+ "comment": "Added missing dev dependencies"
65
+ }
66
+ ]
67
+ }
68
+ },
69
+ {
70
+ "date": "Wed, 29 Jan 2025 23:43:54 GMT",
6
71
  "version": "0.27.2",
7
72
  "tag": "@fluentui-react-native/callout_v0.27.2",
8
73
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,28 @@
1
1
  # Change Log - @fluentui-react-native/callout
2
2
 
3
- <!-- This log was last generated on Wed, 29 Jan 2025 23:39:19 GMT and should not be manually modified. -->
3
+ <!-- This log was last generated on Thu, 10 Jul 2025 20:30:43 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.27.4
8
+
9
+ Thu, 10 Jul 2025 20:30:43 GMT
10
+
11
+ ### Patches
12
+
13
+ - update builds to use node16 settings and modern export maps (jasonmo@microsoft.com)
14
+
15
+ ## 0.27.3
16
+
17
+ Thu, 10 Jul 2025 19:20:27 GMT
18
+
19
+ ### Patches
20
+
21
+ - Add support for React Native 0.74 (4123478+tido64@users.noreply.github.com)
22
+
7
23
  ## 0.27.2
8
24
 
9
- Wed, 29 Jan 2025 23:39:19 GMT
25
+ Wed, 29 Jan 2025 23:43:54 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;
package/lib/Callout.js CHANGED
@@ -3,28 +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
- var __rest = (this && this.__rest) || function (s, e) {
18
- var t = {};
19
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
20
- t[p] = s[p];
21
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
22
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
23
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
24
- t[p[i]] = s[p[i]];
25
- }
26
- return t;
27
- };
28
6
  import * as React from 'react';
29
7
  import { findNodeHandle, Platform } from 'react-native';
30
8
  import { backgroundColorTokens, borderTokens } from '@fluentui-react-native/tokens';
@@ -35,34 +13,34 @@ import { calloutName } from './Callout.types';
35
13
  import CalloutNativeComponent from './CalloutNativeComponent';
36
14
  import FRNCalloutNativeComponent from './MacOSCalloutNativeComponent';
37
15
  import { Commands } from './MacOSCalloutNativeComponent';
38
- var NativeCalloutView = Platform.select({
16
+ const NativeCalloutView = Platform.select({
39
17
  macos: FRNCalloutNativeComponent,
40
18
  default: CalloutNativeComponent, // win32
41
19
  });
42
- export var Callout = compose({
20
+ export const Callout = compose({
43
21
  displayName: calloutName,
44
- usePrepareProps: function (props, useStyling) {
45
- var componentRef = props.componentRef, target = props.target, rest = __rest(props, ["componentRef", "target"]);
46
- React.useImperativeHandle(componentRef, function () { return ({
47
- blurWindow: function () {
22
+ usePrepareProps: (props, useStyling) => {
23
+ const { componentRef, target, ...rest } = props;
24
+ React.useImperativeHandle(componentRef, () => ({
25
+ blurWindow() {
48
26
  if (componentRef.current != null) {
49
27
  Commands.blurWindow(nativeComponentRef.current);
50
28
  }
51
29
  },
52
- focusWindow: function () {
30
+ focusWindow() {
53
31
  if (componentRef.current != null) {
54
32
  Commands.focusWindow(nativeComponentRef.current);
55
33
  }
56
34
  },
57
- }); }, [componentRef]);
58
- var nativeComponentRef = React.useRef(null);
59
- var _a = React.useState(null), nativeTarget = _a[0], setNativeTarget = _a[1];
60
- React.useLayoutEffect(function () {
35
+ }), [componentRef]);
36
+ const nativeComponentRef = React.useRef(null);
37
+ const [nativeTarget, setNativeTarget] = React.useState(null);
38
+ React.useLayoutEffect(() => {
61
39
  if (typeof target === 'string') {
62
40
  // Pass string type `target` directly
63
41
  setNativeTarget(target);
64
42
  }
65
- else if (target === null || target === void 0 ? void 0 : target.current) {
43
+ else if (target?.current) {
66
44
  // Pass the tagID for a valid ref `target`
67
45
  setNativeTarget(findNodeHandle(target.current));
68
46
  }
@@ -71,10 +49,14 @@ export var Callout = compose({
71
49
  setNativeTarget(null);
72
50
  }
73
51
  }, [target]);
74
- var slotProps = mergeSettings(useStyling(props), {
75
- root: __assign(__assign({ ref: nativeComponentRef }, (nativeTarget && { target: nativeTarget })), rest),
52
+ const slotProps = mergeSettings(useStyling(props), {
53
+ root: {
54
+ ref: nativeComponentRef,
55
+ ...(nativeTarget && { target: nativeTarget }),
56
+ ...rest,
57
+ },
76
58
  });
77
- return { slotProps: slotProps };
59
+ return { slotProps };
78
60
  },
79
61
  settings: settings,
80
62
  slots: {
@@ -1 +1 @@
1
- {"version":3,"file":"Callout.js","sourceRoot":"","sources":["../src/Callout.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxD,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAEpF,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,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E,OAAO,EAAE;gBAC1B,0CAA0C;gBAC1C,eAAe,CAAC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;aACjD;iBAAM;gBACL,iEAAiE;gBACjE,eAAe,CAAC,IAAI,CAAC,CAAC;aACvB;QACH,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;QAEb,MAAM,SAAS,GAAG,aAAa,CAAoB,UAAU,CAAC,KAAK,CAAC,EAAE;YACpE,IAAI,EAAE;gBACJ,GAAG,EAAE,kBAAkB;gBACvB,GAAG,CAAC,YAAY,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC;gBAC7C,GAAG,IAAI;aACR;SACF,CAAC,CAAC;QAEH,OAAO,EAAE,SAAS,EAAE,CAAC;IACvB,CAAC;IACD,QAAQ,EAAE,QAAQ;IAClB,KAAK,EAAE;QACL,IAAI,EAAE,iBAAiB;KACxB;IACD,MAAM,EAAE;QACN,IAAI,EAAE,CAAC,qBAAqB,EAAE,YAAY,CAAC;KAC5C;CACF,CAAC,CAAC;AAEH,eAAe,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { calloutName } from './Callout.types';
2
- export var settings = [
2
+ export const settings = [
3
3
  {
4
4
  tokens: {
5
5
  backgroundColor: 'bodyStandoutBackground',
@@ -1 +1 @@
1
- {"version":3,"file":"Callout.settings.js","sourceRoot":"","sources":["../src/Callout.settings.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,CAAC,IAAM,QAAQ,GAAmC;IACtD;QACE,MAAM,EAAE;YACN,eAAe,EAAE,wBAAwB;YACzC,SAAS,EAAE,EAAE;YACb,WAAW,EAAE,qBAAqB;YAClC,WAAW,EAAE,CAAC;YACd,eAAe,EAAE,gBAAgB;YACjC,QAAQ,EAAE,CAAC;YACX,UAAU,EAAE,CAAC;SACd;KACF;IACD,WAAW;CACZ,CAAC"}
1
+ {"version":3,"file":"Callout.settings.js","sourceRoot":"","sources":["../src/Callout.settings.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,CAAC,MAAM,QAAQ,GAAmC;IACtD;QACE,MAAM,EAAE;YACN,eAAe,EAAE,wBAAwB;YACzC,SAAS,EAAE,EAAE;YACb,WAAW,EAAE,qBAAqB;YAClC,WAAW,EAAE,CAAC;YACd,eAAe,EAAE,gBAAgB;YACjC,QAAQ,EAAE,CAAC;YACX,UAAU,EAAE,CAAC;SACd;KACF;IACD,WAAW;CACZ,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { calloutName } from './Callout.types';
2
- export var settings = [
2
+ export const settings = [
3
3
  {
4
4
  tokens: {
5
5
  backgroundColor: 'bodyStandoutBackground',
@@ -1 +1 @@
1
- {"version":3,"file":"Callout.settings.macos.js","sourceRoot":"","sources":["../src/Callout.settings.macos.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,CAAC,IAAM,QAAQ,GAAmC;IACtD;QACE,MAAM,EAAE;YACN,eAAe,EAAE,wBAAwB;YACzC,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,CAAC;YACd,YAAY,EAAE,CAAC;YACf,eAAe,EAAE,gBAAgB;SAClC;QACD,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,QAAQ,EAAE,UAAU;aACrB;SACF;KACF;IACD,WAAW;CACZ,CAAC"}
1
+ {"version":3,"file":"Callout.settings.macos.js","sourceRoot":"","sources":["../src/Callout.settings.macos.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,CAAC,MAAM,QAAQ,GAAmC;IACtD;QACE,MAAM,EAAE;YACN,eAAe,EAAE,wBAAwB;YACzC,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,CAAC;YACd,YAAY,EAAE,CAAC;YACf,eAAe,EAAE,gBAAgB;SAClC;QACD,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,QAAQ,EAAE,UAAU;aACrB;SACF;KACF;IACD,WAAW;CACZ,CAAC"}
@@ -1,2 +1,2 @@
1
- export var calloutName = 'Callout';
1
+ export const calloutName = 'Callout';
2
2
  //# sourceMappingURL=Callout.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Callout.types.js","sourceRoot":"","sources":["../src/Callout.types.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,IAAM,WAAW,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"Callout.types.js","sourceRoot":"","sources":["../src/Callout.types.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,WAAW,GAAG,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CalloutNativeComponent.js","sourceRoot":"","sources":["../src/CalloutNativeComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,qBAAqB,MAAM,wDAAwD,CAAC;AAC3F,OAAO,sBAAsB,MAAM,yDAAyD,CAAC;AAwD7F,MAAM,CAAC,IAAM,QAAQ,GAA0B,qBAAqB,CAAwB;IAC1F,iBAAiB,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;CACjD,CAAC,CAAC;AAEH,eAAe,sBAAsB,CAAc,YAAY,CAAyB,CAAC"}
1
+ {"version":3,"file":"CalloutNativeComponent.js","sourceRoot":"","sources":["../src/CalloutNativeComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,qBAAqB,MAAM,wDAAwD,CAAC;AAC3F,OAAO,sBAAsB,MAAM,yDAAyD,CAAC;AAwD7F,MAAM,CAAC,MAAM,QAAQ,GAA0B,qBAAqB,CAAwB;IAC1F,iBAAiB,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;CACjD,CAAC,CAAC;AAEH,eAAe,sBAAsB,CAAc,YAAY,CAAyB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MacOSCalloutNativeComponent.js","sourceRoot":"","sources":["../src/MacOSCalloutNativeComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,qBAAqB,MAAM,wDAAwD,CAAC;AAC3F,OAAO,sBAAsB,MAAM,yDAAyD,CAAC;AAmD7F,MAAM,CAAC,IAAM,QAAQ,GAA0B,qBAAqB,CAAwB;IAC1F,iBAAiB,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;CACjD,CAAC,CAAC;AAEH,eAAe,sBAAsB,CAAc,YAAY,CAAyB,CAAC"}
1
+ {"version":3,"file":"MacOSCalloutNativeComponent.js","sourceRoot":"","sources":["../src/MacOSCalloutNativeComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,qBAAqB,MAAM,wDAAwD,CAAC;AAC3F,OAAO,sBAAsB,MAAM,yDAAyD,CAAC;AAmD7F,MAAM,CAAC,MAAM,QAAQ,GAA0B,qBAAqB,CAAwB;IAC1F,iBAAiB,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;CACjD,CAAC,CAAC;AAEH,eAAe,sBAAsB,CAAc,YAAY,CAAyB,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import * as renderer from 'react-test-renderer';
3
3
  import { Callout } from '..';
4
- it('Callout default props', function () {
5
- var tree = renderer.create(React.createElement(Callout, null)).toJSON();
4
+ it('Callout default props', () => {
5
+ const tree = renderer.create(React.createElement(Callout, null)).toJSON();
6
6
  expect(tree).toMatchSnapshot();
7
7
  });
8
8
  //# sourceMappingURL=Callout.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Callout.test.js","sourceRoot":"","sources":["../../src/__tests__/Callout.test.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAE7B,EAAE,CAAC,uBAAuB,EAAE;IAC1B,IAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,oBAAC,OAAO,OAAG,CAAC,CAAC,MAAM,EAAE,CAAC;IACnD,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;AACjC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"Callout.test.js","sourceRoot":"","sources":["../../src/__tests__/Callout.test.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAE7B,EAAE,CAAC,uBAAuB,EAAE,GAAG,EAAE;IAC/B,MAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,oBAAC,OAAO,OAAG,CAAC,CAAC,MAAM,EAAE,CAAC;IACnD,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;AACjC,CAAC,CAAC,CAAC"}
@@ -4,17 +4,6 @@
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
19
8
  if (k2 === undefined) k2 = k;
20
9
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -38,60 +27,49 @@ var __importStar = (this && this.__importStar) || function (mod) {
38
27
  __setModuleDefault(result, mod);
39
28
  return result;
40
29
  };
41
- var __rest = (this && this.__rest) || function (s, e) {
42
- var t = {};
43
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
44
- t[p] = s[p];
45
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
46
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
47
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
48
- t[p[i]] = s[p[i]];
49
- }
50
- return t;
51
- };
52
30
  var __importDefault = (this && this.__importDefault) || function (mod) {
53
31
  return (mod && mod.__esModule) ? mod : { "default": mod };
54
32
  };
55
33
  Object.defineProperty(exports, "__esModule", { value: true });
56
34
  exports.Callout = void 0;
57
- var React = __importStar(require("react"));
58
- var react_native_1 = require("react-native");
59
- var tokens_1 = require("@fluentui-react-native/tokens");
60
- var foundation_compose_1 = require("@uifabricshared/foundation-compose");
61
- var foundation_settings_1 = require("@uifabricshared/foundation-settings");
62
- var Callout_settings_1 = require("./Callout.settings");
63
- var Callout_types_1 = require("./Callout.types");
64
- var CalloutNativeComponent_1 = __importDefault(require("./CalloutNativeComponent"));
65
- var MacOSCalloutNativeComponent_1 = __importDefault(require("./MacOSCalloutNativeComponent"));
66
- var MacOSCalloutNativeComponent_2 = require("./MacOSCalloutNativeComponent");
67
- var NativeCalloutView = react_native_1.Platform.select({
35
+ const React = __importStar(require("react"));
36
+ const react_native_1 = require("react-native");
37
+ const tokens_1 = require("@fluentui-react-native/tokens");
38
+ const foundation_compose_1 = require("@uifabricshared/foundation-compose");
39
+ const foundation_settings_1 = require("@uifabricshared/foundation-settings");
40
+ const Callout_settings_1 = require("./Callout.settings");
41
+ const Callout_types_1 = require("./Callout.types");
42
+ const CalloutNativeComponent_1 = __importDefault(require("./CalloutNativeComponent"));
43
+ const MacOSCalloutNativeComponent_1 = __importDefault(require("./MacOSCalloutNativeComponent"));
44
+ const MacOSCalloutNativeComponent_2 = require("./MacOSCalloutNativeComponent");
45
+ const NativeCalloutView = react_native_1.Platform.select({
68
46
  macos: MacOSCalloutNativeComponent_1.default,
69
47
  default: CalloutNativeComponent_1.default, // win32
70
48
  });
71
49
  exports.Callout = (0, foundation_compose_1.compose)({
72
50
  displayName: Callout_types_1.calloutName,
73
- usePrepareProps: function (props, useStyling) {
74
- var componentRef = props.componentRef, target = props.target, rest = __rest(props, ["componentRef", "target"]);
75
- React.useImperativeHandle(componentRef, function () { return ({
76
- blurWindow: function () {
51
+ usePrepareProps: (props, useStyling) => {
52
+ const { componentRef, target, ...rest } = props;
53
+ React.useImperativeHandle(componentRef, () => ({
54
+ blurWindow() {
77
55
  if (componentRef.current != null) {
78
56
  MacOSCalloutNativeComponent_2.Commands.blurWindow(nativeComponentRef.current);
79
57
  }
80
58
  },
81
- focusWindow: function () {
59
+ focusWindow() {
82
60
  if (componentRef.current != null) {
83
61
  MacOSCalloutNativeComponent_2.Commands.focusWindow(nativeComponentRef.current);
84
62
  }
85
63
  },
86
- }); }, [componentRef]);
87
- var nativeComponentRef = React.useRef(null);
88
- var _a = React.useState(null), nativeTarget = _a[0], setNativeTarget = _a[1];
89
- React.useLayoutEffect(function () {
64
+ }), [componentRef]);
65
+ const nativeComponentRef = React.useRef(null);
66
+ const [nativeTarget, setNativeTarget] = React.useState(null);
67
+ React.useLayoutEffect(() => {
90
68
  if (typeof target === 'string') {
91
69
  // Pass string type `target` directly
92
70
  setNativeTarget(target);
93
71
  }
94
- else if (target === null || target === void 0 ? void 0 : target.current) {
72
+ else if (target?.current) {
95
73
  // Pass the tagID for a valid ref `target`
96
74
  setNativeTarget((0, react_native_1.findNodeHandle)(target.current));
97
75
  }
@@ -100,10 +78,14 @@ exports.Callout = (0, foundation_compose_1.compose)({
100
78
  setNativeTarget(null);
101
79
  }
102
80
  }, [target]);
103
- var slotProps = (0, foundation_settings_1.mergeSettings)(useStyling(props), {
104
- root: __assign(__assign({ ref: nativeComponentRef }, (nativeTarget && { target: nativeTarget })), rest),
81
+ const slotProps = (0, foundation_settings_1.mergeSettings)(useStyling(props), {
82
+ root: {
83
+ ref: nativeComponentRef,
84
+ ...(nativeTarget && { target: nativeTarget }),
85
+ ...rest,
86
+ },
105
87
  });
106
- return { slotProps: slotProps };
88
+ return { slotProps };
107
89
  },
108
90
  settings: Callout_settings_1.settings,
109
91
  slots: {
@@ -1 +1 @@
1
- {"version":3,"file":"Callout.js","sourceRoot":"","sources":["../src/Callout.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,2CAA+B;AAC/B,6CAAwD;AAGxD,wDAAoF;AAEpF,yEAA6D;AAC7D,2EAAoE;AAEpE,uDAA8C;AAE9C,iDAA8C;AAE9C,oFAA8D;AAE9D,8FAAsE;AACtE,6EAAyD;AAEzD,IAAM,iBAAiB,GAAG,uBAAQ,CAAC,MAAM,CAA2E;IAClH,KAAK,EAAE,qCAAyB;IAChC,OAAO,EAAE,gCAAsB,EAAE,QAAQ;CAC1C,CAAC,CAAC;AAEU,QAAA,OAAO,GAAG,IAAA,4BAAO,EAAe;IAC3C,WAAW,EAAE,2BAAW;IACxB,eAAe,EAAE,UAAC,KAAoB,EAAE,UAA4C;QAC1E,IAAA,YAAY,GAAsB,KAAK,aAA3B,EAAE,MAAM,GAAc,KAAK,OAAnB,EAAK,IAAI,UAAK,KAAK,EAAzC,0BAAiC,CAAF,CAAW;QAChD,KAAK,CAAC,mBAAmB,CACvB,YAAY,EACZ,cAAM,OAAA,CAAC;YACL,UAAU;gBACR,IAAI,YAAY,CAAC,OAAO,IAAI,IAAI,EAAE;oBAChC,sCAAQ,CAAC,UAAU,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;iBACjD;YACH,CAAC;YACD,WAAW;gBACT,IAAI,YAAY,CAAC,OAAO,IAAI,IAAI,EAAE;oBAChC,sCAAQ,CAAC,WAAW,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;iBAClD;YACH,CAAC;SACF,CAAC,EAXI,CAWJ,EACF,CAAC,YAAY,CAAC,CACf,CAAC;QACF,IAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,CAAoD,IAAI,CAAC,CAAC;QA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IAAI,CAAC,CAAC;aACvB;QACH,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;QAEb,MAAM,SAAS,GAAG,IAAA,mCAAa,EAAoB,UAAU,CAAC,KAAK,CAAC,EAAE;YACpE,IAAI,EAAE;gBACJ,GAAG,EAAE,kBAAkB;gBACvB,GAAG,CAAC,YAAY,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC;gBAC7C,GAAG,IAAI;aACR;SACF,CAAC,CAAC;QAEH,OAAO,EAAE,SAAS,EAAE,CAAC;IACvB,CAAC;IACD,QAAQ,EAAE,2BAAQ;IAClB,KAAK,EAAE;QACL,IAAI,EAAE,iBAAiB;KACxB;IACD,MAAM,EAAE;QACN,IAAI,EAAE,CAAC,8BAAqB,EAAE,qBAAY,CAAC;KAC5C;CACF,CAAC,CAAC;AAEH,kBAAe,eAAO,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.settings = void 0;
4
- var Callout_types_1 = require("./Callout.types");
4
+ const Callout_types_1 = require("./Callout.types");
5
5
  exports.settings = [
6
6
  {
7
7
  tokens: {
@@ -1 +1 @@
1
- {"version":3,"file":"Callout.settings.js","sourceRoot":"","sources":["../src/Callout.settings.ts"],"names":[],"mappings":";;;AAGA,iDAA8C;AAEjC,QAAA,QAAQ,GAAmC;IACtD;QACE,MAAM,EAAE;YACN,eAAe,EAAE,wBAAwB;YACzC,SAAS,EAAE,EAAE;YACb,WAAW,EAAE,qBAAqB;YAClC,WAAW,EAAE,CAAC;YACd,eAAe,EAAE,gBAAgB;YACjC,QAAQ,EAAE,CAAC;YACX,UAAU,EAAE,CAAC;SACd;KACF;IACD,2BAAW;CACZ,CAAC"}
1
+ {"version":3,"file":"Callout.settings.js","sourceRoot":"","sources":["../src/Callout.settings.ts"],"names":[],"mappings":";;;AAGA,mDAA8C;AAEjC,QAAA,QAAQ,GAAmC;IACtD;QACE,MAAM,EAAE;YACN,eAAe,EAAE,wBAAwB;YACzC,SAAS,EAAE,EAAE;YACb,WAAW,EAAE,qBAAqB;YAClC,WAAW,EAAE,CAAC;YACd,eAAe,EAAE,gBAAgB;YACjC,QAAQ,EAAE,CAAC;YACX,UAAU,EAAE,CAAC;SACd;KACF;IACD,2BAAW;CACZ,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.settings = void 0;
4
- var Callout_types_1 = require("./Callout.types");
4
+ const Callout_types_1 = require("./Callout.types");
5
5
  exports.settings = [
6
6
  {
7
7
  tokens: {
@@ -1 +1 @@
1
- {"version":3,"file":"Callout.settings.macos.js","sourceRoot":"","sources":["../src/Callout.settings.macos.ts"],"names":[],"mappings":";;;AAGA,iDAA8C;AAEjC,QAAA,QAAQ,GAAmC;IACtD;QACE,MAAM,EAAE;YACN,eAAe,EAAE,wBAAwB;YACzC,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,CAAC;YACd,YAAY,EAAE,CAAC;YACf,eAAe,EAAE,gBAAgB;SAClC;QACD,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,QAAQ,EAAE,UAAU;aACrB;SACF;KACF;IACD,2BAAW;CACZ,CAAC"}
1
+ {"version":3,"file":"Callout.settings.macos.js","sourceRoot":"","sources":["../src/Callout.settings.macos.ts"],"names":[],"mappings":";;;AAGA,mDAA8C;AAEjC,QAAA,QAAQ,GAAmC;IACtD;QACE,MAAM,EAAE;YACN,eAAe,EAAE,wBAAwB;YACzC,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,CAAC;YACd,YAAY,EAAE,CAAC;YACf,eAAe,EAAE,gBAAgB;SAClC;QACD,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,QAAQ,EAAE,UAAU;aACrB;SACF;KACF;IACD,2BAAW;CACZ,CAAC"}
@@ -1,18 +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
- exports.Commands = void 0;
12
- var codegenNativeCommands_1 = __importDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));
13
- var codegenNativeComponent_1 = __importDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
14
- exports.Commands = (0, codegenNativeCommands_1.default)({
15
- supportedCommands: ['blurWindow', 'focusWindow'],
16
- });
17
- exports.default = (0, codegenNativeComponent_1.default)('RCTCallout');
18
- //# sourceMappingURL=CalloutNativeComponent.js.map
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=exports.Commands=void 0;var _codegenNativeCommands=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var _require2=require("react-native/Libraries/ReactNative/RendererProxy"),dispatchCommand=_require2.dispatchCommand;var nativeComponentName='RCTCallout';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RCTCallout',directEventTypes:{topRestoreFocus:{registrationName:'onRestoreFocus'},topDismiss:{registrationName:'onDismiss'},topShow:{registrationName:'onShow'}},validAttributes:Object.assign({accessibilityLabel:true,accessibilityOnShowAnnouncement:true,anchorRect:true,directionalHint:true,dismissBehaviors:true,doNotTakePointerCapture:true,focusable:true,isBeakVisible:true,maxHeight:true,maxWidth:true,setInitialFocus:true,target:true,testID:true},ConditionallyIgnoredEventHandlers({onRestoreFocus:true,onDismiss:true,onShow:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});var Commands=exports.Commands={focusWindow:function focusWindow(ref){dispatchCommand(ref,"focusWindow",[]);},blurWindow:function blurWindow(ref){dispatchCommand(ref,"blurWindow",[]);}};
@@ -1 +1 @@
1
- {"version":3,"file":"CalloutNativeComponent.js","sourceRoot":"","sources":["../src/CalloutNativeComponent.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAKH,iHAA2F;AAC3F,mHAA6F;AAwDhF,QAAA,QAAQ,GAA0B,IAAA,+BAAqB,EAAwB;IAC1F,iBAAiB,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;CACjD,CAAC,CAAC;AAEH,kBAAe,IAAA,gCAAsB,EAAc,YAAY,CAAyB,CAAC"}
1
+ {"version":3,"file":"CalloutNativeComponent.js","sourceRoot":"","sources":["../src/CalloutNativeComponent.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAKH,mHAA2F;AAC3F,qHAA6F;AAwDhF,QAAA,QAAQ,GAA0B,IAAA,+BAAqB,EAAwB;IAC1F,iBAAiB,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;CACjD,CAAC,CAAC;AAEH,kBAAe,IAAA,gCAAsB,EAAc,YAAY,CAAyB,CAAC"}
@@ -1,18 +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
- exports.Commands = void 0;
12
- var codegenNativeCommands_1 = __importDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));
13
- var codegenNativeComponent_1 = __importDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
14
- exports.Commands = (0, codegenNativeCommands_1.default)({
15
- supportedCommands: ['blurWindow', 'focusWindow'],
16
- });
17
- exports.default = (0, codegenNativeComponent_1.default)('FRNCallout');
18
- //# sourceMappingURL=MacOSCalloutNativeComponent.js.map
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=exports.Commands=void 0;var _codegenNativeCommands=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var _require2=require("react-native/Libraries/ReactNative/RendererProxy"),dispatchCommand=_require2.dispatchCommand;var nativeComponentName='FRNCallout';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:'FRNCallout',directEventTypes:{topRestoreFocus:{registrationName:'onRestoreFocus'},topDismiss:{registrationName:'onDismiss'},topShow:{registrationName:'onShow'}},validAttributes:Object.assign({accessibilityLabel:true,accessibilityOnShowAnnouncement:true,anchorRect:true,directionalHint:true,dismissBehaviors:true,doNotTakePointerCapture:true,focusable:true,isBeakVisible:true,maxHeight:true,maxWidth:true,setInitialFocus:true,target:true,testID:true},ConditionallyIgnoredEventHandlers({onRestoreFocus:true,onDismiss:true,onShow:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});var Commands=exports.Commands={focusWindow:function focusWindow(ref){dispatchCommand(ref,"focusWindow",[]);},blurWindow:function blurWindow(ref){dispatchCommand(ref,"blurWindow",[]);}};
@@ -1 +1 @@
1
- {"version":3,"file":"MacOSCalloutNativeComponent.js","sourceRoot":"","sources":["../src/MacOSCalloutNativeComponent.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAKH,iHAA2F;AAC3F,mHAA6F;AAmDhF,QAAA,QAAQ,GAA0B,IAAA,+BAAqB,EAAwB;IAC1F,iBAAiB,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;CACjD,CAAC,CAAC;AAEH,kBAAe,IAAA,gCAAsB,EAAc,YAAY,CAAyB,CAAC"}
1
+ {"version":3,"file":"MacOSCalloutNativeComponent.js","sourceRoot":"","sources":["../src/MacOSCalloutNativeComponent.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAKH,mHAA2F;AAC3F,qHAA6F;AAmDhF,QAAA,QAAQ,GAA0B,IAAA,+BAAqB,EAAwB;IAC1F,iBAAiB,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;CACjD,CAAC,CAAC;AAEH,kBAAe,IAAA,gCAAsB,EAAc,YAAY,CAAyB,CAAC"}
@@ -23,11 +23,11 @@ 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('Callout default props', function () {
30
- var tree = renderer.create(React.createElement(__1.Callout, null)).toJSON();
26
+ const React = __importStar(require("react"));
27
+ const renderer = __importStar(require("react-test-renderer"));
28
+ const __1 = require("..");
29
+ it('Callout default props', () => {
30
+ const tree = renderer.create(React.createElement(__1.Callout, null)).toJSON();
31
31
  expect(tree).toMatchSnapshot();
32
32
  });
33
33
  //# sourceMappingURL=Callout.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Callout.test.js","sourceRoot":"","sources":["../../src/__tests__/Callout.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAE/B,4DAAgD;AAEhD,wBAA6B;AAE7B,EAAE,CAAC,uBAAuB,EAAE;IAC1B,IAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,oBAAC,WAAO,OAAG,CAAC,CAAC,MAAM,EAAE,CAAC;IACnD,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;AACjC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"Callout.test.js","sourceRoot":"","sources":["../../src/__tests__/Callout.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAE/B,8DAAgD;AAEhD,0BAA6B;AAE7B,EAAE,CAAC,uBAAuB,EAAE,GAAG,EAAE;IAC/B,MAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,oBAAC,WAAO,OAAG,CAAC,CAAC,MAAM,EAAE,CAAC;IACnD,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;AACjC,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,12 +1,19 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/callout",
3
- "version": "0.27.2",
3
+ "version": "0.27.4",
4
4
  "description": "A cross-platform Callout component using the Fluent Design System",
5
5
  "license": "MIT",
6
6
  "author": "",
7
7
  "homepage": "https://github.com/microsoft/fluentui-react-native",
8
8
  "main": "lib-commonjs/index.js",
9
9
  "module": "lib/index.js",
10
+ "exports": {
11
+ ".": {
12
+ "import": "./lib/index.js",
13
+ "require": "./lib-commonjs/index.js",
14
+ "types": "./lib/index.d.ts"
15
+ }
16
+ },
10
17
  "typings": "lib/index.d.ts",
11
18
  "scripts": {
12
19
  "build": "fluentui-scripts build",
@@ -25,27 +32,31 @@
25
32
  "directory": "packages/components/Callout"
26
33
  },
27
34
  "dependencies": {
28
- "@fluentui-react-native/adapters": "0.13.0",
29
- "@fluentui-react-native/tokens": "0.23.1",
30
- "@uifabricshared/foundation-composable": "0.13.1",
31
- "@uifabricshared/foundation-compose": "1.15.2",
32
- "@uifabricshared/foundation-settings": "0.15.1"
35
+ "@fluentui-react-native/adapters": "0.13.2",
36
+ "@fluentui-react-native/tokens": "0.23.3",
37
+ "@uifabricshared/foundation-composable": "0.13.3",
38
+ "@uifabricshared/foundation-compose": "1.15.4",
39
+ "@uifabricshared/foundation-settings": "0.15.3"
33
40
  },
34
41
  "devDependencies": {
42
+ "@babel/core": "^7.20.0",
35
43
  "@fluentui-react-native/eslint-config-rules": "0.1.1",
36
44
  "@fluentui-react-native/scripts": "0.1.1",
37
- "@office-iss/react-native-win32": "^0.73.0",
38
- "@react-native/babel-preset": "^0.73.0",
39
- "@react-native/metro-config": "^0.73.0",
45
+ "@office-iss/react-native-win32": "^0.74.0",
46
+ "@react-native/babel-preset": "^0.74.0",
47
+ "@react-native/metro-config": "^0.74.0",
48
+ "@types/react": "~18.2.0",
40
49
  "react": "18.2.0",
41
- "react-native": "^0.73.0"
50
+ "react-native": "^0.74.0",
51
+ "react-native-macos": "^0.74.0",
52
+ "react-native-windows": "^0.74.0"
42
53
  },
43
54
  "peerDependencies": {
44
- "@office-iss/react-native-win32": "^0.73.0",
55
+ "@office-iss/react-native-win32": "^0.74.0",
45
56
  "react": "18.2.0",
46
- "react-native": "^0.73.0",
47
- "react-native-macos": "^0.73.0",
48
- "react-native-windows": "^0.73.0"
57
+ "react-native": "^0.73.0 || ^0.74.0",
58
+ "react-native-macos": "^0.73.0 || ^0.74.0",
59
+ "react-native-windows": "^0.73.0 || ^0.74.0"
49
60
  },
50
61
  "rnx-kit": {
51
62
  "kitType": "library",
@@ -53,13 +64,21 @@
53
64
  "presets": [
54
65
  "microsoft/react-native"
55
66
  ],
56
- "requirements": [
57
- "react-native@0.73"
58
- ],
67
+ "requirements": {
68
+ "development": [
69
+ "react-native@0.74"
70
+ ],
71
+ "production": [
72
+ "react-native@0.73 || 0.74"
73
+ ]
74
+ },
59
75
  "capabilities": [
76
+ "babel-preset-react-native",
60
77
  "core",
61
78
  "core-android",
62
79
  "core-ios",
80
+ "core-macos",
81
+ "core-windows",
63
82
  "react"
64
83
  ]
65
84
  }
package/.eslintrc.js DELETED
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- extends: ['@fluentui-react-native/eslint-config-rules'],
3
- };