@fluentui-react-native/pressable 0.8.4 → 0.8.8
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 +98 -2
- package/CHANGELOG.md +40 -2
- package/lib/Pressable.js.map +1 -1
- package/lib/Pressable.props.js +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib-commonjs/Pressable.js +4 -3
- package/lib-commonjs/Pressable.js.map +1 -1
- package/lib-commonjs/index.js +12 -4
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +10 -5
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,103 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/pressable",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Tue, 21 Dec 2021 20:54:12 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/pressable_v0.8.8",
|
|
7
|
+
"version": "0.8.8",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "beachball",
|
|
12
|
+
"package": "@fluentui-react-native/pressable",
|
|
13
|
+
"comment": "Bump @fluentui-react-native/interactive-hooks to v0.11.8",
|
|
14
|
+
"commit": "a7d19d410d5714e2bdb61529d2687182061020a5"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Mon, 20 Dec 2021 22:56:01 GMT",
|
|
21
|
+
"tag": "@fluentui-react-native/pressable_v0.8.7",
|
|
22
|
+
"version": "0.8.7",
|
|
23
|
+
"comments": {
|
|
24
|
+
"patch": [
|
|
25
|
+
{
|
|
26
|
+
"author": "ruaraki@microsoft.com",
|
|
27
|
+
"package": "@fluentui-react-native/pressable",
|
|
28
|
+
"commit": "f4a5b4f5c9c190400e3e34c4a33b3ed30696d41e",
|
|
29
|
+
"comment": "Add repository property to all package.json files"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"author": "beachball",
|
|
33
|
+
"package": "@fluentui-react-native/pressable",
|
|
34
|
+
"comment": "Bump @fluentui-react-native/adapters to v0.8.2",
|
|
35
|
+
"commit": "bc86b4fbf5f07c0bfbc950a1a99a3cf4b35807d1"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"author": "beachball",
|
|
39
|
+
"package": "@fluentui-react-native/pressable",
|
|
40
|
+
"comment": "Bump @fluentui-react-native/interactive-hooks to v0.11.7",
|
|
41
|
+
"commit": "bc86b4fbf5f07c0bfbc950a1a99a3cf4b35807d1"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"author": "beachball",
|
|
45
|
+
"package": "@fluentui-react-native/pressable",
|
|
46
|
+
"comment": "Bump @uifabricshared/foundation-composable to v0.10.2",
|
|
47
|
+
"commit": "bc86b4fbf5f07c0bfbc950a1a99a3cf4b35807d1"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"author": "beachball",
|
|
51
|
+
"package": "@fluentui-react-native/pressable",
|
|
52
|
+
"comment": "Bump @uifabricshared/foundation-settings to v0.11.2",
|
|
53
|
+
"commit": "bc86b4fbf5f07c0bfbc950a1a99a3cf4b35807d1"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"date": "Sun, 19 Dec 2021 05:07:36 GMT",
|
|
60
|
+
"tag": "@fluentui-react-native/pressable_v0.8.6",
|
|
61
|
+
"version": "0.8.6",
|
|
62
|
+
"comments": {
|
|
63
|
+
"patch": [
|
|
64
|
+
{
|
|
65
|
+
"author": "beachball",
|
|
66
|
+
"package": "@fluentui-react-native/pressable",
|
|
67
|
+
"comment": "Bump @fluentui-react-native/interactive-hooks to v0.11.6",
|
|
68
|
+
"commit": "caa9260512544269d7e177c2d35f15b7f513965b"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"date": "Sat, 18 Dec 2021 04:15:05 GMT",
|
|
75
|
+
"tag": "@fluentui-react-native/pressable_v0.8.5",
|
|
76
|
+
"version": "0.8.5",
|
|
77
|
+
"comments": {
|
|
78
|
+
"patch": [
|
|
79
|
+
{
|
|
80
|
+
"author": "beachball",
|
|
81
|
+
"package": "@fluentui-react-native/pressable",
|
|
82
|
+
"comment": "Bump @fluentui-react-native/interactive-hooks to v0.11.5",
|
|
83
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"author": "beachball",
|
|
87
|
+
"package": "@fluentui-react-native/pressable",
|
|
88
|
+
"comment": "Bump @uifabricshared/foundation-composable to v0.10.1",
|
|
89
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"author": "beachball",
|
|
93
|
+
"package": "@fluentui-react-native/pressable",
|
|
94
|
+
"comment": "Bump @uifabricshared/foundation-settings to v0.11.1",
|
|
95
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"date": "Fri, 17 Dec 2021 22:06:58 GMT",
|
|
6
102
|
"tag": "@fluentui-react-native/pressable_v0.8.4",
|
|
7
103
|
"version": "0.8.4",
|
|
8
104
|
"comments": {
|
|
@@ -11,7 +107,7 @@
|
|
|
11
107
|
"author": "beachball",
|
|
12
108
|
"package": "@fluentui-react-native/pressable",
|
|
13
109
|
"comment": "Bump @fluentui-react-native/interactive-hooks to v0.11.4",
|
|
14
|
-
"commit": "
|
|
110
|
+
"commit": "9dc61df83605c035822518c18cc46fb5503dff70"
|
|
15
111
|
}
|
|
16
112
|
]
|
|
17
113
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,50 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/pressable
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Tue, 21 Dec 2021 20:54:12 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.8.8
|
|
8
|
+
|
|
9
|
+
Tue, 21 Dec 2021 20:54:12 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Bump @fluentui-react-native/interactive-hooks to v0.11.8
|
|
14
|
+
|
|
15
|
+
## 0.8.7
|
|
16
|
+
|
|
17
|
+
Mon, 20 Dec 2021 22:56:01 GMT
|
|
18
|
+
|
|
19
|
+
### Patches
|
|
20
|
+
|
|
21
|
+
- Add repository property to all package.json files (ruaraki@microsoft.com)
|
|
22
|
+
- Bump @fluentui-react-native/adapters to v0.8.2
|
|
23
|
+
- Bump @fluentui-react-native/interactive-hooks to v0.11.7
|
|
24
|
+
- Bump @uifabricshared/foundation-composable to v0.10.2
|
|
25
|
+
- Bump @uifabricshared/foundation-settings to v0.11.2
|
|
26
|
+
|
|
27
|
+
## 0.8.6
|
|
28
|
+
|
|
29
|
+
Sun, 19 Dec 2021 05:07:36 GMT
|
|
30
|
+
|
|
31
|
+
### Patches
|
|
32
|
+
|
|
33
|
+
- Bump @fluentui-react-native/interactive-hooks to v0.11.6
|
|
34
|
+
|
|
35
|
+
## 0.8.5
|
|
36
|
+
|
|
37
|
+
Sat, 18 Dec 2021 04:15:05 GMT
|
|
38
|
+
|
|
39
|
+
### Patches
|
|
40
|
+
|
|
41
|
+
- Bump @fluentui-react-native/interactive-hooks to v0.11.5
|
|
42
|
+
- Bump @uifabricshared/foundation-composable to v0.10.1
|
|
43
|
+
- Bump @uifabricshared/foundation-settings to v0.11.1
|
|
44
|
+
|
|
7
45
|
## 0.8.4
|
|
8
46
|
|
|
9
|
-
Fri, 17 Dec 2021 22:
|
|
47
|
+
Fri, 17 Dec 2021 22:06:58 GMT
|
|
10
48
|
|
|
11
49
|
### Patches
|
|
12
50
|
|
package/lib/Pressable.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pressable.js","sourceRoot":"","sources":["../src/Pressable.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,YAAY,CAAC;;;;;;;;;;;;AAEb,OAAO,EAAe,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E,MAAM,CAAC,IAAM,SAAS,GAAG,UAAU,CAAiB;IAClD,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;IACrB,eAAe,EAAE,UAAC,SAA0B,EAAE,UAAuC;QAC3E,IAAA,
|
|
1
|
+
{"version":3,"file":"Pressable.js","sourceRoot":"","sources":["../src/Pressable.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,YAAY,CAAC;;;;;;;;;;;;AAEb,OAAO,EAAe,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E,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,EAAK,IAAI,UAAK,SAAS,EAApC,eAAwB,CAAF,CAAe;QACrC,IAAA,KAAmB,cAAc,CAAC,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,aAAa,CAA8B,UAAU,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;YAClF,KAAK,EAAE,EAAE,KAAK,OAAA,EAAE;SACjB,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC"}
|
package/lib/Pressable.props.js
CHANGED
package/lib/index.js
CHANGED
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC"}
|
|
@@ -21,19 +21,20 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.Pressable = void 0;
|
|
24
25
|
var foundation_composable_1 = require("@uifabricshared/foundation-composable");
|
|
25
26
|
var react_native_1 = require("react-native");
|
|
26
27
|
var foundation_settings_1 = require("@uifabricshared/foundation-settings");
|
|
27
28
|
var interactive_hooks_1 = require("@fluentui-react-native/interactive-hooks");
|
|
28
|
-
exports.Pressable = foundation_composable_1.composable({
|
|
29
|
+
exports.Pressable = (0, foundation_composable_1.composable)({
|
|
29
30
|
slots: { root: react_native_1.View },
|
|
30
31
|
usePrepareProps: function (userProps, useStyling) {
|
|
31
32
|
var renderStyle = userProps.renderStyle, rest = __rest(userProps, ["renderStyle"]);
|
|
32
|
-
var _a = interactive_hooks_1.useAsPressable(rest), props = _a.props, state = _a.state;
|
|
33
|
+
var _a = (0, interactive_hooks_1.useAsPressable)(rest), props = _a.props, state = _a.state;
|
|
33
34
|
var styleProps = useStyling(props);
|
|
34
35
|
renderStyle && (props.style = renderStyle(state));
|
|
35
36
|
return {
|
|
36
|
-
slotProps: foundation_settings_1.mergeSettings(styleProps, { root: props }),
|
|
37
|
+
slotProps: (0, foundation_settings_1.mergeSettings)(styleProps, { root: props }),
|
|
37
38
|
state: { state: state },
|
|
38
39
|
};
|
|
39
40
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pressable.js","sourceRoot":"","sources":["../src/Pressable.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,YAAY,CAAC
|
|
1
|
+
{"version":3,"file":"Pressable.js","sourceRoot":"","sources":["../src/Pressable.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,YAAY,CAAC;;;;;;;;;;;;;;AAEb,+EAAgF;AAChF,6CAAoC;AAEpC,2EAAoE;AACpE,8EAA0E;AAE7D,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"}
|
package/lib-commonjs/index.js
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
}
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
5
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
13
|
+
__exportStar(require("./Pressable.props"), exports);
|
|
14
|
+
__exportStar(require("./Pressable"), exports);
|
|
7
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAkC;AAClC,8CAA4B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/pressable",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.8",
|
|
4
4
|
"description": "A cross-platform Pressable component",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -16,11 +16,16 @@
|
|
|
16
16
|
"prettier": "fluentui-scripts prettier",
|
|
17
17
|
"prettier-fix": "fluentui-scripts prettier --fix true"
|
|
18
18
|
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "https://github.com/microsoft/fluentui-react-native.git",
|
|
22
|
+
"directory": "packages/components/Pressable"
|
|
23
|
+
},
|
|
19
24
|
"dependencies": {
|
|
20
|
-
"@fluentui-react-native/adapters": ">=0.8.
|
|
21
|
-
"@fluentui-react-native/interactive-hooks": ">=0.11.
|
|
22
|
-
"@uifabricshared/foundation-composable": ">=0.10.
|
|
23
|
-
"@uifabricshared/foundation-settings": ">=0.11.
|
|
25
|
+
"@fluentui-react-native/adapters": ">=0.8.2 <1.0.0",
|
|
26
|
+
"@fluentui-react-native/interactive-hooks": ">=0.11.8 <1.0.0",
|
|
27
|
+
"@uifabricshared/foundation-composable": ">=0.10.2 <1.0.0",
|
|
28
|
+
"@uifabricshared/foundation-settings": ">=0.11.2 <1.0.0"
|
|
24
29
|
},
|
|
25
30
|
"devDependencies": {
|
|
26
31
|
"@fluentui-react-native/eslint-config-rules": "^0.1.1",
|