@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.20
3.13.10
3.13.02
3.12.03
3.11.03
3.10.03
3.8.03
3.7.21
3.7.02
3.6.12
3.6.00
3.5.02
3.4.00
3.3.00
3.2.02
3.1.00
2.4.20
2.4.10
2.4.00
2.3.03
2.2.00
2.1.10
2.1.00
2.0.31
2.0.20
2.0.13
2.0.03
1.1.03
1.0.02
1.0.0-beta.20
1.0.0-beta.11
1.0.0-beta.00
0.63.00
0.62.00
0.61.01
0.60.00
0.59.00
0.58.01
0.56.03
0.55.01
0.53.23
0.53.11
0.53.01
0.52.00
0.51.01
0.49.23
0.49.12
0.49.03
0.48.02
0.45.00
0.44.10
0.44.00
0.43.30
0.43.10
0.43.01
0.42.00
0.41.01
0.39.10
0.39.00
0.38.00
0.37.00
0.36.02
0.35.00
0.34.02
0.33.01
0.32.00
0.31.00
0.30.00
0.28.00
0.27.03
0.26.00
0.24.00
0.23.00
0.22.00
0.21.00
0.18.01
0.17.03
0.16.00
0.15.00
0.14.01
0.13.00
0.12.00
0.11.10
0.11.02
0.10.01
0.9.20
0.9.10
0.9.00
0.7.10
0.7.03
0.6.00
0.5.02
0.4.00
0.3.00
0.2.00
0.1.00

Package Sidebar

Install

npm i @justeat/f-registration

Weekly Downloads

3

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