@coveo/quantic 3.30.3-pre.465ecd4358 → 3.30.3-pre.47e6fff72f
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/facetDependenciesUtils.js +2 -0
- package/force-app/main/default/lwc/quanticUtils/markdownUtils.js +5 -3
- package/force-app/main/default/lwc/quanticUtils/quanticUtils.js +5 -2
- package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +8 -8
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/knowledge/generated-answer/headless-answerapi-generated-answer-mocks.d.ts +743 -25
- 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-request.d.ts +0 -16
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/query/query-selectors.d.ts +0 -25
- 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/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/sort-criteria/sort-criteria-selectors.d.ts +0 -26
|
@@ -79,6 +79,7 @@ export function generateFacetDependencyConditions(dependsOn) {
|
|
|
79
79
|
|
|
80
80
|
/**
|
|
81
81
|
* Type guard to check if the provided value is a CategoryFacetValue.
|
|
82
|
+
* @param {CategoryFacetValue} value - The value to check.
|
|
82
83
|
* @returns {boolean} True if the value is a CategoryFacetValue.
|
|
83
84
|
*/
|
|
84
85
|
function isCategoryFacetValue(value) {
|
|
@@ -112,6 +113,7 @@ function getSelectedCategoryFacetValueRequest(value) {
|
|
|
112
113
|
|
|
113
114
|
/**
|
|
114
115
|
* Type guard to check if the provided value is a SimpleFacetValue.
|
|
116
|
+
* @param {SimpleFacetValue} facetValue - The value to check.
|
|
115
117
|
* @returns {boolean} True if the value is a SimpleFacetValue.
|
|
116
118
|
*/
|
|
117
119
|
function isSimpleFacetValue(facetValue) {
|
|
@@ -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) {
|
|
@@ -194,7 +194,7 @@ export class I18nUtils {
|
|
|
194
194
|
/**
|
|
195
195
|
* Gets the label name with count.
|
|
196
196
|
* @param {string} labelName
|
|
197
|
-
* @param {
|
|
197
|
+
* @param {number} count
|
|
198
198
|
* @returns {string} The label name with count.
|
|
199
199
|
* @example `labelName_zero`, `labelName_plural` or `labelName`
|
|
200
200
|
*/
|
|
@@ -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');
|