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

@kadira/storybook-addon-comments

Package Overview
Dependencies
Maintainers
6
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kadira/storybook-addon-comments - npm Package Compare versions

Comparing version 1.7.2 to 1.7.3

6

CHANGELOG.md
## Changelog
### v1.7.2
18-October-2016
* Add a loading icon for loading comments for the first time. [PR43](https://github.com/kadirahq/storybook-addon-comments/pull/43)
* Fix some minor bugs.
### v1.7.1

@@ -4,0 +10,0 @@ 18-October-2016

32

dist/manager/containers/CommentsPanel/dataStore.js

@@ -7,2 +7,6 @@ 'use strict';

var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _promise = require('babel-runtime/core-js/promise');

@@ -12,6 +16,2 @@

var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');

@@ -29,4 +29,8 @@

var _events = require('events');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/* eslint no-param-reassign:0 */
var DataStore = function () {

@@ -42,2 +46,4 @@ function DataStore(db) {

this.user = null;
this.eventStore = new _events.EventEmitter();
}

@@ -115,5 +121,9 @@

// TODO: send a null and handle the loading part in the UI side.
this.eventStore.emit('loading', true);
this._fireComments([]);
this._loadUsers().then(function () {
return _this2._loadComments();
}).then(function () {
_this2.eventStore.emit('loading', false);
return _promise2.default.resolve(null);
});

@@ -128,3 +138,3 @@ }

// That's why we need to do this here.
if (user) {
if (user && this.currentStory) {
var _currentStory = this.currentStory;

@@ -293,6 +303,16 @@ var sbKind = _currentStory.sbKind;

}
}, {
key: 'onLoading',
value: function onLoading(cb) {
var _this9 = this;
this.eventStore.on('loading', cb);
return function () {
_this9.eventStore.removeListener('loading', cb);
};
}
}]);
return DataStore;
}(); /* eslint no-param-reassign:0 */
}();
exports.default = DataStore;

@@ -92,2 +92,6 @@ 'use strict';

this.stopListingStoreLoading = this.store.onLoading(function (loading) {
_this2.setState({ loading: loading });
});
this.init();

@@ -100,2 +104,3 @@ }

this.stopListeningOnStory();
this.stopListingStoreLoading();
}

@@ -102,0 +107,0 @@ }, {

9

package.json
{
"name": "@kadira/storybook-addon-comments",
"version": "1.7.2",
"version": "1.7.3",
"description": "Comments addon for Storybook",

@@ -71,7 +71,8 @@ "main": "preview.js",

"deep-equal": "^1.0.1",
"events": "^1.1.1",
"insert-css": "^1.0.0",
"marked": "^0.3.6",
"moment": "^2.15.1",
"react-render-html": "^0.1.6",
"react-textarea-autosize": "^4.0.5",
"insert-css": "^1.0.0",
"marked": "^0.3.6"
"react-textarea-autosize": "^4.0.5"
},

@@ -78,0 +79,0 @@ "engines": {

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