Skip to content

Commit

Permalink
Merge 92de398 into 604559b
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeyer2115 committed Dec 15, 2021
2 parents 604559b + 92de398 commit b37566d
Show file tree
Hide file tree
Showing 52 changed files with 852 additions and 821 deletions.
52 changes: 0 additions & 52 deletions .github/workflows/version-update.yml

This file was deleted.

8 changes: 4 additions & 4 deletions directanswercards/card_component.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ BaseDirectAnswerCard["{{componentName}}"] = class extends ANSWERS.Component {
setState(data) {
let cardData = this.dataForRender(this.type, this.answer, this.relatedItem, this.snippet);
this.validateDataForRender(cardData);

return super.setState({
...cardData,
searcher: data.searcher,
feedbackEnabled: ANSWERS.getAnalyticsOptIn(),
feedbackSubmitted: data.feedbackSubmitted,
isArray: Array.isArray(this.answer.value),
Expand Down Expand Up @@ -97,7 +97,7 @@ BaseDirectAnswerCard["{{componentName}}"] = class extends ANSWERS.Component {
.addOptions({
directAnswer: true,
verticalKey: this.verticalConfigId,
searcher: this.getState('searcher'),
searcher: 'UNIVERSAL',
entityId: this.associatedEntityId
});

Expand All @@ -120,7 +120,7 @@ BaseDirectAnswerCard["{{componentName}}"] = class extends ANSWERS.Component {
*/
addDefaultEventOptions(eventOptions = {}) {
return Object.assign({}, {
searcher: this.getState('searcher'),
searcher: "UNIVERSAL",
verticalConfigId: this.verticalConfigId,
entityId: this.associatedEntityId,
...eventOptions
Expand All @@ -144,7 +144,7 @@ BaseDirectAnswerCard["{{componentName}}"] = class extends ANSWERS.Component {
verticalKey: this.verticalConfigId,
directAnswer: true,
fieldName: this.answer.fieldApiName,
searcher: this.getState('searcher'),
searcher: 'UNIVERSAL',
entityId: this.associatedEntityId,
url: event.target.href
};
Expand Down
1 change: 0 additions & 1 deletion global_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// "token": "<REPLACE ME>", // The auth token to access Answers experience.
// "apiKey": "<REPLACE ME>", // The answers api key found on the experiences page. This will be provided automatically by the Yext CI system
// "experienceVersion": "<REPLACE ME>", // the Answers Experience version to use for API requests. This will be provided automatically by the Yext CI system
// "environment": "production", // The environment to run on for this Answers Experience. (i.e. 'production' or 'sandbox')
// "businessId": "<REPLACE ME>", // The business ID of the account. This will be provided automatically by the Yext CI system
// "initializeManually": true, // If true, the experience must be started by calling AnswersExperience.init() or AnswersExperienceFrame.init() for iframe integrations.
// "useJWT": true, // Whether or not to enable JWT. If true, the apiKey will be hidden from the build output and the token must be specified through manual initialization.
Expand Down
27 changes: 0 additions & 27 deletions hbshelpers/getDefaultUniversalLimit.js

This file was deleted.

15 changes: 0 additions & 15 deletions hbshelpers/wrapJsPartial.js

This file was deleted.

11 changes: 2 additions & 9 deletions layouts/html.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
if (window.name == 'overlay') {
window.isOverlay = true;
}
{{#wrapJsPartial}}
{{> script/translations}}
{{/wrapJsPartial}}
{{> script/translations}}
{{/babel}}
</script>
{{> layouts/headincludes }}
Expand Down Expand Up @@ -74,15 +72,10 @@
<script>
{{#babel}}
document.addEventListener('DOMContentLoaded', () => {
{{> script/on-document-load}}
{{#if global_config.initializeManually}}
new HitchhikerJS.ManualInitializer(initAnswers).setup();
{{#wrapJsPartial}}
{{> script/on-document-load}}
{{/wrapJsPartial}}
{{else}}
{{#wrapJsPartial}}
{{> script/on-document-load}}
{{/wrapJsPartial}}
initAnswers();
{{/if}}
});
Expand Down
8 changes: 4 additions & 4 deletions layouts/preload-fonts.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- Preload the SourceSans fonts used by default in the Theme -->
<link rel="preload" as="font" href="{{relativePath}}/source-sans-pro-v14-latin-300.woff" type="font/woff" crossorigin="anonymous">
<link rel="preload" as="font" href="{{relativePath}}/source-sans-pro-v14-latin-600.woff" type="font/woff" crossorigin="anonymous">
<link rel="preload" as="font" href="{{relativePath}}/source-sans-pro-v14-latin-700.woff" type="font/woff" crossorigin="anonymous">
<link rel="preload" as="font" href="{{relativePath}}/source-sans-pro-v14-latin-regular.woff" type="font/woff" crossorigin="anonymous">
<link rel="preload" as="font" href="{{relativePath}}/static/assets/fonts/source-sans-pro-v14-latin-300.woff" type="font/woff" crossorigin="anonymous">
<link rel="preload" as="font" href="{{relativePath}}/static/assets/fonts/source-sans-pro-v14-latin-600.woff" type="font/woff" crossorigin="anonymous">
<link rel="preload" as="font" href="{{relativePath}}/static/assets/fonts/source-sans-pro-v14-latin-700.woff" type="font/woff" crossorigin="anonymous">
<link rel="preload" as="font" href="{{relativePath}}/static/assets/fonts/source-sans-pro-v14-latin-regular.woff" type="font/woff" crossorigin="anonymous">

0 comments on commit b37566d

Please sign in to comment.