@coveops/abi 0.5.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/abi/abi.css +1 -1
  2. package/dist/abi/abi.esm.js +1 -1
  3. package/dist/abi/images/Default.png +0 -0
  4. package/dist/abi/images/Documents.png +0 -0
  5. package/dist/abi/images/FAQ.png +0 -0
  6. package/dist/abi/images/Images.png +0 -0
  7. package/dist/abi/images/Link.png +0 -0
  8. package/dist/abi/images/Movies.png +0 -0
  9. package/dist/abi/images/ProcessPeople.png +0 -0
  10. package/dist/abi/index.esm.js +1 -1
  11. package/dist/abi/p-1cbc472e.entry.js +1 -0
  12. package/dist/abi/{p-b62c5f66.entry.js → p-24a5774b.entry.js} +1 -1
  13. package/dist/abi/p-3d7bc0f4.entry.js +1 -0
  14. package/dist/bundle/index.css +1 -1
  15. package/dist/bundle/index.html +3 -4
  16. package/dist/bundle/index.js +448 -290
  17. package/dist/cjs/faq-popup-component.cjs.entry.js +8 -0
  18. package/dist/cjs/index.cjs.js +12 -1
  19. package/dist/cjs/results-manager.cjs.entry.js +10 -10
  20. package/dist/cjs/strip-html-component.cjs.entry.js +1 -1
  21. package/dist/collection/components/faq-popup-component/faq-popup-component.css +0 -12
  22. package/dist/collection/components/faq-popup-component/faq-popup-component.js +8 -0
  23. package/dist/collection/components/strip-html-component/strip-html-component.js +1 -1
  24. package/dist/collection/images/Default.png +0 -0
  25. package/dist/collection/images/Documents.png +0 -0
  26. package/dist/collection/images/FAQ.png +0 -0
  27. package/dist/collection/images/Images.png +0 -0
  28. package/dist/collection/images/Link.png +0 -0
  29. package/dist/collection/images/Movies.png +0 -0
  30. package/dist/collection/images/ProcessPeople.png +0 -0
  31. package/dist/collection/index.js +11 -0
  32. package/dist/components/index.js +31 -12
  33. package/dist/esm/faq-popup-component.entry.js +8 -0
  34. package/dist/esm/index.js +12 -1
  35. package/dist/esm/results-manager.entry.js +10 -10
  36. package/dist/esm/strip-html-component.entry.js +1 -1
  37. package/package.json +1 -1
  38. package/src/components/faq-popup-component/faq-popup-component.css +0 -12
  39. package/src/components/faq-popup-component/faq-popup-component.tsx +12 -0
  40. package/src/components/results-manager/AppTemplate.html +18 -12
  41. package/src/components/results-manager/DocumentsTemplate.html +63 -27
  42. package/src/components/results-manager/ELearningTemplate.html +23 -14
  43. package/src/components/results-manager/FAQTemplate.html +48 -30
  44. package/src/components/results-manager/KATemplate.html +42 -27
  45. package/src/components/results-manager/MediaTemplate.html +26 -16
  46. package/src/components/results-manager/PeopleTemplate.html +13 -8
  47. package/src/components/results-manager/QuickLinksTemplate.html +14 -14
  48. package/src/components/results-manager/SitePagesTemplate.html +40 -18
  49. package/src/components/results-manager/template-1.html +21 -22
  50. package/src/components/strip-html-component/strip-html-component.tsx +1 -1
  51. package/src/images/Default.png +0 -0
  52. package/src/images/Documents.png +0 -0
  53. package/src/images/FAQ.png +0 -0
  54. package/src/images/Images.png +0 -0
  55. package/src/images/Link.png +0 -0
  56. package/src/images/Movies.png +0 -0
  57. package/src/images/ProcessPeople.png +0 -0
  58. package/src/index.ts +11 -0
  59. package/src/pages/index.html +3 -4
  60. package/src/style/index.css +24 -9
  61. package/stencil.config.ts +5 -0
  62. package/dist/abi/p-5a5f74eb.entry.js +0 -1
  63. package/dist/abi/p-f23dd119.entry.js +0 -1
@@ -51,7 +51,7 @@ const StripHtmlComponent = class {
51
51
  if (typeof description === 'string') {
52
52
  strippedString = this.stripHtmlAndEntities(description);
53
53
  }
54
- return (index.h("div", { style: { fontSize: "13px" } }, strippedString));
54
+ return (index.h("div", { style: { fontSize: "1.3rem", maxHeight: "none", lineHeight: "normal" } }, strippedString));
55
55
  }
56
56
  get host() { return index.getElement(this); }
57
57
  };
@@ -1,15 +1,3 @@
1
1
  b {
2
2
  color: var(--atomic-primary);
3
3
  }
4
- /* :host {
5
- display: block;
6
- }
7
-
8
- .clickable-host {
9
- cursor: pointer;
10
- }
11
-
12
- .clickable-host:hover {
13
- cursor: pointer;
14
- text-decoration: underline; /* Optional: adds underline on hover */
15
- } */
@@ -16,6 +16,9 @@ export class FaqPopupComponent {
16
16
  this.bindings = await initializeBindings(this.host);
17
17
  this.result = await resultContext(this.host);
18
18
  this.modalElement = (_a = this.bindings) === null || _a === void 0 ? void 0 : _a.interfaceElement.querySelector('#faq-modal');
19
+ if (this.result && localStorage.getItem(`visited-${this.result.title}`)) {
20
+ this.host.classList.add('visited-title');
21
+ }
19
22
  }
20
23
  catch (error) {
21
24
  console.error(error);
@@ -64,6 +67,11 @@ export class FaqPopupComponent {
64
67
  bodySlot.appendChild(linkElement);
65
68
  this.modalElement.querySelector('#faq-modal-close').addEventListener('click', this.closeFAQModal);
66
69
  this.modalElement.setAttribute('is-open', 'true');
70
+ if (this.result) {
71
+ localStorage.setItem(`visited-${this.result.title}`, 'true');
72
+ }
73
+ // Add the class to change color
74
+ this.host.classList.add('visited-title');
67
75
  }
68
76
  render() {
69
77
  if (!this.result) {
@@ -47,7 +47,7 @@ export class StripHtmlComponent {
47
47
  if (typeof description === 'string') {
48
48
  strippedString = this.stripHtmlAndEntities(description);
49
49
  }
50
- return (h("div", { style: { fontSize: "13px" } }, strippedString));
50
+ return (h("div", { style: { fontSize: "1.3rem", maxHeight: "none", lineHeight: "normal" } }, strippedString));
51
51
  }
52
52
  static get is() { return "strip-html-component"; }
53
53
  static get encapsulation() { return "shadow"; }
Binary file
Binary file
@@ -9,6 +9,17 @@ async function main() {
9
9
  accessToken,
10
10
  organizationId,
11
11
  platformUrl,
12
+ preprocessRequest: (request, clientOrigin, metadata) => {
13
+ if (clientOrigin == "searchApiFetch" && (metadata === null || metadata === void 0 ? void 0 : metadata.method) == "search") {
14
+ request.url += '&viewAllContent=1';
15
+ var body = JSON.parse(request.body);
16
+ body.context = {
17
+ "user_country_snow": "CZ"
18
+ };
19
+ request.body = JSON.stringify(body);
20
+ }
21
+ return request;
22
+ }
12
23
  });
13
24
  searchInterface.executeFirstSearch();
14
25
  }