forked from migtools/lib-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(index): add warnings about moving package to
@migtools/lib-ui
(m…
- Loading branch information
Showing
10 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import * as React from 'react'; | ||
import { Alert, AlertActionLink } from '@patternfly/react-core'; | ||
import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing'; | ||
|
||
const navTo = (href: string) => window.top && (window.top.location.href = href); | ||
|
||
const PackageMovedAlert: React.FunctionComponent = () => ( | ||
<Alert | ||
variant="danger" | ||
title={<>IMPORTANT: This library has moved!</>} | ||
isInline | ||
className={spacing.mbLg} | ||
actionLinks={ | ||
<> | ||
<AlertActionLink onClick={() => navTo('https://www.npmjs.com/package/@migtools/lib-ui')}> | ||
View new package on npm | ||
</AlertActionLink> | ||
<AlertActionLink onClick={() => navTo('https://github.com/migtools/lib-ui')}> | ||
View new package on GitHub | ||
</AlertActionLink> | ||
<AlertActionLink onClick={() => navTo('https://migtools.github.io/lib-ui/')}> | ||
View new documentation | ||
</AlertActionLink> | ||
</> | ||
} | ||
> | ||
The <code>@konveyor/lib-ui</code> package is deprecated and has been moved to{' '} | ||
<a href="https://www.npmjs.com/package/@migtools/lib-ui"> | ||
<code>@migtools/lib-ui</code> | ||
</a> | ||
. You must switch to that package for future upgrades. The version documented here is the final | ||
release under the <code>@konveyor/lib-ui</code> name and is identical to the first release of{' '} | ||
<code>@migtools/lib-ui</code>.{' '} | ||
</Alert> | ||
); | ||
|
||
export default PackageMovedAlert; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export const packageMovedConsoleWarning = ` | ||
IMPORTANT: The @konveyor/lib-ui package is deprecated and has been moved to @migtools/lib-ui. You must switch to that package for future upgrades. | ||
The version you are using is the final release under the @konveyor/lib-ui name and is identical to the first release of @migtools/lib-ui. | ||
New package on npm: https://www.npmjs.com/package/@migtools/lib-ui | ||
New package on GitHub: https://github.com/migtools/lib-ui | ||
New documentation: https://migtools.github.io/lib-ui/ | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
import { packageMovedConsoleWarning } from '../../common/packageMovedConsoleWarning'; | ||
|
||
export * from './client'; | ||
export * from './client_factory'; | ||
export * from './resources/common'; | ||
export * from './resources/core'; | ||
|
||
console.warn(packageMovedConsoleWarning); |