@justeat/f-registration

3.14.1 • Public • Published

f-registration

Fozzie Bear

Registration Component.


npm version CircleCI Coverage Status Known Vulnerabilities


Usage

Installation

Install the module using npm or Yarn:

yarn add @justeat/f-registration
npm install @justeat/f-registration

Vue Applications

You can import it in your Vue SFC like this (please note that styles have to be imported separately):

import RegistrationComponent from '@justeat/f-registration';
import '@justeat/f-registration/dist/f-registration.css';

export default {
    components: {
        RegistrationComponent
    }
}

If you are using Webpack, you can import the component dynamically to separate the f-registration bundle from the main bundle.client.js:

import '@justeat/f-registration/dist/f-registration.css';

export default {
    components: {
        // …
        RegistrationComponent: () => import(/* webpackChunkName: "vue-registration" */ '@justeat/f-registration')
    }
}

CSS styles

The component is using utility css styles from fozzie package. You need to make sure to @include trumps-utilities(); mixin to your application styles if you use beta version of fozzie package (>= v5.0.0-beta.0). If you are using main version (v4.X.X) styles should come out of the box.

Configuration

Props

Prop Type Default Description
local String en-gb Sets the translation file to use.
createAccountUrl String Required URL to register a new user account.
createAccountTimeout Number 1000 Timeout when submitting the registration form.
showLoginLink Boolean Required If true, 'Already on Just Eat` login link will be displayed.
loginUrl String Required URL to forward the user to on navigation to the login page.

Events

Event Description
registration-create-account-success Registration form has been successfully submitted.
registration-create-account-failure Registration form submission has failed.
registration-create-account-start User has begun interacting with registration form.
registration-create-account-inline-error Validation on form fields has failed.
registration-visit-login-page User clicked 'Already on Just Eat` login link.
registration-login-blocked 'FailedUserAuthentication' error has been returned when submitting the registration form.

Development

Start by cloning the repository and installing the required dependencies:

$ git clone git@github.com:justeat/fozzie-components.git
$ cd fozzie-components
$ yarn

Change directory to the f-registration package:

$ cd packages/components/molecules/f-registration

Testing

Unit, Integration and Contract

To test all components, run from root directory. To test only f-registration, run from the ./fozzie-components/packages/f-registration directory.

yarn test

Running storybook

Storybook can be used to develop new and existing components.

To start storybook:

From the root directory run:

$ yarn storybook:serve

This will build and serve storybook at http://localhost:6006.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.14.10latest
1.0.0-beta.20beta

Version History

VersionDownloads (Last 7 Days)Published
3.14.10
3.14.00
3.13.31
3.13.21
3.13.10
3.13.00
3.12.00
3.11.00
3.10.00
3.8.011
3.7.22
3.7.00
3.6.10
3.6.00
3.5.00
3.4.00
3.3.00
3.2.00
3.1.00
2.4.20
2.4.10
2.4.00
2.3.00
2.2.01
2.1.10
2.1.00
2.0.31
2.0.21
2.0.11
2.0.01
1.1.01
1.0.01
1.0.0-beta.20
1.0.0-beta.10
1.0.0-beta.00
0.63.00
0.62.00
0.61.00
0.60.00
0.59.00
0.58.00
0.56.00
0.55.00
0.53.20
0.53.10
0.53.00
0.52.00
0.51.00
0.49.20
0.49.10
0.49.00
0.48.00
0.45.00
0.44.10
0.44.00
0.43.30
0.43.10
0.43.00
0.42.00
0.41.00
0.39.11
0.39.00
0.38.00
0.37.00
0.36.00
0.35.00
0.34.00
0.33.00
0.32.00
0.31.00
0.30.00
0.28.00
0.27.00
0.26.00
0.24.00
0.23.00
0.22.00
0.21.00
0.18.00
0.17.00
0.16.00
0.15.00
0.14.00
0.13.00
0.12.00
0.11.10
0.11.00
0.10.01
0.9.20
0.9.10
0.9.00
0.7.10
0.7.00
0.6.00
0.5.00
0.4.00
0.3.00
0.2.00
0.1.00

Package Sidebar

Install

npm i @justeat/f-registration

Weekly Downloads

5

Version

3.14.1

License

Apache-2.0

Unpacked Size

2.53 MB

Total Files

16

Last publish

Collaborators

  • ilia.chikmarev
  • fidel.montesino
  • anastasiia.horban
  • raouf.sawehli
  • mmakwe-onyeka
  • gregory.palaci
  • arielfdr
  • dawidchar
  • roberto.santana
  • lizzie.turney
  • davidpn.11
  • dandel10n
  • mwh1989
  • kevinrodrigues
  • fozzie-bot
  • ashleynolan
  • simonsje
  • xander-marjoram
  • sergii.semenkiv
  • thomaswilliammcclean
  • benrwhite
  • robertellison
  • zlatin.ivanov
  • joshuang2332
  • oliversweb
  • andymayje
  • jamieomaguire
  • adammorr
  • lsphillips