@fluentui-react-native/pressable 0.12.4 → 0.12.6

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
@@ -1,6 +1,71 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/pressable",
3
3
  "entries": [
4
+ {
5
+ "date": "Thu, 10 Jul 2025 20:30:34 GMT",
6
+ "version": "0.12.6",
7
+ "tag": "@fluentui-react-native/pressable_v0.12.6",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "jasonmo@microsoft.com",
12
+ "package": "@fluentui-react-native/pressable",
13
+ "commit": "479b93cea460a26df70c55b5d3335927ed374713",
14
+ "comment": "update builds to use node16 settings and modern export maps"
15
+ }
16
+ ],
17
+ "none": [
18
+ {
19
+ "author": "ruaraki@microsoft.com",
20
+ "package": "@fluentui-react-native/pressable",
21
+ "commit": "a245202877ef7f2be9ab5f0e1356b2270957e693",
22
+ "comment": "Run bump-versions"
23
+ },
24
+ {
25
+ "author": "jasonmo@microsoft.com",
26
+ "package": "@fluentui-react-native/pressable",
27
+ "commit": "54087dca787180bbf34630470cd0d06e88366b30",
28
+ "comment": "update eslint to 9.x and use new flat config format with security rules"
29
+ },
30
+ {
31
+ "author": "4123478+tido64@users.noreply.github.com",
32
+ "package": "@fluentui-react-native/pressable",
33
+ "commit": "79bb06f6bbfd0a36f9d2ef371f4857be9660f027",
34
+ "comment": "Fixed `align-deps` warnings"
35
+ }
36
+ ]
37
+ }
38
+ },
39
+ {
40
+ "date": "Thu, 10 Jul 2025 19:20:19 GMT",
41
+ "version": "0.12.5",
42
+ "tag": "@fluentui-react-native/pressable_v0.12.5",
43
+ "comments": {
44
+ "patch": [
45
+ {
46
+ "author": "4123478+tido64@users.noreply.github.com",
47
+ "package": "@fluentui-react-native/pressable",
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:51 GMT",
56
+ "version": "0.12.4",
57
+ "tag": "@fluentui-react-native/pressable_v0.12.4",
58
+ "comments": {
59
+ "none": [
60
+ {
61
+ "author": "4123478+tido64@users.noreply.github.com",
62
+ "package": "@fluentui-react-native/pressable",
63
+ "commit": "2342b87a20e5a584bd2073c8c5a266f0aa48c8bb",
64
+ "comment": "Added missing dev dependencies"
65
+ }
66
+ ]
67
+ }
68
+ },
4
69
  {
5
70
  "date": "Thu, 16 Jan 2025 19:12:11 GMT",
6
71
  "version": "0.12.2",
package/CHANGELOG.md CHANGED
@@ -1,9 +1,25 @@
1
1
  # Change Log - @fluentui-react-native/pressable
2
2
 
3
- This log was last generated on Thu, 11 Apr 2024 18:08:39 GMT and should not be manually modified.
3
+ <!-- This log was last generated on Thu, 10 Jul 2025 20:30:34 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.12.6
8
+
9
+ Thu, 10 Jul 2025 20:30:34 GMT
10
+
11
+ ### Patches
12
+
13
+ - update builds to use node16 settings and modern export maps (jasonmo@microsoft.com)
14
+
15
+ ## 0.12.5
16
+
17
+ Thu, 10 Jul 2025 19:20:19 GMT
18
+
19
+ ### Patches
20
+
21
+ - Add support for React Native 0.74 (4123478+tido64@users.noreply.github.com)
22
+
7
23
  ## 0.12.0
8
24
 
9
25
  Thu, 11 Apr 2024 18:08:39 GMT
@@ -0,0 +1,3 @@
1
+ const baseConfig = require('@fluentui-react-native/eslint-config-rules');
2
+
3
+ module.exports = baseConfig;
package/lib/Pressable.js CHANGED
@@ -9,31 +9,20 @@
9
9
  * provides an overview over how touchables work and interact with the gesture responder system.
10
10
  */
11
11
  'use strict';
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
12
  import { View } from 'react-native';
24
13
  import { useAsPressable } from '@fluentui-react-native/interactive-hooks';
25
14
  import { composable } from '@uifabricshared/foundation-composable';
26
15
  import { mergeSettings } from '@uifabricshared/foundation-settings';
27
- export var Pressable = composable({
16
+ export const Pressable = composable({
28
17
  slots: { root: View },
29
- usePrepareProps: function (userProps, useStyling) {
30
- var renderStyle = userProps.renderStyle, rest = __rest(userProps, ["renderStyle"]);
31
- var _a = useAsPressable(rest), props = _a.props, state = _a.state;
32
- var styleProps = useStyling(props);
18
+ usePrepareProps: (userProps, useStyling) => {
19
+ const { renderStyle, ...rest } = userProps;
20
+ const { props, state } = useAsPressable(rest);
21
+ const styleProps = useStyling(props);
33
22
  renderStyle && (props.style = renderStyle(state));
34
23
  return {
35
24
  slotProps: mergeSettings(styleProps, { root: props }),
36
- state: { state: state },
25
+ state: { state },
37
26
  };
38
27
  },
39
28
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Pressable.js","sourceRoot":"","sources":["../src/Pressable.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,YAAY,CAAC;;;;;;;;;;;;AAEb,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAIpE,MAAM,CAAC,IAAM,SAAS,GAAG,UAAU,CAAiB;IAClD,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;IACrB,eAAe,EAAE,UAAC,SAA0B,EAAE,UAAuC;QAC3E,IAAA,WAAW,GAAc,SAAS,YAAvB,E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AO;YACL,SAAS,EAAE,aAAa,CAA8B,UAAU,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;YAClF,KAAK,EAAE,EAAE,KAAK,EAAE;SACjB,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC"}
@@ -9,33 +9,22 @@
9
9
  * provides an overview over how touchables work and interact with the gesture responder system.
10
10
  */
11
11
  'use strict';
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
12
  Object.defineProperty(exports, "__esModule", { value: true });
24
13
  exports.Pressable = void 0;
25
- var react_native_1 = require("react-native");
26
- var interactive_hooks_1 = require("@fluentui-react-native/interactive-hooks");
27
- var foundation_composable_1 = require("@uifabricshared/foundation-composable");
28
- var foundation_settings_1 = require("@uifabricshared/foundation-settings");
14
+ const react_native_1 = require("react-native");
15
+ const interactive_hooks_1 = require("@fluentui-react-native/interactive-hooks");
16
+ const foundation_composable_1 = require("@uifabricshared/foundation-composable");
17
+ const foundation_settings_1 = require("@uifabricshared/foundation-settings");
29
18
  exports.Pressable = (0, foundation_composable_1.composable)({
30
19
  slots: { root: react_native_1.View },
31
- usePrepareProps: function (userProps, useStyling) {
32
- var renderStyle = userProps.renderStyle, rest = __rest(userProps, ["renderStyle"]);
33
- var _a = (0, interactive_hooks_1.useAsPressable)(rest), props = _a.props, state = _a.state;
34
- var styleProps = useStyling(props);
20
+ usePrepareProps: (userProps, useStyling) => {
21
+ const { renderStyle, ...rest } = userProps;
22
+ const { props, state } = (0, interactive_hooks_1.useAsPressable)(rest);
23
+ const styleProps = useStyling(props);
35
24
  renderStyle && (props.style = renderStyle(state));
36
25
  return {
37
26
  slotProps: (0, foundation_settings_1.mergeSettings)(styleProps, { root: props }),
38
- state: { state: state },
27
+ state: { state },
39
28
  };
40
29
  },
41
30
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Pressable.js","sourceRoot":"","sources":["../src/Pressable.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,YAAY,CAAC;;;;;;;;;;;;;;AAEb,6CAAoC;AAEpC,8EAA0E;AAE1E,+EAAmE;AACnE,2EAAoE;AAIvD,QAAA,SAAS,GAAG,IAAA,kCAAU,EAAiB;IAClD,KAAK,EAAE,EAAE,IAAI,EAAE,mBAAI,EAAE;IACrB,eAAe,EAAE,UAAC,SAA0B,EAAE,UAAuC;QAC3E,IAAA,WAAW,GAAc,SAAS,YAAvB,EAAK,IAAI,UAAK,SAAS,EAApC,eAAwB,CAAF,CAAe;QACrC,IAAA,KAAmB,IAAA,kCAAc,EAAC,IAAI,CAAC,EAArC,KAAK,WAAA,EAAE,KAAK,WAAyB,CAAC;QAC9C,IAAM,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;QACrC,WAAW,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;QAClD,OAAO;YACL,SAAS,EAAE,IAAA,mCAAa,EAA8B,UAAU,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;YAClF,KAAK,EAAE,EAAE,KAAK,OAAA,EAAE;SACjB,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,kBAAe,iBAAS,CAAC"}
1
+ {"version":3,"file":"Pressable.js","sourceRoot":"","sources":["../src/Pressable.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,YAAY,CAAC;;;AAEb,+CAAoC;AAEpC,gFAA0E;AAE1E,iFAAmE;AACnE,6EAAoE;AAIvD,QAAA,SAAS,GAAG,IAAA,kCAAU,EAAiB;IAClD,KAAK,EAAE,EAAE,IAAI,EAAE,mBAAI,EAAE;IACrB,eAAe,EAAE,CAAC,SAA0B,EAAE,UAAuC,EAAE,EAAE;QACvF,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,SAAS,CAAC;QAC3C,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,IAAA,kCAAc,EAAC,IAAI,CAAC,CAAC;QAC9C,MAAM,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;QACrC,WAAW,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;QAClD,OAAO;YACL,SAAS,EAAE,IAAA,mCAAa,EAA8B,UAAU,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;YAClF,KAAK,EAAE,EAAE,KAAK,EAAE;SACjB,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,kBAAe,iBAAS,CAAC"}
package/package.json CHANGED
@@ -1,9 +1,16 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/pressable",
3
- "version": "0.12.4",
3
+ "version": "0.12.6",
4
4
  "description": "A cross-platform Pressable component",
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,25 +29,29 @@
22
29
  "directory": "packages/components/Pressable"
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
- "@react-native/babel-preset": "^0.73.0",
34
- "@react-native/metro-config": "^0.73.0",
41
+ "@react-native/babel-preset": "^0.74.0",
42
+ "@react-native/metro-config": "^0.74.0",
43
+ "@types/react": "~18.2.0",
35
44
  "react": "18.2.0",
36
- "react-native": "^0.73.0"
45
+ "react-native": "^0.74.0",
46
+ "react-native-macos": "^0.74.0",
47
+ "react-native-windows": "^0.74.0"
37
48
  },
38
49
  "peerDependencies": {
39
- "@office-iss/react-native-win32": "^0.73.0",
50
+ "@office-iss/react-native-win32": "^0.74.0",
40
51
  "react": "18.2.0",
41
- "react-native": "^0.73.0",
42
- "react-native-macos": "^0.73.0",
43
- "react-native-windows": "^0.73.0"
52
+ "react-native": "^0.73.0 || ^0.74.0",
53
+ "react-native-macos": "^0.73.0 || ^0.74.0",
54
+ "react-native-windows": "^0.73.0 || ^0.74.0"
44
55
  },
45
56
  "author": "",
46
57
  "license": "MIT",
@@ -50,13 +61,21 @@
50
61
  "presets": [
51
62
  "microsoft/react-native"
52
63
  ],
53
- "requirements": [
54
- "react-native@0.73"
55
- ],
64
+ "requirements": {
65
+ "development": [
66
+ "react-native@0.74"
67
+ ],
68
+ "production": [
69
+ "react-native@0.73 || 0.74"
70
+ ]
71
+ },
56
72
  "capabilities": [
73
+ "babel-preset-react-native",
57
74
  "core",
58
75
  "core-android",
59
76
  "core-ios",
77
+ "core-macos",
78
+ "core-windows",
60
79
  "react"
61
80
  ]
62
81
  }
package/.eslintrc.js DELETED
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- extends: ['@fluentui-react-native/eslint-config-rules'],
3
- };