@fluentui-react-native/menu 1.0.62 → 1.0.64

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,55 @@
2
2
  "name": "@fluentui-react-native/menu",
3
3
  "entries": [
4
4
  {
5
- "date": "Sat, 29 Oct 2022 00:18:23 GMT",
5
+ "date": "Tue, 01 Nov 2022 16:29:20 GMT",
6
+ "tag": "@fluentui-react-native/menu_v1.0.64",
7
+ "version": "1.0.64",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "beachball",
12
+ "package": "@fluentui-react-native/menu",
13
+ "comment": "Bump @fluentui-react-native/callout to v0.21.29",
14
+ "commit": "f85015b9cf0c2a823556db6023fce48b6cac124c"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui-react-native/menu",
19
+ "comment": "Bump @fluentui-react-native/focus-zone to v0.10.31",
20
+ "commit": "f85015b9cf0c2a823556db6023fce48b6cac124c"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui-react-native/menu",
25
+ "comment": "Bump @fluentui-react-native/interactive-hooks to v0.19.5",
26
+ "commit": "f85015b9cf0c2a823556db6023fce48b6cac124c"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui-react-native/menu",
31
+ "comment": "Bump @fluentui-react-native/button to v0.29.1",
32
+ "commit": "f85015b9cf0c2a823556db6023fce48b6cac124c"
33
+ }
34
+ ]
35
+ }
36
+ },
37
+ {
38
+ "date": "Sat, 29 Oct 2022 01:05:20 GMT",
39
+ "tag": "@fluentui-react-native/menu_v1.0.63",
40
+ "version": "1.0.63",
41
+ "comments": {
42
+ "patch": [
43
+ {
44
+ "author": "sanajmi@microsoft.com",
45
+ "package": "@fluentui-react-native/menu",
46
+ "commit": "9d5251df615f035066294a17a93e50bead28d7cc",
47
+ "comment": "MenuV1: Update types to PressablePropsExtended"
48
+ }
49
+ ]
50
+ }
51
+ },
52
+ {
53
+ "date": "Sat, 29 Oct 2022 00:18:41 GMT",
6
54
  "tag": "@fluentui-react-native/menu_v1.0.62",
7
55
  "version": "1.0.62",
8
56
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,31 @@
1
1
  # Change Log - @fluentui-react-native/menu
2
2
 
3
- This log was last generated on Sat, 29 Oct 2022 00:18:23 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 01 Nov 2022 16:29:20 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 1.0.64
8
+
9
+ Tue, 01 Nov 2022 16:29:20 GMT
10
+
11
+ ### Patches
12
+
13
+ - Bump @fluentui-react-native/callout to v0.21.29
14
+ - Bump @fluentui-react-native/focus-zone to v0.10.31
15
+ - Bump @fluentui-react-native/interactive-hooks to v0.19.5
16
+ - Bump @fluentui-react-native/button to v0.29.1
17
+
18
+ ## 1.0.63
19
+
20
+ Sat, 29 Oct 2022 01:05:20 GMT
21
+
22
+ ### Patches
23
+
24
+ - MenuV1: Update types to PressablePropsExtended (sanajmi@microsoft.com)
25
+
7
26
  ## 1.0.62
8
27
 
9
- Sat, 29 Oct 2022 00:18:23 GMT
28
+ Sat, 29 Oct 2022 00:18:41 GMT
10
29
 
11
30
  ### Patches
12
31
 
package/SPEC.md CHANGED
@@ -224,7 +224,7 @@ Creates a divider element in the `MenuList`. This divider is purely visual and d
224
224
  #### MenuItem Props
225
225
 
226
226
  ```ts
227
- export interface MenuItemProps extends Omit<IWithPressableOptions<ViewProps>, 'onPress'> {
227
+ export interface MenuItemProps extends Omit<PressablePropsExtended, 'onPress'> {
228
228
  /**
229
229
  * A RefObject to access the IButton interface. Use this to access the public methods and properties of the component.
230
230
  */
@@ -1,8 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { IViewProps } from '@fluentui-react-native/adapters';
3
- import { InteractionEvent, IWithPressableOptions } from '@fluentui-react-native/interactive-hooks';
2
+ import { InteractionEvent, PressablePropsExtended } from '@fluentui-react-native/interactive-hooks';
4
3
  export declare const menuTriggerName = "MenuTrigger";
5
- export interface MenuTriggerChildProps extends Omit<IWithPressableOptions<IViewProps>, 'onPress'> {
4
+ export interface MenuTriggerChildProps extends Omit<PressablePropsExtended, 'onPress'> {
6
5
  /**
7
6
  * A RefObject to refer to the trigger component.
8
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"MenuTrigger.types.d.ts","sourceRoot":"","sources":["../../src/MenuTrigger/MenuTrigger.types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAEnG,eAAO,MAAM,eAAe,gBAAgB,CAAC;AAE7C,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,EAAE,SAAS,CAAC;IAC/F;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAEhD;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACzC;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,qBAAqB,CAAC;IAC7B,UAAU,EAAE,OAAO,CAAC;CACrB"}
1
+ {"version":3,"file":"MenuTrigger.types.d.ts","sourceRoot":"","sources":["../../src/MenuTrigger/MenuTrigger.types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAEpG,eAAO,MAAM,eAAe,gBAAgB,CAAC;AAE7C,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC;IACpF;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAEhD;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACzC;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,qBAAqB,CAAC;IAC7B,UAAU,EAAE,OAAO,CAAC;CACrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"MenuTrigger.types.js","sourceRoot":"","sources":["../../src/MenuTrigger/MenuTrigger.types.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,IAAM,eAAe,GAAG,aAAa,CAAC"}
1
+ {"version":3,"file":"MenuTrigger.types.js","sourceRoot":"","sources":["../../src/MenuTrigger/MenuTrigger.types.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,IAAM,eAAe,GAAG,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getRevisedProps.d.ts","sourceRoot":"","sources":["../../src/MenuTrigger/getRevisedProps.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE9E;;;;;GAKG;AACH,eAAO,MAAM,eAAe,8BAAiC,CAAC;AAC9D,iBAAS,qBAAqB,CAAC,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,GAAG,GAAG,qBAAqB,CAyCzF"}
1
+ {"version":3,"file":"getRevisedProps.d.ts","sourceRoot":"","sources":["../../src/MenuTrigger/getRevisedProps.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE9E;;;;;GAKG;AACH,eAAO,MAAM,eAAe,8BAAiC,CAAC;AAC9D,iBAAS,qBAAqB,CAAC,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,GAAG,GAAG,qBAAqB,CAuCzF"}
@@ -28,20 +28,18 @@ function getRevisedPropsWorker(state, props) {
28
28
  props.onClick(e);
29
29
  };
30
30
  }
31
- var onHoverIn = undefined;
32
31
  if (props.onHoverIn) {
33
- onHoverIn = function (e) {
32
+ revisedProps.onHoverIn = function (e) {
34
33
  state.props.onHoverIn(isMouseEvent(e) && e);
35
34
  props.onHoverIn(e);
36
35
  };
37
36
  }
38
- var onHoverOut = undefined;
39
37
  if (props.onHoverOut) {
40
- onHoverOut = function (e) {
38
+ revisedProps.onHoverOut = function (e) {
41
39
  state.props.onHoverOut(isMouseEvent(e) && e);
42
40
  props.onHoverOut(e);
43
41
  };
44
42
  }
45
- return __assign(__assign({}, revisedProps), { onHoverIn: onHoverIn, onHoverOut: onHoverOut });
43
+ return __assign({}, revisedProps);
46
44
  }
47
45
  //# sourceMappingURL=getRevisedProps.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getRevisedProps.js","sourceRoot":"","sources":["../../src/MenuTrigger/getRevisedProps.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3D,OAAO,EAAoB,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAG1F;;;;;GAKG;AACH,MAAM,CAAC,IAAM,eAAe,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AAC9D,SAAS,qBAAqB,CAAC,KAAuB,EAAE,KAAU;IAChE,IAAM,YAAY,gBAAQ,KAAK,CAAC,KAAK,CAAE,CAAC;IACxC,IAAI,KAAK,CAAC,kBAAkB,EAAE;QAC5B,YAAY,CAAC,kBAAkB,yBAAQ,KAAK,CAAC,KAAK,CAAC,kBAAkB,GAAK,KAAK,CAAC,kBAAkB,CAAE,CAAC;KACtG;IAED,IAAI,KAAK,CAAC,oBAAoB,EAAE;QAC9B,YAAY,CAAC,oBAAoB,mCAAO,KAAK,CAAC,KAAK,CAAC,oBAAoB,SAAK,KAAK,CAAC,oBAAoB,OAAC,CAAC;KAC1G;IAED,IAAI,KAAK,CAAC,qBAAqB,EAAE;QAC/B,YAAY,CAAC,qBAAqB,GAAG,UAAC,CAA2B;YAC/D,KAAK,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,CA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C;QACtB,CAAC,CAAC;KACH;IAED,oBAAY,YAAY,EAAG;AAC7B,CAAC"}
@@ -1,8 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { IViewProps } from '@fluentui-react-native/adapters';
3
- import { InteractionEvent, IWithPressableOptions } from '@fluentui-react-native/interactive-hooks';
2
+ import { InteractionEvent, PressablePropsExtended } from '@fluentui-react-native/interactive-hooks';
4
3
  export declare const menuTriggerName = "MenuTrigger";
5
- export interface MenuTriggerChildProps extends Omit<IWithPressableOptions<IViewProps>, 'onPress'> {
4
+ export interface MenuTriggerChildProps extends Omit<PressablePropsExtended, 'onPress'> {
6
5
  /**
7
6
  * A RefObject to refer to the trigger component.
8
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"MenuTrigger.types.d.ts","sourceRoot":"","sources":["../../src/MenuTrigger/MenuTrigger.types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAEnG,eAAO,MAAM,eAAe,gBAAgB,CAAC;AAE7C,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,EAAE,SAAS,CAAC;IAC/F;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAEhD;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACzC;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,qBAAqB,CAAC;IAC7B,UAAU,EAAE,OAAO,CAAC;CACrB"}
1
+ {"version":3,"file":"MenuTrigger.types.d.ts","sourceRoot":"","sources":["../../src/MenuTrigger/MenuTrigger.types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAEpG,eAAO,MAAM,eAAe,gBAAgB,CAAC;AAE7C,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC;IACpF;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAEhD;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACzC;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,qBAAqB,CAAC;IAC7B,UAAU,EAAE,OAAO,CAAC;CACrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"MenuTrigger.types.js","sourceRoot":"","sources":["../../src/MenuTrigger/MenuTrigger.types.ts"],"names":[],"mappings":";;;AAGa,QAAA,eAAe,GAAG,aAAa,CAAC"}
1
+ {"version":3,"file":"MenuTrigger.types.js","sourceRoot":"","sources":["../../src/MenuTrigger/MenuTrigger.types.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAG,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getRevisedProps.d.ts","sourceRoot":"","sources":["../../src/MenuTrigger/getRevisedProps.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE9E;;;;;GAKG;AACH,eAAO,MAAM,eAAe,8BAAiC,CAAC;AAC9D,iBAAS,qBAAqB,CAAC,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,GAAG,GAAG,qBAAqB,CAyCzF"}
1
+ {"version":3,"file":"getRevisedProps.d.ts","sourceRoot":"","sources":["../../src/MenuTrigger/getRevisedProps.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE9E;;;;;GAKG;AACH,eAAO,MAAM,eAAe,8BAAiC,CAAC;AAC9D,iBAAS,qBAAqB,CAAC,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,GAAG,GAAG,qBAAqB,CAuCzF"}
@@ -31,20 +31,18 @@ function getRevisedPropsWorker(state, props) {
31
31
  props.onClick(e);
32
32
  };
33
33
  }
34
- var onHoverIn = undefined;
35
34
  if (props.onHoverIn) {
36
- onHoverIn = function (e) {
35
+ revisedProps.onHoverIn = function (e) {
37
36
  state.props.onHoverIn((0, interactive_hooks_1.isMouseEvent)(e) && e);
38
37
  props.onHoverIn(e);
39
38
  };
40
39
  }
41
- var onHoverOut = undefined;
42
40
  if (props.onHoverOut) {
43
- onHoverOut = function (e) {
41
+ revisedProps.onHoverOut = function (e) {
44
42
  state.props.onHoverOut((0, interactive_hooks_1.isMouseEvent)(e) && e);
45
43
  props.onHoverOut(e);
46
44
  };
47
45
  }
48
- return (0, tslib_1.__assign)((0, tslib_1.__assign)({}, revisedProps), { onHoverIn: onHoverIn, onHoverOut: onHoverOut });
46
+ return (0, tslib_1.__assign)({}, revisedProps);
49
47
  }
50
48
  //# sourceMappingURL=getRevisedProps.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getRevisedProps.js","sourceRoot":"","sources":["../../src/MenuTrigger/getRevisedProps.ts"],"names":[],"mappings":";;;;AACA,8DAA2D;AAC3D,8EAA0F;AAG1F;;;;;GAKG;AACU,QAAA,eAAe,GAAG,IAAA,mBAAO,EAAC,qBAAqB,CAAC,CAAC;AAC9D,SAAS,qBAAqB,CAAC,KAAuB,EAAE,KAAU;IAChE,IAAM,YAAY,6BAAQ,KAAK,CAAC,KAAK,CAAE,CAAC;IACxC,IAAI,KAAK,CAAC,kBAAkB,EAAE;QAC5B,YAAY,CAAC,kBAAkB,mDAAQ,KAAK,CAAC,KAAK,CAAC,kBAAkB,GAAK,KAAK,CAAC,kBAAkB,CAAE,CAAC;KACtG;IAED,IAAI,KAAK,CAAC,oBAAoB,EAAE;QAC9B,YAAY,CAAC,oBAAoB,6DAAO,KAAK,CAAC,KAAK,CAAC,oBAAoB,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AC5C,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,IAAA,gCAAY,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YAC7C,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QACtB,CAAC,CAAC;KACH;IAED,iCAAY,YAAY,EAAG;AAC7B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/menu",
3
- "version": "1.0.62",
3
+ "version": "1.0.64",
4
4
  "description": "A cross-platform Menu component using the Fluent Design System",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -23,10 +23,10 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@fluentui-react-native/adapters": ">=0.9.3 <1.0.0",
26
- "@fluentui-react-native/callout": ">=0.21.28 <1.0.0",
27
- "@fluentui-react-native/focus-zone": ">=0.10.30 <1.0.0",
26
+ "@fluentui-react-native/callout": ">=0.21.29 <1.0.0",
27
+ "@fluentui-react-native/focus-zone": ">=0.10.31 <1.0.0",
28
28
  "@fluentui-react-native/framework": "0.8.15",
29
- "@fluentui-react-native/interactive-hooks": ">=0.19.4 <1.0.0",
29
+ "@fluentui-react-native/interactive-hooks": ">=0.19.5 <1.0.0",
30
30
  "@fluentui-react-native/text": ">=0.15.11 <1.0.0",
31
31
  "@fluentui-react-native/theme-tokens": ">=0.21.0 <1.0.0",
32
32
  "@fluentui-react-native/tokens": ">=0.17.6 <1.0.0",
@@ -35,7 +35,7 @@
35
35
  "tslib": "^2.3.1"
36
36
  },
37
37
  "devDependencies": {
38
- "@fluentui-react-native/button": ">=0.29.0 <1.0.0",
38
+ "@fluentui-react-native/button": ">=0.29.1 <1.0.0",
39
39
  "@fluentui-react-native/eslint-config-rules": "^0.1.1",
40
40
  "@fluentui-react-native/scripts": "^0.1.1",
41
41
  "@fluentui-react-native/test-tools": ">=0.1.1 <1.0.0",
@@ -1,9 +1,8 @@
1
- import { IViewProps } from '@fluentui-react-native/adapters';
2
- import { InteractionEvent, IWithPressableOptions } from '@fluentui-react-native/interactive-hooks';
1
+ import { InteractionEvent, PressablePropsExtended } from '@fluentui-react-native/interactive-hooks';
3
2
 
4
3
  export const menuTriggerName = 'MenuTrigger';
5
4
 
6
- export interface MenuTriggerChildProps extends Omit<IWithPressableOptions<IViewProps>, 'onPress'> {
5
+ export interface MenuTriggerChildProps extends Omit<PressablePropsExtended, 'onPress'> {
7
6
  /**
8
7
  * A RefObject to refer to the trigger component.
9
8
  */
@@ -34,21 +34,19 @@ function getRevisedPropsWorker(state: MenuTriggerState, props: any): MenuTrigger
34
34
  };
35
35
  }
36
36
 
37
- let onHoverIn = undefined;
38
37
  if (props.onHoverIn) {
39
- onHoverIn = (e: InteractionEvent) => {
38
+ revisedProps.onHoverIn = (e: InteractionEvent) => {
40
39
  state.props.onHoverIn(isMouseEvent(e) && e);
41
40
  props.onHoverIn(e);
42
41
  };
43
42
  }
44
43
 
45
- let onHoverOut = undefined;
46
44
  if (props.onHoverOut) {
47
- onHoverOut = (e: InteractionEvent) => {
45
+ revisedProps.onHoverOut = (e: InteractionEvent) => {
48
46
  state.props.onHoverOut(isMouseEvent(e) && e);
49
47
  props.onHoverOut(e);
50
48
  };
51
49
  }
52
50
 
53
- return { ...revisedProps, onHoverIn, onHoverOut };
51
+ return { ...revisedProps };
54
52
  }