From 8dfb895d71f7bf9567eaadac5b756781e5a71448 Mon Sep 17 00:00:00 2001 From: Saahith Janapati <22772542+saahithjanapati@users.noreply.github.com> Date: Tue, 27 Jun 2023 17:32:22 -0400 Subject: [PATCH 1/2] Support direct rendering of HTML (if richTextV2 or Markdown is used and conversion to HTML is enabled) (#1138) J=BACK-2241 T=manual created a test site using the answers hitchikers theme and verified that rich text was rendered properly --- directanswercards/documentsearch-standard/component.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/directanswercards/documentsearch-standard/component.js b/directanswercards/documentsearch-standard/component.js index 62d0282bf..64da042a4 100644 --- a/directanswercards/documentsearch-standard/component.js +++ b/directanswercards/documentsearch-standard/component.js @@ -17,6 +17,8 @@ class documentsearch_standardComponent extends BaseDirectAnswerCard['documentsea let snippetValue = ''; if (answer.fieldType === "rich_text" && snippet) { snippetValue = ANSWERS.formatRichText(snippet.value, 'snippet', linkTarget); + } else if (answer.fieldType == "html" && snippet) { + snippetValue = snippet.value; } else if (snippet) { snippetValue = Formatter.highlightField(snippet.value, snippet.matchedSubstrings); } From e1e7dab6e7e14cc704d93ff0e9c6a09e332fdce0 Mon Sep 17 00:00:00 2001 From: cea2aj <42848445+cea2aj@users.noreply.github.com> Date: Wed, 26 Jul 2023 15:16:20 -0400 Subject: [PATCH 2/2] Prep v1.32.0 (#1140) Bump version --- package-lock.json | 4 ++-- package.json | 2 +- static/package-lock.json | 4 ++-- static/package.json | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 809244d85..e26bcc762 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "answers-hitchhiker-theme", - "version": "1.31.0", + "version": "1.32.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "answers-hitchhiker-theme", - "version": "1.31.0", + "version": "1.32.0", "devDependencies": { "@axe-core/puppeteer": "^4.5.2", "@babel/core": "^7.9.6", diff --git a/package.json b/package.json index 530254e44..b25e0044b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "answers-hitchhiker-theme", - "version": "1.31.0", + "version": "1.32.0", "description": "A starter Search theme for hitchhikers", "keywords": [ "jambo", diff --git a/static/package-lock.json b/static/package-lock.json index 1f4e03463..873c25e6a 100644 --- a/static/package-lock.json +++ b/static/package-lock.json @@ -1,12 +1,12 @@ { "name": "answers-hitchhiker-theme", - "version": "1.31.0", + "version": "1.32.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "answers-hitchhiker-theme", - "version": "1.31.0", + "version": "1.32.0", "license": "BSD-3-Clause", "dependencies": { "@vimeo/player": "^2.15.3", diff --git a/static/package.json b/static/package.json index 0eac1eafd..9e4fcbf8d 100644 --- a/static/package.json +++ b/static/package.json @@ -1,6 +1,6 @@ { "name": "answers-hitchhiker-theme", - "version": "1.31.0", + "version": "1.32.0", "description": "Toolchain for use with the HH Theme", "main": "Gruntfile.js", "scripts": {