Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import tokens from '@contentful/forma-36-tokens';
import { Button, ValidationMessage } from '@contentful/forma-36-react-components';
import { normalizeMessage, isOutOfOrder, isDuplicate, messageToState } from './message-processor';
import { createPubSub } from './pubnub-client';
import { EVENT_TRIGGERED, EVENT_TRIGGER_FAILED } from '../constants';
const styles = {
info: css({
color: tokens.colorTextLight,
marginTop: tokens.spacingS,
marginBottom: tokens.spacingM,
fontSize: tokens.fontSizeS,
fontWeight: tokens.fontWeightNormal
}),
header: css({
display: 'flex',
marginBottom: tokens.spacingS
})
};
export default class NeflifySidebarBuildButton extends React.Component {
static propTypes = {
site: PropTypes.object.isRequired,
users: PropTypes.arrayOf(PropTypes.object.isRequired).isRequired,
userId: PropTypes.string.isRequired
};
state = { history: [] };
import { css } from 'emotion';
import tokens from '@contentful/forma-36-tokens';
export default {
info: css({
color: tokens.colorTextLight,
marginBottom: tokens.spacingM,
fontSize: tokens.fontSizeS,
fontWeight: tokens.fontWeightNormal
}),
button: css({
marginBottom: tokens.spacingS
}),
previewButton: css({
margin: `${tokens.spacingS} 0`,
display: 'flex',
alignItems: 'center',
justifyContent: 'center'
}),
previewContent: css({
display: 'flex',
alignContent: 'center'
}),
previewIcon: css({
marginRight: tokens.spacing2Xs,
TextLink
} from '@contentful/forma-36-react-components';
import tokens from '@contentful/forma-36-tokens';
import { SDKContext, GlobalStateContext } from './all-context';
import VariationSelect from './variation-select';
import VariationStats from './variations-stats';
import { getAdditionalEntryInformation } from './utils';
const styles = {
variationContainer: css({
marginTop: tokens.spacingXl
}),
variationTitle: css({
small: {
color: tokens.colorTextLight,
fontWeight: tokens.fontWeightNormal,
marginLeft: tokens.spacingXs,
fontSize: tokens.fontSizeL
}
}),
variationDescription: css({
whiteSpace: 'nowrap',
overflow: 'hidden',
textOverflow: 'ellipsis',
color: tokens.colorTextLight,
marginTop: tokens.spacingXs
}),
entryCard: css({
marginTop: tokens.spacingM
}),
missingNote: css({
marginTop: tokens.spacingM