@storybook/addon-links
Advanced tools
Comparing version 3.3.0-alpha.2 to 3.3.0-alpha.3
@@ -30,17 +30,17 @@ 'use strict'; | ||
}); | ||
exports.LinkTo = LinkTo; | ||
var ADDON_ID = exports.ADDON_ID = 'storybook/links'; | ||
var EVENT_ID = exports.EVENT_ID = ADDON_ID + '/link-event'; | ||
var REQUEST_HREF_EVENT_ID = exports.REQUEST_HREF_EVENT_ID = ADDON_ID + '/request-href-event'; | ||
var RECEIVE_HREF_EVENT_ID = exports.RECEIVE_HREF_EVENT_ID = ADDON_ID + '/receive-href-event'; | ||
var _link = require('./components/link'); | ||
var hasWarned = false; | ||
Object.defineProperty(exports, 'LinkTo', { | ||
enumerable: true, | ||
get: function get() { | ||
return _interopRequireDefault(_link).default; | ||
function LinkTo() { | ||
if (!hasWarned) { | ||
// eslint-disable-next-line no-console | ||
console.error('\nLinkTo has moved to addon-links/react:\n\nimport LinkTo from \'@storybook/addon-links/react\';\n '); | ||
hasWarned = true; | ||
} | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var ADDON_ID = exports.ADDON_ID = 'storybook/links'; | ||
var EVENT_ID = exports.EVENT_ID = ADDON_ID + '/link-event'; | ||
var REQUEST_HREF_EVENT_ID = exports.REQUEST_HREF_EVENT_ID = ADDON_ID + '/request-href-event'; | ||
var RECEIVE_HREF_EVENT_ID = exports.RECEIVE_HREF_EVENT_ID = ADDON_ID + '/receive-href-event'; | ||
return null; | ||
} |
{ | ||
"name": "@storybook/addon-links", | ||
"version": "3.3.0-alpha.2", | ||
"version": "3.3.0-alpha.3", | ||
"description": "Story Links addon for storybook", | ||
@@ -24,4 +24,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@storybook/addons": "^3.3.0-alpha.2", | ||
"@storybook/components": "^3.3.0-alpha.2", | ||
"@storybook/addons": "^3.3.0-alpha.3", | ||
"@storybook/components": "^3.3.0-alpha.3", | ||
"global": "^4.3.2", | ||
@@ -28,0 +28,0 @@ "prop-types": "^15.5.10" |
# Story Links Addon | ||
The Storybook Links addon can be used to create links between stories in [Storybook](https://storybook.js.org). | ||
[![Build Status on CircleCI](https://circleci.com/gh/storybooks/storybook.svg?style=shield)](https://circleci.com/gh/storybooks/storybook) | ||
@@ -12,6 +10,10 @@ [![CodeFactor](https://www.codefactor.io/repository/github/storybooks/storybook/badge)](https://www.codefactor.io/repository/github/storybooks/storybook) | ||
* * * | ||
The Storybook Links addon can be used to create links that navigate between stories in [Storybook](https://storybook.js.org). | ||
This addon works with Storybook for: | ||
[React](https://github.com/storybooks/storybook/tree/master/app/react) and | ||
[React Native](https://github.com/storybooks/storybook/tree/master/app/react-native). | ||
[Vue](https://github.com/storybooks/storybook/tree/master/app/vue) and | ||
- [React](https://github.com/storybooks/storybook/tree/master/app/react) | ||
- [React Native](https://github.com/storybooks/storybook/tree/master/app/react-native) | ||
- [Vue](https://github.com/storybooks/storybook/tree/master/app/vue) | ||
@@ -18,0 +20,0 @@ ## Getting Started |
@@ -8,2 +8,16 @@ export const ADDON_ID = 'storybook/links'; | ||
export { linkTo, hrefTo } from './preview'; | ||
export { default as LinkTo } from './components/link'; | ||
let hasWarned = false; | ||
export function LinkTo() { | ||
if (!hasWarned) { | ||
// eslint-disable-next-line no-console | ||
console.error(` | ||
LinkTo has moved to addon-links/react: | ||
import LinkTo from '@storybook/addon-links/react'; | ||
`); | ||
hasWarned = true; | ||
} | ||
return null; | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
22934
21
438
132
0