Socket
Socket
Sign inDemoInstall

@storybook/addons

Package Overview
Dependencies
Maintainers
10
Versions
1495
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/addons - npm Package Compare versions

Comparing version 4.0.0-alpha.18 to 4.0.0-alpha.20

28

dist/index.js

@@ -22,4 +22,2 @@ "use strict";

var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread"));
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));

@@ -31,4 +29,2 @@

var _components = require("@storybook/components");
var _storybookChannelMock = _interopRequireDefault(require("./storybook-channel-mock"));

@@ -39,2 +35,3 @@

// Resolves to window in browser and to global in node
// import { TabWrapper } from '@storybook/components';
var AddonStore =

@@ -101,17 +98,10 @@ /*#__PURE__*/

// supporting legacy addons, which have not migrated to the active-prop
var original = panel.render;
if (original && original.toString() && !original.toString().match(/active/)) {
this.panels[name] = (0, _objectSpread2.default)({}, panel, {
render: function render(_ref) {
var active = _ref.active;
return (0, _components.TabWrapper)({
active: active,
render: original
});
}
});
} else {
this.panels[name] = panel;
}
// const original = panel.render;
// if (original && original.toString() && !original.toString().match(/active/)) {
// this.panels[name] = {
// ...panel,
// render: ({ active }) => TabWrapper({ active, render: original }),
// };
// } else {
this.panels[name] = panel; // }
}

@@ -118,0 +108,0 @@ }, {

{
"name": "@storybook/addons",
"version": "4.0.0-alpha.18",
"version": "4.0.0-alpha.20",
"description": "Storybook addons store",

@@ -23,4 +23,4 @@ "keywords": [

"dependencies": {
"@storybook/channels": "4.0.0-alpha.18",
"@storybook/components": "4.0.0-alpha.18",
"@storybook/channels": "4.0.0-alpha.20",
"@storybook/components": "4.0.0-alpha.20",
"global": "^4.3.2",

@@ -27,0 +27,0 @@ "util-deprecate": "^1.0.2"

// Resolves to window in browser and to global in node
import global from 'global';
import { TabWrapper } from '@storybook/components';
// import { TabWrapper } from '@storybook/components';

@@ -57,11 +57,11 @@ export mockChannel from './storybook-channel-mock';

// supporting legacy addons, which have not migrated to the active-prop
const original = panel.render;
if (original && original.toString() && !original.toString().match(/active/)) {
this.panels[name] = {
...panel,
render: ({ active }) => TabWrapper({ active, render: original }),
};
} else {
this.panels[name] = panel;
}
// const original = panel.render;
// if (original && original.toString() && !original.toString().match(/active/)) {
// this.panels[name] = {
// ...panel,
// render: ({ active }) => TabWrapper({ active, render: original }),
// };
// } else {
this.panels[name] = panel;
// }
}

@@ -68,0 +68,0 @@

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