@fluentui-react-native/tooltip 0.4.10 → 0.4.11
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 +15 -0
- package/CHANGELOG.md +9 -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 +4 -4
- package/src/__tests__/Tooltip.test.tsx +0 -25
- package/tsconfig.json +1 -2
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/tooltip",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"date": "Wed, 29 Jan 2025 23:39:17 GMT",
|
|
6
|
+
"version": "0.4.11",
|
|
7
|
+
"tag": "@fluentui-react-native/tooltip_v0.4.11",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "sanajmi@microsoft.com",
|
|
12
|
+
"package": "@fluentui-react-native/tooltip",
|
|
13
|
+
"commit": "5ca24ac45054439768404d117213a2ae4767235d",
|
|
14
|
+
"comment": "remove enzyme tests"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
4
19
|
{
|
|
5
20
|
"date": "Thu, 16 Jan 2025 19:12:10 GMT",
|
|
6
21
|
"version": "0.4.9",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/tooltip
|
|
2
2
|
|
|
3
|
-
This log was last generated on Wed,
|
|
3
|
+
<!-- This log was last generated on Wed, 29 Jan 2025 23:39:17 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.4.11
|
|
8
|
+
|
|
9
|
+
Wed, 29 Jan 2025 23:39:17 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- remove enzyme tests (sanajmi@microsoft.com)
|
|
14
|
+
|
|
7
15
|
## 0.4.2
|
|
8
16
|
|
|
9
17
|
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.11",
|
|
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,12 +22,12 @@
|
|
|
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.2",
|
|
26
|
+
"@fluentui-react-native/framework": "0.14.2",
|
|
27
27
|
"tslib": "^2.3.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@fluentui-react-native/button": "0.39.
|
|
30
|
+
"@fluentui-react-native/button": "0.39.4",
|
|
31
31
|
"@fluentui-react-native/eslint-config-rules": "0.1.1",
|
|
32
32
|
"@fluentui-react-native/scripts": "0.1.1",
|
|
33
33
|
"@fluentui-react-native/test-tools": "0.1.1",
|
|
@@ -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
|
});
|