Commit 4007770f authored by Aanand Prasad's avatar Aanand Prasad

chore: update @pubsweet/ui

parent 4756ebd6
......@@ -9,7 +9,7 @@
"dist"
],
"dependencies": {
"@pubsweet/ui": "^2.0.0",
"@pubsweet/ui": "^2.1.1",
"classnames": "^2.2.5",
"prop-types": "^15.5.10",
"react": "^16.2.0",
......
......@@ -9,7 +9,7 @@
"dist"
],
"dependencies": {
"@pubsweet/ui": "^2.0.0",
"@pubsweet/ui": "^2.1.1",
"classnames": "^2.2.5",
"lodash": "^4.17.4",
"prop-types": "^15.5.10",
......
......@@ -9,7 +9,7 @@
"dist"
],
"dependencies": {
"@pubsweet/ui": "^2.0.0",
"@pubsweet/ui": "^2.1.1",
"classnames": "^2.2.5",
"lodash": "^4.17.4",
"moment": "^2.18.1",
......
......@@ -2,13 +2,7 @@ import React from 'react'
import { FormSection } from 'redux-form'
import { NoteEditor } from 'xpub-edit'
import {
Attachments,
Button,
ControlGroup,
RadioGroup,
ValidatedField,
} from '@pubsweet/ui'
import { Attachments, Button, RadioGroup, ValidatedField } from '@pubsweet/ui'
import { withJournal } from 'xpub-journal'
import { required } from 'xpub-validators'
......@@ -31,18 +25,16 @@ const DecisionForm = ({ journal, valid, handleSubmit, uploadFile }) => (
<form onSubmit={handleSubmit}>
<AdminSection>
<FormSection name="note">
<ControlGroup inline>
<ValidatedField
component={NoteInput}
name="content"
validate={[required]}
/>
<ValidatedField
component={AttachmentsInput(uploadFile)}
name="attachments"
/>
</ControlGroup>
<ValidatedField
component={NoteInput}
name="content"
validate={[required]}
/>
<ValidatedField
component={AttachmentsInput(uploadFile)}
name="attachments"
/>
</FormSection>
</AdminSection>
......
......@@ -3,13 +3,7 @@ import styled from 'styled-components'
import { FormSection } from 'redux-form'
import { NoteEditor } from 'xpub-edit'
import {
Attachments,
Button,
ControlGroup,
RadioGroup,
ValidatedField,
} from '@pubsweet/ui'
import { Attachments, Button, RadioGroup, ValidatedField } from '@pubsweet/ui'
import { withJournal } from 'xpub-journal'
import { required } from 'xpub-validators'
......@@ -42,31 +36,27 @@ const ReviewForm = ({ journal, valid, handleSubmit, uploadFile }) => (
<form onSubmit={handleSubmit}>
<AdminSection>
<FormSection name="note">
<ControlGroup inline>
<ValidatedField
component={NoteInput}
name="content"
validate={[required]}
/>
<ValidatedField
component={NoteInput}
name="content"
validate={[required]}
/>
<ValidatedField
component={AttachmentsInput(uploadFile)}
name="attachments"
/>
</ControlGroup>
<ValidatedField
component={AttachmentsInput(uploadFile)}
name="attachments"
/>
</FormSection>
</AdminSection>
<AdminSection>
<FormSection name="confidential">
<ControlGroup inline>
<ValidatedField component={ConfidentialInput} name="content" />
<ValidatedField component={ConfidentialInput} name="content" />
<ValidatedField
component={AttachmentsInput(uploadFile)}
name="attachments"
/>
</ControlGroup>
<ValidatedField
component={AttachmentsInput(uploadFile)}
name="attachments"
/>
</FormSection>
</AdminSection>
......
......@@ -9,7 +9,7 @@
"dist"
],
"dependencies": {
"@pubsweet/ui": "^2.0.0",
"@pubsweet/ui": "^2.1.1",
"lodash": "^4.17.4",
"prop-types": "^15.5.10",
"pubsweet-client": "^2.1.0",
......
......@@ -9,7 +9,7 @@
},
"dependencies": {
"@pubsweet/default-theme": "^0.1.0",
"@pubsweet/ui": "^2.0.0",
"@pubsweet/ui": "^2.1.1",
"babel-core": "^6.26.0",
"config": "^1.26.2",
"font-awesome": "^4.7.0",
......
......@@ -9,6 +9,7 @@
"dist"
],
"dependencies": {
"@pubsweet/ui": "^2.1.1",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-redux": "^5.0.2",
......
......@@ -7,6 +7,7 @@
],
"main": "src",
"dependencies": {
"@pubsweet/ui": "^2.1.1",
"prosemirror-commands": "^1.0.1",
"prosemirror-dropcursor": "^1.0.0",
"prosemirror-gapcursor": "^1.0.0",
......
......@@ -74,6 +74,10 @@
pouchdb "^6.3.4"
pubsweet-server "^1.0.0-beta.2"
"@pubsweet/default-theme@^0.1.0":
version "0.1.0"
resolved "https://registry.yarnpkg.com/@pubsweet/default-theme/-/default-theme-0.1.0.tgz#80707d3c57a459d48bca4f3844b0d29e2c18da1e"
"@pubsweet/logger@0.0.1", "@pubsweet/logger@^0.0.1":
version "0.0.1"
resolved "https://registry.yarnpkg.com/@pubsweet/logger/-/logger-0.0.1.tgz#ec0c15f04e0c64232c29173848ffe6da8190c9c2"
......@@ -112,9 +116,9 @@
typeface-fira-sans-condensed "^0.0.43"
typeface-vollkorn "^0.0.43"
"@pubsweet/ui@^2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@pubsweet/ui/-/ui-2.0.0.tgz#cce3bf036bf71b48f2f2808391fcbc2cb08d8e3e"
"@pubsweet/ui@^2.1.1":
version "2.1.1"
resolved "https://registry.yarnpkg.com/@pubsweet/ui/-/ui-2.1.1.tgz#6db1c825de9ed347465ac83dacd8efc46b5cb260"
dependencies:
babel-jest "^21.2.0"
classnames "^2.2.5"
......@@ -1447,10 +1451,6 @@ boom@5.x.x:
dependencies:
hoek "4.x.x"
bootstrap-sass@^3.3.7:
version "3.3.7"
resolved "https://registry.yarnpkg.com/bootstrap-sass/-/bootstrap-sass-3.3.7.tgz#6596c7ab40f6637393323ab0bc80d064fc630498"
brace-expansion@^1.0.0, brace-expansion@^1.1.7:
version "1.1.11"
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
......@@ -7956,10 +7956,6 @@ pkginfo@0.3.x:
version "0.3.1"
resolved "https://registry.yarnpkg.com/pkginfo/-/pkginfo-0.3.1.tgz#5b29f6a81f70717142e09e765bbeab97b4f81e21"
pkginfo@0.x.x:
version "0.4.1"
resolved "https://registry.yarnpkg.com/pkginfo/-/pkginfo-0.4.1.tgz#b5418ef0439de5425fc4995042dced14fb2a84ff"
platform@1.3.4:
version "1.3.4"
resolved "https://registry.yarnpkg.com/platform/-/platform-1.3.4.tgz#6f0fb17edaaa48f21442b3a975c063130f1c3ebd"
......@@ -8671,18 +8667,7 @@ promise@^7.1.1:
dependencies:
asap "~2.0.3"
prompt@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/prompt/-/prompt-1.0.0.tgz#8e57123c396ab988897fb327fd3aedc3e735e4fe"
dependencies:
colors "^1.1.2"
pkginfo "0.x.x"
read "1.0.x"
revalidator "0.1.x"
utile "0.3.x"
winston "2.1.x"
prompt@flatiron/prompt#1c95d1d8d333b5fbc13fa5f0619f3dcf0d514f87:
prompt@^1.0.0, prompt@flatiron/prompt#1c95d1d8d333b5fbc13fa5f0619f3dcf0d514f87:
version "1.0.0"
resolved "https://codeload.github.com/flatiron/prompt/tar.gz/1c95d1d8d333b5fbc13fa5f0619f3dcf0d514f87"
dependencies:
......@@ -8842,6 +8827,30 @@ pubsweet-client@^2.1.0:
reselect "^3.0.1"
styled-components "^3.1.4"
pubsweet-client@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/pubsweet-client/-/pubsweet-client-2.1.1.tgz#2294224b244f6090740173f36ed49d61a2f40356"
dependencies:
authsome "0.0.9"
config "^1.21.0"
event-source-polyfill "^0.0.10"
global "^4.3.1"
isomorphic-fetch "^2.1.1"
lint-staged "^6.0.0"
lodash "^4.0.0"
prop-types "^15.5.8"
react "^16.2.0"
react-css-themr "^2.1.2"
react-redux "^5.0.2"
react-router-dom "^4.2.2"
react-router-redux next
redux "^3.6.0"
redux-form "^7.0.3"
redux-logger "^3.0.1"
redux-thunk "^2.2.0"
reselect "^3.0.1"
styled-components "^3.1.4"
pubsweet-component-ink-backend@^0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/pubsweet-component-ink-backend/-/pubsweet-component-ink-backend-0.1.1.tgz#a1ed929c91503c14e1d8aaedfde1d33c365ab30c"
......@@ -12040,18 +12049,6 @@ winston@0.8.x:
pkginfo "0.3.x"
stack-trace "0.0.x"
winston@2.1.x:
version "2.1.1"
resolved "https://registry.yarnpkg.com/winston/-/winston-2.1.1.tgz#3c9349d196207fd1bdff9d4bc43ef72510e3a12e"
dependencies:
async "~1.0.0"
colors "1.0.x"
cycle "1.0.x"
eyes "0.1.x"
isstream "0.1.x"
pkginfo "0.3.x"
stack-trace "0.0.x"
winston@2.x, winston@^2.2.0, winston@^2.4.0:
version "2.4.0"
resolved "https://registry.yarnpkg.com/winston/-/winston-2.4.0.tgz#808050b93d52661ed9fb6c26b3f0c826708b0aee"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment