3.14.1 • Published 1 year ago

@justeat/f-registration v3.14.1

Weekly downloads
174
License
Apache-2.0
Repository
github
Last release
1 year ago

f-registration

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

PropTypeDefaultDescription
localStringen-gbSets the translation file to use.
createAccountUrlStringRequiredURL to register a new user account.
createAccountTimeoutNumber1000Timeout when submitting the registration form.
showLoginLinkBooleanRequiredIf true, 'Already on Just Eat` login link will be displayed.
loginUrlStringRequiredURL to forward the user to on navigation to the login page.

Events

EventDescription
registration-create-account-successRegistration form has been successfully submitted.
registration-create-account-failureRegistration form submission has failed.
registration-create-account-startUser has begun interacting with registration form.
registration-create-account-inline-errorValidation on form fields has failed.
registration-visit-login-pageUser 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.

3.14.1

1 year ago

3.14.0

1 year ago

3.13.3

2 years ago

3.13.2

2 years ago

3.13.1

2 years ago

3.12.0

3 years ago

3.13.0

3 years ago

3.11.0

3 years ago

3.7.2

3 years ago

3.8.0

3 years ago

3.10.0

3 years ago

3.7.0

3 years ago

2.2.0

3 years ago

2.4.1

3 years ago

2.4.0

3 years ago

2.4.2

3 years ago

3.4.0

3 years ago

3.2.0

3 years ago

3.6.1

3 years ago

3.6.0

3 years ago

2.3.0

3 years ago

3.3.0

3 years ago

3.1.0

3 years ago

3.5.0

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

1.0.0-beta.2

4 years ago

1.0.0-beta.1

4 years ago

0.63.0

4 years ago

1.0.0-beta.0

4 years ago

0.62.0

4 years ago

0.61.0

4 years ago

0.60.0

4 years ago

0.59.0

4 years ago

0.58.0

4 years ago

0.55.0

4 years ago

0.56.0

4 years ago

0.53.2

4 years ago

0.53.0

4 years ago

0.53.1

4 years ago

0.52.0

4 years ago

0.51.0

4 years ago

0.49.2

4 years ago

0.49.1

4 years ago

0.49.0

4 years ago

0.48.0

4 years ago

0.44.1

4 years ago

0.45.0

4 years ago

0.44.0

4 years ago

0.43.3

4 years ago

0.43.1

4 years ago

0.43.0

5 years ago

0.42.0

5 years ago

0.41.0

5 years ago

0.39.1

5 years ago

0.39.0

5 years ago

0.38.0

5 years ago

0.37.0

5 years ago

0.36.0

5 years ago

0.35.0

5 years ago

0.34.0

5 years ago

0.33.0

5 years ago

0.32.0

5 years ago

0.31.0

5 years ago

0.30.0

5 years ago

0.28.0

5 years ago

0.27.0

5 years ago

0.26.1

5 years ago

0.26.0

5 years ago

0.24.0

5 years ago

2.0.0-beta.0

5 years ago

0.23.0

5 years ago

0.22.0

5 years ago

0.21.0

5 years ago

0.18.0

5 years ago

0.17.0

5 years ago

0.16.0

5 years ago

0.15.0

5 years ago

0.14.0

5 years ago

0.13.0

5 years ago

0.12.0

5 years ago

0.11.1

5 years ago

0.11.0

5 years ago

0.10.0

5 years ago

0.9.2

5 years ago

0.9.1

5 years ago

0.9.0

5 years ago

0.7.1

5 years ago

0.7.0

5 years ago

0.6.0

5 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago