@coveo/quantic 3.33.4 → 3.33.5

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 (16) hide show
  1. package/force-app/main/default/lwc/quanticHeadlessLoader/quanticHeadlessLoader.js +4 -1
  2. package/force-app/main/default/lwc/quanticSmartSnippet/e2e/quanticSmartSnippet.e2e.ts +4 -28
  3. package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +8 -8
  4. package/force-app/main/default/staticresources/coveoheadless/definitions/commerce.index.d.ts +2 -1
  5. package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/core/facets/generator/headless-commerce-facet-generator.d.ts +0 -1
  6. package/force-app/main/default/staticresources/coveoheadless/definitions/ssr/common/types/engine.d.ts +9 -0
  7. package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/commerce/types/build.d.ts +75 -0
  8. package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/commerce/types/engine.d.ts +52 -2
  9. package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/common/types/engine.d.ts +53 -0
  10. package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/search/engine/search-engine.ssr.d.ts +17 -5
  11. package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/search/factories/standalone-static-state-factory.d.ts +9 -0
  12. package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/search/types/engine.d.ts +4 -0
  13. package/force-app/main/default/staticresources/coveoheadless/headless.js +10 -10
  14. package/force-app/main/default/staticresources/coveoheadless/insight/headless.js +9 -9
  15. package/force-app/main/default/staticresources/coveoheadless/recommendation/headless.js +7 -7
  16. package/package.json +3 -3
@@ -53,9 +53,12 @@ const headlessBundles = {
53
53
  /**
54
54
  * Loads the Bueno library dependency.
55
55
  * @param element The Lightning element to use to load dependencies.
56
- * @returns {Promise<Bueno>}
56
+ * @returns {Promise}
57
57
  */
58
58
  const getBueno = (element) => {
59
+ if (window.Bueno) {
60
+ return Promise.resolve();
61
+ }
59
62
  return loadScript(element, BuenoPath + '/browser/bueno.js');
60
63
  };
61
64
 
@@ -83,13 +83,7 @@ useCaseTestCases.forEach((useCase) => {
83
83
  test.describe('when opening the feedback modal and providing feedback', () => {
84
84
  test('should send the smart snippet reason analytics events', async ({
85
85
  smartSnippet,
86
- }, testInfo) => {
87
- // Todo - remove .skip when the feedback modal of Smart Snippet opens in SF with LWS disabled (SFINT-6407)
88
- test.skip(
89
- testInfo.project.name === 'LWS-disabled',
90
- 'Feedback modal not available when LWS is disabled (SFINT-6407)'
91
- );
92
-
86
+ }) => {
93
87
  const expectedReason = 'does_not_answer';
94
88
 
95
89
  const openFeedbackModalAnalyticsPromise =
@@ -110,13 +104,7 @@ useCaseTestCases.forEach((useCase) => {
110
104
  test.describe('when closing the feedback modal', () => {
111
105
  test('should send the correct close feedback modal analytics event', async ({
112
106
  smartSnippet,
113
- }, testInfo) => {
114
- // Todo - remove .skip when the feedback modal of Smart Snippet opens in SF with LWS disabled (SFINT-6407)
115
- test.skip(
116
- testInfo.project.name === 'LWS-disabled',
117
- 'Feedback modal not available when LWS is disabled (SFINT-6407)'
118
- );
119
-
107
+ }) => {
120
108
  await smartSnippet.clickDislikeButton();
121
109
  await smartSnippet.clickExplainWhyButton();
122
110
  const closeFeedbackModalAnalyticsPromise =
@@ -131,13 +119,7 @@ useCaseTestCases.forEach((useCase) => {
131
119
  test('should not allow to open the feedback modal', async ({
132
120
  smartSnippet,
133
121
  search,
134
- }, testInfo) => {
135
- // Todo - remove .skip when the feedback modal of Smart Snippet opens in SF with LWS disabled (SFINT-6407)
136
- test.skip(
137
- testInfo.project.name === 'LWS-disabled',
138
- 'Feedback modal not available when LWS is disabled (SFINT-6407)'
139
- );
140
-
122
+ }) => {
141
123
  await smartSnippet.clickDislikeButton();
142
124
  await smartSnippet.clickExplainWhyButton();
143
125
  await smartSnippet.selectFirstFeedbackOptionLabel();
@@ -159,13 +141,7 @@ useCaseTestCases.forEach((useCase) => {
159
141
  test('should allow to open the feedback modal', async ({
160
142
  smartSnippet,
161
143
  search,
162
- }, testInfo) => {
163
- // Todo - remove .skip when the feedback modal of Smart Snippet opens in SF with LWS disabled (SFINT-6407)
164
- test.skip(
165
- testInfo.project.name === 'LWS-disabled',
166
- 'Feedback modal not available when LWS is disabled (SFINT-6407)'
167
- );
168
-
144
+ }) => {
169
145
  await smartSnippet.clickDislikeButton();
170
146
  await smartSnippet.clickExplainWhyButton();
171
147
  await smartSnippet.selectFirstFeedbackOptionLabel();