@fluentui-react-native/experimental-shimmer 0.12.1 → 0.12.3
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 +43 -1
- package/CHANGELOG.md +20 -2
- package/lib/Shimmer.test.js +5 -2
- package/lib/Shimmer.test.js.map +1 -1
- package/lib-commonjs/Shimmer.test.js +5 -2
- package/lib-commonjs/Shimmer.test.js.map +1 -1
- package/package.json +4 -4
- package/src/Shimmer.test.tsx +6 -3
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,49 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/experimental-shimmer",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Wed, 20 Dec 2023 00:00:53 GMT",
|
|
6
|
+
"version": "0.12.3",
|
|
7
|
+
"tag": "@fluentui-react-native/experimental-shimmer_v0.12.3",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "beachball",
|
|
12
|
+
"package": "@fluentui-react-native/experimental-shimmer",
|
|
13
|
+
"comment": "Bump @fluentui-react-native/framework to v0.13.0",
|
|
14
|
+
"commit": "not available"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui-react-native/experimental-shimmer",
|
|
19
|
+
"comment": "Bump @fluentui-react-native/theming-utils to v0.25.1",
|
|
20
|
+
"commit": "not available"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@fluentui-react-native/experimental-shimmer",
|
|
25
|
+
"comment": "Bump @fluentui-react-native/tokens to v0.22.1",
|
|
26
|
+
"commit": "not available"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"date": "Tue, 19 Dec 2023 21:03:38 GMT",
|
|
33
|
+
"version": "0.12.2",
|
|
34
|
+
"tag": "@fluentui-react-native/experimental-shimmer_v0.12.2",
|
|
35
|
+
"comments": {
|
|
36
|
+
"patch": [
|
|
37
|
+
{
|
|
38
|
+
"author": "ruaraki@microsoft.com",
|
|
39
|
+
"package": "@fluentui-react-native/experimental-shimmer",
|
|
40
|
+
"commit": "f47e1b2706a75f2a5095f2465e76cbebedf3840c",
|
|
41
|
+
"comment": "Fix shimmer test"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"date": "Fri, 15 Dec 2023 19:01:28 GMT",
|
|
6
48
|
"version": "0.12.1",
|
|
7
49
|
"tag": "@fluentui-react-native/experimental-shimmer_v0.12.1",
|
|
8
50
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,30 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/experimental-shimmer
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 20 Dec 2023 00:00:53 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.12.3
|
|
8
|
+
|
|
9
|
+
Wed, 20 Dec 2023 00:00:53 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Bump @fluentui-react-native/framework to v0.13.0
|
|
14
|
+
- Bump @fluentui-react-native/theming-utils to v0.25.1
|
|
15
|
+
- Bump @fluentui-react-native/tokens to v0.22.1
|
|
16
|
+
|
|
17
|
+
## 0.12.2
|
|
18
|
+
|
|
19
|
+
Tue, 19 Dec 2023 21:03:38 GMT
|
|
20
|
+
|
|
21
|
+
### Patches
|
|
22
|
+
|
|
23
|
+
- Fix shimmer test (ruaraki@microsoft.com)
|
|
24
|
+
|
|
7
25
|
## 0.12.1
|
|
8
26
|
|
|
9
|
-
Fri, 15 Dec 2023 19:
|
|
27
|
+
Fri, 15 Dec 2023 19:01:28 GMT
|
|
10
28
|
|
|
11
29
|
### Patches
|
|
12
30
|
|
package/lib/Shimmer.test.js
CHANGED
|
@@ -37,8 +37,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
import * as React from 'react';
|
|
38
38
|
import * as renderer from 'react-test-renderer';
|
|
39
39
|
import { Shimmer } from './Shimmer';
|
|
40
|
-
// mocks out setTimeout and other timer functions with mock functions, test will fail without this as we're using Animated API
|
|
41
|
-
jest.useFakeTimers();
|
|
42
40
|
function shimmerRects() {
|
|
43
41
|
return [
|
|
44
42
|
{
|
|
@@ -72,6 +70,11 @@ function shimmerRects() {
|
|
|
72
70
|
}
|
|
73
71
|
var style = { width: 300, height: 100 };
|
|
74
72
|
describe('Shimmer component tests', function () {
|
|
73
|
+
beforeAll(function () {
|
|
74
|
+
// mocks out setTimeout and other timer functions with mock functions, test will fail without this as we're using Animated API
|
|
75
|
+
jest.useFakeTimers();
|
|
76
|
+
jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper');
|
|
77
|
+
});
|
|
75
78
|
it('Shimmer default', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
76
79
|
var tree;
|
|
77
80
|
return __generator(this, function (_a) {
|
package/lib/Shimmer.test.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Shimmer.test.js","sourceRoot":"","sources":["../src/Shimmer.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,
|
|
1
|
+
{"version":3,"file":"Shimmer.test.js","sourceRoot":"","sources":["../src/Shimmer.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,K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,EAAA;iCAAA,CAAC,EAAA;;oBAApC,SAAoC,CAAC;;;;SACtC,CAAC,CAAC;IAEH,EAAE,CAAC,yBAAyB,EAAE;;;;;oBACtB,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,oBAAC,OAAO,IAAC,QAAQ,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,MAAM,EAAE,CAAC;oBAC3F,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;oBAC/B,qBAAM,QAAQ,CAAC,GAAG,CAAC;4BAAY,sBAAA,IAAI,EAAA;iCAAA,CAAC,EAAA;;oBAApC,SAAoC,CAAC;;;;SACtC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -62,8 +62,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
62
62
|
var React = __importStar(require("react"));
|
|
63
63
|
var renderer = __importStar(require("react-test-renderer"));
|
|
64
64
|
var Shimmer_1 = require("./Shimmer");
|
|
65
|
-
// mocks out setTimeout and other timer functions with mock functions, test will fail without this as we're using Animated API
|
|
66
|
-
jest.useFakeTimers();
|
|
67
65
|
function shimmerRects() {
|
|
68
66
|
return [
|
|
69
67
|
{
|
|
@@ -97,6 +95,11 @@ function shimmerRects() {
|
|
|
97
95
|
}
|
|
98
96
|
var style = { width: 300, height: 100 };
|
|
99
97
|
describe('Shimmer component tests', function () {
|
|
98
|
+
beforeAll(function () {
|
|
99
|
+
// mocks out setTimeout and other timer functions with mock functions, test will fail without this as we're using Animated API
|
|
100
|
+
jest.useFakeTimers();
|
|
101
|
+
jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper');
|
|
102
|
+
});
|
|
100
103
|
it('Shimmer default', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
101
104
|
var tree;
|
|
102
105
|
return __generator(this, function (_a) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Shimmer.test.js","sourceRoot":"","sources":["../src/Shimmer.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAE/B,4DAAgD;AAEhD,qCAAoC;AAGpC,
|
|
1
|
+
{"version":3,"file":"Shimmer.test.js","sourceRoot":"","sources":["../src/Shimmer.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAE/B,4DAAgD;AAEhD,qCAAoC;AAGpC,SAAS,YAAY;IACnB,OAAO;QACL;YACE,IAAI,EAAE,MAAM;YACZ,aAAa,EAAE,CAAC;YAChB,aAAa,EAAE,CAAC;YAChB,KAAK,EAAE,GAAG;YACV,MAAM,EAAE,EAAE;YACV,CAAC,EAAE,EAAE;YACL,CAAC,EAAE,EAAE;SACN;QACD;YACE,IAAI,EAAE,MAAM;YACZ,aAAa,EAAE,CAAC;YAChB,aAAa,EAAE,CAAC;YAChB,KAAK,EAAE,GAAG;YACV,MAAM,EAAE,EAAE;YACV,CAAC,EAAE,EAAE;YACL,CAAC,EAAE,EAAE;SACN;QACD;YACE,IAAI,EAAE,MAAM;YACZ,aAAa,EAAE,CAAC;YAChB,aAAa,EAAE,CAAC;YAChB,KAAK,EAAE,GAAG;YACV,MAAM,EAAE,EAAE;YACV,CAAC,EAAE,EAAE;YACL,CAAC,EAAE,EAAE;SACN;KACF,CAAC;AACJ,CAAC;AAED,IAAM,KAAK,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;AAE1C,QAAQ,CAAC,yBAAyB,EAAE;IAClC,SAAS,CAAC;QACR,8HAA8H;QAC9H,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,IAAI,CAAC,IAAI,CAAC,sDAAsD,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iBAAiB,EAAE;;;;;oBACd,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,oBAAC,iBAAO,IAAC,QAAQ,EAAE,YAAY,EAAE,GAAI,CAAC,CAAC,MAAM,EAAE,CAAC;oBAC7E,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;oBAC/B,qBAAM,QAAQ,CAAC,GAAG,CAAC;4BAAY,sBAAA,IAAI,EAAA;iCAAA,CAAC,EAAA;;oBAApC,SAAoC,CAAC;;;;SACtC,CAAC,CAAC;IAEH,EAAE,CAAC,yBAAyB,EAAE;;;;;oBACtB,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,oBAAC,iBAAO,IAAC,QAAQ,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,MAAM,EAAE,CAAC;oBAC3F,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;oBAC/B,qBAAM,QAAQ,CAAC,GAAG,CAAC;4BAAY,sBAAA,IAAI,EAAA;iCAAA,CAAC,EAAA;;oBAApC,SAAoC,CAAC;;;;SACtC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/experimental-shimmer",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.3",
|
|
4
4
|
"description": "A cross-platform Fluent Shimmer component",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@fluentui-react-native/component-cache": "^1.6.0",
|
|
26
|
-
"@fluentui-react-native/framework": "0.
|
|
27
|
-
"@fluentui-react-native/theming-utils": ">=0.25.
|
|
28
|
-
"@fluentui-react-native/tokens": ">=0.22.
|
|
26
|
+
"@fluentui-react-native/framework": "0.13.0",
|
|
27
|
+
"@fluentui-react-native/theming-utils": ">=0.25.1 <1.0.0",
|
|
28
|
+
"@fluentui-react-native/tokens": ">=0.22.1 <1.0.0",
|
|
29
29
|
"@fluentui-react-native/use-styling": "^0.12.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
package/src/Shimmer.test.tsx
CHANGED
|
@@ -5,9 +5,6 @@ import * as renderer from 'react-test-renderer';
|
|
|
5
5
|
import { Shimmer } from './Shimmer';
|
|
6
6
|
import type { ShimmerCircleElement, ShimmerRectElement } from './Shimmer.types';
|
|
7
7
|
|
|
8
|
-
// mocks out setTimeout and other timer functions with mock functions, test will fail without this as we're using Animated API
|
|
9
|
-
jest.useFakeTimers();
|
|
10
|
-
|
|
11
8
|
function shimmerRects(): Array<ShimmerRectElement | ShimmerCircleElement> {
|
|
12
9
|
return [
|
|
13
10
|
{
|
|
@@ -43,6 +40,12 @@ function shimmerRects(): Array<ShimmerRectElement | ShimmerCircleElement> {
|
|
|
43
40
|
const style = { width: 300, height: 100 };
|
|
44
41
|
|
|
45
42
|
describe('Shimmer component tests', () => {
|
|
43
|
+
beforeAll(() => {
|
|
44
|
+
// mocks out setTimeout and other timer functions with mock functions, test will fail without this as we're using Animated API
|
|
45
|
+
jest.useFakeTimers();
|
|
46
|
+
jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper');
|
|
47
|
+
});
|
|
48
|
+
|
|
46
49
|
it('Shimmer default', async () => {
|
|
47
50
|
const tree = renderer.create(<Shimmer elements={shimmerRects()} />).toJSON();
|
|
48
51
|
expect(tree).toMatchSnapshot();
|