@fluentui-react-native/tester 0.69.7 → 0.70.0
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 +22 -1
- package/CHANGELOG.md +11 -2
- package/lib/FluentTester/TestComponents/Notification/NotificationTest.d.ts.map +1 -1
- package/lib/FluentTester/TestComponents/Notification/NotificationTest.js +12 -4
- package/lib/FluentTester/TestComponents/Notification/NotificationTest.js.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/Notification/NotificationTest.d.ts.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/Notification/NotificationTest.js +12 -4
- package/lib-commonjs/FluentTester/TestComponents/Notification/NotificationTest.js.map +1 -1
- package/package.json +2 -2
- package/src/FluentTester/TestComponents/Notification/NotificationTest.tsx +28 -4
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,28 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/tester",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Tue, 05 Jul 2022 20:46:58 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/tester_v0.70.0",
|
|
7
|
+
"version": "0.70.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"author": "joannaquu@gmail.com",
|
|
12
|
+
"package": "@fluentui-react-native/tester",
|
|
13
|
+
"commit": "4a6ddb0228c4a69881bc809789691934456005d2",
|
|
14
|
+
"comment": "add bar tests"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui-react-native/tester",
|
|
19
|
+
"comment": "Bump @fluentui-react-native/notification to v0.3.0",
|
|
20
|
+
"commit": "4a6ddb0228c4a69881bc809789691934456005d2"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"date": "Wed, 29 Jun 2022 21:55:35 GMT",
|
|
6
27
|
"tag": "@fluentui-react-native/tester_v0.69.7",
|
|
7
28
|
"version": "0.69.7",
|
|
8
29
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/tester
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Tue, 05 Jul 2022 20:46:58 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.70.0
|
|
8
|
+
|
|
9
|
+
Tue, 05 Jul 2022 20:46:58 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- add bar tests (joannaquu@gmail.com)
|
|
14
|
+
- Bump @fluentui-react-native/notification to v0.3.0
|
|
15
|
+
|
|
7
16
|
## 0.69.7
|
|
8
17
|
|
|
9
|
-
Wed, 29 Jun 2022 21:55:
|
|
18
|
+
Wed, 29 Jun 2022 21:55:35 GMT
|
|
10
19
|
|
|
11
20
|
### Patches
|
|
12
21
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationTest.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Notification/NotificationTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NotificationTest.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Notification/NotificationTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA+E/B,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,iBAYpC,CAAC"}
|
|
@@ -2,16 +2,24 @@ import * as React from 'react';
|
|
|
2
2
|
import { Notification } from '@fluentui-react-native/notification';
|
|
3
3
|
import { Test } from '../Test';
|
|
4
4
|
var PrimaryTest = function () {
|
|
5
|
-
return (React.createElement(Notification, { variant: 'primary',
|
|
5
|
+
return (React.createElement(Notification, { variant: 'primary', action: "Undo", onPress: function () {
|
|
6
|
+
console.log('Notification tapped');
|
|
7
|
+
} }, "Mail Archived"));
|
|
6
8
|
};
|
|
7
9
|
var NeutralTest = function () {
|
|
8
|
-
return (React.createElement(Notification, { variant: 'neutral',
|
|
10
|
+
return (React.createElement(Notification, { variant: 'neutral', action: "Sign in", onPress: function () {
|
|
11
|
+
console.log('Notification tapped');
|
|
12
|
+
} }, "Some items require you to sign in to view them"));
|
|
9
13
|
};
|
|
10
14
|
var DangerTest = function () {
|
|
11
|
-
return (React.createElement(Notification, { variant: 'danger',
|
|
15
|
+
return (React.createElement(Notification, { variant: 'danger', action: "Retry", onPress: function () {
|
|
16
|
+
console.log('Notification tapped');
|
|
17
|
+
} }, "There was a problem, and your recent changes may not have saved"));
|
|
12
18
|
};
|
|
13
19
|
var WarningTest = function () {
|
|
14
|
-
return (React.createElement(Notification, { variant: 'warning',
|
|
20
|
+
return (React.createElement(Notification, { variant: 'warning', action: "X", onPress: function () {
|
|
21
|
+
console.log('Notification tapped');
|
|
22
|
+
} }, "Read Only"));
|
|
15
23
|
};
|
|
16
24
|
var notificationSections = [
|
|
17
25
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationTest.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Notification/NotificationTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,IAAI,EAA+B,MAAM,SAAS,CAAC;AAE5D,IAAM,WAAW,GAA4B;IAC3C,OAAO,CACL,oBAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"NotificationTest.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Notification/NotificationTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,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WAAW;KACvB;CACF,CAAC;AAEF,MAAM,CAAC,IAAM,gBAAgB,GAA4B;IACvD,IAAM,MAAM,GAAmB;QAC7B,WAAW,EAAE,SAAS;QACtB,SAAS,EAAE,SAAS;QACpB,SAAS,EAAE,cAAc;QACzB,WAAW,EAAE,SAAS;QACtB,aAAa,EAAE,SAAS;KACzB,CAAC;IAEF,IAAM,WAAW,GAAG,gCAAgC,CAAC;IAErD,OAAO,oBAAC,IAAI,IAAC,IAAI,EAAC,mBAAmB,EAAC,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,GAAS,CAAC;AAC1H,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationTest.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Notification/NotificationTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NotificationTest.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Notification/NotificationTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA+E/B,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,iBAYpC,CAAC"}
|
|
@@ -6,16 +6,24 @@ var React = (0, tslib_1.__importStar)(require("react"));
|
|
|
6
6
|
var notification_1 = require("@fluentui-react-native/notification");
|
|
7
7
|
var Test_1 = require("../Test");
|
|
8
8
|
var PrimaryTest = function () {
|
|
9
|
-
return (React.createElement(notification_1.Notification, { variant: 'primary',
|
|
9
|
+
return (React.createElement(notification_1.Notification, { variant: 'primary', action: "Undo", onPress: function () {
|
|
10
|
+
console.log('Notification tapped');
|
|
11
|
+
} }, "Mail Archived"));
|
|
10
12
|
};
|
|
11
13
|
var NeutralTest = function () {
|
|
12
|
-
return (React.createElement(notification_1.Notification, { variant: 'neutral',
|
|
14
|
+
return (React.createElement(notification_1.Notification, { variant: 'neutral', action: "Sign in", onPress: function () {
|
|
15
|
+
console.log('Notification tapped');
|
|
16
|
+
} }, "Some items require you to sign in to view them"));
|
|
13
17
|
};
|
|
14
18
|
var DangerTest = function () {
|
|
15
|
-
return (React.createElement(notification_1.Notification, { variant: 'danger',
|
|
19
|
+
return (React.createElement(notification_1.Notification, { variant: 'danger', action: "Retry", onPress: function () {
|
|
20
|
+
console.log('Notification tapped');
|
|
21
|
+
} }, "There was a problem, and your recent changes may not have saved"));
|
|
16
22
|
};
|
|
17
23
|
var WarningTest = function () {
|
|
18
|
-
return (React.createElement(notification_1.Notification, { variant: 'warning',
|
|
24
|
+
return (React.createElement(notification_1.Notification, { variant: 'warning', action: "X", onPress: function () {
|
|
25
|
+
console.log('Notification tapped');
|
|
26
|
+
} }, "Read Only"));
|
|
19
27
|
};
|
|
20
28
|
var notificationSections = [
|
|
21
29
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationTest.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Notification/NotificationTest.tsx"],"names":[],"mappings":";;;;AAAA,wDAA+B;AAC/B,oEAAmE;AACnE,gCAA4D;AAE5D,IAAM,WAAW,GAA4B;IAC3C,OAAO,CACL,oBAAC,2BAAY,
|
|
1
|
+
{"version":3,"file":"NotificationTest.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Notification/NotificationTest.tsx"],"names":[],"mappings":";;;;AAAA,wDAA+B;AAC/B,oEAAmE;AACnE,gCAA4D;AAE5D,IAAM,WAAW,GAA4B;IAC3C,OAAO,CACL,oBAAC,2BAAY,IACX,OAAO,EAAE,SAAS,EAClB,MAAM,EAAC,MAAM,EACb,OAAO,EAAE;YACP,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;QACrC,CAAC,oBAGY,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,IAAM,WAAW,GAA4B;IAC3C,OAAO,CACL,oBAAC,2BAAY,IACX,O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AAC1H,CAAC,CAAC;AAZW,QAAA,gBAAgB,oBAY3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/tester",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.70.0",
|
|
4
4
|
"description": "A test app to test FluentUI React Native Components during development",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Microsoft <fluentuinativeowners@microsoft.com>",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@fluentui-react-native/icon": "0.12.1",
|
|
48
48
|
"@fluentui-react-native/interactive-hooks": ">=0.16.3 <1.0.0",
|
|
49
49
|
"@fluentui-react-native/menu": "^1.0.2",
|
|
50
|
-
"@fluentui-react-native/notification": "0.
|
|
50
|
+
"@fluentui-react-native/notification": "0.3.0",
|
|
51
51
|
"@fluentui-react-native/stack": ">=0.6.29 <1.0.0",
|
|
52
52
|
"@fluentui-react-native/theme": ">=0.6.11 <1.0.0",
|
|
53
53
|
"@fluentui-react-native/theme-types": ">=0.17.0 <1.0.0",
|
|
@@ -4,7 +4,13 @@ import { Test, TestSection, PlatformStatus } from '../Test';
|
|
|
4
4
|
|
|
5
5
|
const PrimaryTest: React.FunctionComponent = () => {
|
|
6
6
|
return (
|
|
7
|
-
<Notification
|
|
7
|
+
<Notification
|
|
8
|
+
variant={'primary'}
|
|
9
|
+
action="Undo"
|
|
10
|
+
onPress={() => {
|
|
11
|
+
console.log('Notification tapped');
|
|
12
|
+
}}
|
|
13
|
+
>
|
|
8
14
|
Mail Archived
|
|
9
15
|
</Notification>
|
|
10
16
|
);
|
|
@@ -12,7 +18,13 @@ const PrimaryTest: React.FunctionComponent = () => {
|
|
|
12
18
|
|
|
13
19
|
const NeutralTest: React.FunctionComponent = () => {
|
|
14
20
|
return (
|
|
15
|
-
<Notification
|
|
21
|
+
<Notification
|
|
22
|
+
variant={'neutral'}
|
|
23
|
+
action="Sign in"
|
|
24
|
+
onPress={() => {
|
|
25
|
+
console.log('Notification tapped');
|
|
26
|
+
}}
|
|
27
|
+
>
|
|
16
28
|
Some items require you to sign in to view them
|
|
17
29
|
</Notification>
|
|
18
30
|
);
|
|
@@ -20,7 +32,13 @@ const NeutralTest: React.FunctionComponent = () => {
|
|
|
20
32
|
|
|
21
33
|
const DangerTest: React.FunctionComponent = () => {
|
|
22
34
|
return (
|
|
23
|
-
<Notification
|
|
35
|
+
<Notification
|
|
36
|
+
variant={'danger'}
|
|
37
|
+
action="Retry"
|
|
38
|
+
onPress={() => {
|
|
39
|
+
console.log('Notification tapped');
|
|
40
|
+
}}
|
|
41
|
+
>
|
|
24
42
|
There was a problem, and your recent changes may not have saved
|
|
25
43
|
</Notification>
|
|
26
44
|
);
|
|
@@ -28,7 +46,13 @@ const DangerTest: React.FunctionComponent = () => {
|
|
|
28
46
|
|
|
29
47
|
const WarningTest: React.FunctionComponent = () => {
|
|
30
48
|
return (
|
|
31
|
-
<Notification
|
|
49
|
+
<Notification
|
|
50
|
+
variant={'warning'}
|
|
51
|
+
action="X"
|
|
52
|
+
onPress={() => {
|
|
53
|
+
console.log('Notification tapped');
|
|
54
|
+
}}
|
|
55
|
+
>
|
|
32
56
|
Read Only
|
|
33
57
|
</Notification>
|
|
34
58
|
);
|