donor-form-loader
v2.5.0
Published
A deployable front-end project that publishes a JS script to the Blackbaud CDN. The end goal is to allow donation-form-designer to be able to reference a JS file in the CDN without having to know the hashed values normally associated with published assets
Downloads
56
Readme
This is a deployable front-end project that publishes a JS script to the Blackbaud CDN. The end goal is to allow donation-form-designer to be able to reference a JS file in the CDN without having to know the hashed value normally appended to file names for published assets inside SkyUX projects.
Backporting changes to previous v1 loader
tl;dr just reference 1.x.x
instead of master
in your usual flow
- Checkout out the
1.x.x
branch - Create a new branch from the
1.x.x
branch instead ofmaster
- Open PR for your branch against the
1.x.x
branch instead ofmaster
- When tagging, make sure you are looking at the 1.x.x branch instead of
master
#Running Locally
Tests can be run with command npm run test
.
To run locally, run the command npm run dev
and then in Intellij, right click on demo/index.html
and choose Open In -> Browser -> preferred browser.
If you need to make changes to what form is loaded, or any other parameters, this can be done in demo/index.html
.
To test passthrough parameters, updated demo/index.html
to use the following format:
`<script>BBDonorFormLoader.newBlackbaudDonationFormZoned('renxt', 't-Z-FEhKwLvkGVGjTCcbBMEA', 'c1f673d7-128e-452b-9078-9d53d9724f27', 'usa', { desid: '7', desname: 'Name', appealid: '7', campaignid: '7' })</script>`
Note: Passthrough parameters are all optional so you would only need to include what parameters you want to passthrough.