Asset Bundles | Yext Hitchhikers Platform
Note
If you are hosting data in the EU cloud region, replace all references to the URL
https://assets.sitescdn.net
with https://assets.eu.sitescdn.net
.
Full Search UI SDK Assets
The Search UI SDK includes the following assets:
- JS (IIFE):
https://assets.sitescdn.net/answers/v1/answers.min.js
- Templates (UMD):
https://assets.sitescdn.net/answers/v1/answerstemplates.compiled.min.js
- CSS:
https://assets.sitescdn.net/answers/v1/answers.css
We also ship the following additional assets, which you can substitute in based on your script loader and polyfill needs:
- JS (UMD):
https://assets.sitescdn.net/answers/v1/answers-umd.min.js
- JS (UMD) without polyfills:
https://assets.sitescdn.net/answers/v1/answers-modern.min.js
- Templates (IIFE):
https://assets.sitescdn.net/answers/v1/answerstemplates-iife.compiled.min.js
. Reference these usingtemplateBundle: TemplateBundle
instead oftemplateBundle: TemplateBundle.default
in your init.
Searchbar Only Assets
In addition, we ship a searchbar-only asset. This asset contains only the necessary JS/CSS/hbs for the SearchBar
component. It should be used when adding just a searchbar to the page.
- JS (IIFE):
https://assets.sitescdn.net/answers-search-bar/v1/answers.min.js
- JS (UMD):
https://assets.sitescdn.net/answers-search-bar/v1/answers-umd.min.js
- JS (UMD without polyfills):
https://assets.sitescdn.net/answers-search-bar/v1/answers-modern.min.js
- Templates (UMD):
https://assets.sitescdn.net/answers-search-bar/v1/answerstemplates.compiled.min.js
- Templates (IIFE):
https://assets.sitescdn.net/answers-search-bar/v1/answerstemplates-iife.compiled.min.js
. Reference these usingtemplateBundle: TemplateBundle
instead oftemplateBundle: TemplateBundle.default
in your init. - CSS:
https://assets.sitescdn.net/answers-search-bar/v1/answers.css
<% elem.innerText %>