@coveo/quantic 3.22.1-pre.27a646b509 โ 3.22.1-pre.2bf6e112c8
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/README.md +19 -3
- package/force-app/main/default/lwc/quanticRecommendationList/templates/carousel.html +3 -3
- package/force-app/main/default/lwc/quanticRecommendationList/templates/defaultRecommendation.html +1 -1
- package/force-app/main/default/lwc/quanticRecommendationList/templates/grid.html +3 -3
- package/force-app/main/default/lwc/quanticRecommendationList/templates/loading.html +1 -1
- package/force-app/main/default/lwc/quanticResult/quanticResult.html +1 -1
- package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +8 -8
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/knowledge/tests/stream-answer-api-state-mock.d.ts +173 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/facets/core-facet/core-facet-actions-loader.d.ts +5 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/facets/core-facet/core-facet-actions.d.ts +1 -0
- 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 +3 -3
package/README.md
CHANGED
|
@@ -42,11 +42,27 @@ Optionally install the [VSCode Salesforce Extension Pack](https://marketplace.vi
|
|
|
42
42
|
- You can also run this command from the command line. `sf org login web --set-default-dev-hub --alias LWC-Hub`
|
|
43
43
|
- Running this command opens a browser to the Salesforce login page. Enter your Salesforce username and password. Authorize only once, not every time you work on your project.
|
|
44
44
|
|
|
45
|
-
### Single
|
|
45
|
+
### Single Command Run
|
|
46
46
|
|
|
47
47
|
- Make sure you are at the root of `packages/quantic`.
|
|
48
|
-
|
|
49
|
-
-
|
|
48
|
+
|
|
49
|
+
- Run `npm run setup:examples`.
|
|
50
|
+
|
|
51
|
+
This command will create two scratch orgs for you:
|
|
52
|
+
|
|
53
|
+
- One with Lightning Web Security (LWS) enabled. (Alias: `Quantic__LWS_enabled`)
|
|
54
|
+
|
|
55
|
+
- One with LWS disabled, Locker Service enabled. (Alias: `Quantic__LWS_disabled`)
|
|
56
|
+
|
|
57
|
+
Each scratch org will include:
|
|
58
|
+
|
|
59
|
+
- All **Quantic components**
|
|
60
|
+
- The **example components**
|
|
61
|
+
- An **example Quantic community** featuring:
|
|
62
|
+
- ๐งช **Component playgrounds**
|
|
63
|
+
- ๐ก **Solution examples**
|
|
64
|
+
|
|
65
|
+
To access the links to the created communities, check the generated `.env` file after the script completes.
|
|
50
66
|
|
|
51
67
|
Or you can run the individual commands below.
|
|
52
68
|
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
<template lwc:if={recommendations.length}>
|
|
3
3
|
<div class="slds-text-heading_medium slds-var-p-bottom_x-small">
|
|
4
4
|
<c-quantic-heading
|
|
5
|
-
data-
|
|
5
|
+
data-testid="recommendations__label"
|
|
6
6
|
level={headingLevel}
|
|
7
7
|
label={label}
|
|
8
8
|
></c-quantic-heading>
|
|
9
9
|
</div>
|
|
10
10
|
<c-quantic-carousel
|
|
11
11
|
label={label}
|
|
12
|
-
data-
|
|
12
|
+
data-testid="recommendations__carousel"
|
|
13
13
|
items-per-page={recommendationsPerRow}
|
|
14
14
|
>
|
|
15
15
|
<template for:each={recommendations} for:item="recommendation">
|
|
16
16
|
<div
|
|
17
17
|
slot="carousel-item"
|
|
18
|
-
data-
|
|
18
|
+
data-testid="recommendations__item"
|
|
19
19
|
key={recommendation.uniqueId}
|
|
20
20
|
class={recommendation.class}
|
|
21
21
|
role="group"
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
<template lwc:if={recommendations.length}>
|
|
3
3
|
<div class="slds-text-heading_medium slds-var-p-bottom_x-small">
|
|
4
4
|
<c-quantic-heading
|
|
5
|
-
data-
|
|
5
|
+
data-testid="recommendations__label"
|
|
6
6
|
level={headingLevel}
|
|
7
7
|
label={label}
|
|
8
8
|
></c-quantic-heading>
|
|
9
9
|
</div>
|
|
10
|
-
<div class="slds-grid recommendations-list__container">
|
|
10
|
+
<div class="slds-grid recommendations-list__container" data-testid="recommendations__grid">
|
|
11
11
|
<template for:each={recommendations} for:item="recommendation">
|
|
12
12
|
<div
|
|
13
13
|
key={recommendation.uniqueId}
|
|
14
|
-
data-
|
|
14
|
+
data-testid="recommendations__item"
|
|
15
15
|
class="recommendation-item__container slds-var-p-vertical_x-small slds-var-p-right_medium"
|
|
16
16
|
>
|
|
17
17
|
<div class="slds-box slds-box_small recommendation-item__content">
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<template for:each={placeholders} for:item="item">
|
|
4
4
|
<div
|
|
5
5
|
key={item.index}
|
|
6
|
-
data-
|
|
6
|
+
data-testid="recommendations__placeholder"
|
|
7
7
|
class="recommendation-item__container slds-var-p-vertical_x-small slds-var-p-right_medium"
|
|
8
8
|
>
|
|
9
9
|
<div class="recommendation-item__content slds-box slds-box_small">
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<lightning-formatted-date-time value={result.raw.date}></lightning-formatted-date-time>
|
|
15
15
|
</p>
|
|
16
16
|
<div slot="title" class="slds-truncate">
|
|
17
|
-
<c-quantic-result-link result={result} engine-id={engineId} data-
|
|
17
|
+
<c-quantic-result-link result={result} engine-id={engineId} data-testid="result-link"></c-quantic-result-link>
|
|
18
18
|
</div>
|
|
19
19
|
<div slot="excerpt">
|
|
20
20
|
<c-quantic-result-highlighted-text-field engine-id={engineId} result={result} field="excerpt"></c-quantic-result-highlighted-text-field>
|