New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-conversation-form

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-conversation-form - npm Package Compare versions

Comparing version

to
2.0.2

20

dist/Conversation.js

@@ -175,9 +175,9 @@ 'use strict';

var FormChat = function (_Component) {
(0, _inherits3.default)(FormChat, _Component);
var Conversation = function (_Component) {
(0, _inherits3.default)(Conversation, _Component);
function FormChat(props) {
(0, _classCallCheck3.default)(this, FormChat);
function Conversation(props) {
(0, _classCallCheck3.default)(this, Conversation);
var _this = (0, _possibleConstructorReturn3.default)(this, (FormChat.__proto__ || (0, _getPrototypeOf2.default)(FormChat)).call(this, props));
var _this = (0, _possibleConstructorReturn3.default)(this, (Conversation.__proto__ || (0, _getPrototypeOf2.default)(Conversation)).call(this, props));

@@ -203,3 +203,3 @@ _this.setRef = _this.setRef.bind(_this);

(0, _createClass3.default)(FormChat, [{
(0, _createClass3.default)(Conversation, [{
key: 'injectPropsToChild',

@@ -344,9 +344,9 @@ value: function injectPropsToChild(child, id) {

}]);
return FormChat;
return Conversation;
}(_react.Component);
exports.default = FormChat;
exports.default = Conversation;
FormChat.propTypes = {
Conversation.propTypes = {
onSubmit: _propTypes2.default.func.isRequired,

@@ -364,5 +364,5 @@ children: _propTypes2.default.node,

FormChat.defaultProps = {
Conversation.defaultProps = {
chatOptions: {},
children: void 0
};
{
"name": "react-conversation-form",
"version": "2.0.1",
"version": "2.0.2",
"description": "A React wrapper for Space10's Conversational Form",
"main": "index.js",
"main": "dist/index.js",
"scripts": {

@@ -7,0 +7,0 @@ "build": "babel src -d dist",

@@ -1,2 +0,2 @@

# react-conversation-form · [![npm](https://img.shields.io/npm/v/react-conversation-form.svg?style=flat-square)](https://www.npmjs.com/package/react-conversation-form) [![npm](https://img.shields.io/npm/dw/react-conversation-form.svg?style=flat-square)]()
# react-conversation-form · [![npm](https://img.shields.io/npm/v/react-conversation-form.svg?style=flat-square)](https://www.npmjs.com/package/react-conversation-form) [![npm](https://img.shields.io/npm/dt/react-conversation-form.svg?style=flat-square)]()

@@ -15,3 +15,3 @@ A React wrapper for Conversational Form (https://github.com/space10-community/conversational-form).

`npm install react-conversation-form`
`npm install react-conversation-form --save`

@@ -26,6 +26,9 @@ or

import { Conversation, Select, Question, Option } from 'react-conversation-form';
// const { Conversation, Select, Question, Option } = require('react-conversation-form');
<Conversation
onSubmit={() => {}}
chatOptions={{
thankTheUser: ['identifier', 'feedback'],
thankTheUser: ['identifier', 'feedbackType'],
introText: 'Hi there. Lets leave some feedback! To edit any of your responses, just click on them.',

@@ -32,0 +35,0 @@ submitText: 'Thanks for giving us your feedback!'

@@ -118,3 +118,3 @@ import React, {Component} from 'react';

export default class FormChat extends Component {
export default class Conversation extends Component {
constructor(props) {

@@ -248,3 +248,3 @@ super(props);

FormChat.propTypes = {
Conversation.propTypes = {
onSubmit: PropTypes.func.isRequired,

@@ -262,5 +262,5 @@ children: PropTypes.node,

FormChat.defaultProps = {
Conversation.defaultProps = {
chatOptions: {},
children: void 0
};