Socket
Socket
Sign inDemoInstall

@storybook/addon-info

Package Overview
Dependencies
9
Maintainers
11
Versions
495
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.3.0-alpha.6 to 3.3.0-rc.0

src/__snapshots__/index.test.js.snap

6

dist/components/markdown/index.js

@@ -86,2 +86,8 @@ 'use strict';

}
});
Object.defineProperty(exports, 'UL', {
enumerable: true,
get: function get() {
return _text.UL;
}
});

6

package.json
{
"name": "@storybook/addon-info",
"version": "3.3.0-alpha.6",
"version": "3.3.0-rc.0",
"description": "A Storybook addon to show additional information for your stories.",

@@ -17,4 +17,4 @@ "license": "MIT",

"dependencies": {
"@storybook/client-logger": "^3.3.0-alpha.6",
"@storybook/components": "^3.3.0-alpha.6",
"@storybook/client-logger": "^3.3.0-rc.0",
"@storybook/components": "^3.3.0-rc.0",
"babel-runtime": "^6.26.0",

@@ -21,0 +21,0 @@ "global": "^4.3.2",

@@ -7,3 +7,3 @@ # Storybook Info Addon

[![BCH compliance](https://bettercodehub.com/edge/badge/storybooks/storybook)](https://bettercodehub.com/results/storybooks/storybook) [![codecov](https://codecov.io/gh/storybooks/storybook/branch/master/graph/badge.svg)](https://codecov.io/gh/storybooks/storybook)
[![Storybook Slack](https://now-examples-slackin-nqnzoygycp.now.sh/badge.svg)](https://now-examples-slackin-nqnzoygycp.now.sh/)
[![Storybook Slack](https://now-examples-slackin-rrirkqohko.now.sh/badge.svg)](https://now-examples-slackin-rrirkqohko.now.sh/)
[![Backers on Open Collective](https://opencollective.com/storybook/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/storybook/sponsors/badge.svg)](#sponsors)

@@ -10,0 +10,0 @@

export { H1, H2, H3, H4, H5, H6 } from './htags';
export { Code, Pre } from './code';
export { P, Small, A, LI } from './text';
export { P, Small, A, LI, UL } from './text';

@@ -1,5 +0,4 @@

/* global document */
import React from 'react';
import { mount } from 'enzyme';
import React from 'react';
import ReactDOM from 'react-dom';
import AddonInfo, { withInfo, setDefaults } from './';

@@ -10,15 +9,15 @@

<div>
<h1>{func.toString()}</h1>
<h2>{obj.toString()}</h2>
<h3>{array}</h3>
<h4>{number}</h4>
<h5>{string}</h5>
<h6>{bool}</h6>
<p>{empty}</p>
<h1>{String(func)}</h1>
<h2>{String(obj)}</h2>
<h3>{String(array)}</h3>
<h4>{String(number)}</h4>
<h5>{String(string)}</h5>
<h6>{String(bool)}</h6>
<p>{String(empty)}</p>
<a href="#">test</a>
<code>storiesOf</code>
<ui>
<ul>
<li>1</li>
<li>2</li>
</ui>
</ul>
</div>);

@@ -30,2 +29,6 @@ /* eslint-enable */

const testMarkdown = `# Test story
## with markdown info
containing **bold**, *cursive* text, \`code\` and [a link](https://github.com)`;
describe('addon Info', () => {

@@ -50,11 +53,9 @@ const story = context => (

it('should render <Info /> and markdown', () => {
const Info = withInfo(
'# Test story \n## with markdown info \ncontaing **bold**, *cursive* text, `code` and [a link](https://github.com)'
)(story);
const Info = withInfo(testMarkdown)(story);
ReactDOM.render(<Info />, document.createElement('div'));
expect(mount(<Info />)).toMatchSnapshot();
});
it('should render with text options', () => {
const Info = withInfo({ text: 'some text here' })(story);
ReactDOM.render(<Info />, document.createElement('div'));
mount(<Info />);
});

@@ -64,3 +65,3 @@ it('should render with missed info', () => {

const Info = withInfo()(story);
ReactDOM.render(<Info />, document.createElement('div'));
mount(<Info />);
});

@@ -67,0 +68,0 @@ it('should show deprecation warning', () => {

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc