@coveo/quantic 3.30.3-pre.bfb80506e9 → 3.30.3-pre.c0341d0ed7
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.
- package/force-app/main/default/lwc/quanticUtils/markdownUtils.js +5 -3
- package/force-app/main/default/lwc/quanticUtils/quanticUtils.js +4 -1
- package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +8 -8
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/knowledge/stream-answer-api.d.ts +7 -9
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/search/search-api-params.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/knowledge/generated-answer/headless-answerapi-generated-answer-mocks.d.ts +9036 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/knowledge/generated-answer/utils/testingUtils.d.ts +8 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facet-options/facet-options-selectors.d.ts +0 -7
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/generated-answer/generated-answer-actions.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/generated-answer/generated-answer-request.d.ts +57 -46
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/generated-answer/generated-answer-state.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/query/query-selectors.d.ts +0 -25
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/legacy/search-request.d.ts +3 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/search-request.d.ts +3 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/commerce/factories/build-factory.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/test/mock-search-request.d.ts +3 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/utils/utils.d.ts +0 -3
- package/force-app/main/default/staticresources/coveoheadless/headless.js +10 -10
- package/force-app/main/default/staticresources/coveoheadless/insight/headless.js +9 -9
- package/force-app/main/default/staticresources/coveoheadless/recommendation/headless.js +7 -7
- package/package.json +2 -2
- package/docs/out/quantic-docs.json +0 -6440
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/configuration/configuration-selectors.d.ts +0 -51
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/dictionary-field-context/dictionary-field-context-selectors.d.ts +0 -4
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/excerpt-length/excerpt-length-selectors.d.ts +0 -26
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/folding/folding-selectors.d.ts +0 -9
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/generated-answer/generated-answer-mocks.d.ts +0 -209
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/sort-criteria/sort-criteria-selectors.d.ts +0 -26
|
@@ -24,7 +24,7 @@ const unclosedElement = /(\*{1,3}|`)($|\w[\w\s]*$)/;
|
|
|
24
24
|
/**
|
|
25
25
|
* Complete unclosed elements such as bold, italic, and code.
|
|
26
26
|
* @param {string} text
|
|
27
|
-
* @returns {string} The
|
|
27
|
+
* @returns {string} The corrected text content.
|
|
28
28
|
*/
|
|
29
29
|
const completeUnclosedElement = (text) => {
|
|
30
30
|
const match = unclosedElement.exec(text);
|
|
@@ -46,7 +46,7 @@ const completeUnclosedElement = (text) => {
|
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* Escape HTML special characters in a string.
|
|
49
|
-
* @param {
|
|
49
|
+
* @param {*} text
|
|
50
50
|
* @returns {string} The escaped HTML string.
|
|
51
51
|
*/
|
|
52
52
|
const escapeHtml = (text) => {
|
|
@@ -60,7 +60,9 @@ const escapeHtml = (text) => {
|
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
62
|
* Custom Marked renderer to override the default rendering of certain elements.
|
|
63
|
-
*
|
|
63
|
+
* @type {object}
|
|
64
|
+
* @property {Function} code
|
|
65
|
+
* @returns {string} The code block element to render.
|
|
64
66
|
*/
|
|
65
67
|
const customRenderer = {
|
|
66
68
|
code(code) {
|
|
@@ -209,7 +209,7 @@ export class I18nUtils {
|
|
|
209
209
|
|
|
210
210
|
/**
|
|
211
211
|
* Formats a string with the given arguments.
|
|
212
|
-
* @param {
|
|
212
|
+
* @param {*} stringToFormat
|
|
213
213
|
* @param {...any} formattingArguments
|
|
214
214
|
* @returns {string} The formatted string.
|
|
215
215
|
* @throws {Error} If string format is not a string.
|
|
@@ -646,6 +646,7 @@ export class Store {
|
|
|
646
646
|
* @param {Record<String, unknown>} store
|
|
647
647
|
* @param {string} facetType
|
|
648
648
|
* @param {{ label?: string; facetId: any; format?: Function;}} data
|
|
649
|
+
* @return {void}
|
|
649
650
|
*/
|
|
650
651
|
static registerFacetToStore(store, facetType, data) {
|
|
651
652
|
if (store?.state[facetType][data.facetId]) {
|
|
@@ -658,6 +659,7 @@ export class Store {
|
|
|
658
659
|
* Registers sort option data to the store.
|
|
659
660
|
* @param {Record<String, any>} store
|
|
660
661
|
* @param {Array<{label: string; value: string; criterion: SortCriterion;}>} data
|
|
662
|
+
* @return {void}
|
|
661
663
|
*/
|
|
662
664
|
static registerSortOptionDataToStore(store, data) {
|
|
663
665
|
store.state.sort = data;
|
|
@@ -926,6 +928,7 @@ export async function copyToClipboard(text) {
|
|
|
926
928
|
/**
|
|
927
929
|
* Copies text to clipboard using the DOM.
|
|
928
930
|
* @param {string} text
|
|
931
|
+
* @return {void}
|
|
929
932
|
*/
|
|
930
933
|
export function copyToClipboardFallback(text) {
|
|
931
934
|
const el = document.createElement('textarea');
|