Skip to content

Commit

Permalink
Remove @uifabric/legacy, move controls to OUFR (#9307)
Browse files Browse the repository at this point in the history
  • Loading branch information
JD Huntington authored May 31, 2019
1 parent 1dbb8a9 commit 1226e08
Show file tree
Hide file tree
Showing 126 changed files with 571 additions and 1,035 deletions.
1 change: 0 additions & 1 deletion apps/fabric-website-resources/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
"@uifabric/example-app-base": "^6.23.1",
"@uifabric/fluent-theme": "^0.16.10",
"@uifabric/icons": "^6.5.2",
"@uifabric/legacy": "^6.164.5",
"@uifabric/merge-styles": "^6.17.4",
"@uifabric/set-version": "^1.1.3",
"@uifabric/styling": "^6.47.6",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const AllComponentsStatus: IComponentStatusState = {
List: require<any>('office-ui-fabric-react/lib/components/List/List.checklist').ListStatus,
MessageBar: require<any>('office-ui-fabric-react/lib/components/MessageBar/MessageBar.checklist').MessageBarStatus,
Modal: require<any>('office-ui-fabric-react/lib/components/Modal/Modal.checklist').ModalStatus,
Nav: require<any>('@uifabric/legacy/lib/components/Nav/Nav.checklist').NavStatus,
Nav: require<any>('office-ui-fabric-react/lib/components/Nav/Nav.checklist').NavStatus,
Overlay: require<any>('office-ui-fabric-react/lib/components/Overlay/Overlay.checklist').OverlayStatus,
OverflowSet: require<any>('office-ui-fabric-react/lib/components/OverflowSet/OverflowSet.checklist').OverflowSetStatus,
Panel: require<any>('office-ui-fabric-react/lib/components/Panel/Panel.checklist').PanelStatus,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { CalendarPageProps } from '@uifabric/legacy/lib/components/Calendar/Calendar.doc';
import { CalendarPageProps } from 'office-ui-fabric-react/lib/components/Calendar/Calendar.doc';
import { DemoPage } from '../DemoPage';

export const CalendarPage = (props: { isHeaderVisible: boolean }) => (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';

import { DemoPage } from '../DemoPage';
import { DatePickerPageProps } from '@uifabric/legacy/lib/components/DatePicker/DatePicker.doc';
import { DatePickerPageProps } from 'office-ui-fabric-react/lib/components/DatePicker/DatePicker.doc';

export const DatePickerPage = (props: { isHeaderVisible: boolean }) => (
<DemoPage
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import { DemoPage } from '../DemoPage';

import { NavPageProps } from '@uifabric/legacy/lib/components/Nav/Nav.doc';
import { NavPageProps } from 'office-ui-fabric-react/lib/components/Nav/Nav.doc';

export const NavPage = (props: { isHeaderVisible: boolean }) => (
<DemoPage jsonDocs={require('@uifabric/api-docs/lib/pages/office-ui-fabric-react/Nav.page.json')} {...{ ...NavPageProps, ...props }} />
Expand Down
3 changes: 0 additions & 3 deletions apps/fabric-website-resources/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ module.exports = [

resolve: {
alias: {
'@uifabric/legacy$': path.resolve(__dirname, '../../packages/legacy/lib'),
'@uifabric/legacy/src': path.resolve(__dirname, '../../packages/legacy/src'),
'@uifabric/legacy/lib': path.resolve(__dirname, '../../packages/legacy/lib'),
'office-ui-fabric-react$': path.resolve(__dirname, '../../packages/office-ui-fabric-react/lib'),
'office-ui-fabric-react/src': path.resolve(__dirname, '../../packages/office-ui-fabric-react/src'),
'office-ui-fabric-react/lib': path.resolve(__dirname, '../../packages/office-ui-fabric-react/lib'),
Expand Down
3 changes: 0 additions & 3 deletions apps/fabric-website-resources/webpack.serve.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ module.exports = resources.createServeConfig({

resolve: {
alias: {
'@uifabric/legacy$': path.resolve(__dirname, '../../packages/legacy/src'),
'@uifabric/legacy/src': path.resolve(__dirname, '../../packages/legacy/src'),
'@uifabric/legacy/lib': path.resolve(__dirname, '../../packages/legacy/src'),
'office-ui-fabric-react$': path.resolve(__dirname, '../../packages/office-ui-fabric-react/src'),
'office-ui-fabric-react/src': path.resolve(__dirname, '../../packages/office-ui-fabric-react/src'),
'office-ui-fabric-react/lib': path.resolve(__dirname, '../../packages/office-ui-fabric-react/src'),
Expand Down
1 change: 0 additions & 1 deletion apps/fabric-website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"@uifabric/file-type-icons": "^6.4.10",
"@uifabric/fluent-theme": "^0.16.10",
"@uifabric/icons": "^6.5.2",
"@uifabric/legacy": "^6.164.5",
"@uifabric/set-version": "^1.1.3",
"@uifabric/theme-samples": "^0.1.6",
"react-app-polyfill": "~1.0.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TFabricPlatformPageProps } from '../../../interfaces/Platforms';
import { CalendarPageProps as ExternalProps } from '@uifabric/legacy/lib/components/Calendar/Calendar.doc';
import { CalendarPageProps as ExternalProps } from 'office-ui-fabric-react/lib/components/Calendar/Calendar.doc';

const related = require('!raw-loader!@uifabric/fabric-website/src/pages/Controls/CalendarPage/docs/CalendarRelated.md') as string;
const componentUrl = 'https://github.com/OfficeDev/office-ui-fabric-react/tree/master/apps/fabric-website/src/pages/Controls/CalendarPage';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TFabricPlatformPageProps } from '../../../interfaces/Platforms';
import { DatePickerPageProps as ExternalProps } from '@uifabric/legacy/lib/components/DatePicker/DatePicker.doc';
import { DatePickerPageProps as ExternalProps } from 'office-ui-fabric-react/lib/components/DatePicker/DatePicker.doc';

const related = require('!raw-loader!@uifabric/fabric-website/src/pages/Controls/DatePickerPage/docs/DatePickerRelated.md') as string;
const componentUrl =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TFabricPlatformPageProps } from '../../../interfaces/Platforms';
import { NavPageProps as ExternalProps } from '@uifabric/legacy/lib/components/Nav/Nav.doc';
import { NavPageProps as ExternalProps } from 'office-ui-fabric-react/lib/components/Nav/Nav.doc';

const related = require('!raw-loader!@uifabric/fabric-website/src/pages/Controls/NavPage/docs/NavRelated.md') as string;

Expand Down
3 changes: 0 additions & 3 deletions apps/fabric-website/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ module.exports = function(env) {
'office-ui-fabric-react$': path.join(__dirname, 'node_modules/office-ui-fabric-react/lib'),
'office-ui-fabric-react/src': path.join(__dirname, 'node_modules/office-ui-fabric-react/src'),
'office-ui-fabric-react/lib': path.join(__dirname, 'node_modules/office-ui-fabric-react/lib'),
'@uifabric/legacy$': path.join(__dirname, 'node_modules/@uifabric/legacy/lib'),
'@uifabric/legacy/src': path.join(__dirname, 'node_modules/@uifabric/legacy/src'),
'@uifabric/legacy/lib': path.join(__dirname, 'node_modules/@uifabric/legacy/lib'),
'@uifabric/api-docs/lib': path.join(__dirname, 'node_modules/@uifabric/api-docs/lib')
}
}
Expand Down
3 changes: 0 additions & 3 deletions apps/fabric-website/webpack.serve.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ module.exports = resources.createServeConfig({

resolve: {
alias: {
'@uifabric/legacy$': path.resolve(__dirname, '../../packages/legacy/src'),
'@uifabric/legacy/lib': path.resolve(__dirname, '../../packages/legacy/src'),
'@uifabric/legacy/src': path.resolve(__dirname, '../../packages/legacy/src'),
'@uifabric/fabric-website/src': path.join(__dirname, 'src'),
'@uifabric/fabric-website/lib': path.join(__dirname, 'lib'),
'@uifabric/example-app-base$': path.resolve(__dirname, '../../packages/example-app-base/src'),
Expand Down
1 change: 0 additions & 1 deletion apps/ssr-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"@types/webpack-env": "1.13.9",
"@microsoft/load-themed-styles": "^1.7.13",
"@uifabric/fabric-website-resources": "^6.18.3",
"@uifabric/legacy": "^6.164.5",
"@uifabric/prettier-rules": "^1.0.2",
"mocha": "^3.3.0",
"office-ui-fabric-react": "^6.187.1",
Expand Down
3 changes: 0 additions & 3 deletions apps/ssr-tests/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ module.exports = resources.createConfig('ssr-tests', false, {
'office-ui-fabric-react$': path.join(__dirname, 'node_modules/office-ui-fabric-react/lib'),
'@uifabric/fabric-website-resources/src': path.join(__dirname, 'node_modules/@uifabric/fabric-website-resources/src'),
'@uifabric/fabric-website-resources/lib': path.join(__dirname, 'node_modules/@uifabric/fabric-website-resources/lib'),
'@uifabric/legacy$': path.join(__dirname, 'node_modules/@uifabric/legacy/lib'),
'@uifabric/legacy/src': path.join(__dirname, 'node_modules/@uifabric/legacy/src'),
'@uifabric/legacy/lib': path.join(__dirname, 'node_modules/@uifabric/legacy/lib'),
'@uifabric/styling/lib': path.join(__dirname, '../../packages/styling/lib'),
'Props.ts.js': 'Props'
}
Expand Down
1 change: 0 additions & 1 deletion apps/vr-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"dependencies": {
"@uifabric/experiments": "^6.78.2",
"@uifabric/set-version": "^1.1.3",
"@uifabric/legacy": "^6.164.5",
"@uifabric/react-cards": "^0.3.1",
"office-ui-fabric-react": "^6.187.1",
"react": ">=16.8.0 <17.0.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/vr-tests/src/stories/DatePicker.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Screener from 'screener-storybook/src/screener';
import { storiesOf } from '@storybook/react';
import { FabricDecoratorFixedWidth } from '../utilities';
import { Fabric } from 'office-ui-fabric-react';
import { DatePicker } from '@uifabric/legacy';
import { DatePicker } from 'office-ui-fabric-react';

const date = new Date(2010, 1, 12);
storiesOf('DatePicker', module)
Expand Down
2 changes: 1 addition & 1 deletion apps/vr-tests/src/stories/Nav.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as React from 'react';
import Screener from 'screener-storybook/src/screener';
import { storiesOf } from '@storybook/react';
import { FabricDecorator } from '../utilities';
import { Nav, INavLink } from '@uifabric/legacy/lib/Nav';
import { Nav, INavLink } from 'office-ui-fabric-react/lib/Nav';

const links: INavLink[] = [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "@uifabric/api-docs",
"comment": "Remove reference to legacy package",
"type": "patch"
}
],
"packageName": "@uifabric/api-docs",
"email": "[email protected]"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "@uifabric/azure-themes",
"comment": "Nav, Calendar, and DatePicker move into office-ui-fabric-react",
"type": "patch"
}
],
"packageName": "@uifabric/azure-themes",
"email": "[email protected]"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "@uifabric/example-app-base",
"comment": "Nav, Calendar, and DatePicker move into office-ui-fabric-react",
"type": "patch"
}
],
"packageName": "@uifabric/example-app-base",
"email": "[email protected]"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "@uifabric/fabric-website-resources",
"comment": "Nav, Calendar, and DatePicker move into office-ui-fabric-react",
"type": "patch"
}
],
"packageName": "@uifabric/fabric-website-resources",
"email": "[email protected]"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "@uifabric/fabric-website",
"comment": "Nav, Calendar, and DatePicker move into office-ui-fabric-react",
"type": "patch"
}
],
"packageName": "@uifabric/fabric-website",
"email": "[email protected]"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "@uifabric/fluent-theme",
"comment": "Nav, Calendar, and DatePicker move into office-ui-fabric-react",
"type": "patch"
}
],
"packageName": "@uifabric/fluent-theme",
"email": "[email protected]"
}
11 changes: 0 additions & 11 deletions common/changes/@uifabric/legacy/calendar_2019-05-29-18-08.json

This file was deleted.

11 changes: 0 additions & 11 deletions common/changes/@uifabric/legacy/calendar_2019-05-29-18-11.json

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions common/changes/@uifabric/legacy/nav-props_2019-05-29-18-07.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "@uifabric/migration",
"comment": "Remove migration for nav to legacy",
"type": "patch"
}
],
"packageName": "@uifabric/migration",
"email": "[email protected]"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "office-ui-fabric-react",
"comment": "Nav, Calendar, and DatePicker move into office-ui-fabric-react",
"type": "patch"
}
],
"packageName": "office-ui-fabric-react",
"email": "[email protected]"
}
Loading

0 comments on commit 1226e08

Please sign in to comment.