Skip to content

Commit 2e72eb6

Browse files
authored
Migrate LinkV1 component to new package (#2439)
### Platforms Impacted - [ ] iOS - [ ] macOS - [ ] win32 (Office) - [ ] windows - [ ] android ### Description of changes Move LinkV1 code to existing link package Move legacy Link code into legacy folder Update index folder to have new exports. This will migrate the LinkV1 component to its main package and have it ready for release. ### Verification Opened tester to test Link component. ### Pull request checklist This PR has considered (when applicable): - [ ] Automated Tests - [ ] Documentation and examples - [ ] Keyboard Accessibility - [ ] Voiceover - [ ] Internationalization and Right-to-left Layouts
1 parent 25fb38a commit 2e72eb6

33 files changed

+677
-613
lines changed

apps/fluent-tester/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
"@fluentui-react-native/experimental-checkbox": "0.13.23",
5151
"@fluentui-react-native/experimental-expander": "0.5.7",
5252
"@fluentui-react-native/experimental-icon": ">=0.1.11 <1.0.0",
53-
"@fluentui-react-native/experimental-link": "^0.4.8",
5453
"@fluentui-react-native/experimental-menu-button": ">=0.6.12 <1.0.0",
5554
"@fluentui-react-native/experimental-native-date-picker": ">=0.7.4 <1.0.0",
5655
"@fluentui-react-native/experimental-radio-group": "^0.9.0",

apps/fluent-tester/src/TestComponents/LinkExperimental/E2ELinkTest.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react';
22
import { Alert } from 'react-native';
3-
import { Link } from '@fluentui-react-native/experimental-link';
3+
import { LinkV1 as Link } from '@fluentui/react-native';
44
import { Stack } from '@fluentui-react-native/stack';
55
import { stackStyle } from '../Common/styles';
66
import {

apps/fluent-tester/src/TestComponents/LinkExperimental/InlineLinksTest.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import * as React from 'react';
22
import { Alert } from 'react-native';
3-
import { TextV1 as Text } from '@fluentui/react-native';
3+
import { LinkV1 as Link, TextV1 as Text } from '@fluentui/react-native';
44
import { Stack } from '@fluentui-react-native/stack';
5-
import { Link } from '@fluentui-react-native/experimental-link';
65
import { stackStyle } from '../Common/styles';
76

87
export const InlineLinks: React.FunctionComponent = () => {

apps/fluent-tester/src/TestComponents/LinkExperimental/LinkTest.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react';
22
import { Alert, View, StyleSheet, Text, TextInput } from 'react-native';
3-
import { Link, LinkTokens } from '@fluentui-react-native/experimental-link';
3+
import { LinkV1 as Link, LinkTokens } from '@fluentui/react-native';
44
import { Stack } from '@fluentui-react-native/stack';
55
import { stackStyle, commonTestStyles as commonStyles } from '../Common/styles';
66
import { EXPERIMENTAL_LINK_TESTPAGE } from '../../../../E2E/src/LinkExperimental/consts';
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "minor",
3+
"comment": "Move v1 Link code into main link folder",
4+
"packageName": "@fluentui/react-native",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "Move v1 Link code into main link folder",
4+
"packageName": "@fluentui-react-native/experimental-link",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "minor",
3+
"comment": "Move v1 Link code into main link folder",
4+
"packageName": "@fluentui-react-native/link",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "Update package used in Link test",
4+
"packageName": "@fluentui-react-native/tester",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

packages/components/Link/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,19 @@
2828
"dependencies": {
2929
"@uifabricshared/foundation-compose": "^1.12.30",
3030
"@fluentui-react-native/adapters": ">=0.10.0 <1.0.0",
31+
"@fluentui-react-native/framework": ">=0.8.30 <1.0.0",
3132
"@fluentui-react-native/interactive-hooks": ">=0.22.6 <1.0.0",
3233
"@fluentui-react-native/text": ">=0.19.6 <1.0.0",
3334
"@fluentui-react-native/tokens": ">=0.20.2 <1.0.0",
35+
"@fluentui-react-native/use-styling": "^0.9.1",
3436
"@uifabricshared/foundation-composable": ">=0.11.1 <1.0.0",
35-
"@uifabricshared/foundation-settings": ">=0.12.1 <1.0.0"
37+
"@uifabricshared/foundation-settings": ">=0.12.1 <1.0.0",
38+
"tslib": "^2.3.1"
3639
},
3740
"devDependencies": {
3841
"@fluentui-react-native/eslint-config-rules": "^0.1.1",
3942
"@fluentui-react-native/scripts": "^0.1.1",
43+
"@fluentui-react-native/test-tools": ">=0.1.1 <1.0.0",
4044
"@types/react-native": "^0.68.0",
4145
"react": "17.0.2",
4246
"react-native": "^0.68.0"

0 commit comments

Comments
 (0)