@fluentui-react-native/tooltip 0.4.10 → 0.4.12
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 +45 -0
- package/CHANGELOG.md +17 -1
- package/lib/__tests__/Tooltip.test.js +0 -10
- package/lib/__tests__/Tooltip.test.js.map +1 -1
- package/lib-commonjs/__tests__/Tooltip.test.js +0 -10
- package/lib-commonjs/__tests__/Tooltip.test.js.map +1 -1
- package/package.json +23 -16
- package/src/__tests__/Tooltip.test.tsx +0 -25
- package/tsconfig.json +1 -2
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/tooltip",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"date": "Thu, 12 Jun 2025 03:17:16 GMT",
|
|
6
|
+
"version": "0.4.12",
|
|
7
|
+
"tag": "@fluentui-react-native/tooltip_v0.4.12",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "4123478+tido64@users.noreply.github.com",
|
|
12
|
+
"package": "@fluentui-react-native/tooltip",
|
|
13
|
+
"commit": "24b9abab3370f008afd2dbb304751fc9af6bec4a",
|
|
14
|
+
"comment": "Add support for React Native 0.74"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Wed, 11 Jun 2025 19:34:45 GMT",
|
|
21
|
+
"version": "0.4.11",
|
|
22
|
+
"tag": "@fluentui-react-native/tooltip_v0.4.11",
|
|
23
|
+
"comments": {
|
|
24
|
+
"none": [
|
|
25
|
+
{
|
|
26
|
+
"author": "4123478+tido64@users.noreply.github.com",
|
|
27
|
+
"package": "@fluentui-react-native/tooltip",
|
|
28
|
+
"commit": "2342b87a20e5a584bd2073c8c5a266f0aa48c8bb",
|
|
29
|
+
"comment": "Added missing dev dependencies"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"date": "Wed, 29 Jan 2025 23:43:52 GMT",
|
|
36
|
+
"version": "0.4.11",
|
|
37
|
+
"tag": "@fluentui-react-native/tooltip_v0.4.11",
|
|
38
|
+
"comments": {
|
|
39
|
+
"patch": [
|
|
40
|
+
{
|
|
41
|
+
"author": "sanajmi@microsoft.com",
|
|
42
|
+
"package": "@fluentui-react-native/tooltip",
|
|
43
|
+
"commit": "5ca24ac45054439768404d117213a2ae4767235d",
|
|
44
|
+
"comment": "remove enzyme tests"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
4
49
|
{
|
|
5
50
|
"date": "Thu, 16 Jan 2025 19:12:10 GMT",
|
|
6
51
|
"version": "0.4.9",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/tooltip
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
<!-- This log was last generated on Thu, 12 Jun 2025 03:17:16 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.4.12
|
|
8
|
+
|
|
9
|
+
Thu, 12 Jun 2025 03:17:16 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Add support for React Native 0.74 (4123478+tido64@users.noreply.github.com)
|
|
14
|
+
|
|
15
|
+
## 0.4.11
|
|
16
|
+
|
|
17
|
+
Wed, 29 Jan 2025 23:43:52 GMT
|
|
18
|
+
|
|
19
|
+
### Patches
|
|
20
|
+
|
|
21
|
+
- remove enzyme tests (sanajmi@microsoft.com)
|
|
22
|
+
|
|
7
23
|
## 0.4.2
|
|
8
24
|
|
|
9
25
|
Wed, 19 Jun 2024 18:09:31 GMT
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ButtonV1 } from '@fluentui-react-native/button';
|
|
3
|
-
import { checkRenderConsistency, checkReRender } from '@fluentui-react-native/test-tools';
|
|
4
3
|
import * as renderer from 'react-test-renderer';
|
|
5
4
|
import { Tooltip } from '../Tooltip';
|
|
6
5
|
describe('Tooltip component tests', function () {
|
|
@@ -11,14 +10,5 @@ describe('Tooltip component tests', function () {
|
|
|
11
10
|
.toJSON();
|
|
12
11
|
expect(tree).toMatchSnapshot();
|
|
13
12
|
});
|
|
14
|
-
it('Tooltip simple rendering does not invalidate styling', function () {
|
|
15
|
-
checkRenderConsistency(function () { return (React.createElement(Tooltip, { content: "Default Tooltip" },
|
|
16
|
-
React.createElement(ButtonV1, null, "Default Tooltip"))); }, 2);
|
|
17
|
-
});
|
|
18
|
-
it('Tooltip re-renders correctly', function () {
|
|
19
|
-
checkReRender(function () { return (React.createElement(Tooltip, { content: "Render twice" },
|
|
20
|
-
React.createElement(ButtonV1, null, "Render twice"))); }, 2);
|
|
21
|
-
});
|
|
22
|
-
// Feel free to add more tests here
|
|
23
13
|
});
|
|
24
14
|
//# sourceMappingURL=Tooltip.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.test.js","sourceRoot":"","sources":["../../src/__tests__/Tooltip.test.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,
|
|
1
|
+
{"version":3,"file":"Tooltip.test.js","sourceRoot":"","sources":["../../src/__tests__/Tooltip.test.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,QAAQ,CAAC,yBAAyB,EAAE;IAClC,EAAE,CAAC,iBAAiB,EAAE;QACpB,IAAM,IAAI,GAAG,QAAQ;aAClB,MAAM,CACL,oBAAC,OAAO,IAAC,OAAO,EAAC,gBAAgB;YAC/B,oBAAC,QAAQ,yBAA0B,CAC3B,CACX;aACA,MAAM,EAAE,CAAC;QACZ,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
var tslib_1 = require("tslib");
|
|
4
4
|
var React = tslib_1.__importStar(require("react"));
|
|
5
5
|
var button_1 = require("@fluentui-react-native/button");
|
|
6
|
-
var test_tools_1 = require("@fluentui-react-native/test-tools");
|
|
7
6
|
var renderer = tslib_1.__importStar(require("react-test-renderer"));
|
|
8
7
|
var Tooltip_1 = require("../Tooltip");
|
|
9
8
|
describe('Tooltip component tests', function () {
|
|
@@ -14,14 +13,5 @@ describe('Tooltip component tests', function () {
|
|
|
14
13
|
.toJSON();
|
|
15
14
|
expect(tree).toMatchSnapshot();
|
|
16
15
|
});
|
|
17
|
-
it('Tooltip simple rendering does not invalidate styling', function () {
|
|
18
|
-
(0, test_tools_1.checkRenderConsistency)(function () { return (React.createElement(Tooltip_1.Tooltip, { content: "Default Tooltip" },
|
|
19
|
-
React.createElement(button_1.ButtonV1, null, "Default Tooltip"))); }, 2);
|
|
20
|
-
});
|
|
21
|
-
it('Tooltip re-renders correctly', function () {
|
|
22
|
-
(0, test_tools_1.checkReRender)(function () { return (React.createElement(Tooltip_1.Tooltip, { content: "Render twice" },
|
|
23
|
-
React.createElement(button_1.ButtonV1, null, "Render twice"))); }, 2);
|
|
24
|
-
});
|
|
25
|
-
// Feel free to add more tests here
|
|
26
16
|
});
|
|
27
17
|
//# sourceMappingURL=Tooltip.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.test.js","sourceRoot":"","sources":["../../src/__tests__/Tooltip.test.tsx"],"names":[],"mappings":";;;AAAA,mDAA+B;AAE/B,wDAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"Tooltip.test.js","sourceRoot":"","sources":["../../src/__tests__/Tooltip.test.tsx"],"names":[],"mappings":";;;AAAA,mDAA+B;AAE/B,wDAAyD;AACzD,oEAAgD;AAEhD,sCAAqC;AAErC,QAAQ,CAAC,yBAAyB,EAAE;IAClC,EAAE,CAAC,iBAAiB,EAAE;QACpB,IAAM,IAAI,GAAG,QAAQ;aAClB,MAAM,CACL,oBAAC,iBAAO,IAAC,OAAO,EAAC,gBAAgB;YAC/B,oBAAC,iBAAQ,yBAA0B,CAC3B,CACX;aACA,MAAM,EAAE,CAAC;QACZ,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/tooltip",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.12",
|
|
4
4
|
"description": "A cross-platform Tooltip component for React Native.",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -22,28 +22,30 @@
|
|
|
22
22
|
"directory": "packages/experimental/Tooltip"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@fluentui-react-native/callout": "0.27.
|
|
26
|
-
"@fluentui-react-native/framework": "0.14.
|
|
25
|
+
"@fluentui-react-native/callout": "0.27.3",
|
|
26
|
+
"@fluentui-react-native/framework": "0.14.3",
|
|
27
27
|
"tslib": "^2.3.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@
|
|
30
|
+
"@babel/core": "^7.20.0",
|
|
31
|
+
"@fluentui-react-native/button": "0.39.5",
|
|
31
32
|
"@fluentui-react-native/eslint-config-rules": "0.1.1",
|
|
32
33
|
"@fluentui-react-native/scripts": "0.1.1",
|
|
33
34
|
"@fluentui-react-native/test-tools": "0.1.1",
|
|
34
|
-
"@office-iss/react-native-win32": "^0.
|
|
35
|
-
"@react-native/babel-preset": "^0.
|
|
36
|
-
"@react-native/metro-config": "^0.
|
|
35
|
+
"@office-iss/react-native-win32": "^0.74.0",
|
|
36
|
+
"@react-native/babel-preset": "^0.74.0",
|
|
37
|
+
"@react-native/metro-config": "^0.74.0",
|
|
38
|
+
"@types/react": "~18.2.0",
|
|
37
39
|
"react": "18.2.0",
|
|
38
|
-
"react-native": "^0.
|
|
39
|
-
"react-native-svg": "^
|
|
40
|
+
"react-native": "^0.74.0",
|
|
41
|
+
"react-native-svg": "^15.4.0"
|
|
40
42
|
},
|
|
41
43
|
"peerDependencies": {
|
|
42
|
-
"@office-iss/react-native-win32": "^0.
|
|
44
|
+
"@office-iss/react-native-win32": "^0.74.0",
|
|
43
45
|
"react": "18.2.0",
|
|
44
|
-
"react-native": "^0.73.0",
|
|
45
|
-
"react-native-macos": "^0.73.0",
|
|
46
|
-
"react-native-windows": "^0.73.0"
|
|
46
|
+
"react-native": "^0.73.0 || ^0.74.0",
|
|
47
|
+
"react-native-macos": "^0.73.0 || ^0.74.0",
|
|
48
|
+
"react-native-windows": "^0.73.0 || ^0.74.0"
|
|
47
49
|
},
|
|
48
50
|
"author": "",
|
|
49
51
|
"license": "MIT",
|
|
@@ -53,9 +55,14 @@
|
|
|
53
55
|
"presets": [
|
|
54
56
|
"microsoft/react-native"
|
|
55
57
|
],
|
|
56
|
-
"requirements":
|
|
57
|
-
"
|
|
58
|
-
|
|
58
|
+
"requirements": {
|
|
59
|
+
"development": [
|
|
60
|
+
"react-native@0.74"
|
|
61
|
+
],
|
|
62
|
+
"production": [
|
|
63
|
+
"react-native@0.73 || 0.74"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
59
66
|
"capabilities": [
|
|
60
67
|
"core",
|
|
61
68
|
"react"
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
|
|
3
3
|
import { ButtonV1 } from '@fluentui-react-native/button';
|
|
4
|
-
import { checkRenderConsistency, checkReRender } from '@fluentui-react-native/test-tools';
|
|
5
4
|
import * as renderer from 'react-test-renderer';
|
|
6
5
|
|
|
7
6
|
import { Tooltip } from '../Tooltip';
|
|
@@ -17,28 +16,4 @@ describe('Tooltip component tests', () => {
|
|
|
17
16
|
.toJSON();
|
|
18
17
|
expect(tree).toMatchSnapshot();
|
|
19
18
|
});
|
|
20
|
-
|
|
21
|
-
it('Tooltip simple rendering does not invalidate styling', () => {
|
|
22
|
-
checkRenderConsistency(
|
|
23
|
-
() => (
|
|
24
|
-
<Tooltip content="Default Tooltip">
|
|
25
|
-
<ButtonV1>Default Tooltip</ButtonV1>
|
|
26
|
-
</Tooltip>
|
|
27
|
-
),
|
|
28
|
-
2,
|
|
29
|
-
);
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
it('Tooltip re-renders correctly', () => {
|
|
33
|
-
checkReRender(
|
|
34
|
-
() => (
|
|
35
|
-
<Tooltip content="Render twice">
|
|
36
|
-
<ButtonV1>Render twice</ButtonV1>
|
|
37
|
-
</Tooltip>
|
|
38
|
-
),
|
|
39
|
-
2,
|
|
40
|
-
);
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
// Feel free to add more tests here
|
|
44
19
|
});
|