@fluentui-react-native/tester 0.150.5 → 0.151.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 CHANGED
@@ -2,7 +2,28 @@
2
2
  "name": "@fluentui-react-native/tester",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 30 Jun 2023 21:36:27 GMT",
5
+ "date": "Mon, 03 Jul 2023 06:39:27 GMT",
6
+ "tag": "@fluentui-react-native/tester_v0.151.0",
7
+ "version": "0.151.0",
8
+ "comments": {
9
+ "minor": [
10
+ {
11
+ "author": "ayushsinghs@yahoo.in",
12
+ "package": "@fluentui-react-native/tester",
13
+ "commit": "6c02816577791c5d071004a225afb91a2359a527",
14
+ "comment": "Fix inline link keyboard access"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui-react-native/tester",
19
+ "comment": "Bump @fluentui/react-native to v0.37.8",
20
+ "commit": "6c02816577791c5d071004a225afb91a2359a527"
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ {
26
+ "date": "Fri, 30 Jun 2023 21:37:05 GMT",
6
27
  "tag": "@fluentui-react-native/tester_v0.150.5",
7
28
  "version": "0.150.5",
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 Fri, 30 Jun 2023 21:36:27 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 03 Jul 2023 06:39:27 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.151.0
8
+
9
+ Mon, 03 Jul 2023 06:39:27 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - Fix inline link keyboard access (ayushsinghs@yahoo.in)
14
+ - Bump @fluentui/react-native to v0.37.8
15
+
7
16
  ## 0.150.5
8
17
 
9
- Fri, 30 Jun 2023 21:36:27 GMT
18
+ Fri, 30 Jun 2023 21:37:05 GMT
10
19
 
11
20
  ### Patches
12
21
 
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ export declare const InlineLinks: React.FunctionComponent;
3
+ //# sourceMappingURL=InlineLinksTest.android.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InlineLinksTest.android.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/LinkV1/InlineLinksTest.android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,iBA+B/B,CAAC"}
@@ -0,0 +1,31 @@
1
+ import * as React from 'react';
2
+ import { View, Alert, StyleSheet } from 'react-native';
3
+ import { LinkV1 as Link, TextV1 as Text } from '@fluentui/react-native';
4
+ import { Stack } from '@fluentui-react-native/stack';
5
+ import { stackStyle } from '../Common/styles';
6
+ export var InlineLinks = function () {
7
+ var doPress = React.useCallback(function () { return Alert.alert('Alert.', 'You have been alerted.'); }, []);
8
+ var doA11yTap = React.useCallback(function () { return Alert.alert('Alert.', 'You have invoked onA11yTap.'); }, []);
9
+ return (
10
+ // RN Core has a bug where Text in Text is not keyboard accessible. Issues - #32004, #35194.
11
+ // This is a workaround for the issue. Once those issues are resolved, InlineLinksTest.android.tsx can be removed.
12
+ React.createElement(Stack, { style: stackStyle },
13
+ React.createElement(View, { style: styles.row },
14
+ React.createElement(Text, null, "Click "),
15
+ React.createElement(Link, { inline: true, onPress: doPress, onAccessibilityTap: doA11yTap }, "this link"),
16
+ React.createElement(Text, null, " to alert me.")),
17
+ React.createElement(View, { style: styles.row },
18
+ React.createElement(Text, null, "This "),
19
+ React.createElement(Link, { inline: true, onPress: doPress, disabled: true, focusable: true }, "link"),
20
+ React.createElement(Text, null, " is disabled but focusable.")),
21
+ React.createElement(View, { style: styles.row },
22
+ React.createElement(Text, null, "Follow this "),
23
+ React.createElement(Link, { inline: true, url: "https://www.bing.com/" }, "link"),
24
+ React.createElement(Text, null, " to navigate."))));
25
+ };
26
+ var styles = StyleSheet.create({
27
+ row: {
28
+ flexDirection: 'row',
29
+ },
30
+ });
31
+ //# sourceMappingURL=InlineLinksTest.android.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InlineLinksTest.android.js","sourceRoot":"","sources":["../../../../../src/TestComponents/LinkV1/InlineLinksTest.android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEvD,OAAO,EAAE,MAAM,IAAI,IAAI,EAAE,MAAM,IAAI,IAAI,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAErD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,MAAM,CAAC,IAAM,WAAW,GAA4B;IAClD,IAAM,OAAO,GAAG,KAAK,CAAC,WAAW,CAAC,cAAM,OAAA,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,wBAAwB,CAAC,EAA/C,CAA+C,EAAE,EAAE,CAAC,CAAC;IAC7F,IAAM,SAAS,GAAG,KAAK,CAAC,WAAW,CAAC,cAAM,OAAA,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,6BAA6B,CAAC,EAApD,CAAoD,EAAE,EAAE,CAAC,CAAC;IAEpG,OAAO;IACL,4FAA4F;IAC5F,kHAAkH;IAClH,oBAAC,KAAK,IAAC,KAAK,EAAE,UAAU;QACtB,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,GAAG;YACrB,oBAAC,IAAI,iBAAc;YACnB,oBAAC,IAAI,IAAC,MAAM,QAAC,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,SAAS,gBAErD;YACP,oBAAC,IAAI,wBAAqB,CACrB;QACP,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,GAAG;YACrB,oBAAC,IAAI,gBAAa;YAClB,oBAAC,IAAI,IAAC,MAAM,QAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,QAAC,SAAS,iBAE1C;YACP,oBAAC,IAAI,sCAAmC,CACnC;QACP,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,GAAG;YACrB,oBAAC,IAAI,uBAAoB;YACzB,oBAAC,IAAI,IAAC,MAAM,QAAC,GAAG,EAAC,uBAAuB,WAEjC;YACP,oBAAC,IAAI,wBAAqB,CACrB,CACD,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,IAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,GAAG,EAAE;QACH,aAAa,EAAE,KAAK;KACrB;CACF,CAAC,CAAC"}
@@ -5,12 +5,12 @@ import { Stack } from '@fluentui-react-native/stack';
5
5
  import { stackStyle } from '../Common/styles';
6
6
  export var InlineLinks = function () {
7
7
  var doPress = React.useCallback(function () { return Alert.alert('Alert.', 'You have been alerted.'); }, []);
8
- var doAllyTap = React.useCallback(function () { return Alert.alert('Alert.', 'You have invoked onAllyTap.'); }, []);
8
+ var doA11yTap = React.useCallback(function () { return Alert.alert('Alert.', 'You have invoked onA11yTap.'); }, []);
9
9
  return (React.createElement(Stack, { style: stackStyle },
10
10
  React.createElement(Text, null,
11
11
  "Click",
12
12
  ' ',
13
- React.createElement(Link, { inline: true, onPress: doPress, onAccessibilityTap: doAllyTap }, "this link"),
13
+ React.createElement(Link, { inline: true, onPress: doPress, onAccessibilityTap: doA11yTap }, "this link"),
14
14
  ' ',
15
15
  "to alert me."),
16
16
  React.createElement(Text, null,
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ export declare const InlineLinks: React.FunctionComponent;
3
+ //# sourceMappingURL=InlineLinksTest.android.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InlineLinksTest.android.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/LinkV1/InlineLinksTest.android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,iBA+B/B,CAAC"}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InlineLinks = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var React = tslib_1.__importStar(require("react"));
6
+ var react_native_1 = require("react-native");
7
+ var react_native_2 = require("@fluentui/react-native");
8
+ var stack_1 = require("@fluentui-react-native/stack");
9
+ var styles_1 = require("../Common/styles");
10
+ var InlineLinks = function () {
11
+ var doPress = React.useCallback(function () { return react_native_1.Alert.alert('Alert.', 'You have been alerted.'); }, []);
12
+ var doA11yTap = React.useCallback(function () { return react_native_1.Alert.alert('Alert.', 'You have invoked onA11yTap.'); }, []);
13
+ return (
14
+ // RN Core has a bug where Text in Text is not keyboard accessible. Issues - #32004, #35194.
15
+ // This is a workaround for the issue. Once those issues are resolved, InlineLinksTest.android.tsx can be removed.
16
+ React.createElement(stack_1.Stack, { style: styles_1.stackStyle },
17
+ React.createElement(react_native_1.View, { style: styles.row },
18
+ React.createElement(react_native_2.TextV1, null, "Click "),
19
+ React.createElement(react_native_2.LinkV1, { inline: true, onPress: doPress, onAccessibilityTap: doA11yTap }, "this link"),
20
+ React.createElement(react_native_2.TextV1, null, " to alert me.")),
21
+ React.createElement(react_native_1.View, { style: styles.row },
22
+ React.createElement(react_native_2.TextV1, null, "This "),
23
+ React.createElement(react_native_2.LinkV1, { inline: true, onPress: doPress, disabled: true, focusable: true }, "link"),
24
+ React.createElement(react_native_2.TextV1, null, " is disabled but focusable.")),
25
+ React.createElement(react_native_1.View, { style: styles.row },
26
+ React.createElement(react_native_2.TextV1, null, "Follow this "),
27
+ React.createElement(react_native_2.LinkV1, { inline: true, url: "https://www.bing.com/" }, "link"),
28
+ React.createElement(react_native_2.TextV1, null, " to navigate."))));
29
+ };
30
+ exports.InlineLinks = InlineLinks;
31
+ var styles = react_native_1.StyleSheet.create({
32
+ row: {
33
+ flexDirection: 'row',
34
+ },
35
+ });
36
+ //# sourceMappingURL=InlineLinksTest.android.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InlineLinksTest.android.js","sourceRoot":"","sources":["../../../../../src/TestComponents/LinkV1/InlineLinksTest.android.tsx"],"names":[],"mappings":";;;;AAAA,mDAA+B;AAC/B,6CAAuD;AAEvD,uDAAwE;AACxE,sDAAqD;AAErD,2CAA8C;AAEvC,IAAM,WAAW,GAA4B;IAClD,IAAM,OAAO,GAAG,KAAK,CAAC,WAAW,CAAC,cAAM,OAAA,oBAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,wBAAwB,CAAC,EAA/C,CAA+C,EAAE,EAAE,CAAC,CAAC;IAC7F,IAAM,SAAS,GAAG,KAAK,CAAC,WAAW,CAAC,cAAM,OAAA,oBAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,6BAA6B,CAAC,EAApD,CAAoD,EAAE,EAAE,CAAC,CAAC;IAEpG,OAAO;IACL,4FAA4F;IAC5F,kHAAkH;IAClH,oBAAC,aAAK,IAAC,KAAK,EAAE,mBAAU;QACtB,oBAAC,mBAAI,IAAC,KAAK,EAAE,MAAM,CAAC,GAAG;YACrB,oBAAC,qBAAI,iBAAc;YACnB,oBAAC,qBAAI,IAAC,MAAM,QAAC,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,SAAS,gBAErD;YACP,oBAAC,qBAAI,wBAAqB,CACrB;QACP,oBAAC,mBAAI,IAAC,KAAK,EAAE,MAAM,CAAC,GAAG;YACrB,oBAAC,qBAAI,gBAAa;YAClB,oBAAC,qBAAI,IAAC,MAAM,QAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,QAAC,SAAS,iBAE1C;YACP,oBAAC,qBAAI,sCAAmC,CACnC;QACP,oBAAC,mBAAI,IAAC,KAAK,EAAE,MAAM,CAAC,GAAG;YACrB,oBAAC,qBAAI,uBAAoB;YACzB,oBAAC,qBAAI,IAAC,MAAM,QAAC,GAAG,EAAC,uBAAuB,WAEjC;YACP,oBAAC,qBAAI,wBAAqB,CACrB,CACD,CACT,CAAC;AACJ,CAAC,CAAC;AA/BW,QAAA,WAAW,eA+BtB;AAEF,IAAM,MAAM,GAAG,yBAAU,CAAC,MAAM,CAAC;IAC/B,GAAG,EAAE;QACH,aAAa,EAAE,KAAK;KACrB;CACF,CAAC,CAAC"}
@@ -9,12 +9,12 @@ var stack_1 = require("@fluentui-react-native/stack");
9
9
  var styles_1 = require("../Common/styles");
10
10
  var InlineLinks = function () {
11
11
  var doPress = React.useCallback(function () { return react_native_1.Alert.alert('Alert.', 'You have been alerted.'); }, []);
12
- var doAllyTap = React.useCallback(function () { return react_native_1.Alert.alert('Alert.', 'You have invoked onAllyTap.'); }, []);
12
+ var doA11yTap = React.useCallback(function () { return react_native_1.Alert.alert('Alert.', 'You have invoked onA11yTap.'); }, []);
13
13
  return (React.createElement(stack_1.Stack, { style: styles_1.stackStyle },
14
14
  React.createElement(react_native_2.TextV1, null,
15
15
  "Click",
16
16
  ' ',
17
- React.createElement(react_native_2.LinkV1, { inline: true, onPress: doPress, onAccessibilityTap: doAllyTap }, "this link"),
17
+ React.createElement(react_native_2.LinkV1, { inline: true, onPress: doPress, onAccessibilityTap: doA11yTap }, "this link"),
18
18
  ' ',
19
19
  "to alert me."),
20
20
  React.createElement(react_native_2.TextV1, null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/tester",
3
- "version": "0.150.5",
3
+ "version": "0.151.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>",
@@ -74,7 +74,7 @@
74
74
  "@fluentui-react-native/themed-stylesheet": "^1.5.1",
75
75
  "@fluentui-react-native/theming-utils": ">=0.24.0 <1.0.0",
76
76
  "@fluentui-react-native/win32-theme": ">=0.26.1 <1.0.0",
77
- "@fluentui/react-native": ">=0.37.7 <1.0.0",
77
+ "@fluentui/react-native": ">=0.37.8 <1.0.0",
78
78
  "@fortawesome/fontawesome-svg-core": "^6.2.0",
79
79
  "@fortawesome/free-solid-svg-icons": "^6.2.0",
80
80
  "@fortawesome/react-native-fontawesome": "^0.3.0",
@@ -0,0 +1,46 @@
1
+ import * as React from 'react';
2
+ import { View, Alert, StyleSheet } from 'react-native';
3
+
4
+ import { LinkV1 as Link, TextV1 as Text } from '@fluentui/react-native';
5
+ import { Stack } from '@fluentui-react-native/stack';
6
+
7
+ import { stackStyle } from '../Common/styles';
8
+
9
+ export const InlineLinks: React.FunctionComponent = () => {
10
+ const doPress = React.useCallback(() => Alert.alert('Alert.', 'You have been alerted.'), []);
11
+ const doA11yTap = React.useCallback(() => Alert.alert('Alert.', 'You have invoked onA11yTap.'), []);
12
+
13
+ return (
14
+ // RN Core has a bug where Text in Text is not keyboard accessible. Issues - #32004, #35194.
15
+ // This is a workaround for the issue. Once those issues are resolved, InlineLinksTest.android.tsx can be removed.
16
+ <Stack style={stackStyle}>
17
+ <View style={styles.row}>
18
+ <Text>Click </Text>
19
+ <Link inline onPress={doPress} onAccessibilityTap={doA11yTap}>
20
+ this link
21
+ </Link>
22
+ <Text> to alert me.</Text>
23
+ </View>
24
+ <View style={styles.row}>
25
+ <Text>This </Text>
26
+ <Link inline onPress={doPress} disabled focusable>
27
+ link
28
+ </Link>
29
+ <Text> is disabled but focusable.</Text>
30
+ </View>
31
+ <View style={styles.row}>
32
+ <Text>Follow this </Text>
33
+ <Link inline url="https://www.bing.com/">
34
+ link
35
+ </Link>
36
+ <Text> to navigate.</Text>
37
+ </View>
38
+ </Stack>
39
+ );
40
+ };
41
+
42
+ const styles = StyleSheet.create({
43
+ row: {
44
+ flexDirection: 'row',
45
+ },
46
+ });
@@ -8,13 +8,13 @@ import { stackStyle } from '../Common/styles';
8
8
 
9
9
  export const InlineLinks: React.FunctionComponent = () => {
10
10
  const doPress = React.useCallback(() => Alert.alert('Alert.', 'You have been alerted.'), []);
11
- const doAllyTap = React.useCallback(() => Alert.alert('Alert.', 'You have invoked onAllyTap.'), []);
11
+ const doA11yTap = React.useCallback(() => Alert.alert('Alert.', 'You have invoked onA11yTap.'), []);
12
12
 
13
13
  return (
14
14
  <Stack style={stackStyle}>
15
15
  <Text>
16
16
  Click{' '}
17
- <Link inline onPress={doPress} onAccessibilityTap={doAllyTap}>
17
+ <Link inline onPress={doPress} onAccessibilityTap={doA11yTap}>
18
18
  this link
19
19
  </Link>{' '}
20
20
  to alert me.