2.1.3 • Published 1 year ago

@addressfinder/addressfinder-webpage-tools v2.1.3

Weekly downloads
27
License
-
Repository
github
Last release
1 year ago

AddressFinder Webpage Tools

This NPM package is designed to work alongside the AddressFinder Widget to add autocomplete capability to your Ecommerce store or webpage.

It provides nine classes:

  • PageManager, which identifies your address form, and handles the mapping of your address form configurations to the DOM.
  • FormManager, which binds AddressFinder to your form, and handles the population of the correct address fields when an address is selected
  • EmailPageManager, which identifies your email form, and handles the mapping of your email form configurations to the DOM.
  • EmailFormManager, which binds AddressfinderEmail to your form, and handles the validation of the email input field.
  • PhonePageManager, which identifies your phone form, and handles the mapping of your phone form configurations to the DOM.
  • PhoneFormManager, which binds AddressfinderPhone to your form, and handles the validation of the phone input field.
  • ValidationPageManager, A base class that the EmailPageManager and PhonePageManager extend from.
  • ValidationFormManager, A base class that the EmailFormManager and PhoneFormManager extend from.
  • MutationManager, which listens for mutations to the DOM, and reinitialises AddressFinder widgets on mutations

Installation

npm install @addressfinder/addressfinder-webpage-tools

Usage

import { PageManager, MutationManager, FormManager } from '@addressfinder/addressfinder-webpage-tools'

For more examples of usage, look in the examples folder.

2.1.2

1 year ago

2.1.1

1 year ago

2.1.3

1 year ago

2.1.0

1 year ago

2.0.0

1 year ago

1.8.7

1 year ago

1.8.6

1 year ago

1.8.5

5 years ago

1.8.4

5 years ago

1.8.3

5 years ago

1.8.2

5 years ago

1.8.1

6 years ago

1.8.0

6 years ago

1.7.1

6 years ago

1.7.0

6 years ago

1.6.0

6 years ago

1.5.1

6 years ago

1.5.0

6 years ago

1.4.6

6 years ago

1.4.5

6 years ago

1.4.4

6 years ago

1.4.3

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago