@fluentui-react-native/pressable 0.12.7 → 0.12.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 +39 -15
- package/CHANGELOG.md +6 -3
- package/babel.config.js +1 -1
- package/lib/Pressable.props.d.ts +4 -2
- package/lib/Pressable.props.d.ts.map +1 -1
- package/lib-commonjs/Pressable.props.d.ts +4 -2
- package/lib-commonjs/Pressable.props.d.ts.map +1 -1
- package/package.json +6 -5
- package/src/Pressable.props.ts +5 -4
- package/tsconfig.json +1 -1
- package/just.config.js +0 -3
package/CHANGELOG.json
CHANGED
|
@@ -2,42 +2,66 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/pressable",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
6
|
-
"version": "0.12.
|
|
7
|
-
"tag": "@fluentui-react-native/pressable_v0.12.
|
|
5
|
+
"date": "Tue, 15 Jul 2025 23:20:55 GMT",
|
|
6
|
+
"version": "0.12.8",
|
|
7
|
+
"tag": "@fluentui-react-native/pressable_v0.12.8",
|
|
8
8
|
"comments": {
|
|
9
|
-
"
|
|
9
|
+
"none": [
|
|
10
10
|
{
|
|
11
|
-
"author": "
|
|
11
|
+
"author": "sanajmi@microsoft.com",
|
|
12
12
|
"package": "@fluentui-react-native/pressable",
|
|
13
|
-
"commit": "
|
|
14
|
-
"comment": "
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
"commit": "405ca368dc3f2963bfc252a1952b1e14ff503499",
|
|
14
|
+
"comment": "fix: run `beachball sync` to sync package versions with NPM"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "4123478+tido64@users.noreply.github.com",
|
|
18
|
+
"package": "@fluentui-react-native/pressable",
|
|
19
|
+
"commit": "79bb06f6bbfd0a36f9d2ef371f4857be9660f027",
|
|
20
|
+
"comment": "Fixed `align-deps` warnings"
|
|
21
|
+
},
|
|
18
22
|
{
|
|
19
23
|
"author": "ruaraki@microsoft.com",
|
|
20
24
|
"package": "@fluentui-react-native/pressable",
|
|
21
25
|
"commit": "a245202877ef7f2be9ab5f0e1356b2270957e693",
|
|
22
26
|
"comment": "Run bump-versions"
|
|
23
27
|
},
|
|
28
|
+
{
|
|
29
|
+
"author": "jasonmo@microsoft.com",
|
|
30
|
+
"package": "@fluentui-react-native/pressable",
|
|
31
|
+
"commit": "3e168e4363d1821818f219819d29532eace8d979",
|
|
32
|
+
"comment": "update scripts package to be fully js, use esm, and validate fully"
|
|
33
|
+
},
|
|
24
34
|
{
|
|
25
35
|
"author": "jasonmo@microsoft.com",
|
|
26
36
|
"package": "@fluentui-react-native/pressable",
|
|
27
37
|
"commit": "54087dca787180bbf34630470cd0d06e88366b30",
|
|
28
38
|
"comment": "update eslint to 9.x and use new flat config format with security rules"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"patch": [
|
|
42
|
+
{
|
|
43
|
+
"author": "jasonmo@microsoft.com",
|
|
44
|
+
"package": "@fluentui-react-native/pressable",
|
|
45
|
+
"commit": "479b93cea460a26df70c55b5d3335927ed374713",
|
|
46
|
+
"comment": "update builds to use node16 settings and modern export maps"
|
|
29
47
|
},
|
|
30
48
|
{
|
|
31
49
|
"author": "sanajmi@microsoft.com",
|
|
32
50
|
"package": "@fluentui-react-native/pressable",
|
|
33
|
-
"commit": "
|
|
34
|
-
"comment": "fix: run
|
|
51
|
+
"commit": "9cbe229ec7f6363d229dcaef506921b8d9f47d7d",
|
|
52
|
+
"comment": "fix: run beachball sync"
|
|
35
53
|
},
|
|
36
54
|
{
|
|
37
|
-
"author": "
|
|
55
|
+
"author": "jasonmo@microsoft.com",
|
|
38
56
|
"package": "@fluentui-react-native/pressable",
|
|
39
|
-
"commit": "
|
|
40
|
-
"comment": "
|
|
57
|
+
"commit": "6b4d59227b1e9bbbf25cc93a3502015f663b363e",
|
|
58
|
+
"comment": "add react-native entrypoints that ensure metro targets TS files rather than JS files for bundling"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"author": "jasonmo@microsoft.com",
|
|
62
|
+
"package": "@fluentui-react-native/pressable",
|
|
63
|
+
"commit": "3d36cc95620fdb938221cbe2c5ce002264108a50",
|
|
64
|
+
"comment": "fix repo linting with new configs and version, fixing linting errors as well"
|
|
41
65
|
}
|
|
42
66
|
]
|
|
43
67
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
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, 15 Jul 2025 23:20:55 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## 0.12.
|
|
7
|
+
## 0.12.8
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Tue, 15 Jul 2025 23:20:55 GMT
|
|
10
10
|
|
|
11
11
|
### Patches
|
|
12
12
|
|
|
13
13
|
- update builds to use node16 settings and modern export maps (jasonmo@microsoft.com)
|
|
14
|
+
- fix: run beachball sync (sanajmi@microsoft.com)
|
|
15
|
+
- add react-native entrypoints that ensure metro targets TS files rather than JS files for bundling (jasonmo@microsoft.com)
|
|
16
|
+
- fix repo linting with new configs and version, fixing linting errors as well (jasonmo@microsoft.com)
|
|
14
17
|
|
|
15
18
|
## 0.12.5
|
|
16
19
|
|
package/babel.config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = require('@fluentui-react-native/scripts/babel.config');
|
|
1
|
+
module.exports = require('@fluentui-react-native/scripts/configs/babel.config');
|
package/lib/Pressable.props.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ import type * as React from 'react';
|
|
|
2
2
|
import type { ViewStyle, StyleProp } from 'react-native';
|
|
3
3
|
import type { IViewProps } from '@fluentui-react-native/adapters';
|
|
4
4
|
import type { IWithPressableOptions, IPressableState } from '@fluentui-react-native/interactive-hooks';
|
|
5
|
-
|
|
5
|
+
type ObjectBase = {};
|
|
6
|
+
export type IPressableProps<TBase extends ObjectBase = IViewProps> = IWithPressableOptions<TBase> & {
|
|
6
7
|
children?: IRenderChild<IPressableState>;
|
|
7
8
|
renderStyle?: IRenderStyle<IPressableState, ViewStyle>;
|
|
8
9
|
};
|
|
@@ -27,10 +28,11 @@ export type IRenderChild<T> = IChildAsFunction<T> | React.ReactNode;
|
|
|
27
28
|
* This is convenient for when styles need to be calculated depending on interaction states.
|
|
28
29
|
*/
|
|
29
30
|
export type IRenderStyle<T, S> = (state: T) => StyleProp<S>;
|
|
30
|
-
export type IPressableType<TBase extends
|
|
31
|
+
export type IPressableType<TBase extends ObjectBase = IViewProps> = {
|
|
31
32
|
props: IPressableProps<TBase>;
|
|
32
33
|
slotProps: {
|
|
33
34
|
root: TBase;
|
|
34
35
|
};
|
|
35
36
|
};
|
|
37
|
+
export {};
|
|
36
38
|
//# sourceMappingURL=Pressable.props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pressable.props.d.ts","sourceRoot":"","sources":["../src/Pressable.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,KAAK,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAGvG,MAAM,MAAM,eAAe,CAAC,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"Pressable.props.d.ts","sourceRoot":"","sources":["../src/Pressable.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,KAAK,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAGvG,KAAK,UAAU,GAAG,EAAE,CAAC;AAErB,MAAM,MAAM,eAAe,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,IAAI,qBAAqB,CAAC,KAAK,CAAC,GAAG;IAClG,QAAQ,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC;IAQzC,WAAW,CAAC,EAAE,YAAY,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC;CACxD,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;AAEhE;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;AAEpE;;;;;GAKG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC;AAE5D,MAAM,MAAM,cAAc,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,IAAI;IAClE,KAAK,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC;IAC9B,SAAS,EAAE;QACT,IAAI,EAAE,KAAK,CAAC;KACb,CAAC;CACH,CAAC"}
|
|
@@ -2,7 +2,8 @@ import type * as React from 'react';
|
|
|
2
2
|
import type { ViewStyle, StyleProp } from 'react-native';
|
|
3
3
|
import type { IViewProps } from '@fluentui-react-native/adapters';
|
|
4
4
|
import type { IWithPressableOptions, IPressableState } from '@fluentui-react-native/interactive-hooks';
|
|
5
|
-
|
|
5
|
+
type ObjectBase = {};
|
|
6
|
+
export type IPressableProps<TBase extends ObjectBase = IViewProps> = IWithPressableOptions<TBase> & {
|
|
6
7
|
children?: IRenderChild<IPressableState>;
|
|
7
8
|
renderStyle?: IRenderStyle<IPressableState, ViewStyle>;
|
|
8
9
|
};
|
|
@@ -27,10 +28,11 @@ export type IRenderChild<T> = IChildAsFunction<T> | React.ReactNode;
|
|
|
27
28
|
* This is convenient for when styles need to be calculated depending on interaction states.
|
|
28
29
|
*/
|
|
29
30
|
export type IRenderStyle<T, S> = (state: T) => StyleProp<S>;
|
|
30
|
-
export type IPressableType<TBase extends
|
|
31
|
+
export type IPressableType<TBase extends ObjectBase = IViewProps> = {
|
|
31
32
|
props: IPressableProps<TBase>;
|
|
32
33
|
slotProps: {
|
|
33
34
|
root: TBase;
|
|
34
35
|
};
|
|
35
36
|
};
|
|
37
|
+
export {};
|
|
36
38
|
//# sourceMappingURL=Pressable.props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pressable.props.d.ts","sourceRoot":"","sources":["../src/Pressable.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,KAAK,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAGvG,MAAM,MAAM,eAAe,CAAC,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"Pressable.props.d.ts","sourceRoot":"","sources":["../src/Pressable.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,KAAK,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAGvG,KAAK,UAAU,GAAG,EAAE,CAAC;AAErB,MAAM,MAAM,eAAe,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,IAAI,qBAAqB,CAAC,KAAK,CAAC,GAAG;IAClG,QAAQ,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC;IAQzC,WAAW,CAAC,EAAE,YAAY,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC;CACxD,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;AAEhE;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;AAEpE;;;;;GAKG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC;AAE5D,MAAM,MAAM,cAAc,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,IAAI;IAClE,KAAK,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC;IAC9B,SAAS,EAAE;QACT,IAAI,EAAE,KAAK,CAAC;KACb,CAAC;CACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/pressable",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.8",
|
|
4
4
|
"description": "A cross-platform Pressable component",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
7
|
+
"react-native": "src/index.ts",
|
|
7
8
|
"exports": {
|
|
8
9
|
".": {
|
|
9
10
|
"import": "./lib/index.js",
|
|
@@ -29,10 +30,10 @@
|
|
|
29
30
|
"directory": "packages/components/Pressable"
|
|
30
31
|
},
|
|
31
32
|
"dependencies": {
|
|
32
|
-
"@fluentui-react-native/adapters": "0.13.
|
|
33
|
-
"@fluentui-react-native/interactive-hooks": "0.27.
|
|
34
|
-
"@uifabricshared/foundation-composable": "0.13.
|
|
35
|
-
"@uifabricshared/foundation-settings": "0.15.
|
|
33
|
+
"@fluentui-react-native/adapters": "0.13.4",
|
|
34
|
+
"@fluentui-react-native/interactive-hooks": "0.27.8",
|
|
35
|
+
"@uifabricshared/foundation-composable": "0.13.5",
|
|
36
|
+
"@uifabricshared/foundation-settings": "0.15.5"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
39
|
"@babel/core": "^7.20.0",
|
package/src/Pressable.props.ts
CHANGED
|
@@ -4,8 +4,10 @@ import type { ViewStyle, StyleProp } from 'react-native';
|
|
|
4
4
|
import type { IViewProps } from '@fluentui-react-native/adapters';
|
|
5
5
|
import type { IWithPressableOptions, IPressableState } from '@fluentui-react-native/interactive-hooks';
|
|
6
6
|
|
|
7
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
8
|
-
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
8
|
+
type ObjectBase = {};
|
|
9
|
+
|
|
10
|
+
export type IPressableProps<TBase extends ObjectBase = IViewProps> = IWithPressableOptions<TBase> & {
|
|
9
11
|
children?: IRenderChild<IPressableState>;
|
|
10
12
|
|
|
11
13
|
// Typescript will not allow an extension of the IView* interface
|
|
@@ -41,8 +43,7 @@ export type IRenderChild<T> = IChildAsFunction<T> | React.ReactNode;
|
|
|
41
43
|
*/
|
|
42
44
|
export type IRenderStyle<T, S> = (state: T) => StyleProp<S>;
|
|
43
45
|
|
|
44
|
-
|
|
45
|
-
export type IPressableType<TBase extends object = IViewProps> = {
|
|
46
|
+
export type IPressableType<TBase extends ObjectBase = IViewProps> = {
|
|
46
47
|
props: IPressableProps<TBase>;
|
|
47
48
|
slotProps: {
|
|
48
49
|
root: TBase;
|
package/tsconfig.json
CHANGED
package/just.config.js
DELETED