Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@storybook/addon-links

Package Overview
Dependencies
Maintainers
9
Versions
1943
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/addon-links - npm Package Compare versions

Comparing version 3.3.0-alpha.2 to 3.3.0-alpha.3

dist/react/components/link.js

26

dist/index.js

@@ -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;
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc